altair-static 4.6.0 → 4.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/build/dist/243.js +1 -0
  2. package/build/dist/364.js +1 -0
  3. package/build/dist/3rdpartylicenses.txt +5696 -0
  4. package/build/dist/471.js +1 -0
  5. package/build/dist/480.js +1 -0
  6. package/build/dist/482.js +1 -0
  7. package/build/dist/521.js +1 -0
  8. package/build/dist/60.js +1 -0
  9. package/build/dist/609.js +1 -0
  10. package/build/dist/630.js +1 -0
  11. package/build/dist/783.js +1 -0
  12. package/build/dist/810.js +1 -0
  13. package/build/dist/852.js +1 -0
  14. package/build/dist/855.js +1 -0
  15. package/build/dist/89.js +1 -0
  16. package/build/dist/assets/i18n/README.md +1 -0
  17. package/build/dist/assets/i18n/ach-UG.json +159 -0
  18. package/build/dist/assets/i18n/ach.json +55 -0
  19. package/build/dist/assets/i18n/af-ZA.json +122 -0
  20. package/build/dist/assets/i18n/ar-SA.json +122 -0
  21. package/build/dist/assets/i18n/ca-ES.json +122 -0
  22. package/build/dist/assets/i18n/cn.json +64 -0
  23. package/build/dist/assets/i18n/cs-CZ.json +159 -0
  24. package/build/dist/assets/i18n/da-DK.json +159 -0
  25. package/build/dist/assets/i18n/de-DE.json +159 -0
  26. package/build/dist/assets/i18n/default.json +188 -0
  27. package/build/dist/assets/i18n/el-GR.json +122 -0
  28. package/build/dist/assets/i18n/en-US.json +159 -0
  29. package/build/dist/assets/i18n/en.json +75 -0
  30. package/build/dist/assets/i18n/es-ES.json +159 -0
  31. package/build/dist/assets/i18n/es.json +57 -0
  32. package/build/dist/assets/i18n/fi-FI.json +159 -0
  33. package/build/dist/assets/i18n/fr-FR.json +159 -0
  34. package/build/dist/assets/i18n/fr.json +57 -0
  35. package/build/dist/assets/i18n/he-IL.json +122 -0
  36. package/build/dist/assets/i18n/hu-HU.json +159 -0
  37. package/build/dist/assets/i18n/it-IT.json +159 -0
  38. package/build/dist/assets/i18n/ja-JP.json +159 -0
  39. package/build/dist/assets/i18n/ko-KR.json +159 -0
  40. package/build/dist/assets/i18n/nl-NL.json +159 -0
  41. package/build/dist/assets/i18n/no-NO.json +159 -0
  42. package/build/dist/assets/i18n/pl-PL.json +159 -0
  43. package/build/dist/assets/i18n/pt-BR.json +159 -0
  44. package/build/dist/assets/i18n/pt-PT.json +159 -0
  45. package/build/dist/assets/i18n/ro-RO.json +159 -0
  46. package/build/dist/assets/i18n/ru-RU.json +159 -0
  47. package/build/dist/assets/i18n/sr-SP.json +159 -0
  48. package/build/dist/assets/i18n/sv-SE.json +159 -0
  49. package/build/dist/assets/i18n/tr-TR.json +159 -0
  50. package/build/dist/assets/i18n/uk-UA.json +159 -0
  51. package/build/dist/assets/i18n/vi-VN.json +159 -0
  52. package/build/dist/assets/i18n/zh-CN.json +159 -0
  53. package/build/dist/assets/i18n/zh-TW.json +159 -0
  54. package/build/dist/assets/img/altair_logo.png +0 -0
  55. package/build/dist/assets/img/altair_logo_128.png +0 -0
  56. package/build/dist/assets/img/altair_logo_512.png +0 -0
  57. package/build/dist/assets/img/logo.png +0 -0
  58. package/build/dist/assets/img/logo.svg +31 -0
  59. package/build/dist/assets/img/logo_350.svg +28 -0
  60. package/build/dist/assets/img/play.svg +19 -0
  61. package/build/dist/favicon.ico +0 -0
  62. package/build/dist/index.html +40 -0
  63. package/build/dist/jetbrains-mono-all-400-normal.woff +0 -0
  64. package/build/dist/jetbrains-mono-cyrillic-400-normal.woff2 +0 -0
  65. package/build/dist/jetbrains-mono-cyrillic-ext-400-normal.woff2 +0 -0
  66. package/build/dist/jetbrains-mono-greek-400-normal.woff2 +0 -0
  67. package/build/dist/jetbrains-mono-latin-400-normal.woff2 +0 -0
  68. package/build/dist/jetbrains-mono-latin-ext-400-normal.woff2 +0 -0
  69. package/build/dist/jetbrains-mono-vietnamese-400-normal.woff2 +0 -0
  70. package/build/dist/main.js +1 -0
  71. package/build/dist/polyfills.js +1 -0
  72. package/build/dist/runtime.js +1 -0
  73. package/build/dist/styles.css +1 -0
  74. package/package.json +4 -4
@@ -0,0 +1 @@
1
+ (self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[243],{60162:(ue,M,p)=>{"use strict";p.d(M,{Jh:()=>a,ZT:()=>w,_T:()=>r,mG:()=>e,pi:()=>d,pr:()=>R});var t=function(L,g){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,c){T.__proto__=c}||function(T,c){for(var _ in c)c.hasOwnProperty(_)&&(T[_]=c[_])})(L,g)};function w(L,g){function T(){this.constructor=L}t(L,g),L.prototype=null===g?Object.create(g):(T.prototype=g.prototype,new T)}var d=function(){return d=Object.assign||function(g){for(var T,c=1,_=arguments.length;c<_;c++)for(var l in T=arguments[c])Object.prototype.hasOwnProperty.call(T,l)&&(g[l]=T[l]);return g},d.apply(this,arguments)};function r(L,g){var T={};for(var c in L)Object.prototype.hasOwnProperty.call(L,c)&&g.indexOf(c)<0&&(T[c]=L[c]);if(null!=L&&"function"==typeof Object.getOwnPropertySymbols){var _=0;for(c=Object.getOwnPropertySymbols(L);_<c.length;_++)g.indexOf(c[_])<0&&Object.prototype.propertyIsEnumerable.call(L,c[_])&&(T[c[_]]=L[c[_]])}return T}function e(L,g,T,c){return new(T||(T=Promise))(function(_,l){function F($){try{Q(c.next($))}catch(ce){l(ce)}}function K($){try{Q(c.throw($))}catch(ce){l(ce)}}function Q($){$.done?_($.value):new T(function(ce){ce($.value)}).then(F,K)}Q((c=c.apply(L,g||[])).next())})}function a(L,g){var c,_,l,F,T={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return F={next:K(0),throw:K(1),return:K(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function K($){return function(ce){return function Q($){if(c)throw new TypeError("Generator is already executing.");for(;T;)try{if(c=1,_&&(l=2&$[0]?_.return:$[0]?_.throw||((l=_.return)&&l.call(_),0):_.next)&&!(l=l.call(_,$[1])).done)return l;switch(_=0,l&&($=[2&$[0],l.value]),$[0]){case 0:case 1:l=$;break;case 4:return T.label++,{value:$[1],done:!1};case 5:T.label++,_=$[1],$=[0];continue;case 7:$=T.ops.pop(),T.trys.pop();continue;default:if(!(l=(l=T.trys).length>0&&l[l.length-1])&&(6===$[0]||2===$[0])){T=0;continue}if(3===$[0]&&(!l||$[1]>l[0]&&$[1]<l[3])){T.label=$[1];break}if(6===$[0]&&T.label<l[1]){T.label=l[1],l=$;break}if(l&&T.label<l[2]){T.label=l[2],T.ops.push($);break}l[2]&&T.ops.pop(),T.trys.pop();continue}$=g.call(L,T)}catch(ce){$=[6,ce],_=0}finally{c=l=0}if(5&$[0])throw $[1];return{value:$[0]?$[1]:void 0,done:!0}}([$,ce])}}}function R(){for(var L=0,g=0,T=arguments.length;g<T;g++)L+=arguments[g].length;var c=Array(L),_=0;for(g=0;g<T;g++)for(var l=arguments[g],F=0,K=l.length;F<K;F++,_++)c[_]=l[F];return c}},91205:(ue,M,p)=>{"use strict";p.r(M),p.d(M,{__assign:()=>d,__asyncDelegator:()=>P,__asyncGenerator:()=>C,__asyncValues:()=>j,__await:()=>I,__awaiter:()=>e,__classPrivateFieldGet:()=>g,__classPrivateFieldSet:()=>T,__createBinding:()=>u,__decorate:()=>n,__exportStar:()=>h,__extends:()=>w,__generator:()=>a,__importDefault:()=>L,__importStar:()=>q,__makeTemplateObject:()=>V,__metadata:()=>s,__param:()=>i,__read:()=>m,__rest:()=>r,__spread:()=>R,__spreadArrays:()=>D,__values:()=>y});var t=function(c,_){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,F){l.__proto__=F}||function(l,F){for(var K in F)F.hasOwnProperty(K)&&(l[K]=F[K])})(c,_)};function w(c,_){function l(){this.constructor=c}t(c,_),c.prototype=null===_?Object.create(_):(l.prototype=_.prototype,new l)}var d=function(){return d=Object.assign||function(_){for(var l,F=1,K=arguments.length;F<K;F++)for(var Q in l=arguments[F])Object.prototype.hasOwnProperty.call(l,Q)&&(_[Q]=l[Q]);return _},d.apply(this,arguments)};function r(c,_){var l={};for(var F in c)Object.prototype.hasOwnProperty.call(c,F)&&_.indexOf(F)<0&&(l[F]=c[F]);if(null!=c&&"function"==typeof Object.getOwnPropertySymbols){var K=0;for(F=Object.getOwnPropertySymbols(c);K<F.length;K++)_.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(c,F[K])&&(l[F[K]]=c[F[K]])}return l}function n(c,_,l,F){var $,K=arguments.length,Q=K<3?_:null===F?F=Object.getOwnPropertyDescriptor(_,l):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(c,_,l,F);else for(var ce=c.length-1;ce>=0;ce--)($=c[ce])&&(Q=(K<3?$(Q):K>3?$(_,l,Q):$(_,l))||Q);return K>3&&Q&&Object.defineProperty(_,l,Q),Q}function i(c,_){return function(l,F){_(l,F,c)}}function s(c,_){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(c,_)}function e(c,_,l,F){return new(l||(l=Promise))(function(Q,$){function ce(pe){try{Z(F.next(pe))}catch(ae){$(ae)}}function ge(pe){try{Z(F.throw(pe))}catch(ae){$(ae)}}function Z(pe){pe.done?Q(pe.value):function K(Q){return Q instanceof l?Q:new l(function($){$(Q)})}(pe.value).then(ce,ge)}Z((F=F.apply(c,_||[])).next())})}function a(c,_){var F,K,Q,$,l={label:0,sent:function(){if(1&Q[0])throw Q[1];return Q[1]},trys:[],ops:[]};return $={next:ce(0),throw:ce(1),return:ce(2)},"function"==typeof Symbol&&($[Symbol.iterator]=function(){return this}),$;function ce(Z){return function(pe){return function ge(Z){if(F)throw new TypeError("Generator is already executing.");for(;l;)try{if(F=1,K&&(Q=2&Z[0]?K.return:Z[0]?K.throw||((Q=K.return)&&Q.call(K),0):K.next)&&!(Q=Q.call(K,Z[1])).done)return Q;switch(K=0,Q&&(Z=[2&Z[0],Q.value]),Z[0]){case 0:case 1:Q=Z;break;case 4:return l.label++,{value:Z[1],done:!1};case 5:l.label++,K=Z[1],Z=[0];continue;case 7:Z=l.ops.pop(),l.trys.pop();continue;default:if(!(Q=(Q=l.trys).length>0&&Q[Q.length-1])&&(6===Z[0]||2===Z[0])){l=0;continue}if(3===Z[0]&&(!Q||Z[1]>Q[0]&&Z[1]<Q[3])){l.label=Z[1];break}if(6===Z[0]&&l.label<Q[1]){l.label=Q[1],Q=Z;break}if(Q&&l.label<Q[2]){l.label=Q[2],l.ops.push(Z);break}Q[2]&&l.ops.pop(),l.trys.pop();continue}Z=_.call(c,l)}catch(pe){Z=[6,pe],K=0}finally{F=Q=0}if(5&Z[0])throw Z[1];return{value:Z[0]?Z[1]:void 0,done:!0}}([Z,pe])}}}function u(c,_,l,F){void 0===F&&(F=l),c[F]=_[l]}function h(c,_){for(var l in c)"default"!==l&&!_.hasOwnProperty(l)&&(_[l]=c[l])}function y(c){var _="function"==typeof Symbol&&Symbol.iterator,l=_&&c[_],F=0;if(l)return l.call(c);if(c&&"number"==typeof c.length)return{next:function(){return c&&F>=c.length&&(c=void 0),{value:c&&c[F++],done:!c}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(c,_){var l="function"==typeof Symbol&&c[Symbol.iterator];if(!l)return c;var K,$,F=l.call(c),Q=[];try{for(;(void 0===_||_-- >0)&&!(K=F.next()).done;)Q.push(K.value)}catch(ce){$={error:ce}}finally{try{K&&!K.done&&(l=F.return)&&l.call(F)}finally{if($)throw $.error}}return Q}function R(){for(var c=[],_=0;_<arguments.length;_++)c=c.concat(m(arguments[_]));return c}function D(){for(var c=0,_=0,l=arguments.length;_<l;_++)c+=arguments[_].length;var F=Array(c),K=0;for(_=0;_<l;_++)for(var Q=arguments[_],$=0,ce=Q.length;$<ce;$++,K++)F[K]=Q[$];return F}function I(c){return this instanceof I?(this.v=c,this):new I(c)}function C(c,_,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var K,F=l.apply(c,_||[]),Q=[];return K={},$("next"),$("throw"),$("return"),K[Symbol.asyncIterator]=function(){return this},K;function $(z){F[z]&&(K[z]=function(Y){return new Promise(function(ie,J){Q.push([z,Y,ie,J])>1||ce(z,Y)})})}function ce(z,Y){try{!function ge(z){z.value instanceof I?Promise.resolve(z.value.v).then(Z,pe):ae(Q[0][2],z)}(F[z](Y))}catch(ie){ae(Q[0][3],ie)}}function Z(z){ce("next",z)}function pe(z){ce("throw",z)}function ae(z,Y){z(Y),Q.shift(),Q.length&&ce(Q[0][0],Q[0][1])}}function P(c){var _,l;return _={},F("next"),F("throw",function(K){throw K}),F("return"),_[Symbol.iterator]=function(){return this},_;function F(K,Q){_[K]=c[K]?function($){return(l=!l)?{value:I(c[K]($)),done:"return"===K}:Q?Q($):$}:Q}}function j(c){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l,_=c[Symbol.asyncIterator];return _?_.call(c):(c=y(c),l={},F("next"),F("throw"),F("return"),l[Symbol.asyncIterator]=function(){return this},l);function F(Q){l[Q]=c[Q]&&function($){return new Promise(function(ce,ge){!function K(Q,$,ce,ge){Promise.resolve(ge).then(function(Z){Q({value:Z,done:ce})},$)}(ce,ge,($=c[Q]($)).done,$.value)})}}}function V(c,_){return Object.defineProperty?Object.defineProperty(c,"raw",{value:_}):c.raw=_,c}function q(c){if(c&&c.__esModule)return c;var _={};if(null!=c)for(var l in c)Object.hasOwnProperty.call(c,l)&&(_[l]=c[l]);return _.default=c,_}function L(c){return c&&c.__esModule?c:{default:c}}function g(c,_){if(!_.has(c))throw new TypeError("attempted to get private field on non-instance");return _.get(c)}function T(c,_,l){if(!_.has(c))throw new TypeError("attempted to set private field on non-instance");return _.set(c,l),l}},97985:(ue,M,p)=>{"use strict";p.d(M,{R:()=>d});var t=p(86438),w=p(77260),d=function(){function r(){this.getFragmentDoc=(0,t.re)(w.Yk)}return r.prototype.recordOptimisticTransaction=function(n,i){this.performTransaction(n,i)},r.prototype.transformDocument=function(n){return n},r.prototype.identify=function(n){},r.prototype.gc=function(){return[]},r.prototype.modify=function(n){return!1},r.prototype.transformForLink=function(n){return n},r.prototype.readQuery=function(n,i){return void 0===i&&(i=!!n.optimistic),this.read({rootId:n.id||"ROOT_QUERY",query:n.query,variables:n.variables,returnPartialData:n.returnPartialData,optimistic:i})},r.prototype.readFragment=function(n,i){return void 0===i&&(i=!!n.optimistic),this.read({query:this.getFragmentDoc(n.fragment,n.fragmentName),variables:n.variables,rootId:n.id,returnPartialData:n.returnPartialData,optimistic:i})},r.prototype.writeQuery=function(n){return this.write({dataId:n.id||"ROOT_QUERY",result:n.data,query:n.query,variables:n.variables,broadcast:n.broadcast})},r.prototype.writeFragment=function(n){return this.write({dataId:n.id,result:n.data,variables:n.variables,query:this.getFragmentDoc(n.fragment,n.fragmentName),broadcast:n.broadcast})},r}()},53774:(ue,M,p)=>{"use strict";var t;p.d(M,{C:()=>t}),t||(t={})},46206:(ue,M,p)=>{"use strict";p.d(M,{y:()=>t});var t=function w(d,r,n,i,s){this.message=d,this.path=r,this.query=n,this.clientOnly=i,this.variables=s}},67136:(ue,M,p)=>{"use strict";p.d(M,{$O:()=>i,E_:()=>s,RC:()=>e,RI:()=>r,ig:()=>u,j:()=>a});var t=p(7882),w=p(31220),d=p(52647),r=Object.prototype.hasOwnProperty,i=/^[_a-z][_0-9a-z]*/i;function s(h){var y=h.match(i);return y?y[0]:h}function e(h,y,m){return!(!y||"object"!=typeof y)&&(Array.isArray(y)?y.every(function(R){return e(h,R,m)}):h.selections.every(function(R){if((0,t.My)(R)&&(0,w.LZ)(R,m)){var D=(0,t.u2)(R);return r.call(y,D)&&(!R.selectionSet||e(R.selectionSet,y[D],m))}return!0}))}function a(h){return null!==h&&"object"==typeof h&&!(0,t.Yk)(h)&&!Array.isArray(h)}function u(){return new d.w0}},45670:(ue,M,p)=>{"use strict";p.d(M,{h:()=>ie});var J,A,t=p(60162),w=p(86438),d=p(97985),r=p(46206),n=p(7882),i=p(64323),s=p(73567),e=p(57993),a=p(77260),u=p(31220),h=p(52647),y=p(52485),I=p(18770),C=p(67136),P=Object.create(null),j=function(){return P},V=Object.create(null),q=function(){function J(A,b){var x=this;this.policies=A,this.group=b,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(N,W){return(0,n.Yk)(N)?x.get(N.__ref,W):N&&N[W]},this.canRead=function(N){return(0,n.Yk)(N)?x.has(N.__ref):"object"==typeof N},this.toReference=function(N,W){if("string"==typeof N)return(0,n.kQ)(N);if((0,n.Yk)(N))return N;var ee=x.policies.identify(N)[0];if(ee){var se=(0,n.kQ)(ee);return W&&x.merge(ee,N),se}}}return J.prototype.toObject=function(){return(0,t.pi)({},this.data)},J.prototype.has=function(A){return void 0!==this.lookup(A,!0)},J.prototype.get=function(A,b){if(this.group.depend(A,b),C.RI.call(this.data,A)){var x=this.data[A];if(x&&C.RI.call(x,b))return x[b]}return"__typename"===b&&C.RI.call(this.policies.rootTypenamesById,A)?this.policies.rootTypenamesById[A]:this instanceof T?this.parent.get(A,b):void 0},J.prototype.lookup=function(A,b){return b&&this.group.depend(A,"__exists"),C.RI.call(this.data,A)?this.data[A]:this instanceof T?this.parent.lookup(A,b):this.policies.rootTypenamesById[A]?Object.create(null):void 0},J.prototype.merge=function(A,b){var x=this,N=this.lookup(A),W=new h.w0(c).merge(N,b);if(this.data[A]=W,W!==N&&(delete this.refs[A],this.group.caching)){var ee=Object.create(null);N||(ee.__exists=1),Object.keys(b).forEach(function(se){if(!N||N[se]!==W[se]){ee[se]=1;var _e=(0,C.E_)(se);_e!==se&&!x.policies.hasKeyArgs(W.__typename,_e)&&(ee[_e]=1),void 0===W[se]&&!(x instanceof T)&&delete W[se]}}),Object.keys(ee).forEach(function(se){return x.group.dirty(A,se)})}},J.prototype.modify=function(A,b){var x=this,N=this.lookup(A);if(N){var W=Object.create(null),ee=!1,se=!0,_e={DELETE:P,INVALIDATE:V,isReference:n.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(ye,Re){return x.policies.readField("string"==typeof ye?{fieldName:ye,from:Re||(0,n.kQ)(A)}:ye,{store:x})}};if(Object.keys(N).forEach(function(ye){var Re=(0,C.E_)(ye),De=N[ye];if(void 0!==De){var Me="function"==typeof b?b:b[ye]||b[Re];if(Me){var ne=Me===j?P:Me(De,(0,t.pi)((0,t.pi)({},_e),{fieldName:Re,storeFieldName:ye,storage:x.getStorage(A,ye)}));ne===V?x.group.dirty(A,ye):(ne===P&&(ne=void 0),ne!==De&&(W[ye]=ne,ee=!0,De=ne))}void 0!==De&&(se=!1)}}),ee)return this.merge(A,W),se&&(this instanceof T?this.data[A]=void 0:delete this.data[A],this.group.dirty(A,"__exists")),!0}return!1},J.prototype.delete=function(A,b,x){var N,W=this.lookup(A);if(W){var ee=this.getFieldValue(W,"__typename"),se=b&&x?this.policies.getStoreFieldName({typename:ee,fieldName:b,args:x}):b;return this.modify(A,se?((N={})[se]=j,N):j)}return!1},J.prototype.evict=function(A){var b=!1;return A.id&&(C.RI.call(this.data,A.id)&&(b=this.delete(A.id,A.fieldName,A.args)),this instanceof T&&(b=this.parent.evict(A)||b),(A.fieldName||b)&&this.group.dirty(A.id,A.fieldName||"__exists")),b},J.prototype.clear=function(){this.replace(null)},J.prototype.extract=function(){var A=this,b=this.toObject(),x=[];return this.getRootIdSet().forEach(function(N){C.RI.call(A.policies.rootTypenamesById,N)||x.push(N)}),x.length&&(b.__META={extraRootIds:x.sort()}),b},J.prototype.replace=function(A){var b=this;if(Object.keys(this.data).forEach(function(W){A&&C.RI.call(A,W)||b.delete(W)}),A){var x=A.__META,N=(0,t._T)(A,["__META"]);Object.keys(N).forEach(function(W){b.merge(W,N[W])}),x&&x.extraRootIds.forEach(this.retain,this)}},J.prototype.retain=function(A){return this.rootIds[A]=(this.rootIds[A]||0)+1},J.prototype.release=function(A){if(this.rootIds[A]>0){var b=--this.rootIds[A];return b||delete this.rootIds[A],b}return 0},J.prototype.getRootIdSet=function(A){return void 0===A&&(A=new Set),Object.keys(this.rootIds).forEach(A.add,A),this instanceof T?this.parent.getRootIdSet(A):Object.keys(this.policies.rootTypenamesById).forEach(A.add,A),A},J.prototype.gc=function(){var A=this,b=this.getRootIdSet(),x=this.toObject();b.forEach(function(ee){C.RI.call(x,ee)&&(Object.keys(A.findChildRefIds(ee)).forEach(b.add,b),delete x[ee])});var N=Object.keys(x);if(N.length){for(var W=this;W instanceof T;)W=W.parent;N.forEach(function(ee){return W.delete(ee)})}return N},J.prototype.findChildRefIds=function(A){if(!C.RI.call(this.refs,A)){var b=this.refs[A]=Object.create(null),x=new Set([this.data[A]]),N=function(W){return null!==W&&"object"==typeof W};x.forEach(function(W){(0,n.Yk)(W)?b[W.__ref]=!0:N(W)&&Object.values(W).filter(N).forEach(x.add,x)})}return this.refs[A]},J.prototype.makeCacheKey=function(){for(var A=[],b=0;b<arguments.length;b++)A[b]=arguments[b];return this.group.keyMaker.lookupArray(A)},J}(),L=function(){function J(A){this.caching=A,this.d=null,this.keyMaker=new w.Gl(I.m),this.d=A?(0,w.dP)():null}return J.prototype.depend=function(A,b){if(this.d){this.d(g(A,b));var x=(0,C.E_)(b);x!==b&&this.d(g(A,x))}},J.prototype.dirty=function(A,b){this.d&&this.d.dirty(g(A,b))},J}();function g(J,A){return A+"#"+J}A=function(b){function x(N){var ee=N.resultCaching,se=void 0===ee||ee,_e=N.seed,ye=b.call(this,N.policies,new L(se))||this;return ye.storageTrie=new w.Gl(I.m),ye.sharedLayerGroup=new L(se),_e&&ye.replace(_e),ye}return(0,t.ZT)(x,b),x.prototype.addLayer=function(N,W){return new T(N,this,W,this.sharedLayerGroup)},x.prototype.removeLayer=function(){return this},x.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},x}(J=q||(q={})),J.Root=A;var T=function(J){function A(b,x,N,W){var ee=J.call(this,x.policies,W)||this;return ee.id=b,ee.parent=x,ee.replay=N,ee.group=W,N(ee),ee}return(0,t.ZT)(A,J),A.prototype.addLayer=function(b,x){return new A(b,this,x,this.group)},A.prototype.removeLayer=function(b){var x=this,N=this.parent.removeLayer(b);return b===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(W){x.data[W]!==N.lookup(W)&&x.delete(W)}),N):N===this.parent?this:N.addLayer(this.id,this.replay)},A.prototype.toObject=function(){return(0,t.pi)((0,t.pi)({},this.parent.toObject()),this.data)},A.prototype.findChildRefIds=function(b){var x=this.parent.findChildRefIds(b);return C.RI.call(this.data,b)?(0,t.pi)((0,t.pi)({},x),J.prototype.findChildRefIds.call(this,b)):x},A.prototype.getStorage=function(){for(var b=this.parent;b.parent;)b=b.parent;return b.getStorage.apply(b,arguments)},A}(q);function c(J,A,b){var x=J[b],N=A[b];return(0,y.D)(x,N)?x:N}function _(J){return!!(J instanceof q&&J.group.caching)}function l(J,A){return new r.y(J.message,A.path.slice(),A.query,A.clientOnly,A.variables)}var F=function(){function J(A){var b=this;this.config=A,this.executeSelectionSet=(0,w.re)(function(x){return b.execSelectionSetImpl(x)},{keyArgs:function(x){return[x.selectionSet,x.objectOrReference,x.context]},makeCacheKey:function(x,N,W){if(_(W.store))return W.store.makeCacheKey(x,(0,n.Yk)(N)?N.__ref:N,W.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=(0,w.re)(function(x){return b.execSubSelectedArrayImpl(x)},{makeCacheKey:function(x){var N=x.field,W=x.array,ee=x.context;if(_(ee.store))return ee.store.makeCacheKey(N,W,ee.varString)}}),this.config=(0,t.pi)({addTypename:!0},A)}return J.prototype.diffQueryAgainstStore=function(A){var b=A.store,x=A.query,N=A.rootId,W=void 0===N?"ROOT_QUERY":N,ee=A.variables,se=A.returnPartialData,_e=void 0===se||se,ye=this.config.cache.policies;ee=(0,t.pi)((0,t.pi)({},(0,e.O4)((0,e.iW)(x))),ee);var Re=this.executeSelectionSet({selectionSet:(0,e.p$)(x).selectionSet,objectOrReference:(0,n.kQ)(W),context:{store:b,query:x,policies:ye,variables:ee,varString:JSON.stringify(ee),fragmentMap:(0,a.F)((0,e.kU)(x)),path:[],clientOnly:!1}}),De=Re.missing&&Re.missing.length>0;if(De&&!_e)throw Re.missing[0];return{result:Re.result,missing:Re.missing,complete:!De}},J.prototype.isFresh=function(A,b,x,N){if(_(N.store)&&this.knownResults.get(A)===x){var W=this.executeSelectionSet.peek(x,b,N);if(W&&A===W.result)return!0}return!1},J.prototype.execSelectionSetImpl=function(A){var b=this,x=A.selectionSet,N=A.objectOrReference,W=A.context;if((0,n.Yk)(N)&&!W.policies.rootTypenamesById[N.__ref]&&!W.store.has(N.__ref))return{result:{},missing:[l(new s.ej(4),W)]};var ee=W.variables,se=W.policies,ye=[],Re={result:null},De=W.store.getFieldValue(N,"__typename");function Me(){return Re.missing||(Re.missing=[])}function ne(v){var O;return v.missing&&(O=Me()).push.apply(O,v.missing),v.result}this.config.addTypename&&"string"==typeof De&&!se.rootIdsByTypename[De]&&ye.push({__typename:De});var U=new Set(x.selections);return U.forEach(function(v){var O;if((0,u.LZ)(v,ee))if((0,n.My)(v)){var k=se.readField({fieldName:v.name.value,field:v,variables:W.variables,from:N},W),re=(0,n.u2)(v);W.path.push(re);var de=W.clientOnly;W.clientOnly=de||!(!v.directives||!v.directives.some(function(Te){return"client"===Te.name.value})),void 0===k?i.Gw.added(v)||Me().push(l(new s.ej(5),W)):Array.isArray(k)?k=ne(b.executeSubSelectedArray({field:v,array:k,context:W})):v.selectionSet&&null!=k&&(k=ne(b.executeSelectionSet({selectionSet:v.selectionSet,objectOrReference:k,context:W}))),void 0!==k&&ye.push(((O={})[re]=k,O)),W.clientOnly=de,(0,s.kG)(W.path.pop()===re)}else{var xe=(0,a.hi)(v,W.fragmentMap);xe&&se.fragmentMatches(xe,De)&&xe.selectionSet.selections.forEach(U.add,U)}}),Re.result=(0,h.bw)(ye),this.knownResults.set(Re.result,x),Re},J.prototype.execSubSelectedArrayImpl=function(A){var ee,b=this,x=A.field,N=A.array,W=A.context;function se(_e,ye){return _e.missing&&(ee=ee||[]).push.apply(ee,_e.missing),(0,s.kG)(W.path.pop()===ye),_e.result}return x.selectionSet&&(N=N.filter(W.store.canRead)),{result:N=N.map(function(_e,ye){return null===_e?null:(W.path.push(ye),Array.isArray(_e)?se(b.executeSubSelectedArray({field:x,array:_e,context:W}),ye):x.selectionSet?se(b.executeSelectionSet({selectionSet:x.selectionSet,objectOrReference:_e,context:W}),ye):((0,s.kG)(W.path.pop()===ye),_e))}),missing:ee}},J}(),Q=function(){function J(A,b){this.cache=A,this.reader=b}return J.prototype.writeToStore=function(A){var b=A.query,x=A.result,N=A.dataId,W=A.store,ee=A.variables,se=(0,e.$H)(b),_e=(0,C.ig)();ee=(0,t.pi)((0,t.pi)({},(0,e.O4)(se)),ee);var ye=this.processSelectionSet({result:x||Object.create(null),dataId:N,selectionSet:se.selectionSet,mergeTree:{map:new Map},context:{store:W,written:Object.create(null),merge:function(Re,De){return _e.merge(Re,De)},variables:ee,varString:JSON.stringify(ee),fragmentMap:(0,a.F)((0,e.kU)(b))}});if(!(0,n.Yk)(ye))throw new s.ej(7);return W.retain(ye.__ref),ye},J.prototype.processSelectionSet=function(A){var b=this,x=A.dataId,N=A.result,W=A.selectionSet,ee=A.context,se=A.mergeTree,_e=this.cache.policies,ye=_e.identify(N,W,ee.fragmentMap),De=ye[1];if("string"==typeof(x=x||ye[0])){var Me=ee.written[x]||(ee.written[x]=[]),ne=(0,n.kQ)(x);if(Me.indexOf(W)>=0||(Me.push(W),this.reader&&this.reader.isFresh(N,ne,W,ee)))return ne}var U=Object.create(null);De&&(U=ee.merge(U,De));var v=x&&_e.rootTypenamesById[x]||(0,n.qw)(N,W,ee.fragmentMap)||x&&ee.store.get(x,"__typename");"string"==typeof v&&(U.__typename=v);var O=new Set(W.selections);if(O.forEach(function(Te){var te;if((0,u.LZ)(Te,ee.variables))if((0,n.My)(Te)){var he=(0,n.u2)(Te),ve=N[he];if(typeof ve<"u"){var Oe=_e.getStoreFieldName({typename:v,fieldName:Te.name.value,field:Te,variables:ee.variables}),Ie=ce(se,Oe),Ue=b.processFieldValue(ve,Te,ee,Ie),qe=Te.selectionSet&&ee.store.getFieldValue(Ue,"__typename")||void 0,ze=_e.getMergeFunction(v,Te.name.value,qe);ze?Ie.info={field:Te,typename:v,merge:ze}:ge(se,Oe),U=ee.merge(U,((te={})[Oe]=Ue,te))}else if(_e.usingPossibleTypes&&!(0,u.FS)(["defer","client"],Te))throw new s.ej(8)}else{var nt=(0,a.hi)(Te,ee.fragmentMap);nt&&_e.fragmentMatches(nt,v,N,ee.variables)&&nt.selectionSet.selections.forEach(O.add,O)}}),"string"==typeof x){var k=(0,n.kQ)(x);return se.map.size&&(U=this.applyMerges(se,k,U,ee)),ee.store.merge(x,U),k}return U},J.prototype.processFieldValue=function(A,b,x,N){var W=this;return b.selectionSet&&null!==A?Array.isArray(A)?A.map(function(ee,se){var _e=W.processFieldValue(ee,b,x,ce(N,se));return ge(N,se),_e}):this.processSelectionSet({result:A,selectionSet:b.selectionSet,context:x,mergeTree:N}):A},J.prototype.applyMerges=function(A,b,x,N,W){var ee,se=this;if(A.map.size&&!(0,n.Yk)(x)){var _e=Array.isArray(x)||!(0,n.Yk)(b)&&!(0,C.j)(b)?void 0:b,ye=x;_e&&!W&&(W=[(0,n.Yk)(_e)?_e.__ref:_e]);var Re,De=function(Me,ne){return Array.isArray(Me)?"number"==typeof ne?Me[ne]:void 0:N.store.getFieldValue(Me,String(ne))};A.map.forEach(function(Me,ne){W&&W.push(ne);var U=De(_e,ne),v=De(ye,ne),O=se.applyMerges(Me,U,v,N,W);O!==v&&(Re=Re||new Map).set(ne,O),W&&(0,s.kG)(W.pop()===ne)}),Re&&(x=Array.isArray(ye)?ye.slice(0):(0,t.pi)({},ye),Re.forEach(function(Me,ne){x[ne]=Me}))}return A.info?this.cache.policies.runMergeFunction(b,x,A.info,N,W&&(ee=N.store).getStorage.apply(ee,W)):x},J}(),$=[];function ce(J,A){var b=J.map;return b.has(A)||b.set(A,$.pop()||{map:new Map}),b.get(A)}function ge(J,A){var b=J.map,x=b.get(A);x&&!x.info&&!x.map.size&&($.push(x),b.delete(A))}var ae=p(62068),z=p(7236),Y={dataIdFromObject:z.u,addTypename:!0,resultCaching:!0,typePolicies:{}},ie=function(J){function A(b){void 0===b&&(b={});var x=J.call(this)||this;return x.watches=new Set,x.typenameDocumentCache=new Map,x.makeVar=ae.QS,x.txCount=0,x.maybeBroadcastWatch=(0,w.re)(function(N,W){return x.broadcastWatch.call(x,N,!!W)},{makeCacheKey:function(N){var W=N.optimistic?x.optimisticData:x.data;if(_(W))return W.makeCacheKey(N.query,N.callback,JSON.stringify({optimistic:N.optimistic,rootId:N.rootId,variables:N.variables}))}}),x.watchDep=(0,w.dP)(),x.config=(0,t.pi)((0,t.pi)({},Y),b),x.addTypename=!!x.config.addTypename,x.policies=new z.r({cache:x,dataIdFromObject:x.config.dataIdFromObject,possibleTypes:x.config.possibleTypes,typePolicies:x.config.typePolicies}),x.data=new q.Root({policies:x.policies,resultCaching:x.config.resultCaching}),x.optimisticData=x.data,x.storeWriter=new Q(x,x.storeReader=new F({cache:x,addTypename:x.addTypename})),x}return(0,t.ZT)(A,J),A.prototype.restore=function(b){return b&&this.data.replace(b),this},A.prototype.extract=function(b){return void 0===b&&(b=!1),(b?this.optimisticData:this.data).extract()},A.prototype.read=function(b){var x=b.returnPartialData,N=void 0!==x&&x;try{return this.storeReader.diffQueryAgainstStore({store:b.optimistic?this.optimisticData:this.data,query:b.query,variables:b.variables,rootId:b.rootId,config:this.config,returnPartialData:N}).result||null}catch(W){if(W instanceof r.y)return null;throw W}},A.prototype.write=function(b){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:b.query,result:b.result,dataId:b.dataId,variables:b.variables})}finally{!--this.txCount&&!1!==b.broadcast&&this.broadcastWatches()}},A.prototype.modify=function(b){if(C.RI.call(b,"id")&&!b.id)return!1;var x=b.optimistic?this.optimisticData:this.data;try{return++this.txCount,x.modify(b.id||"ROOT_QUERY",b.fields)}finally{!--this.txCount&&!1!==b.broadcast&&this.broadcastWatches()}},A.prototype.diff=function(b){return this.storeReader.diffQueryAgainstStore({store:b.optimistic?this.optimisticData:this.data,rootId:b.id||"ROOT_QUERY",query:b.query,variables:b.variables,returnPartialData:b.returnPartialData,config:this.config})},A.prototype.watch=function(b){var x=this;return this.watches.size||(0,ae._v)(this),this.watches.add(b),b.immediate&&this.maybeBroadcastWatch(b),function(){x.watches.delete(b)&&!x.watches.size&&(0,ae.li)(x),x.watchDep.dirty(b),x.maybeBroadcastWatch.forget(b)}},A.prototype.gc=function(){return this.optimisticData.gc()},A.prototype.retain=function(b,x){return(x?this.optimisticData:this.data).retain(b)},A.prototype.release=function(b,x){return(x?this.optimisticData:this.data).release(b)},A.prototype.identify=function(b){return(0,n.Yk)(b)?b.__ref:this.policies.identify(b)[0]},A.prototype.evict=function(b){if(!b.id){if(C.RI.call(b,"id"))return!1;b=(0,t.pi)((0,t.pi)({},b),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(b)}finally{!--this.txCount&&!1!==b.broadcast&&this.broadcastWatches()}},A.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},A.prototype.removeOptimistic=function(b){var x=this.optimisticData.removeLayer(b);x!==this.optimisticData&&(this.optimisticData=x,this.broadcastWatches())},A.prototype.performTransaction=function(b,x){var N=this,W=function(se){var ye=N.data,Re=N.optimisticData;++N.txCount,se&&(N.data=N.optimisticData=se);try{b(N)}finally{--N.txCount,N.data=ye,N.optimisticData=Re}},ee=!1;"string"==typeof x?(this.optimisticData=this.optimisticData.addLayer(x,W),ee=!0):null===x?W(this.data):W(),this.broadcastWatches(ee)},A.prototype.transformDocument=function(b){if(this.addTypename){var x=this.typenameDocumentCache.get(b);return x||(x=(0,i.Gw)(b),this.typenameDocumentCache.set(b,x),this.typenameDocumentCache.set(x,x)),x}return b},A.prototype.broadcastWatches=function(b){var x=this;this.txCount||this.watches.forEach(function(N){return x.maybeBroadcastWatch(N,b)})},A.prototype.broadcastWatch=function(b,x){this.watchDep.dirty(b),this.watchDep(b);var N=this.diff({query:b.query,variables:b.variables,optimistic:b.optimistic});b.optimistic&&x&&(N.fromOptimisticTransaction=!0),b.callback(N)},A}(d.R)},7236:(ue,M,p)=>{"use strict";p.d(M,{r:()=>D,u:()=>u});var t=p(60162),w=p(86438),d=p(73567),r=p(7882),n=p(18770),i=p(77260),s=p(67136),e=p(62068);function a(L){return void 0!==L.args?L.args:L.field?(0,r.NC)(L.field,L.variables):null}var u=function(L,g){var T=L.__typename,c=L.id,_=L._id;if("string"==typeof T&&(g&&(g.keyObject=void 0!==c?{id:c}:void 0!==_?{_id:_}:void 0),void 0===c&&(c=_),void 0!==c))return T+":"+("number"==typeof c||"string"==typeof c?c:JSON.stringify(c))},h=function(){},y=function(L,g){return g.fieldName},m=function(L,g,T){return(0,T.mergeObjects)(L,g)},R=function(L,g){return g},D=function(){function L(g){this.config=g,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,t.pi)({dataIdFromObject:u},g),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),g.possibleTypes&&this.addPossibleTypes(g.possibleTypes),g.typePolicies&&this.addTypePolicies(g.typePolicies)}return L.prototype.identify=function(g,T,c){var _=T&&c?(0,r.qw)(g,T,c):g.__typename;if(_===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var F,l={typename:_,selectionSet:T,fragmentMap:c},K=_&&this.getTypePolicy(_),Q=K&&K.keyFn||this.config.dataIdFromObject;Q;){var $=Q(g,l);if(!Array.isArray($)){F=$;break}Q=j($)}return F=F?String(F):void 0,l.keyObject?[F,l.keyObject]:[F]},L.prototype.addTypePolicies=function(g){var T=this;Object.keys(g).forEach(function(c){var _=g[c],l=_.queryType,F=_.mutationType,K=_.subscriptionType,Q=(0,t._T)(_,["queryType","mutationType","subscriptionType"]);l&&T.setRootTypename("Query",c),F&&T.setRootTypename("Mutation",c),K&&T.setRootTypename("Subscription",c),s.RI.call(T.toBeAdded,c)?T.toBeAdded[c].push(Q):T.toBeAdded[c]=[Q]})},L.prototype.updateTypePolicy=function(g,T){var c=this,_=this.getTypePolicy(g),l=T.keyFields,F=T.fields;function K(Q,$){Q.merge="function"==typeof $?$:!0===$?m:!1===$?R:Q.merge}K(_,T.merge),_.keyFn=!1===l?h:Array.isArray(l)?j(l):"function"==typeof l?l:_.keyFn,F&&Object.keys(F).forEach(function(Q){var $=c.getFieldPolicy(g,Q,!0),ce=F[Q];if("function"==typeof ce)$.read=ce;else{var ge=ce.keyArgs,Z=ce.read,pe=ce.merge;$.keyFn=!1===ge?y:Array.isArray(ge)?P(ge):"function"==typeof ge?ge:$.keyFn,"function"==typeof Z&&($.read=Z),K($,pe)}$.read&&$.merge&&($.keyFn=$.keyFn||y)})},L.prototype.setRootTypename=function(g,T){void 0===T&&(T=g);var c="ROOT_"+g.toUpperCase(),_=this.rootTypenamesById[c];T!==_&&((0,d.kG)(!_||_===g,1),_&&delete this.rootIdsByTypename[_],this.rootIdsByTypename[T]=c,this.rootTypenamesById[c]=T)},L.prototype.addPossibleTypes=function(g){var T=this;this.usingPossibleTypes=!0,Object.keys(g).forEach(function(c){T.getSupertypeSet(c,!0),g[c].forEach(function(_){T.getSupertypeSet(_,!0).add(c);var l=_.match(s.$O);(!l||l[0]!==_)&&T.fuzzySubtypes.set(_,new RegExp(_))})})},L.prototype.getTypePolicy=function(g){var T=this;if(!s.RI.call(this.typePolicies,g)){var c=this.typePolicies[g]=Object.create(null);c.fields=Object.create(null);var _=this.supertypeMap.get(g);_&&_.size&&_.forEach(function(F){var K=T.getTypePolicy(F),Q=K.fields,$=(0,t._T)(K,["fields"]);Object.assign(c,$),Object.assign(c.fields,Q)})}var l=this.toBeAdded[g];return l&&l.length&&l.splice(0).forEach(function(F){T.updateTypePolicy(g,F)}),this.typePolicies[g]},L.prototype.getFieldPolicy=function(g,T,c){if(g){var _=this.getTypePolicy(g).fields;return _[T]||c&&(_[T]=Object.create(null))}},L.prototype.getSupertypeSet=function(g,T){var c=this.supertypeMap.get(g);return!c&&T&&this.supertypeMap.set(g,c=new Set),c},L.prototype.fragmentMatches=function(g,T,c,_){var l=this;if(!g.typeCondition)return!0;if(!T)return!1;var F=g.typeCondition.name.value;if(T===F)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(F))for(var K=this.getSupertypeSet(T,!0),Q=[K],$=function(ae){var z=l.getSupertypeSet(ae,!1);z&&z.size&&Q.indexOf(z)<0&&Q.push(z)},ce=!(!c||!this.fuzzySubtypes.size),Z=0;Z<Q.length;++Z){var pe=Q[Z];if(pe.has(F))return K.has(F)||K.add(F),!0;pe.forEach($),ce&&Z===Q.length-1&&(0,s.RC)(g.selectionSet,c,_)&&(ce=!1,this.fuzzySubtypes.forEach(function(ae,z){var Y=T.match(ae);Y&&Y[0]===T&&$(z)}))}return!1},L.prototype.hasKeyArgs=function(g,T){var c=this.getFieldPolicy(g,T,!1);return!(!c||!c.keyFn)},L.prototype.getStoreFieldName=function(g){var l,T=g.typename,c=g.fieldName,_=this.getFieldPolicy(T,c,!1),F=_&&_.keyFn;if(F&&T)for(var K={typename:T,fieldName:c,field:g.field||null,variables:g.variables},Q=a(g);F;){var $=F(Q,K);if(!Array.isArray($)){l=$||c;break}F=P($)}return void 0===l&&(l=g.field?(0,r.vf)(g.field,g.variables):(0,r.PT)(c,a(g))),!1===l?c:c===(0,s.E_)(l)?l:c+":"+l},L.prototype.readField=function(g,T){var c=g.from;if(c&&(g.field||g.fieldName)){if(void 0===g.typename){var l=T.store.getFieldValue(c,"__typename");l&&(g.typename=l)}var F=this.getStoreFieldName(g),K=(0,s.E_)(F),Q=T.store.getFieldValue(c,F),$=this.getFieldPolicy(g.typename,K,!1),ce=$&&$.read;if(ce){var ge=I(this,c,g,T,T.store.getStorage((0,r.Yk)(c)?c.__ref:c,F));return e.ab.withValue(this.cache,ce,[Q,ge])}return Q}},L.prototype.getMergeFunction=function(g,T,c){var _=this.getFieldPolicy(g,T,!1),l=_&&_.merge;return!l&&c&&(l=(_=this.getTypePolicy(c))&&_.merge),l},L.prototype.runMergeFunction=function(g,T,c,_,l){var F=c.field,K=c.typename,Q=c.merge;return Q===m?C(_.store.getFieldValue)(g,T):Q===R?T:Q(g,T,I(this,void 0,{typename:K,fieldName:F.name.value,field:F,variables:_.variables},_,l||Object.create(null)))},L}();function I(L,g,T,c,_){var l=L.getStoreFieldName(T),F=(0,s.E_)(l),K=T.variables||c.variables,Q=c.store,$=Q.getFieldValue,ce=Q.toReference,ge=Q.canRead;return{args:a(T),field:T.field||null,fieldName:F,storeFieldName:l,variables:K,isReference:r.Yk,toReference:ce,storage:_,cache:L.cache,canRead:ge,readField:function(Z,pe){var ae="string"==typeof Z?{fieldName:Z,from:pe}:(0,t.pi)({},Z);return void 0===ae.from&&(ae.from=g),void 0===ae.variables&&(ae.variables=K),L.readField(ae,c)},mergeObjects:C($)}}function C(L){return function(T,c){if(Array.isArray(T)||Array.isArray(c))throw new d.ej(2);if(T&&"object"==typeof T&&c&&"object"==typeof c){var _=L(T,"__typename"),l=L(c,"__typename");return _&&l&&_!==l||!(0,s.j)(T)||!(0,s.j)(c)?c:(0,t.pi)((0,t.pi)({},T),c)}return c}}function P(L){return function(g,T){return g?T.fieldName+":"+JSON.stringify(q(g,L,!1)):T.fieldName}}function j(L){var g=new w.Gl(n.m);return function(T,c){var _;if(c.selectionSet&&c.fragmentMap){var l=g.lookupArray([c.selectionSet,c.fragmentMap]);_=l.aliasMap||(l.aliasMap=V(c.selectionSet,c.fragmentMap))}var F=c.keyObject=q(T,L,!0,_);return c.typename+":"+JSON.stringify(F)}}function V(L,g){var T=Object.create(null),c=new Set([L]);return c.forEach(function(_){_.selections.forEach(function(l){if((0,r.My)(l)){if(l.alias){var F=l.alias.value,K=l.name.value;K!==F&&((T.aliases||(T.aliases=Object.create(null)))[K]=F)}l.selectionSet&&((T.subsets||(T.subsets=Object.create(null)))[l.name.value]=V(l.selectionSet,g))}else{var ce=(0,i.hi)(l,g);ce&&c.add(ce.selectionSet)}})}),T}function q(L,g,T,c){var l,_=Object.create(null);return g.forEach(function(F){if(Array.isArray(F)){if("string"==typeof l){var K=c&&c.subsets;_[l]=q(L[l],F,T,K&&K[l])}}else{var $=c&&c.aliases,ce=$&&$[F]||F;s.RI.call(L,ce)?_[l=F]=L[ce]:((0,d.kG)(!T,3),l=void 0)}}),_}},62068:(ue,M,p)=>{"use strict";p.d(M,{QS:()=>e,_v:()=>s,ab:()=>d,li:()=>i});var t=p(86438),d=new(p(91971).g7),r=new WeakMap;function n(u){var h=r.get(u);return h||r.set(u,h={vars:new Set,dep:(0,t.dP)()}),h}function i(u){n(u).vars.forEach(function(h){return h.forgetCache(u)})}function s(u){n(u).vars.forEach(function(h){return h.attachCache(u)})}function e(u){var h=new Set,y=new Set,m=function(D){if(arguments.length>0){if(u!==D){u=D,h.forEach(function(P){n(P).dep.dirty(m),a(P)});var I=Array.from(y);y.clear(),I.forEach(function(P){return P(u)})}}else{var C=d.getValue();C&&(R(C),n(C).dep(m))}return u};m.onNextChange=function(D){return y.add(D),function(){y.delete(D)}};var R=m.attachCache=function(D){return h.add(D),n(D).vars.add(m),m};return m.forgetCache=function(D){return h.delete(D)},m}function a(u){u.broadcastWatches&&u.broadcastWatches()}},59799:()=>{},97307:(ue,M,p)=>{"use strict";p.d(M,{f:()=>J,J:()=>ie});var t=p(60162),w=p(73567),d=p(69924),r=p(6322),n=p(31882),s=p(73575),e=p(52485),a=p(18770);function u(A){return A.errors&&A.errors.length>0||!1}var h=p(61952),y=p(57993),m=p(64323),R=p(31220),D=p(20316),I=p.n(D),C=p(73418),P=p(42903);function j(A){return A&&"function"==typeof A.then}var V=function(A){function b(x){var N=A.call(this,function(W){return N.addObserver(W),function(){return N.removeObserver(W)}})||this;return N.observers=new Set,N.addCount=0,N.promise=new Promise(function(W,ee){N.resolve=W,N.reject=ee}),N.handlers={next:function(W){null!==N.sub&&(N.latest=["next",W],(0,C.p)(N.observers,"next",W))},error:function(W){var ee=N.sub;null!==ee&&(ee&&Promise.resolve().then(function(){return ee.unsubscribe()}),N.sub=null,N.latest=["error",W],N.reject(W),(0,C.p)(N.observers,"error",W))},complete:function(){if(null!==N.sub){var W=N.sources.shift();W?j(W)?W.then(function(ee){return N.sub=ee.subscribe(N.handlers)}):N.sub=W.subscribe(N.handlers):(N.sub=null,N.latest&&"next"===N.latest[0]?N.resolve(N.latest[1]):N.resolve(),(0,C.p)(N.observers,"complete"))}}},N.cancel=function(W){N.reject(W),N.sources=[],N.handlers.complete()},N.promise.catch(function(W){}),"function"==typeof x&&(x=[new(I())(x)]),j(x)?x.then(function(W){return N.start(W)},N.handlers.error):N.start(x),N}return(0,t.ZT)(b,A),b.prototype.start=function(x){void 0===this.sub&&(this.sources=Array.from(x),this.handlers.complete())},b.prototype.deliverLastMessage=function(x){if(this.latest){var N=this.latest[0],W=x[N];W&&W.call(x,this.latest[1]),null===this.sub&&"next"===N&&x.complete&&x.complete()}},b.prototype.addObserver=function(x){this.observers.has(x)||(this.deliverLastMessage(x),this.observers.add(x),++this.addCount)},b.prototype.removeObserver=function(x,N){this.observers.delete(x)&&--this.addCount<1&&!N&&this.handlers.error(new Error("Observable cancelled prematurely"))},b.prototype.cleanup=function(x){var N=this,W=!1,ee=function(){W||(W=!0,N.observers.delete(se),x())},se={next:ee,error:ee,complete:ee},_e=this.addCount;this.addObserver(se),this.addCount=_e},b}(I());function q(A,b,x){return new(I())(function(N){var W=N.next,ee=N.error,se=N.complete,_e=0,ye=!1,Re={then:function(U){return new Promise(function(v){return v(U())})}};function De(U,v){return U?function(O){++_e;var k=function(){return U(O)};Re=Re.then(k,k).then(function(re){--_e,W&&W.call(N,re),ye&&Me.complete()},function(re){throw--_e,re}).catch(function(re){ee&&ee.call(N,re)})}:function(O){return v&&v.call(N,O)}}var Me={next:De(b,W),error:De(x,ee),complete:function(){ye=!0,_e||se&&se.call(N)}},ne=A.subscribe(Me);return function(){return ne.unsubscribe()}})}(0,P.D)(V);var L=p(68104),g=p(27351),T=p(87972),c=p(74270),_=p(52647),l=p(77260),F=p(7882),K=p(62068),Q=function(){function A(b){var N=b.client,W=b.resolvers,ee=b.fragmentMatcher;this.cache=b.cache,N&&(this.client=N),W&&this.addResolvers(W),ee&&this.setFragmentMatcher(ee)}return A.prototype.addResolvers=function(b){var x=this;this.resolvers=this.resolvers||{},Array.isArray(b)?b.forEach(function(N){x.resolvers=(0,_.Ee)(x.resolvers,N)}):this.resolvers=(0,_.Ee)(this.resolvers,b)},A.prototype.setResolvers=function(b){this.resolvers={},this.addResolvers(b)},A.prototype.getResolvers=function(){return this.resolvers||{}},A.prototype.runResolvers=function(b){var x=b.document,N=b.remoteResult,W=b.context,ee=b.variables,se=b.onlyRunForcedResolvers,_e=void 0!==se&&se;return(0,t.mG)(this,void 0,void 0,function(){return(0,t.Jh)(this,function(ye){return x?[2,this.resolveDocument(x,N.data,W,ee,this.fragmentMatcher,_e).then(function(Re){return(0,t.pi)((0,t.pi)({},N),{data:Re.result})})]:[2,N]})})},A.prototype.setFragmentMatcher=function(b){this.fragmentMatcher=b},A.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},A.prototype.clientQuery=function(b){return(0,R.FS)(["client"],b)&&this.resolvers?b:null},A.prototype.serverQuery=function(b){return(0,m.ob)(b)},A.prototype.prepareContext=function(b){var x=this.cache;return(0,t.pi)((0,t.pi)({},b),{cache:x,getCacheKey:function(N){return x.identify(N)}})},A.prototype.addExportedVariables=function(b,x,N){return void 0===x&&(x={}),void 0===N&&(N={}),(0,t.mG)(this,void 0,void 0,function(){return(0,t.Jh)(this,function(W){return b?[2,this.resolveDocument(b,this.buildRootValueFromCache(b,x)||{},this.prepareContext(N),x).then(function(ee){return(0,t.pi)((0,t.pi)({},x),ee.exportedVariables)})]:[2,(0,t.pi)({},x)]})})},A.prototype.shouldForceResolvers=function(b){var x=!1;return(0,c.Vn)(b,{Directive:{enter:function(N){if("client"===N.name.value&&N.arguments&&(x=N.arguments.some(function(W){return"always"===W.name.value&&"BooleanValue"===W.value.kind&&!0===W.value.value})))return c.$_}}}),x},A.prototype.buildRootValueFromCache=function(b,x){return this.cache.diff({query:(0,m.aL)(b),variables:x,returnPartialData:!0,optimistic:!1}).result},A.prototype.resolveDocument=function(b,x,N,W,ee,se){return void 0===N&&(N={}),void 0===W&&(W={}),void 0===ee&&(ee=function(){return!0}),void 0===se&&(se=!1),(0,t.mG)(this,void 0,void 0,function(){var _e,ye,Re,De,Me,ne,U,v,O;return(0,t.Jh)(this,function(k){return _e=(0,y.p$)(b),ye=(0,y.kU)(b),Re=(0,l.F)(ye),Me=(De=_e.operation)?De.charAt(0).toUpperCase()+De.slice(1):"Query",U=(ne=this).cache,v=ne.client,O={fragmentMap:Re,context:(0,t.pi)((0,t.pi)({},N),{cache:U,client:v}),variables:W,fragmentMatcher:ee,defaultOperationType:Me,exportedVariables:{},onlyRunForcedResolvers:se},[2,this.resolveSelectionSet(_e.selectionSet,x,O).then(function(re){return{result:re,exportedVariables:O.exportedVariables}})]})})},A.prototype.resolveSelectionSet=function(b,x,N){return(0,t.mG)(this,void 0,void 0,function(){var W,ee,se,_e,Re=this;return(0,t.Jh)(this,function(De){return W=N.fragmentMap,ee=N.context,se=N.variables,_e=[x],[2,Promise.all(b.selections.map(function(Me){return(0,t.mG)(Re,void 0,void 0,function(){var ne;return(0,t.Jh)(this,function(v){return(0,R.LZ)(Me,se)?(0,F.My)(Me)?[2,this.resolveField(Me,x,N).then(function(O){var k;typeof O<"u"&&_e.push(((k={})[(0,F.u2)(Me)]=O,k))})]:((0,F.Ao)(Me)?ne=Me:(0,w.kG)(ne=W[Me.name.value],11),ne&&ne.typeCondition&&N.fragmentMatcher(x,ne.typeCondition.name.value,ee)?[2,this.resolveSelectionSet(ne.selectionSet,x,N).then(function(O){_e.push(O)})]:[2]):[2]})})})).then(function(){return(0,_.bw)(_e)})]})})},A.prototype.resolveField=function(b,x,N){return(0,t.mG)(this,void 0,void 0,function(){var W,ee,se,_e,ye,Re,De,Me,ne,U=this;return(0,t.Jh)(this,function(v){return W=N.variables,ee=b.name.value,se=(0,F.u2)(b),_e=ee!==se,ye=x[se]||x[ee],Re=Promise.resolve(ye),(!N.onlyRunForcedResolvers||this.shouldForceResolvers(b))&&(De=x.__typename||N.defaultOperationType,(Me=this.resolvers&&this.resolvers[De])&&(ne=Me[_e?ee:se])&&(Re=Promise.resolve(K.ab.withValue(this.cache,ne,[x,(0,F.NC)(b,W),N.context,{field:b,fragmentMap:N.fragmentMap}])))),[2,Re.then(function(O){return void 0===O&&(O=ye),b.directives&&b.directives.forEach(function(k){"export"===k.name.value&&k.arguments&&k.arguments.forEach(function(re){"as"===re.name.value&&"StringValue"===re.value.kind&&(N.exportedVariables[re.value.value]=O)})}),b.selectionSet&&null!=O?Array.isArray(O)?U.resolveSubSelectedArray(b,O,N):b.selectionSet?U.resolveSelectionSet(b.selectionSet,O,N):void 0:O})]})})},A.prototype.resolveSubSelectedArray=function(b,x,N){var W=this;return Promise.all(x.map(function(ee){return null===ee?null:Array.isArray(ee)?W.resolveSubSelectedArray(b,ee,N):b.selectionSet?W.resolveSelectionSet(b.selectionSet,ee,N):void 0}))},A}(),$=new(a.m?WeakMap:Map);function ce(A,b){var x=A[b];"function"==typeof x&&(A[b]=function(){return $.set(A,($.get(A)+1)%1e15),x.apply(this,arguments)})}function ge(A){A.notifyTimeout&&(clearTimeout(A.notifyTimeout),A.notifyTimeout=void 0)}var Z=function(){function A(b){this.cache=b,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.diff=null,this.observableQuery=null,$.has(b)||($.set(b,0),ce(b,"evict"),ce(b,"modify"),ce(b,"reset"))}return A.prototype.init=function(b){var x=b.networkStatus||T.I.loading;return this.variables&&this.networkStatus!==T.I.loading&&!(0,e.D)(this.variables,b.variables)&&(x=T.I.setVariables),(0,e.D)(b.variables,this.variables)||(this.diff=null),Object.assign(this,{document:b.document,variables:b.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:x}),b.observableQuery&&this.setObservableQuery(b.observableQuery),b.lastRequestId&&(this.lastRequestId=b.lastRequestId),this},A.prototype.reset=function(){ge(this),this.diff=null,this.dirty=!1},A.prototype.getDiff=function(b){return void 0===b&&(b=this.variables),this.diff&&(0,e.D)(b,this.variables)?this.diff:(this.updateWatch(this.variables=b),this.diff=this.cache.diff({query:this.document,variables:b,returnPartialData:!0,optimistic:!0}))},A.prototype.setDiff=function(b){var x=this,N=this.diff;this.diff=b,!this.dirty&&(b&&b.result)!==(N&&N.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return x.notify()},0)))},A.prototype.setObservableQuery=function(b){var x=this;b!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=b,b?(b.queryInfo=this,this.listeners.add(this.oqListener=function(){x.getDiff().fromOptimisticTransaction?b.observe():b.reobserve()})):delete this.oqListener)},A.prototype.notify=function(){var b=this;ge(this),this.shouldNotify()&&this.listeners.forEach(function(x){return x(b)}),this.dirty=!1},A.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,T.O)(this.networkStatus)&&this.observableQuery){var b=this.observableQuery.options.fetchPolicy;if("cache-only"!==b&&"cache-and-network"!==b)return!1}return!0},A.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),delete this.cancel,this.subscriptions.forEach(function(x){return x.unsubscribe()});var b=this.observableQuery;b&&b.stopPolling()}},A.prototype.cancel=function(){},A.prototype.updateWatch=function(b){var x=this;void 0===b&&(b=this.variables);var N=this.observableQuery;N&&"no-cache"===N.options.fetchPolicy||(!this.lastWatch||this.lastWatch.query!==this.document||!(0,e.D)(b,this.lastWatch.variables))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:b,optimistic:!0,callback:function(W){return x.setDiff(W)}}))},A.prototype.shouldWrite=function(b,x){var N=this.lastWrite;return!(N&&N.dmCount===$.get(this.cache)&&(0,e.D)(x,N.variables)&&(0,e.D)(b.data,N.result.data))},A.prototype.markResult=function(b,x,N){var W=this;this.graphQLErrors=(0,h.O)(b.errors)?b.errors:[],this.reset(),"no-cache"===x.fetchPolicy?this.diff={result:b.data,complete:!0}:!this.stopped&&N&&(pe(b,x.errorPolicy)?this.cache.performTransaction(function(ee){if(W.shouldWrite(b,x.variables))ee.writeQuery({query:W.document,data:b.data,variables:x.variables}),W.lastWrite={result:b,variables:x.variables,dmCount:$.get(W.cache)};else if(W.diff&&W.diff.complete)return void(b.data=W.diff.result);var se=ee.diff({query:W.document,variables:x.variables,returnPartialData:!0,optimistic:!0});W.stopped||W.updateWatch(x.variables),W.diff=se,se.complete&&(b.data=se.result)}):this.lastWrite=void 0)},A.prototype.markReady=function(){return this.networkError=null,this.networkStatus=T.I.ready},A.prototype.markError=function(b){return this.networkStatus=T.I.error,this.lastWrite=void 0,this.reset(),b.graphQLErrors&&(this.graphQLErrors=b.graphQLErrors),b.networkError&&(this.networkError=b.networkError),b},A}();function pe(A,b){void 0===b&&(b="none");var x="ignore"===b||"all"===b,N=!u(A);return!N&&x&&A.data&&(N=!0),N}var ae=Object.prototype.hasOwnProperty,z=function(){function A(b){var x=b.cache,N=b.link,W=b.queryDeduplication,ee=void 0!==W&&W,se=b.onBroadcast,_e=b.ssrMode,ye=void 0!==_e&&_e,Re=b.clientAwareness,De=void 0===Re?{}:Re,Me=b.localState,ne=b.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(a.m?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=x,this.link=N,this.queryDeduplication=ee,this.clientAwareness=De,this.localState=Me||new Q({cache:x}),this.ssrMode=ye,this.assumeImmutableResults=!!ne,(this.onBroadcast=se)&&(this.mutationStore=Object.create(null))}return A.prototype.stop=function(){var b=this;this.queries.forEach(function(x,N){b.stopQueryNoBroadcast(N)}),this.cancelPendingFetches(new w.ej(12))},A.prototype.cancelPendingFetches=function(b){this.fetchCancelFns.forEach(function(x){return x(b)}),this.fetchCancelFns.clear()},A.prototype.mutate=function(b){var x=b.mutation,N=b.variables,W=b.optimisticResponse,ee=b.updateQueries,se=b.refetchQueries,_e=void 0===se?[]:se,ye=b.awaitRefetchQueries,Re=void 0!==ye&&ye,De=b.update,Me=b.errorPolicy,ne=void 0===Me?"none":Me,U=b.fetchPolicy,v=b.context,O=void 0===v?{}:v;return(0,t.mG)(this,void 0,void 0,function(){var k,re,de;return(0,t.Jh)(this,function(xe){switch(xe.label){case 0:return(0,w.kG)(x,13),(0,w.kG)(!U||"no-cache"===U,14),k=this.generateMutationId(),x=this.transform(x).document,N=this.getVariables(x,N),this.transform(x).hasClientExports?[4,this.localState.addExportedVariables(x,N,O)]:[3,2];case 1:N=xe.sent(),xe.label=2;case 2:return re=this.mutationStore&&(this.mutationStore[k]={mutation:x,variables:N,loading:!0,error:null}),W&&this.markMutationOptimistic(W,{mutationId:k,document:x,variables:N,errorPolicy:ne,updateQueries:ee,update:De}),this.broadcastQueries(),de=this,[2,new Promise(function(Te,te){var he,ve;de.getObservableFromLink(x,(0,t.pi)((0,t.pi)({},O),{optimisticResponse:W}),N,!1).subscribe({next:function(Oe){if(u(Oe)&&"none"===ne)ve=new L.c({graphQLErrors:Oe.errors});else{if(re&&(re.loading=!1,re.error=null),"no-cache"!==U)try{de.markMutationResult({mutationId:k,result:Oe,document:x,variables:N,errorPolicy:ne,updateQueries:ee,update:De})}catch(Ie){return void(ve=new L.c({networkError:Ie}))}he=Oe}},error:function(Oe){re&&(re.loading=!1,re.error=Oe),W&&de.cache.removeOptimistic(k),de.broadcastQueries(),te(new L.c({networkError:Oe}))},complete:function(){if(ve&&re&&(re.loading=!1,re.error=ve),W&&de.cache.removeOptimistic(k),de.broadcastQueries(),ve)te(ve);else{"function"==typeof _e&&(_e=_e(he));var Oe=[];(0,h.O)(_e)&&_e.forEach(function(Ie){if("string"==typeof Ie)de.queries.forEach(function(qe){var ze=qe.observableQuery;ze&&ze.hasObservers()&&ze.queryName===Ie&&Oe.push(ze.refetch())});else{var Ue={query:Ie.query,variables:Ie.variables,fetchPolicy:"network-only"};Ie.context&&(Ue.context=Ie.context),Oe.push(de.query(Ue))}}),Promise.all(Re?Oe:[]).then(function(){"ignore"===ne&&he&&u(he)&&delete he.errors,Te(he)},te)}}})})]}})})},A.prototype.markMutationResult=function(b,x){var N=this;if(void 0===x&&(x=this.cache),pe(b.result,b.errorPolicy)){var W=[{result:b.result.data,dataId:"ROOT_MUTATION",query:b.document,variables:b.variables}],ee=b.updateQueries;ee&&this.queries.forEach(function(se,_e){var ye=se.observableQuery,Re=ye&&ye.queryName;if(Re&&ae.call(ee,Re)){var De=ee[Re],Me=N.queries.get(_e),ne=Me.document,U=Me.variables,v=x.diff({query:ne,variables:U,returnPartialData:!0,optimistic:!1}),O=v.result;if(v.complete&&O){var re=De(O,{mutationResult:b.result,queryName:ne&&(0,y.rY)(ne)||void 0,queryVariables:U});re&&W.push({result:re,dataId:"ROOT_QUERY",query:ne,variables:U})}}}),x.performTransaction(function(se){W.forEach(function(ye){return se.write(ye)});var _e=b.update;_e&&_e(se,b.result)},null)}},A.prototype.markMutationOptimistic=function(b,x){var N=this,W="function"==typeof b?b(x.variables):b;return this.cache.recordOptimisticTransaction(function(ee){try{N.markMutationResult((0,t.pi)((0,t.pi)({},x),{result:{data:W}}),ee)}catch{}},x.mutationId)},A.prototype.fetchQuery=function(b,x,N){return this.fetchQueryObservable(b,x,N).promise},A.prototype.getQueryStore=function(){var b=Object.create(null);return this.queries.forEach(function(x,N){b[N]={variables:x.variables,networkStatus:x.networkStatus,networkError:x.networkError,graphQLErrors:x.graphQLErrors}}),b},A.prototype.resetErrors=function(b){var x=this.queries.get(b);x&&(x.networkError=void 0,x.graphQLErrors=[])},A.prototype.transform=function(b){var x=this.transformCache;if(!x.has(b)){var N=this.cache.transformDocument(b),W=(0,m.Fo)(this.cache.transformForLink(N)),ee=this.localState.clientQuery(N),se=W&&this.localState.serverQuery(W),_e={document:N,hasClientExports:(0,R.mj)(N),hasForcedResolvers:this.localState.shouldForceResolvers(N),clientQuery:ee,serverQuery:se,defaultVars:(0,y.O4)((0,y.$H)(N))},ye=function(Re){Re&&!x.has(Re)&&x.set(Re,_e)};ye(b),ye(N),ye(ee),ye(se)}return x.get(b)},A.prototype.getVariables=function(b,x){return(0,t.pi)((0,t.pi)({},this.transform(b).defaultVars),x)},A.prototype.watchQuery=function(b){typeof(b=(0,t.pi)((0,t.pi)({},b),{variables:this.getVariables(b.query,b.variables)})).notifyOnNetworkStatusChange>"u"&&(b.notifyOnNetworkStatusChange=!1);var x=new Z(this.cache),N=new g.u({queryManager:this,queryInfo:x,options:b});return this.queries.set(N.queryId,x),x.init({document:b.query,observableQuery:N,variables:b.variables}),N},A.prototype.query=function(b){var x=this;(0,w.kG)(b.query,15),(0,w.kG)("Document"===b.query.kind,16),(0,w.kG)(!b.returnPartialData,17),(0,w.kG)(!b.pollInterval,18);var N=this.generateQueryId();return this.fetchQuery(N,b).finally(function(){return x.stopQuery(N)})},A.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},A.prototype.generateRequestId=function(){return this.requestIdCounter++},A.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},A.prototype.stopQueryInStore=function(b){this.stopQueryInStoreNoBroadcast(b),this.broadcastQueries()},A.prototype.stopQueryInStoreNoBroadcast=function(b){var x=this.queries.get(b);x&&x.stop()},A.prototype.clearStore=function(){return this.cancelPendingFetches(new w.ej(19)),this.queries.forEach(function(b){b.observableQuery?b.networkStatus=T.I.loading:b.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},A.prototype.resetStore=function(){var b=this;return this.clearStore().then(function(){return b.reFetchObservableQueries()})},A.prototype.reFetchObservableQueries=function(b){var x=this;void 0===b&&(b=!1);var N=[];return this.queries.forEach(function(W,ee){var se=W.observableQuery;if(se&&se.hasObservers()){var _e=se.options.fetchPolicy;se.resetLastResults(),"cache-only"!==_e&&(b||"standby"!==_e)&&N.push(se.refetch()),x.getQuery(ee).setDiff(null)}}),this.broadcastQueries(),Promise.all(N)},A.prototype.setObservableQuery=function(b){this.getQuery(b.queryId).setObservableQuery(b)},A.prototype.startGraphQLSubscription=function(b){var x=this,N=b.query,W=b.fetchPolicy,ee=b.errorPolicy,se=b.variables,_e=b.context,ye=void 0===_e?{}:_e;N=this.transform(N).document,se=this.getVariables(N,se);var Re=function(Me){return x.getObservableFromLink(N,ye,Me,!1).map(function(ne){if("no-cache"!==W&&(pe(ne,ee)&&x.cache.write({query:N,result:ne.data,dataId:"ROOT_SUBSCRIPTION",variables:Me}),x.broadcastQueries()),u(ne))throw new L.c({graphQLErrors:ne.errors});return ne})};if(this.transform(N).hasClientExports){var De=this.localState.addExportedVariables(N,se,ye).then(Re);return new(I())(function(Me){var ne=null;return De.then(function(U){return ne=U.subscribe(Me)},Me.error),function(){return ne&&ne.unsubscribe()}})}return Re(se)},A.prototype.stopQuery=function(b){this.stopQueryNoBroadcast(b),this.broadcastQueries()},A.prototype.stopQueryNoBroadcast=function(b){this.stopQueryInStoreNoBroadcast(b),this.removeQuery(b)},A.prototype.removeQuery=function(b){this.fetchCancelFns.delete(b),this.getQuery(b).stop(),this.queries.delete(b)},A.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(b){return b.notify()})},A.prototype.getLocalState=function(){return this.localState},A.prototype.getObservableFromLink=function(b,x,N,W){var se,ee=this;void 0===W&&(W=null!==(se=x?.queryDeduplication)&&void 0!==se?se:this.queryDeduplication);var _e,ye=this.transform(b).serverQuery;if(ye){var De=this.inFlightLinkObservables,Me=this.link,ne={query:ye,variables:N,operationName:(0,y.rY)(ye)||void 0,context:this.prepareContext((0,t.pi)((0,t.pi)({},x),{forceFetch:!W}))};if(x=ne.context,W){var U=De.get(ye)||new Map;De.set(ye,U);var v=JSON.stringify(N);if(!(_e=U.get(v))){var O=new V([(0,r.h)(Me,ne)]);U.set(v,_e=O),O.cleanup(function(){U.delete(v)&&U.size<1&&De.delete(ye)})}}else _e=new V([(0,r.h)(Me,ne)])}else _e=new V([I().of({data:{}})]),x=this.prepareContext(x);var k=this.transform(b).clientQuery;return k&&(_e=q(_e,function(re){return ee.localState.runResolvers({document:k,remoteResult:re,context:x,variables:N})})),_e},A.prototype.getResultsFromLink=function(b,x,N){var W=b.lastRequestId=this.generateRequestId();return q(this.getObservableFromLink(b.document,N.context,N.variables),function(ee){var se=(0,h.O)(ee.errors);if(W>=b.lastRequestId){if(se&&"none"===N.errorPolicy)throw b.markError(new L.c({graphQLErrors:ee.errors}));b.markResult(ee,N,x),b.markReady()}var _e={data:ee.data,loading:!1,networkStatus:b.networkStatus||T.I.ready};return se&&"ignore"!==N.errorPolicy&&(_e.errors=ee.errors),_e},function(ee){var se=(0,L.M)(ee)?ee:new L.c({networkError:ee});throw W>=b.lastRequestId&&b.markError(se),se})},A.prototype.fetchQueryObservable=function(b,x,N){var W=this;void 0===N&&(N=T.I.loading);var ee=this.transform(x.query).document,se=this.getVariables(ee,x.variables),_e=this.getQuery(b),ye=_e.networkStatus,Re=x.fetchPolicy,De=void 0===Re?"cache-first":Re,Me=x.errorPolicy,ne=void 0===Me?"none":Me,U=x.returnPartialData,v=void 0!==U&&U,O=x.notifyOnNetworkStatusChange,k=void 0!==O&&O,re=x.context,de=void 0===re?{}:re;("cache-first"===De||"cache-and-network"===De||"network-only"===De||"no-cache"===De)&&k&&"number"==typeof ye&&ye!==N&&(0,T.O)(N)&&("cache-first"!==De&&(De="cache-and-network"),v=!0);var Te=Object.assign({},x,{query:ee,variables:se,fetchPolicy:De,errorPolicy:ne,returnPartialData:v,notifyOnNetworkStatusChange:k,context:de}),te=function(ve){return Te.variables=ve,W.fetchQueryByPolicy(_e,Te,N)};this.fetchCancelFns.set(b,function(ve){Promise.resolve().then(function(){return he.cancel(ve)})});var he=new V(this.transform(Te.query).hasClientExports?this.localState.addExportedVariables(Te.query,Te.variables,Te.context).then(te):te(Te.variables));return he.cleanup(function(){W.fetchCancelFns.delete(b);var ve=x.nextFetchPolicy;ve&&(x.nextFetchPolicy=void 0,x.fetchPolicy="function"==typeof ve?ve.call(x,x.fetchPolicy||"cache-first"):ve)}),he},A.prototype.fetchQueryByPolicy=function(b,x,N){var W=this,ee=x.query,se=x.variables,_e=x.fetchPolicy,ye=x.errorPolicy,Re=x.returnPartialData,De=x.context;b.init({document:ee,variables:se,networkStatus:N});var Me=function(){return b.getDiff(se)},ne=function(O,k){void 0===k&&(k=b.networkStatus||T.I.loading);var re=O.result,de=function(xe){return I().of((0,t.pi)({data:xe,loading:(0,T.O)(k),networkStatus:k},O.complete?null:{partial:!0}))};return W.transform(ee).hasForcedResolvers?W.localState.runResolvers({document:ee,remoteResult:{data:re},context:De,variables:se,onlyRunForcedResolvers:!0}).then(function(xe){return de(xe.data)}):de(re)},U=function(O){return W.getResultsFromLink(b,O,{variables:se,context:De,fetchPolicy:_e,errorPolicy:ye})};switch(_e){default:case"cache-first":return(v=Me()).complete?[ne(v,b.markReady())]:Re?[ne(v),U(!0)]:[U(!0)];case"cache-and-network":var v;return(v=Me()).complete||Re?[ne(v),U(!0)]:[U(!0)];case"cache-only":return[ne(Me(),b.markReady())];case"network-only":return[U(!0)];case"no-cache":return[U(!1)];case"standby":return[]}},A.prototype.getQuery=function(b){return b&&!this.queries.has(b)&&this.queries.set(b,new Z(this.cache)),this.queries.get(b)},A.prototype.prepareContext=function(b){void 0===b&&(b={});var x=this.localState.prepareContext(b);return(0,t.pi)((0,t.pi)({},x),{clientAwareness:this.clientAwareness})},A}();function ie(A,b){return(0,n.o)(A,b,b.variables&&{variables:(0,t.pi)((0,t.pi)({},A.variables),b.variables)})}var J=function(){function A(b){var x=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var N=b.uri,se=b.cache,_e=b.ssrMode,ye=void 0!==_e&&_e,Re=b.ssrForceFetchDelay,De=void 0===Re?0:Re,Me=b.connectToDevTools,ne=void 0===Me?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:Me,U=b.queryDeduplication,v=void 0===U||U,O=b.defaultOptions,k=b.assumeImmutableResults,re=void 0!==k&&k,de=b.resolvers,xe=b.typeDefs,Te=b.fragmentMatcher,te=b.name,he=b.version,ve=b.link;if(ve||(ve=N?new s.u({uri:N,credentials:b.credentials,headers:b.headers}):d.i.empty()),!se)throw new w.ej(9);this.link=ve,this.cache=se,this.disableNetworkFetches=ye||De>0,this.queryDeduplication=v,this.defaultOptions=O||{},this.typeDefs=xe,De&&setTimeout(function(){return x.disableNetworkFetches=!1},De),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),ne&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),this.version="3.3.20",this.localState=new Q({cache:se,client:this,resolvers:de,fragmentMatcher:Te}),this.queryManager=new z({cache:this.cache,link:this.link,queryDeduplication:v,ssrMode:ye,clientAwareness:{name:te,version:he},localState:this.localState,assumeImmutableResults:re,onBroadcast:ne?function(){x.devToolsHookCb&&x.devToolsHookCb({action:{},state:{queries:x.queryManager.getQueryStore(),mutations:x.queryManager.mutationStore||{}},dataWithOptimisticResults:x.cache.extract(!0)})}:void 0})}return A.prototype.stop=function(){this.queryManager.stop()},A.prototype.watchQuery=function(b){return this.defaultOptions.watchQuery&&(b=ie(this.defaultOptions.watchQuery,b)),this.disableNetworkFetches&&("network-only"===b.fetchPolicy||"cache-and-network"===b.fetchPolicy)&&(b=(0,t.pi)((0,t.pi)({},b),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(b)},A.prototype.query=function(b){return this.defaultOptions.query&&(b=ie(this.defaultOptions.query,b)),(0,w.kG)("cache-and-network"!==b.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===b.fetchPolicy&&(b=(0,t.pi)((0,t.pi)({},b),{fetchPolicy:"cache-first"})),this.queryManager.query(b)},A.prototype.mutate=function(b){return this.defaultOptions.mutate&&(b=ie(this.defaultOptions.mutate,b)),this.queryManager.mutate(b)},A.prototype.subscribe=function(b){return this.queryManager.startGraphQLSubscription(b)},A.prototype.readQuery=function(b,x){return void 0===x&&(x=!1),this.cache.readQuery(b,x)},A.prototype.readFragment=function(b,x){return void 0===x&&(x=!1),this.cache.readFragment(b,x)},A.prototype.writeQuery=function(b){this.cache.writeQuery(b),this.queryManager.broadcastQueries()},A.prototype.writeFragment=function(b){this.cache.writeFragment(b),this.queryManager.broadcastQueries()},A.prototype.__actionHookForDevTools=function(b){this.devToolsHookCb=b},A.prototype.__requestRaw=function(b){return(0,r.h)(this.link,b)},A.prototype.resetStore=function(){var b=this;return Promise.resolve().then(function(){return b.queryManager.clearStore()}).then(function(){return Promise.all(b.resetStoreCallbacks.map(function(x){return x()}))}).then(function(){return b.reFetchObservableQueries()})},A.prototype.clearStore=function(){var b=this;return Promise.resolve().then(function(){return b.queryManager.clearStore()}).then(function(){return Promise.all(b.clearStoreCallbacks.map(function(x){return x()}))})},A.prototype.onResetStore=function(b){var x=this;return this.resetStoreCallbacks.push(b),function(){x.resetStoreCallbacks=x.resetStoreCallbacks.filter(function(N){return N!==b})}},A.prototype.onClearStore=function(b){var x=this;return this.clearStoreCallbacks.push(b),function(){x.clearStoreCallbacks=x.clearStoreCallbacks.filter(function(N){return N!==b})}},A.prototype.reFetchObservableQueries=function(b){return this.queryManager.reFetchObservableQueries(b)},A.prototype.extract=function(b){return this.cache.extract(b)},A.prototype.restore=function(b){return this.cache.restore(b)},A.prototype.addResolvers=function(b){this.localState.addResolvers(b)},A.prototype.setResolvers=function(b){this.localState.setResolvers(b)},A.prototype.getResolvers=function(){return this.localState.getResolvers()},A.prototype.setLocalStateFragmentMatcher=function(b){this.localState.setFragmentMatcher(b)},A.prototype.setLink=function(b){this.link=this.queryManager.link=b},A}()},27351:(ue,M,p)=>{"use strict";p.d(M,{u:()=>C});var t=p(60162),w=p(73567),d=p(52485),r=p(87972),n=Object.prototype.toString;function i(j){return s(j)}function s(j,V){switch(n.call(j)){case"[object Array]":if((V=V||new Map).has(j))return V.get(j);var q=j.slice(0);return V.set(j,q),q.forEach(function(g,T){q[T]=s(g,V)}),q;case"[object Object]":if((V=V||new Map).has(j))return V.get(j);var L=Object.create(Object.getPrototypeOf(j));return V.set(j,L),Object.keys(j).forEach(function(g){L[g]=s(j[g],V)}),L;default:return j}}var e=p(73418),a=p(57993),u=p(61952),h=p(20316),y=p.n(h),m=p(42903),R=p(31882),D=function(){function j(V,q,L,g){this.observer=V,this.options=q,this.fetch=L,this.shouldFetch=g}return j.prototype.reobserve=function(V,q){V?this.updateOptions(V):this.updatePolling();var L=this.fetch(this.options,q);return this.concast&&this.concast.removeObserver(this.observer,!0),L.addObserver(this.observer),(this.concast=L).promise},j.prototype.updateOptions=function(V){return Object.assign(this.options,(0,R.o)(V)),this.updatePolling(),this},j.prototype.stop=function(){this.concast&&(this.concast.removeObserver(this.observer),delete this.concast),this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),this.options.pollInterval=0,this.updatePolling())},j.prototype.updatePolling=function(){var V=this,L=this.pollingInfo,g=this.options.pollInterval;if(g){if((!L||L.interval!==g)&&((0,w.kG)(g,20),!1!==this.shouldFetch)){(L||(this.pollingInfo={})).interval=g;var c=function(){V.pollingInfo&&(V.shouldFetch&&V.shouldFetch()?V.reobserve({fetchPolicy:"network-only",nextFetchPolicy:V.options.fetchPolicy||"cache-first"},r.I.poll).then(_,_):_())},_=function(){var l=V.pollingInfo;l&&(clearTimeout(l.timeout),l.timeout=setTimeout(c,l.interval))};_()}}else L&&(clearTimeout(L.timeout),delete this.pollingInfo)},j}(),C=function(j){function V(q){var L=q.queryManager,g=q.queryInfo,T=q.options,c=j.call(this,function(l){return c.onSubscribe(l)})||this;c.observers=new Set,c.subscriptions=new Set,c.observer={next:function(l){(c.lastError||c.isDifferentFromLastResult(l))&&(c.updateLastResult(l),(0,e.p)(c.observers,"next",l))},error:function(l){c.updateLastResult((0,t.pi)((0,t.pi)({},c.lastResult),{error:l,errors:l.graphQLErrors,networkStatus:r.I.error,loading:!1})),(0,e.p)(c.observers,"error",c.lastError=l)}},c.isTornDown=!1,c.options=T,c.queryId=L.generateQueryId();var _=(0,a.$H)(T.query);return c.queryName=_&&_.name&&_.name.value,c.queryManager=L,c.queryInfo=g,c}return(0,t.ZT)(V,j),Object.defineProperty(V.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),V.prototype.result=function(){var q=this;return new Promise(function(L,g){var T={next:function(_){L(_),q.observers.delete(T),q.observers.size||q.queryManager.removeQuery(q.queryId),setTimeout(function(){c.unsubscribe()},0)},error:g},c=q.subscribe(T)})},V.prototype.getCurrentResult=function(q){void 0===q&&(q=!0);var L=this.lastResult,g=this.queryInfo.networkStatus||L&&L.networkStatus||r.I.ready,T=(0,t.pi)((0,t.pi)({},L),{loading:(0,r.O)(g),networkStatus:g});if(this.isTornDown)return T;var c=this.options.fetchPolicy,_=void 0===c?"cache-first":c;if("no-cache"===_||"network-only"===_)delete T.partial;else if(!T.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var l=this.queryInfo.getDiff();T.data=l.complete||this.options.returnPartialData?l.result:void 0,l.complete?(T.networkStatus===r.I.loading&&("cache-first"===_||"cache-only"===_)&&(T.networkStatus=r.I.ready,T.loading=!1),delete T.partial):T.partial=!0}return q&&this.updateLastResult(T),T},V.prototype.isDifferentFromLastResult=function(q){return!(0,d.D)(this.lastResultSnapshot,q)},V.prototype.getLastResult=function(){return this.lastResult},V.prototype.getLastError=function(){return this.lastError},V.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},V.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},V.prototype.refetch=function(q){var L={pollInterval:0},g=this.options.fetchPolicy;return"no-cache"!==g&&"cache-and-network"!==g&&(L.fetchPolicy="network-only",L.nextFetchPolicy=g||"cache-first"),q&&!(0,d.D)(this.options.variables,q)&&(L.variables=this.options.variables=(0,t.pi)((0,t.pi)({},this.options.variables),q)),this.newReobserver(!1).reobserve(L,r.I.refetch)},V.prototype.fetchMore=function(q){var L=this,g=(0,t.pi)((0,t.pi)({},q.query?q:(0,t.pi)((0,t.pi)((0,t.pi)({},this.options),q),{variables:(0,t.pi)((0,t.pi)({},this.options.variables),q.variables)})),{fetchPolicy:"no-cache"}),T=this.queryManager.generateQueryId();return g.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=r.I.fetchMore,this.observe()),this.queryManager.fetchQuery(T,g,r.I.fetchMore).then(function(c){var _=c.data,l=q.updateQuery;return l?L.updateQuery(function(F){return l(F,{fetchMoreResult:_,variables:g.variables})}):L.queryManager.cache.writeQuery({query:g.query,variables:g.variables,data:_}),c}).finally(function(){L.queryManager.stopQuery(T),L.reobserve()})},V.prototype.subscribeToMore=function(q){var L=this,g=this.queryManager.startGraphQLSubscription({query:q.document,variables:q.variables,context:q.context}).subscribe({next:function(T){var c=q.updateQuery;c&&L.updateQuery(function(_,l){return c(_,{subscriptionData:T,variables:l.variables})})},error:function(T){q.onError&&q.onError(T)}});return this.subscriptions.add(g),function(){L.subscriptions.delete(g)&&g.unsubscribe()}},V.prototype.setOptions=function(q){return this.reobserve(q)},V.prototype.setVariables=function(q){if((0,d.D)(this.variables,q))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=q,!this.observers.size)return Promise.resolve();var L=this.options.fetchPolicy,g=void 0===L?"cache-first":L,T={fetchPolicy:g,variables:q};return"cache-first"!==g&&"no-cache"!==g&&"network-only"!==g&&(T.fetchPolicy="cache-and-network",T.nextFetchPolicy=g),this.reobserve(T,r.I.setVariables)},V.prototype.updateQuery=function(q){var L,g=this.queryManager,c=q(g.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(L=this.lastResult)||void 0===L?void 0:L.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});c&&(g.cache.writeQuery({query:this.options.query,data:c,variables:this.variables}),g.broadcastQueries())},V.prototype.startPolling=function(q){this.getReobserver().updateOptions({pollInterval:q})},V.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},V.prototype.updateLastResult=function(q){var L=this.lastResult;return this.lastResult=q,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?q:i(q),(0,u.O)(q.errors)||delete this.lastError,L},V.prototype.onSubscribe=function(q){var L=this;if(q===this.observer)return function(){};try{var g=q._subscription._observer;g&&!g.error&&(g.error=P)}catch{}var T=!this.observers.size;return this.observers.add(q),this.lastError?q.error&&q.error(this.lastError):this.lastResult&&q.next&&q.next(this.lastResult),T&&this.reobserve().catch(function(c){}),function(){L.observers.delete(q)&&!L.observers.size&&L.tearDownQuery()}},V.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},V.prototype.newReobserver=function(q){var L=this,T=this.queryManager,c=this.queryId;return T.setObservableQuery(this),new D(this.observer,q?this.options:(0,t.pi)({},this.options),function(_,l){return T.setObservableQuery(L),T.fetchQueryObservable(c,_,l)},!T.ssrMode&&function(){return!(0,r.O)(L.queryInfo.networkStatus)})},V.prototype.reobserve=function(q,L){return this.isTornDown=!1,this.getReobserver().reobserve(q,L)},V.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},V.prototype.hasObservers=function(){return this.observers.size>0},V.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.subscriptions.forEach(function(q){return q.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},V}(y());function P(j){}(0,m.D)(C)},29783:(ue,M,p)=>{"use strict";p.r(M),p.d(M,{ApolloCache:()=>e.R,ApolloClient:()=>t.f,ApolloError:()=>i.c,Cache:()=>s.C,HttpLink:()=>C.uG,InMemoryCache:()=>a.h,MissingFieldError:()=>u.y,NetworkStatus:()=>d.I,Observable:()=>g.a,ObservableQuery:()=>w.u,checkFetcher:()=>C.U2,createHttpLink:()=>C.LQ,createSignalIfSupported:()=>C.$g,defaultDataIdFromObject:()=>h.u,disableExperimentalFragmentVariables:()=>_.J9,disableFragmentWarnings:()=>_._t,enableExperimentalFragmentVariables:()=>_.wO,fallbackHttpConfig:()=>C.SC,fromError:()=>P.Q,fromPromise:()=>V.p,gql:()=>_.ZP,isApolloError:()=>i.M,isReference:()=>T.Yk,makeReference:()=>T.kQ,makeVar:()=>y.QS,mergeOptions:()=>t.J,parseAndCheckHttpResponse:()=>C.dO,resetCaches:()=>_.HW,rewriteURIForGET:()=>C.Hg,selectHttpOptionsAndBody:()=>C.E4,selectURI:()=>C.rg,serializeFetchParameter:()=>C.gE,setLogVerbosity:()=>c.U6,throwServerError:()=>q.P,toPromise:()=>j.V});var t=p(97307),w=p(27351),d=p(87972),r=p(57930),I={};for(const l in r)["default","ApolloClient","mergeOptions","ObservableQuery","NetworkStatus","isApolloError","ApolloError","Cache","ApolloCache","InMemoryCache","MissingFieldError","defaultDataIdFromObject","makeVar","fromError","toPromise","fromPromise","throwServerError","Observable","isReference","makeReference","setLogVerbosity","gql","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables"].indexOf(l)<0&&(I[l]=()=>r[l]);p.d(M,I);var i=p(68104),s=p(53774),e=p(97985),a=p(45670),u=p(46206),h=p(7236),y=p(62068),m=p(59799);I={};for(const l in m)["default","ApolloClient","mergeOptions","ObservableQuery","NetworkStatus","isApolloError","ApolloError","Cache","ApolloCache","InMemoryCache","MissingFieldError","defaultDataIdFromObject","makeVar","fromError","toPromise","fromPromise","throwServerError","Observable","isReference","makeReference","setLogVerbosity","gql","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables"].indexOf(l)<0&&(I[l]=()=>m[l]);p.d(M,I);var D=p(27975);I={};for(const l in D)["default","ApolloClient","mergeOptions","ObservableQuery","NetworkStatus","isApolloError","ApolloError","Cache","ApolloCache","InMemoryCache","MissingFieldError","defaultDataIdFromObject","makeVar","fromError","toPromise","fromPromise","throwServerError","Observable","isReference","makeReference","setLogVerbosity","gql","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables"].indexOf(l)<0&&(I[l]=()=>D[l]);p.d(M,I);var C=p(43730),P=p(35313),j=p(79212),V=p(82781),q=p(3772),L=p(20316),g=p.n(L),T=p(7882),c=p(73567),_=p(19636);(0,c.U6)("log")},87972:(ue,M,p)=>{"use strict";p.d(M,{I:()=>t,O:()=>w});var t=(()=>{return(d=t||(t={}))[d.loading=1]="loading",d[d.setVariables=2]="setVariables",d[d.fetchMore=3]="fetchMore",d[d.refetch=4]="refetch",d[d.poll=6]="poll",d[d.ready=7]="ready",d[d.error=8]="error",t;var d})();function w(d){return!!d&&d<7}},57930:()=>{},68104:(ue,M,p)=>{"use strict";p.d(M,{M:()=>d,c:()=>n});var t=p(60162),w=p(61952);function d(i){return i.hasOwnProperty("graphQLErrors")}var n=function(i){function s(e){var a=e.graphQLErrors,u=e.networkError,h=e.errorMessage,y=e.extraInfo,m=i.call(this,h)||this;return m.graphQLErrors=a||[],m.networkError=u||null,m.message=h||function(i){var s="";return(0,w.O)(i.graphQLErrors)&&i.graphQLErrors.forEach(function(e){s+=(e?e.message:"Error message not found.")+"\n"}),i.networkError&&(s+=i.networkError.message+"\n"),s=s.replace(/\n$/,"")}(m),m.extraInfo=y,m.__proto__=s.prototype,m}return(0,t.ZT)(s,i),s}(Error)},98e3:(ue,M,p)=>{"use strict";p.r(M);var t=p(29783),d={};for(const r in t)"default"!==r&&(d[r]=()=>t[r]);p.d(M,d);var w=p(14663);d={};for(const r in w)["default","ApolloCache","ApolloClient","ApolloError","Cache","HttpLink","InMemoryCache","MissingFieldError","NetworkStatus","Observable","ObservableQuery","checkFetcher","createHttpLink","createSignalIfSupported","defaultDataIdFromObject","disableExperimentalFragmentVariables","disableFragmentWarnings","enableExperimentalFragmentVariables","fallbackHttpConfig","fromError","fromPromise","gql","isApolloError","isReference","makeReference","makeVar","mergeOptions","parseAndCheckHttpResponse","resetCaches","rewriteURIForGET","selectHttpOptionsAndBody","selectURI","serializeFetchParameter","setLogVerbosity","throwServerError","toPromise"].indexOf(r)<0&&(d[r]=()=>w[r]);p.d(M,d)},13047:(ue,M,p)=>{"use strict";p.r(M),p.d(M,{setContext:()=>n});var t=p(60162),w=p(69924),d=p(20316),r=p.n(d);function n(i){return new w.i(function(s,e){var a=(0,t._T)(s,[]);return new(r())(function(u){var h;return Promise.resolve(a).then(function(y){return i(y,s.getContext())}).then(s.setContext).then(function(){h=e(s).subscribe({next:u.next.bind(u),error:u.error.bind(u),complete:u.complete.bind(u)})}).catch(u.error.bind(u)),function(){h&&h.unsubscribe()}})})}},69924:(ue,M,p)=>{"use strict";p.d(M,{i:()=>m});var R,t=p(60162),w=p(73567),d=p(20316),r=p.n(d),i=p(57993);function a(R,D){return D?D(R):r().of()}function u(R){return"function"==typeof R?new m(R):R}function h(R){return R.request.length<=1}R=Error,(0,t.ZT)(function D(I,C){var P=R.call(this,I)||this;return P.link=C,P},R);var m=function(){function R(D){D&&(this.request=D)}return R.empty=function(){return new R(function(){return r().of()})},R.from=function(D){return 0===D.length?R.empty():D.map(u).reduce(function(I,C){return I.concat(C)})},R.split=function(D,I,C){var P=u(I),j=u(C||new R(a));return h(P)&&h(j)?new R(function(V){return D(V)?P.request(V)||r().of():j.request(V)||r().of()}):new R(function(V,q){return D(V)?P.request(V,q)||r().of():j.request(V,q)||r().of()})},R.execute=function(D,I){return D.request(function n(R,D){var I=(0,t.pi)({},R);return Object.defineProperty(D,"setContext",{enumerable:!1,value:function(j){I=(0,t.pi)((0,t.pi)({},I),"function"==typeof j?j(I):j)}}),Object.defineProperty(D,"getContext",{enumerable:!1,value:function(){return(0,t.pi)({},I)}}),D}(I.context,function s(R){var D={variables:R.variables||{},extensions:R.extensions||{},operationName:R.operationName,query:R.query};return D.operationName||(D.operationName="string"!=typeof D.query?(0,i.rY)(D.query)||void 0:""),D}(function e(R){for(var D=["query","operationName","variables","extensions","context"],I=0,C=Object.keys(R);I<C.length;I++)if(D.indexOf(C[I])<0)throw new w.ej(26);return R}(I))))||r().of()},R.concat=function(D,I){var C=u(D);if(h(C))return C;var P=u(I);return h(P)?new R(function(j){return C.request(j,function(V){return P.request(V)||r().of()})||r().of()}):new R(function(j,V){return C.request(j,function(q){return P.request(q,V)||r().of()})||r().of()})},R.prototype.split=function(D,I,C){return this.concat(R.split(D,I,C||new R(a)))},R.prototype.concat=function(D){return R.concat(this,D)},R.prototype.request=function(D,I){throw new w.ej(21)},R.prototype.onError=function(D,I){if(I&&I.error)return I.error(D),!1;throw D},R.prototype.setOnError=function(D){return this.onError=D,this},R}()},26165:(ue,M,p)=>{"use strict";p.d(M,{z:()=>w});var w=p(69924).i.concat},39191:(ue,M,p)=>{"use strict";p.d(M,{c:()=>w});var w=p(69924).i.empty},6322:(ue,M,p)=>{"use strict";p.d(M,{h:()=>w});var w=p(69924).i.execute},45169:(ue,M,p)=>{"use strict";p.d(M,{D:()=>w});var w=p(69924).i.from},27975:(ue,M,p)=>{"use strict";p.r(M),p.d(M,{ApolloLink:()=>i.i,concat:()=>r.z,empty:()=>t.c,execute:()=>n.h,from:()=>w.D,split:()=>d.V});var t=p(39191),w=p(45169),d=p(34521),r=p(26165),n=p(6322),i=p(69924),s=p(38030),a={};for(const u in s)["default","empty","from","split","concat","execute","ApolloLink"].indexOf(u)<0&&(a[u]=()=>s[u]);p.d(M,a)},34521:(ue,M,p)=>{"use strict";p.d(M,{V:()=>w});var w=p(69924).i.split},38030:()=>{},73575:(ue,M,p)=>{"use strict";p.d(M,{u:()=>r});var t=p(60162),w=p(69924),d=p(60782),r=function(n){function i(s){void 0===s&&(s={});var e=n.call(this,(0,d.L)(s).request)||this;return e.options=s,e}return(0,t.ZT)(i,n),i}(w.i)},598:(ue,M,p)=>{"use strict";p.d(M,{U:()=>w});var t=p(73567),w=function(d){if(!d&&typeof fetch>"u")throw new t.ej(22)}},60782:(ue,M,p)=>{"use strict";p.d(M,{L:()=>R});var t=p(60162),w=p(74270),d=p(69924),r=p(20316),n=p.n(r),i=p(43553),s=p(59317),e=p(39752),a=p(598),u=p(82827),h=p(33648),y=p(26110),m=p(35313),R=function(D){void 0===D&&(D={});var I=D.uri,C=void 0===I?"/graphql":I,P=D.fetch,j=D.includeExtensions,V=D.useGETForQueries,q=D.includeUnusedVariables,L=void 0!==q&&q,g=(0,t._T)(D,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);(0,a.U)(P),P||(P=fetch);var T={http:{includeExtensions:j},options:g.fetchOptions,credentials:g.credentials,headers:g.headers};return new d.i(function(c){var _=(0,s.r)(c,C),l=c.getContext(),F={};if(l.clientAwareness){var K=l.clientAwareness,Q=K.name,$=K.version;Q&&(F["apollographql-client-name"]=Q),$&&(F["apollographql-client-version"]=$)}var Y,ce=(0,t.pi)((0,t.pi)({},F),l.headers),Z=(0,u.E)(c,u.S,T,{http:l.http,options:l.fetchOptions,credentials:l.credentials,headers:ce}),pe=Z.options,ae=Z.body;if(ae.variables&&!L){var z=new Set(Object.keys(ae.variables));(0,w.Vn)(c.query,{Variable:function(ee,se,_e){_e&&"VariableDefinition"!==_e.kind&&z.delete(ee.name.value)}}),z.size&&(ae.variables=(0,t.pi)({},ae.variables),z.forEach(function(ee){delete ae.variables[ee]}))}if(!pe.signal){var ie=(0,h.$)();(Y=ie.controller)&&(pe.signal=ie.signal)}if(V&&!c.query.definitions.some(function(ee){return"OperationDefinition"===ee.kind&&"mutation"===ee.operation})&&(pe.method="GET"),"GET"===pe.method){var x=(0,y.H)(_,ae),N=x.newURI,W=x.parseError;if(W)return(0,m.Q)(W);_=N}else try{pe.body=(0,i.g)(ae,"Payload")}catch(ee){return(0,m.Q)(ee)}return new(n())(function(ee){return P(_,pe).then(function(se){return c.setContext({response:se}),se}).then((0,e.d)(c)).then(function(se){return ee.next(se),ee.complete(),se}).catch(function(se){"AbortError"!==se.name&&(se.result&&se.result.errors&&se.result.data&&ee.next(se.result),ee.error(se))}),function(){Y&&Y.abort()}})})}},33648:(ue,M,p)=>{"use strict";p.d(M,{$:()=>t});var t=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var w=new AbortController;return{controller:w,signal:w.signal}}},43730:(ue,M,p)=>{"use strict";p.d(M,{$g:()=>n.$,E4:()=>d.E,Hg:()=>a.H,LQ:()=>s.L,SC:()=>d.S,U2:()=>r.U,dO:()=>t.d,gE:()=>w.g,rg:()=>i.r,uG:()=>e.u});var t=p(39752),w=p(43553),d=p(82827),r=p(598),n=p(33648),i=p(59317),s=p(60782),e=p(73575),a=p(26110)},39752:(ue,M,p)=>{"use strict";p.d(M,{d:()=>d});var t=p(3772),w=Object.prototype.hasOwnProperty;function d(r){return function(n){return n.text().then(function(i){try{return JSON.parse(i)}catch(e){var s=e;throw s.name="ServerParseError",s.response=n,s.statusCode=n.status,s.bodyText=i,s}}).then(function(i){return n.status>=300&&(0,t.P)(n,i,"Response not successful: Received status code "+n.status),!Array.isArray(i)&&!w.call(i,"data")&&!w.call(i,"errors")&&(0,t.P)(n,i,"Server response was missing for query '"+(Array.isArray(r)?r.map(function(s){return s.operationName}):r.operationName)+"'."),i})}}},26110:(ue,M,p)=>{"use strict";p.d(M,{H:()=>w});var t=p(43553);function w(d,r){var n=[],i=function(R,D){n.push(R+"="+encodeURIComponent(D))};if("query"in r&&i("query",r.query),r.operationName&&i("operationName",r.operationName),r.variables){var s=void 0;try{s=(0,t.g)(r.variables,"Variables map")}catch(R){return{parseError:R}}i("variables",s)}if(r.extensions){var e=void 0;try{e=(0,t.g)(r.extensions,"Extensions map")}catch(R){return{parseError:R}}i("extensions",e)}var a="",u=d,h=d.indexOf("#");-1!==h&&(a=d.substr(h),u=d.substr(0,h));var y=-1===u.indexOf("?")?"?":"&";return{newURI:u+y+n.join("&")+a}}},82827:(ue,M,p)=>{"use strict";p.d(M,{E:()=>s,S:()=>i});var t=p(60162),w=p(8511),i={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},s=function(e,a){for(var u=[],h=2;h<arguments.length;h++)u[h-2]=arguments[h];var y=(0,t.pi)((0,t.pi)({},a.options),{headers:a.headers,credentials:a.credentials}),m=a.http||{};u.forEach(function(j){y=(0,t.pi)((0,t.pi)((0,t.pi)({},y),j.options),{headers:(0,t.pi)((0,t.pi)({},y.headers),j.headers)}),j.credentials&&(y.credentials=j.credentials),m=(0,t.pi)((0,t.pi)({},m),j.http)});var R=e.operationName,D=e.extensions,I=e.variables,C=e.query,P={operationName:R,variables:I};return m.includeExtensions&&(P.extensions=D),m.includeQuery&&(P.query=(0,w.print)(C)),{options:y,body:P}}},59317:(ue,M,p)=>{"use strict";p.d(M,{r:()=>t});var t=function(w,d){return w.getContext().uri||("function"==typeof d?d(w):d||"/graphql")}},43553:(ue,M,p)=>{"use strict";p.d(M,{g:()=>w});var t=p(73567),w=function(d,r){var n;try{n=JSON.stringify(d)}catch(s){var i=new t.ej(23);throw i.parseError=s,i}return n}},35313:(ue,M,p)=>{"use strict";p.d(M,{Q:()=>d});var t=p(20316),w=p.n(t);function d(r){return new(w())(function(n){n.error(r)})}},82781:(ue,M,p)=>{"use strict";p.d(M,{p:()=>d});var t=p(20316),w=p.n(t);function d(r){return new(w())(function(n){r.then(function(i){n.next(i),n.complete()}).catch(n.error.bind(n))})}},3772:(ue,M,p)=>{"use strict";p.d(M,{P:()=>t});var t=function(w,d,r){var n=new Error(r);throw n.name="ServerError",n.response=w,n.statusCode=w.status,n.result=d,n}},79212:(ue,M,p)=>{"use strict";function w(d){var r=!1;return new Promise(function(n,i){d.subscribe({next:function(s){r||(r=!0,n(s))},error:i})})}p.d(M,{V:()=>w}),p(73567)},17757:(ue,M,p)=>{"use strict";var t=p(10757),w=60103,d=60106;M.Fragment=60107,M.StrictMode=60108,M.Profiler=60114;var r=60109,n=60110,i=60112;M.Suspense=60113;var s=60115,e=60116;if("function"==typeof Symbol&&Symbol.for){var a=Symbol.for;w=a("react.element"),d=a("react.portal"),M.Fragment=a("react.fragment"),M.StrictMode=a("react.strict_mode"),M.Profiler=a("react.profiler"),r=a("react.provider"),n=a("react.context"),i=a("react.forward_ref"),M.Suspense=a("react.suspense"),s=a("react.memo"),e=a("react.lazy")}var u="function"==typeof Symbol&&Symbol.iterator;function y(Z){for(var pe="https://reactjs.org/docs/error-decoder.html?invariant="+Z,ae=1;ae<arguments.length;ae++)pe+="&args[]="+encodeURIComponent(arguments[ae]);return"Minified React error #"+Z+"; visit "+pe+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R={};function D(Z,pe,ae){this.props=Z,this.context=pe,this.refs=R,this.updater=ae||m}function I(){}function C(Z,pe,ae){this.props=Z,this.context=pe,this.refs=R,this.updater=ae||m}D.prototype.isReactComponent={},D.prototype.setState=function(Z,pe){if("object"!=typeof Z&&"function"!=typeof Z&&null!=Z)throw Error(y(85));this.updater.enqueueSetState(this,Z,pe,"setState")},D.prototype.forceUpdate=function(Z){this.updater.enqueueForceUpdate(this,Z,"forceUpdate")},I.prototype=D.prototype;var P=C.prototype=new I;P.constructor=C,t(P,D.prototype),P.isPureReactComponent=!0;var j={current:null},V=Object.prototype.hasOwnProperty,q={key:!0,ref:!0,__self:!0,__source:!0};function L(Z,pe,ae){var z,Y={},ie=null,J=null;if(null!=pe)for(z in void 0!==pe.ref&&(J=pe.ref),void 0!==pe.key&&(ie=""+pe.key),pe)V.call(pe,z)&&!q.hasOwnProperty(z)&&(Y[z]=pe[z]);var A=arguments.length-2;if(1===A)Y.children=ae;else if(1<A){for(var b=Array(A),x=0;x<A;x++)b[x]=arguments[x+2];Y.children=b}if(Z&&Z.defaultProps)for(z in A=Z.defaultProps)void 0===Y[z]&&(Y[z]=A[z]);return{$$typeof:w,type:Z,key:ie,ref:J,props:Y,_owner:j.current}}function T(Z){return"object"==typeof Z&&null!==Z&&Z.$$typeof===w}var _=/\/+/g;function l(Z,pe){return"object"==typeof Z&&null!==Z&&null!=Z.key?function c(Z){var pe={"=":"=0",":":"=2"};return"$"+Z.replace(/[=:]/g,function(ae){return pe[ae]})}(""+Z.key):pe.toString(36)}function F(Z,pe,ae,z,Y){var ie=typeof Z;("undefined"===ie||"boolean"===ie)&&(Z=null);var J=!1;if(null===Z)J=!0;else switch(ie){case"string":case"number":J=!0;break;case"object":switch(Z.$$typeof){case w:case d:J=!0}}if(J)return Y=Y(J=Z),Z=""===z?"."+l(J,0):z,Array.isArray(Y)?(ae="",null!=Z&&(ae=Z.replace(_,"$&/")+"/"),F(Y,pe,ae,"",function(x){return x})):null!=Y&&(T(Y)&&(Y=function g(Z,pe){return{$$typeof:w,type:Z.type,key:pe,ref:Z.ref,props:Z.props,_owner:Z._owner}}(Y,ae+(!Y.key||J&&J.key===Y.key?"":(""+Y.key).replace(_,"$&/")+"/")+Z)),pe.push(Y)),1;if(J=0,z=""===z?".":z+":",Array.isArray(Z))for(var A=0;A<Z.length;A++){var b=z+l(ie=Z[A],A);J+=F(ie,pe,ae,b,Y)}else if(b=function h(Z){return null===Z||"object"!=typeof Z?null:"function"==typeof(Z=u&&Z[u]||Z["@@iterator"])?Z:null}(Z),"function"==typeof b)for(Z=b.call(Z),A=0;!(ie=Z.next()).done;)J+=F(ie=ie.value,pe,ae,b=z+l(ie,A++),Y);else if("object"===ie)throw pe=""+Z,Error(y(31,"[object Object]"===pe?"object with keys {"+Object.keys(Z).join(", ")+"}":pe));return J}function K(Z,pe,ae){if(null==Z)return Z;var z=[],Y=0;return F(Z,z,"","",function(ie){return pe.call(ae,ie,Y++)}),z}function Q(Z){if(-1===Z._status){var pe=Z._result;pe=pe(),Z._status=0,Z._result=pe,pe.then(function(ae){0===Z._status&&(ae=ae.default,Z._status=1,Z._result=ae)},function(ae){0===Z._status&&(Z._status=2,Z._result=ae)})}if(1===Z._status)return Z._result;throw Z._result}var $={current:null};function ce(){var Z=$.current;if(null===Z)throw Error(y(321));return Z}var ge={ReactCurrentDispatcher:$,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:j,IsSomeRendererActing:{current:!1},assign:t};M.Children={map:K,forEach:function(Z,pe,ae){K(Z,function(){pe.apply(this,arguments)},ae)},count:function(Z){var pe=0;return K(Z,function(){pe++}),pe},toArray:function(Z){return K(Z,function(pe){return pe})||[]},only:function(Z){if(!T(Z))throw Error(y(143));return Z}},M.Component=D,M.PureComponent=C,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ge,M.cloneElement=function(Z,pe,ae){if(null==Z)throw Error(y(267,Z));var z=t({},Z.props),Y=Z.key,ie=Z.ref,J=Z._owner;if(null!=pe){if(void 0!==pe.ref&&(ie=pe.ref,J=j.current),void 0!==pe.key&&(Y=""+pe.key),Z.type&&Z.type.defaultProps)var A=Z.type.defaultProps;for(b in pe)V.call(pe,b)&&!q.hasOwnProperty(b)&&(z[b]=void 0===pe[b]&&void 0!==A?A[b]:pe[b])}var b=arguments.length-2;if(1===b)z.children=ae;else if(1<b){A=Array(b);for(var x=0;x<b;x++)A[x]=arguments[x+2];z.children=A}return{$$typeof:w,type:Z.type,key:Y,ref:ie,props:z,_owner:J}},M.createContext=function(Z,pe){return void 0===pe&&(pe=null),(Z={$$typeof:n,_calculateChangedBits:pe,_currentValue:Z,_currentValue2:Z,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:r,_context:Z},Z.Consumer=Z},M.createElement=L,M.createFactory=function(Z){var pe=L.bind(null,Z);return pe.type=Z,pe},M.createRef=function(){return{current:null}},M.forwardRef=function(Z){return{$$typeof:i,render:Z}},M.isValidElement=T,M.lazy=function(Z){return{$$typeof:e,_payload:{_status:-1,_result:Z},_init:Q}},M.memo=function(Z,pe){return{$$typeof:s,type:Z,compare:void 0===pe?null:pe}},M.useCallback=function(Z,pe){return ce().useCallback(Z,pe)},M.useContext=function(Z,pe){return ce().useContext(Z,pe)},M.useDebugValue=function(){},M.useEffect=function(Z,pe){return ce().useEffect(Z,pe)},M.useImperativeHandle=function(Z,pe,ae){return ce().useImperativeHandle(Z,pe,ae)},M.useLayoutEffect=function(Z,pe){return ce().useLayoutEffect(Z,pe)},M.useMemo=function(Z,pe){return ce().useMemo(Z,pe)},M.useReducer=function(Z,pe,ae){return ce().useReducer(Z,pe,ae)},M.useRef=function(Z){return ce().useRef(Z)},M.useState=function(Z){return ce().useState(Z)},M.version="17.0.2"},90222:(ue,M,p)=>{"use strict";ue.exports=p(17757)},73567:(ue,M,p)=>{"use strict";p.d(M,{ej:()=>$,kG:()=>ce,U6:()=>ae});var t=function(J,A){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var N in x)Object.prototype.hasOwnProperty.call(x,N)&&(b[N]=x[N])})(J,A)},F="Invariant Violation",K=Object.setPrototypeOf,Q=void 0===K?function(J,A){return J.__proto__=A,J}:K,$=function(J){function A(b){void 0===b&&(b=F);var x=J.call(this,"number"==typeof b?F+": "+b+" (see https://github.com/apollographql/invariant-packages)":b)||this;return x.framesToPop=1,x.name=F,Q(x,A.prototype),x}return function w(J,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function b(){this.constructor=J}t(J,A),J.prototype=null===A?Object.create(A):(b.prototype=A.prototype,new b)}(A,J),A}(Error);function ce(J,A){if(!J)throw new $(A)}var J,ge=["log","warn","error","silent"],Z=ge.indexOf("log");function pe(J){return function(){if(ge.indexOf(J)>=Z)return console[J].apply(console,arguments)}}function ae(J){var A=ge[Z];return Z=Math.max(0,ge.indexOf(J)),A}(J=ce||(ce={})).log=pe("log"),J.warn=pe("warn"),J.error=pe("error"),"object"==typeof process&&"object"==typeof process.env&&process},59736:(ue,M,p)=>{"use strict";p.d(M,{a:()=>r});var t=p(90222),w=p(73567),d=p(41966),r=function(n){var i=(0,d.K)();return t.createElement(i.Consumer,null,function(s){return(0,w.kG)(s&&s.client,27),n.children(s.client)})}},41966:(ue,M,p)=>{"use strict";p.d(M,{K:()=>r,Z:()=>r});var t=p(90222),d=new(p(18770).m?WeakMap:Map);function r(){var n=d.get(t.createContext);return n||((n=t.createContext({})).displayName="ApolloContext",d.set(t.createContext,n)),n}},85079:(ue,M,p)=>{"use strict";p.d(M,{e:()=>r});var t=p(90222),w=p(73567),d=p(41966),r=function(n){var i=n.client,s=n.children,e=(0,d.K)();return t.createElement(e.Consumer,null,function(a){return void 0===a&&(a={}),i&&a.client!==i&&(a=Object.assign({},a,{client:i})),(0,w.kG)(a.client,28),t.createElement(e.Provider,{value:a},s)})}},63446:(ue,M,p)=>{"use strict";p.d(M,{xJ:()=>r,td:()=>R,Db:()=>C,aM:()=>P,lY:()=>q,mU:()=>V});var t=p(90222),w=p(73567),d=p(41966);function r(){var L=t.useContext((0,d.K)()).client;return(0,w.kG)(L,33),L}var n=p(60162),i=p(52485),s=p(68104),e=p(87972),a=p(46964),u=function(){function L(g,T){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=g||{},this.context=T||{}}return L.prototype.getOptions=function(){return this.options},L.prototype.setOptions=function(g,T){void 0===T&&(T=!1),T&&!(0,i.D)(this.options,g)&&(this.previousOptions=this.options),this.options=g},L.prototype.unmount=function(){this.isMounted=!1},L.prototype.refreshClient=function(){var g=this.options&&this.options.client||this.context&&this.context.client;(0,w.kG)(!!g,29);var T=!1;return g!==this.client&&(T=!0,this.client=g,this.cleanup()),{client:this.client,isNew:T}},L.prototype.verifyDocumentType=function(g,T){var c=(0,a.E2)(g);(0,a.mw)(T),(0,a.mw)(c.type),(0,w.kG)(c.type===T,30)},L}(),h=function(L){function g(T){var l=T.onNewData,F=L.call(this,T.options,T.context)||this;return F.runLazy=!1,F.previous=Object.create(null),F.runLazyQuery=function(K){F.cleanup(),F.runLazy=!0,F.lazyOptions=K,F.onNewData()},F.getQueryResult=function(){var K=F.observableQueryFields(),Q=F.getOptions();if(Q.skip)K=(0,n.pi)((0,n.pi)({},K),{data:void 0,error:void 0,loading:!1,networkStatus:e.I.ready,called:!0});else if(F.currentObservable){var $=F.currentObservable.getCurrentResult(),ce=$.data,ge=$.loading,Z=$.partial,pe=$.networkStatus,ae=$.errors,z=$.error;if(ae&&ae.length>0&&(z=new s.c({graphQLErrors:ae})),K=(0,n.pi)((0,n.pi)({},K),{data:ce,loading:ge,networkStatus:pe,error:z,called:!0}),!ge)if(z)Object.assign(K,{data:(F.currentObservable.getLastResult()||{}).data});else{var Y=F.currentObservable.options.fetchPolicy;if(Q.partialRefetch&&Z&&(!ce||0===Object.keys(ce).length)&&"cache-only"!==Y)return Object.assign(K,{loading:!0,networkStatus:e.I.loading}),K.refetch(),K}}K.client=F.client,F.setOptions(Q,!0);var J=F.previous.result;return F.previous.loading=J&&J.loading||!1,K.previousData=J&&(J.data||J.previousData),F.previous.result=K,F.currentObservable&&F.currentObservable.resetQueryStoreErrors(),K},F.obsRefetch=function(K){var Q;return null===(Q=F.currentObservable)||void 0===Q?void 0:Q.refetch(K)},F.obsFetchMore=function(K){return F.currentObservable.fetchMore(K)},F.obsUpdateQuery=function(K){return F.currentObservable.updateQuery(K)},F.obsStartPolling=function(K){var Q;null===(Q=F.currentObservable)||void 0===Q||Q.startPolling(K)},F.obsStopPolling=function(){var K;null===(K=F.currentObservable)||void 0===K||K.stopPolling()},F.obsSubscribeToMore=function(K){return F.currentObservable.subscribeToMore(K)},F.onNewData=l,F}return(0,n.ZT)(g,L),g.prototype.execute=function(){this.refreshClient();var T=this.getOptions(),c=T.skip,_=T.query;return(c||_!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!c),this.previous.query=_),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},g.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:e.I.ready,called:!1,data:void 0}]},g.prototype.fetchData=function(){var T=this,c=this.getOptions();return!c.skip&&!1!==c.ssr&&new Promise(function(_){return T.startQuerySubscription(_)})},g.prototype.afterExecute=function(T){var c=(void 0===T?{}:T).lazy,_=void 0!==c&&c;return this.isMounted=!0,(!_||this.runLazy)&&this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},g.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},g.prototype.getOptions=function(){var T=L.prototype.getOptions.call(this);return this.lazyOptions&&(T.variables=(0,n.pi)((0,n.pi)({},T.variables),this.lazyOptions.variables),T.context=(0,n.pi)((0,n.pi)({},T.context),this.lazyOptions.context)),this.runLazy&&delete T.skip,T},g.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},g.prototype.getExecuteResult=function(){var T=this.getQueryResult();return this.startQuerySubscription(),T},g.prototype.getExecuteSsrResult=function(){var T=this.getOptions(),_=T.skip,l=!1===T.ssr,F=this.refreshClient().client.disableNetworkFetches,K=(0,n.pi)({loading:!0,networkStatus:e.I.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());if(l&&(this.ssrInitiated()||F))return this.previous.result=K,K;if(this.ssrInitiated()){var Q=this.getQueryResult()||K;return Q.loading&&!_&&this.context.renderPromises.addQueryPromise(this,function(){return null}),Q}},g.prototype.prepareObservableQueryOptions=function(){var T=this.getOptions();this.verifyDocumentType(T.query,a.n_.Query);var c=T.displayName||"Query";return this.ssrInitiated()&&("network-only"===T.fetchPolicy||"cache-and-network"===T.fetchPolicy)&&(T.fetchPolicy="cache-first"),(0,n.pi)((0,n.pi)({},T),{displayName:c,context:T.context})},g.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var T=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=(0,n.pi)((0,n.pi)({},T),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery((0,n.pi)({},T)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,T)}},g.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var T=(0,n.pi)((0,n.pi)({},this.prepareObservableQueryOptions()),{children:null});(0,i.D)(T,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=T,this.currentObservable.setOptions(T).catch(function(){}))}}else this.initializeObservableQuery()},g.prototype.startQuerySubscription=function(T){var c=this;void 0===T&&(T=this.onNewData),!this.currentSubscription&&!this.getOptions().skip&&(this.currentSubscription=this.currentObservable.subscribe({next:function(_){var Q=c.previous.result;Q&&Q.loading===_.loading&&Q.networkStatus===_.networkStatus&&(0,i.D)(Q.data,_.data)||T()},error:function(_){if(c.resubscribeToQuery(),!_.hasOwnProperty("graphQLErrors"))throw _;var l=c.previous.result;(l&&l.loading||!(0,i.D)(_,c.previous.error))&&(c.previous.error=_,T())}}))},g.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var T=this.currentObservable;if(T){var c=T.getLastError(),_=T.getLastResult();T.resetLastResults(),this.startQuerySubscription(),Object.assign(T,{lastError:c,lastResult:_})}},g.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var T=this.previous.result,c=T.data,l=T.error;if(!T.loading){var F=this.getOptions(),Q=F.variables,$=F.onCompleted,ce=F.onError,ge=F.skip;if(this.previousOptions&&!this.previous.loading&&(0,i.D)(this.previousOptions.query,F.query)&&(0,i.D)(this.previousOptions.variables,Q))return;!$||l||ge?ce&&l&&ce(l):$(c)}}},g.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},g.prototype.removeObservable=function(T){this.currentObservable&&(this.currentObservable.tearDownQuery(),T&&delete this.currentObservable)},g.prototype.observableQueryFields=function(){var T;return{variables:null===(T=this.currentObservable)||void 0===T?void 0:T.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}},g}(u);function m(L,g,T){void 0===T&&(T=!1);var c=(0,t.useContext)((0,d.K)()),_=(0,t.useReducer)(function(pe){return pe+1},0),l=_[0],F=_[1],K=g?(0,n.pi)((0,n.pi)({},g),{query:L}):{query:L},Q=(0,t.useRef)(),$=Q.current||(Q.current=new h({options:K,context:c,onNewData:function(){$.ssrInitiated()?F():Promise.resolve().then(function(){return Q.current&&F()})}}));$.setOptions(K),$.context=c;var ge=function y(L,g){var T=(0,t.useRef)();return(!T.current||!(0,i.D)(g,T.current.key))&&(T.current={key:g,value:L()}),T.current.value}(function(){return T?$.executeLazy():$.execute()},{options:(0,n.pi)((0,n.pi)({},K),{onError:void 0,onCompleted:void 0}),context:c,tick:l}),Z=T?ge[1]:ge;return(0,t.useEffect)(function(){return function(){return $.cleanup()}},[]),(0,t.useEffect)(function(){return $.afterExecute({lazy:T})},[Z.loading,Z.networkStatus,Z.error,Z.data]),ge}function R(L,g){return m(L,g,!0)}var D=p(97307),I=function(L){function g(T){var c=T.options,l=T.result,F=T.setResult,K=L.call(this,c,T.context)||this;return K.runMutation=function(Q){void 0===Q&&(Q={}),K.onMutationStart();var $=K.generateNewMutationId();return K.mutate(Q).then(function(ce){return K.onMutationCompleted(ce,$),ce}).catch(function(ce){var ge=K.getOptions().onError;if(K.onMutationError(ce,$),ge)return ge(ce),{data:void 0,errors:ce};throw ce})},K.verifyDocumentType(c.mutation,a.n_.Mutation),K.result=l,K.setResult=F,K.mostRecentMutationId=0,K}return(0,n.ZT)(g,L),g.prototype.execute=function(T){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,a.n_.Mutation),[this.runMutation,(0,n.pi)((0,n.pi)({},T),{client:this.refreshClient().client})]},g.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},g.prototype.cleanup=function(){},g.prototype.mutate=function(T){return this.refreshClient().client.mutate((0,D.J)(this.getOptions(),T))},g.prototype.onMutationStart=function(){!this.result.loading&&!this.getOptions().ignoreResults&&this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},g.prototype.onMutationCompleted=function(T,c){var _=this.getOptions(),l=_.onCompleted,F=_.ignoreResults,K=T.data,Q=T.errors,$=Q&&Q.length>0?new s.c({graphQLErrors:Q}):void 0;this.isMostRecentMutation(c)&&!F&&this.updateResult({called:!0,loading:!1,data:K,error:$}),l&&l(K)},g.prototype.onMutationError=function(T,c){this.isMostRecentMutation(c)&&this.updateResult({loading:!1,error:T,data:void 0,called:!0})},g.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},g.prototype.isMostRecentMutation=function(T){return this.mostRecentMutationId===T},g.prototype.updateResult=function(T){if(this.isMounted&&(!this.previousResult||!(0,i.D)(this.previousResult,T)))return this.setResult(T),this.previousResult=T,T},g}(u);function C(L,g){var T=(0,t.useContext)((0,d.K)()),c=(0,t.useState)({called:!1,loading:!1}),_=c[0],l=c[1],F=g?(0,n.pi)((0,n.pi)({},g),{mutation:L}):{mutation:L},K=(0,t.useRef)(),$=function Q(){return K.current||(K.current=new I({options:F,context:T,result:_,setResult:l})),K.current}();return $.setOptions(F),$.context=T,(0,t.useEffect)(function(){return $.afterExecute()}),$.execute(_)}function P(L,g){return m(L,g,!1)}var j=function(L){function g(T){var c=T.options,l=T.setResult,F=L.call(this,c,T.context)||this;return F.currentObservable={},F.setResult=l,F.initialize(c),F}return(0,n.ZT)(g,L),g.prototype.execute=function(T){if(!0===this.getOptions().skip)return this.cleanup(),{loading:!1,error:void 0,data:void 0,variables:this.getOptions().variables};var c=T;this.refreshClient().isNew&&(c=this.getLoadingResult());var _=this.getOptions().shouldResubscribe;return"function"==typeof _&&(_=!!_(this.getOptions())),!1!==_&&this.previousOptions&&Object.keys(this.previousOptions).length>0&&(this.previousOptions.subscription!==this.getOptions().subscription||!(0,i.D)(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),c=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),(0,n.pi)((0,n.pi)({},c),{variables:this.getOptions().variables})},g.prototype.afterExecute=function(){this.isMounted=!0},g.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},g.prototype.initialize=function(T){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:T.subscription,variables:T.variables,fetchPolicy:T.fetchPolicy,context:T.context}))},g.prototype.startSubscription=function(){this.currentObservable.subscription||(this.currentObservable.subscription=this.currentObservable.query.subscribe({next:this.updateCurrentData.bind(this),error:this.updateError.bind(this),complete:this.completeSubscription.bind(this)}))},g.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},g.prototype.updateResult=function(T){this.isMounted&&this.setResult(T)},g.prototype.updateCurrentData=function(T){var c=this.getOptions().onSubscriptionData;this.updateResult({data:T.data,loading:!1,error:void 0}),c&&c({client:this.refreshClient().client,subscriptionData:T})},g.prototype.updateError=function(T){this.updateResult({error:T,loading:!1})},g.prototype.completeSubscription=function(){var T=this;Promise.resolve().then(function(){var c=T.getOptions().onSubscriptionComplete;c&&c(),T.endSubscription()})},g.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},g}(u);function V(L,g){var T=(0,t.useContext)((0,d.K)()),c=g?(0,n.pi)((0,n.pi)({},g),{subscription:L}):{subscription:L},_=(0,t.useState)({loading:!c.skip,error:void 0,data:void 0}),l=_[0],F=_[1],K=(0,t.useRef)(),$=function Q(){return K.current||(K.current=new j({options:c,context:T,setResult:F})),K.current}();return $.setOptions(c,!0),$.context=T,(0,t.useEffect)(function(){return $.afterExecute()}),(0,t.useEffect)(function(){return $.cleanup.bind($)},[]),$.execute(l)}function q(L){var g=L(),T=(0,t.useState)(g)[1];return(0,t.useEffect)(function(){var c=L();if(g===c)return L.onNextChange(T);T(c)},[g]),g}},14663:(ue,M,p)=>{"use strict";p.r(M),p.d(M,{ApolloConsumer:()=>w.a,ApolloProvider:()=>t.e,DocumentType:()=>n.n_,getApolloContext:()=>d.K,operationName:()=>n.mw,parser:()=>n.E2,resetApolloContext:()=>d.Z,useApolloClient:()=>r.xJ,useLazyQuery:()=>r.td,useMutation:()=>r.Db,useQuery:()=>r.aM,useReactiveVar:()=>r.lY,useSubscription:()=>r.mU});var t=p(85079),w=p(59736),d=p(41966),r=p(63446),n=p(46964),i=p(78690),e={};for(const a in i)["default","ApolloProvider","ApolloConsumer","getApolloContext","resetApolloContext","DocumentType","operationName","parser","useApolloClient","useLazyQuery","useMutation","useQuery","useReactiveVar","useSubscription"].indexOf(a)<0&&(e[a]=()=>i[a]);p.d(M,e)},46964:(ue,M,p)=>{"use strict";p.d(M,{E2:()=>n,mw:()=>r,n_:()=>w});var t=p(73567),w=(()=>{return(i=w||(w={}))[i.Query=0]="Query",i[i.Mutation=1]="Mutation",i[i.Subscription=2]="Subscription",w;var i})(),d=new Map;function r(i){var s;switch(i){case w.Query:s="Query";break;case w.Mutation:s="Mutation";break;case w.Subscription:s="Subscription"}return s}function n(i){var a,s=d.get(i);if(s)return s;(0,t.kG)(!!i&&!!i.kind,34);var h=i.definitions.filter(function(P){return"FragmentDefinition"===P.kind}),y=i.definitions.filter(function(P){return"OperationDefinition"===P.kind&&"query"===P.operation}),m=i.definitions.filter(function(P){return"OperationDefinition"===P.kind&&"mutation"===P.operation}),R=i.definitions.filter(function(P){return"OperationDefinition"===P.kind&&"subscription"===P.operation});(0,t.kG)(!h.length||y.length||m.length||R.length,35),(0,t.kG)(y.length+m.length+R.length<=1,36),a=y.length?w.Query:w.Mutation,!y.length&&!m.length&&(a=w.Subscription);var D=y.length?y:m.length?m:R;(0,t.kG)(1===D.length,37);var I=D[0],C={name:I.name&&"Name"===I.name.kind?I.name.value:"data",type:a,variables:I.variableDefinitions||[]};return d.set(i,C),C}},78690:()=>{},61952:(ue,M,p)=>{"use strict";function t(w){return Array.isArray(w)&&w.length>0}p.d(M,{O:()=>t})},18770:(ue,M,p)=>{"use strict";p.d(M,{m:()=>t});var t="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product)},31882:(ue,M,p)=>{"use strict";function t(){for(var w=[],d=0;d<arguments.length;d++)w[d]=arguments[d];var r=Object.create(null);return w.forEach(function(n){!n||Object.keys(n).forEach(function(i){var s=n[i];void 0!==s&&(r[i]=s)})}),r}p.d(M,{o:()=>t})},52647:(ue,M,p)=>{"use strict";p.d(M,{Ee:()=>d,bw:()=>r,w0:()=>s});var t=p(60162),w=Object.prototype.hasOwnProperty;function d(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return r(e)}function r(e){var a=e[0]||{},u=e.length;if(u>1)for(var h=new s,y=1;y<u;++y)a=h.merge(a,e[y]);return a}function n(e){return null!==e&&"object"==typeof e}var i=function(e,a,u){return this.merge(e[u],a[u])},s=function(){function e(a){void 0===a&&(a=i),this.reconciler=a,this.isObject=n,this.pastCopies=new Set}return e.prototype.merge=function(a,u){for(var h=this,y=[],m=2;m<arguments.length;m++)y[m-2]=arguments[m];return n(u)&&n(a)?(Object.keys(u).forEach(function(R){if(w.call(a,R)){var D=a[R];if(u[R]!==D){var I=h.reconciler.apply(h,(0,t.pr)([a,u,R],y));I!==D&&((a=h.shallowCopyForMerge(a))[R]=I)}}else(a=h.shallowCopyForMerge(a))[R]=u[R]}),a):u},e.prototype.shallowCopyForMerge=function(a){return n(a)&&!this.pastCopies.has(a)&&(a=Array.isArray(a)?a.slice(0):(0,t.pi)({__proto__:Object.getPrototypeOf(a)},a),this.pastCopies.add(a)),a},e}()},31220:(ue,M,p)=>{"use strict";p.d(M,{FS:()=>n,LZ:()=>d,mj:()=>i});var t=p(74270),w=p(73567);function d(a,u){var h=a.directives;return!h||!h.length||function e(a){var u=[];return a&&a.length&&a.forEach(function(h){if(function s(a){var u=a.name.value;return"skip"===u||"include"===u}(h)){var y=h.arguments;(0,w.kG)(y&&1===y.length,39);var R=y[0];(0,w.kG)(R.name&&"if"===R.name.value,40);var D=R.value;(0,w.kG)(D&&("Variable"===D.kind||"BooleanValue"===D.kind),41),u.push({directive:h,ifArgument:R})}}),u}(h).every(function(y){var m=y.directive,R=y.ifArgument,D=!1;return"Variable"===R.value.kind?(0,w.kG)(void 0!==(D=u&&u[R.value.name.value]),38):D=R.value.value,"skip"===m.name.value?!D:D})}function n(a,u){return function r(a){var u=[];return(0,t.Vn)(a,{Directive:function(h){u.push(h.name.value)}}),u}(u).some(function(h){return a.indexOf(h)>-1})}function i(a){return a&&n(["client"],a)&&n(["export"],a)}},77260:(ue,M,p)=>{"use strict";p.d(M,{F:()=>r,Yk:()=>d,hi:()=>n});var t=p(60162),w=p(73567);function d(i,s){var e=s,a=[];return i.definitions.forEach(function(h){if("OperationDefinition"===h.kind)throw new w.ej(42);"FragmentDefinition"===h.kind&&a.push(h)}),typeof e>"u"&&((0,w.kG)(1===a.length,43),e=a[0].name.value),(0,t.pi)((0,t.pi)({},i),{definitions:(0,t.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:e}}]}}],i.definitions)})}function r(i){void 0===i&&(i=[]);var s={};return i.forEach(function(e){s[e.name.value]=e}),s}function n(i,s){switch(i.kind){case"InlineFragment":return i;case"FragmentSpread":var e=s&&s[i.name.value];return(0,w.kG)(e,44),e;default:return null}}},57993:(ue,M,p)=>{"use strict";p.d(M,{$H:()=>r,A$:()=>d,O4:()=>u,iW:()=>s,kU:()=>i,p$:()=>a,pD:()=>e,rY:()=>n});var t=p(73567),w=p(7882);function d(h){(0,t.kG)(h&&"Document"===h.kind,45);var y=h.definitions.filter(function(m){return"FragmentDefinition"!==m.kind}).map(function(m){if("OperationDefinition"!==m.kind)throw new t.ej(46);return m});return(0,t.kG)(y.length<=1,47),h}function r(h){return d(h),h.definitions.filter(function(y){return"OperationDefinition"===y.kind})[0]}function n(h){return h.definitions.filter(function(y){return"OperationDefinition"===y.kind&&y.name}).map(function(y){return y.name.value})[0]||null}function i(h){return h.definitions.filter(function(y){return"FragmentDefinition"===y.kind})}function s(h){var y=r(h);return(0,t.kG)(y&&"query"===y.operation,48),y}function e(h){(0,t.kG)("Document"===h.kind,49),(0,t.kG)(h.definitions.length<=1,50);var y=h.definitions[0];return(0,t.kG)("FragmentDefinition"===y.kind,51),y}function a(h){d(h);for(var y,m=0,R=h.definitions;m<R.length;m++){var D=R[m];if("OperationDefinition"===D.kind){var I=D.operation;if("query"===I||"mutation"===I||"subscription"===I)return D}"FragmentDefinition"===D.kind&&!y&&(y=D)}if(y)return y;throw new t.ej(52)}function u(h){var y=Object.create(null),m=h&&h.variableDefinitions;return m&&m.length&&m.forEach(function(R){R.defaultValue&&(0,w.vb)(y,R.variable.name,R.defaultValue)}),y}},7882:(ue,M,p)=>{"use strict";p.d(M,{Ao:()=>T,My:()=>g,NC:()=>V,PT:()=>j,Yk:()=>i,kQ:()=>n,qw:()=>L,u2:()=>q,vb:()=>I,vf:()=>C});var t=p(67495),w=p.n(t),d=p(73567),r=p(77260);function n(c){return{__ref:String(c)}}function i(c){return Boolean(c&&"object"==typeof c&&"string"==typeof c.__ref)}function I(c,_,l,F){if(function a(c){return"IntValue"===c.kind}(l)||function u(c){return"FloatValue"===c.kind}(l))c[_.value]=Number(l.value);else if(function e(c){return"BooleanValue"===c.kind}(l)||function s(c){return"StringValue"===c.kind}(l))c[_.value]=l.value;else if(function y(c){return"ObjectValue"===c.kind}(l)){var K={};l.fields.map(function($){return I(K,$.name,$.value,F)}),c[_.value]=K}else if(function h(c){return"Variable"===c.kind}(l))c[_.value]=(F||{})[l.name.value];else if(function m(c){return"ListValue"===c.kind}(l))c[_.value]=l.values.map(function($){var ce={};return I(ce,_,$,F),ce[_.value]});else if(function R(c){return"EnumValue"===c.kind}(l))c[_.value]=l.value;else{if(!function D(c){return"NullValue"===c.kind}(l))throw new d.ej(53);c[_.value]=null}}function C(c,_){var l=null;c.directives&&(l={},c.directives.forEach(function(K){l[K.name.value]={},K.arguments&&K.arguments.forEach(function(Q){return I(l[K.name.value],Q.name,Q.value,_)})}));var F=null;return c.arguments&&c.arguments.length&&(F={},c.arguments.forEach(function(K){return I(F,K.name,K.value,_)})),j(c.name.value,F,l)}var P=["connection","include","skip","client","rest","export"];function j(c,_,l){if(_&&l&&l.connection&&l.connection.key){if(l.connection.filter&&l.connection.filter.length>0){var F=l.connection.filter?l.connection.filter:[];F.sort();var K={};return F.forEach(function(ce){K[ce]=_[ce]}),l.connection.key+"("+JSON.stringify(K)+")"}return l.connection.key}var Q=c;if(_){var $=w()(_);Q+="("+$+")"}return l&&Object.keys(l).forEach(function(ce){-1===P.indexOf(ce)&&(l[ce]&&Object.keys(l[ce]).length?Q+="@"+ce+"("+JSON.stringify(l[ce])+")":Q+="@"+ce)}),Q}function V(c,_){if(c.arguments&&c.arguments.length){var l={};return c.arguments.forEach(function(F){return I(l,F.name,F.value,_)}),l}return null}function q(c){return c.alias?c.alias.value:c.name.value}function L(c,_,l){if("string"==typeof c.__typename)return c.__typename;for(var F=0,K=_.selections;F<K.length;F++){var Q=K[F];if(g(Q)){if("__typename"===Q.name.value)return c[q(Q)]}else{var $=L(c,(0,r.hi)(Q,l).selectionSet,l);if("string"==typeof $)return $}}}function g(c){return"Field"===c.kind}function T(c){return"InlineFragment"===c.kind}},64323:(ue,M,p)=>{"use strict";p.d(M,{Gw:()=>m,aL:()=>L,ob:()=>g,Fo:()=>D});var t=p(60162),w=p(74270),r=(p(73567),p(57993));function n(T,c,_){var l=0;return T.forEach(function(F,K){c.call(this,F,K,T)&&(T[l++]=F)},_),T.length=l,T}var i=p(7882),s=p(77260),e={kind:"Field",name:{kind:"Name",value:"__typename"}};function a(T,c){return T.selectionSet.selections.every(function(_){return"FragmentSpread"===_.kind&&a(c[_.name.value],c)})}function u(T){return a((0,r.$H)(T)||(0,r.pD)(T),(0,s.F)((0,r.kU)(T)))?null:T}function h(T){return function(_){return T.some(function(l){return l.name&&l.name===_.name.value||l.test&&l.test(_)})}}function y(T,c){var _=Object.create(null),l=[],F=Object.create(null),K=[],Q=u((0,w.Vn)(c,{Variable:{enter:function($,ce,ge){"VariableDefinition"!==ge.kind&&(_[$.name.value]=!0)}},Field:{enter:function($){if(T&&$.directives&&T.some(function(ge){return ge.remove})&&$.directives&&$.directives.some(h(T)))return $.arguments&&$.arguments.forEach(function(ge){"Variable"===ge.value.kind&&l.push({name:ge.value.name.value})}),$.selectionSet&&q($.selectionSet).forEach(function(ge){K.push({name:ge.name.value})}),null}},FragmentSpread:{enter:function($){F[$.name.value]=!0}},Directive:{enter:function($){if(h(T)($))return null}}}));return Q&&n(l,function($){return!!$.name&&!_[$.name]}).length&&(Q=function j(T,c){var _=function P(T){return function(_){return T.some(function(l){return _.value&&"Variable"===_.value.kind&&_.value.name&&(l.name===_.value.name.value||l.test&&l.test(_))})}}(T);return u((0,w.Vn)(c,{OperationDefinition:{enter:function(l){return(0,t.pi)((0,t.pi)({},l),{variableDefinitions:l.variableDefinitions?l.variableDefinitions.filter(function(F){return!T.some(function(K){return K.name===F.variable.name.value})}):[]})}},Field:{enter:function(l){var F=T.some(function(Q){return Q.remove});if(F){var K=0;if(l.arguments&&l.arguments.forEach(function(Q){_(Q)&&(K+=1)}),1===K)return null}}},Argument:{enter:function(l){if(_(l))return null}}}))}(l,Q)),Q&&n(K,function($){return!!$.name&&!F[$.name]}).length&&(Q=function V(T,c){function _(l){if(T.some(function(F){return F.name===l.name.value}))return null}return u((0,w.Vn)(c,{FragmentSpread:{enter:_},FragmentDefinition:{enter:_}}))}(K,Q)),Q}function m(T){return(0,w.Vn)((0,r.A$)(T),{SelectionSet:{enter:function(c,_,l){if(!l||"OperationDefinition"!==l.kind){var F=c.selections;if(F&&!F.some(function($){return(0,i.My)($)&&("__typename"===$.name.value||0===$.name.value.lastIndexOf("__",0))})){var Q=l;if(!((0,i.My)(Q)&&Q.directives&&Q.directives.some(function($){return"export"===$.name.value})))return(0,t.pi)((0,t.pi)({},c),{selections:(0,t.pr)(F,[e])})}}}}})}m.added=function(T){return T===e};var R={test:function(T){var c="connection"===T.name.value;return c&&(!T.arguments||T.arguments.some(function(_){return"key"===_.name.value})),c}};function D(T){return y([R],(0,r.A$)(T))}function q(T){var c=[];return T.selections.forEach(function(_){((0,i.My)(_)||(0,i.Ao)(_))&&_.selectionSet?q(_.selectionSet).forEach(function(l){return c.push(l)}):"FragmentSpread"===_.kind&&c.push(_)}),c}function L(T){return"query"===(0,r.p$)(T).operation?T:(0,w.Vn)(T,{OperationDefinition:{enter:function(F){return(0,t.pi)((0,t.pi)({},F),{operation:"query"})}}})}function g(T){(0,r.A$)(T);var c=y([{test:function(_){return"client"===_.name.value},remove:!0}],T);return c&&(c=(0,w.Vn)(c,{FragmentDefinition:{enter:function(_){if(_.selectionSet&&_.selectionSet.selections.every(function(F){return(0,i.My)(F)&&"__typename"===F.name.value}))return null}}})),c}},73418:(ue,M,p)=>{"use strict";function t(w,d,r){var n=[];w.forEach(function(i){return i[d]&&n.push(i)}),n.forEach(function(i){return i[d](r)})}p.d(M,{p:()=>t})},42903:(ue,M,p)=>{"use strict";p.d(M,{D:()=>d});var t=p(20316),w=p.n(t);function d(r){function n(i){Object.defineProperty(r,i,{value:w()})}return"function"==typeof Symbol&&Symbol.species&&n(Symbol.species),n("@@species"),r}},13146:(ue,M,p)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.RawSha256=void 0;var t=p(19749),w=function(){function d(){this.state=Int32Array.from(t.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return d.prototype.update=function(r){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,i=r.byteLength;if(this.bytesHashed+=i,8*this.bytesHashed>t.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;i>0;)this.buffer[this.bufferLength++]=r[n++],i--,this.bufferLength===t.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},d.prototype.digest=function(){if(!this.finished){var r=8*this.bytesHashed,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),i=this.bufferLength;if(n.setUint8(this.bufferLength++,128),i%t.BLOCK_SIZE>=t.BLOCK_SIZE-8){for(var s=this.bufferLength;s<t.BLOCK_SIZE;s++)n.setUint8(s,0);this.hashBuffer(),this.bufferLength=0}for(s=this.bufferLength;s<t.BLOCK_SIZE-8;s++)n.setUint8(s,0);n.setUint32(t.BLOCK_SIZE-8,Math.floor(r/4294967296),!0),n.setUint32(t.BLOCK_SIZE-4,r),this.hashBuffer(),this.finished=!0}var e=new Uint8Array(t.DIGEST_LENGTH);for(s=0;s<8;s++)e[4*s]=this.state[s]>>>24&255,e[4*s+1]=this.state[s]>>>16&255,e[4*s+2]=this.state[s]>>>8&255,e[4*s+3]=this.state[s]>>>0&255;return e},d.prototype.hashBuffer=function(){for(var n=this.buffer,i=this.state,s=i[0],e=i[1],a=i[2],u=i[3],h=i[4],y=i[5],m=i[6],R=i[7],D=0;D<t.BLOCK_SIZE;D++){if(D<16)this.temp[D]=(255&n[4*D])<<24|(255&n[4*D+1])<<16|(255&n[4*D+2])<<8|255&n[4*D+3];else{var I=this.temp[D-2];this.temp[D]=(((I>>>17|I<<15)^(I>>>19|I<<13)^I>>>10)+this.temp[D-7]|0)+((((I=this.temp[D-15])>>>7|I<<25)^(I>>>18|I<<14)^I>>>3)+this.temp[D-16]|0)}var j=(((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&y^~h&m)|0)+(R+(t.KEY[D]+this.temp[D]|0)|0)|0,V=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&e^s&a^e&a)|0;R=m,m=y,y=h,h=u+j|0,u=a,a=e,e=s,s=j+V|0}i[0]+=s,i[1]+=e,i[2]+=a,i[3]+=u,i[4]+=h,i[5]+=y,i[6]+=m,i[7]+=R},d}();M.RawSha256=w},19749:(ue,M)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.MAX_HASHABLE_LENGTH=M.INIT=M.KEY=M.DIGEST_LENGTH=M.BLOCK_SIZE=void 0,M.BLOCK_SIZE=64,M.DIGEST_LENGTH=32,M.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),M.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],M.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},4084:(ue,M,p)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),(0,p(91205).__exportStar)(p(71482),M)},71482:(ue,M,p)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.Sha256=void 0;var t=p(91205),w=p(19749),d=p(13146),r=p(51627),n=function(){function s(e){if(this.hash=new d.RawSha256,e){this.outer=new d.RawSha256;var a=function i(s){var e=(0,r.convertToBuffer)(s);if(e.byteLength>w.BLOCK_SIZE){var a=new d.RawSha256;a.update(e),e=a.digest()}var u=new Uint8Array(w.BLOCK_SIZE);return u.set(e),u}(e),u=new Uint8Array(w.BLOCK_SIZE);u.set(a);for(var h=0;h<w.BLOCK_SIZE;h++)a[h]^=54,u[h]^=92;for(this.hash.update(a),this.outer.update(u),h=0;h<a.byteLength;h++)a[h]=0}}return s.prototype.update=function(e){if(!(0,r.isEmptyData)(e)&&!this.error)try{this.hash.update((0,r.convertToBuffer)(e))}catch(a){this.error=a}},s.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},s.prototype.digest=function(){return(0,t.__awaiter)(this,void 0,void 0,function(){return(0,t.__generator)(this,function(e){return[2,this.digestSync()]})})},s}();M.Sha256=n},15917:(ue,M,p)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.convertToBuffer=void 0;var t=p(66102),w=typeof Buffer<"u"&&Buffer.from?function(r){return Buffer.from(r,"utf8")}:t.fromUtf8;M.convertToBuffer=function d(r){return r instanceof Uint8Array?r:"string"==typeof r?w(r):ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(r)}},51627:(ue,M,p)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.uint32ArrayFrom=M.numToUint8=M.isEmptyData=M.convertToBuffer=void 0;var t=p(15917);Object.defineProperty(M,"convertToBuffer",{enumerable:!0,get:function(){return t.convertToBuffer}});var w=p(50288);Object.defineProperty(M,"isEmptyData",{enumerable:!0,get:function(){return w.isEmptyData}});var d=p(10920);Object.defineProperty(M,"numToUint8",{enumerable:!0,get:function(){return d.numToUint8}});var r=p(45980);Object.defineProperty(M,"uint32ArrayFrom",{enumerable:!0,get:function(){return r.uint32ArrayFrom}})},50288:(ue,M)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.isEmptyData=void 0,M.isEmptyData=function p(t){return"string"==typeof t?0===t.length:0===t.byteLength}},10920:(ue,M)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.numToUint8=void 0,M.numToUint8=function p(t){return new Uint8Array([(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t])}},45980:(ue,M)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.uint32ArrayFrom=void 0,M.uint32ArrayFrom=function p(t){if(!Array.from){for(var w=new Uint32Array(t.length);0<t.length;)w[0]=t[0];return w}return Uint32Array.from(t)}},86347:(ue,M,p)=>{"use strict";p.d(M,{N:()=>i});for(var t={},w={},d=0;d<256;d++){var r=d.toString(16).toLowerCase();1===r.length&&(r="0".concat(r)),t[d]=r,w[r]=d}function i(s){for(var e="",a=0;a<s.byteLength;a++)e+=t[s[a]];return e}},66102:(ue,M,p)=>{"use strict";p.r(M),p.d(M,{fromUtf8:()=>n,toUtf8:()=>i});var n=function(s){return"function"==typeof TextEncoder?function d(s){return(new TextEncoder).encode(s)}(s):function(s){for(var e=[],a=0,u=s.length;a<u;a++){var h=s.charCodeAt(a);if(h<128)e.push(h);else if(h<2048)e.push(h>>6|192,63&h|128);else if(a+1<s.length&&55296==(64512&h)&&56320==(64512&s.charCodeAt(a+1))){var y=65536+((1023&h)<<10)+(1023&s.charCodeAt(++a));e.push(y>>18|240,y>>12&63|128,y>>6&63|128,63&y|128)}else e.push(h>>12|224,h>>6&63|128,63&h|128)}return Uint8Array.from(e)}(s)},i=function(s){return"function"==typeof TextDecoder?function r(s){return new TextDecoder("utf-8").decode(s)}(s):function(s){for(var e="",a=0,u=s.length;a<u;a++){var h=s[a];if(h<128)e+=String.fromCharCode(h);else if(192<=h&&h<224){var y=s[++a];e+=String.fromCharCode((31&h)<<6|63&y)}else if(240<=h&&h<365){var R="%"+[h,s[++a],s[++a],s[++a]].map(function(D){return D.toString(16)}).join("%");e+=decodeURIComponent(R)}else e+=String.fromCharCode((15&h)<<12|(63&s[++a])<<6|63&s[++a])}return e}(s)}},91971:(ue,M,p)=>{"use strict";p.d(M,{g7:()=>s});var t=null,w={},d=1,n="@wry/context:Slot",i=Array,s=i[n]||function(){var D=function(){function D(){this.id=["slot",d++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return D.prototype.hasValue=function(){for(var I=t;I;I=I.parent)if(this.id in I.slots){var C=I.slots[this.id];if(C===w)break;return I!==t&&(t.slots[this.id]=C),!0}return t&&(t.slots[this.id]=w),!1},D.prototype.getValue=function(){if(this.hasValue())return t.slots[this.id]},D.prototype.withValue=function(I,C,P,j){var V,q=((V={__proto__:null})[this.id]=I,V),L=t;t={parent:L,slots:q};try{return C.apply(j,P)}finally{t=L}},D.bind=function(I){var C=t;return function(){var P=t;try{return t=C,I.apply(this,arguments)}finally{t=P}}},D.noContext=function(I,C,P){if(!t)return I.apply(P,C);var j=t;try{return t=null,I.apply(P,C)}finally{t=j}},D}();try{Object.defineProperty(i,n,{value:i[n]=D,enumerable:!1,writable:!1,configurable:!1})}finally{return D}}()},52485:(ue,M,p)=>{"use strict";p.d(M,{D:()=>i});var t=Object.prototype,w=t.toString,d=t.hasOwnProperty,r=Function.prototype.toString,n=new Map;function i(m,R){try{return s(m,R)}finally{n.clear()}}function s(m,R){if(m===R)return!0;var D=w.call(m);if(D!==w.call(R))return!1;switch(D){case"[object Array]":if(m.length!==R.length)return!1;case"[object Object]":if(y(m,R))return!0;var C=e(m),P=e(R),j=C.length;if(j!==P.length)return!1;for(var V=0;V<j;++V)if(!d.call(R,C[V]))return!1;for(V=0;V<j;++V){var q=C[V];if(!s(m[q],R[q]))return!1}return!0;case"[object Error]":return m.name===R.name&&m.message===R.message;case"[object Number]":if(m!=m)return R!=R;case"[object Boolean]":case"[object Date]":return+m==+R;case"[object RegExp]":case"[object String]":return m==""+R;case"[object Map]":case"[object Set]":if(m.size!==R.size)return!1;if(y(m,R))return!0;for(var L=m.entries(),g="[object Map]"===D;;){var T=L.next();if(T.done)break;var c=T.value,_=c[0],l=c[1];if(!R.has(_)||g&&!s(l,R.get(_)))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]":m=new Uint8Array(m),R=new Uint8Array(R);case"[object DataView]":var F=m.byteLength;if(F===R.byteLength)for(;F--&&m[F]===R[F];);return-1===F;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var K=r.call(m);return K===r.call(R)&&!function h(m,R){var D=m.length-R.length;return D>=0&&m.indexOf(R,D)===D}(K,u)}return!1}function e(m){return Object.keys(m).filter(a,m)}function a(m){return void 0!==this[m]}var u="{ [native code] }";function y(m,R){var D=n.get(m);if(D){if(D.has(R))return!0}else n.set(m,D=new Set);return D.add(R),!1}},91269:(ue,M,p)=>{"use strict";p.d(M,{B:()=>n});var t=function(){return Object.create(null)},w=Array.prototype,d=w.forEach,r=w.slice,n=function(){function s(e,a){void 0===e&&(e=!0),void 0===a&&(a=t),this.weakness=e,this.makeData=a}return s.prototype.lookup=function(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return this.lookupArray(e)},s.prototype.lookupArray=function(e){var a=this;return d.call(e,function(u){return a=a.getChildTrie(u)}),a.data||(a.data=this.makeData(r.call(e)))},s.prototype.getChildTrie=function(e){var a=this.weakness&&function i(s){switch(typeof s){case"object":if(null===s)break;case"function":return!0}return!1}(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),u=a.get(e);return u||a.set(e,u=new s(this.weakness,this.makeData)),u},s}()},14962:(ue,M,p)=>{"use strict";p.r(M),p.d(M,{addTypenameToDocument:()=>ut,argumentsObjectFromField:()=>Tt,assign:()=>$t,buildQueryFromSelectionSet:()=>Jr,canUseWeakMap:()=>$r,checkDocument:()=>Ot,cloneDeep:()=>Zr,createFragmentMap:()=>Tr,getDefaultValues:()=>ur,getDirectiveInfoFromField:()=>Jt,getDirectiveNames:()=>mt,getDirectivesFromDocument:()=>Hr,getEnv:()=>hr,getFragmentDefinition:()=>sr,getFragmentDefinitions:()=>xr,getFragmentQueryDocument:()=>Or,getInclusionDirectives:()=>Qt,getMainDefinition:()=>Xt,getMutationDefinition:()=>Ar,getOperationDefinition:()=>Kt,getOperationDefinitionOrDie:()=>Qr,getOperationName:()=>Kr,getQueryDefinition:()=>qr,getStoreKeyName:()=>ft,graphQLResultHasError:()=>Dr,hasClientExports:()=>Wr,hasDirectives:()=>Nt,isDevelopment:()=>Dt,isEnv:()=>Bt,isEqual:()=>te,isField:()=>wt,isIdValue:()=>It,isInlineFragment:()=>Ct,isJsonValue:()=>Vt,isNumberValue:()=>Ue,isProduction:()=>Pr,isScalarValue:()=>Ie,isTest:()=>st,maybeDeepFreeze:()=>kr,mergeDeep:()=>Fr,mergeDeepArray:()=>At,removeArgumentsFromDocument:()=>Yr,removeClientSetsFromDocument:()=>fr,removeConnectionDirectiveFromDocument:()=>Pt,removeDirectivesFromDocument:()=>tr,removeFragmentSpreadFromDocument:()=>zt,resultKeyNameFromField:()=>Ft,shouldInclude:()=>Vr,storeKeyNameFromField:()=>Rt,stripSymbols:()=>vr,toIdValue:()=>Lt,tryFunctionOrLogError:()=>pr,valueFromNode:()=>Et,valueToObjectRepresentation:()=>yt,variablesInOperation:()=>zr,warnOnceInDevelopment:()=>tn});var G,t=p(74270),w=function(G,oe){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,Ee){fe.__proto__=Ee}||function(fe,Ee){for(var we in Ee)Ee.hasOwnProperty(we)&&(fe[we]=Ee[we])})(G,oe)},_="Invariant Violation",l=Object.setPrototypeOf,F=void 0===l?function(G,oe){return G.__proto__=oe,G}:l,K=function(G){function oe(fe){void 0===fe&&(fe=_);var Ee=G.call(this,"number"==typeof fe?_+": "+fe+" (see https://github.com/apollographql/invariant-packages)":fe)||this;return Ee.framesToPop=1,Ee.name=_,F(Ee,oe.prototype),Ee}return function d(G,oe){function fe(){this.constructor=G}w(G,oe),G.prototype=null===oe?Object.create(oe):(fe.prototype=oe.prototype,new fe)}(oe,G),oe}(Error);function Q(G,oe){if(!G)throw new K(oe)}function $(G){return function(){return console[G].apply(console,arguments)}}(G=Q||(Q={})).warn=$("warn"),G.error=$("error");var ce={env:{}};if("object"==typeof process)ce=process;else try{Function("stub","process = stub")(ce)}catch{}var z=function(){return z=Object.assign||function(oe){for(var fe,Ee=1,we=arguments.length;Ee<we;Ee++)for(var Se in fe=arguments[Ee])Object.prototype.hasOwnProperty.call(fe,Se)&&(oe[Se]=fe[Se]);return oe},z.apply(this,arguments)};function _e(){for(var G=0,oe=0,fe=arguments.length;oe<fe;oe++)G+=arguments[oe].length;var Ee=Array(G),we=0;for(oe=0;oe<fe;oe++)for(var Se=arguments[oe],Fe=0,Be=Se.length;Fe<Be;Fe++,we++)Ee[we]=Se[Fe];return Ee}var O=p(67495),k=p.n(O),re=Object.prototype,de=re.toString,xe=re.hasOwnProperty,Te=new Map;function te(G,oe){try{return he(G,oe)}finally{Te.clear()}}function he(G,oe){if(G===oe)return!0;var fe=de.call(G);if(fe!==de.call(oe))return!1;switch(fe){case"[object Array]":if(G.length!==oe.length)return!1;case"[object Object]":if(ve(G,oe))return!0;var we=Object.keys(G),Se=Object.keys(oe),Fe=we.length;if(Fe!==Se.length)return!1;for(var Be=0;Be<Fe;++Be)if(!xe.call(oe,we[Be]))return!1;for(Be=0;Be<Fe;++Be){var Ge=we[Be];if(!he(G[Ge],oe[Ge]))return!1}return!0;case"[object Error]":return G.name===oe.name&&G.message===oe.message;case"[object Number]":if(G!=G)return oe!=oe;case"[object Boolean]":case"[object Date]":return+G==+oe;case"[object RegExp]":case"[object String]":return G==""+oe;case"[object Map]":case"[object Set]":if(G.size!==oe.size)return!1;if(ve(G,oe))return!0;for(var Ne=G.entries(),et="[object Map]"===fe;;){var dt=Ne.next();if(dt.done)break;var $e=dt.value,lt=$e[0],xt=$e[1];if(!oe.has(lt)||et&&!he(xt,oe.get(lt)))return!1}return!0}return!1}function ve(G,oe){var fe=Te.get(G);if(fe){if(fe.has(oe))return!0}else Te.set(G,fe=new Set);return fe.add(oe),!1}function Ie(G){return["StringValue","BooleanValue","EnumValue"].indexOf(G.kind)>-1}function Ue(G){return["IntValue","FloatValue"].indexOf(G.kind)>-1}function yt(G,oe,fe,Ee){if(function nt(G){return"IntValue"===G.kind}(fe)||function ht(G){return"FloatValue"===G.kind}(fe))G[oe.value]=Number(fe.value);else if(function ze(G){return"BooleanValue"===G.kind}(fe)||function qe(G){return"StringValue"===G.kind}(fe))G[oe.value]=fe.value;else if(function Ke(G){return"ObjectValue"===G.kind}(fe)){var we={};fe.fields.map(function(Fe){return yt(we,Fe.name,Fe.value,Ee)}),G[oe.value]=we}else if(function at(G){return"Variable"===G.kind}(fe))G[oe.value]=(Ee||{})[fe.name.value];else if(function ct(G){return"ListValue"===G.kind}(fe))G[oe.value]=fe.values.map(function(Fe){var Be={};return yt(Be,oe,Fe,Ee),Be[oe.value]});else if(function jt(G){return"EnumValue"===G.kind}(fe))G[oe.value]=fe.value;else{if(!function pt(G){return"NullValue"===G.kind}(fe))throw new K(17);G[oe.value]=null}}function Rt(G,oe){var fe=null;G.directives&&(fe={},G.directives.forEach(function(we){fe[we.name.value]={},we.arguments&&we.arguments.forEach(function(Se){return yt(fe[we.name.value],Se.name,Se.value,oe)})}));var Ee=null;return G.arguments&&G.arguments.length&&(Ee={},G.arguments.forEach(function(we){return yt(Ee,we.name,we.value,oe)})),ft(G.name.value,Ee,fe)}var St=["connection","include","skip","client","rest","export"];function ft(G,oe,fe){if(fe&&fe.connection&&fe.connection.key){if(fe.connection.filter&&fe.connection.filter.length>0){var Ee=fe.connection.filter?fe.connection.filter:[];Ee.sort();var we=oe,Se={};return Ee.forEach(function(Ge){Se[Ge]=we[Ge]}),fe.connection.key+"("+JSON.stringify(Se)+")"}return fe.connection.key}var Fe=G;if(oe){var Be=k()(oe);Fe+="("+Be+")"}return fe&&Object.keys(fe).forEach(function(Ge){-1===St.indexOf(Ge)&&(fe[Ge]&&Object.keys(fe[Ge]).length?Fe+="@"+Ge+"("+JSON.stringify(fe[Ge])+")":Fe+="@"+Ge)}),Fe}function Tt(G,oe){if(G.arguments&&G.arguments.length){var fe={};return G.arguments.forEach(function(Ee){return yt(fe,Ee.name,Ee.value,oe)}),fe}return null}function Ft(G){return G.alias?G.alias.value:G.name.value}function wt(G){return"Field"===G.kind}function Ct(G){return"InlineFragment"===G.kind}function It(G){return G&&"id"===G.type&&"boolean"==typeof G.generated}function Lt(G,oe){return void 0===oe&&(oe=!1),z({type:"id",generated:oe},"string"==typeof G?{id:G,typename:void 0}:G)}function Vt(G){return null!=G&&"object"==typeof G&&"json"===G.type}function Wt(G){throw new K(18)}function Et(G,oe){switch(void 0===oe&&(oe=Wt),G.kind){case"Variable":return oe(G);case"NullValue":return null;case"IntValue":return parseInt(G.value,10);case"FloatValue":return parseFloat(G.value);case"ListValue":return G.values.map(function(Fe){return Et(Fe,oe)});case"ObjectValue":for(var fe={},Ee=0,we=G.fields;Ee<we.length;Ee++){var Se=we[Ee];fe[Se.name.value]=Et(Se.value,oe)}return fe;default:return G.value}}function Jt(G,oe){if(G.directives&&G.directives.length){var fe={};return G.directives.forEach(function(Ee){fe[Ee.name.value]=Tt(Ee,oe)}),fe}return null}function Vr(G,oe){return void 0===oe&&(oe={}),Qt(G.directives).every(function(fe){var Ee=fe.directive,we=fe.ifArgument,Se=!1;return"Variable"===we.value.kind?Q(void 0!==(Se=oe[we.value.name.value]),13):Se=we.value.value,"skip"===Ee.name.value?!Se:Se})}function mt(G){var oe=[];return(0,t.Vn)(G,{Directive:function(fe){oe.push(fe.name.value)}}),oe}function Nt(G,oe){return mt(oe).some(function(fe){return G.indexOf(fe)>-1})}function Wr(G){return G&&Nt(["client"],G)&&Nt(["export"],G)}function _t(G){var oe=G.name.value;return"skip"===oe||"include"===oe}function Qt(G){return G?G.filter(_t).map(function(oe){var fe=oe.arguments;Q(fe&&1===fe.length,14);var we=fe[0];Q(we.name&&"if"===we.name.value,15);var Se=we.value;return Q(Se&&("Variable"===Se.kind||"BooleanValue"===Se.kind),16),{directive:oe,ifArgument:we}}):[]}function Or(G,oe){var fe=oe,Ee=[];return G.definitions.forEach(function(Se){if("OperationDefinition"===Se.kind)throw new K(11);"FragmentDefinition"===Se.kind&&Ee.push(Se)}),typeof fe>"u"&&(Q(1===Ee.length,12),fe=Ee[0].name.value),z(z({},G),{definitions:_e([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:fe}}]}}],G.definitions)})}function $t(G){for(var oe=[],fe=1;fe<arguments.length;fe++)oe[fe-1]=arguments[fe];return oe.forEach(function(Ee){typeof Ee>"u"||null===Ee||Object.keys(Ee).forEach(function(we){G[we]=Ee[we]})}),G}function Ar(G){Ot(G);var oe=G.definitions.filter(function(fe){return"OperationDefinition"===fe.kind&&"mutation"===fe.operation})[0];return Q(oe,1),oe}function Ot(G){return Q(G&&"Document"===G.kind,2),Q(G.definitions.filter(function(fe){return"FragmentDefinition"!==fe.kind}).map(function(fe){if("OperationDefinition"!==fe.kind)throw new K(3);return fe}).length<=1,4),G}function Kt(G){return Ot(G),G.definitions.filter(function(oe){return"OperationDefinition"===oe.kind})[0]}function Qr(G){var oe=Kt(G);return Q(oe,5),oe}function Kr(G){return G.definitions.filter(function(oe){return"OperationDefinition"===oe.kind&&oe.name}).map(function(oe){return oe.name.value})[0]||null}function xr(G){return G.definitions.filter(function(oe){return"FragmentDefinition"===oe.kind})}function qr(G){var oe=Kt(G);return Q(oe&&"query"===oe.operation,6),oe}function sr(G){Q("Document"===G.kind,7),Q(G.definitions.length<=1,8);var oe=G.definitions[0];return Q("FragmentDefinition"===oe.kind,9),oe}function Xt(G){Ot(G);for(var oe,fe=0,Ee=G.definitions;fe<Ee.length;fe++){var we=Ee[fe];if("OperationDefinition"===we.kind){var Se=we.operation;if("query"===Se||"mutation"===Se||"subscription"===Se)return we}"FragmentDefinition"===we.kind&&!oe&&(oe=we)}if(oe)return oe;throw new K(10)}function Tr(G){void 0===G&&(G=[]);var oe={};return G.forEach(function(fe){oe[fe.name.value]=fe}),oe}function ur(G){if(G&&G.variableDefinitions&&G.variableDefinitions.length){var oe=G.variableDefinitions.filter(function(fe){return fe.defaultValue}).map(function(fe){var Se={};return yt(Se,fe.variable.name,fe.defaultValue),Se});return $t.apply(void 0,_e([{}],oe))}return{}}function zr(G){var oe=new Set;if(G.variableDefinitions)for(var fe=0,Ee=G.variableDefinitions;fe<Ee.length;fe++)oe.add(Ee[fe].variable.name.value);return oe}function cr(G,oe,fe){var Ee=0;return G.forEach(function(we,Se){oe.call(this,we,Se,G)&&(G[Ee++]=we)},fe),G.length=Ee,G}var Cr={kind:"Field",name:{kind:"Name",value:"__typename"}};function Zt(G,oe){return G.selectionSet.selections.every(function(fe){return"FragmentSpread"===fe.kind&&Zt(oe[fe.name.value],oe)})}function qt(G){return Zt(Kt(G)||sr(G),Tr(xr(G)))?null:G}function er(G){return function(fe){return G.some(function(Ee){return Ee.name&&Ee.name===fe.name.value||Ee.test&&Ee.test(fe)})}}function tr(G,oe){var fe=Object.create(null),Ee=[],we=Object.create(null),Se=[],Fe=qt((0,t.Vn)(oe,{Variable:{enter:function(Be,Ge,Ne){"VariableDefinition"!==Ne.kind&&(fe[Be.name.value]=!0)}},Field:{enter:function(Be){if(G&&Be.directives&&G.some(function(Ne){return Ne.remove})&&Be.directives&&Be.directives.some(er(G)))return Be.arguments&&Be.arguments.forEach(function(Ne){"Variable"===Ne.value.kind&&Ee.push({name:Ne.value.name.value})}),Be.selectionSet&&Ht(Be.selectionSet).forEach(function(Ne){Se.push({name:Ne.name.value})}),null}},FragmentSpread:{enter:function(Be){we[Be.name.value]=!0}},Directive:{enter:function(Be){if(er(G)(Be))return null}}}));return Fe&&cr(Ee,function(Be){return!fe[Be.name]}).length&&(Fe=Yr(Ee,Fe)),Fe&&cr(Se,function(Be){return!we[Be.name]}).length&&(Fe=zt(Se,Fe)),Fe}function ut(G){return(0,t.Vn)(Ot(G),{SelectionSet:{enter:function(oe,fe,Ee){if(!Ee||"OperationDefinition"!==Ee.kind){var we=oe.selections;if(we&&!we.some(function(Be){return wt(Be)&&("__typename"===Be.name.value||0===Be.name.value.lastIndexOf("__",0))})){var Fe=Ee;if(!(wt(Fe)&&Fe.directives&&Fe.directives.some(function(Be){return"export"===Be.name.value})))return z(z({},oe),{selections:_e(we,[Cr])})}}}}})}var rr={test:function(G){var oe="connection"===G.name.value;return oe&&(!G.arguments||G.arguments.some(function(fe){return"key"===fe.name.value})),oe}};function Pt(G){return tr([rr],Ot(G))}function Rr(G,oe,fe){return void 0===fe&&(fe=!0),oe&&oe.selections&&oe.selections.some(function(Ee){return Ir(G,Ee,fe)})}function Ir(G,oe,fe){return void 0===fe&&(fe=!0),!wt(oe)||!!oe.directives&&(oe.directives.some(er(G))||fe&&Rr(G,oe.selectionSet,fe))}function Hr(G,oe){var fe;return Ot(oe),qt((0,t.Vn)(oe,{SelectionSet:{enter:function(Ee,we,Se,Fe){var Be=Fe.join("-");if(!fe||Be===fe||!Be.startsWith(fe)){if(Ee.selections){var Ge=Ee.selections.filter(function(Ne){return Ir(G,Ne)});return Rr(G,Ee,!1)&&(fe=Be),z(z({},Ee),{selections:Ge})}return null}}}}))}function Yr(G,oe){var fe=function Gr(G){return function(fe){return G.some(function(Ee){return fe.value&&"Variable"===fe.value.kind&&fe.value.name&&(Ee.name===fe.value.name.value||Ee.test&&Ee.test(fe))})}}(G);return qt((0,t.Vn)(oe,{OperationDefinition:{enter:function(Ee){return z(z({},Ee),{variableDefinitions:Ee.variableDefinitions.filter(function(we){return!G.some(function(Se){return Se.name===we.variable.name.value})})})}},Field:{enter:function(Ee){if(G.some(function(Fe){return Fe.remove})){var Se=0;if(Ee.arguments.forEach(function(Fe){fe(Fe)&&(Se+=1)}),1===Se)return null}}},Argument:{enter:function(Ee){if(fe(Ee))return null}}}))}function zt(G,oe){function fe(Ee){if(G.some(function(we){return we.name===Ee.name.value}))return null}return qt((0,t.Vn)(oe,{FragmentSpread:{enter:fe},FragmentDefinition:{enter:fe}}))}function Ht(G){var oe=[];return G.selections.forEach(function(fe){(wt(fe)||Ct(fe))&&fe.selectionSet?Ht(fe.selectionSet).forEach(function(Ee){return oe.push(Ee)}):"FragmentSpread"===fe.kind&&oe.push(fe)}),oe}function Jr(G){return"query"===Xt(G).operation?G:(0,t.Vn)(G,{OperationDefinition:{enter:function(we){return z(z({},we),{operation:"query"})}}})}function fr(G){Ot(G);var oe=tr([{test:function(fe){return"client"===fe.name.value},remove:!0}],G);return oe&&(oe=(0,t.Vn)(oe,{FragmentDefinition:{enter:function(fe){if(fe.selectionSet&&fe.selectionSet.selections.every(function(we){return wt(we)&&"__typename"===we.name.value}))return null}}})),oe}var $r="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),Xr=Object.prototype.toString;function Zr(G){return lr(G,new Map)}function lr(G,oe){switch(Xr.call(G)){case"[object Array]":if(oe.has(G))return oe.get(G);var fe=G.slice(0);return oe.set(G,fe),fe.forEach(function(we,Se){fe[Se]=lr(we,oe)}),fe;case"[object Object]":if(oe.has(G))return oe.get(G);var Ee=Object.create(Object.getPrototypeOf(G));return oe.set(G,Ee),Object.keys(G).forEach(function(we){Ee[we]=lr(G[we],oe)}),Ee;default:return G}}function hr(){return typeof process<"u"?"production":"development"}function Bt(G){return hr()===G}function Pr(){return!0===Bt("production")}function Dt(){return!0===Bt("development")}function st(){return!0===Bt("test")}function pr(G){try{return G()}catch(oe){console.error&&console.error(oe)}}function Dr(G){return G.errors&&G.errors.length}function Mr(G){return Object.freeze(G),Object.getOwnPropertyNames(G).forEach(function(oe){null!==G[oe]&&("object"==typeof G[oe]||"function"==typeof G[oe])&&!Object.isFrozen(G[oe])&&Mr(G[oe])}),G}function kr(G){return!Dt()&&!st()||"function"==typeof Symbol&&"string"==typeof Symbol("")?G:Mr(G)}var en=Object.prototype.hasOwnProperty;function Fr(){for(var G=[],oe=0;oe<arguments.length;oe++)G[oe]=arguments[oe];return At(G)}function At(G){var oe=G[0]||{},fe=G.length;if(fe>1){var Ee=[];oe=dr(oe,Ee);for(var we=1;we<fe;++we)oe=Mt(oe,G[we],Ee)}return oe}function nr(G){return null!==G&&"object"==typeof G}function Mt(G,oe,fe){return nr(oe)&&nr(G)?(Object.isExtensible&&!Object.isExtensible(G)&&(G=dr(G,fe)),Object.keys(oe).forEach(function(Ee){var we=oe[Ee];if(en.call(G,Ee)){var Se=G[Ee];we!==Se&&(G[Ee]=Mt(dr(Se,fe),we,fe))}else G[Ee]=we}),G):oe}function dr(G,oe){return null!==G&&"object"==typeof G&&oe.indexOf(G)<0&&(G=Array.isArray(G)?G.slice(0):z({__proto__:Object.getPrototypeOf(G)},G),oe.push(G)),G}var it=Object.create({});function tn(G,oe){void 0===oe&&(oe="warn"),!Pr()&&!it[G]&&(st()||(it[G]=!0),"error"===oe?console.error(G):console.warn(G))}function vr(G){return JSON.parse(JSON.stringify(G))}},38920:function(ue,M,p){"use strict";var P,t=this&&this.__extends||(P=function(j,V){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,L){q.__proto__=L}||function(q,L){for(var g in L)L.hasOwnProperty(g)&&(q[g]=L[g])})(j,V)},function(j,V){function q(){this.constructor=j}P(j,V),j.prototype=null===V?Object.create(V):(q.prototype=V.prototype,new q)}),w=this&&this.__assign||function(){return w=Object.assign||function(P){for(var j,V=1,q=arguments.length;V<q;V++)for(var L in j=arguments[V])Object.prototype.hasOwnProperty.call(j,L)&&(P[L]=j[L]);return P},w.apply(this,arguments)},d=this&&this.__awaiter||function(P,j,V,q){return new(V||(V=Promise))(function(g,T){function c(F){try{l(q.next(F))}catch(K){T(K)}}function _(F){try{l(q.throw(F))}catch(K){T(K)}}function l(F){F.done?g(F.value):function L(g){return g instanceof V?g:new V(function(T){T(g)})}(F.value).then(c,_)}l((q=q.apply(P,j||[])).next())})},r=this&&this.__generator||function(P,j){var q,L,g,T,V={label:0,sent:function(){if(1&g[0])throw g[1];return g[1]},trys:[],ops:[]};return T={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(T[Symbol.iterator]=function(){return this}),T;function c(l){return function(F){return function _(l){if(q)throw new TypeError("Generator is already executing.");for(;V;)try{if(q=1,L&&(g=2&l[0]?L.return:l[0]?L.throw||((g=L.return)&&g.call(L),0):L.next)&&!(g=g.call(L,l[1])).done)return g;switch(L=0,g&&(l=[2&l[0],g.value]),l[0]){case 0:case 1:g=l;break;case 4:return V.label++,{value:l[1],done:!1};case 5:V.label++,L=l[1],l=[0];continue;case 7:l=V.ops.pop(),V.trys.pop();continue;default:if(!(g=(g=V.trys).length>0&&g[g.length-1])&&(6===l[0]||2===l[0])){V=0;continue}if(3===l[0]&&(!g||l[1]>g[0]&&l[1]<g[3])){V.label=l[1];break}if(6===l[0]&&V.label<g[1]){V.label=g[1],g=l;break}if(g&&V.label<g[2]){V.label=g[2],V.ops.push(l);break}g[2]&&V.ops.pop(),V.trys.pop();continue}l=j.call(P,V)}catch(F){l=[6,F],L=0}finally{q=g=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,F])}}};Object.defineProperty(M,"__esModule",{value:!0});var y,n=p(8711),i=p(8511),s=p(85754),e=p(90258),a=p(85526),u=p(7535);M.USER_AGENT_HEADER="x-amz-user-agent",M.USER_AGENT="aws-amplify/"+u.version+(a.userAgent&&" ")+a.userAgent,function(P){P.NONE="NONE",P.API_KEY="API_KEY",P.AWS_IAM="AWS_IAM",P.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",P.OPENID_CONNECT="OPENID_CONNECT",P.AWS_LAMBDA="AWS_LAMBDA"}(y=M.AUTH_TYPE||(M.AUTH_TYPE={}));var m=function(P){function j(V){var q=P.call(this)||this;return q.link=M.authLink(V),q}return t(j,P),j.prototype.request=function(V,q){return this.link.request(V,q)},j}(n.ApolloLink);M.AuthLink=m;var R=function(P,j,V){var q=void 0===P?{header:"",value:""}:P,L=q.header,g=q.value;return d(void 0,void 0,void 0,function(){var T,c,l,F,K;return r(this,function(Q){switch(Q.label){case 0:return T=j.getContext(),c=w(w({},T.headers),((F={})[M.USER_AGENT_HEADER]=M.USER_AGENT,F)),L&&g?"function"!=typeof g?[3,2]:[4,g.call(void 0)]:[3,5];case 1:return l=Q.sent(),[3,4];case 2:return[4,g];case 3:l=Q.sent(),Q.label=4;case 4:c=w(((K={})[L]=l,K),c),Q.label=5;case 5:return j.setContext(w(w({},T),{headers:c})),[2,V(j)]}})})};M.authLink=function(P){var j=P.url,V=P.region,q=P.auth,L=(void 0===q?{}:q).type,g=P.auth;return new n.ApolloLink(function(T,c){return new n.Observable(function(_){var l,F;switch(L){case y.NONE:F=R(void 0,T,c);break;case y.AWS_IAM:var K=g.credentials;F=function(P,j,V){var q=P.credentials,L=P.region,g=P.url;return d(void 0,void 0,void 0,function(){var T,c,_,l,F,K,Q,$,ce,ge,Z,pe,ae;return r(this,function(z){switch(z.label){case 0:return T="appsync",c=j.getContext(),(_="function"==typeof q?q.call():q||{})&&"function"==typeof _.getPromise?[4,_.getPromise()]:[3,2];case 1:z.sent(),z.label=2;case 2:return[4,_];case 3:return l=z.sent(),F=l.accessKeyId,K=l.secretAccessKey,Q=l.sessionToken,$=e.parse(g),ce=$.host,ge=$.path,Z=w(w({},I(j,{})),{service:T,region:L,url:g,host:ce,path:ge}),pe=s.Signer.sign(Z,{access_key:F,secret_key:K,session_token:Q}).headers,j.setContext(w(w({},c),{headers:w(w(w({},c.headers),pe),(ae={},ae[M.USER_AGENT_HEADER]=M.USER_AGENT,ae))})),[2,V(j)]}})})}({credentials:void 0===K?{}:K,region:V,url:j},T,c);break;case y.API_KEY:var $=g.apiKey;F=R({header:"X-Api-Key",value:void 0===$?"":$},T,c);break;case y.AMAZON_COGNITO_USER_POOLS:case y.OPENID_CONNECT:var ge=g.jwtToken;F=R({header:"Authorization",value:void 0===ge?"":ge},T,c);break;case y.AWS_LAMBDA:var pe=g.token;F=R({header:"Authorization",value:void 0===pe?"":pe},T,c);break;default:throw new Error("Invalid AUTH_TYPE: "+g.type)}return F.then(function(Y){l=Y.subscribe({next:_.next.bind(_),error:_.error.bind(_),complete:_.complete.bind(_)})}),function(){l&&l.unsubscribe()}})})};var I=function(P,j){var L=P.query,g={operationName:P.operationName,variables:C(P.variables),query:i.print(L)};return w(w({body:JSON.stringify(g),method:"POST"},j),{headers:w({accept:"*/*","content-type":"application/json; charset=UTF-8"},j.headers)})},C=function(P){return Object.keys(P).filter(function(j){return!j.startsWith("@@")}).reduce(function(j,V){return j[V]=P[V],j},{})}},63178:(ue,M,p)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});var t=p(38920);M.AuthLink=t.AuthLink,M.AUTH_TYPE=t.AUTH_TYPE,M.USER_AGENT_HEADER=t.USER_AGENT_HEADER,M.USER_AGENT=t.USER_AGENT,M.createAuthLink=function(d){return new t.AuthLink({url:d.url,region:d.region,auth:d.auth})};var w=p(85754);M.Signer=w.Signer},85526:(ue,M)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.userAgent=""},85754:(ue,M,p)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),function t(w){for(var d in w)M.hasOwnProperty(d)||(M[d]=w[d])}(p(85181))},85181:(ue,M,p)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),global.Buffer=global.Buffer||p(75877).lW;var t=p(90258),w=p(4084).Sha256,d=p(86347).N,r=function(C,P,j){void 0===j&&(j="");var V=new w(C);V.update(P);var q=V.digestSync();return"hex"===j?d(q):q},n=function(C){var P=C||"",j=new w;return j.update(P),d(j.digestSync())},i=function(C){return C&&0!==Object.keys(C).length?Object.keys(C).map(function(P){return{key:P.toLowerCase(),value:C[P]?C[P].trim().replace(/\s+/g," "):""}}).sort(function(P,j){return P.key<j.key?-1:1}).map(function(P){return P.key+":"+P.value}).join("\n")+"\n":""},s=function(C){return Object.keys(C).map(function(P){return P.toLowerCase()}).sort().join(";")},D=function(C,P,j){void 0===j&&(j=null),C.headers=C.headers||{};var q=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),L=q.substr(0,8),g="AWS4-HMAC-SHA256",T=t.parse(C.url);C.headers.host=T.host,C.headers["x-amz-date"]=q,P.session_token&&(C.headers["X-Amz-Security-Token"]=P.session_token);var c=function(C){var P=t.parse(C.url);return[C.method||"/",P.path,P.query,i(C.headers),s(C.headers),n(C.body)].join("\n")}(C);j=j||function(C){var q=(t.parse(C.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===q[1]&&(q=q.reverse()),{service:C.service||q[0],region:C.region||q[1]}}(C);var _=function(C,P,j){return[C,P,j,"aws4_request"].join("/")}(L,j.region,j.service),l=function(C,P,j,V){return[C,j,V,n(P)].join("\n")}(g,c,q,_),F=function(C,P,j){void 0===C&&(C="");var q=r("AWS4"+C,P),L=r(q,j.region),g=r(L,j.service);return r(g,"aws4_request")}(P.secret_key,L,j),K=function(C,P){return r(C,P,"hex")}(F,l),Q=function(C,P,j,V,q){return void 0===P&&(P=""),["AWS4-HMAC-SHA256 Credential="+P+"/"+j,"SignedHeaders="+V,"Signature="+q].join(", ")}(0,P.access_key,_,s(C.headers),K);return C.headers.Authorization=Q,C},I=function(){function C(){}return C.sign=D,C}();M.Signer=I,M.default=I},85641:function(ue,M,p){"use strict";var t=this&&this.__rest||function(e,a){var u={};for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&a.indexOf(h)<0&&(u[h]=e[h]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var y=0;for(h=Object.getOwnPropertySymbols(e);y<h.length;y++)a.indexOf(h[y])<0&&Object.prototype.propertyIsEnumerable.call(e,h[y])&&(u[h[y]]=e[h[y]])}return u};Object.defineProperty(M,"__esModule",{value:!0});var w=p(59427);M.CONTROL_EVENTS_KEY=w.CONTROL_EVENTS_KEY;var d=p(98e3),r=p(14962),n=p(34535),i=p(94402);M.createSubscriptionHandshakeLink=function s(e,a){var u,h;return"string"==typeof e?(u=a||d.createHttpLink({uri:e}),h=d.ApolloLink.from([new n.NonTerminatingLink("controlMessages",{link:new d.ApolloLink(function(m,R){return new d.Observable(function(D){var I,C=m.variables,P=w.CONTROL_EVENTS_KEY,j=C[P],V=t(C,["symbol"==typeof P?P:P+""]);return typeof j<"u"&&(m.variables=V),D.next(((I={})[w.CONTROL_EVENTS_KEY]=j,I)),function(){}})})}),new n.NonTerminatingLink("subsInfo",{link:u}),new w.SubscriptionHandshakeLink("subsInfo")])):(u=a||d.createHttpLink({uri:e.url}),h=new i.AppSyncRealTimeSubscriptionHandshakeLink(e)),d.ApolloLink.split(function(m){var D=r.getMainDefinition(m.query);return"OperationDefinition"===D.kind&&"subscription"===D.operation},h,u)}},34535:function(ue,M,p){"use strict";var e,t=this&&this.__extends||(e=function(a,u){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var m in y)y.hasOwnProperty(m)&&(h[m]=y[m])})(a,u)},function(a,u){function h(){this.constructor=a}e(a,u),a.prototype=null===u?Object.create(u):(h.prototype=u.prototype,new h)}),w=this&&this.__assign||function(){return w=Object.assign||function(e){for(var a,u=1,h=arguments.length;u<h;u++)for(var y in a=arguments[u])Object.prototype.hasOwnProperty.call(a,y)&&(e[y]=a[y]);return e},w.apply(this,arguments)},d=this&&this.__awaiter||function(e,a,u,h){return new(u||(u=Promise))(function(m,R){function D(P){try{C(h.next(P))}catch(j){R(j)}}function I(P){try{C(h.throw(P))}catch(j){R(j)}}function C(P){P.done?m(P.value):function y(m){return m instanceof u?m:new u(function(R){R(m)})}(P.value).then(D,I)}C((h=h.apply(e,a||[])).next())})},r=this&&this.__generator||function(e,a){var h,y,m,R,u={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return R={next:D(0),throw:D(1),return:D(2)},"function"==typeof Symbol&&(R[Symbol.iterator]=function(){return this}),R;function D(C){return function(P){return function I(C){if(h)throw new TypeError("Generator is already executing.");for(;u;)try{if(h=1,y&&(m=2&C[0]?y.return:C[0]?y.throw||((m=y.return)&&m.call(y),0):y.next)&&!(m=m.call(y,C[1])).done)return m;switch(y=0,m&&(C=[2&C[0],m.value]),C[0]){case 0:case 1:m=C;break;case 4:return u.label++,{value:C[1],done:!1};case 5:u.label++,y=C[1],C=[0];continue;case 7:C=u.ops.pop(),u.trys.pop();continue;default:if(!(m=(m=u.trys).length>0&&m[m.length-1])&&(6===C[0]||2===C[0])){u=0;continue}if(3===C[0]&&(!m||C[1]>m[0]&&C[1]<m[3])){u.label=C[1];break}if(6===C[0]&&u.label<m[1]){u.label=m[1],m=C;break}if(m&&u.label<m[2]){u.label=m[2],u.ops.push(C);break}m[2]&&u.ops.pop(),u.trys.pop();continue}C=a.call(e,u)}catch(P){C=[6,P],y=0}finally{h=m=0}if(5&C[0])throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}([C,P])}}};Object.defineProperty(M,"__esModule",{value:!0});var n=p(98e3),i=p(13047),s=function(e){function a(u,h){var y=h.link,m=e.call(this)||this;return m.contextKey=u,m.link=y,m}return t(a,e),a.prototype.request=function(u,h){var y=this;return i.setContext(function(m,R){return d(y,void 0,void 0,function(){var D,I,C=this;return r(this,function(P){switch(P.label){case 0:return[4,new Promise(function(j,V){C.link.request(u).subscribe({next:j,error:V})})];case 1:return D=P.sent(),[2,w(w({},R),(I={},I[this.contextKey]=D,I))]}})})}).request(u,h)},a}(n.ApolloLink);M.NonTerminatingLink=s},94402:function(ue,M,p){"use strict";var q,t=this&&this.__extends||(q=function(L,g){return(q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,c){T.__proto__=c}||function(T,c){for(var _ in c)c.hasOwnProperty(_)&&(T[_]=c[_])})(L,g)},function(L,g){function T(){this.constructor=L}q(L,g),L.prototype=null===g?Object.create(g):(T.prototype=g.prototype,new T)}),w=this&&this.__assign||function(){return w=Object.assign||function(q){for(var L,g=1,T=arguments.length;g<T;g++)for(var c in L=arguments[g])Object.prototype.hasOwnProperty.call(L,c)&&(q[c]=L[c]);return q},w.apply(this,arguments)},d=this&&this.__awaiter||function(q,L,g,T){return new(g||(g=Promise))(function(_,l){function F($){try{Q(T.next($))}catch(ce){l(ce)}}function K($){try{Q(T.throw($))}catch(ce){l(ce)}}function Q($){$.done?_($.value):function c(_){return _ instanceof g?_:new g(function(l){l(_)})}($.value).then(F,K)}Q((T=T.apply(q,L||[])).next())})},r=this&&this.__generator||function(q,L){var T,c,_,l,g={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return l={next:F(0),throw:F(1),return:F(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function F(Q){return function($){return function K(Q){if(T)throw new TypeError("Generator is already executing.");for(;g;)try{if(T=1,c&&(_=2&Q[0]?c.return:Q[0]?c.throw||((_=c.return)&&_.call(c),0):c.next)&&!(_=_.call(c,Q[1])).done)return _;switch(c=0,_&&(Q=[2&Q[0],_.value]),Q[0]){case 0:case 1:_=Q;break;case 4:return g.label++,{value:Q[1],done:!1};case 5:g.label++,c=Q[1],Q=[0];continue;case 7:Q=g.ops.pop(),g.trys.pop();continue;default:if(!(_=(_=g.trys).length>0&&_[_.length-1])&&(6===Q[0]||2===Q[0])){g=0;continue}if(3===Q[0]&&(!_||Q[1]>_[0]&&Q[1]<_[3])){g.label=Q[1];break}if(6===Q[0]&&g.label<_[1]){g.label=_[1],_=Q;break}if(_&&g.label<_[2]){g.label=_[2],g.ops.push(Q);break}_[2]&&g.ops.pop(),g.trys.pop();continue}Q=L.call(q,g)}catch($){Q=[6,$],c=0}finally{T=_=0}if(5&Q[0])throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}([Q,$])}}};Object.defineProperty(M,"__esModule",{value:!0});var n=p(98e3),i=p(97389),s=p(63178),e=p(56150),a=p(90258),u=p(49927),h=p(24573),y=p(14913),m=i.rootLogger.extend("subscriptions");M.CONTROL_EVENTS_KEY="@@controlEvents";var R=[400,401,403],I={accept:"application/json, text/javascript","content-encoding":"amz-1.0","content-type":"application/json; charset=UTF-8"},j=3e5,V=function(q){function L(g){var T=g.url,c=g.region,_=g.auth,l=q.call(this)||this;return l.socketStatus=h.SOCKET_STATUS.CLOSED,l.keepAliveTimeout=j,l.subscriptionObserverMap=new Map,l.promiseArray=[],l.url=T,l.region=c,l.auth=_,l}return t(L,q),L.prototype.request=function(g){var T,c=this,_=g.query,l=g.variables,F=g.getContext(),K=F.controlMessages,Q=M.CONTROL_EVENTS_KEY,$=(void 0===K?(T={},T[M.CONTROL_EVENTS_KEY]=void 0,T):K)[Q],ce=F.headers;return new n.Observable(function(ge){if(c.url){var Z=u.v4(),pe={appSyncGraphqlEndpoint:c.url,authenticationType:c.auth.type,query:e.print(_),region:c.region,graphql_headers:function(){return ce},variables:l,apiKey:c.auth.type===s.AUTH_TYPE.API_KEY?c.auth.apiKey:"",credentials:c.auth.type===s.AUTH_TYPE.AWS_IAM?c.auth.credentials:null,jwtToken:c.auth.type===s.AUTH_TYPE.AMAZON_COGNITO_USER_POOLS||c.auth.type===s.AUTH_TYPE.OPENID_CONNECT?c.auth.jwtToken:null};return c._startSubscriptionWithAWSAppSyncRealTime({options:pe,observer:ge,subscriptionId:Z}),function(){return d(c,void 0,void 0,function(){return r(this,function(z){try{if(this._verifySubscriptionAlreadyStarted(Z),this.subscriptionObserverMap.get(Z).subscriptionState!==h.SUBSCRIPTION_STATUS.CONNECTED)throw new Error("Subscription has failed, starting to remove subscription.");this._sendUnsubscriptionMessage(Z)}catch{return this._removeSubscriptionObserver(Z),[2]}return[2]})})}}ge.error({errors:[w({},new e.GraphQLError("Subscribe only available for AWS AppSync endpoint"))]}),ge.complete()}).filter(function(ge){var Z=ge.extensions,pe=(void 0===Z?{}:Z).controlMsgType;return!0===$||!(typeof(void 0===pe?void 0:pe)<"u")})},L.prototype._verifySubscriptionAlreadyStarted=function(g){return d(this,void 0,void 0,function(){var c=this;return r(this,function(_){return this.subscriptionObserverMap.get(g).subscriptionState===h.SUBSCRIPTION_STATUS.PENDING?[2,new Promise(function(l,F){var K=c.subscriptionObserverMap.get(g);c.subscriptionObserverMap.set(g,{observer:K.observer,subscriptionState:K.subscriptionState,variables:K.variables,query:K.query,subscriptionReadyCallback:l,subscriptionFailedCallback:F})})]:[2]})})},L.prototype._sendUnsubscriptionMessage=function(g){try{if(this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.socketStatus===h.SOCKET_STATUS.READY){var c=JSON.stringify({id:g,type:h.MESSAGE_TYPES.GQL_STOP});this.awsRealTimeSocket.send(c),this._removeSubscriptionObserver(g)}}catch(_){m({err:_})}},L.prototype._removeSubscriptionObserver=function(g){this.subscriptionObserverMap.delete(g),0===this.subscriptionObserverMap.size&&this._closeSocketWhenFlushed()},L.prototype._closeSocketWhenFlushed=function(){m("closing WebSocket..."),clearTimeout(this.keepAliveTimeoutId),this.awsRealTimeSocket?this.awsRealTimeSocket.bufferedAmount>0?setTimeout(this._closeSocketWhenFlushed.bind(this),1e3):(this.awsRealTimeSocket.close(1e3),this.awsRealTimeSocket=null,this.socketStatus=h.SOCKET_STATUS.CLOSED):this.socketStatus=h.SOCKET_STATUS.CLOSED},L.prototype._startSubscriptionWithAWSAppSyncRealTime=function(g){var T=g.options,c=g.observer,_=g.subscriptionId;return d(this,void 0,void 0,function(){var l,F,K,Q,$,ce,ge,Z,pe,ae,z,Y,ie,J,A,b,x,N,W,ee,_e,ye,Me,ne=this;return r(this,function(U){switch(U.label){case 0:return l=T.appSyncGraphqlEndpoint,F=T.authenticationType,$=T.apiKey,ce=T.region,Z=void 0===(ge=T.graphql_headers)?function(){return{}}:ge,pe=T.credentials,ae=T.jwtToken,Y={query:K=T.query,variables:Q=T.variables},this.subscriptionObserverMap.set(_,{observer:c,query:K,variables:Q,subscriptionState:z=h.SUBSCRIPTION_STATUS.PENDING,startAckTimeoutId:null}),ie=JSON.stringify(Y),A=[{}],[4,this._awsRealTimeHeaderBasedAuth({apiKey:$,appSyncGraphqlEndpoint:l,authenticationType:F,payload:ie,canonicalUri:"",region:ce,credentials:pe,jwtToken:ae})];case 1:return b=[w.apply(void 0,A.concat([U.sent()]))],[4,Z()];case 2:J=w.apply(void 0,[w.apply(void 0,b.concat([U.sent()])),(Me={},Me[s.USER_AGENT_HEADER]=s.USER_AGENT,Me)]),x={id:_,payload:{data:ie,extensions:{authorization:w({},J)}},type:h.MESSAGE_TYPES.GQL_START},N=JSON.stringify(x),U.label=3;case 3:return U.trys.push([3,5,,6]),[4,this._initializeWebSocketConnection({apiKey:$,appSyncGraphqlEndpoint:l,authenticationType:F,region:ce,credentials:pe,jwtToken:ae})];case 4:return U.sent(),[3,6];case 5:return W=U.sent(),c.error({errors:[w({},new e.GraphQLError("Connection failed: "+(void 0===(ee=W.message)?"":ee)))]}),c.complete(),"function"==typeof(_e=(this.subscriptionObserverMap.get(_)||{}).subscriptionFailedCallback)&&_e(),[2];case 6:return ye=this.subscriptionObserverMap.get(_),this.subscriptionObserverMap.set(_,{observer:c,subscriptionState:z,variables:Q,query:K,subscriptionReadyCallback:ye.subscriptionReadyCallback,subscriptionFailedCallback:ye.subscriptionFailedCallback,startAckTimeoutId:setTimeout(function(){ne._timeoutStartSubscriptionAck.call(ne,_)},15e3)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send(N),[2]}})})},L.prototype._initializeWebSocketConnection=function(g){var T=this,c=g.appSyncGraphqlEndpoint,_=g.authenticationType,l=g.apiKey,F=g.region,K=g.credentials,Q=g.jwtToken;if(this.socketStatus!==h.SOCKET_STATUS.READY)return new Promise(function($,ce){return d(T,void 0,void 0,function(){var ge,Z,pe,ae,z,Y,ie,A;return r(this,function(b){switch(b.label){case 0:if(this.promiseArray.push({res:$,rej:ce}),this.socketStatus!==h.SOCKET_STATUS.CLOSED)return[3,5];b.label=1;case 1:return b.trys.push([1,4,,5]),this.socketStatus=h.SOCKET_STATUS.CONNECTING,ge=L._discoverAppSyncRealTimeEndpoint(this.url),Z="{}",z=(ae=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:_,payload:Z,canonicalUri:"/connect",apiKey:l,appSyncGraphqlEndpoint:c,region:F,credentials:K,jwtToken:Q})];case 2:return pe=z.apply(ae,[b.sent()]),Y=Buffer.from(pe).toString("base64"),ie=Buffer.from(Z).toString("base64"),[4,this._initializeRetryableHandshake({awsRealTimeUrl:ge+"?header="+Y+"&payload="+ie})];case 3:return b.sent(),this.promiseArray.forEach(function(x){var N=x.res;m("Notifying connection successful"),N()}),this.socketStatus=h.SOCKET_STATUS.READY,this.promiseArray=[],[3,5];case 4:return A=b.sent(),this.promiseArray.forEach(function(x){return(0,x.rej)(A)}),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=null,this.socketStatus=h.SOCKET_STATUS.CLOSED,[3,5];case 5:return[2]}})})})},L.prototype._awsRealTimeHeaderBasedAuth=function(g){var T=g.authenticationType,c=g.payload,_=g.canonicalUri,l=g.appSyncGraphqlEndpoint,F=g.apiKey,K=g.region,Q=g.credentials,$=g.jwtToken;return d(this,void 0,void 0,function(){var ce,ge,Z;return r(this,function(ae){switch(ae.label){case 0:return ce={API_KEY:this._awsRealTimeApiKeyHeader.bind(this),AWS_IAM:this._awsRealTimeIAMHeader.bind(this),OPENID_CONNECT:this._awsRealTimeOPENIDHeader.bind(this),AMAZON_COGNITO_USER_POOLS:this._awsRealTimeOPENIDHeader.bind(this)},"function"!=typeof(ge=ce[T])?(m("Authentication type "+T+" not supported"),[2,{}]):(Z=a.parse(l).host,[4,ge({payload:c,canonicalUri:_,appSyncGraphqlEndpoint:l,apiKey:F,region:K,host:Z,credentials:Q,jwtToken:$})]);case 1:return[2,ae.sent()]}})})},L.prototype._awsRealTimeOPENIDHeader=function(g){var T=g.host,c=g.jwtToken;return d(this,void 0,void 0,function(){var _,l;return r(this,function(F){switch(F.label){case 0:return _={},"function"!=typeof c?[3,2]:[4,c.call(void 0)];case 1:return l=F.sent(),[3,4];case 2:return[4,c];case 3:l=F.sent(),F.label=4;case 4:return[2,(_.Authorization=l,_.host=T,_)]}})})},L.prototype._awsRealTimeApiKeyHeader=function(g){var T=g.apiKey,c=g.host;return d(this,void 0,void 0,function(){var _,l;return r(this,function(F){return _=new Date,l=_.toISOString().replace(/[:\-]|\.\d{3}/g,""),[2,{host:c,"x-amz-date":l,"x-api-key":T}]})})},L.prototype._awsRealTimeIAMHeader=function(g){var T=g.payload,c=g.canonicalUri,_=g.appSyncGraphqlEndpoint,l=g.region,F=g.credentials;return d(this,void 0,void 0,function(){var K,Q,$,pe,ae;return r(this,function(Y){switch(Y.label){case 0:return K={region:l,service:"appsync"},(Q="function"==typeof F?F.call():F||{})&&"function"==typeof Q.getPromise?[4,Q.getPromise()]:[3,2];case 1:Y.sent(),Y.label=2;case 2:if(!Q)throw new Error("No credentials");return[4,Q];case 3:return $=Y.sent(),pe={access_key:$.accessKeyId,secret_key:$.secretAccessKey,session_token:$.sessionToken},ae={url:""+_+c,body:T,method:"POST",headers:w({},I)},[2,s.Signer.sign(ae,pe,K).headers]}})})},L.prototype._initializeRetryableHandshake=function(g){var T=g.awsRealTimeUrl;return d(this,void 0,void 0,function(){return r(this,function(c){switch(c.label){case 0:return m("Initializaling retryable Handshake"),[4,y.jitteredExponentialRetry(this._initializeHandshake.bind(this),[{awsRealTimeUrl:T}])];case 1:return c.sent(),[2]}})})},L.prototype._initializeHandshake=function(g){var T=g.awsRealTimeUrl;return d(this,void 0,void 0,function(){var c,_,F=this;return r(this,function(K){switch(K.label){case 0:m("Initializing handshake "+T),K.label=1;case 1:return K.trys.push([1,4,,5]),[4,new Promise(function(Q,$){var ce=L.createWebSocket(T,"graphql-ws");ce.onerror=function(){m("WebSocket connection error")},ce.onclose=function(){$(new Error("Connection handshake error"))},ce.onopen=function(){return F.awsRealTimeSocket=ce,Q()}})];case 2:return K.sent(),[4,new Promise(function(Q,$){var ce=!1;F.awsRealTimeSocket.onerror=function(pe){m("WebSocket closed "+JSON.stringify(pe))},F.awsRealTimeSocket.onclose=function(pe){m("WebSocket closed "+pe.reason),$(new Error(JSON.stringify(pe)))},F.awsRealTimeSocket.onmessage=function(pe){m("subscription message from AWS AppSyncRealTime: "+pe.data+" ");var ae=JSON.parse(pe.data),z=ae.type,Y=ae.payload,ie=(void 0===Y?{}:Y).connectionTimeoutMs;if(z===h.MESSAGE_TYPES.GQL_CONNECTION_ACK)return ce=!0,F.keepAliveTimeout=void 0===ie?j:ie,F.awsRealTimeSocket.onmessage=F._handleIncomingSubscriptionMessage.bind(F),F.awsRealTimeSocket.onerror=function(ye){m(ye),F._errorDisconnect(h.CONTROL_MSG.CONNECTION_CLOSED)},F.awsRealTimeSocket.onclose=function(ye){m("WebSocket closed "+ye.reason),F._errorDisconnect(h.CONTROL_MSG.CONNECTION_CLOSED)},void Q("Cool, connected to AWS AppSyncRealTime");if(z===h.MESSAGE_TYPES.GQL_CONNECTION_ERROR){var A=ae.payload,b=(void 0===A?{}:A).errors,x=(void 0===b?[]:b)[0],N=void 0===x?{}:x,W=N.errorType,se=N.errorCode;$({errorType:void 0===W?"":W,errorCode:void 0===se?0:se})}},F.awsRealTimeSocket.send(JSON.stringify({type:h.MESSAGE_TYPES.GQL_CONNECTION_INIT})),setTimeout(function Z(){ce||$(new Error("Connection timeout: ack from AWSRealTime was not received on 15000 ms"))}.bind(F),15e3)})];case 3:return K.sent(),[3,5];case 4:throw c=K.sent(),_=c.errorType,R.indexOf(c.errorCode)>=0?new y.NonRetryableError(_):_?new Error(_):c;case 5:return[2]}})})},L.prototype._handleIncomingSubscriptionMessage=function(g){m("subscription message from AWS AppSync RealTime: "+g.data);var T=JSON.parse(g.data),c=T.id,_=void 0===c?"":c,l=T.payload,F=T.type,K=this.subscriptionObserverMap.get(_)||{},Q=K.observer,$=void 0===Q?null:Q,ce=K.query,ge=void 0===ce?"":ce,Z=K.variables,pe=void 0===Z?{}:Z,ae=K.startAckTimeoutId,z=void 0===ae?0:ae,Y=K.subscriptionReadyCallback,ie=void 0===Y?null:Y,J=K.subscriptionFailedCallback,A=void 0===J?null:J;if(m({id:_,observer:$,query:ge,variables:pe}),F===h.MESSAGE_TYPES.GQL_DATA&&l&&l.data)$?$.next(l):m("observer not found for id: "+_);else{if(F===h.MESSAGE_TYPES.GQL_START_ACK)return m("subscription ready for "+JSON.stringify({query:ge,variables:pe})),"function"==typeof ie&&ie(),clearTimeout(z),$?$.next({data:l,extensions:{controlMsgType:"CONNECTED"}}):m("observer not found for id: "+_),void this.subscriptionObserverMap.set(_,{observer:$,query:ge,variables:pe,startAckTimeoutId:null,subscriptionState:h.SUBSCRIPTION_STATUS.CONNECTED,subscriptionReadyCallback:ie,subscriptionFailedCallback:A});if(F===h.MESSAGE_TYPES.GQL_CONNECTION_KEEP_ALIVE)return clearTimeout(this.keepAliveTimeoutId),void(this.keepAliveTimeoutId=setTimeout(this._errorDisconnect.bind(this,h.CONTROL_MSG.TIMEOUT_DISCONNECT),this.keepAliveTimeout));F===h.MESSAGE_TYPES.GQL_ERROR&&(this.subscriptionObserverMap.set(_,{observer:$,query:ge,variables:pe,startAckTimeoutId:z,subscriptionReadyCallback:ie,subscriptionFailedCallback:A,subscriptionState:h.SUBSCRIPTION_STATUS.FAILED}),$.error({errors:[w({},new e.GraphQLError("Connection failed: "+JSON.stringify(l)))]}),clearTimeout(z),$.complete(),"function"==typeof A&&A())}},L.prototype._errorDisconnect=function(g){m("Disconnect error: "+g),this.subscriptionObserverMap.forEach(function(T){var c=T.observer;c&&!c.closed&&c.error({errors:[w({},new e.GraphQLError(g))]})}),this.subscriptionObserverMap.clear(),this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=h.SOCKET_STATUS.CLOSED},L.prototype._timeoutStartSubscriptionAck=function(g){var T=this.subscriptionObserverMap.get(g)||{},c=T.observer,_=T.query,l=T.variables;!c||(this.subscriptionObserverMap.set(g,{observer:c,query:_,variables:l,subscriptionState:h.SUBSCRIPTION_STATUS.FAILED}),c&&!c.closed&&(c.error({errors:[w({},new e.GraphQLError("Subscription timeout "+JSON.stringify({query:_,variables:l})))]}),c.complete()),m("timeoutStartSubscription",JSON.stringify({query:_,variables:l})))},L.createWebSocket=function(g,T){return new WebSocket(g,T)},L._discoverAppSyncRealTimeEndpoint=function(g){return g.replace("https://","wss://").replace("http://","ws://").replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta")},L}(n.ApolloLink);M.AppSyncRealTimeSubscriptionHandshakeLink=V},59427:function(ue,M,p){"use strict";var m,t=this&&this.__extends||(m=function(R,D){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,C){I.__proto__=C}||function(I,C){for(var P in C)C.hasOwnProperty(P)&&(I[P]=C[P])})(R,D)},function(R,D){function I(){this.constructor=R}m(R,D),R.prototype=null===D?Object.create(D):(I.prototype=D.prototype,new I)}),w=this&&this.__assign||function(){return w=Object.assign||function(m){for(var R,D=1,I=arguments.length;D<I;D++)for(var C in R=arguments[D])Object.prototype.hasOwnProperty.call(R,C)&&(m[C]=R[C]);return m},w.apply(this,arguments)},d=this&&this.__awaiter||function(m,R,D,I){return new(D||(D=Promise))(function(P,j){function V(g){try{L(I.next(g))}catch(T){j(T)}}function q(g){try{L(I.throw(g))}catch(T){j(T)}}function L(g){g.done?P(g.value):function C(P){return P instanceof D?P:new D(function(j){j(P)})}(g.value).then(V,q)}L((I=I.apply(m,R||[])).next())})},r=this&&this.__generator||function(m,R){var I,C,P,j,D={label:0,sent:function(){if(1&P[0])throw P[1];return P[1]},trys:[],ops:[]};return j={next:V(0),throw:V(1),return:V(2)},"function"==typeof Symbol&&(j[Symbol.iterator]=function(){return this}),j;function V(L){return function(g){return function q(L){if(I)throw new TypeError("Generator is already executing.");for(;D;)try{if(I=1,C&&(P=2&L[0]?C.return:L[0]?C.throw||((P=C.return)&&P.call(C),0):C.next)&&!(P=P.call(C,L[1])).done)return P;switch(C=0,P&&(L=[2&L[0],P.value]),L[0]){case 0:case 1:P=L;break;case 4:return D.label++,{value:L[1],done:!1};case 5:D.label++,C=L[1],L=[0];continue;case 7:L=D.ops.pop(),D.trys.pop();continue;default:if(!(P=(P=D.trys).length>0&&P[P.length-1])&&(6===L[0]||2===L[0])){D=0;continue}if(3===L[0]&&(!P||L[1]>P[0]&&L[1]<P[3])){D.label=L[1];break}if(6===L[0]&&D.label<P[1]){D.label=P[1],P=L;break}if(P&&D.label<P[2]){D.label=P[2],D.ops.push(L);break}P[2]&&D.ops.pop(),D.trys.pop();continue}L=R.call(m,D)}catch(g){L=[6,g],C=0}finally{I=P=0}if(5&L[0])throw L[1];return{value:L[0]?L[1]:void 0,done:!0}}([L,g])}}},n=this&&this.__rest||function(m,R){var D={};for(var I in m)Object.prototype.hasOwnProperty.call(m,I)&&R.indexOf(I)<0&&(D[I]=m[I]);if(null!=m&&"function"==typeof Object.getOwnPropertySymbols){var C=0;for(I=Object.getOwnPropertySymbols(m);C<I.length;C++)R.indexOf(I[C])<0&&Object.prototype.propertyIsEnumerable.call(m,I[C])&&(D[I[C]]=m[I[C]])}return D};Object.defineProperty(M,"__esModule",{value:!0});var i=p(98e3),s=p(97389),e=p(22709),a=p(14962),u=s.rootLogger.extend("subscriptions"),h=u.extend("mqtt");M.CONTROL_EVENTS_KEY="@@controlEvents";var y=function(m){function R(D){var I=m.call(this)||this;return I.topicObservers=new Map,I.clientObservers=new Map,I.onMessage=function(C,P,j){var V=JSON.parse(P),q=I.topicObservers.get(C),L=j.reduce(function(g,T){return g[T]=g[T]||null,g},V.data||{});u("Message received",{data:L,topic:C,observers:q}),q.forEach(function(g){try{g.next(w(w({},V),{data:L}))}catch(T){u(T)}})},I.subsInfoContextKey=D,I}return t(R,m),R.prototype.request=function(D){var I,C=this,P=D.getContext(),V=P[this.subsInfoContextKey],q=P.controlMessages,L=M.CONTROL_EVENTS_KEY,g=(void 0===q?(I={},I[M.CONTROL_EVENTS_KEY]=void 0,I):q)[L],T=V.extensions,c=(void 0===T?{subscription:{newSubscriptions:{},mqttConnections:[]}}:T).subscription,_=c.newSubscriptions,l=c.mqttConnections,F=V.errors,K=void 0===F?[]:F;if(K&&K.length)return new i.Observable(function(ge){return ge.error(new i.ApolloError({errorMessage:"Error during subscription handshake",extraInfo:{errors:K},graphQLErrors:K})),function(){}});var Q=Object.keys(_).map(function(ge){return _[ge].topic}),$=new Set(Q.filter(function(ge){return C.topicObservers.has(ge)})),ce=new Set(Q.filter(function(ge){return!$.has(ge)}));return new i.Observable(function(ge){$.forEach(function(pe){C.topicObservers.get(pe).add(ge);var ae=Array.from(C.topicObservers.get(pe)).find(function(){return!0}),z=Array.from(C.clientObservers).find(function(Y){return Y[1].observers.has(ae)})[0];C.clientObservers.get(z).observers.add(ge)});var Z=l.filter(function(pe){return pe.topics.some(function(ae){return ce.has(ae)})}).map(function(pe){var ae=pe.topics,z=n(pe,["topics"]);return w(w({},z),{topics:ae.filter(function(Y){return ce.has(Y)})})});return C.connectNewClients(Z,ge,D),function(){Array.from(C.clientObservers).filter(function(ae){return ae[1].observers.has(ge)}).forEach(function(ae){return C.clientObservers.get(ae[0]).observers.delete(ge)}),C.clientObservers.forEach(function(ae){var Y=ae.client;0===ae.observers.size&&(Y.isConnected()&&Y.disconnect(),C.clientObservers.delete(Y.clientId))}),C.clientObservers=new Map(Array.from(C.clientObservers).filter(function(ae){return ae[1].observers.size>0})),C.topicObservers.forEach(function(ae){return ae.delete(ge)}),C.topicObservers=new Map(Array.from(C.topicObservers).filter(function(ae){return ae[1].size>0}))}}).filter(function(ge){var Z=ge.extensions,pe=(void 0===Z?{}:Z).controlMsgType;return!0===g||!(typeof(void 0===pe?void 0:pe)<"u")})},R.prototype.connectNewClients=function(D,I,C){return d(this,void 0,void 0,function(){var j,V,q,L=this;return r(this,function(g){return j=a.getMainDefinition(C.query).selectionSet.selections.map(function(T){return T.name.value}),V=Promise.all(D.map(function(T){return L.connectNewClient(T,I,j)})),q=j.reduce(function(T,c){return T[c]=T[c]||null,T},{}),I.next({data:q,extensions:{controlMsgType:"CONNECTED",controlMsgInfo:{connectionInfo:D}}}),[2,V]})})},R.prototype.connectNewClient=function(D,I,C){return d(this,void 0,void 0,function(){var P,j,V,q,L=this;return r(this,function(g){switch(g.label){case 0:return V=D.topics,(q=new e.Client(j=D.url,P=D.client)).trace=h.bind(null,P),q.onConnectionLost=function(T){var c=T.errorCode,_=n(T,["errorCode"]);0!==c&&V.forEach(function(l){L.topicObservers.has(l)&&L.topicObservers.get(l).forEach(function(F){return F.error(w(w({},_),{permanent:!0}))})}),V.forEach(function(l){return L.topicObservers.delete(l)})},q.onMessageArrived=function(T){return L.onMessage(T.destinationName,T.payloadString,C)},[4,new Promise(function(T,c){q.connect({useSSL:0===j.indexOf("wss://"),mqttVersion:3,onSuccess:function(){return T(q)},onFailure:c})})];case 1:return g.sent(),[4,this.subscribeToTopics(q,V,I)];case 2:return g.sent(),[2,q]}})})},R.prototype.subscribeToTopics=function(D,I,C){var P=this;return Promise.all(I.map(function(j){return P.subscribeToTopic(D,j,C)}))},R.prototype.subscribeToTopic=function(D,I,C){var P=this;return new Promise(function(j,V){D.subscribe(I,{onSuccess:function(){P.topicObservers.has(I)||P.topicObservers.set(I,new Set),P.clientObservers.has(D.clientId)||P.clientObservers.set(D.clientId,{client:D,observers:new Set}),P.topicObservers.get(I).add(C),P.clientObservers.get(D.clientId).observers.add(C),j(I)},onFailure:V})})},R}(i.ApolloLink);M.SubscriptionHandshakeLink=y},24573:(ue,M)=>{"use strict";var r;Object.defineProperty(M,"__esModule",{value:!0}),(r=M.SUBSCRIPTION_STATUS||(M.SUBSCRIPTION_STATUS={}))[r.PENDING=0]="PENDING",r[r.CONNECTED=1]="CONNECTED",r[r.FAILED=2]="FAILED",function(r){r[r.CLOSED=0]="CLOSED",r[r.READY=1]="READY",r[r.CONNECTING=2]="CONNECTING"}(M.SOCKET_STATUS||(M.SOCKET_STATUS={})),function(r){r.GQL_CONNECTION_INIT="connection_init",r.GQL_CONNECTION_ERROR="connection_error",r.GQL_CONNECTION_ACK="connection_ack",r.GQL_START="start",r.GQL_START_ACK="start_ack",r.GQL_DATA="data",r.GQL_CONNECTION_KEEP_ALIVE="ka",r.GQL_STOP="stop",r.GQL_COMPLETE="complete",r.GQL_ERROR="error"}(M.MESSAGE_TYPES||(M.MESSAGE_TYPES={})),function(r){r.CONNECTION_CLOSED="Connection closed",r.TIMEOUT_DISCONNECT="Timeout disconnect",r.SUBSCRIPTION_ACK="Subscription ack"}(M.CONTROL_MSG||(M.CONTROL_MSG={}))},97389:(ue,M,p)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});var t=p(97982);M.rootLogger=t.default},97982:function(ue,M,p){"use strict";var t=this&&this.__spreadArrays||function(){for(var n=0,i=0,s=arguments.length;i<s;i++)n+=arguments[i].length;var e=Array(n),a=0;for(i=0;i<s;i++)for(var u=arguments[i],h=0,y=u.length;h<y;h++,a++)e[a]=u[h];return e};Object.defineProperty(M,"__esModule",{value:!0});var w=p(83483),d=w.default("aws-appsync"),r=function(n){void 0===n&&(n="");var i=n?t(this.namespace.split(":"),[n]).join(":"):this.namespace,s=w.default(i);return s.extend=r.bind(s),s};d.extend=r.bind(d),M.default=d},14913:function(ue,M,p){"use strict";var h,t=this&&this.__extends||(h=function(y,m){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,D){R.__proto__=D}||function(R,D){for(var I in D)D.hasOwnProperty(I)&&(R[I]=D[I])})(y,m)},function(y,m){function R(){this.constructor=y}h(y,m),y.prototype=null===m?Object.create(m):(R.prototype=m.prototype,new R)}),w=this&&this.__awaiter||function(h,y,m,R){return new(m||(m=Promise))(function(I,C){function P(q){try{V(R.next(q))}catch(L){C(L)}}function j(q){try{V(R.throw(q))}catch(L){C(L)}}function V(q){q.done?I(q.value):function D(I){return I instanceof m?I:new m(function(C){C(I)})}(q.value).then(P,j)}V((R=R.apply(h,y||[])).next())})},d=this&&this.__generator||function(h,y){var R,D,I,C,m={label:0,sent:function(){if(1&I[0])throw I[1];return I[1]},trys:[],ops:[]};return C={next:P(0),throw:P(1),return:P(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function P(V){return function(q){return function j(V){if(R)throw new TypeError("Generator is already executing.");for(;m;)try{if(R=1,D&&(I=2&V[0]?D.return:V[0]?D.throw||((I=D.return)&&I.call(D),0):D.next)&&!(I=I.call(D,V[1])).done)return I;switch(D=0,I&&(V=[2&V[0],I.value]),V[0]){case 0:case 1:I=V;break;case 4:return m.label++,{value:V[1],done:!1};case 5:m.label++,D=V[1],V=[0];continue;case 7:V=m.ops.pop(),m.trys.pop();continue;default:if(!(I=(I=m.trys).length>0&&I[I.length-1])&&(6===V[0]||2===V[0])){m=0;continue}if(3===V[0]&&(!I||V[1]>I[0]&&V[1]<I[3])){m.label=V[1];break}if(6===V[0]&&m.label<I[1]){m.label=I[1],I=V;break}if(I&&m.label<I[2]){m.label=I[2],m.ops.push(V);break}I[2]&&m.ops.pop(),m.trys.pop();continue}V=y.call(h,m)}catch(q){V=[6,q],D=0}finally{R=I=0}if(5&V[0])throw V[1];return{value:V[0]?V[1]:void 0,done:!0}}([V,q])}}};Object.defineProperty(M,"__esModule",{value:!0});var n=p(97389).rootLogger.extend("retry"),s=function(h){function y(m){var R=h.call(this,m)||this;return R.nonRetryable=!0,R}return t(y,h),y}(Error);function a(h,y,m,R){return void 0===R&&(R=1),w(this,void 0,void 0,function(){var D,I;return d(this,function(C){switch(C.label){case 0:n("Attempt #"+R+" for this vars: "+JSON.stringify(y)),C.label=1;case 1:return C.trys.push([1,3,,8]),[4,h.apply(void 0,y)];case 2:return C.sent(),[3,8];case 3:if(D=C.sent(),n("error "+D),function(h){return h&&h.nonRetryable}(D))throw n("non retryable error"),D;return I=m(R,y,D),n("retryIn ",I),!1===I?[3,6]:[4,new Promise(function(P){return setTimeout(P,I)})];case 4:return C.sent(),[4,a(h,y,m,R+1)];case 5:return[2,C.sent()];case 6:throw D;case 7:return[3,8];case 8:return[2]}})})}M.NonRetryableError=s,M.retry=a,M.jitteredExponentialRetry=function(h,y,m){return void 0===m&&(m=5e3),a(h,y,function u(h){return function(R){var D=100*Math.pow(2,R)+100*Math.random();return!(D>h)&&D}}(m))}},22709:function(ue){var p;ue.exports=(p=function(t){var _,d=t.localStorage||(_={},{setItem:function(l,F){_[l]=F},getItem:function(l){return _[l]},removeItem:function(l){delete _[l]}}),r_CONNECT=1,r_CONNACK=2,r_PUBLISH=3,r_PUBACK=4,r_PUBREC=5,r_PUBREL=6,r_PUBCOMP=7,r_SUBSCRIBE=8,r_SUBACK=9,r_UNSUBSCRIBE=10,r_UNSUBACK=11,r_PINGREQ=12,r_PINGRESP=13,r_DISCONNECT=14,n=function(_,l){for(var F in _)if(_.hasOwnProperty(F)){if(!l.hasOwnProperty(F)){var K="Unknown property, "+F+". Valid properties are:";for(var Q in l)l.hasOwnProperty(Q)&&(K=K+" "+Q);throw new Error(K)}if(typeof _[F]!==l[F])throw new Error(a(s.INVALID_TYPE,[typeof _[F],F]))}},i=function(_,l){return function(){return _.apply(l,arguments)}},s={OK:{code:0,text:"AMQJSC0000I OK."},CONNECT_TIMEOUT:{code:1,text:"AMQJSC0001E Connect timed out."},SUBSCRIBE_TIMEOUT:{code:2,text:"AMQJS0002E Subscribe timed out."},UNSUBSCRIBE_TIMEOUT:{code:3,text:"AMQJS0003E Unsubscribe timed out."},PING_TIMEOUT:{code:4,text:"AMQJS0004E Ping timed out."},INTERNAL_ERROR:{code:5,text:"AMQJS0005E Internal error. Error Message: {0}, Stack trace: {1}"},CONNACK_RETURNCODE:{code:6,text:"AMQJS0006E Bad Connack return code:{0} {1}."},SOCKET_ERROR:{code:7,text:"AMQJS0007E Socket error:{0}."},SOCKET_CLOSE:{code:8,text:"AMQJS0008I Socket closed."},MALFORMED_UTF:{code:9,text:"AMQJS0009E Malformed UTF data:{0} {1} {2}."},UNSUPPORTED:{code:10,text:"AMQJS0010E {0} is not supported by this browser."},INVALID_STATE:{code:11,text:"AMQJS0011E Invalid state {0}."},INVALID_TYPE:{code:12,text:"AMQJS0012E Invalid type {0} for {1}."},INVALID_ARGUMENT:{code:13,text:"AMQJS0013E Invalid argument {0} for {1}."},UNSUPPORTED_OPERATION:{code:14,text:"AMQJS0014E Unsupported operation."},INVALID_STORED_DATA:{code:15,text:"AMQJS0015E Invalid data in local storage key={0} value={1}."},INVALID_MQTT_MESSAGE_TYPE:{code:16,text:"AMQJS0016E Invalid MQTT message type {0}."},MALFORMED_UNICODE:{code:17,text:"AMQJS0017E Malformed Unicode string:{0} {1}."},BUFFER_FULL:{code:18,text:"AMQJS0018E Message buffer is full, maximum buffer size: {0}."}},e={0:"Connection Accepted",1:"Connection Refused: unacceptable protocol version",2:"Connection Refused: identifier rejected",3:"Connection Refused: server unavailable",4:"Connection Refused: bad user name or password",5:"Connection Refused: not authorized"},a=function(_,l){var F=_.text;if(l)for(var K,Q,$=0;$<l.length;$++)if((Q=F.indexOf(K="{"+$+"}"))>0){var ce=F.substring(0,Q),ge=F.substring(Q+K.length);F=ce+l[$]+ge}return F},u=[0,6,77,81,73,115,100,112,3],h=[0,4,77,81,84,84,4],y=function(_,l){for(var F in this.type=_,l)l.hasOwnProperty(F)&&(this[F]=l[F])};function m(_,l){var F=l,K=_[l],Q=K>>4,$=K&=15;l+=1;var ce,ge=0,Z=1;do{if(l==_.length)return[null,F];ge+=(127&(ce=_[l++]))*Z,Z*=128}while(0!=(128&ce));var pe=l+ge;if(pe>_.length)return[null,F];var ae=new y(Q);switch(Q){case r_CONNACK:1&_[l++]&&(ae.sessionPresent=!0),ae.returnCode=_[l++];break;case r_PUBLISH:var Y=$>>1&3,ie=I(_,l),J=V(_,l+=2,ie);l+=ie,Y>0&&(ae.messageIdentifier=I(_,l),l+=2);var A=new p.Message(_.subarray(l,pe));1==(1&$)&&(A.retained=!0),8==(8&$)&&(A.duplicate=!0),A.qos=Y,A.destinationName=J,ae.payloadMessage=A;break;case r_PUBACK:case r_PUBREC:case r_PUBREL:case r_PUBCOMP:case r_UNSUBACK:ae.messageIdentifier=I(_,l);break;case r_SUBACK:ae.messageIdentifier=I(_,l),ae.returnCode=_.subarray(l+=2,pe)}return[ae,pe]}function R(_,l,F){return l[F++]=_>>8,l[F++]=_%256,F}function D(_,l,F,K){return j(_,F,K=R(l,F,K)),K+l}function I(_,l){return 256*_[l]+_[l+1]}function P(_){for(var l=0,F=0;F<_.length;F++){var K=_.charCodeAt(F);K>2047?(55296<=K&&K<=56319&&(F++,l++),l+=3):K>127?l+=2:l++}return l}function j(_,l,F){for(var K=F,Q=0;Q<_.length;Q++){var $=_.charCodeAt(Q);if(55296<=$&&$<=56319){var ce=_.charCodeAt(++Q);if(isNaN(ce))throw new Error(a(s.MALFORMED_UNICODE,[$,ce]));$=ce-56320+($-55296<<10)+65536}$<=127?l[K++]=$:$<=2047?(l[K++]=$>>6&31|192,l[K++]=63&$|128):$<=65535?(l[K++]=$>>12&15|224,l[K++]=$>>6&63|128,l[K++]=63&$|128):(l[K++]=$>>18&7|240,l[K++]=$>>12&63|128,l[K++]=$>>6&63|128,l[K++]=63&$|128)}return l}function V(_,l,F){for(var Q,K="",$=l;$<l+F;){var ce=_[$++];if(ce<128)Q=ce;else{var ge=_[$++]-128;if(ge<0)throw new Error(a(s.MALFORMED_UTF,[ce.toString(16),ge.toString(16),""]));if(ce<224)Q=64*(ce-192)+ge;else{var Z=_[$++]-128;if(Z<0)throw new Error(a(s.MALFORMED_UTF,[ce.toString(16),ge.toString(16),Z.toString(16)]));if(ce<240)Q=4096*(ce-224)+64*ge+Z;else{var pe=_[$++]-128;if(pe<0)throw new Error(a(s.MALFORMED_UTF,[ce.toString(16),ge.toString(16),Z.toString(16),pe.toString(16)]));if(!(ce<248))throw new Error(a(s.MALFORMED_UTF,[ce.toString(16),ge.toString(16),Z.toString(16),pe.toString(16)]));Q=262144*(ce-240)+4096*ge+64*Z+pe}}}Q>65535&&(Q-=65536,K+=String.fromCharCode(55296+(Q>>10)),Q=56320+(1023&Q)),K+=String.fromCharCode(Q)}return K}y.prototype.encode=function(){var Q,_=(15&this.type)<<4,l=0,F=[],K=0;switch(void 0!==this.messageIdentifier&&(l+=2),this.type){case r_CONNECT:switch(this.mqttVersion){case 3:l+=u.length+3;break;case 4:l+=h.length+3}l+=P(this.clientId)+2,void 0!==this.willMessage&&(l+=P(this.willMessage.destinationName)+2,(Q=this.willMessage.payloadBytes)instanceof Uint8Array||(Q=new Uint8Array(ce)),l+=Q.byteLength+2),void 0!==this.userName&&(l+=P(this.userName)+2),void 0!==this.password&&(l+=P(this.password)+2);break;case r_SUBSCRIBE:_|=2;for(var $=0;$<this.topics.length;$++)F[$]=P(this.topics[$]),l+=F[$]+2;l+=this.requestedQos.length;break;case r_UNSUBSCRIBE:for(_|=2,$=0;$<this.topics.length;$++)F[$]=P(this.topics[$]),l+=F[$]+2;break;case r_PUBREL:_|=2;break;case r_PUBLISH:this.payloadMessage.duplicate&&(_|=8),_=_|=this.payloadMessage.qos<<1,this.payloadMessage.retained&&(_|=1),l+=(K=P(this.payloadMessage.destinationName))+2;var ce=this.payloadMessage.payloadBytes;l+=ce.byteLength,ce instanceof ArrayBuffer?ce=new Uint8Array(ce):ce instanceof Uint8Array||(ce=new Uint8Array(ce.buffer))}var ge=function C(_){var l=new Array(1),F=0;do{var K=_%128;(_>>=7)>0&&(K|=128),l[F++]=K}while(_>0&&F<4);return l}(l),Z=ge.length+1,pe=new ArrayBuffer(l+Z),ae=new Uint8Array(pe);if(ae[0]=_,ae.set(ge,1),this.type==r_PUBLISH)Z=D(this.payloadMessage.destinationName,K,ae,Z);else if(this.type==r_CONNECT){switch(this.mqttVersion){case 3:ae.set(u,Z),Z+=u.length;break;case 4:ae.set(h,Z),Z+=h.length}var z=0;this.cleanSession&&(z=2),void 0!==this.willMessage&&(z|=4,z|=this.willMessage.qos<<3,this.willMessage.retained&&(z|=32)),void 0!==this.userName&&(z|=128),void 0!==this.password&&(z|=64),ae[Z++]=z,Z=R(this.keepAliveInterval,ae,Z)}switch(void 0!==this.messageIdentifier&&(Z=R(this.messageIdentifier,ae,Z)),this.type){case r_CONNECT:Z=D(this.clientId,P(this.clientId),ae,Z),void 0!==this.willMessage&&(Z=D(this.willMessage.destinationName,P(this.willMessage.destinationName),ae,Z),Z=R(Q.byteLength,ae,Z),ae.set(Q,Z),Z+=Q.byteLength),void 0!==this.userName&&(Z=D(this.userName,P(this.userName),ae,Z)),void 0!==this.password&&(Z=D(this.password,P(this.password),ae,Z));break;case r_PUBLISH:ae.set(ce,Z);break;case r_SUBSCRIBE:for($=0;$<this.topics.length;$++)Z=D(this.topics[$],F[$],ae,Z),ae[Z++]=this.requestedQos[$];break;case r_UNSUBSCRIBE:for($=0;$<this.topics.length;$++)Z=D(this.topics[$],F[$],ae,Z)}return pe};var q=function(_,l){this._client=_,this._keepAliveInterval=1e3*l,this.isReset=!1;var F=new y(r_PINGREQ).encode(),K=function($){return function(){return Q.apply($)}},Q=function(){this.isReset?(this.isReset=!1,this._client._trace("Pinger.doPing","send PINGREQ"),this._client.socket.send(F),this.timeout=setTimeout(K(this),this._keepAliveInterval)):(this._client._trace("Pinger.doPing","Timed out"),this._client._disconnected(s.PING_TIMEOUT.code,a(s.PING_TIMEOUT)))};this.reset=function(){this.isReset=!0,clearTimeout(this.timeout),this._keepAliveInterval>0&&(this.timeout=setTimeout(K(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},L=function(_,l,F,K){var $,ce,ge;l||(l=30),this.timeout=setTimeout(($=F,ce=_,ge=K,function(){return $.apply(ce,ge)}),1e3*l),this.cancel=function(){clearTimeout(this.timeout)}},g=function(_,l,F,K,Q){if(!("WebSocket"in t)||null===t.WebSocket)throw new Error(a(s.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in t)||null===t.ArrayBuffer)throw new Error(a(s.UNSUPPORTED,["ArrayBuffer"]));for(var $ in this._trace("Paho.Client",_,l,F,K,Q),this.host=l,this.port=F,this.path=K,this.uri=_,this.clientId=Q,this._wsuri=null,this._localKey=l+":"+F+("/mqtt"!=K?":"+K:"")+":"+Q+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,d)(0===$.indexOf("Sent:"+this._localKey)||0===$.indexOf("Received:"+this._localKey))&&this.restore($)};g.prototype.host=null,g.prototype.port=null,g.prototype.path=null,g.prototype.uri=null,g.prototype.clientId=null,g.prototype.socket=null,g.prototype.connected=!1,g.prototype.maxMessageIdentifier=65536,g.prototype.connectOptions=null,g.prototype.hostIndex=null,g.prototype.onConnected=null,g.prototype.onConnectionLost=null,g.prototype.onMessageDelivered=null,g.prototype.onMessageArrived=null,g.prototype.traceFunction=null,g.prototype._msg_queue=null,g.prototype._buffered_msg_queue=null,g.prototype._connectTimeout=null,g.prototype.sendPinger=null,g.prototype.receivePinger=null,g.prototype._reconnectInterval=1,g.prototype._reconnecting=!1,g.prototype._reconnectTimeout=null,g.prototype.disconnectedPublishing=!1,g.prototype.disconnectedBufferSize=5e3,g.prototype.receiveBuffer=null,g.prototype._traceBuffer=null,g.prototype._MAX_TRACE_ENTRIES=100,g.prototype.connect=function(_){var l=this._traceMask(_,"password");if(this._trace("Client.connect",l,this.socket,this.connected),this.connected)throw new Error(a(s.INVALID_STATE,["already connected"]));if(this.socket)throw new Error(a(s.INVALID_STATE,["already connected"]));this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),this.connectOptions=_,this._reconnectInterval=1,this._reconnecting=!1,_.uris?(this.hostIndex=0,this._doConnect(_.uris[0])):this._doConnect(this.uri)},g.prototype.subscribe=function(_,l){if(this._trace("Client.subscribe",_,l),!this.connected)throw new Error(a(s.INVALID_STATE,["not connected"]));var F=new y(r_SUBSCRIBE);F.topics=[_],F.requestedQos=void 0!==l.qos?[l.qos]:[0],l.onSuccess&&(F.onSuccess=function(K){l.onSuccess({invocationContext:l.invocationContext,grantedQos:K})}),l.onFailure&&(F.onFailure=function(K){l.onFailure({invocationContext:l.invocationContext,errorCode:K,errorMessage:a(K)})}),l.timeout&&(F.timeOut=new L(this,l.timeout,l.onFailure,[{invocationContext:l.invocationContext,errorCode:s.SUBSCRIBE_TIMEOUT.code,errorMessage:a(s.SUBSCRIBE_TIMEOUT)}])),this._requires_ack(F),this._schedule_message(F)},g.prototype.unsubscribe=function(_,l){if(this._trace("Client.unsubscribe",_,l),!this.connected)throw new Error(a(s.INVALID_STATE,["not connected"]));var F=new y(r_UNSUBSCRIBE);F.topics=[_],l.onSuccess&&(F.callback=function(){l.onSuccess({invocationContext:l.invocationContext})}),l.timeout&&(F.timeOut=new L(this,l.timeout,l.onFailure,[{invocationContext:l.invocationContext,errorCode:s.UNSUBSCRIBE_TIMEOUT.code,errorMessage:a(s.UNSUBSCRIBE_TIMEOUT)}])),this._requires_ack(F),this._schedule_message(F)},g.prototype.send=function(_){this._trace("Client.send",_);var l=new y(r_PUBLISH);if(l.payloadMessage=_,this.connected)_.qos>0?this._requires_ack(l):this.onMessageDelivered&&(this._notify_msg_sent[l]=this.onMessageDelivered(l.payloadMessage)),this._schedule_message(l);else{if(!this._reconnecting||!this.disconnectedPublishing)throw new Error(a(s.INVALID_STATE,["not connected"]));if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw new Error(a(s.BUFFER_FULL,[this.disconnectedBufferSize]));_.qos>0?this._requires_ack(l):(l.sequence=++this._sequence,this._buffered_msg_queue.unshift(l))}},g.prototype.disconnect=function(){if(this._trace("Client.disconnect"),this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),!this.socket)throw new Error(a(s.INVALID_STATE,["not connecting or connected"]));var _=new y(r_DISCONNECT);this._notify_msg_sent[_]=i(this._disconnected,this),this._schedule_message(_)},g.prototype.getTraceLog=function(){if(null!==this._traceBuffer){for(var _ in this._trace("Client.getTraceLog",new Date),this._trace("Client.getTraceLog in flight messages",this._sentMessages.length),this._sentMessages)this._trace("_sentMessages ",_,this._sentMessages[_]);for(var _ in this._receivedMessages)this._trace("_receivedMessages ",_,this._receivedMessages[_]);return this._traceBuffer}},g.prototype.startTrace=function(){null===this._traceBuffer&&(this._traceBuffer=[]),this._trace("Client.startTrace",new Date,"@VERSION@-@BUILDLEVEL@")},g.prototype.stopTrace=function(){delete this._traceBuffer},g.prototype._doConnect=function(_){if(this.connectOptions.useSSL){var l=_.split(":");l[0]="wss",_=l.join(":")}this._wsuri=_,this.connected=!1,this.socket=this.connectOptions.mqttVersion<4?new WebSocket(_,["mqttv3.1"]):new WebSocket(_,["mqtt"]),this.socket.binaryType="arraybuffer",this.socket.onopen=i(this._on_socket_open,this),this.socket.onmessage=i(this._on_socket_message,this),this.socket.onerror=i(this._on_socket_error,this),this.socket.onclose=i(this._on_socket_close,this),this.sendPinger=new q(this,this.connectOptions.keepAliveInterval),this.receivePinger=new q(this,this.connectOptions.keepAliveInterval),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._connectTimeout=new L(this,this.connectOptions.timeout,this._disconnected,[s.CONNECT_TIMEOUT.code,a(s.CONNECT_TIMEOUT)])},g.prototype._schedule_message=function(_){this._msg_queue.unshift(_),this.connected&&this._process_queue()},g.prototype.store=function(_,l){var F={type:l.type,messageIdentifier:l.messageIdentifier,version:1};if(l.type!==r_PUBLISH)throw Error(a(s.INVALID_STORED_DATA,[_+this._localKey+l.messageIdentifier,F]));l.pubRecReceived&&(F.pubRecReceived=!0),F.payloadMessage={};for(var K="",Q=l.payloadMessage.payloadBytes,$=0;$<Q.length;$++)Q[$]<=15?K=K+"0"+Q[$].toString(16):K+=Q[$].toString(16);F.payloadMessage.payloadHex=K,F.payloadMessage.qos=l.payloadMessage.qos,F.payloadMessage.destinationName=l.payloadMessage.destinationName,l.payloadMessage.duplicate&&(F.payloadMessage.duplicate=!0),l.payloadMessage.retained&&(F.payloadMessage.retained=!0),0===_.indexOf("Sent:")&&(void 0===l.sequence&&(l.sequence=++this._sequence),F.sequence=l.sequence),d.setItem(_+this._localKey+l.messageIdentifier,JSON.stringify(F))},g.prototype.restore=function(_){var l=d.getItem(_),F=JSON.parse(l),K=new y(F.type,F);if(F.type!==r_PUBLISH)throw Error(a(s.INVALID_STORED_DATA,[_,l]));for(var Q=F.payloadMessage.payloadHex,$=new ArrayBuffer(Q.length/2),ce=new Uint8Array($),ge=0;Q.length>=2;){var Z=parseInt(Q.substring(0,2),16);Q=Q.substring(2,Q.length),ce[ge++]=Z}var pe=new p.Message(ce);pe.qos=F.payloadMessage.qos,pe.destinationName=F.payloadMessage.destinationName,F.payloadMessage.duplicate&&(pe.duplicate=!0),F.payloadMessage.retained&&(pe.retained=!0),K.payloadMessage=pe,0===_.indexOf("Sent:"+this._localKey)?(K.payloadMessage.duplicate=!0,this._sentMessages[K.messageIdentifier]=K):0===_.indexOf("Received:"+this._localKey)&&(this._receivedMessages[K.messageIdentifier]=K)},g.prototype._process_queue=function(){for(var _=null;_=this._msg_queue.pop();)this._socket_send(_),this._notify_msg_sent[_]&&(this._notify_msg_sent[_](),delete this._notify_msg_sent[_])},g.prototype._requires_ack=function(_){var l=Object.keys(this._sentMessages).length;if(l>this.maxMessageIdentifier)throw Error("Too many messages:"+l);for(;void 0!==this._sentMessages[this._message_identifier];)this._message_identifier++;_.messageIdentifier=this._message_identifier,this._sentMessages[_.messageIdentifier]=_,_.type===r_PUBLISH&&this.store("Sent:",_),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},g.prototype._on_socket_open=function(){var _=new y(r_CONNECT,this.connectOptions);_.clientId=this.clientId,this._socket_send(_)},g.prototype._on_socket_message=function(_){this._trace("Client._on_socket_message",_.data);for(var l=this._deframeMessages(_.data),F=0;F<l.length;F+=1)this._handleMessage(l[F])},g.prototype._deframeMessages=function(_){var l=new Uint8Array(_),F=[];if(this.receiveBuffer){var K=new Uint8Array(this.receiveBuffer.length+l.length);K.set(this.receiveBuffer),K.set(l,this.receiveBuffer.length),l=K,delete this.receiveBuffer}try{for(var Q=0;Q<l.length;){var $=m(l,Q),ce=$[0];if(Q=$[1],null===ce)break;F.push(ce)}Q<l.length&&(this.receiveBuffer=l.subarray(Q))}catch(Z){var ge="undefined"==Z.hasOwnProperty("stack")?Z.stack.toString():"No Error Stack Available";return void this._disconnected(s.INTERNAL_ERROR.code,a(s.INTERNAL_ERROR,[Z.message,ge]))}return F},g.prototype._handleMessage=function(_){this._trace("Client._handleMessage",_);try{switch(_.type){case r_CONNACK:if(this._connectTimeout.cancel(),this._reconnectTimeout&&this._reconnectTimeout.cancel(),this.connectOptions.cleanSession){for(var l in this._sentMessages)d.removeItem("Sent:"+this._localKey+(z=this._sentMessages[l]).messageIdentifier);for(var l in this._sentMessages={},this._receivedMessages)d.removeItem("Received:"+this._localKey+(pe=this._receivedMessages[l]).messageIdentifier);this._receivedMessages={}}if(0!==_.returnCode){this._disconnected(s.CONNACK_RETURNCODE.code,a(s.CONNACK_RETURNCODE,[_.returnCode,e[_.returnCode]]));break}this.connected=!0,this.connectOptions.uris&&(this.hostIndex=this.connectOptions.uris.length);var Q=[];for(var F in this._sentMessages)this._sentMessages.hasOwnProperty(F)&&Q.push(this._sentMessages[F]);if(this._buffered_msg_queue.length>0)for(var K=null;K=this._buffered_msg_queue.pop();)Q.push(K),this.onMessageDelivered&&(this._notify_msg_sent[K]=this.onMessageDelivered(K.payloadMessage));Q=Q.sort(function(ie,J){return ie.sequence-J.sequence});for(var $=0,ce=Q.length;$<ce;$++)if((z=Q[$]).type==r_PUBLISH&&z.pubRecReceived){var ge=new y(r_PUBREL,{messageIdentifier:z.messageIdentifier});this._schedule_message(ge)}else this._schedule_message(z);this.connectOptions.onSuccess&&this.connectOptions.onSuccess({invocationContext:this.connectOptions.invocationContext});var Z=!1;this._reconnecting&&(Z=!0,this._reconnectInterval=1,this._reconnecting=!1),this._connected(Z,this._wsuri),this._process_queue();break;case r_PUBLISH:this._receivePublish(_);break;case r_PUBACK:(z=this._sentMessages[_.messageIdentifier])&&(delete this._sentMessages[_.messageIdentifier],d.removeItem("Sent:"+this._localKey+_.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(z.payloadMessage));break;case r_PUBREC:(z=this._sentMessages[_.messageIdentifier])&&(z.pubRecReceived=!0,ge=new y(r_PUBREL,{messageIdentifier:_.messageIdentifier}),this.store("Sent:",z),this._schedule_message(ge));break;case r_PUBREL:var pe=this._receivedMessages[_.messageIdentifier];d.removeItem("Received:"+this._localKey+_.messageIdentifier),pe&&(this._receiveMessage(pe),delete this._receivedMessages[_.messageIdentifier]);var ae=new y(r_PUBCOMP,{messageIdentifier:_.messageIdentifier});this._schedule_message(ae);break;case r_PUBCOMP:var z=this._sentMessages[_.messageIdentifier];delete this._sentMessages[_.messageIdentifier],d.removeItem("Sent:"+this._localKey+_.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(z.payloadMessage);break;case r_SUBACK:(z=this._sentMessages[_.messageIdentifier])&&(z.timeOut&&z.timeOut.cancel(),128===_.returnCode[0]?z.onFailure&&z.onFailure(_.returnCode):z.onSuccess&&z.onSuccess(_.returnCode),delete this._sentMessages[_.messageIdentifier]);break;case r_UNSUBACK:(z=this._sentMessages[_.messageIdentifier])&&(z.timeOut&&z.timeOut.cancel(),z.callback&&z.callback(),delete this._sentMessages[_.messageIdentifier]);break;case r_PINGRESP:this.sendPinger.reset();break;default:this._disconnected(s.INVALID_MQTT_MESSAGE_TYPE.code,a(s.INVALID_MQTT_MESSAGE_TYPE,[_.type]))}}catch(ie){var Y="undefined"==ie.hasOwnProperty("stack")?ie.stack.toString():"No Error Stack Available";return void this._disconnected(s.INTERNAL_ERROR.code,a(s.INTERNAL_ERROR,[ie.message,Y]))}},g.prototype._on_socket_error=function(_){this._reconnecting||this._disconnected(s.SOCKET_ERROR.code,a(s.SOCKET_ERROR,[_.data]))},g.prototype._on_socket_close=function(){this._reconnecting||this._disconnected(s.SOCKET_CLOSE.code,a(s.SOCKET_CLOSE))},g.prototype._socket_send=function(_){if(1==_.type){var l=this._traceMask(_,"password");this._trace("Client._socket_send",l)}else this._trace("Client._socket_send",_);this.socket.send(_.encode()),this.sendPinger.reset()},g.prototype._receivePublish=function(_){switch(_.payloadMessage.qos){case"undefined":case 0:this._receiveMessage(_);break;case 1:var l=new y(r_PUBACK,{messageIdentifier:_.messageIdentifier});this._schedule_message(l),this._receiveMessage(_);break;case 2:this._receivedMessages[_.messageIdentifier]=_,this.store("Received:",_);var F=new y(r_PUBREC,{messageIdentifier:_.messageIdentifier});this._schedule_message(F);break;default:throw Error("Invaild qos="+_.payloadMessage.qos)}},g.prototype._receiveMessage=function(_){this.onMessageArrived&&this.onMessageArrived(_.payloadMessage)},g.prototype._connected=function(_,l){this.onConnected&&this.onConnected(_,l)},g.prototype._reconnect=function(){this._trace("Client._reconnect"),this.connected||(this._reconnecting=!0,this.sendPinger.cancel(),this.receivePinger.cancel(),this._reconnectInterval<128&&(this._reconnectInterval=2*this._reconnectInterval),this.connectOptions.uris?(this.hostIndex=0,this._doConnect(this.connectOptions.uris[0])):this._doConnect(this.uri))},g.prototype._disconnected=function(_,l){if(this._trace("Client._disconnected",_,l),void 0!==_&&this._reconnecting)this._reconnectTimeout=new L(this,this._reconnectInterval,this._reconnect);else if(this.sendPinger.cancel(),this.receivePinger.cancel(),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._msg_queue=[],this._buffered_msg_queue=[],this._notify_msg_sent={},this.socket&&(this.socket.onopen=null,this.socket.onmessage=null,this.socket.onerror=null,this.socket.onclose=null,1===this.socket.readyState&&this.socket.close(),delete this.socket),this.connectOptions.uris&&this.hostIndex<this.connectOptions.uris.length-1)this.hostIndex++,this._doConnect(this.connectOptions.uris[this.hostIndex]);else if(void 0===_&&(_=s.OK.code,l=a(s.OK)),this.connected){if(this.connected=!1,this.onConnectionLost&&this.onConnectionLost({errorCode:_,errorMessage:l,reconnect:this.connectOptions.reconnect,uri:this._wsuri}),_!==s.OK.code&&this.connectOptions.reconnect)return this._reconnectInterval=1,void this._reconnect()}else 4===this.connectOptions.mqttVersion&&!1===this.connectOptions.mqttVersionExplicit?(this._trace("Failed to connect V4, dropping back to V3"),this.connectOptions.mqttVersion=3,this.connectOptions.uris?(this.hostIndex=0,this._doConnect(this.connectOptions.uris[0])):this._doConnect(this.uri)):this.connectOptions.onFailure&&this.connectOptions.onFailure({invocationContext:this.connectOptions.invocationContext,errorCode:_,errorMessage:l})},g.prototype._trace=function(){if(this.traceFunction){var _=Array.prototype.slice.call(arguments);for(var l in _)typeof _[l]<"u"&&_.splice(l,1,JSON.stringify(_[l]));var F=_.join("");this.traceFunction({severity:"Debug",message:F})}if(null!==this._traceBuffer){l=0;for(var K=arguments.length;l<K;l++)this._traceBuffer.length==this._MAX_TRACE_ENTRIES&&this._traceBuffer.shift(),this._traceBuffer.push(0===l||typeof arguments[l]>"u"?arguments[l]:" "+JSON.stringify(arguments[l]))}},g.prototype._traceMask=function(_,l){var F={};for(var K in _)_.hasOwnProperty(K)&&(F[K]=K==l?"******":_[K]);return F};var c=function(_){var l;if(!("string"==typeof _||_ instanceof ArrayBuffer||ArrayBuffer.isView(_)&&!(_ instanceof DataView)))throw a(s.INVALID_ARGUMENT,[_,"newPayload"]);l=_;var F,K=0,Q=!1,$=!1;Object.defineProperties(this,{payloadString:{enumerable:!0,get:function(){return"string"==typeof l?l:V(l,0,l.length)}},payloadBytes:{enumerable:!0,get:function(){if("string"==typeof l){var ce=new ArrayBuffer(P(l)),ge=new Uint8Array(ce);return j(l,ge,0),ge}return l}},destinationName:{enumerable:!0,get:function(){return F},set:function(ce){if("string"!=typeof ce)throw new Error(a(s.INVALID_ARGUMENT,[ce,"newDestinationName"]));F=ce}},qos:{enumerable:!0,get:function(){return K},set:function(ce){if(0!==ce&&1!==ce&&2!==ce)throw new Error("Invalid argument:"+ce);K=ce}},retained:{enumerable:!0,get:function(){return Q},set:function(ce){if("boolean"!=typeof ce)throw new Error(a(s.INVALID_ARGUMENT,[ce,"newRetained"]));Q=ce}},topic:{enumerable:!0,get:function(){return F},set:function(ce){F=ce}},duplicate:{enumerable:!0,get:function(){return $},set:function(ce){$=ce}}})};return{Client:function(_,l,F,K){var Q;if("string"!=typeof _)throw new Error(a(s.INVALID_TYPE,[typeof _,"host"]));if(2==arguments.length){K=l;var $=(Q=_).match(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/);if(!$)throw new Error(a(s.INVALID_ARGUMENT,[_,"host"]));_=$[4]||$[2],l=parseInt($[7]),F=$[8]}else{if(3==arguments.length&&(K=F,F="/mqtt"),"number"!=typeof l||l<0)throw new Error(a(s.INVALID_TYPE,[typeof l,"port"]));if("string"!=typeof F)throw new Error(a(s.INVALID_TYPE,[typeof F,"path"]));var ce=-1!==_.indexOf(":")&&"["!==_.slice(0,1)&&"]"!==_.slice(-1);Q="ws://"+(ce?"["+_+"]":_)+":"+l+F}for(var ge=0,Z=0;Z<K.length;Z++){var pe=K.charCodeAt(Z);55296<=pe&&pe<=56319&&Z++,ge++}if("string"!=typeof K||ge>65535)throw new Error(a(s.INVALID_ARGUMENT,[K,"clientId"]));var ae=new g(Q,_,l,F,K);Object.defineProperties(this,{host:{get:function(){return _},set:function(){throw new Error(a(s.UNSUPPORTED_OPERATION))}},port:{get:function(){return l},set:function(){throw new Error(a(s.UNSUPPORTED_OPERATION))}},path:{get:function(){return F},set:function(){throw new Error(a(s.UNSUPPORTED_OPERATION))}},uri:{get:function(){return Q},set:function(){throw new Error(a(s.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return ae.clientId},set:function(){throw new Error(a(s.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return ae.onConnected},set:function(z){if("function"!=typeof z)throw new Error(a(s.INVALID_TYPE,[typeof z,"onConnected"]));ae.onConnected=z}},disconnectedPublishing:{get:function(){return ae.disconnectedPublishing},set:function(z){ae.disconnectedPublishing=z}},disconnectedBufferSize:{get:function(){return ae.disconnectedBufferSize},set:function(z){ae.disconnectedBufferSize=z}},onConnectionLost:{get:function(){return ae.onConnectionLost},set:function(z){if("function"!=typeof z)throw new Error(a(s.INVALID_TYPE,[typeof z,"onConnectionLost"]));ae.onConnectionLost=z}},onMessageDelivered:{get:function(){return ae.onMessageDelivered},set:function(z){if("function"!=typeof z)throw new Error(a(s.INVALID_TYPE,[typeof z,"onMessageDelivered"]));ae.onMessageDelivered=z}},onMessageArrived:{get:function(){return ae.onMessageArrived},set:function(z){if("function"!=typeof z)throw new Error(a(s.INVALID_TYPE,[typeof z,"onMessageArrived"]));ae.onMessageArrived=z}},trace:{get:function(){return ae.traceFunction},set:function(z){if("function"!=typeof z)throw new Error(a(s.INVALID_TYPE,[typeof z,"onTrace"]));ae.traceFunction=z}}}),this.connect=function(z){if(n(z=z||{},{timeout:"number",userName:"string",password:"string",willMessage:"object",keepAliveInterval:"number",cleanSession:"boolean",useSSL:"boolean",invocationContext:"object",onSuccess:"function",onFailure:"function",hosts:"object",ports:"object",reconnect:"boolean",mqttVersion:"number",mqttVersionExplicit:"boolean",uris:"object"}),void 0===z.keepAliveInterval&&(z.keepAliveInterval=60),z.mqttVersion>4||z.mqttVersion<3)throw new Error(a(s.INVALID_ARGUMENT,[z.mqttVersion,"connectOptions.mqttVersion"]));if(void 0===z.mqttVersion?(z.mqttVersionExplicit=!1,z.mqttVersion=4):z.mqttVersionExplicit=!0,void 0!==z.password&&void 0===z.userName)throw new Error(a(s.INVALID_ARGUMENT,[z.password,"connectOptions.password"]));if(z.willMessage){if(!(z.willMessage instanceof c))throw new Error(a(s.INVALID_TYPE,[z.willMessage,"connectOptions.willMessage"]));if(z.willMessage.stringPayload=null,typeof z.willMessage.destinationName>"u")throw new Error(a(s.INVALID_TYPE,[typeof z.willMessage.destinationName,"connectOptions.willMessage.destinationName"]))}if(typeof z.cleanSession>"u"&&(z.cleanSession=!0),z.hosts){if(!(z.hosts instanceof Array))throw new Error(a(s.INVALID_ARGUMENT,[z.hosts,"connectOptions.hosts"]));if(z.hosts.length<1)throw new Error(a(s.INVALID_ARGUMENT,[z.hosts,"connectOptions.hosts"]));for(var Y=!1,ie=0;ie<z.hosts.length;ie++){if("string"!=typeof z.hosts[ie])throw new Error(a(s.INVALID_TYPE,[typeof z.hosts[ie],"connectOptions.hosts["+ie+"]"]));if(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/.test(z.hosts[ie])){if(0===ie)Y=!0;else if(!Y)throw new Error(a(s.INVALID_ARGUMENT,[z.hosts[ie],"connectOptions.hosts["+ie+"]"]))}else if(Y)throw new Error(a(s.INVALID_ARGUMENT,[z.hosts[ie],"connectOptions.hosts["+ie+"]"]))}if(Y)z.uris=z.hosts;else{if(!z.ports)throw new Error(a(s.INVALID_ARGUMENT,[z.ports,"connectOptions.ports"]));if(!(z.ports instanceof Array))throw new Error(a(s.INVALID_ARGUMENT,[z.ports,"connectOptions.ports"]));if(z.hosts.length!==z.ports.length)throw new Error(a(s.INVALID_ARGUMENT,[z.ports,"connectOptions.ports"]));for(z.uris=[],ie=0;ie<z.hosts.length;ie++){if("number"!=typeof z.ports[ie]||z.ports[ie]<0)throw new Error(a(s.INVALID_TYPE,[typeof z.ports[ie],"connectOptions.ports["+ie+"]"]));var J=z.hosts[ie],A=z.ports[ie],b=-1!==J.indexOf(":");z.uris.push(Q="ws://"+(b?"["+J+"]":J)+":"+A+F)}}}ae.connect(z)},this.subscribe=function(z,Y){if("string"!=typeof z)throw new Error("Invalid argument:"+z);if(n(Y=Y||{},{qos:"number",invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),Y.timeout&&!Y.onFailure)throw new Error("subscribeOptions.timeout specified with no onFailure callback.");if(typeof Y.qos<"u"&&0!==Y.qos&&1!==Y.qos&&2!==Y.qos)throw new Error(a(s.INVALID_ARGUMENT,[Y.qos,"subscribeOptions.qos"]));ae.subscribe(z,Y)},this.unsubscribe=function(z,Y){if("string"!=typeof z)throw new Error("Invalid argument:"+z);if(n(Y=Y||{},{invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),Y.timeout&&!Y.onFailure)throw new Error("unsubscribeOptions.timeout specified with no onFailure callback.");ae.unsubscribe(z,Y)},this.send=function(z,Y,ie,J){var A;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(z instanceof c)&&"string"!=typeof z)throw new Error("Invalid argument:"+typeof z);if(typeof(A=z).destinationName>"u")throw new Error(a(s.INVALID_ARGUMENT,[A.destinationName,"Message.destinationName"]));ae.send(A)}else(A=new c(Y)).destinationName=z,arguments.length>=3&&(A.qos=ie),arguments.length>=4&&(A.retained=J),ae.send(A)},this.publish=function(z,Y,ie,J){var A;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(z instanceof c)&&"string"!=typeof z)throw new Error("Invalid argument:"+typeof z);if(typeof(A=z).destinationName>"u")throw new Error(a(s.INVALID_ARGUMENT,[A.destinationName,"Message.destinationName"]));ae.send(A)}else(A=new c(Y)).destinationName=z,arguments.length>=3&&(A.qos=ie),arguments.length>=4&&(A.retained=J),ae.send(A)},this.disconnect=function(){ae.disconnect()},this.getTraceLog=function(){return ae.getTraceLog()},this.startTrace=function(){ae.startTrace()},this.stopTrace=function(){ae.stopTrace()},this.isConnected=function(){return ae.connected}},Message:c}}(typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{}),p)},78987:(ue,M,p)=>{p(85487);var t=p(67047);typeof window<"u"&&(window.AWS=t),ue.exports=t,typeof self<"u"&&(self.AWS=t)},73967:(ue,M,p)=>{p(85487);var t=p(67047),w=t.Service,d=t.apiLoader;d.services.cognitoidentity={},t.CognitoIdentity=w.defineService("cognitoidentity",["2014-06-30"]),Object.defineProperty(d.services.cognitoidentity,"2014-06-30",{get:function(){var n=p(79476);return n.paginators=p(85464).o,n},enumerable:!0,configurable:!0}),ue.exports=t.CognitoIdentity},42423:(ue,M,p)=>{p(85487);var t=p(67047),w=t.Service,d=t.apiLoader;d.services.sts={},t.STS=w.defineService("sts",["2011-06-15"]),p(28018),Object.defineProperty(d.services.sts,"2011-06-15",{get:function(){var n=p(3554);return n.paginators=p(31152).o,n},enumerable:!0,configurable:!0}),ue.exports=t.STS},92747:ue=>{function M(p,t){if(!M.services.hasOwnProperty(p))throw new Error("InvalidService: Failed to load api for "+p);return M.services[p][t]}M.services={},ue.exports=M},51317:(ue,M,p)=>{var t=p(2815),w=p(85194),d=p(67901),r=p(68598);ue.exports={createHash:function(i){if("md5"===(i=i.toLowerCase()))return new w;if("sha256"===i)return new r;if("sha1"===i)return new d;throw new Error("Hash algorithm "+i+" is not supported in the browser SDK")},createHmac:function(i,s){if("md5"===(i=i.toLowerCase()))return new t(w,s);if("sha256"===i)return new t(r,s);if("sha1"===i)return new t(d,s);throw new Error("HMAC algorithm "+i+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},55125:(ue,M,p)=>{var t=p(71899).lW;typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView>"u"&&(ArrayBuffer.isView=function(n){return w.indexOf(Object.prototype.toString.call(n))>-1});var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];ue.exports={isEmptyData:function d(n){return"string"==typeof n?0===n.length:0===n.byteLength},convertToBuffer:function r(n){return"string"==typeof n&&(n=new t(n,"utf8")),ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(n)}}},2815:(ue,M,p)=>{var t=p(55125);function w(r,n){this.hash=new r,this.outer=new r;var i=function d(r,n){var i=t.convertToBuffer(n);if(i.byteLength>r.BLOCK_SIZE){var s=new r;s.update(i),i=s.digest()}var e=new Uint8Array(r.BLOCK_SIZE);return e.set(i),e}(r,n),s=new Uint8Array(r.BLOCK_SIZE);s.set(i);for(var e=0;e<r.BLOCK_SIZE;e++)i[e]^=54,s[e]^=92;for(this.hash.update(i),this.outer.update(s),e=0;e<i.byteLength;e++)i[e]=0}ue.exports=w,w.prototype.update=function(r){if(t.isEmptyData(r)||this.error)return this;try{this.hash.update(t.convertToBuffer(r))}catch(n){this.error=n}return this},w.prototype.digest=function(r){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(r)}},85194:(ue,M,p)=>{var t=p(55125),w=p(71899).lW;function i(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function s(y,m,R,D,I,C){return((m=(m+y&4294967295)+(D+C&4294967295)&4294967295)<<I|m>>>32-I)+R&4294967295}function e(y,m,R,D,I,C,P){return s(m&R|~m&D,y,m,I,C,P)}function a(y,m,R,D,I,C,P){return s(m&D|R&~D,y,m,I,C,P)}function u(y,m,R,D,I,C,P){return s(m^R^D,y,m,I,C,P)}function h(y,m,R,D,I,C,P){return s(R^(m|~D),y,m,I,C,P)}ue.exports=i,i.BLOCK_SIZE=64,i.prototype.update=function(y){if(t.isEmptyData(y))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var m=t.convertToBuffer(y),R=0,D=m.byteLength;for(this.bytesHashed+=D;D>0;)this.buffer.setUint8(this.bufferLength++,m[R++]),D--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},i.prototype.digest=function(y){if(!this.finished){var m=this,R=m.buffer,D=m.bufferLength,C=8*m.bytesHashed;if(R.setUint8(this.bufferLength++,128),D%64>=56){for(var P=this.bufferLength;P<64;P++)R.setUint8(P,0);this.hashBuffer(),this.bufferLength=0}for(P=this.bufferLength;P<56;P++)R.setUint8(P,0);R.setUint32(56,C>>>0,!0),R.setUint32(60,Math.floor(C/4294967296),!0),this.hashBuffer(),this.finished=!0}var j=new DataView(new ArrayBuffer(16));for(P=0;P<4;P++)j.setUint32(4*P,this.state[P],!0);var V=new w(j.buffer,j.byteOffset,j.byteLength);return y?V.toString(y):V},i.prototype.hashBuffer=function(){var m=this.buffer,R=this.state,D=R[0],I=R[1],C=R[2],P=R[3];D=e(D,I,C,P,m.getUint32(0,!0),7,3614090360),P=e(P,D,I,C,m.getUint32(4,!0),12,3905402710),C=e(C,P,D,I,m.getUint32(8,!0),17,606105819),I=e(I,C,P,D,m.getUint32(12,!0),22,3250441966),D=e(D,I,C,P,m.getUint32(16,!0),7,4118548399),P=e(P,D,I,C,m.getUint32(20,!0),12,1200080426),C=e(C,P,D,I,m.getUint32(24,!0),17,2821735955),I=e(I,C,P,D,m.getUint32(28,!0),22,4249261313),D=e(D,I,C,P,m.getUint32(32,!0),7,1770035416),P=e(P,D,I,C,m.getUint32(36,!0),12,2336552879),C=e(C,P,D,I,m.getUint32(40,!0),17,4294925233),I=e(I,C,P,D,m.getUint32(44,!0),22,2304563134),D=e(D,I,C,P,m.getUint32(48,!0),7,1804603682),P=e(P,D,I,C,m.getUint32(52,!0),12,4254626195),C=e(C,P,D,I,m.getUint32(56,!0),17,2792965006),D=a(D,I=e(I,C,P,D,m.getUint32(60,!0),22,1236535329),C,P,m.getUint32(4,!0),5,4129170786),P=a(P,D,I,C,m.getUint32(24,!0),9,3225465664),C=a(C,P,D,I,m.getUint32(44,!0),14,643717713),I=a(I,C,P,D,m.getUint32(0,!0),20,3921069994),D=a(D,I,C,P,m.getUint32(20,!0),5,3593408605),P=a(P,D,I,C,m.getUint32(40,!0),9,38016083),C=a(C,P,D,I,m.getUint32(60,!0),14,3634488961),I=a(I,C,P,D,m.getUint32(16,!0),20,3889429448),D=a(D,I,C,P,m.getUint32(36,!0),5,568446438),P=a(P,D,I,C,m.getUint32(56,!0),9,3275163606),C=a(C,P,D,I,m.getUint32(12,!0),14,4107603335),I=a(I,C,P,D,m.getUint32(32,!0),20,1163531501),D=a(D,I,C,P,m.getUint32(52,!0),5,2850285829),P=a(P,D,I,C,m.getUint32(8,!0),9,4243563512),C=a(C,P,D,I,m.getUint32(28,!0),14,1735328473),D=u(D,I=a(I,C,P,D,m.getUint32(48,!0),20,2368359562),C,P,m.getUint32(20,!0),4,4294588738),P=u(P,D,I,C,m.getUint32(32,!0),11,2272392833),C=u(C,P,D,I,m.getUint32(44,!0),16,1839030562),I=u(I,C,P,D,m.getUint32(56,!0),23,4259657740),D=u(D,I,C,P,m.getUint32(4,!0),4,2763975236),P=u(P,D,I,C,m.getUint32(16,!0),11,1272893353),C=u(C,P,D,I,m.getUint32(28,!0),16,4139469664),I=u(I,C,P,D,m.getUint32(40,!0),23,3200236656),D=u(D,I,C,P,m.getUint32(52,!0),4,681279174),P=u(P,D,I,C,m.getUint32(0,!0),11,3936430074),C=u(C,P,D,I,m.getUint32(12,!0),16,3572445317),I=u(I,C,P,D,m.getUint32(24,!0),23,76029189),D=u(D,I,C,P,m.getUint32(36,!0),4,3654602809),P=u(P,D,I,C,m.getUint32(48,!0),11,3873151461),C=u(C,P,D,I,m.getUint32(60,!0),16,530742520),D=h(D,I=u(I,C,P,D,m.getUint32(8,!0),23,3299628645),C,P,m.getUint32(0,!0),6,4096336452),P=h(P,D,I,C,m.getUint32(28,!0),10,1126891415),C=h(C,P,D,I,m.getUint32(56,!0),15,2878612391),I=h(I,C,P,D,m.getUint32(20,!0),21,4237533241),D=h(D,I,C,P,m.getUint32(48,!0),6,1700485571),P=h(P,D,I,C,m.getUint32(12,!0),10,2399980690),C=h(C,P,D,I,m.getUint32(40,!0),15,4293915773),I=h(I,C,P,D,m.getUint32(4,!0),21,2240044497),D=h(D,I,C,P,m.getUint32(32,!0),6,1873313359),P=h(P,D,I,C,m.getUint32(60,!0),10,4264355552),C=h(C,P,D,I,m.getUint32(24,!0),15,2734768916),I=h(I,C,P,D,m.getUint32(52,!0),21,1309151649),D=h(D,I,C,P,m.getUint32(16,!0),6,4149444226),P=h(P,D,I,C,m.getUint32(44,!0),10,3174756917),C=h(C,P,D,I,m.getUint32(8,!0),15,718787259),I=h(I,C,P,D,m.getUint32(36,!0),21,3951481745),R[0]=D+R[0]&4294967295,R[1]=I+R[1]&4294967295,R[2]=C+R[2]&4294967295,R[3]=P+R[3]&4294967295}},67901:(ue,M,p)=>{var t=p(71899).lW,w=p(55125);function e(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53),ue.exports=e,e.BLOCK_SIZE=64,e.prototype.update=function(a){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(w.isEmptyData(a))return this;var u=(a=w.convertToBuffer(a)).length;this.totalLength+=8*u;for(var h=0;h<u;h++)this.write(a[h]);return this},e.prototype.write=function(u){this.block[this.offset]|=(255&u)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},e.prototype.digest=function(a){this.write(128),(this.offset>14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var u=24;u>=0;u-=8)this.write(this.totalLength>>u);var h=new t(20),y=new DataView(h.buffer);return y.setUint32(0,this.h0,!1),y.setUint32(4,this.h1,!1),y.setUint32(8,this.h2,!1),y.setUint32(12,this.h3,!1),y.setUint32(16,this.h4,!1),a?h.toString(a):h},e.prototype.processBlock=function(){for(var u=16;u<80;u++){var h=this.block[u-3]^this.block[u-8]^this.block[u-14]^this.block[u-16];this.block[u]=h<<1|h>>>31}var C,P,y=this.h0,m=this.h1,R=this.h2,D=this.h3,I=this.h4;for(u=0;u<80;u++){u<20?(C=D^m&(R^D),P=1518500249):u<40?(C=m^R^D,P=1859775393):u<60?(C=m&R|D&(m|R),P=2400959708):(C=m^R^D,P=3395469782);var j=(y<<5|y>>>27)+C+I+P+(0|this.block[u]);I=D,D=R,R=m<<30|m>>>2,m=y,y=j}for(this.h0=this.h0+y|0,this.h1=this.h1+m|0,this.h2=this.h2+R|0,this.h3=this.h3+D|0,this.h4=this.h4+I|0,this.offset=0,u=0;u<16;u++)this.block[u]=0}},68598:(ue,M,p)=>{var t=p(71899).lW,w=p(55125),n=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=Math.pow(2,53)-1;function e(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}ue.exports=e,e.BLOCK_SIZE=64,e.prototype.update=function(a){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(w.isEmptyData(a))return this;var u=0,h=(a=w.convertToBuffer(a)).byteLength;if(this.bytesHashed+=h,8*this.bytesHashed>s)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;h>0;)this.buffer[this.bufferLength++]=a[u++],h--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},e.prototype.digest=function(a){if(!this.finished){var u=8*this.bytesHashed,h=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),y=this.bufferLength;if(h.setUint8(this.bufferLength++,128),y%64>=56){for(var m=this.bufferLength;m<64;m++)h.setUint8(m,0);this.hashBuffer(),this.bufferLength=0}for(m=this.bufferLength;m<56;m++)h.setUint8(m,0);h.setUint32(56,Math.floor(u/4294967296),!0),h.setUint32(60,u),this.hashBuffer(),this.finished=!0}var R=new t(32);for(m=0;m<8;m++)R[4*m]=this.state[m]>>>24&255,R[4*m+1]=this.state[m]>>>16&255,R[4*m+2]=this.state[m]>>>8&255,R[4*m+3]=this.state[m]>>>0&255;return a?R.toString(a):R},e.prototype.hashBuffer=function(){for(var u=this.buffer,h=this.state,y=h[0],m=h[1],R=h[2],D=h[3],I=h[4],C=h[5],P=h[6],j=h[7],V=0;V<64;V++){if(V<16)this.temp[V]=(255&u[4*V])<<24|(255&u[4*V+1])<<16|(255&u[4*V+2])<<8|255&u[4*V+3];else{var q=this.temp[V-2];this.temp[V]=(((q>>>17|q<<15)^(q>>>19|q<<13)^q>>>10)+this.temp[V-7]|0)+((((q=this.temp[V-15])>>>7|q<<25)^(q>>>18|q<<14)^q>>>3)+this.temp[V-16]|0)}var T=(((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&C^~I&P)|0)+(j+(n[V]+this.temp[V]|0)|0)|0,c=((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+(y&m^y&R^m&R)|0;j=P,P=C,C=I,I=D+T|0,D=R,R=m,m=y,y=T+c|0}h[0]+=y,h[1]+=m,h[2]+=R,h[3]+=D,h[4]+=I,h[5]+=C,h[6]+=P,h[7]+=j}},85487:(ue,M,p)=>{var t=p(97340);t.crypto.lib=p(51317),t.Buffer=p(71899).lW,t.url=p(1008),t.querystring=p(31625),t.realClock=p(5066),t.environment="js",t.createEventStream=p(56458).createEventStream,t.isBrowser=function(){return!0},t.isNode=function(){return!1};var w=p(67047);if(ue.exports=w,p(27676),p(87041),p(17706),p(30678),p(97961),p(39125),p(1106),w.XML.Parser=p(18771),p(4835),typeof d>"u")var d={browser:!0}},67665:(ue,M,p)=>{var w,t=p(67047);p(27676),p(87041),t.Config=t.util.inherit({constructor:function(r){void 0===r&&(r={}),r=this.extractCredentials(r),t.util.each.call(this,this.keys,function(n,i){this.set(n,r[n],i)})},getCredentials:function(r){var n=this;function i(u){r(u,u?null:n.credentials)}function s(u,h){return new t.util.error(h||new Error,{code:"CredentialsError",message:u,name:"CredentialsError"})}n.credentials?"function"==typeof n.credentials.get?function e(){n.credentials.get(function(u){u&&(u=s("Could not load credentials from "+n.credentials.constructor.name,u)),i(u)})}():function a(){var u=null;(!n.credentials.accessKeyId||!n.credentials.secretAccessKey)&&(u=s("Missing credentials")),i(u)}():n.credentialProvider?n.credentialProvider.resolve(function(u,h){u&&(u=s("Could not load credentials from any providers",u)),n.credentials=h,i(u)}):i(s("No credentials to load"))},update:function(r,n){n=n||!1,r=this.extractCredentials(r),t.util.each.call(this,r,function(i,s){(n||Object.prototype.hasOwnProperty.call(this.keys,i)||t.Service.hasService(i))&&this.set(i,s)})},loadFromPath:function(r){this.clear();var n=JSON.parse(t.util.readFileSync(r)),i=new t.FileSystemCredentials(r),s=new t.CredentialProviderChain;return s.providers.unshift(i),s.resolve(function(e,a){if(e)throw e;n.credentials=a}),this.constructor(n),this},clear:function(){t.util.each.call(this,this.keys,function(r){delete this[r]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(r,n,i){void 0===n?(void 0===i&&(i=this.keys[r]),this[r]="function"==typeof i?i.call(this):i):this[r]="httpOptions"===r&&this[r]?t.util.merge(this[r],n):n},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy",useFipsEndpoint:!1,useDualstackEndpoint:!1},extractCredentials:function(r){return r.accessKeyId&&r.secretAccessKey&&((r=t.util.copy(r)).credentials=new t.Credentials(r)),r},setPromisesDependency:function(r){w=r,null===r&&"function"==typeof Promise&&(w=Promise);var n=[t.Request,t.Credentials,t.CredentialProviderChain];t.S3&&(n.push(t.S3),t.S3.ManagedUpload&&n.push(t.S3.ManagedUpload)),t.util.addPromises(n,w)},getPromisesDependency:function(){return w}}),t.config=new t.Config},89953:(ue,M,p)=>{var t=p(67047);function w(r,n){if("string"==typeof r){if(["legacy","regional"].indexOf(r.toLowerCase())>=0)return r.toLowerCase();throw t.util.error(new Error,n)}}ue.exports=function d(r,n){var i;if((r=r||{})[n.clientConfig]&&(i=w(r[n.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+n.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+r[n.clientConfig]+'".'}))||!t.util.isNode())return i;if(Object.prototype.hasOwnProperty.call(process.env,n.env)&&(i=w(process.env[n.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+n.env+' environmental variable. Expect "legacy" or "regional". Got "'+process.env[n.env]+'".'})))return i;var e={};try{e=t.util.getProfilesFromSharedConfig(t.util.iniLoader)[process.env.AWS_PROFILE||t.util.defaultProfile]}catch{}return e&&Object.prototype.hasOwnProperty.call(e,n.sharedConfig)&&(i=w(e[n.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+n.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+e[n.sharedConfig]+'".'})),i}},67047:(ue,M,p)=>{var t={util:p(97340)};({}).toString(),ue.exports=t,t.util.update(t,{VERSION:"2.1189.0",Signers:{},Protocol:{Json:p(88383),Query:p(20340),Rest:p(98784),RestJson:p(43825),RestXml:p(10164)},XML:{Builder:p(83457),Parser:null},JSON:{Builder:p(43786),Parser:p(42234)},Model:{Api:p(50989),Operation:p(89823),Shape:p(36925),Paginator:p(49832),ResourceWaiter:p(6974)},apiLoader:p(92747),EndpointCache:p(56516).$}),p(51076),p(71794),p(67665),p(41798),p(52669),p(70752),p(70470),p(42857),p(37950),p(52515),t.events=new t.SequentialExecutor,t.util.memoizedProperty(t,"endpointCache",function(){return new t.EndpointCache(t.config.endpointCacheSize)},!0)},27676:(ue,M,p)=>{var t=p(67047);t.Credentials=t.util.inherit({constructor:function(){if(t.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"==typeof arguments[0]){var d=arguments[0].credentials||arguments[0];this.accessKeyId=d.accessKeyId,this.secretAccessKey=d.secretAccessKey,this.sessionToken=d.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var d=t.util.date.getDate().getTime(),r=new Date(d+1e3*this.expiryWindow);return!!(this.expireTime&&r>this.expireTime)||this.expired||!this.accessKeyId||!this.secretAccessKey},get:function(d){var r=this;this.needsRefresh()?this.refresh(function(n){n||(r.expired=!1),d&&d(n)}):d&&d()},refresh:function(d){this.expired=!1,d()},coalesceRefresh:function(d,r){var n=this;1===n.refreshCallbacks.push(d)&&n.load(function(s){t.util.arrayEach(n.refreshCallbacks,function(e){r?e(s):t.util.defer(function(){e(s)})}),n.refreshCallbacks.length=0})},load:function(d){d()}}),t.Credentials.addPromisesToClass=function(d){this.prototype.getPromise=t.util.promisifyMethod("get",d),this.prototype.refreshPromise=t.util.promisifyMethod("refresh",d)},t.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},t.util.addPromises(t.Credentials)},30678:(ue,M,p)=>{var t=p(67047),w=p(42423);t.ChainableTemporaryCredentials=t.util.inherit(t.Credentials,{constructor:function(r){t.Credentials.call(this),r=r||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var n=t.util.copy(r.params)||{};if(n.RoleArn&&(n.RoleSessionName=n.RoleSessionName||"temporary-credentials"),n.SerialNumber){if(!r.tokenCodeFn||"function"!=typeof r.tokenCodeFn)throw new t.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=r.tokenCodeFn}var i=t.util.merge({params:n,credentials:r.masterCredentials||t.config.credentials},r.stsConfig||{});this.service=new w(i)},refresh:function(r){this.coalesceRefresh(r||t.util.fn.callback)},load:function(r){var n=this,i=n.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(s,e){var a={};s?r(s):(e&&(a.TokenCode=e),n.service[i](a,function(u,h){u||n.service.credentialsFrom(h,n),r(u)}))})},getTokenCode:function(r){var n=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(i,s){if(i){var e=i;return i instanceof Error&&(e=i.message),void r(t.util.error(new Error("Error fetching MFA token: "+e),{code:n.errorCode}))}r(null,s)}):r(null)}})},39125:(ue,M,p)=>{var t=p(67047),w=p(73967),d=p(42423);t.CognitoIdentityCredentials=t.util.inherit(t.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(n,i){t.Credentials.call(this),this.expired=!0,this.params=n,this.data=null,this._identityId=null,this._clientConfig=t.util.copy(i||{}),this.loadCachedId();var s=this;Object.defineProperty(this,"identityId",{get:function(){return s.loadCachedId(),s._identityId||s.params.IdentityId},set:function(e){s._identityId=e}})},refresh:function(n){this.coalesceRefresh(n||t.util.fn.callback)},load:function(n){var i=this;i.createClients(),i.data=null,i._identityId=null,i.getId(function(s){s?(i.clearIdOnNotAuthorized(s),n(s)):i.params.RoleArn?i.getCredentialsFromSTS(n):i.getCredentialsForIdentity(n)})},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var n=this.params.IdentityPoolId,i=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+n+i],delete this.storage[this.localStorageKey.providers+n+i]},clearIdOnNotAuthorized:function(n){"NotAuthorizedException"==n.code&&this.clearCachedId()},getId:function(n){var i=this;if("string"==typeof i.params.IdentityId)return n(null,i.params.IdentityId);i.cognito.getId(function(s,e){!s&&e.IdentityId?(i.params.IdentityId=e.IdentityId,n(null,e.IdentityId)):n(s)})},loadCredentials:function(n,i){!n||!i||(i.expired=!1,i.accessKeyId=n.Credentials.AccessKeyId,i.secretAccessKey=n.Credentials.SecretKey,i.sessionToken=n.Credentials.SessionToken,i.expireTime=n.Credentials.Expiration)},getCredentialsForIdentity:function(n){var i=this;i.cognito.getCredentialsForIdentity(function(s,e){s?i.clearIdOnNotAuthorized(s):(i.cacheId(e),i.data=e,i.loadCredentials(i.data,i)),n(s)})},getCredentialsFromSTS:function(n){var i=this;i.cognito.getOpenIdToken(function(s,e){s?(i.clearIdOnNotAuthorized(s),n(s)):(i.cacheId(e),i.params.WebIdentityToken=e.Token,i.webIdentityCredentials.refresh(function(a){a||(i.data=i.webIdentityCredentials.data,i.sts.credentialsFrom(i.data,i)),n(a)}))})},loadCachedId:function(){var n=this;if(t.util.isBrowser()&&!n.params.IdentityId){var i=n.getStorage("id");if(i&&n.params.Logins){var s=Object.keys(n.params.Logins);0!==(n.getStorage("providers")||"").split(",").filter(function(u){return-1!==s.indexOf(u)}).length&&(n.params.IdentityId=i)}else i&&(n.params.IdentityId=i)}},createClients:function(){var r=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new t.WebIdentityCredentials(this.params,r),!this.cognito){var n=t.util.merge({},r);n.params=this.params,this.cognito=new w(n)}this.sts=this.sts||new d(r)},cacheId:function(n){this._identityId=n.IdentityId,this.params.IdentityId=this._identityId,t.util.isBrowser()&&(this.setStorage("id",n.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(n){return this.storage[this.localStorageKey[n]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(n,i){try{this.storage[this.localStorageKey[n]+this.params.IdentityPoolId+(this.params.LoginId||"")]=i}catch{}},storage:function(){try{var r=t.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return r["aws.test-storage"]="foobar",delete r["aws.test-storage"],r}catch{return{}}}()})},87041:(ue,M,p)=>{var t=p(67047);t.CredentialProviderChain=t.util.inherit(t.Credentials,{constructor:function(d){this.providers=d||t.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(d){var r=this;if(0===r.providers.length)return d(new Error("No providers")),r;if(1===r.resolveCallbacks.push(d)){let e=function(a,u){if(!a&&u||n===i.length)return t.util.arrayEach(r.resolveCallbacks,function(y){y(a,u)}),void(r.resolveCallbacks.length=0);var h=i[n++];(u="function"==typeof h?h.call():h).get?u.get(function(y){e(y,y?null:u)}):e(null,u)};var n=0,i=r.providers.slice(0);e()}return r}}),t.CredentialProviderChain.defaultProviders=[],t.CredentialProviderChain.addPromisesToClass=function(d){this.prototype.resolvePromise=t.util.promisifyMethod("resolve",d)},t.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},t.util.addPromises(t.CredentialProviderChain)},1106:(ue,M,p)=>{var t=p(67047),w=p(42423);t.SAMLCredentials=t.util.inherit(t.Credentials,{constructor:function(r){t.Credentials.call(this),this.expired=!0,this.params=r},refresh:function(r){this.coalesceRefresh(r||t.util.fn.callback)},load:function(r){var n=this;n.createClients(),n.service.assumeRoleWithSAML(function(i,s){i||n.service.credentialsFrom(s,n),r(i)})},createClients:function(){this.service=this.service||new w({params:this.params})}})},17706:(ue,M,p)=>{var t=p(67047),w=p(42423);t.TemporaryCredentials=t.util.inherit(t.Credentials,{constructor:function(r,n){t.Credentials.call(this),this.loadMasterCredentials(n),this.expired=!0,this.params=r||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(r){this.coalesceRefresh(r||t.util.fn.callback)},load:function(r){var n=this;n.createClients(),n.masterCredentials.get(function(){n.service.config.credentials=n.masterCredentials,(n.params.RoleArn?n.service.assumeRole:n.service.getSessionToken).call(n.service,function(s,e){s||n.service.credentialsFrom(e,n),r(s)})})},loadMasterCredentials:function(r){for(this.masterCredentials=r||t.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!=typeof this.masterCredentials.get&&(this.masterCredentials=new t.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new w({params:this.params})}})},97961:(ue,M,p)=>{var t=p(67047),w=p(42423);t.WebIdentityCredentials=t.util.inherit(t.Credentials,{constructor:function(r,n){t.Credentials.call(this),this.expired=!0,this.params=r,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=t.util.copy(n||{})},refresh:function(r){this.coalesceRefresh(r||t.util.fn.callback)},load:function(r){var n=this;n.createClients(),n.service.assumeRoleWithWebIdentity(function(i,s){n.data=null,i||(n.data=s,n.service.credentialsFrom(s,n)),r(i)})},createClients:function(){if(!this.service){var d=t.util.merge({},this._clientConfig);d.params=this.params,this.service=new w(d)}}})},66017:(ue,M,p)=>{var t=p(67047),w=p(97340),d=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function r(I){var C=I.service,P=C.api||{},V={};return C.config.region&&(V.region=C.config.region),P.serviceId&&(V.serviceId=P.serviceId),C.config.credentials.accessKeyId&&(V.accessKeyId=C.config.credentials.accessKeyId),V}function n(I,C,P){!P||null==C||"structure"===P.type&&P.required&&P.required.length>0&&w.arrayEach(P.required,function(j){var V=P.members[j];!0===V.endpointDiscoveryId?I[V.isLocationName?V.name:j]=String(C[j]):n(I,C[j],V)})}function i(I,C){var P={};return n(P,I.params,C),P}function s(I){var C=I.service,P=C.api,j=P.operations?P.operations[I.operation]:void 0,q=i(I,j?j.input:void 0),L=r(I);Object.keys(q).length>0&&(L=w.update(L,q),j&&(L.operation=j.name));var g=t.endpointCache.get(L);if(!g||1!==g.length||""!==g[0].Address)if(g&&g.length>0)I.httpRequest.updateEndpoint(g[0].Address);else{var T=C.makeRequest(P.endpointOperation,{Operation:j.name,Identifiers:q});u(T),T.removeListener("validate",t.EventListeners.Core.VALIDATE_PARAMETERS),T.removeListener("retry",t.EventListeners.Core.RETRY_CHECK),t.endpointCache.put(L,[{Address:"",CachePeriodInMinutes:1}]),T.send(function(c,_){_&&_.Endpoints?t.endpointCache.put(L,_.Endpoints):c&&t.endpointCache.put(L,[{Address:"",CachePeriodInMinutes:1}])})}}var e={};function a(I,C){var P=I.service,j=P.api,V=j.operations?j.operations[I.operation]:void 0,L=i(I,V?V.input:void 0),g=r(I);Object.keys(L).length>0&&(g=w.update(g,L),V&&(g.operation=V.name));var T=t.EndpointCache.getKeyString(g),c=t.endpointCache.get(T);if(c&&1===c.length&&""===c[0].Address)return e[T]||(e[T]=[]),void e[T].push({request:I,callback:C});if(c&&c.length>0)I.httpRequest.updateEndpoint(c[0].Address),C();else{var _=P.makeRequest(j.endpointOperation,{Operation:V.name,Identifiers:L});_.removeListener("validate",t.EventListeners.Core.VALIDATE_PARAMETERS),u(_),t.endpointCache.put(T,[{Address:"",CachePeriodInMinutes:60}]),_.send(function(l,F){l?(I.response.error=w.error(l,{retryable:!1}),t.endpointCache.remove(g),e[T]&&(w.arrayEach(e[T],function(Q){Q.request.response.error=w.error(l,{retryable:!1}),Q.callback()}),delete e[T])):F&&(t.endpointCache.put(T,F.Endpoints),I.httpRequest.updateEndpoint(F.Endpoints[0].Address),e[T])&&(w.arrayEach(e[T],function($){$.request.httpRequest.updateEndpoint(F.Endpoints[0].Address),$.callback()}),delete e[T]),C()})}}function u(I){var P=I.service.api.apiVersion;P&&!I.httpRequest.headers["x-amz-api-version"]&&(I.httpRequest.headers["x-amz-api-version"]=P)}function h(I){var C=I.error;if(C&&("InvalidEndpointException"===C.code||421===I.httpResponse.statusCode)){var j=I.request,V=j.service.api.operations||{},L=i(j,V[j.operation]?V[j.operation].input:void 0),g=r(j);Object.keys(L).length>0&&(g=w.update(g,L),V[j.operation]&&(g.operation=V[j.operation].name)),t.endpointCache.remove(g)}}function m(I){return["false","0"].indexOf(I)>=0}ue.exports={discoverEndpoint:function D(I,C){var P=I.service||{};if(function y(I){if(I._originalConfig&&I._originalConfig.endpoint&&!0===I._originalConfig.endpointDiscoveryEnabled)throw w.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});return Boolean(t.config.endpoint||(t.config[I.serviceIdentifier]||{}).endpoint||I._originalConfig&&I._originalConfig.endpoint)}(P)||I.isPresigned())return C();var V=(P.api.operations||{})[I.operation],q=V?V.endpointDiscoveryRequired:"NULL",L=function R(I){var C=I.service||{};if(void 0!==C.config.endpointDiscoveryEnabled)return C.config.endpointDiscoveryEnabled;if(!w.isBrowser()){for(var P=0;P<d.length;P++){var j=d[P];if(Object.prototype.hasOwnProperty.call(process.env,j)){if(""===process.env[j]||void 0===process.env[j])throw w.error(new Error,{code:"ConfigurationException",message:"environmental variable "+j+" cannot be set to nothing"});return!m(process.env[j])}}var V={};try{V=t.util.iniLoader?t.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[t.util.sharedConfigFileEnv]}):{}}catch{}var q=V[process.env.AWS_PROFILE||t.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(q,"endpoint_discovery_enabled")){if(void 0===q.endpoint_discovery_enabled)throw w.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!m(q.endpoint_discovery_enabled)}}}(I),g=P.api.hasRequiredEndpointDiscovery;switch((L||g)&&I.httpRequest.appendToUserAgent("endpoint-discovery"),q){case"OPTIONAL":(L||g)&&(s(I),I.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",h)),C();break;case"REQUIRED":if(!1===L){I.response.error=w.error(new Error,{code:"ConfigurationException",message:"Endpoint Discovery is disabled but "+P.api.className+"."+I.operation+"() requires it. Please check your configurations."}),C();break}I.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",h),a(I,C);break;default:C()}},requiredDiscoverEndpoint:a,optionalDiscoverEndpoint:s,marshallCustomIdentifiers:i,getCacheKey:r,invalidateCachedEndpoint:h}},56458:(ue,M,p)=>{var t=p(14413).eventMessageChunker,w=p(94260).parseEvent;ue.exports={createEventStream:function d(r,n,i){for(var s=t(r),e=[],a=0;a<s.length;a++)e.push(w(n,s[a],i));return e}}},14413:ue=>{ue.exports={eventMessageChunker:function M(p){for(var t=[],w=0;w<p.length;){var d=p.readInt32BE(w),r=p.slice(w,d+w);w+=d,t.push(r)}return t}}},41034:(ue,M,p)=>{var t=p(67047).util,w=t.buffer.toBuffer;function d(n){if(8!==n.length)throw new Error("Int64 buffers must be exactly 8 bytes");t.Buffer.isBuffer(n)||(n=w(n)),this.bytes=n}function r(n){for(var i=0;i<8;i++)n[i]^=255;for(i=7;i>-1&&(n[i]++,0===n[i]);i--);}d.fromNumber=function(n){if(n>0x8000000000000000||n<-0x8000000000000000)throw new Error(n+" is too large (or, if negative, too small) to represent as an Int64");for(var i=new Uint8Array(8),s=7,e=Math.abs(Math.round(n));s>-1&&e>0;s--,e/=256)i[s]=e;return n<0&&r(i),new d(i)},d.prototype.valueOf=function(){var n=this.bytes.slice(0),i=128&n[0];return i&&r(n),parseInt(n.toString("hex"),16)*(i?-1:1)},d.prototype.toString=function(){return String(this.valueOf())},ue.exports={Int64:d}},94260:(ue,M,p)=>{var t=p(84923).parseMessage;ue.exports={parseEvent:function w(r,n,i){var s=t(n),e=s.headers[":message-type"];if(e){if("error"===e.value)throw function d(r){var n=r.headers[":error-code"],i=r.headers[":error-message"],s=new Error(i.value||i);return s.code=s.name=n.value||n,s}(s);if("event"!==e.value)return}var a=s.headers[":event-type"],u=i.members[a.value];if(u){var h={},y=u.eventPayloadMemberName;if(y){var m=u.members[y];h[y]="binary"===m.type?s.body:r.parse(s.body.toString(),m)}for(var R=u.eventHeaderMemberNames,D=0;D<R.length;D++){var I=R[D];s.headers[I]&&(h[I]=u.members[I].toType(s.headers[I].value))}var C={};return C[a.value]=h,C}}}},84923:(ue,M,p)=>{var t=p(41034).Int64,w=p(85357).splitMessage,d="boolean";function y(R){for(var D={},I=0;I<R.length;){var C=R.readUInt8(I++),P=R.slice(I,I+C).toString();switch(I+=C,R.readUInt8(I++)){case 0:D[P]={type:d,value:!0};break;case 1:D[P]={type:d,value:!1};break;case 2:D[P]={type:"byte",value:R.readInt8(I++)};break;case 3:D[P]={type:"short",value:R.readInt16BE(I)},I+=2;break;case 4:D[P]={type:"integer",value:R.readInt32BE(I)},I+=4;break;case 5:D[P]={type:"long",value:new t(R.slice(I,I+8))},I+=8;break;case 6:var j=R.readUInt16BE(I);D[P]={type:"binary",value:R.slice(I+=2,I+j)},I+=j;break;case 7:var V=R.readUInt16BE(I);D[P]={type:"string",value:R.slice(I+=2,I+V).toString()},I+=V;break;case 8:D[P]={type:"timestamp",value:new Date(new t(R.slice(I,I+8)).valueOf())},I+=8;break;case 9:var q=R.slice(I,I+16).toString("hex");I+=16,D[P]={type:"uuid",value:q.substr(0,8)+"-"+q.substr(8,4)+"-"+q.substr(12,4)+"-"+q.substr(16,4)+"-"+q.substr(20)};break;default:throw new Error("Unrecognized header type tag")}}return D}ue.exports={parseMessage:function m(R){var D=w(R);return{headers:y(D.headers),body:D.body}}}},85357:(ue,M,p)=>{var t=p(67047).util,w=t.buffer.toBuffer;ue.exports={splitMessage:function s(e){if(t.Buffer.isBuffer(e)||(e=w(e)),e.length<16)throw new Error("Provided message too short to accommodate event stream message overhead");if(e.length!==e.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var a=e.readUInt32BE(8);if(a!==t.crypto.crc32(e.slice(0,8)))throw new Error("The prelude checksum specified in the message ("+a+") does not match the calculated CRC32 checksum.");var u=e.readUInt32BE(e.length-4);if(u!==t.crypto.crc32(e.slice(0,e.length-4)))throw new Error("The message checksum did not match the expected value of "+u);var y=12+e.readUInt32BE(4);return{headers:e.slice(12,y),body:e.slice(y,e.length-4)}}}},52669:(ue,M,p)=>{var t=p(67047),w=p(51076),d=p(66017).discoverEndpoint;t.EventListeners={Core:{}},t.EventListeners={Core:(new w).addNamedListeners(function(n,i){i("VALIDATE_CREDENTIALS","validate",function(a,u){if(!a.service.api.signatureVersion&&!a.service.config.signatureVersion)return u();a.service.config.getCredentials(function(h){h&&(a.response.error=t.util.error(h,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),u()})}),n("VALIDATE_REGION","validate",function(a){if(!a.service.isGlobalEndpoint){var u=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);a.service.config.region?u.test(a.service.config.region)||(a.response.error=t.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):a.response.error=t.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}}),n("BUILD_IDEMPOTENCY_TOKENS","validate",function(a){if(a.service.api.operations){var u=a.service.api.operations[a.operation];if(u){var h=u.idempotentMembers;if(h.length){for(var y=t.util.copy(a.params),m=0,R=h.length;m<R;m++)y[h[m]]||(y[h[m]]=t.util.uuid.v4());a.params=y}}}}),n("VALIDATE_PARAMETERS","validate",function(a){if(a.service.api.operations){var u=a.service.api.operations[a.operation].input;new t.ParamValidator(a.service.config.paramValidation).validate(u,a.params)}}),n("COMPUTE_CHECKSUM","afterBuild",function(a){if(a.service.api.operations){var u=a.service.api.operations[a.operation];if(u){var h=a.httpRequest.body,y=h&&(t.util.Buffer.isBuffer(h)||"string"==typeof h),m=a.httpRequest.headers;if(u.httpChecksumRequired&&a.service.config.computeChecksums&&y&&!m["Content-MD5"]){var R=t.util.crypto.md5(h,"base64");m["Content-MD5"]=R}}}}),i("COMPUTE_SHA256","afterBuild",function(a,u){if(a.haltHandlersOnError(),a.service.api.operations){var h=a.service.api.operations[a.operation],y=h?h.authtype:"";if(!a.service.api.signatureVersion&&!y&&!a.service.config.signatureVersion)return u();if(a.service.getSignerClass(a)===t.Signers.V4){var m=a.httpRequest.body||"";if(y.indexOf("unsigned-body")>=0)return a.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",u();t.util.computeSha256(m,function(R,D){R?u(R):(a.httpRequest.headers["X-Amz-Content-Sha256"]=D,u())})}else u()}}),n("SET_CONTENT_LENGTH","afterBuild",function(a){var u=function r(n){if(!n.service.api.operations)return"";var i=n.service.api.operations[n.operation];return i?i.authtype:""}(a),h=t.util.getRequestPayloadShape(a);if(void 0===a.httpRequest.headers["Content-Length"])try{var y=t.util.string.byteLength(a.httpRequest.body);a.httpRequest.headers["Content-Length"]=y}catch(m){if(h&&h.isStreaming){if(h.requiresLength)throw m;if(u.indexOf("unsigned-body")>=0)return void(a.httpRequest.headers["Transfer-Encoding"]="chunked");throw m}throw m}}),n("SET_HTTP_HOST","afterBuild",function(a){a.httpRequest.headers.Host=a.httpRequest.endpoint.host}),n("SET_TRACE_ID","afterBuild",function(a){var u="X-Amzn-Trace-Id";if(t.util.isNode()&&!Object.hasOwnProperty.call(a.httpRequest.headers,u)){var m=process.env.AWS_LAMBDA_FUNCTION_NAME,R=process.env._X_AMZN_TRACE_ID;"string"==typeof m&&m.length>0&&"string"==typeof R&&R.length>0&&(a.httpRequest.headers[u]=R)}}),n("RESTART","restart",function(){var a=this.response.error;!a||!a.retryable||(this.httpRequest=new t.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount<this.service.config.maxRetries?this.response.retryCount++:this.response.error=null)}),i("DISCOVER_ENDPOINT","sign",d,!0),i("SIGN","sign",function(a,u){var h=a.service,m=(a.service.api.operations||{})[a.operation];if(!(h.api.signatureVersion||m&&m.authtype||h.config.signatureVersion))return u();h.config.getCredentials(function(D,I){if(D)return a.response.error=D,u();try{var C=h.getSkewCorrectedDate(),j=new(h.getSignerClass(a))(a.httpRequest,h.getSigningName(a),{signatureCache:h.config.signatureCache,operation:m,signatureVersion:h.api.signatureVersion});j.setServiceClientId(h._clientId),delete a.httpRequest.headers.Authorization,delete a.httpRequest.headers.Date,delete a.httpRequest.headers["X-Amz-Date"],j.addAuthorization(I,C),a.signedAt=C}catch(V){a.response.error=V}u()})}),n("VALIDATE_RESPONSE","validateResponse",function(a){this.service.successfulResponse(a,this)?(a.data={},a.error=null):(a.data=null,a.error=t.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))}),n("ERROR","error",function(a,u){var h=u.request.service.api.errorCodeMapping;if(h&&a&&a.code){var y=h[a.code];y&&(u.error.code=y.code)}},!0),i("SEND","send",function(a,u){function h(I){a.httpResponse.stream=I;var C=a.request.httpRequest.stream,P=a.request.service,q=P.api.operations[a.request.operation]||{};I.on("headers",function(g,T,c){if(a.request.emit("httpHeaders",[g,T,a,c]),!a.httpResponse.streaming)if(2===t.HttpClient.streamsApiVersion){if(q.hasEventOutput&&P.successfulResponse(a))return a.request.emit("httpDone"),void u();I.on("readable",function(){var l=I.read();null!==l&&a.request.emit("httpData",[l,a])})}else I.on("data",function(l){a.request.emit("httpData",[l,a])})}),I.on("end",function(){if(!C||!C.didCallback){if(2===t.HttpClient.streamsApiVersion&&q.hasEventOutput&&P.successfulResponse(a))return;a.request.emit("httpDone"),u()}})}function m(I){"RequestAbortedError"!==I.code&&(I=t.util.error(I,{code:"TimeoutError"===I.code?I.code:"NetworkingError",region:a.request.httpRequest.region,hostname:a.request.httpRequest.endpoint.hostname,retryable:!0})),a.error=I,a.request.emit("httpError",[a.error,a],function(){u()})}function R(){var I=t.HttpClient.getInstance(),C=a.request.service.config.httpOptions||{};try{!function y(I){I.on("sendProgress",function(P){a.request.emit("httpUploadProgress",[P,a])}),I.on("receiveProgress",function(P){a.request.emit("httpDownloadProgress",[P,a])})}(I.handleRequest(a.request.httpRequest,C,h,m))}catch(j){m(j)}}a.httpResponse._abortCallback=u,a.error=null,a.data=null,(a.request.service.getSkewCorrectedDate()-this.signedAt)/1e3>=600?this.emit("sign",[this],function(I){I?u(I):R()}):R()}),n("HTTP_HEADERS","httpHeaders",function(a,u,h,y){h.httpResponse.statusCode=a,h.httpResponse.statusMessage=y,h.httpResponse.headers=u,h.httpResponse.body=t.util.buffer.toBuffer(""),h.httpResponse.buffers=[],h.httpResponse.numBytes=0;var m=u.date||u.Date,R=h.request.service;if(m){var D=Date.parse(m);R.config.correctClockSkew&&R.isClockSkewed(D)&&R.applyClockOffset(D)}}),n("HTTP_DATA","httpData",function(a,u){a&&(t.util.isNode()&&(u.httpResponse.numBytes+=a.length,u.request.emit("httpDownloadProgress",[{loaded:u.httpResponse.numBytes,total:u.httpResponse.headers["content-length"]},u])),u.httpResponse.buffers.push(t.util.buffer.toBuffer(a)))}),n("HTTP_DONE","httpDone",function(a){if(a.httpResponse.buffers&&a.httpResponse.buffers.length>0){var u=t.util.buffer.concat(a.httpResponse.buffers);a.httpResponse.body=u}delete a.httpResponse.numBytes,delete a.httpResponse.buffers}),n("FINALIZE_ERROR","retry",function(a){a.httpResponse.statusCode&&(a.error.statusCode=a.httpResponse.statusCode,void 0===a.error.retryable&&(a.error.retryable=this.service.retryableError(a.error,this)))}),n("INVALIDATE_CREDENTIALS","retry",function(a){if(a.error)switch(a.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":a.error.retryable=!0,a.request.service.config.credentials.expired=!0}}),n("EXPIRED_SIGNATURE","retry",function(a){var u=a.error;!u||"string"==typeof u.code&&"string"==typeof u.message&&u.code.match(/Signature/)&&u.message.match(/expired/)&&(a.error.retryable=!0)}),n("CLOCK_SKEWED","retry",function(a){!a.error||this.service.clockSkewError(a.error)&&this.service.config.correctClockSkew&&(a.error.retryable=!0)}),n("REDIRECT","retry",function(a){a.error&&a.error.statusCode>=300&&a.error.statusCode<400&&a.httpResponse.headers.location&&(this.httpRequest.endpoint=new t.Endpoint(a.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,a.error.redirect=!0,a.error.retryable=!0)}),n("RETRY_CHECK","retry",function(a){a.error&&(a.error.redirect&&a.redirectCount<a.maxRedirects?a.error.retryDelay=0:a.retryCount<a.maxRetries&&(a.error.retryDelay=this.service.retryDelays(a.retryCount,a.error)||0))}),i("RESET_RETRY_STATE","afterRetry",function(a,u){var h,y=!1;a.error&&(h=a.error.retryDelay||0,a.error.retryable&&a.retryCount<a.maxRetries?(a.retryCount++,y=!0):a.error.redirect&&a.redirectCount<a.maxRedirects&&(a.redirectCount++,y=!0)),y&&h>=0?(a.error=null,setTimeout(u,h)):u()})}),CorePost:(new w).addNamedListeners(function(n){n("EXTRACT_REQUEST_ID","extractData",t.util.extractRequestId),n("EXTRACT_REQUEST_ID","extractError",t.util.extractRequestId),n("ENOTFOUND_ERROR","httpError",function(s){"NetworkingError"===s.code&&function e(u){return"ENOTFOUND"===u.errno||"number"==typeof u.errno&&"function"==typeof t.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(t.util.getSystemErrorName(u.errno)>=0)}(s)&&(this.response.error=t.util.error(new Error("Inaccessible host: `"+s.hostname+"' at port `"+s.port+"'. This service may not be available in the `"+s.region+"' region."),{code:"UnknownEndpoint",region:s.region,hostname:s.hostname,retryable:!0,originalError:s}))})}),Logger:(new w).addNamedListeners(function(n){n("LOG_REQUEST","complete",function(s){var e=s.request,a=e.service.config.logger;if(a){var y=function h(){var R=(s.request.service.getSkewCorrectedDate().getTime()-e.startTime.getTime())/1e3,D=!!a.isTTY,I=s.httpResponse.statusCode,C=e.params;e.service.api.operations&&e.service.api.operations[e.operation]&&e.service.api.operations[e.operation].input&&(C=u(e.service.api.operations[e.operation].input,e.params));var j=p(14999).inspect(C,!0,null),V="";return D&&(V+="\x1b[33m"),V+="[AWS "+e.service.serviceIdentifier+" "+I,V+=" "+R.toString()+"s "+s.retryCount+" retries]",D&&(V+="\x1b[0;1m"),V+=" "+t.util.string.lowerFirst(e.operation),V+="("+j+")",D&&(V+="\x1b[0m"),V}();"function"==typeof a.log?a.log(y):"function"==typeof a.write&&a.write(y+"\n")}function u(m,R){if(!R)return R;if(m.isSensitive)return"***SensitiveInformation***";switch(m.type){case"structure":var D={};return t.util.each(R,function(P,j){D[P]=Object.prototype.hasOwnProperty.call(m.members,P)?u(m.members[P],j):j}),D;case"list":var I=[];return t.util.arrayEach(R,function(P,j){I.push(u(m.member,P))}),I;case"map":var C={};return t.util.each(R,function(P,j){C[P]=u(m.value,j)}),C;default:return R}}})}),Json:(new w).addNamedListeners(function(n){var i=p(88383);n("BUILD","build",i.buildRequest),n("EXTRACT_DATA","extractData",i.extractData),n("EXTRACT_ERROR","extractError",i.extractError)}),Rest:(new w).addNamedListeners(function(n){var i=p(98784);n("BUILD","build",i.buildRequest),n("EXTRACT_DATA","extractData",i.extractData),n("EXTRACT_ERROR","extractError",i.extractError)}),RestJson:(new w).addNamedListeners(function(n){var i=p(43825);n("BUILD","build",i.buildRequest),n("EXTRACT_DATA","extractData",i.extractData),n("EXTRACT_ERROR","extractError",i.extractError)}),RestXml:(new w).addNamedListeners(function(n){var i=p(10164);n("BUILD","build",i.buildRequest),n("EXTRACT_DATA","extractData",i.extractData),n("EXTRACT_ERROR","extractError",i.extractError)}),Query:(new w).addNamedListeners(function(n){var i=p(20340);n("BUILD","build",i.buildRequest),n("EXTRACT_DATA","extractData",i.extractData),n("EXTRACT_ERROR","extractError",i.extractError)})}},41798:(ue,M,p)=>{var t=p(67047),w=t.util.inherit;t.Endpoint=w({constructor:function(r,n){if(t.util.hideProperties(this,["slashes","auth","hash","search","query"]),typeof r>"u"||null===r)throw new Error("Invalid endpoint: "+r);if("string"!=typeof r)return t.util.copy(r);r.match(/^http/)||(r=((n&&void 0!==n.sslEnabled?n.sslEnabled:t.config.sslEnabled)?"https":"http")+"://"+r),t.util.update(this,t.util.urlParse(r)),this.port=this.port?parseInt(this.port,10):"https:"===this.protocol?443:80}}),t.HttpRequest=w({constructor:function(r,n){r=new t.Endpoint(r),this.method="POST",this.path=r.path||"/",this.headers={},this.body="",this.endpoint=r,this.region=n,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=t.util.userAgent()},getUserAgentHeaderName:function(){return(t.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(r){"string"==typeof r&&r&&(this._userAgent+=" "+r),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var r=this.path.split("?",2)[1];return r?(r=t.util.queryStringParse(r),t.util.queryParamsToString(r)):""},updateEndpoint:function(r){var n=new t.Endpoint(r);this.endpoint=n,this.path=n.path||"/",this.headers.Host&&(this.headers.Host=n.host)}}),t.HttpResponse=w({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),t.HttpClient=w({}),t.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},4835:(ue,M,p)=>{var t=p(67047),w=p(5538).EventEmitter;p(41798),t.XHRClient=t.util.inherit({handleRequest:function(r,n,i,s){var e=this,a=r.endpoint,u=new w,h=a.protocol+"//"+a.hostname;80!==a.port&&443!==a.port&&(h+=":"+a.port),h+=r.path;var y=new XMLHttpRequest,m=!1;r.stream=y,y.addEventListener("readystatechange",function(){try{if(0===y.status)return}catch{return}this.readyState>=this.HEADERS_RECEIVED&&!m&&(u.statusCode=y.status,u.headers=e.parseHeaders(y.getAllResponseHeaders()),u.emit("headers",u.statusCode,u.headers,y.statusText),m=!0),this.readyState===this.DONE&&e.finishRequest(y,u)},!1),y.upload.addEventListener("progress",function(R){u.emit("sendProgress",R)}),y.addEventListener("progress",function(R){u.emit("receiveProgress",R)},!1),y.addEventListener("timeout",function(){s(t.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),y.addEventListener("error",function(){s(t.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),y.addEventListener("abort",function(){s(t.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),i(u),y.open(r.method,h,!1!==n.xhrAsync),t.util.each(r.headers,function(R,D){"Content-Length"!==R&&"User-Agent"!==R&&"Host"!==R&&y.setRequestHeader(R,D)}),n.timeout&&!1!==n.xhrAsync&&(y.timeout=n.timeout),n.xhrWithCredentials&&(y.withCredentials=!0);try{y.responseType="arraybuffer"}catch{}try{r.body?y.send(r.body):y.send()}catch(R){if(!r.body||"object"!=typeof r.body.buffer)throw R;y.send(r.body.buffer)}return u},parseHeaders:function(r){var n={};return t.util.arrayEach(r.split(/\r?\n/),function(i){var s=i.split(":",1)[0],e=i.substring(s.length+2);s.length>0&&(n[s.toLowerCase()]=e)}),n},finishRequest:function(r,n){var i;if("arraybuffer"===r.responseType&&r.response){var s=r.response;i=new t.util.Buffer(s.byteLength);for(var e=new Uint8Array(s),a=0;a<i.length;++a)i[a]=e[a]}try{!i&&"string"==typeof r.responseText&&(i=new t.util.Buffer(r.responseText))}catch{}i&&n.emit("data",i),n.emit("end")}}),t.HttpClient.prototype=t.XHRClient.prototype,t.HttpClient.streamsApiVersion=1},43786:(ue,M,p)=>{var t=p(97340);function w(){}function d(e,a){if(a&&null!=e)switch(a.type){case"structure":return function r(e,a){if(a.isDocument)return e;var u={};return t.each(e,function(h,y){var m=a.members[h];if(m){if("body"!==m.location)return;var R=m.isLocationName?m.name:h,D=d(y,m);void 0!==D&&(u[R]=D)}}),u}(e,a);case"map":return function i(e,a){var u={};return t.each(e,function(h,y){var m=d(y,a.value);void 0!==m&&(u[h]=m)}),u}(e,a);case"list":return function n(e,a){var u=[];return t.arrayEach(e,function(h){var y=d(h,a.member);void 0!==y&&u.push(y)}),u}(e,a);default:return function s(e,a){return a.toWireFormat(e)}(e,a)}}w.prototype.build=function(e,a){return JSON.stringify(d(e,a))},ue.exports=w},42234:(ue,M,p)=>{var t=p(97340);function w(){}function d(e,a){if(a&&void 0!==e)switch(a.type){case"structure":return function r(e,a){if(null!=e){if(a.isDocument)return e;var u={};return t.each(a.members,function(y,m){var R=m.isLocationName?m.name:y;if(Object.prototype.hasOwnProperty.call(e,R)){var I=d(e[R],m);void 0!==I&&(u[y]=I)}}),u}}(e,a);case"map":return function i(e,a){if(null!=e){var u={};return t.each(e,function(h,y){var m=d(y,a.value);u[h]=void 0===m?null:m}),u}}(e,a);case"list":return function n(e,a){if(null!=e){var u=[];return t.arrayEach(e,function(h){var y=d(h,a.member);u.push(void 0===y?null:y)}),u}}(e,a);default:return function s(e,a){return a.toType(e)}(e,a)}}w.prototype.parse=function(e,a){return d(JSON.parse(e),a)},ue.exports=w},50989:(ue,M,p)=>{var t=p(12085),w=p(89823),d=p(36925),r=p(49832),n=p(6974),i=p(6839),s=p(97340),e=s.property,a=s.memoizedProperty;ue.exports=function u(h,y){var m=this;h=h||{},(y=y||{}).api=this,h.metadata=h.metadata||{};var R=y.serviceIdentifier;delete y.serviceIdentifier,e(this,"isApi",!0,!1),e(this,"apiVersion",h.metadata.apiVersion),e(this,"endpointPrefix",h.metadata.endpointPrefix),e(this,"signingName",h.metadata.signingName),e(this,"globalEndpoint",h.metadata.globalEndpoint),e(this,"signatureVersion",h.metadata.signatureVersion),e(this,"jsonVersion",h.metadata.jsonVersion),e(this,"targetPrefix",h.metadata.targetPrefix),e(this,"protocol",h.metadata.protocol),e(this,"timestampFormat",h.metadata.timestampFormat),e(this,"xmlNamespaceUri",h.metadata.xmlNamespace),e(this,"abbreviation",h.metadata.serviceAbbreviation),e(this,"fullName",h.metadata.serviceFullName),e(this,"serviceId",h.metadata.serviceId),R&&i[R]&&e(this,"xmlNoDefaultLists",i[R].xmlNoDefaultLists,!1),a(this,"className",function(){var I=h.metadata.serviceAbbreviation||h.metadata.serviceFullName;return I?("ElasticLoadBalancing"===(I=I.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(I="ELB"),I):null}),e(this,"operations",new t(h.operations,y,function(I,C){return new w(I,C,y)},s.string.lowerFirst,function D(I,C){!0===C.endpointoperation&&e(m,"endpointOperation",s.string.lowerFirst(I)),C.endpointdiscovery&&!m.hasRequiredEndpointDiscovery&&e(m,"hasRequiredEndpointDiscovery",!0===C.endpointdiscovery.required)})),e(this,"shapes",new t(h.shapes,y,function(I,C){return d.create(C,y)})),e(this,"paginators",new t(h.paginators,y,function(I,C){return new r(I,C,y)})),e(this,"waiters",new t(h.waiters,y,function(I,C){return new n(I,C,y)},s.string.lowerFirst)),y.documentation&&(e(this,"documentation",h.documentation),e(this,"documentationUrl",h.documentationUrl)),e(this,"errorCodeMapping",h.awsQueryCompatible)}},12085:(ue,M,p)=>{var t=p(97340).memoizedProperty;function w(r,n,i,s){t(this,s(r),function(){return i(r,n)})}ue.exports=function d(r,n,i,s,e){for(var u in s=s||String,r)Object.prototype.hasOwnProperty.call(r,u)&&(w.call(this,u,r[u],i,s),e&&e(u,r[u]))}},89823:(ue,M,p)=>{var t=p(36925),w=p(97340),d=w.property,r=w.memoizedProperty;ue.exports=function n(s,e,a){var u=this;a=a||{},d(this,"name",e.name||s),d(this,"api",a.api,!1),e.http=e.http||{},d(this,"endpoint",e.endpoint),d(this,"httpMethod",e.http.method||"POST"),d(this,"httpPath",e.http.requestUri||"/"),d(this,"authtype",e.authtype||""),d(this,"endpointDiscoveryRequired",e.endpointdiscovery?e.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL"),d(this,"httpChecksumRequired",e.httpChecksumRequired||e.httpChecksum&&e.httpChecksum.requestChecksumRequired,!1),r(this,"input",function(){return e.input?t.create(e.input,a):new t.create({type:"structure"},a)}),r(this,"output",function(){return e.output?t.create(e.output,a):new t.create({type:"structure"},a)}),r(this,"errors",function(){var y=[];if(!e.errors)return null;for(var m=0;m<e.errors.length;m++)y.push(t.create(e.errors[m],a));return y}),r(this,"paginator",function(){return a.api.paginators[s]}),a.documentation&&(d(this,"documentation",e.documentation),d(this,"documentationUrl",e.documentationUrl)),r(this,"idempotentMembers",function(){var y=[],m=u.input,R=m.members;if(!m.members)return y;for(var D in R)!R.hasOwnProperty(D)||!0===R[D].isIdempotent&&y.push(D);return y}),r(this,"hasEventOutput",function(){return function i(s){var e=s.members,a=s.payload;if(!s.members)return!1;if(a)return e[a].isEventStream;for(var h in e)if(!e.hasOwnProperty(h)&&!0===e[h].isEventStream)return!0;return!1}(u.output)})}},49832:(ue,M,p)=>{var t=p(97340).property;ue.exports=function w(d,r){t(this,"inputToken",r.input_token),t(this,"limitKey",r.limit_key),t(this,"moreResults",r.more_results),t(this,"outputToken",r.output_token),t(this,"resultKey",r.result_key)}},6974:(ue,M,p)=>{var t=p(97340),w=t.property;ue.exports=function d(r,n,i){i=i||{},w(this,"name",r),w(this,"api",i.api,!1),n.operation&&w(this,"operation",t.string.lowerFirst(n.operation));var s=this;["type","description","delay","maxAttempts","acceptors"].forEach(function(a){var u=n[a];u&&w(s,a,u)})}},36925:(ue,M,p)=>{var t=p(12085),w=p(97340);function d(C,P,j){null!=j&&w.property.apply(this,arguments)}function r(C,P){C.constructor.prototype[P]||w.memoizedProperty.apply(this,arguments)}function n(C,P,j){P=P||{},d(this,"shape",C.shape),d(this,"api",P.api,!1),d(this,"type",C.type),d(this,"enum",C.enum),d(this,"min",C.min),d(this,"max",C.max),d(this,"pattern",C.pattern),d(this,"location",C.location||this.location||"body"),d(this,"name",this.name||C.xmlName||C.queryName||C.locationName||j),d(this,"isStreaming",C.streaming||this.isStreaming||!1),d(this,"requiresLength",C.requiresLength,!1),d(this,"isComposite",C.isComposite||!1),d(this,"isShape",!0,!1),d(this,"isQueryName",Boolean(C.queryName),!1),d(this,"isLocationName",Boolean(C.locationName),!1),d(this,"isIdempotent",!0===C.idempotencyToken),d(this,"isJsonValue",!0===C.jsonvalue),d(this,"isSensitive",!0===C.sensitive||C.prototype&&!0===C.prototype.sensitive),d(this,"isEventStream",Boolean(C.eventstream),!1),d(this,"isEvent",Boolean(C.event),!1),d(this,"isEventPayload",Boolean(C.eventpayload),!1),d(this,"isEventHeader",Boolean(C.eventheader),!1),d(this,"isTimestampFormatSet",Boolean(C.timestampFormat)||C.prototype&&!0===C.prototype.isTimestampFormatSet,!1),d(this,"endpointDiscoveryId",Boolean(C.endpointdiscoveryid),!1),d(this,"hostLabel",Boolean(C.hostLabel),!1),P.documentation&&(d(this,"documentation",C.documentation),d(this,"documentationUrl",C.documentationUrl)),C.xmlAttribute&&d(this,"isXmlAttribute",C.xmlAttribute||!1),d(this,"defaultValue",null),this.toWireFormat=function(V){return V??""},this.toType=function(V){return V}}function i(C){n.apply(this,arguments),d(this,"isComposite",!0),C.flattened&&d(this,"flattened",C.flattened||!1)}function s(C,P){var j=this,V=null,q=!this.isShape;i.apply(this,arguments),q&&(d(this,"defaultValue",function(){return{}}),d(this,"members",{}),d(this,"memberNames",[]),d(this,"required",[]),d(this,"isRequired",function(){return!1}),d(this,"isDocument",Boolean(C.document))),C.members&&(d(this,"members",new t(C.members,P,function(L,g){return n.create(g,P,L)})),r(this,"memberNames",function(){return C.xmlOrder||Object.keys(C.members)}),C.event&&(r(this,"eventPayloadMemberName",function(){for(var L=j.members,g=j.memberNames,T=0,c=g.length;T<c;T++)if(L[g[T]].isEventPayload)return g[T]}),r(this,"eventHeaderMemberNames",function(){for(var L=j.members,g=j.memberNames,T=[],c=0,_=g.length;c<_;c++)L[g[c]].isEventHeader&&T.push(g[c]);return T}))),C.required&&(d(this,"required",C.required),d(this,"isRequired",function(L){if(!V){V={};for(var g=0;g<C.required.length;g++)V[C.required[g]]=!0}return V[L]},!1,!0)),d(this,"resultWrapper",C.resultWrapper||null),C.payload&&d(this,"payload",C.payload),"string"==typeof C.xmlNamespace?d(this,"xmlNamespaceUri",C.xmlNamespace):"object"==typeof C.xmlNamespace&&(d(this,"xmlNamespacePrefix",C.xmlNamespace.prefix),d(this,"xmlNamespaceUri",C.xmlNamespace.uri))}function e(C,P){var j=this,V=!this.isShape;if(i.apply(this,arguments),V&&d(this,"defaultValue",function(){return[]}),C.member&&r(this,"member",function(){return n.create(C.member,P)}),this.flattened){var q=this.name;r(this,"name",function(){return j.member.name||q})}}function a(C,P){var j=!this.isShape;i.apply(this,arguments),j&&(d(this,"defaultValue",function(){return{}}),d(this,"key",n.create({type:"string"},P)),d(this,"value",n.create({type:"string"},P))),C.key&&r(this,"key",function(){return n.create(C.key,P)}),C.value&&r(this,"value",function(){return n.create(C.value,P)})}function h(){n.apply(this,arguments);var C=["rest-xml","query","ec2"];this.toType=function(P){return P=this.api&&C.indexOf(this.api.protocol)>-1?P||"":P,this.isJsonValue?JSON.parse(P):P&&"function"==typeof P.toString?P.toString():P},this.toWireFormat=function(P){return this.isJsonValue?JSON.stringify(P):P}}function R(){n.apply(this,arguments),this.toType=function(C){var P=w.base64.decode(C);if(this.isSensitive&&w.isNode()&&"function"==typeof w.Buffer.alloc){var j=w.Buffer.alloc(P.length,P);P.fill(0),P=j}return P},this.toWireFormat=w.base64.encode}function D(){R.apply(this,arguments)}function I(){n.apply(this,arguments),this.toType=function(C){return"boolean"==typeof C?C:null==C?null:"true"===C}}n.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},n.types={structure:s,list:e,map:a,boolean:I,timestamp:function u(C){var P=this;if(n.apply(this,arguments),C.timestampFormat)d(this,"timestampFormat",C.timestampFormat);else if(P.isTimestampFormatSet&&this.timestampFormat)d(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)d(this,"timestampFormat","rfc822");else if("querystring"===this.location)d(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":d(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":d(this,"timestampFormat","iso8601")}this.toType=function(j){return null==j?null:"function"==typeof j.toUTCString?j:"string"==typeof j||"number"==typeof j?w.date.parseTimestamp(j):null},this.toWireFormat=function(j){return w.date.format(j,P.timestampFormat)}},float:function y(){n.apply(this,arguments),this.toType=function(C){return null==C?null:parseFloat(C)},this.toWireFormat=this.toType},integer:function m(){n.apply(this,arguments),this.toType=function(C){return null==C?null:parseInt(C,10)},this.toWireFormat=this.toType},string:h,base64:D,binary:R},n.resolve=function(P,j){if(P.shape){var V=j.api.shapes[P.shape];if(!V)throw new Error("Cannot find shape reference: "+P.shape);return V}return null},n.create=function(P,j,V){if(P.isShape)return P;var q=n.resolve(P,j);if(q){var L=Object.keys(P);j.documentation||(L=L.filter(function(c){return!c.match(/documentation/)}));var g=function(){q.constructor.call(this,P,j,V)};return g.prototype=q,new g}P.type||(P.type=P.members?"structure":P.member?"list":P.key?"map":"string");var T=P.type;if(n.normalizedTypes[P.type]&&(P.type=n.normalizedTypes[P.type]),n.types[P.type])return new n.types[P.type](P,j,V);throw new Error("Unrecognized shape type: "+T)},n.shapes={StructureShape:s,ListShape:e,MapShape:a,StringShape:h,BooleanShape:I,Base64Shape:D},ue.exports=n},52515:(ue,M,p)=>{var t=p(67047);t.ParamValidator=t.util.inherit({constructor:function(d){(!0===d||void 0===d)&&(d={min:!0}),this.validation=d},validate:function(d,r,n){if(this.errors=[],this.validateMember(d,r||{},n||"params"),this.errors.length>1){var i=this.errors.join("\n* ");throw i="There were "+this.errors.length+" validation errors:\n* "+i,t.util.error(new Error(i),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(d,r){this.errors.push(t.util.error(new Error(r),{code:d}))},validateStructure:function(d,r,n){if(d.isDocument)return!0;this.validateType(r,n,["object"],"structure");for(var i,s=0;d.required&&s<d.required.length;s++)null==r[i=d.required[s]]&&this.fail("MissingRequiredParameter","Missing required key '"+i+"' in "+n);for(i in r)if(Object.prototype.hasOwnProperty.call(r,i)){var a=r[i],u=d.members[i];if(void 0!==u){var h=[n,i].join(".");this.validateMember(u,a,h)}else null!=a&&this.fail("UnexpectedParameter","Unexpected key '"+i+"' found in "+n)}return!0},validateMember:function(d,r,n){switch(d.type){case"structure":return this.validateStructure(d,r,n);case"list":return this.validateList(d,r,n);case"map":return this.validateMap(d,r,n);default:return this.validateScalar(d,r,n)}},validateList:function(d,r,n){if(this.validateType(r,n,[Array])){this.validateRange(d,r.length,n,"list member count");for(var i=0;i<r.length;i++)this.validateMember(d.member,r[i],n+"["+i+"]")}},validateMap:function(d,r,n){if(this.validateType(r,n,["object"],"map")){var i=0;for(var s in r)!Object.prototype.hasOwnProperty.call(r,s)||(this.validateMember(d.key,s,n+"[key='"+s+"']"),this.validateMember(d.value,r[s],n+"['"+s+"']"),i++);this.validateRange(d,i,n,"map member count")}},validateScalar:function(d,r,n){switch(d.type){case null:case void 0:case"string":return this.validateString(d,r,n);case"base64":case"binary":return this.validatePayload(r,n);case"integer":case"float":return this.validateNumber(d,r,n);case"boolean":return this.validateType(r,n,["boolean"]);case"timestamp":return this.validateType(r,n,[Date,/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/,"number"],"Date object, ISO-8601 string, or a UNIX timestamp");default:return this.fail("UnkownType","Unhandled type "+d.type+" for "+n)}},validateString:function(d,r,n){var i=["string"];d.isJsonValue&&(i=i.concat(["number","object","boolean"])),null!==r&&this.validateType(r,n,i)&&(this.validateEnum(d,r,n),this.validateRange(d,r.length,n,"string length"),this.validatePattern(d,r,n),this.validateUri(d,r,n))},validateUri:function(d,r,n){"uri"===d.location&&0===r.length&&this.fail("UriParameterError",'Expected uri parameter to have length >= 1, but found "'+r+'" for '+n)},validatePattern:function(d,r,n){this.validation.pattern&&void 0!==d.pattern&&(new RegExp(d.pattern).test(r)||this.fail("PatternMatchError",'Provided value "'+r+'" does not match regex pattern /'+d.pattern+"/ for "+n))},validateRange:function(d,r,n,i){this.validation.min&&void 0!==d.min&&r<d.min&&this.fail("MinRangeError","Expected "+i+" >= "+d.min+", but found "+r+" for "+n),this.validation.max&&void 0!==d.max&&r>d.max&&this.fail("MaxRangeError","Expected "+i+" <= "+d.max+", but found "+r+" for "+n)},validateEnum:function(d,r,n){this.validation.enum&&void 0!==d.enum&&-1===d.enum.indexOf(r)&&this.fail("EnumError","Found string value of "+r+", but expected "+d.enum.join("|")+" for "+n)},validateType:function(d,r,n,i){if(null==d)return!1;for(var s=!1,e=0;e<n.length;e++){if("string"==typeof n[e]){if(typeof d===n[e])return!0}else if(n[e]instanceof RegExp){if((d||"").toString().match(n[e]))return!0}else{if(d instanceof n[e]||t.util.isType(d,n[e]))return!0;!i&&!s&&(n=n.slice()),n[e]=t.util.typeName(n[e])}s=!0}var a=i;a||(a=n.join(", ").replace(/,([^,]+)$/,", or$1"));var u=a.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+r+" to be a"+u+" "+a),!1},validateNumber:function(d,r,n){if(null!=r){if("string"==typeof r){var i=parseFloat(r);i.toString()===r&&(r=i)}this.validateType(r,n,["number"])&&this.validateRange(d,r,n,"numeric value")}},validatePayload:function(d,r){if(null!=d&&"string"!=typeof d&&(!d||"number"!=typeof d.byteLength)){if(t.util.isNode()){var n=t.util.stream.Stream;if(t.util.Buffer.isBuffer(d)||d instanceof n)return}else if(void 0!==typeof Blob&&d instanceof Blob)return;var i=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(d)for(var s=0;s<i.length;s++)if(t.util.isType(d,i[s])||t.util.typeName(d.constructor)===i[s])return;this.fail("InvalidParameterType","Expected "+r+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},5673:(ue,M,p)=>{var t=p(97340),w=p(67047);ue.exports={populateHostPrefix:function d(e){if(!e.service.config.hostPrefixEnabled)return e;var u=e.service.api.operations[e.operation];if(function r(e){var a=e.service.api,u=a.operations[e.operation],h=a.endpointOperation&&a.endpointOperation===t.string.lowerFirst(u.name);return"NULL"!==u.endpointDiscoveryRequired||!0===h}(e))return e;if(u.endpoint&&u.endpoint.hostPrefix){var y=function n(e,a,u){return t.each(u.members,function(h,y){if(!0===y.hostLabel){if("string"!=typeof a[h]||""===a[h])throw t.error(new Error,{message:"Parameter "+h+" should be a non-empty string.",code:"InvalidParameter"});var m=new RegExp("\\{"+h+"\\}","g");e=e.replace(m,a[h])}}),e}(u.endpoint.hostPrefix,e.params,u.input);(function i(e,a){e.host&&(e.host=a+e.host),e.hostname&&(e.hostname=a+e.hostname)})(e.httpRequest.endpoint,y),function s(e){var a=e.split("."),u=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;t.arrayEach(a,function(h){if(!h.length||h.length<1||h.length>63)throw t.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!u.test(h))throw w.util.error(new Error,{code:"ValidationError",message:h+" is not hostname compatible."})})}(e.httpRequest.endpoint.hostname)}return e}}},88383:(ue,M,p)=>{var t=p(97340),w=p(43786),d=p(42234),r=p(5673).populateHostPrefix;ue.exports={buildRequest:function n(e){var a=e.httpRequest,u=e.service.api,h=u.targetPrefix+"."+u.operations[e.operation].name,y=u.jsonVersion||"1.0",m=u.operations[e.operation].input,R=new w;1===y&&(y="1.0"),a.body=R.build(e.params||{},m),a.headers["Content-Type"]="application/x-amz-json-"+y,a.headers["X-Amz-Target"]=h,r(e)},extractError:function i(e){var a={},u=e.httpResponse;if(a.code=u.headers["x-amzn-errortype"]||"UnknownError","string"==typeof a.code&&(a.code=a.code.split(":")[0]),u.body.length>0)try{var h=JSON.parse(u.body.toString()),y=h.__type||h.code||h.Code;y&&(a.code=y.split("#").pop()),a.message="RequestEntityTooLarge"===a.code?"Request body must be less than 1 MB":h.message||h.Message||null}catch{a.statusCode=u.statusCode,a.message=u.statusMessage}else a.statusCode=u.statusCode,a.message=u.statusCode.toString();e.error=t.error(new Error,a)},extractData:function s(e){var a=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(a);else{var h=e.request.service.api.operations[e.request.operation].output||{},y=new d;e.data=y.parse(a,h)}}}},20340:(ue,M,p)=>{var t=p(67047),w=p(97340),d=p(1105),r=p(36925),n=p(5673).populateHostPrefix;ue.exports={buildRequest:function i(a){var u=a.service.api.operations[a.operation],h=a.httpRequest;h.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",h.params={Version:a.service.api.apiVersion,Action:u.name},(new d).serialize(a.params,u.input,function(m,R){h.params[m]=R}),h.body=w.queryParamsToString(h.params),n(a)},extractError:function s(a){var u,h=a.httpResponse.body.toString();if(h.match("<UnknownOperationException"))u={Code:"UnknownOperation",Message:"Unknown operation "+a.request.operation};else try{u=(new t.XML.Parser).parse(h)}catch{u={Code:a.httpResponse.statusCode,Message:a.httpResponse.statusMessage}}u.requestId&&!a.requestId&&(a.requestId=u.requestId),u.Errors&&(u=u.Errors),u.Error&&(u=u.Error),a.error=w.error(new Error,u.Code?{code:u.Code,message:u.Message}:{code:a.httpResponse.statusCode,message:null})},extractData:function e(a){var u=a.request,y=u.service.api.operations[u.operation].output||{},m=y;if(m.resultWrapper){var R=r.create({type:"structure"});R.members[m.resultWrapper]=y,R.memberNames=[m.resultWrapper],w.property(y,"name",y.resultWrapper),y=R}var D=new t.XML.Parser;if(y&&y.members&&!y.members._XAMZRequestId){var I=r.create({type:"string"},{api:{protocol:"query"}},"requestId");y.members._XAMZRequestId=I}var C=D.parse(a.httpResponse.body.toString(),y);a.requestId=C._XAMZRequestId||C.requestId,C._XAMZRequestId&&delete C._XAMZRequestId,m.resultWrapper&&C[m.resultWrapper]&&(w.update(C,C[m.resultWrapper]),delete C[m.resultWrapper]),a.data=C}}},98784:(ue,M,p)=>{var t=p(97340),w=p(5673).populateHostPrefix;function r(u,h,y,m){var R=[u,h].join("/");R=R.replace(/\/+/g,"/");var D={},I=!1;if(t.each(y.members,function(P,j){var V=m[P];if(null!=V)if("uri"===j.location){var q=new RegExp("\\{"+j.name+"(\\+)?\\}");R=R.replace(q,function(L,g){return(g?t.uriEscapePath:t.uriEscape)(String(V))})}else"querystring"===j.location&&(I=!0,"list"===j.type?D[j.name]=V.map(function(L){return t.uriEscape(j.member.toWireFormat(L).toString())}):"map"===j.type?t.each(V,function(L,g){D[L]=Array.isArray(g)?g.map(function(T){return t.uriEscape(String(T))}):t.uriEscape(String(g))}):D[j.name]=t.uriEscape(j.toWireFormat(V).toString()))}),I){R+=R.indexOf("?")>=0?"&":"?";var C=[];t.arrayEach(Object.keys(D).sort(),function(P){Array.isArray(D[P])||(D[P]=[D[P]]);for(var j=0;j<D[P].length;j++)C.push(t.uriEscape(String(P))+"="+D[P][j])}),R+=C.join("&")}return R}ue.exports={buildRequest:function s(u){(function d(u){u.httpRequest.method=u.service.api.operations[u.operation].httpMethod})(u),function n(u){var h=u.service.api.operations[u.operation],m=r(u.httpRequest.endpoint.path,h.httpPath,h.input,u.params);u.httpRequest.path=m}(u),function i(u){t.each(u.service.api.operations[u.operation].input.members,function(y,m){var R=u.params[y];null!=R&&("headers"===m.location&&"map"===m.type?t.each(R,function(D,I){u.httpRequest.headers[m.name+D]=I}):"header"===m.location&&(R=m.toWireFormat(R).toString(),m.isJsonValue&&(R=t.base64.encode(R)),u.httpRequest.headers[m.name]=R))})}(u),w(u)},extractError:function e(){},extractData:function a(u){var h=u.request,y={},m=u.httpResponse,D=h.service.api.operations[h.operation].output,I={};t.each(m.headers,function(C,P){I[C.toLowerCase()]=P}),t.each(D.members,function(C,P){var j=(P.name||C).toLowerCase();if("headers"===P.location&&"map"===P.type){y[C]={};var q=new RegExp("^"+(P.isLocationName?P.name:"")+"(.+)","i");t.each(m.headers,function(g,T){var c=g.match(q);null!==c&&(y[C][c[1]]=T)})}else if("header"===P.location){if(void 0!==I[j]){var L=P.isJsonValue?t.base64.decode(I[j]):I[j];y[C]=P.toType(L)}}else"statusCode"===P.location&&(y[C]=parseInt(m.statusCode,10))}),u.data=y},generateURI:r}},43825:(ue,M,p)=>{var t=p(97340),w=p(98784),d=p(88383),r=p(43786),n=p(42234);function s(h,y){h.httpRequest.headers["Content-Type"]||(h.httpRequest.headers["Content-Type"]=y?"binary/octet-stream":"application/json")}ue.exports={buildRequest:function e(h){w.buildRequest(h),["GET","HEAD","DELETE"].indexOf(h.httpRequest.method)<0&&function i(h){var y=new r,m=h.service.api.operations[h.operation].input;if(m.payload){var R,D=m.members[m.payload];R=h.params[m.payload],"structure"===D.type?(h.httpRequest.body=y.build(R||{},D),s(h)):void 0!==R&&(h.httpRequest.body=R,("binary"===D.type||D.isStreaming)&&s(h,!0))}else h.httpRequest.body=y.build(h.params,m),s(h)}(h)},extractError:function a(h){d.extractError(h)},extractData:function u(h){w.extractData(h);var y=h.request,R=y.service.api.operations[y.operation].output||{};if(R.payload){var C=R.members[R.payload],P=h.httpResponse.body;if(C.isEventStream)D=new n,h.data[payload]=t.createEventStream(2===AWS.HttpClient.streamsApiVersion?h.httpResponse.stream:P,D,C);else if("structure"===C.type||"list"===C.type){var D=new n;h.data[R.payload]=D.parse(P,C)}else h.data[R.payload]="binary"===C.type||C.isStreaming?P:C.toType(P)}else{var j=h.data;d.extractData(h),h.data=t.merge(j,h.data)}}}},10164:(ue,M,p)=>{var t=p(67047),w=p(97340),d=p(98784);ue.exports={buildRequest:function n(e){d.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&function r(e){var a=e.service.api.operations[e.operation].input,u=new t.XML.Builder,h=e.params,y=a.payload;if(y){var m=a.members[y];if(void 0===(h=h[y]))return;e.httpRequest.body="structure"===m.type?u.toXML(h,m,m.name,!0):h}else e.httpRequest.body=u.toXML(h,a,a.name||a.shape||w.string.upperFirst(e.operation)+"Request")}(e)},extractError:function i(e){var a;d.extractError(e);try{a=(new t.XML.Parser).parse(e.httpResponse.body.toString())}catch{a={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}a.Errors&&(a=a.Errors),a.Error&&(a=a.Error),e.error=w.error(new Error,a.Code?{code:a.Code,message:a.Message}:{code:e.httpResponse.statusCode,message:null})},extractData:function s(e){d.extractData(e);var a,u=e.request,h=e.httpResponse.body,m=u.service.api.operations[u.operation].output,D=m.payload;if(D){var I=m.members[D];I.isEventStream?(a=new t.XML.Parser,e.data[D]=w.createEventStream(2===t.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,a,I)):"structure"===I.type?(a=new t.XML.Parser,e.data[D]=a.parse(h.toString(),I)):e.data[D]="binary"===I.type||I.isStreaming?h:I.toType(h)}else if(h.length>0){var C=(a=new t.XML.Parser).parse(h.toString(),m);w.update(e.data,C)}}}},1105:(ue,M,p)=>{var t=p(97340);function w(){}function d(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function r(e,a,u,h){t.each(u.members,function(y,m){var R=a[y];if(null!=R){var D=d(m);s(D=e?e+"."+D:D,R,m,h)}})}function s(e,a,u,h){null!=a&&("structure"===u.type?r(e,a,u,h):"list"===u.type?function i(e,a,u,h){var y=u.member||{};0!==a.length?t.arrayEach(a,function(m,R){var D="."+(R+1);if("ec2"===u.api.protocol)D+="";else if(u.flattened){if(y.name){var I=e.split(".");I.pop(),I.push(d(y)),e=I.join(".")}}else D="."+(y.name?y.name:"member")+D;s(e+D,m,y,h)}):h.call(this,e,null)}(e,a,u,h):"map"===u.type?function n(e,a,u,h){var y=1;t.each(a,function(m,R){var I=(u.flattened?".":".entry.")+y+++".",P=I+(u.value.name||"value");s(e+(I+(u.key.name||"key")),m,u.key,h),s(e+P,R,u.value,h)})}(e,a,u,h):h(e,u.toWireFormat(a).toString()))}w.prototype.serialize=function(e,a,u){r("",e,a,u)},ue.exports=w},5066:ue=>{ue.exports={now:function(){return typeof performance<"u"&&"function"==typeof performance.now?performance.now():Date.now()}}},81610:ue=>{ue.exports={isFipsRegion:function M(w){return"string"==typeof w&&(w.startsWith("fips-")||w.endsWith("-fips"))},isGlobalRegion:function p(w){return"string"==typeof w&&["aws-global","aws-us-gov-global"].includes(w)},getRealRegion:function t(w){return["fips-aws-global","aws-fips","aws-global"].includes(w)?"us-east-1":["fips-aws-us-gov-global","aws-us-gov-global"].includes(w)?"us-gov-west-1":w.replace(/fips-(dkr-|prod-)?|-fips/,"")}}},31160:(ue,M,p)=>{var t=p(97340),w=p(85595);function n(e,a){t.each(a,function(u,h){"globalEndpoint"!==u&&null==e.config[u]&&(e.config[u]=h)})}ue.exports={configureEndpoint:function i(e){for(var a=function r(e){var a=e.config.region,u=function d(e){if(!e)return null;var a=e.split("-");return a.length<3?null:a.slice(0,a.length-2).join("-")+"-*"}(a),h=e.api.endpointPrefix;return[[a,h],[u,h],[a,"*"],[u,"*"],["*",h],["*","*"]].map(function(y){return y[0]&&y[1]?y.join("/"):null})}(e),u=e.config.useFipsEndpoint,h=e.config.useDualstackEndpoint,y=0;y<a.length;y++){var m=a[y];if(m){var R=u?h?w.dualstackFipsRules:w.fipsRules:h?w.dualstackRules:w.rules;if(Object.prototype.hasOwnProperty.call(R,m)){var D=R[m];return"string"==typeof D&&(D=w.patterns[D]),e.isGlobalEndpoint=!!D.globalEndpoint,D.signingRegion&&(e.signingRegion=D.signingRegion),D.signatureVersion||(D.signatureVersion="v4"),void n(e,D)}}}},getEndpointSuffix:function s(e){for(var a={"^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$":"amazonaws.com","^cn\\-\\w+\\-\\d+$":"amazonaws.com.cn","^us\\-gov\\-\\w+\\-\\d+$":"amazonaws.com","^us\\-iso\\-\\w+\\-\\d+$":"c2s.ic.gov","^us\\-isob\\-\\w+\\-\\d+$":"sc2s.sgov.gov"},h=Object.keys(a),y=0;y<h.length;y++){var m=RegExp(h[y]),R=a[h[y]];if(m.test(e))return R}return"amazonaws.com"}}},70752:(ue,M,p)=>{var t=p(67047),w=p(97759),d=t.util.inherit,r=t.util.domain,n=p(57920),i={success:1,error:1,complete:1},e=new w;e.setupStates=function(){var a=function(u,h){var y=this;y._haltHandlersOnError=!1,y.emit(y._asm.currentState,function(m){if(m)if(function s(a){return Object.prototype.hasOwnProperty.call(i,a._asm.currentState)}(y)){if(!(r&&y.domain instanceof r.Domain))throw m;m.domainEmitter=y,m.domain=y.domain,m.domainThrown=!1,y.domain.emit("error",m)}else y.response.error=m,h(m);else h(y.response.error)})};this.addState("validate","build","error",a),this.addState("build","afterBuild","restart",a),this.addState("afterBuild","sign","restart",a),this.addState("sign","send","retry",a),this.addState("retry","afterRetry","afterRetry",a),this.addState("afterRetry","sign","error",a),this.addState("send","validateResponse","retry",a),this.addState("validateResponse","extractData","extractError",a),this.addState("extractError","extractData","retry",a),this.addState("extractData","success","retry",a),this.addState("restart","build","error",a),this.addState("success","complete","complete",a),this.addState("error","complete","complete",a),this.addState("complete",null,null,a)},e.setupStates(),t.Request=d({constructor:function(u,h,y){var m=u.endpoint,R=u.config.region,D=u.config.customUserAgent;u.signingRegion?R=u.signingRegion:u.isGlobalEndpoint&&(R="us-east-1"),this.domain=r&&r.active,this.service=u,this.operation=h,this.params=y||{},this.httpRequest=new t.HttpRequest(m,R),this.httpRequest.appendToUserAgent(D),this.startTime=u.getSkewCorrectedDate(),this.response=new t.Response(this),this._asm=new w(e.states,"validate"),this._haltHandlersOnError=!1,t.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(u){return u&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",function(h){u.call(h,h.error,h.data)})),this.runTo(),this.response},build:function(u){return this.runTo("send",u)},runTo:function(u,h){return this._asm.runTo(u,h,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",function(h){h.error=t.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1})}),this.httpRequest.stream&&!this.httpRequest.stream.didCallback&&(this.httpRequest.stream.abort(),this.httpRequest._abortCallback?this.httpRequest._abortCallback():this.removeAllListeners("send")),this},eachPage:function(u){u=t.util.fn.makeAsync(u,3),this.on("complete",function h(y){u.call(y,y.error,y.data,function(m){!1!==m&&(y.hasNextPage()?y.nextPage().on("complete",h).send():u.call(y,null,null,t.util.fn.noop))})}).send()},eachItem:function(u){var h=this;this.eachPage(function y(m,R){if(m)return u(m,null);if(null===R)return u(null,null);var I=h.service.paginationConfig(h.operation).resultKey;Array.isArray(I)&&(I=I[0]);var C=n.search(R,I),P=!0;return t.util.arrayEach(C,function(j){if(!1===(P=u(null,j)))return t.util.abort}),P})},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var u=t.util.stream,h=this,y=null;return 2===t.HttpClient.streamsApiVersion?(y=new u.PassThrough,process.nextTick(function(){h.send()})):((y=new u.Stream).readable=!0,y.sent=!1,y.on("newListener",function(m){!y.sent&&"data"===m&&(y.sent=!0,process.nextTick(function(){h.send()}))})),this.on("error",function(m){y.emit("error",m)}),this.on("httpHeaders",function(R,D,I){if(R<300){h.removeListener("httpData",t.EventListeners.Core.HTTP_DATA),h.removeListener("httpError",t.EventListeners.Core.HTTP_ERROR),h.on("httpError",function(T){I.error=T,I.error.retryable=!1});var P,C=!1;if("HEAD"!==h.httpRequest.method&&(P=parseInt(D["content-length"],10)),void 0!==P&&!isNaN(P)&&P>=0){C=!0;var j=0}var V=function(){C&&j!==P?y.emit("error",t.util.error(new Error("Stream content length mismatch. Received "+j+" of "+P+" bytes."),{code:"StreamContentLengthMismatch"})):2===t.HttpClient.streamsApiVersion?y.end():y.emit("end")},q=I.httpResponse.createUnbufferedStream();if(2===t.HttpClient.streamsApiVersion)if(C){var L=new u.PassThrough;L._write=function(g){return g&&g.length&&(j+=g.length),u.PassThrough.prototype._write.apply(this,arguments)},L.on("end",V),y.on("error",function(g){C=!1,q.unpipe(L),L.emit("end"),L.end()}),q.pipe(L).pipe(y,{end:!1})}else q.pipe(y);else C&&q.on("data",function(g){g&&g.length&&(j+=g.length)}),q.on("data",function(g){y.emit("data",g)}),q.on("end",V);q.on("error",function(g){C=!1,y.emit("error",g)})}}),y},emitEvent:function(u,h,y){"function"==typeof h&&(y=h,h=null),y||(y=function(){}),h||(h=this.eventParameters(u,this.response)),t.SequentialExecutor.prototype.emit.call(this,u,h,function(R){R&&(this.response.error=R),y.call(this,R)})},eventParameters:function(u){switch(u){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function(u,h){return!h&&"function"==typeof u&&(h=u,u=null),(new t.Signers.Presign).sign(this.toGet(),u,h)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",t.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",t.EventListeners.Core.SIGN),this},toGet:function(){return("query"===this.service.api.protocol||"ec2"===this.service.api.protocol)&&(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(u){u.httpRequest.method="GET",u.httpRequest.path=u.service.endpoint.path+"?"+u.httpRequest.body,u.httpRequest.body="",delete u.httpRequest.headers["Content-Length"],delete u.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),t.Request.addPromisesToClass=function(u){this.prototype.promise=function(){var y=this;return this.httpRequest.appendToUserAgent("promise"),new u(function(m,R){y.on("complete",function(D){D.error?R(D.error):m(Object.defineProperty(D.data||{},"$response",{value:D}))}),y.runTo()})}},t.Request.deletePromisesFromClass=function(){delete this.prototype.promise},t.util.addPromises(t.Request),t.util.mixin(t.Request,t.SequentialExecutor)},42857:(ue,M,p)=>{var t=p(67047),w=t.util.inherit,d=p(57920);function r(n){var i=n.request._waiter,e=!1,a="retry";i.config.acceptors.forEach(function(u){if(!e){var h=i.matchers[u.matcher];h&&h(n,u.expected,u.argument)&&(e=!0,a=u.state)}}),!e&&n.error&&(a="failure"),"success"===a?i.setSuccess(n):i.setError(n,"retry"===a)}t.ResourceWaiter=w({constructor:function(i,s){this.service=i,this.state=s,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(n,i,s){try{var e=d.search(n.data,s)}catch{return!1}return d.strictDeepEqual(e,i)},pathAll:function(n,i,s){try{var e=d.search(n.data,s)}catch{return!1}Array.isArray(e)||(e=[e]);var a=e.length;if(!a)return!1;for(var u=0;u<a;u++)if(!d.strictDeepEqual(e[u],i))return!1;return!0},pathAny:function(n,i,s){try{var e=d.search(n.data,s)}catch{return!1}Array.isArray(e)||(e=[e]);for(var a=e.length,u=0;u<a;u++)if(d.strictDeepEqual(e[u],i))return!0;return!1},status:function(n,i){var s=n.httpResponse.statusCode;return"number"==typeof s&&s===i},error:function(n,i){return"string"==typeof i&&n.error?i===n.error.code:i===!!n.error}},listeners:(new t.SequentialExecutor).addNamedListeners(function(n){n("RETRY_CHECK","retry",function(i){i.error&&"ResourceNotReady"===i.error.code&&(i.error.retryDelay=1e3*(i.request._waiter.config.delay||0))}),n("CHECK_OUTPUT","extractData",r),n("CHECK_ERROR","extractError",r)}),wait:function(i,s){"function"==typeof i&&(s=i,i=void 0),i&&i.$waiter&&("number"==typeof(i=t.util.copy(i)).$waiter.delay&&(this.config.delay=i.$waiter.delay),"number"==typeof i.$waiter.maxAttempts&&(this.config.maxAttempts=i.$waiter.maxAttempts),delete i.$waiter);var e=this.service.makeRequest(this.config.operation,i);return e._waiter=this,e.response.maxRetries=this.config.maxAttempts,e.addListeners(this.listeners),s&&e.send(s),e},setSuccess:function(i){i.error=null,i.data=i.data||{},i.request.removeAllListeners("extractData")},setError:function(i,s){i.data=null,i.error=t.util.error(i.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:s})},loadWaiterConfig:function(i){if(!this.service.api.waiters[i])throw new t.util.error(new Error,{code:"StateNotFoundError",message:"State "+i+" not found."});this.config=t.util.copy(this.service.api.waiters[i])}})},70470:(ue,M,p)=>{var t=p(67047),w=t.util.inherit,d=p(57920);t.Response=w({constructor:function(n){this.request=n,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new t.HttpResponse,n&&(this.maxRetries=n.service.numRetries(),this.maxRedirects=n.service.config.maxRedirects)},nextPage:function(n){var i,s=this.request.service,e=this.request.operation;try{i=s.paginationConfig(e,!0)}catch(y){this.error=y}if(!this.hasNextPage()){if(n)n(this.error,null);else if(this.error)throw this.error;return null}var a=t.util.copy(this.request.params);if(this.nextPageTokens){var u=i.inputToken;"string"==typeof u&&(u=[u]);for(var h=0;h<u.length;h++)a[u[h]]=this.nextPageTokens[h];return s.makeRequest(this.request.operation,a,n)}return n?n(null,null):null},hasNextPage:function(){return this.cacheNextPageTokens(),!!this.nextPageTokens||void 0===this.nextPageTokens&&void 0},cacheNextPageTokens:function(){if(Object.prototype.hasOwnProperty.call(this,"nextPageTokens"))return this.nextPageTokens;this.nextPageTokens=void 0;var n=this.request.service.paginationConfig(this.request.operation);if(!n)return this.nextPageTokens;if(this.nextPageTokens=null,n.moreResults&&!d.search(this.data,n.moreResults))return this.nextPageTokens;var i=n.outputToken;return"string"==typeof i&&(i=[i]),t.util.arrayEach.call(this,i,function(s){var e=d.search(this.data,s);e&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(e))}),this.nextPageTokens}})},51076:(ue,M,p)=>{var t=p(67047);t.SequentialExecutor=t.util.inherit({constructor:function(){this._events={}},listeners:function(d){return this._events[d]?this._events[d].slice(0):[]},on:function(d,r,n){return this._events[d]?n?this._events[d].unshift(r):this._events[d].push(r):this._events[d]=[r],this},onAsync:function(d,r,n){return r._isAsync=!0,this.on(d,r,n)},removeListener:function(d,r){var n=this._events[d];if(n){for(var i=n.length,s=-1,e=0;e<i;++e)n[e]===r&&(s=e);s>-1&&n.splice(s,1)}return this},removeAllListeners:function(d){return d?delete this._events[d]:this._events={},this},emit:function(d,r,n){n||(n=function(){});var i=this.listeners(d),s=i.length;return this.callListeners(i,r,n),s>0},callListeners:function(d,r,n,i){var s=this,e=i||null;function a(h){if(h&&(e=t.util.error(e||new Error,h),s._haltHandlersOnError))return n.call(s,e);s.callListeners(d,r,n,e)}for(;d.length>0;){var u=d.shift();if(u._isAsync)return void u.apply(s,r.concat([a]));try{u.apply(s,r)}catch(h){e=t.util.error(e||new Error,h)}if(e&&s._haltHandlersOnError)return void n.call(s,e)}n.call(s,e)},addListeners:function(d){var r=this;return d._events&&(d=d._events),t.util.each(d,function(n,i){"function"==typeof i&&(i=[i]),t.util.arrayEach(i,function(s){r.on(n,s)})}),r},addNamedListener:function(d,r,n,i){return this[d]=n,this.addListener(r,n,i),this},addNamedAsyncListener:function(d,r,n,i){return n._isAsync=!0,this.addNamedListener(d,r,n,i)},addNamedListeners:function(d){var r=this;return d(function(){r.addNamedListener.apply(r,arguments)},function(){r.addNamedAsyncListener.apply(r,arguments)}),this}}),t.SequentialExecutor.prototype.addListener=t.SequentialExecutor.prototype.on,ue.exports=t.SequentialExecutor},71794:(ue,M,p)=>{var t=p(67047),w=p(50989),d=p(31160),r=t.util.inherit,n=0,i=p(81610);t.Service=r({constructor:function(e){if(!this.loadServiceClass)throw t.util.error(new Error,"Service must be constructed with `new' operator");if(e){if(e.region){var a=e.region;i.isFipsRegion(a)&&(e.region=i.getRealRegion(a),e.useFipsEndpoint=!0),i.isGlobalRegion(a)&&(e.region=i.getRealRegion(a))}"boolean"==typeof e.useDualstack&&"boolean"!=typeof e.useDualstackEndpoint&&(e.useDualstackEndpoint=e.useDualstack)}var u=this.loadServiceClass(e||{});if(u){var h=t.util.copy(e),y=new u(e);return Object.defineProperty(y,"_originalConfig",{get:function(){return h},enumerable:!1,configurable:!0}),y._clientId=++n,y}this.initialize(e)},initialize:function(e){var a=t.config[this.serviceIdentifier];if(this.config=new t.Config(t.config),a&&this.config.update(a,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||d.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),t.SequentialExecutor.call(this),t.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||t.Service._clientSideMonitoring)&&this.publisher){var u=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(y){process.nextTick(function(){u.eventHandler(y)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(y){process.nextTick(function(){u.eventHandler(y)})})}},validateService:function(){},loadServiceClass:function(e){var a=e;if(t.util.isEmpty(this.api)){if(a.apiConfig)return t.Service.defineServiceApi(this.constructor,a.apiConfig);if(this.constructor.services){(a=new t.Config(t.config)).update(e,!0);var u=a.apiVersions[this.constructor.serviceIdentifier];return this.getLatestServiceClass(u=u||a.apiVersion)}return null}return null},getLatestServiceClass:function(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&t.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},getLatestServiceVersion:function(e){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?t.util.isType(e,Date)&&(e=t.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var a=Object.keys(this.constructor.services).sort(),u=null,h=a.length-1;h>=0;h--)if("*"!==a[h][a[h].length-1]&&(u=a[h]),a[h].substr(0,10)<=e)return u;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function(e){if(e){if("function"!=typeof e)throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests");this.customRequestHandler=e}else this.customRequestHandler=null},makeRequest:function(e,a,u){if("function"==typeof a&&(u=a,a=null),a=a||{},this.config.params){var h=this.api.operations[e];h&&(a=t.util.copy(a),t.util.each(this.config.params,function(m,R){h.input.members[m]&&null==a[m]&&(a[m]=R)}))}var y=new t.Request(this,e,a);return this.addAllRequestListeners(y),this.attachMonitoringEmitter(y),u&&y.send(u),y},makeUnauthenticatedRequest:function(e,a,u){"function"==typeof a&&(u=a,a={});var h=this.makeRequest(e,a).toUnauthenticated();return u?h.send(u):h},waitFor:function(e,a,u){return new t.ResourceWaiter(this,e).wait(a,u)},addAllRequestListeners:function(e){for(var a=[t.events,t.EventListeners.Core,this.serviceInterface(),t.EventListeners.CorePost],u=0;u<a.length;u++)a[u]&&e.addListeners(a[u]);this.config.paramValidation||e.removeListener("validate",t.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&e.addListeners(t.EventListeners.Logger),this.setupRequestListeners(e),"function"==typeof this.constructor.prototype.customRequestHandler&&this.constructor.prototype.customRequestHandler(e),Object.prototype.hasOwnProperty.call(this,"customRequestHandler")&&"function"==typeof this.customRequestHandler&&this.customRequestHandler(e)},apiCallEvent:function(e){var a=e.service.api.operations[e.operation],u={Type:"ApiCall",Api:a?a.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Region:e.httpRequest.region,MaxRetriesExceeded:0,UserAgent:e.httpRequest.getUserAgent()},h=e.response;if(h.httpResponse.statusCode&&(u.FinalHttpStatusCode=h.httpResponse.statusCode),h.error){var y=h.error;h.httpResponse.statusCode>299?(y.code&&(u.FinalAwsException=y.code),y.message&&(u.FinalAwsExceptionMessage=y.message)):((y.code||y.name)&&(u.FinalSdkException=y.code||y.name),y.message&&(u.FinalSdkExceptionMessage=y.message))}return u},apiAttemptEvent:function(e){var a=e.service.api.operations[e.operation],u={Type:"ApiCallAttempt",Api:a?a.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},h=e.response;return h.httpResponse.statusCode&&(u.HttpStatusCode=h.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(u.AccessKey=e.service.config.credentials.accessKeyId),h.httpResponse.headers&&(e.httpRequest.headers["x-amz-security-token"]&&(u.SessionToken=e.httpRequest.headers["x-amz-security-token"]),h.httpResponse.headers["x-amzn-requestid"]&&(u.XAmznRequestId=h.httpResponse.headers["x-amzn-requestid"]),h.httpResponse.headers["x-amz-request-id"]&&(u.XAmzRequestId=h.httpResponse.headers["x-amz-request-id"]),h.httpResponse.headers["x-amz-id-2"]&&(u.XAmzId2=h.httpResponse.headers["x-amz-id-2"])),u},attemptFailEvent:function(e){var a=this.apiAttemptEvent(e),u=e.response,h=u.error;return u.httpResponse.statusCode>299?(h.code&&(a.AwsException=h.code),h.message&&(a.AwsExceptionMessage=h.message)):((h.code||h.name)&&(a.SdkException=h.code||h.name),h.message&&(a.SdkExceptionMessage=h.message)),a},attachMonitoringEmitter:function(e){var a,u,h,y,R,D,m=0,I=this;e.on("validate",function(){y=t.util.realClock.now(),D=Date.now()},!0),e.on("sign",function(){u=t.util.realClock.now(),a=Date.now(),R=e.httpRequest.region,m++},!0),e.on("validateResponse",function(){h=Math.round(t.util.realClock.now()-u)}),e.addNamedListener("API_CALL_ATTEMPT","success",function(){var j=I.apiAttemptEvent(e);j.Timestamp=a,j.AttemptLatency=h>=0?h:0,j.Region=R,I.emit("apiCallAttempt",[j])}),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var j=I.attemptFailEvent(e);j.Timestamp=a,h=h||Math.round(t.util.realClock.now()-u),j.AttemptLatency=h>=0?h:0,j.Region=R,I.emit("apiCallAttempt",[j])}),e.addNamedListener("API_CALL","complete",function(){var j=I.apiCallEvent(e);if(j.AttemptCount=m,!(j.AttemptCount<=0)){j.Timestamp=D;var V=Math.round(t.util.realClock.now()-y);j.Latency=V>=0?V:0;var q=e.response;q.error&&q.error.retryable&&"number"==typeof q.retryCount&&"number"==typeof q.maxRetries&&q.retryCount>=q.maxRetries&&(j.MaxRetriesExceeded=1),I.emit("apiCall",[j])}})},setupRequestListeners:function(e){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(e){var u=null,h="";return e&&(h=(u=(e.service.api.operations||{})[e.operation]||null)?u.authtype:""),t.Signers.RequestSigner.getVersion(this.config.signatureVersion?this.config.signatureVersion:"v4"===h||"v4-unsigned-body"===h?"v4":this.api.signatureVersion)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return t.EventListeners.Query;case"json":return t.EventListeners.Json;case"rest-json":return t.EventListeners.RestJson;case"rest-xml":return t.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(e){return e.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(e,a){return t.util.calculateRetryDelay(e,this.config.retryDelayOptions,a)},retryableError:function(e){return!!(this.timeoutError(e)||this.networkingError(e)||this.expiredCredentialsError(e)||this.throttledError(e)||e.statusCode>=500)},networkingError:function(e){return"NetworkingError"===e.code},timeoutError:function(e){return"TimeoutError"===e.code},expiredCredentialsError:function(e){return"ExpiredTokenException"===e.code},clockSkewError:function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},getSkewCorrectedDate:function(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function(e){e&&(this.config.systemClockOffset=e-Date.now())},isClockSkewed:function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5},throttledError:function(e){if(429===e.statusCode)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return!0;default:return!1}},endpointFromTemplate:function(e){if("string"!=typeof e)return e;var a=e;return(a=(a=a.replace(/\{service\}/g,this.api.endpointPrefix)).replace(/\{region\}/g,this.config.region)).replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(e){this.endpoint=new t.Endpoint(e,this.config)},paginationConfig:function(e,a){var u=this.api.operations[e].paginator;if(!u){if(a){var h=new Error;throw t.util.error(h,"No pagination configuration for "+e)}return null}return u}}),t.util.update(t.Service,{defineMethods:function(e){t.util.each(e.prototype.api.operations,function(u){e.prototype[u]||(e.prototype[u]="none"===e.prototype.api.operations[u].authtype?function(y,m){return this.makeUnauthenticatedRequest(u,y,m)}:function(y,m){return this.makeRequest(u,y,m)})})},defineService:function(e,a,u){t.Service._serviceMap[e]=!0,Array.isArray(a)||(u=a,a=[]);var h=r(t.Service,u||{});if("string"==typeof e?(t.Service.addVersions(h,a),h.serviceIdentifier=h.serviceIdentifier||e):(h.prototype.api=e,t.Service.defineMethods(h)),t.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&t.util.clientSideMonitoring){var m=t.util.clientSideMonitoring.Publisher,D=(0,t.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new m(D),D.enabled&&(t.Service._clientSideMonitoring=!0)}return t.SequentialExecutor.call(h.prototype),t.Service.addDefaultMonitoringListeners(h.prototype),h},addVersions:function(e,a){Array.isArray(a)||(a=[a]),e.services=e.services||{};for(var u=0;u<a.length;u++)void 0===e.services[a[u]]&&(e.services[a[u]]=null);e.apiVersions=Object.keys(e.services).sort()},defineServiceApi:function(e,a,u){var h=r(e,{serviceIdentifier:e.serviceIdentifier});function y(m){h.prototype.api=m.isApi?m:new w(m,{serviceIdentifier:e.serviceIdentifier})}if("string"==typeof a){if(u)y(u);else try{y(t.apiLoader(e.serviceIdentifier,a))}catch(m){throw t.util.error(m,{message:"Could not find API configuration "+e.serviceIdentifier+"-"+a})}Object.prototype.hasOwnProperty.call(e.services,a)||(e.apiVersions=e.apiVersions.concat(a).sort()),e.services[a]=h}else y(a);return t.Service.defineMethods(h),h},hasService:function(s){return Object.prototype.hasOwnProperty.call(t.Service._serviceMap,s)},addDefaultMonitoringListeners:function(e){e.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",function(u){var h=Object.getPrototypeOf(e);h._events&&h.emit("apiCallAttempt",[u])}),e.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",function(u){var h=Object.getPrototypeOf(e);h._events&&h.emit("apiCall",[u])})},_serviceMap:{}}),t.util.mixin(t.Service,t.SequentialExecutor),ue.exports=t.Service},28018:(ue,M,p)=>{var t=p(67047),w=p(89953);t.util.update(t.STS.prototype,{credentialsFrom:function(i,s){return i?(s||(s=new t.TemporaryCredentials),s.expired=!1,s.accessKeyId=i.Credentials.AccessKeyId,s.secretAccessKey=i.Credentials.SecretAccessKey,s.sessionToken=i.Credentials.SessionToken,s.expireTime=i.Credentials.Expiration,s):null},assumeRoleWithWebIdentity:function(i,s){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",i,s)},assumeRoleWithSAML:function(i,s){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",i,s)},setupRequestListeners:function(i){i.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(i){var s=i.service,e=s.config;if(e.stsRegionalEndpoints=w(s._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===e.stsRegionalEndpoints&&s.isGlobalEndpoint){if(!e.region)throw t.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var a=e.endpoint.indexOf(".amazonaws.com"),u=e.endpoint.substring(0,a)+"."+e.region+e.endpoint.substring(a);i.httpRequest.updateEndpoint(u),i.httpRequest.region=e.region}}})},61883:(ue,M,p)=>{var t=p(67047),d="presigned-expires";function r(i){var s=i.httpRequest.headers[d],e=i.service.getSignerClass(i);if(delete i.httpRequest.headers["User-Agent"],delete i.httpRequest.headers["X-Amz-User-Agent"],e===t.Signers.V4){if(s>604800)throw t.util.error(new Error,{code:"InvalidExpiryTime",message:"Presigning does not support expiry time greater than a week with SigV4 signing.",retryable:!1});i.httpRequest.headers[d]=s}else{if(e!==t.Signers.S3)throw t.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var u=i.service?i.service.getSkewCorrectedDate():t.util.date.getDate();i.httpRequest.headers[d]=parseInt(t.util.date.unixTimestamp(u)+s,10).toString()}}function n(i){var s=i.httpRequest.endpoint,e=t.util.urlParse(i.httpRequest.path),a={};e.search&&(a=t.util.queryStringParse(e.search.substr(1)));var u=i.httpRequest.headers.Authorization.split(" ");if("AWS"===u[0])u=u[1].split(":"),a.Signature=u.pop(),a.AWSAccessKeyId=u.join(":"),t.util.each(i.httpRequest.headers,function(m,R){m===d&&(m="Expires"),0===m.indexOf("x-amz-meta-")&&(delete a[m],m=m.toLowerCase()),a[m]=R}),delete i.httpRequest.headers[d],delete a.Authorization,delete a.Host;else if("AWS4-HMAC-SHA256"===u[0]){u.shift();var y=u.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];a["X-Amz-Signature"]=y,delete a.Expires}s.pathname=e.pathname,s.search=t.util.queryParamsToString(a)}t.Signers.Presign=(0,t.util.inherit)({sign:function(s,e,a){if(s.httpRequest.headers[d]=e||3600,s.on("build",r),s.on("sign",n),s.removeListener("afterBuild",t.EventListeners.Core.SET_CONTENT_LENGTH),s.removeListener("afterBuild",t.EventListeners.Core.COMPUTE_SHA256),s.emit("beforePresign",[s]),!a){if(s.build(),s.response.error)throw s.response.error;return t.util.urlFormat(s.httpRequest.endpoint)}s.build(function(){this.response.error?a(this.response.error):a(null,t.util.urlFormat(s.httpRequest.endpoint))})}}),ue.exports=t.Signers.Presign},37950:(ue,M,p)=>{var t=p(67047);t.Signers.RequestSigner=(0,t.util.inherit)({constructor:function(r){this.request=r},setServiceClientId:function(r){this.serviceClientId=r},getServiceClientId:function(){return this.serviceClientId}}),t.Signers.RequestSigner.getVersion=function(r){switch(r){case"v2":return t.Signers.V2;case"v3":return t.Signers.V3;case"s3v4":case"v4":return t.Signers.V4;case"s3":return t.Signers.S3;case"v3https":return t.Signers.V3Https}throw new Error("Unknown signing version "+r)},p(44748),p(90165),p(51509),p(37220),p(75672),p(61883)},75672:(ue,M,p)=>{var t=p(67047);t.Signers.S3=(0,t.util.inherit)(t.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function(r,n){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=t.util.date.rfc822(n)),r.sessionToken&&(this.request.headers["x-amz-security-token"]=r.sessionToken);var i=this.sign(r.secretAccessKey,this.stringToSign());this.request.headers.Authorization="AWS "+r.accessKeyId+":"+i},stringToSign:function(){var r=this.request,n=[];n.push(r.method),n.push(r.headers["Content-MD5"]||""),n.push(r.headers["Content-Type"]||""),n.push(r.headers["presigned-expires"]||"");var i=this.canonicalizedAmzHeaders();return i&&n.push(i),n.push(this.canonicalizedResource()),n.join("\n")},canonicalizedAmzHeaders:function(){var r=[];t.util.each(this.request.headers,function(i){i.match(/^x-amz-/i)&&r.push(i)}),r.sort(function(i,s){return i.toLowerCase()<s.toLowerCase()?-1:1});var n=[];return t.util.arrayEach.call(this,r,function(i){n.push(i.toLowerCase()+":"+String(this.request.headers[i]))}),n.join("\n")},canonicalizedResource:function(){var r=this.request,n=r.path.split("?"),s=n[1],e="";if(r.virtualHostedBucket&&(e+="/"+r.virtualHostedBucket),e+=n[0],s){var a=[];t.util.arrayEach.call(this,s.split("&"),function(u){var h=u.split("=")[0],y=u.split("=")[1];if(this.subResources[h]||this.responseHeaders[h]){var m={name:h};void 0!==y&&(m.value=this.subResources[h]?y:decodeURIComponent(y)),a.push(m)}}),a.sort(function(u,h){return u.name<h.name?-1:1}),a.length&&(s=[],t.util.arrayEach(a,function(u){s.push(void 0===u.value?u.name:u.name+"="+u.value)}),e+="?"+s.join("&"))}return e},sign:function(r,n){return t.util.crypto.hmac(r,n,"base64","sha1")}}),ue.exports=t.Signers.S3},44748:(ue,M,p)=>{var t=p(67047);t.Signers.V2=(0,t.util.inherit)(t.Signers.RequestSigner,{addAuthorization:function(r,n){n||(n=t.util.date.getDate());var i=this.request;i.params.Timestamp=t.util.date.iso8601(n),i.params.SignatureVersion="2",i.params.SignatureMethod="HmacSHA256",i.params.AWSAccessKeyId=r.accessKeyId,r.sessionToken&&(i.params.SecurityToken=r.sessionToken),delete i.params.Signature,i.params.Signature=this.signature(r),i.body=t.util.queryParamsToString(i.params),i.headers["Content-Length"]=i.body.length},signature:function(r){return t.util.crypto.hmac(r.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var r=[];return r.push(this.request.method),r.push(this.request.endpoint.host.toLowerCase()),r.push(this.request.pathname()),r.push(t.util.queryParamsToString(this.request.params)),r.join("\n")}}),ue.exports=t.Signers.V2},90165:(ue,M,p)=>{var t=p(67047);t.Signers.V3=(0,t.util.inherit)(t.Signers.RequestSigner,{addAuthorization:function(r,n){var i=t.util.date.rfc822(n);this.request.headers["X-Amz-Date"]=i,r.sessionToken&&(this.request.headers["x-amz-security-token"]=r.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(r,i)},authorization:function(r){return"AWS3 AWSAccessKeyId="+r.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(r)},signedHeaders:function(){var r=[];return t.util.arrayEach(this.headersToSign(),function(i){r.push(i.toLowerCase())}),r.sort().join(";")},canonicalHeaders:function(){var r=this.request.headers,n=[];return t.util.arrayEach(this.headersToSign(),function(s){n.push(s.toLowerCase().trim()+":"+String(r[s]).trim())}),n.sort().join("\n")+"\n"},headersToSign:function(){var r=[];return t.util.each(this.request.headers,function(i){("Host"===i||"Content-Encoding"===i||i.match(/^X-Amz/i))&&r.push(i)}),r},signature:function(r){return t.util.crypto.hmac(r.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var r=[];return r.push(this.request.method),r.push("/"),r.push(""),r.push(this.canonicalHeaders()),r.push(this.request.body),t.util.crypto.sha256(r.join("\n"))}}),ue.exports=t.Signers.V3},51509:(ue,M,p)=>{var t=p(67047),w=t.util.inherit;p(90165),t.Signers.V3Https=w(t.Signers.V3,{authorization:function(r){return"AWS3-HTTPS AWSAccessKeyId="+r.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(r)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),ue.exports=t.Signers.V3Https},37220:(ue,M,p)=>{var t=p(67047),w=p(14411),r="presigned-expires";t.Signers.V4=(0,t.util.inherit)(t.Signers.RequestSigner,{constructor:function(i,s,e){t.Signers.RequestSigner.call(this,i),this.serviceName=s,this.signatureCache="boolean"!=typeof(e=e||{}).signatureCache||e.signatureCache,this.operation=e.operation,this.signatureVersion=e.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(i,s){var e=t.util.date.iso8601(s).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(i,e):this.addHeaders(i,e),this.request.headers.Authorization=this.authorization(i,e)},addHeaders:function(i,s){this.request.headers["X-Amz-Date"]=s,i.sessionToken&&(this.request.headers["x-amz-security-token"]=i.sessionToken)},updateForPresigned:function(i,s){var e=this.credentialString(s),a={"X-Amz-Date":s,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":i.accessKeyId+"/"+e,"X-Amz-Expires":this.request.headers[r],"X-Amz-SignedHeaders":this.signedHeaders()};i.sessionToken&&(a["X-Amz-Security-Token"]=i.sessionToken),this.request.headers["Content-Type"]&&(a["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(a["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(a["Cache-Control"]=this.request.headers["Cache-Control"]),t.util.each.call(this,this.request.headers,function(h,y){if(h!==r&&this.isSignableHeader(h)){var m=h.toLowerCase();0===m.indexOf("x-amz-meta-")?a[m]=y:0===m.indexOf("x-amz-")&&(a[h]=y)}});var u=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=u+t.util.queryParamsToString(a)},authorization:function(i,s){var e=[],a=this.credentialString(s);return e.push(this.algorithm+" Credential="+i.accessKeyId+"/"+a),e.push("SignedHeaders="+this.signedHeaders()),e.push("Signature="+this.signature(i,s)),e.join(", ")},signature:function(i,s){var e=w.getSigningKey(i,s.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return t.util.crypto.hmac(e,this.stringToSign(s),"hex")},stringToSign:function(i){var s=[];return s.push("AWS4-HMAC-SHA256"),s.push(i),s.push(this.credentialString(i)),s.push(this.hexEncodedHash(this.canonicalString())),s.join("\n")},canonicalString:function(){var i=[],s=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(s=t.util.uriEscapePath(s)),i.push(this.request.method),i.push(s),i.push(this.request.search()),i.push(this.canonicalHeaders()+"\n"),i.push(this.signedHeaders()),i.push(this.hexEncodedBodyHash()),i.join("\n")},canonicalHeaders:function(){var i=[];t.util.each.call(this,this.request.headers,function(e,a){i.push([e,a])}),i.sort(function(e,a){return e[0].toLowerCase()<a[0].toLowerCase()?-1:1});var s=[];return t.util.arrayEach.call(this,i,function(e){var a=e[0].toLowerCase();if(this.isSignableHeader(a)){var u=e[1];if(typeof u>"u"||null===u||"function"!=typeof u.toString)throw t.util.error(new Error("Header "+a+" contains invalid value"),{code:"InvalidHeader"});s.push(a+":"+this.canonicalHeaderValues(u.toString()))}}),s.join("\n")},canonicalHeaderValues:function(i){return i.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},signedHeaders:function(){var i=[];return t.util.each.call(this,this.request.headers,function(s){s=s.toLowerCase(),this.isSignableHeader(s)&&i.push(s)}),i.sort().join(";")},credentialString:function(i){return w.createScope(i.substr(0,8),this.request.region,this.serviceName)},hexEncodedHash:function(i){return t.util.crypto.sha256(i,"hex")},hexEncodedBodyHash:function(){var i=this.request;return this.isPresigned()&&["s3","s3-object-lambda"].indexOf(this.serviceName)>-1&&!i.body?"UNSIGNED-PAYLOAD":i.headers["X-Amz-Content-Sha256"]?i.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent",r,"expect","x-amzn-trace-id"],isSignableHeader:function(i){return 0===i.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(i)<0},isPresigned:function(){return!!this.request.headers[r]}}),ue.exports=t.Signers.V4},14411:(ue,M,p)=>{var t=p(67047),w={},d=[],n="aws4_request";ue.exports={createScope:function(s,e,a){return[s.substr(0,8),e,a,n].join("/")},getSigningKey:function(s,e,a,u,h){var m=[t.util.crypto.hmac(s.secretAccessKey,s.accessKeyId,"base64"),e,a,u].join("_");if((h=!1!==h)&&m in w)return w[m];var R=t.util.crypto.hmac("AWS4"+s.secretAccessKey,e,"buffer"),D=t.util.crypto.hmac(R,a,"buffer"),I=t.util.crypto.hmac(D,u,"buffer"),C=t.util.crypto.hmac(I,n,"buffer");return h&&(w[m]=C,d.push(m),d.length>50&&delete w[d.shift()]),C},emptyCache:function(){w={},d=[]}}},97759:ue=>{function M(p,t){this.currentState=t||null,this.states=p||{}}M.prototype.runTo=function(t,w,d,r){"function"==typeof t&&(r=d,d=w,w=t,t=null);var n=this,i=n.states[n.currentState];i.fn.call(d||n,r,function(s){if(s){if(!i.fail)return w?w.call(d,s):null;n.currentState=i.fail}else{if(!i.accept)return w?w.call(d):null;n.currentState=i.accept}if(n.currentState===t)return w?w.call(d,s):null;n.runTo(t,w,d,s)})},M.prototype.addState=function(t,w,d,r){return"function"==typeof w?(r=w,w=null,d=null):"function"==typeof d&&(r=d,d=null),this.currentState||(this.currentState=t),this.states[t]={accept:w,fail:d,fn:r},this},ue.exports=M},97340:(ue,M,p)=>{var t,w={environment:"nodejs",engine:function(){if(w.isBrowser()&&typeof navigator<"u")return navigator.userAgent;var r=process.platform+"/"+process.version;return process.env.AWS_EXECUTION_ENV&&(r+=" exec-env/"+process.env.AWS_EXECUTION_ENV),r},userAgent:function(){var r=w.environment,n="aws-sdk-"+r+"/"+p(67047).VERSION;return"nodejs"===r&&(n+=" "+w.engine()),n},uriEscape:function(r){var n=encodeURIComponent(r);return(n=n.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,function(i){return"%"+i.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(r){var n=[];return w.arrayEach(r.split("/"),function(i){n.push(w.uriEscape(i))}),n.join("/")},urlParse:function(r){return w.url.parse(r)},urlFormat:function(r){return w.url.format(r)},queryStringParse:function(r){return w.querystring.parse(r)},queryParamsToString:function(r){var n=[],i=w.uriEscape,s=Object.keys(r).sort();return w.arrayEach(s,function(e){var a=r[e],u=i(e),h=u+"=";if(Array.isArray(a)){var y=[];w.arrayEach(a,function(m){y.push(i(m))}),h=u+"="+y.sort().join("&"+u+"=")}else null!=a&&(h=u+"="+i(a));n.push(h)}),n.join("&")},readFileSync:function(r){return w.isBrowser()?null:p(47310).readFileSync(r,"utf-8")},base64:{encode:function(r){if("number"==typeof r)throw w.error(new Error("Cannot base64 encode number "+r));return null===r||typeof r>"u"?r:w.buffer.toBuffer(r).toString("base64")},decode:function(r){if("number"==typeof r)throw w.error(new Error("Cannot base64 decode number "+r));return null===r||typeof r>"u"?r:w.buffer.toBuffer(r,"base64")}},buffer:{toBuffer:function(d,r){return"function"==typeof w.Buffer.from&&w.Buffer.from!==Uint8Array.from?w.Buffer.from(d,r):new w.Buffer(d,r)},alloc:function(d,r,n){if("number"!=typeof d)throw new Error("size passed to alloc must be a number.");if("function"==typeof w.Buffer.alloc)return w.Buffer.alloc(d,r,n);var i=new w.Buffer(d);return void 0!==r&&"function"==typeof i.fill&&i.fill(r,void 0,void 0,n),i},toStream:function(r){w.Buffer.isBuffer(r)||(r=w.buffer.toBuffer(r));var n=new w.stream.Readable,i=0;return n._read=function(s){if(i>=r.length)return n.push(null);var e=i+s;e>r.length&&(e=r.length),n.push(r.slice(i,e)),i=e},n},concat:function(d){var i,s,r=0,n=0;for(s=0;s<d.length;s++)r+=d[s].length;for(i=w.buffer.alloc(r),s=0;s<d.length;s++)d[s].copy(i,n),n+=d[s].length;return i}},string:{byteLength:function(r){if(null==r)return 0;if("string"==typeof r&&(r=w.buffer.toBuffer(r)),"number"==typeof r.byteLength)return r.byteLength;if("number"==typeof r.length)return r.length;if("number"==typeof r.size)return r.size;if("string"==typeof r.path)return p(47310).lstatSync(r.path).size;throw w.error(new Error("Cannot determine length of "+r),{object:r})},upperFirst:function(r){return r[0].toUpperCase()+r.substr(1)},lowerFirst:function(r){return r[0].toLowerCase()+r.substr(1)}},ini:{parse:function(r){var n,i={};return w.arrayEach(r.split(/\r?\n/),function(s){if("["===(s=s.split(/(^|\s)[;#]/)[0].trim())[0]&&"]"===s[s.length-1]){if("__proto__"===(n=s.substring(1,s.length-1))||"__proto__"===n.split(/\s/)[1])throw w.error(new Error("Cannot load profile name '"+n+"' from shared ini file."))}else if(n){var a=s.indexOf("=");if(-1!==a&&0!==a&&a!==s.length-1){var m=s.substring(0,a).trim(),R=s.substring(a+1).trim();i[n]=i[n]||{},i[n][m]=R}}}),i}},fn:{noop:function(){},callback:function(d){if(d)throw d},makeAsync:function(r,n){return n&&n<=r.length?r:function(){var i=Array.prototype.slice.call(arguments,0),s=i.pop(),e=r.apply(null,i);s(e)}}},date:{getDate:function(){return t||(t=p(67047)),t.config.systemClockOffset?new Date((new Date).getTime()+t.config.systemClockOffset):new Date},iso8601:function(r){return void 0===r&&(r=w.date.getDate()),r.toISOString().replace(/\.\d{3}Z$/,"Z")},rfc822:function(r){return void 0===r&&(r=w.date.getDate()),r.toUTCString()},unixTimestamp:function(r){return void 0===r&&(r=w.date.getDate()),r.getTime()/1e3},from:function(r){return"number"==typeof r?new Date(1e3*r):new Date(r)},format:function(r,n){return n||(n="iso8601"),w.date[n](w.date.from(r))},parseTimestamp:function(r){if("number"==typeof r)return new Date(1e3*r);if(r.match(/^\d+$/))return new Date(1e3*r);if(r.match(/^\d{4}/))return new Date(r);if(r.match(/^\w{3},/))return new Date(r);throw w.error(new Error("unhandled timestamp format: "+r),{code:"TimestampParserError"})}},crypto:{crc32Table:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],crc32:function(r){var n=w.crypto.crc32Table,i=-1;"string"==typeof r&&(r=w.buffer.toBuffer(r));for(var s=0;s<r.length;s++)i=i>>>8^n[255&(i^r.readUInt8(s))];return(-1^i)>>>0},hmac:function(r,n,i,s){return i||(i="binary"),"buffer"===i&&(i=void 0),s||(s="sha256"),"string"==typeof n&&(n=w.buffer.toBuffer(n)),w.crypto.lib.createHmac(s,r).update(n).digest(i)},md5:function(r,n,i){return w.crypto.hash("md5",r,n,i)},sha256:function(r,n,i){return w.crypto.hash("sha256",r,n,i)},hash:function(d,r,n,i){var s=w.crypto.createHash(d);n||(n="binary"),"buffer"===n&&(n=void 0),"string"==typeof r&&(r=w.buffer.toBuffer(r));var e=w.arraySliceFn(r),a=w.Buffer.isBuffer(r);if(w.isBrowser()&&typeof ArrayBuffer<"u"&&r&&r.buffer instanceof ArrayBuffer&&(a=!0),i&&"object"==typeof r&&"function"==typeof r.on&&!a)r.on("data",function(R){s.update(R)}),r.on("error",function(R){i(R)}),r.on("end",function(){i(null,s.digest(n))});else{if(!(i&&e&&!a&&typeof FileReader<"u")){w.isBrowser()&&"object"==typeof r&&!a&&(r=new w.Buffer(new Uint8Array(r)));var m=s.update(r).digest(n);return i&&i(null,m),m}var u=0,y=new FileReader;y.onerror=function(){i(new Error("Failed to read data."))},y.onload=function(){var R=new w.Buffer(new Uint8Array(y.result));s.update(R),u+=R.length,y._continueReading()},y._continueReading=function(){if(u>=r.size)i(null,s.digest(n));else{var R=u+524288;R>r.size&&(R=r.size),y.readAsArrayBuffer(e.call(r,u,R))}},y._continueReading()}},toHex:function(r){for(var n=[],i=0;i<r.length;i++)n.push(("0"+r.charCodeAt(i).toString(16)).substr(-2,2));return n.join("")},createHash:function(r){return w.crypto.lib.createHash(r)}},abort:{},each:function(r,n){for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&n.call(this,i,r[i])===w.abort)break},arrayEach:function(r,n){for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&n.call(this,r[i],parseInt(i,10))===w.abort)break},update:function(r,n){return w.each(n,function(s,e){r[s]=e}),r},merge:function(r,n){return w.update(w.copy(r),n)},copy:function(r){if(null==r)return r;var n={};for(var i in r)n[i]=r[i];return n},isEmpty:function(r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))return!1;return!0},arraySliceFn:function(r){var n=r.slice||r.webkitSlice||r.mozSlice;return"function"==typeof n?n:null},isType:function(r,n){return"function"==typeof n&&(n=w.typeName(n)),Object.prototype.toString.call(r)==="[object "+n+"]"},typeName:function(r){if(Object.prototype.hasOwnProperty.call(r,"name"))return r.name;var n=r.toString(),i=n.match(/^\s*function (.+)\(/);return i?i[1]:n},error:function(r,n){var i=null;return"string"==typeof r.message&&""!==r.message&&("string"==typeof n||n&&n.message)&&((i=w.copy(r)).message=r.message),r.message=r.message||null,"string"==typeof n?r.message=n:"object"==typeof n&&null!==n&&(w.update(r,n),n.message&&(r.message=n.message),(n.code||n.name)&&(r.code=n.code||n.name),n.stack&&(r.stack=n.stack)),"function"==typeof Object.defineProperty&&(Object.defineProperty(r,"name",{writable:!0,enumerable:!1}),Object.defineProperty(r,"message",{enumerable:!0})),r.name=String(n&&n.name||r.name||r.code||"Error"),r.time=new Date,i&&(r.originalError=i),r},inherit:function(r,n){var i=null;if(void 0===n)n=r,r=Object,i={};else{var s=function(){};s.prototype=r.prototype,i=new s}return n.constructor===Object&&(n.constructor=function(){if(r!==Object)return r.apply(this,arguments)}),n.constructor.prototype=i,w.update(n.constructor.prototype,n),n.constructor.__super__=r,n.constructor},mixin:function(){for(var r=arguments[0],n=1;n<arguments.length;n++)for(var i in arguments[n].prototype){var s=arguments[n].prototype[i];"constructor"!==i&&(r.prototype[i]=s)}return r},hideProperties:function(r,n){"function"==typeof Object.defineProperty&&w.arrayEach(n,function(i){Object.defineProperty(r,i,{enumerable:!1,writable:!0,configurable:!0})})},property:function(r,n,i,s,e){var a={configurable:!0,enumerable:void 0===s||s};"function"!=typeof i||e?(a.value=i,a.writable=!0):a.get=i,Object.defineProperty(r,n,a)},memoizedProperty:function(r,n,i,s){var e=null;w.property(r,n,function(){return null===e&&(e=i()),e},s)},hoistPayloadMember:function(r){var n=r.request,s=n.service.api.operations[n.operation],e=s.output;e.payload&&!s.hasEventOutput&&"structure"===e.members[e.payload].type&&w.each(r.data[e.payload],function(h,y){w.property(r.data,h,y,!1)})},computeSha256:function(r,n){if(w.isNode()){var i=w.stream.Stream,s=p(47310);if("function"==typeof i&&r instanceof i){if("string"!=typeof r.path)return n(new Error("Non-file stream objects are not supported with SigV4"));var e={};"number"==typeof r.start&&(e.start=r.start),"number"==typeof r.end&&(e.end=r.end),r=s.createReadStream(r.path,e)}}w.crypto.sha256(r,"hex",function(a,u){a?n(a):n(null,u)})},isClockSkewed:function(r){if(r)return w.property(t.config,"isClockSkewed",Math.abs((new Date).getTime()-r)>=3e5,!1),t.config.isClockSkewed},applyClockOffset:function(r){r&&(t.config.systemClockOffset=r-(new Date).getTime())},extractRequestId:function(r){var n=r.httpResponse.headers["x-amz-request-id"]||r.httpResponse.headers["x-amzn-requestid"];!n&&r.data&&r.data.ResponseMetadata&&(n=r.data.ResponseMetadata.RequestId),n&&(r.requestId=n),r.error&&(r.error.requestId=n)},addPromises:function(r,n){var i=!1;void 0===n&&t&&t.config&&(n=t.config.getPromisesDependency()),void 0===n&&typeof Promise<"u"&&(n=Promise),"function"!=typeof n&&(i=!0),Array.isArray(r)||(r=[r]);for(var s=0;s<r.length;s++){var e=r[s];i?e.deletePromisesFromClass&&e.deletePromisesFromClass():e.addPromisesToClass&&e.addPromisesToClass(n)}},promisifyMethod:function(r,n){return function(){var s=this,e=Array.prototype.slice.call(arguments);return new n(function(a,u){e.push(function(h,y){h?u(h):a(y)}),s[r].apply(s,e)})}},isDualstackAvailable:function(r){if(!r)return!1;var n=p(6839);return"string"!=typeof r&&(r=r.serviceIdentifier),!("string"!=typeof r||!n.hasOwnProperty(r)||!n[r].dualstackAvailable)},calculateRetryDelay:function(r,n,i){n||(n={});var s=n.customBackoff||null;if("function"==typeof s)return s(r,i);var e="number"==typeof n.base?n.base:100;return Math.random()*(Math.pow(2,r)*e)},handleRequestWithRetries:function(r,n,i){n||(n={});var s=t.HttpClient.getInstance(),e=n.httpOptions||{},a=0,u=function(y){var m=n.maxRetries||0;if(y&&"TimeoutError"===y.code&&(y.retryable=!0),y&&y.retryable&&a<m){var R=w.calculateRetryDelay(a,n.retryDelayOptions,y);if(R>=0)return a++,void setTimeout(h,R+(y.retryAfter||0))}i(y)},h=function(){var y="";s.handleRequest(r,e,function(m){m.on("data",function(R){y+=R.toString()}),m.on("end",function(){var R=m.statusCode;if(R<300)i(null,y);else{var D=1e3*parseInt(m.headers["retry-after"],10)||0,I=w.error(new Error,{statusCode:R,retryable:R>=500||429===R});D&&I.retryable&&(I.retryAfter=D),u(I)}})},u)};t.util.defer(h)},uuid:{v4:function(){return p(33239).v4()}},convertPayloadToString:function(r){var n=r.request,s=n.service.api.operations[n.operation].output||{};s.payload&&r.data[s.payload]&&(r.data[s.payload]=r.data[s.payload].toString())},defer:function(r){"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick(r):"function"==typeof setImmediate?setImmediate(r):setTimeout(r,0)},getRequestPayloadShape:function(r){var n=r.service.api.operations;if(n){var i=(n||{})[r.operation];if(i&&i.input&&i.input.payload)return i.input.members[i.input.payload]}},getProfilesFromSharedConfig:function(r,n){var i={},s={};process.env[w.configOptInEnv]&&(s=r.loadFrom({isConfig:!0,filename:process.env[w.sharedConfigFileEnv]}));var e={};try{e=r.loadFrom({filename:n||process.env[w.configOptInEnv]&&process.env[w.sharedCredentialsFileEnv]})}catch(y){if(!process.env[w.configOptInEnv])throw y}for(var a=0,u=Object.keys(s);a<u.length;a++)i[u[a]]=h(i[u[a]]||{},s[u[a]]);for(a=0,u=Object.keys(e);a<u.length;a++)i[u[a]]=h(i[u[a]]||{},e[u[a]]);return i;function h(y,m){for(var R=0,D=Object.keys(m);R<D.length;R++)y[D[R]]=m[D[R]];return y}},ARN:{validate:function(r){return r&&0===r.indexOf("arn:")&&r.split(":").length>=6},parse:function(r){var n=r.split(":");return{partition:n[1],service:n[2],region:n[3],accountId:n[4],resource:n.slice(5).join(":")}},build:function(r){if(void 0===r.service||void 0===r.region||void 0===r.accountId||void 0===r.resource)throw w.error(new Error("Input ARN object is invalid"));return"arn:"+(r.partition||"aws")+":"+r.service+":"+r.region+":"+r.accountId+":"+r.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};ue.exports=w},18771:(ue,M,p)=>{var t=p(97340),w=p(36925);function d(){}function r(h,y){for(var m=h.getElementsByTagName(y),R=0,D=m.length;R<D;R++)if(m[R].parentNode===h)return m[R]}function n(h,y){switch(y||(y={}),y.type){case"structure":return i(h,y);case"map":return function s(h,y){for(var m={},R=y.key.name||"key",D=y.value.name||"value",I=y.flattened?y.name:"entry",C=h.firstElementChild;C;){if(C.nodeName===I){var P=r(C,R).textContent,j=r(C,D);m[P]=n(j,y.value)}C=C.nextElementSibling}return m}(h,y);case"list":return function e(h,y){for(var m=[],R=y.flattened?y.name:y.member.name||"member",D=h.firstElementChild;D;)D.nodeName===R&&m.push(n(D,y.member)),D=D.nextElementSibling;return m}(h,y);case void 0:case null:return function u(h){if(null==h)return"";if(!h.firstElementChild)return null===h.parentNode.parentNode?{}:0===h.childNodes.length?"":h.textContent;for(var y={type:"structure",members:{}},m=h.firstElementChild;m;){var R=m.nodeName;Object.prototype.hasOwnProperty.call(y.members,R)?y.members[R].type="list":y.members[R]={name:R},m=m.nextElementSibling}return i(h,y)}(h);default:return function a(h,y){if(h.getAttribute){var m=h.getAttribute("encoding");"base64"===m&&(y=new w.create({type:m}))}var R=h.textContent;return""===R&&(R=null),"function"==typeof y.toType?y.toType(R):R}(h,y)}}function i(h,y){var m={};return null===h||t.each(y.members,function(R,D){if(D.isXmlAttribute)Object.prototype.hasOwnProperty.call(h.attributes,D.name)&&(m[R]=n({textContent:h.attributes[D.name].value},D));else{var C=D.flattened?h:r(h,D.name);C?m[R]=n(C,D):!D.flattened&&"list"===D.type&&!y.api.xmlNoDefaultLists&&(m[R]=D.defaultValue)}}),m}d.prototype.parse=function(h,y){if(""===h.replace(/^\s+/,""))return{};var m,R;try{if(window.DOMParser){try{m=(new DOMParser).parseFromString(h,"text/xml")}catch(V){throw t.error(new Error("Parse error in document"),{originalError:V,code:"XMLParserError",retryable:!0})}if(null===m.documentElement)throw t.error(new Error("Cannot parse empty document."),{code:"XMLParserError",retryable:!0});var I=m.getElementsByTagName("parsererror")[0];if(I&&(I.parentNode===m||"body"===I.parentNode.nodeName||I.parentNode.parentNode===m||"body"===I.parentNode.parentNode.nodeName)){var C=I.getElementsByTagName("div")[0]||I;throw t.error(new Error(C.textContent||"Parser error in document"),{code:"XMLParserError",retryable:!0})}}else{if(!window.ActiveXObject)throw new Error("Cannot load XML parser");if((m=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,!m.loadXML(h))throw t.error(new Error("Parse error in document"),{code:"XMLParserError",retryable:!0})}}catch(V){R=V}if(m&&m.documentElement&&!R){var P=n(m.documentElement,y),j=r(m.documentElement,"ResponseMetadata");return j&&(P.ResponseMetadata=n(j,{})),P}if(R)throw t.error(R||new Error,{code:"XMLParserError",retryable:!0});return{}},ue.exports=d},83457:(ue,M,p)=>{var t=p(97340),w=p(86147).XmlNode,d=p(88693).XmlText;function r(){}function n(h,y,m){switch(m.type){case"structure":return function i(h,y,m){t.arrayEach(m.memberNames,function(R){var D=m.members[R];if("body"===D.location){var I=y[R],C=D.name;if(null!=I)if(D.isXmlAttribute)h.addAttribute(C,I);else if(D.flattened)n(h,I,D);else{var P=new w(C);h.addChildNode(P),u(P,D),n(P,I,D)}}})}(h,y,m);case"map":return function s(h,y,m){var R=m.key.name||"key",D=m.value.name||"value";t.each(y,function(I,C){var P=new w(m.flattened?m.name:"entry");h.addChildNode(P);var j=new w(R),V=new w(D);P.addChildNode(j),P.addChildNode(V),n(j,I,m.key),n(V,C,m.value)})}(h,y,m);case"list":return function e(h,y,m){t.arrayEach(y,m.flattened?function(R){var I=new w(m.member.name||m.name);h.addChildNode(I),n(I,R,m.member)}:function(R){var I=new w(m.member.name||"member");h.addChildNode(I),n(I,R,m.member)})}(h,y,m);default:return function a(h,y,m){h.addChildNode(new d(m.toWireFormat(y)))}(h,y,m)}}function u(h,y,m){var R,D="xmlns";y.xmlNamespaceUri?(R=y.xmlNamespaceUri,y.xmlNamespacePrefix&&(D+=":"+y.xmlNamespacePrefix)):m&&y.api.xmlNamespaceUri&&(R=y.api.xmlNamespaceUri),R&&h.addAttribute(D,R)}r.prototype.toXML=function(h,y,m,R){var D=new w(m);return u(D,y,!0),n(D,h,y),D.children.length>0||R?D.toString():""},ue.exports=r},12048:ue=>{ue.exports={escapeAttribute:function M(p){return p.replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}}},80352:ue=>{ue.exports={escapeElement:function M(p){return p.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#x0D;").replace(/\n/g,"&#x0A;").replace(/\u0085/g,"&#x85;").replace(/\u2028/,"&#x2028;")}}},86147:(ue,M,p)=>{var t=p(12048).escapeAttribute;function w(d,r){void 0===r&&(r=[]),this.name=d,this.children=r,this.attributes={}}w.prototype.addAttribute=function(d,r){return this.attributes[d]=r,this},w.prototype.addChildNode=function(d){return this.children.push(d),this},w.prototype.removeAttribute=function(d){return delete this.attributes[d],this},w.prototype.toString=function(){for(var d=Boolean(this.children.length),r="<"+this.name,n=this.attributes,i=0,s=Object.keys(n);i<s.length;i++){var e=s[i],a=n[e];typeof a<"u"&&null!==a&&(r+=" "+e+'="'+t(""+a)+'"')}return r+(d?">"+this.children.map(function(u){return u.toString()}).join("")+"</"+this.name+">":"/>")},ue.exports={XmlNode:w}},88693:(ue,M,p)=>{var t=p(80352).escapeElement;function w(d){this.value=d}w.prototype.toString=function(){return t(""+this.value)},ue.exports={XmlText:w}},71899:(ue,M,p)=>{"use strict";var w=p(66751),d=p(24895),r=p(52866);function i(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(v,O){if(i()<O)throw new RangeError("Invalid typed array length");return e.TYPED_ARRAY_SUPPORT?(v=new Uint8Array(O)).__proto__=e.prototype:(null===v&&(v=new e(O)),v.length=O),v}function e(v,O,k){if(!(e.TYPED_ARRAY_SUPPORT||this instanceof e))return new e(v,O,k);if("number"==typeof v){if("string"==typeof O)throw new Error("If encoding is specified then the first argument must be a string");return y(this,v)}return a(this,v,O,k)}function a(v,O,k,re){if("number"==typeof O)throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&O instanceof ArrayBuffer?function D(v,O,k,re){if(k<0||O.byteLength<k)throw new RangeError("'offset' is out of bounds");if(O.byteLength<k+(re||0))throw new RangeError("'length' is out of bounds");return O=void 0===k&&void 0===re?new Uint8Array(O):void 0===re?new Uint8Array(O,k):new Uint8Array(O,k,re),e.TYPED_ARRAY_SUPPORT?(v=O).__proto__=e.prototype:v=R(v,O),v}(v,O,k,re):"string"==typeof O?function m(v,O,k){if(("string"!=typeof k||""===k)&&(k="utf8"),!e.isEncoding(k))throw new TypeError('"encoding" must be a valid string encoding');var re=0|j(O,k),de=(v=s(v,re)).write(O,k);return de!==re&&(v=v.slice(0,de)),v}(v,O,k):function I(v,O){if(e.isBuffer(O)){var k=0|C(O.length);return 0===(v=s(v,k)).length||O.copy(v,0,0,k),v}if(O){if(typeof ArrayBuffer<"u"&&O.buffer instanceof ArrayBuffer||"length"in O)return"number"!=typeof O.length||function U(v){return v!=v}(O.length)?s(v,0):R(v,O);if("Buffer"===O.type&&r(O.data))return R(v,O.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(v,O)}function u(v){if("number"!=typeof v)throw new TypeError('"size" argument must be a number');if(v<0)throw new RangeError('"size" argument must not be negative')}function y(v,O){if(u(O),v=s(v,O<0?0:0|C(O)),!e.TYPED_ARRAY_SUPPORT)for(var k=0;k<O;++k)v[k]=0;return v}function R(v,O){var k=O.length<0?0:0|C(O.length);v=s(v,k);for(var re=0;re<k;re+=1)v[re]=255&O[re];return v}function C(v){if(v>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|v}function j(v,O){if(e.isBuffer(v))return v.length;if(typeof ArrayBuffer<"u"&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(v)||v instanceof ArrayBuffer))return v.byteLength;"string"!=typeof v&&(v=""+v);var k=v.length;if(0===k)return 0;for(var re=!1;;)switch(O){case"ascii":case"latin1":case"binary":return k;case"utf8":case"utf-8":case void 0:return ye(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*k;case"hex":return k>>>1;case"base64":return Me(v).length;default:if(re)return ye(v).length;O=(""+O).toLowerCase(),re=!0}}function V(v,O,k){var re=!1;if((void 0===O||O<0)&&(O=0),O>this.length||((void 0===k||k>this.length)&&(k=this.length),k<=0)||(k>>>=0)<=(O>>>=0))return"";for(v||(v="utf8");;)switch(v){case"hex":return ae(this,O,k);case"utf8":case"utf-8":return $(this,O,k);case"ascii":return Z(this,O,k);case"latin1":case"binary":return pe(this,O,k);case"base64":return Q(this,O,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,O,k);default:if(re)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),re=!0}}function q(v,O,k){var re=v[O];v[O]=v[k],v[k]=re}function L(v,O,k,re,de){if(0===v.length)return-1;if("string"==typeof k?(re=k,k=0):k>2147483647?k=2147483647:k<-2147483648&&(k=-2147483648),k=+k,isNaN(k)&&(k=de?0:v.length-1),k<0&&(k=v.length+k),k>=v.length){if(de)return-1;k=v.length-1}else if(k<0){if(!de)return-1;k=0}if("string"==typeof O&&(O=e.from(O,re)),e.isBuffer(O))return 0===O.length?-1:g(v,O,k,re,de);if("number"==typeof O)return O&=255,e.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?de?Uint8Array.prototype.indexOf.call(v,O,k):Uint8Array.prototype.lastIndexOf.call(v,O,k):g(v,[O],k,re,de);throw new TypeError("val must be string, number or Buffer")}function g(v,O,k,re,de){var ve,xe=1,Te=v.length,te=O.length;if(void 0!==re&&("ucs2"===(re=String(re).toLowerCase())||"ucs-2"===re||"utf16le"===re||"utf-16le"===re)){if(v.length<2||O.length<2)return-1;xe=2,Te/=2,te/=2,k/=2}function he(qe,ze){return 1===xe?qe[ze]:qe.readUInt16BE(ze*xe)}if(de){var Oe=-1;for(ve=k;ve<Te;ve++)if(he(v,ve)===he(O,-1===Oe?0:ve-Oe)){if(-1===Oe&&(Oe=ve),ve-Oe+1===te)return Oe*xe}else-1!==Oe&&(ve-=ve-Oe),Oe=-1}else for(k+te>Te&&(k=Te-te),ve=k;ve>=0;ve--){for(var Ie=!0,Ue=0;Ue<te;Ue++)if(he(v,ve+Ue)!==he(O,Ue)){Ie=!1;break}if(Ie)return ve}return-1}function T(v,O,k,re){k=Number(k)||0;var de=v.length-k;re?(re=Number(re))>de&&(re=de):re=de;var xe=O.length;if(xe%2!=0)throw new TypeError("Invalid hex string");re>xe/2&&(re=xe/2);for(var Te=0;Te<re;++Te){var te=parseInt(O.substr(2*Te,2),16);if(isNaN(te))return Te;v[k+Te]=te}return Te}function c(v,O,k,re){return ne(ye(O,v.length-k),v,k,re)}function _(v,O,k,re){return ne(function Re(v){for(var O=[],k=0;k<v.length;++k)O.push(255&v.charCodeAt(k));return O}(O),v,k,re)}function l(v,O,k,re){return _(v,O,k,re)}function F(v,O,k,re){return ne(Me(O),v,k,re)}function K(v,O,k,re){return ne(function De(v,O){for(var k,re,xe=[],Te=0;Te<v.length&&!((O-=2)<0);++Te)re=(k=v.charCodeAt(Te))>>8,xe.push(k%256),xe.push(re);return xe}(O,v.length-k),v,k,re)}function Q(v,O,k){return w.fromByteArray(0===O&&k===v.length?v:v.slice(O,k))}function $(v,O,k){k=Math.min(v.length,k);for(var re=[],de=O;de<k;){var he,ve,Oe,Ie,xe=v[de],Te=null,te=xe>239?4:xe>223?3:xe>191?2:1;if(de+te<=k)switch(te){case 1:xe<128&&(Te=xe);break;case 2:128==(192&(he=v[de+1]))&&(Ie=(31&xe)<<6|63&he)>127&&(Te=Ie);break;case 3:ve=v[de+2],128==(192&(he=v[de+1]))&&128==(192&ve)&&(Ie=(15&xe)<<12|(63&he)<<6|63&ve)>2047&&(Ie<55296||Ie>57343)&&(Te=Ie);break;case 4:ve=v[de+2],Oe=v[de+3],128==(192&(he=v[de+1]))&&128==(192&ve)&&128==(192&Oe)&&(Ie=(15&xe)<<18|(63&he)<<12|(63&ve)<<6|63&Oe)>65535&&Ie<1114112&&(Te=Ie)}null===Te?(Te=65533,te=1):Te>65535&&(re.push((Te-=65536)>>>10&1023|55296),Te=56320|1023&Te),re.push(Te),de+=te}return function ge(v){var O=v.length;if(O<=4096)return String.fromCharCode.apply(String,v);for(var k="",re=0;re<O;)k+=String.fromCharCode.apply(String,v.slice(re,re+=4096));return k}(re)}function Z(v,O,k){var re="";k=Math.min(v.length,k);for(var de=O;de<k;++de)re+=String.fromCharCode(127&v[de]);return re}function pe(v,O,k){var re="";k=Math.min(v.length,k);for(var de=O;de<k;++de)re+=String.fromCharCode(v[de]);return re}function ae(v,O,k){var re=v.length;(!O||O<0)&&(O=0),(!k||k<0||k>re)&&(k=re);for(var de="",xe=O;xe<k;++xe)de+=_e(v[xe]);return de}function z(v,O,k){for(var re=v.slice(O,k),de="",xe=0;xe<re.length;xe+=2)de+=String.fromCharCode(re[xe]+256*re[xe+1]);return de}function Y(v,O,k){if(v%1!=0||v<0)throw new RangeError("offset is not uint");if(v+O>k)throw new RangeError("Trying to access beyond buffer length")}function ie(v,O,k,re,de,xe){if(!e.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(O>de||O<xe)throw new RangeError('"value" argument is out of bounds');if(k+re>v.length)throw new RangeError("Index out of range")}function J(v,O,k,re){O<0&&(O=65535+O+1);for(var de=0,xe=Math.min(v.length-k,2);de<xe;++de)v[k+de]=(O&255<<8*(re?de:1-de))>>>8*(re?de:1-de)}function A(v,O,k,re){O<0&&(O=4294967295+O+1);for(var de=0,xe=Math.min(v.length-k,4);de<xe;++de)v[k+de]=O>>>8*(re?de:3-de)&255}function b(v,O,k,re,de,xe){if(k+re>v.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("Index out of range")}function x(v,O,k,re,de){return de||b(v,0,k,4),d.write(v,O,k,re,23,4),k+4}function N(v,O,k,re,de){return de||b(v,0,k,8),d.write(v,O,k,re,52,8),k+8}M.lW=e,M.h2=50,e.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:function n(){try{var v=new Uint8Array(1);return v.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===v.foo()&&"function"==typeof v.subarray&&0===v.subarray(1,1).byteLength}catch{return!1}}(),i(),e.poolSize=8192,e._augment=function(v){return v.__proto__=e.prototype,v},e.from=function(v,O,k){return a(null,v,O,k)},e.TYPED_ARRAY_SUPPORT&&(e.prototype.__proto__=Uint8Array.prototype,e.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&e[Symbol.species]===e&&Object.defineProperty(e,Symbol.species,{value:null,configurable:!0})),e.alloc=function(v,O,k){return function h(v,O,k,re){return u(O),O<=0?s(v,O):void 0!==k?"string"==typeof re?s(v,O).fill(k,re):s(v,O).fill(k):s(v,O)}(null,v,O,k)},e.allocUnsafe=function(v){return y(null,v)},e.allocUnsafeSlow=function(v){return y(null,v)},e.isBuffer=function(O){return!(null==O||!O._isBuffer)},e.compare=function(O,k){if(!e.isBuffer(O)||!e.isBuffer(k))throw new TypeError("Arguments must be Buffers");if(O===k)return 0;for(var re=O.length,de=k.length,xe=0,Te=Math.min(re,de);xe<Te;++xe)if(O[xe]!==k[xe]){re=O[xe],de=k[xe];break}return re<de?-1:de<re?1:0},e.isEncoding=function(O){switch(String(O).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},e.concat=function(O,k){if(!r(O))throw new TypeError('"list" argument must be an Array of Buffers');if(0===O.length)return e.alloc(0);var re;if(void 0===k)for(k=0,re=0;re<O.length;++re)k+=O[re].length;var de=e.allocUnsafe(k),xe=0;for(re=0;re<O.length;++re){var Te=O[re];if(!e.isBuffer(Te))throw new TypeError('"list" argument must be an Array of Buffers');Te.copy(de,xe),xe+=Te.length}return de},e.byteLength=j,e.prototype._isBuffer=!0,e.prototype.swap16=function(){var O=this.length;if(O%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var k=0;k<O;k+=2)q(this,k,k+1);return this},e.prototype.swap32=function(){var O=this.length;if(O%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var k=0;k<O;k+=4)q(this,k,k+3),q(this,k+1,k+2);return this},e.prototype.swap64=function(){var O=this.length;if(O%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var k=0;k<O;k+=8)q(this,k,k+7),q(this,k+1,k+6),q(this,k+2,k+5),q(this,k+3,k+4);return this},e.prototype.toString=function(){var O=0|this.length;return 0===O?"":0===arguments.length?$(this,0,O):V.apply(this,arguments)},e.prototype.equals=function(O){if(!e.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O||0===e.compare(this,O)},e.prototype.inspect=function(){var O="",k=M.h2;return this.length>0&&(O=this.toString("hex",0,k).match(/.{2}/g).join(" "),this.length>k&&(O+=" ... ")),"<Buffer "+O+">"},e.prototype.compare=function(O,k,re,de,xe){if(!e.isBuffer(O))throw new TypeError("Argument must be a Buffer");if(void 0===k&&(k=0),void 0===re&&(re=O?O.length:0),void 0===de&&(de=0),void 0===xe&&(xe=this.length),k<0||re>O.length||de<0||xe>this.length)throw new RangeError("out of range index");if(de>=xe&&k>=re)return 0;if(de>=xe)return-1;if(k>=re)return 1;if(this===O)return 0;for(var Te=(xe>>>=0)-(de>>>=0),te=(re>>>=0)-(k>>>=0),he=Math.min(Te,te),ve=this.slice(de,xe),Oe=O.slice(k,re),Ie=0;Ie<he;++Ie)if(ve[Ie]!==Oe[Ie]){Te=ve[Ie],te=Oe[Ie];break}return Te<te?-1:te<Te?1:0},e.prototype.includes=function(O,k,re){return-1!==this.indexOf(O,k,re)},e.prototype.indexOf=function(O,k,re){return L(this,O,k,re,!0)},e.prototype.lastIndexOf=function(O,k,re){return L(this,O,k,re,!1)},e.prototype.write=function(O,k,re,de){if(void 0===k)de="utf8",re=this.length,k=0;else if(void 0===re&&"string"==typeof k)de=k,re=this.length,k=0;else{if(!isFinite(k))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");k|=0,isFinite(re)?(re|=0,void 0===de&&(de="utf8")):(de=re,re=void 0)}var xe=this.length-k;if((void 0===re||re>xe)&&(re=xe),O.length>0&&(re<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");for(var Te=!1;;)switch(de){case"hex":return T(this,O,k,re);case"utf8":case"utf-8":return c(this,O,k,re);case"ascii":return _(this,O,k,re);case"latin1":case"binary":return l(this,O,k,re);case"base64":return F(this,O,k,re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,O,k,re);default:if(Te)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),Te=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},e.prototype.slice=function(O,k){var de,re=this.length;if((O=~~O)<0?(O+=re)<0&&(O=0):O>re&&(O=re),(k=void 0===k?re:~~k)<0?(k+=re)<0&&(k=0):k>re&&(k=re),k<O&&(k=O),e.TYPED_ARRAY_SUPPORT)(de=this.subarray(O,k)).__proto__=e.prototype;else{var xe=k-O;de=new e(xe,void 0);for(var Te=0;Te<xe;++Te)de[Te]=this[Te+O]}return de},e.prototype.readUIntLE=function(O,k,re){O|=0,k|=0,re||Y(O,k,this.length);for(var de=this[O],xe=1,Te=0;++Te<k&&(xe*=256);)de+=this[O+Te]*xe;return de},e.prototype.readUIntBE=function(O,k,re){O|=0,k|=0,re||Y(O,k,this.length);for(var de=this[O+--k],xe=1;k>0&&(xe*=256);)de+=this[O+--k]*xe;return de},e.prototype.readUInt8=function(O,k){return k||Y(O,1,this.length),this[O]},e.prototype.readUInt16LE=function(O,k){return k||Y(O,2,this.length),this[O]|this[O+1]<<8},e.prototype.readUInt16BE=function(O,k){return k||Y(O,2,this.length),this[O]<<8|this[O+1]},e.prototype.readUInt32LE=function(O,k){return k||Y(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+16777216*this[O+3]},e.prototype.readUInt32BE=function(O,k){return k||Y(O,4,this.length),16777216*this[O]+(this[O+1]<<16|this[O+2]<<8|this[O+3])},e.prototype.readIntLE=function(O,k,re){O|=0,k|=0,re||Y(O,k,this.length);for(var de=this[O],xe=1,Te=0;++Te<k&&(xe*=256);)de+=this[O+Te]*xe;return de>=(xe*=128)&&(de-=Math.pow(2,8*k)),de},e.prototype.readIntBE=function(O,k,re){O|=0,k|=0,re||Y(O,k,this.length);for(var de=k,xe=1,Te=this[O+--de];de>0&&(xe*=256);)Te+=this[O+--de]*xe;return Te>=(xe*=128)&&(Te-=Math.pow(2,8*k)),Te},e.prototype.readInt8=function(O,k){return k||Y(O,1,this.length),128&this[O]?-1*(255-this[O]+1):this[O]},e.prototype.readInt16LE=function(O,k){k||Y(O,2,this.length);var re=this[O]|this[O+1]<<8;return 32768&re?4294901760|re:re},e.prototype.readInt16BE=function(O,k){k||Y(O,2,this.length);var re=this[O+1]|this[O]<<8;return 32768&re?4294901760|re:re},e.prototype.readInt32LE=function(O,k){return k||Y(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},e.prototype.readInt32BE=function(O,k){return k||Y(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},e.prototype.readFloatLE=function(O,k){return k||Y(O,4,this.length),d.read(this,O,!0,23,4)},e.prototype.readFloatBE=function(O,k){return k||Y(O,4,this.length),d.read(this,O,!1,23,4)},e.prototype.readDoubleLE=function(O,k){return k||Y(O,8,this.length),d.read(this,O,!0,52,8)},e.prototype.readDoubleBE=function(O,k){return k||Y(O,8,this.length),d.read(this,O,!1,52,8)},e.prototype.writeUIntLE=function(O,k,re,de){O=+O,k|=0,re|=0,de||ie(this,O,k,re,Math.pow(2,8*re)-1,0);var Te=1,te=0;for(this[k]=255&O;++te<re&&(Te*=256);)this[k+te]=O/Te&255;return k+re},e.prototype.writeUIntBE=function(O,k,re,de){O=+O,k|=0,re|=0,de||ie(this,O,k,re,Math.pow(2,8*re)-1,0);var Te=re-1,te=1;for(this[k+Te]=255&O;--Te>=0&&(te*=256);)this[k+Te]=O/te&255;return k+re},e.prototype.writeUInt8=function(O,k,re){return O=+O,k|=0,re||ie(this,O,k,1,255,0),e.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),this[k]=255&O,k+1},e.prototype.writeUInt16LE=function(O,k,re){return O=+O,k|=0,re||ie(this,O,k,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[k]=255&O,this[k+1]=O>>>8):J(this,O,k,!0),k+2},e.prototype.writeUInt16BE=function(O,k,re){return O=+O,k|=0,re||ie(this,O,k,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[k]=O>>>8,this[k+1]=255&O):J(this,O,k,!1),k+2},e.prototype.writeUInt32LE=function(O,k,re){return O=+O,k|=0,re||ie(this,O,k,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[k+3]=O>>>24,this[k+2]=O>>>16,this[k+1]=O>>>8,this[k]=255&O):A(this,O,k,!0),k+4},e.prototype.writeUInt32BE=function(O,k,re){return O=+O,k|=0,re||ie(this,O,k,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[k]=O>>>24,this[k+1]=O>>>16,this[k+2]=O>>>8,this[k+3]=255&O):A(this,O,k,!1),k+4},e.prototype.writeIntLE=function(O,k,re,de){if(O=+O,k|=0,!de){var xe=Math.pow(2,8*re-1);ie(this,O,k,re,xe-1,-xe)}var Te=0,te=1,he=0;for(this[k]=255&O;++Te<re&&(te*=256);)O<0&&0===he&&0!==this[k+Te-1]&&(he=1),this[k+Te]=(O/te>>0)-he&255;return k+re},e.prototype.writeIntBE=function(O,k,re,de){if(O=+O,k|=0,!de){var xe=Math.pow(2,8*re-1);ie(this,O,k,re,xe-1,-xe)}var Te=re-1,te=1,he=0;for(this[k+Te]=255&O;--Te>=0&&(te*=256);)O<0&&0===he&&0!==this[k+Te+1]&&(he=1),this[k+Te]=(O/te>>0)-he&255;return k+re},e.prototype.writeInt8=function(O,k,re){return O=+O,k|=0,re||ie(this,O,k,1,127,-128),e.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),O<0&&(O=255+O+1),this[k]=255&O,k+1},e.prototype.writeInt16LE=function(O,k,re){return O=+O,k|=0,re||ie(this,O,k,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[k]=255&O,this[k+1]=O>>>8):J(this,O,k,!0),k+2},e.prototype.writeInt16BE=function(O,k,re){return O=+O,k|=0,re||ie(this,O,k,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[k]=O>>>8,this[k+1]=255&O):J(this,O,k,!1),k+2},e.prototype.writeInt32LE=function(O,k,re){return O=+O,k|=0,re||ie(this,O,k,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[k]=255&O,this[k+1]=O>>>8,this[k+2]=O>>>16,this[k+3]=O>>>24):A(this,O,k,!0),k+4},e.prototype.writeInt32BE=function(O,k,re){return O=+O,k|=0,re||ie(this,O,k,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),e.TYPED_ARRAY_SUPPORT?(this[k]=O>>>24,this[k+1]=O>>>16,this[k+2]=O>>>8,this[k+3]=255&O):A(this,O,k,!1),k+4},e.prototype.writeFloatLE=function(O,k,re){return x(this,O,k,!0,re)},e.prototype.writeFloatBE=function(O,k,re){return x(this,O,k,!1,re)},e.prototype.writeDoubleLE=function(O,k,re){return N(this,O,k,!0,re)},e.prototype.writeDoubleBE=function(O,k,re){return N(this,O,k,!1,re)},e.prototype.copy=function(O,k,re,de){if(re||(re=0),!de&&0!==de&&(de=this.length),k>=O.length&&(k=O.length),k||(k=0),de>0&&de<re&&(de=re),de===re||0===O.length||0===this.length)return 0;if(k<0)throw new RangeError("targetStart out of bounds");if(re<0||re>=this.length)throw new RangeError("sourceStart out of bounds");if(de<0)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),O.length-k<de-re&&(de=O.length-k+re);var Te,xe=de-re;if(this===O&&re<k&&k<de)for(Te=xe-1;Te>=0;--Te)O[Te+k]=this[Te+re];else if(xe<1e3||!e.TYPED_ARRAY_SUPPORT)for(Te=0;Te<xe;++Te)O[Te+k]=this[Te+re];else Uint8Array.prototype.set.call(O,this.subarray(re,re+xe),k);return xe},e.prototype.fill=function(O,k,re,de){if("string"==typeof O){if("string"==typeof k?(de=k,k=0,re=this.length):"string"==typeof re&&(de=re,re=this.length),1===O.length){var xe=O.charCodeAt(0);xe<256&&(O=xe)}if(void 0!==de&&"string"!=typeof de)throw new TypeError("encoding must be a string");if("string"==typeof de&&!e.isEncoding(de))throw new TypeError("Unknown encoding: "+de)}else"number"==typeof O&&(O&=255);if(k<0||this.length<k||this.length<re)throw new RangeError("Out of range index");if(re<=k)return this;var Te;if(k>>>=0,re=void 0===re?this.length:re>>>0,O||(O=0),"number"==typeof O)for(Te=k;Te<re;++Te)this[Te]=O;else{var te=e.isBuffer(O)?O:ye(new e(O,de).toString()),he=te.length;for(Te=0;Te<re-k;++Te)this[Te+k]=te[Te%he]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function _e(v){return v<16?"0"+v.toString(16):v.toString(16)}function ye(v,O){O=O||1/0;for(var k,re=v.length,de=null,xe=[],Te=0;Te<re;++Te){if((k=v.charCodeAt(Te))>55295&&k<57344){if(!de){if(k>56319){(O-=3)>-1&&xe.push(239,191,189);continue}if(Te+1===re){(O-=3)>-1&&xe.push(239,191,189);continue}de=k;continue}if(k<56320){(O-=3)>-1&&xe.push(239,191,189),de=k;continue}k=65536+(de-55296<<10|k-56320)}else de&&(O-=3)>-1&&xe.push(239,191,189);if(de=null,k<128){if((O-=1)<0)break;xe.push(k)}else if(k<2048){if((O-=2)<0)break;xe.push(k>>6|192,63&k|128)}else if(k<65536){if((O-=3)<0)break;xe.push(k>>12|224,k>>6&63|128,63&k|128)}else{if(!(k<1114112))throw new Error("Invalid code point");if((O-=4)<0)break;xe.push(k>>18|240,k>>12&63|128,k>>6&63|128,63&k|128)}}return xe}function Me(v){return w.toByteArray(function ee(v){if((v=function se(v){return v.trim?v.trim():v.replace(/^\s+|\s+$/g,"")}(v).replace(W,"")).length<2)return"";for(;v.length%4!=0;)v+="=";return v}(v))}function ne(v,O,k,re){for(var de=0;de<re&&!(de+k>=O.length||de>=v.length);++de)O[de+k]=v[de];return de}},24895:(ue,M)=>{M.read=function(p,t,w,d,r){var n,i,s=8*r-d-1,e=(1<<s)-1,a=e>>1,u=-7,h=w?r-1:0,y=w?-1:1,m=p[t+h];for(h+=y,n=m&(1<<-u)-1,m>>=-u,u+=s;u>0;n=256*n+p[t+h],h+=y,u-=8);for(i=n&(1<<-u)-1,n>>=-u,u+=d;u>0;i=256*i+p[t+h],h+=y,u-=8);if(0===n)n=1-a;else{if(n===e)return i?NaN:1/0*(m?-1:1);i+=Math.pow(2,d),n-=a}return(m?-1:1)*i*Math.pow(2,n-d)},M.write=function(p,t,w,d,r,n){var i,s,e,a=8*n-r-1,u=(1<<a)-1,h=u>>1,y=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,m=d?0:n-1,R=d?1:-1,D=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=u):(i=Math.floor(Math.log(t)/Math.LN2),t*(e=Math.pow(2,-i))<1&&(i--,e*=2),(t+=i+h>=1?y/e:y*Math.pow(2,1-h))*e>=2&&(i++,e/=2),i+h>=u?(s=0,i=u):i+h>=1?(s=(t*e-1)*Math.pow(2,r),i+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,r),i=0));r>=8;p[w+m]=255&s,m+=R,s/=256,r-=8);for(i=i<<r|s,a+=r;a>0;p[w+m]=255&i,m+=R,i/=256,a-=8);p[w+m-R]|=128*D}},7372:function(ue,M,p){var t;ue=p.nmd(ue),function(w){"object"==typeof global&&global;var i,s=2147483647,e=36,I=/^xn--/,C=/[^\x20-\x7E]/,P=/[\x2E\u3002\uFF0E\uFF61]/g,j={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},q=Math.floor,L=String.fromCharCode;function T(ae){throw RangeError(j[ae])}function c(ae,z){for(var Y=ae.length,ie=[];Y--;)ie[Y]=z(ae[Y]);return ie}function _(ae,z){var Y=ae.split("@"),ie="";return Y.length>1&&(ie=Y[0]+"@",ae=Y[1]),ie+c((ae=ae.replace(P,".")).split("."),z).join(".")}function l(ae){for(var J,A,z=[],Y=0,ie=ae.length;Y<ie;)(J=ae.charCodeAt(Y++))>=55296&&J<=56319&&Y<ie?56320==(64512&(A=ae.charCodeAt(Y++)))?z.push(((1023&J)<<10)+(1023&A)+65536):(z.push(J),Y--):z.push(J);return z}function F(ae){return c(ae,function(z){var Y="";return z>65535&&(Y+=L((z-=65536)>>>10&1023|55296),z=56320|1023&z),Y+L(z)}).join("")}function K(ae){return ae-48<10?ae-22:ae-65<26?ae-65:ae-97<26?ae-97:e}function Q(ae,z){return ae+22+75*(ae<26)-((0!=z)<<5)}function $(ae,z,Y){var ie=0;for(ae=Y?q(ae/700):ae>>1,ae+=q(ae/z);ae>455;ie+=e)ae=q(ae/35);return q(ie+36*ae/(ae+38))}function ce(ae){var ie,x,N,W,ee,se,_e,ye,Re,De,z=[],Y=ae.length,J=0,A=128,b=72;for((x=ae.lastIndexOf("-"))<0&&(x=0),N=0;N<x;++N)ae.charCodeAt(N)>=128&&T("not-basic"),z.push(ae.charCodeAt(N));for(W=x>0?x+1:0;W<Y;){for(ee=J,se=1,_e=e;W>=Y&&T("invalid-input"),((ye=K(ae.charCodeAt(W++)))>=e||ye>q((s-J)/se))&&T("overflow"),J+=ye*se,!(ye<(Re=_e<=b?1:_e>=b+26?26:_e-b));_e+=e)se>q(s/(De=e-Re))&&T("overflow"),se*=De;b=$(J-ee,ie=z.length+1,0==ee),q(J/ie)>s-A&&T("overflow"),A+=q(J/ie),J%=ie,z.splice(J++,0,A)}return F(z)}function ge(ae){var z,Y,ie,J,A,b,x,N,W,ee,se,ye,Re,De,Me,_e=[];for(ye=(ae=l(ae)).length,z=128,Y=0,A=72,b=0;b<ye;++b)(se=ae[b])<128&&_e.push(L(se));for(ie=J=_e.length,J&&_e.push("-");ie<ye;){for(x=s,b=0;b<ye;++b)(se=ae[b])>=z&&se<x&&(x=se);for(x-z>q((s-Y)/(Re=ie+1))&&T("overflow"),Y+=(x-z)*Re,z=x,b=0;b<ye;++b)if((se=ae[b])<z&&++Y>s&&T("overflow"),se==z){for(N=Y,W=e;!(N<(ee=W<=A?1:W>=A+26?26:W-A));W+=e)_e.push(L(Q(ee+(Me=N-ee)%(De=e-ee),0))),N=q(Me/De);_e.push(L(Q(N,0))),A=$(Y,Re,ie==J),Y=0,++ie}++Y,++z}return _e.join("")}i={version:"1.3.2",ucs2:{decode:l,encode:F},decode:ce,encode:ge,toASCII:function pe(ae){return _(ae,function(z){return C.test(z)?"xn--"+ge(z):z})},toUnicode:function Z(ae){return _(ae,function(z){return I.test(z)?ce(z.slice(4).toLowerCase()):z})}},void 0!==(t=function(){return i}.call(M,p,M,ue))&&(ue.exports=t)}()},1008:(ue,M,p)=>{var t=p(7372);function w(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}M.parse=C,M.resolve=function j(c,_){return C(c,!1,!0).resolve(_)},M.resolveObject=function V(c,_){return c?C(c,!1,!0).resolveObject(_):_},M.format=function P(c){return q(c)&&(c=C(c)),c instanceof w?c.format():w.prototype.format.call(c)},M.Url=w;var d=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),s=["'"].concat(i),e=["%","/","?",";","#"].concat(s),a=["/","?","#"],h=/^[a-z0-9A-Z_-]{0,63}$/,y=/^([a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},R={javascript:!0,"javascript:":!0},D={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},I=p(31625);function C(c,_,l){if(c&&L(c)&&c instanceof w)return c;var F=new w;return F.parse(c,_,l),F}function q(c){return"string"==typeof c}function L(c){return"object"==typeof c&&null!==c}function g(c){return null===c}w.prototype.parse=function(c,_,l){if(!q(c))throw new TypeError("Parameter 'url' must be a string, not "+typeof c);var F=c;F=F.trim();var K=d.exec(F);if(K){var Q=(K=K[0]).toLowerCase();this.protocol=Q,F=F.substr(K.length)}if(l||K||F.match(/^\/\/[^@\/]+@[^@\/]+/)){var $="//"===F.substr(0,2);$&&(!K||!R[K])&&(F=F.substr(2),this.slashes=!0)}if(!R[K]&&($||K&&!D[K])){for(var ce=-1,ge=0;ge<a.length;ge++)-1!==(Z=F.indexOf(a[ge]))&&(-1===ce||Z<ce)&&(ce=Z);var pe,ae;for(-1!==(ae=-1===ce?F.lastIndexOf("@"):F.lastIndexOf("@",ce))&&(pe=F.slice(0,ae),F=F.slice(ae+1),this.auth=decodeURIComponent(pe)),ce=-1,ge=0;ge<e.length;ge++){var Z;-1!==(Z=F.indexOf(e[ge]))&&(-1===ce||Z<ce)&&(ce=Z)}-1===ce&&(ce=F.length),this.host=F.slice(0,ce),F=F.slice(ce),this.parseHost(),this.hostname=this.hostname||"";var z="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!z)for(var Y=this.hostname.split(/\./),ie=(ge=0,Y.length);ge<ie;ge++){var J=Y[ge];if(J&&!J.match(h)){for(var A="",b=0,x=J.length;b<x;b++)J.charCodeAt(b)>127?A+="x":A+=J[b];if(!A.match(h)){var N=Y.slice(0,ge),W=Y.slice(ge+1),ee=J.match(y);ee&&(N.push(ee[1]),W.unshift(ee[2])),W.length&&(F="/"+W.join(".")+F),this.hostname=N.join(".");break}}}if(this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),!z){var se=this.hostname.split("."),_e=[];for(ge=0;ge<se.length;++ge)_e.push((ye=se[ge]).match(/[^A-Za-z0-9_-]/)?"xn--"+t.encode(ye):ye);this.hostname=_e.join(".")}this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,z&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==F[0]&&(F="/"+F))}if(!m[Q])for(ge=0,ie=s.length;ge<ie;ge++){var Me=s[ge],ne=encodeURIComponent(Me);ne===Me&&(ne=escape(Me)),F=F.split(Me).join(ne)}var U=F.indexOf("#");-1!==U&&(this.hash=F.substr(U),F=F.slice(0,U));var ye,v=F.indexOf("?");return-1!==v?(this.search=F.substr(v),this.query=F.substr(v+1),_&&(this.query=I.parse(this.query)),F=F.slice(0,v)):_&&(this.search="",this.query={}),F&&(this.pathname=F),D[Q]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(ye=this.search||"")),this.href=this.format(),this},w.prototype.format=function(){var c=this.auth||"";c&&(c=(c=encodeURIComponent(c)).replace(/%3A/i,":"),c+="@");var _=this.protocol||"",l=this.pathname||"",F=this.hash||"",K=!1,Q="";this.host?K=c+this.host:this.hostname&&(K=c+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(K+=":"+this.port)),this.query&&L(this.query)&&Object.keys(this.query).length&&(Q=I.stringify(this.query));var $=this.search||Q&&"?"+Q||"";return _&&":"!==_.substr(-1)&&(_+=":"),this.slashes||(!_||D[_])&&!1!==K?(K="//"+(K||""),l&&"/"!==l.charAt(0)&&(l="/"+l)):K||(K=""),F&&"#"!==F.charAt(0)&&(F="#"+F),$&&"?"!==$.charAt(0)&&($="?"+$),_+K+(l=l.replace(/[?#]/g,function(ce){return encodeURIComponent(ce)}))+($=$.replace("#","%23"))+F},w.prototype.resolve=function(c){return this.resolveObject(C(c,!1,!0)).format()},w.prototype.resolveObject=function(c){if(q(c)){var _=new w;_.parse(c,!1,!0),c=_}var l=new w;if(Object.keys(this).forEach(function(x){l[x]=this[x]},this),l.hash=c.hash,""===c.href)return l.href=l.format(),l;if(c.slashes&&!c.protocol)return Object.keys(c).forEach(function(x){"protocol"!==x&&(l[x]=c[x])}),D[l.protocol]&&l.hostname&&!l.pathname&&(l.path=l.pathname="/"),l.href=l.format(),l;if(c.protocol&&c.protocol!==l.protocol){if(!D[c.protocol])return Object.keys(c).forEach(function(x){l[x]=c[x]}),l.href=l.format(),l;if(l.protocol=c.protocol,c.host||R[c.protocol])l.pathname=c.pathname;else{for(var pe=(c.pathname||"").split("/");pe.length&&!(c.host=pe.shift()););c.host||(c.host=""),c.hostname||(c.hostname=""),""!==pe[0]&&pe.unshift(""),pe.length<2&&pe.unshift(""),l.pathname=pe.join("/")}return l.search=c.search,l.query=c.query,l.host=c.host||"",l.auth=c.auth,l.hostname=c.hostname||c.host,l.port=c.port,(l.pathname||l.search)&&(l.path=(l.pathname||"")+(l.search||"")),l.slashes=l.slashes||c.slashes,l.href=l.format(),l}var Q=l.pathname&&"/"===l.pathname.charAt(0),$=c.host||c.pathname&&"/"===c.pathname.charAt(0),ce=$||Q||l.host&&c.pathname,ge=ce,Z=l.pathname&&l.pathname.split("/")||[],ae=(pe=c.pathname&&c.pathname.split("/")||[],l.protocol&&!D[l.protocol]);if(ae&&(l.hostname="",l.port=null,l.host&&(""===Z[0]?Z[0]=l.host:Z.unshift(l.host)),l.host="",c.protocol&&(c.hostname=null,c.port=null,c.host&&(""===pe[0]?pe[0]=c.host:pe.unshift(c.host)),c.host=null),ce=ce&&(""===pe[0]||""===Z[0])),$)l.host=c.host||""===c.host?c.host:l.host,l.hostname=c.hostname||""===c.hostname?c.hostname:l.hostname,l.search=c.search,l.query=c.query,Z=pe;else if(pe.length)Z||(Z=[]),Z.pop(),Z=Z.concat(pe),l.search=c.search,l.query=c.query;else if(!function T(c){return null==c}(c.search))return ae&&(l.hostname=l.host=Z.shift(),(z=!!(l.host&&l.host.indexOf("@")>0)&&l.host.split("@"))&&(l.auth=z.shift(),l.host=l.hostname=z.shift())),l.search=c.search,l.query=c.query,(!g(l.pathname)||!g(l.search))&&(l.path=(l.pathname?l.pathname:"")+(l.search?l.search:"")),l.href=l.format(),l;if(!Z.length)return l.pathname=null,l.path=l.search?"/"+l.search:null,l.href=l.format(),l;for(var Y=Z.slice(-1)[0],ie=(l.host||c.host)&&("."===Y||".."===Y)||""===Y,J=0,A=Z.length;A>=0;A--)"."==(Y=Z[A])?Z.splice(A,1):".."===Y?(Z.splice(A,1),J++):J&&(Z.splice(A,1),J--);if(!ce&&!ge)for(;J--;J)Z.unshift("..");ce&&""!==Z[0]&&(!Z[0]||"/"!==Z[0].charAt(0))&&Z.unshift(""),ie&&"/"!==Z.join("/").substr(-1)&&Z.push("");var z,b=""===Z[0]||Z[0]&&"/"===Z[0].charAt(0);return ae&&(l.hostname=l.host=b?"":Z.length?Z.shift():"",(z=!!(l.host&&l.host.indexOf("@")>0)&&l.host.split("@"))&&(l.auth=z.shift(),l.host=l.hostname=z.shift())),(ce=ce||l.host&&Z.length)&&!b&&Z.unshift(""),Z.length?l.pathname=Z.join("/"):(l.pathname=null,l.path=null),(!g(l.pathname)||!g(l.search))&&(l.path=(l.pathname?l.pathname:"")+(l.search?l.search:"")),l.auth=c.auth||l.auth,l.slashes=l.slashes||c.slashes,l.href=l.format(),l},w.prototype.parseHost=function(){var c=this.host,_=r.exec(c);_&&(":"!==(_=_[0])&&(this.port=_.substr(1)),c=c.substr(0,c.length-_.length)),c&&(this.hostname=c)}},44561:(ue,M)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=void 0;for(var p=[],t=0;t<256;++t)p[t]=(t+256).toString(16).substr(1);M.default=function w(r,n){var i=n||0;return[p[r[i++]],p[r[i++]],p[r[i++]],p[r[i++]],"-",p[r[i++]],p[r[i++]],"-",p[r[i++]],p[r[i++]],"-",p[r[i++]],p[r[i++]],"-",p[r[i++]],p[r[i++]],p[r[i++]],p[r[i++]],p[r[i++]],p[r[i++]]].join("")}},33239:(ue,M,p)=>{"use strict";Object.defineProperty(M,"v4",{enumerable:!0,get:function(){return r.default}});i(p(98223)),i(p(17678));var r=i(p(7811));i(p(5731));function i(s){return s&&s.__esModule?s:{default:s}}},52353:(ue,M)=>{"use strict";function r(y,m){var R=(65535&y)+(65535&m);return(y>>16)+(m>>16)+(R>>16)<<16|65535&R}function i(y,m,R,D,I,C){return r(function n(y,m){return y<<m|y>>>32-m}(r(r(m,y),r(D,C)),I),R)}function s(y,m,R,D,I,C,P){return i(m&R|~m&D,y,m,I,C,P)}function e(y,m,R,D,I,C,P){return i(m&D|R&~D,y,m,I,C,P)}function a(y,m,R,D,I,C,P){return i(m^R^D,y,m,I,C,P)}function u(y,m,R,D,I,C,P){return i(R^(m|~D),y,m,I,C,P)}Object.defineProperty(M,"__esModule",{value:!0}),M.default=void 0,M.default=function p(y){if("string"==typeof y){var m=unescape(encodeURIComponent(y));y=new Array(m.length);for(var R=0;R<m.length;R++)y[R]=m.charCodeAt(R)}return function t(y){var m,R,P,D=[],I=32*y.length,C="0123456789abcdef";for(m=0;m<I;m+=8)R=y[m>>5]>>>m%32&255,P=parseInt(C.charAt(R>>>4&15)+C.charAt(15&R),16),D.push(P);return D}(function w(y,m){y[m>>5]|=128<<m%32,y[14+(m+64>>>9<<4)]=m;var R,D,I,C,P,j=1732584193,V=-271733879,q=-1732584194,L=271733878;for(R=0;R<y.length;R+=16)D=j,I=V,C=q,P=L,j=s(j,V,q,L,y[R],7,-680876936),L=s(L,j,V,q,y[R+1],12,-389564586),q=s(q,L,j,V,y[R+2],17,606105819),V=s(V,q,L,j,y[R+3],22,-1044525330),j=s(j,V,q,L,y[R+4],7,-176418897),L=s(L,j,V,q,y[R+5],12,1200080426),q=s(q,L,j,V,y[R+6],17,-1473231341),V=s(V,q,L,j,y[R+7],22,-45705983),j=s(j,V,q,L,y[R+8],7,1770035416),L=s(L,j,V,q,y[R+9],12,-1958414417),q=s(q,L,j,V,y[R+10],17,-42063),V=s(V,q,L,j,y[R+11],22,-1990404162),j=s(j,V,q,L,y[R+12],7,1804603682),L=s(L,j,V,q,y[R+13],12,-40341101),q=s(q,L,j,V,y[R+14],17,-1502002290),j=e(j,V=s(V,q,L,j,y[R+15],22,1236535329),q,L,y[R+1],5,-165796510),L=e(L,j,V,q,y[R+6],9,-1069501632),q=e(q,L,j,V,y[R+11],14,643717713),V=e(V,q,L,j,y[R],20,-373897302),j=e(j,V,q,L,y[R+5],5,-701558691),L=e(L,j,V,q,y[R+10],9,38016083),q=e(q,L,j,V,y[R+15],14,-660478335),V=e(V,q,L,j,y[R+4],20,-405537848),j=e(j,V,q,L,y[R+9],5,568446438),L=e(L,j,V,q,y[R+14],9,-1019803690),q=e(q,L,j,V,y[R+3],14,-187363961),V=e(V,q,L,j,y[R+8],20,1163531501),j=e(j,V,q,L,y[R+13],5,-1444681467),L=e(L,j,V,q,y[R+2],9,-51403784),q=e(q,L,j,V,y[R+7],14,1735328473),j=a(j,V=e(V,q,L,j,y[R+12],20,-1926607734),q,L,y[R+5],4,-378558),L=a(L,j,V,q,y[R+8],11,-2022574463),q=a(q,L,j,V,y[R+11],16,1839030562),V=a(V,q,L,j,y[R+14],23,-35309556),j=a(j,V,q,L,y[R+1],4,-1530992060),L=a(L,j,V,q,y[R+4],11,1272893353),q=a(q,L,j,V,y[R+7],16,-155497632),V=a(V,q,L,j,y[R+10],23,-1094730640),j=a(j,V,q,L,y[R+13],4,681279174),L=a(L,j,V,q,y[R],11,-358537222),q=a(q,L,j,V,y[R+3],16,-722521979),V=a(V,q,L,j,y[R+6],23,76029189),j=a(j,V,q,L,y[R+9],4,-640364487),L=a(L,j,V,q,y[R+12],11,-421815835),q=a(q,L,j,V,y[R+15],16,530742520),j=u(j,V=a(V,q,L,j,y[R+2],23,-995338651),q,L,y[R],6,-198630844),L=u(L,j,V,q,y[R+7],10,1126891415),q=u(q,L,j,V,y[R+14],15,-1416354905),V=u(V,q,L,j,y[R+5],21,-57434055),j=u(j,V,q,L,y[R+12],6,1700485571),L=u(L,j,V,q,y[R+3],10,-1894986606),q=u(q,L,j,V,y[R+10],15,-1051523),V=u(V,q,L,j,y[R+1],21,-2054922799),j=u(j,V,q,L,y[R+8],6,1873313359),L=u(L,j,V,q,y[R+15],10,-30611744),q=u(q,L,j,V,y[R+6],15,-1560198380),V=u(V,q,L,j,y[R+13],21,1309151649),j=u(j,V,q,L,y[R+4],6,-145523070),L=u(L,j,V,q,y[R+11],10,-1120210379),q=u(q,L,j,V,y[R+2],15,718787259),V=u(V,q,L,j,y[R+9],21,-343485551),j=r(j,D),V=r(V,I),q=r(q,C),L=r(L,P);return[j,V,q,L]}(function d(y){var m,R=[];for(R[(y.length>>2)-1]=void 0,m=0;m<R.length;m+=1)R[m]=0;var D=8*y.length;for(m=0;m<D;m+=8)R[m>>5]|=(255&y[m/8])<<m%32;return R}(y),8*y.length))}},71785:(ue,M)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=function w(){if(!p)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return p(t)};var p=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),t=new Uint8Array(16)},70168:(ue,M)=>{"use strict";function p(r,n,i,s){switch(r){case 0:return n&i^~n&s;case 1:case 3:return n^i^s;case 2:return n&i^n&s^i&s}}function t(r,n){return r<<n|r>>>32-n}Object.defineProperty(M,"__esModule",{value:!0}),M.default=void 0,M.default=function w(r){var n=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof r){var s=unescape(encodeURIComponent(r));r=new Array(s.length);for(var e=0;e<s.length;e++)r[e]=s.charCodeAt(e)}r.push(128);var u=Math.ceil((r.length/4+2)/16),h=new Array(u);for(e=0;e<u;e++){h[e]=new Array(16);for(var y=0;y<16;y++)h[e][y]=r[64*e+4*y]<<24|r[64*e+4*y+1]<<16|r[64*e+4*y+2]<<8|r[64*e+4*y+3]}for(h[u-1][14]=8*(r.length-1)/Math.pow(2,32),h[u-1][14]=Math.floor(h[u-1][14]),h[u-1][15]=8*(r.length-1)&4294967295,e=0;e<u;e++){for(var m=new Array(80),R=0;R<16;R++)m[R]=h[e][R];for(R=16;R<80;R++)m[R]=t(m[R-3]^m[R-8]^m[R-14]^m[R-16],1);var D=i[0],I=i[1],C=i[2],P=i[3],j=i[4];for(R=0;R<80;R++){var V=Math.floor(R/20),q=t(D,5)+p(V,I,C,P)+j+n[V]+m[R]>>>0;j=P,P=C,C=t(I,30)>>>0,I=D,D=q}i[0]=i[0]+D>>>0,i[1]=i[1]+I>>>0,i[2]=i[2]+C>>>0,i[3]=i[3]+P>>>0,i[4]=i[4]+j>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]}},98223:(ue,M,p)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=void 0;var t=d(p(71785)),w=d(p(44561));function d(u){return u&&u.__esModule?u:{default:u}}var r,n,i=0,s=0;M.default=function e(u,h,y){var m=h&&y||0,R=h||[],D=(u=u||{}).node||r,I=void 0!==u.clockseq?u.clockseq:n;if(null==D||null==I){var C=u.random||(u.rng||t.default)();null==D&&(D=r=[1|C[0],C[1],C[2],C[3],C[4],C[5]]),null==I&&(I=n=16383&(C[6]<<8|C[7]))}var P=void 0!==u.msecs?u.msecs:(new Date).getTime(),j=void 0!==u.nsecs?u.nsecs:s+1,V=P-i+(j-s)/1e4;if(V<0&&void 0===u.clockseq&&(I=I+1&16383),(V<0||P>i)&&void 0===u.nsecs&&(j=0),j>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");i=P,s=j,n=I;var q=(1e4*(268435455&(P+=122192928e5))+j)%4294967296;R[m++]=q>>>24&255,R[m++]=q>>>16&255,R[m++]=q>>>8&255,R[m++]=255&q;var L=P/4294967296*1e4&268435455;R[m++]=L>>>8&255,R[m++]=255&L,R[m++]=L>>>24&15|16,R[m++]=L>>>16&255,R[m++]=I>>>8|128,R[m++]=255&I;for(var g=0;g<6;++g)R[m+g]=D[g];return h||(0,w.default)(R)}},17678:(ue,M,p)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=void 0;var t=d(p(76441)),w=d(p(52353));function d(i){return i&&i.__esModule?i:{default:i}}var n=(0,t.default)("v3",48,w.default);M.default=n},76441:(ue,M,p)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=function s(e,a,u){var h=function(y,m,R,D){var I=R&&D||0;if("string"==typeof y&&(y=function r(e){e=unescape(encodeURIComponent(e));for(var a=new Array(e.length),u=0;u<e.length;u++)a[u]=e.charCodeAt(u);return a}(y)),"string"==typeof m&&(m=function d(e){var a=[];return e.replace(/[a-fA-F0-9]{2}/g,function(u){a.push(parseInt(u,16))}),a}(m)),!Array.isArray(y))throw TypeError("value must be an array of bytes");if(!Array.isArray(m)||16!==m.length)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var C=u(m.concat(y));if(C[6]=15&C[6]|a,C[8]=63&C[8]|128,R)for(var P=0;P<16;++P)R[I+P]=C[P];return R||(0,t.default)(C)};try{h.name=e}catch{}return h.DNS=n,h.URL=i,h},M.URL=M.DNS=void 0;var t=function w(e){return e&&e.__esModule?e:{default:e}}(p(44561));const n="6ba7b810-9dad-11d1-80b4-00c04fd430c8";M.DNS=n;const i="6ba7b811-9dad-11d1-80b4-00c04fd430c8";M.URL=i},7811:(ue,M,p)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=void 0;var t=d(p(71785)),w=d(p(44561));function d(i){return i&&i.__esModule?i:{default:i}}M.default=function r(i,s,e){var a=s&&e||0;"string"==typeof i&&(s="binary"===i?new Array(16):null,i=null);var u=(i=i||{}).random||(i.rng||t.default)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,s)for(var h=0;h<16;++h)s[a+h]=u[h];return s||(0,w.default)(u)}},5731:(ue,M,p)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=void 0;var t=d(p(76441)),w=d(p(70168));function d(i){return i&&i.__esModule?i:{default:i}}var n=(0,t.default)("v5",80,w.default);M.default=n},56516:(ue,M,p)=>{"use strict";var w=p(49145),r=function(){function n(i){void 0===i&&(i=1e3),this.maxSize=i,this.cache=new w.LRUCache(i)}return Object.defineProperty(n.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),n.prototype.put=function(i,s){var e="string"!=typeof i?n.getKeyString(i):i,a=this.populateValue(s);this.cache.put(e,a)},n.prototype.get=function(i){var s="string"!=typeof i?n.getKeyString(i):i,e=Date.now(),a=this.cache.get(s);if(a){for(var u=a.length-1;u>=0;u--)a[u].Expire<e&&a.splice(u,1);if(0===a.length)return void this.cache.remove(s)}return a},n.getKeyString=function(i){for(var s=[],e=Object.keys(i).sort(),a=0;a<e.length;a++){var u=e[a];void 0!==i[u]&&s.push(i[u])}return s.join(" ")},n.prototype.populateValue=function(i){var s=Date.now();return i.map(function(e){return{Address:e.Address||"",Expire:s+60*(e.CachePeriodInMinutes||1)*1e3}})},n.prototype.empty=function(){this.cache.empty()},n.prototype.remove=function(i){var s="string"!=typeof i?n.getKeyString(i):i;this.cache.remove(s)},n}();M.$=r},49145:(ue,M)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});var p=function w(d,r){this.key=d,this.value=r},t=function(){function w(d){if(this.nodeMap={},this.size=0,"number"!=typeof d||d<1)throw new Error("Cache size can only be positive number");this.sizeLimit=d}return Object.defineProperty(w.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),w.prototype.prependToList=function(d){this.headerNode?(this.headerNode.prev=d,d.next=this.headerNode):this.tailNode=d,this.headerNode=d,this.size++},w.prototype.removeFromTail=function(){if(this.tailNode){var d=this.tailNode,r=d.prev;return r&&(r.next=void 0),d.prev=void 0,this.tailNode=r,this.size--,d}},w.prototype.detachFromList=function(d){this.headerNode===d&&(this.headerNode=d.next),this.tailNode===d&&(this.tailNode=d.prev),d.prev&&(d.prev.next=d.next),d.next&&(d.next.prev=d.prev),d.next=void 0,d.prev=void 0,this.size--},w.prototype.get=function(d){if(this.nodeMap[d]){var r=this.nodeMap[d];return this.detachFromList(r),this.prependToList(r),r.value}},w.prototype.remove=function(d){this.nodeMap[d]&&(this.detachFromList(this.nodeMap[d]),delete this.nodeMap[d])},w.prototype.put=function(d,r){if(this.nodeMap[d])this.remove(d);else if(this.size===this.sizeLimit){var n=this.removeFromTail();delete this.nodeMap[n.key]}var s=new p(d,r);this.nodeMap[d]=s,this.prependToList(s)},w.prototype.empty=function(){for(var d=Object.keys(this.nodeMap),r=0;r<d.length;r++){var n=d[r];this.detachFromList(this.nodeMap[n]),delete this.nodeMap[n]}},w}();M.LRUCache=t},66751:(ue,M)=>{"use strict";M.byteLength=function s(m){var R=i(m),I=R[1];return 3*(R[0]+I)/4-I},M.toByteArray=function a(m){var R,q,D=i(m),I=D[0],C=D[1],P=new w(function e(m,R,D){return 3*(R+D)/4-D}(0,I,C)),j=0,V=C>0?I-4:I;for(q=0;q<V;q+=4)R=t[m.charCodeAt(q)]<<18|t[m.charCodeAt(q+1)]<<12|t[m.charCodeAt(q+2)]<<6|t[m.charCodeAt(q+3)],P[j++]=R>>16&255,P[j++]=R>>8&255,P[j++]=255&R;return 2===C&&(R=t[m.charCodeAt(q)]<<2|t[m.charCodeAt(q+1)]>>4,P[j++]=255&R),1===C&&(R=t[m.charCodeAt(q)]<<10|t[m.charCodeAt(q+1)]<<4|t[m.charCodeAt(q+2)]>>2,P[j++]=R>>8&255,P[j++]=255&R),P},M.fromByteArray=function y(m){for(var R,D=m.length,I=D%3,C=[],P=16383,j=0,V=D-I;j<V;j+=P)C.push(h(m,j,j+P>V?V:j+P));return 1===I?C.push(p[(R=m[D-1])>>2]+p[R<<4&63]+"=="):2===I&&C.push(p[(R=(m[D-2]<<8)+m[D-1])>>10]+p[R>>4&63]+p[R<<2&63]+"="),C.join("")};for(var p=[],t=[],w=typeof Uint8Array<"u"?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,n=d.length;r<n;++r)p[r]=d[r],t[d.charCodeAt(r)]=r;function i(m){var R=m.length;if(R%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var D=m.indexOf("=");return-1===D&&(D=R),[D,D===R?0:4-D%4]}function u(m){return p[m>>18&63]+p[m>>12&63]+p[m>>6&63]+p[63&m]}function h(m,R,D){for(var C=[],P=R;P<D;P+=3)C.push(u((m[P]<<16&16711680)+(m[P+1]<<8&65280)+(255&m[P+2])));return C.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63},75877:(ue,M,p)=>{"use strict";var w=p(66751),d=p(10107),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;M.lW=e,M.h2=50;var n=2147483647;function s(ne){if(ne>n)throw new RangeError('The value "'+ne+'" is invalid for option "size"');var U=new Uint8Array(ne);return Object.setPrototypeOf(U,e.prototype),U}function e(ne,U,v){if("number"==typeof ne){if("string"==typeof U)throw new TypeError('The "string" argument must be of type string. Received type number');return y(ne)}return a(ne,U,v)}function a(ne,U,v){if("string"==typeof ne)return function m(ne,U){if(("string"!=typeof U||""===U)&&(U="utf8"),!e.isEncoding(U))throw new TypeError("Unknown encoding: "+U);var v=0|V(ne,U),O=s(v),k=O.write(ne,U);return k!==v&&(O=O.slice(0,k)),O}(ne,U);if(ArrayBuffer.isView(ne))return function D(ne){if(Re(ne,Uint8Array)){var U=new Uint8Array(ne);return I(U.buffer,U.byteOffset,U.byteLength)}return R(ne)}(ne);if(null==ne)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ne);if(Re(ne,ArrayBuffer)||ne&&Re(ne.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Re(ne,SharedArrayBuffer)||ne&&Re(ne.buffer,SharedArrayBuffer)))return I(ne,U,v);if("number"==typeof ne)throw new TypeError('The "value" argument must not be of type number. Received type number');var O=ne.valueOf&&ne.valueOf();if(null!=O&&O!==ne)return e.from(O,U,v);var k=function C(ne){if(e.isBuffer(ne)){var U=0|P(ne.length),v=s(U);return 0===v.length||ne.copy(v,0,0,U),v}return void 0!==ne.length?"number"!=typeof ne.length||De(ne.length)?s(0):R(ne):"Buffer"===ne.type&&Array.isArray(ne.data)?R(ne.data):void 0}(ne);if(k)return k;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof ne[Symbol.toPrimitive])return e.from(ne[Symbol.toPrimitive]("string"),U,v);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ne)}function u(ne){if("number"!=typeof ne)throw new TypeError('"size" argument must be of type number');if(ne<0)throw new RangeError('The value "'+ne+'" is invalid for option "size"')}function y(ne){return u(ne),s(ne<0?0:0|P(ne))}function R(ne){for(var U=ne.length<0?0:0|P(ne.length),v=s(U),O=0;O<U;O+=1)v[O]=255&ne[O];return v}function I(ne,U,v){if(U<0||ne.byteLength<U)throw new RangeError('"offset" is outside of buffer bounds');if(ne.byteLength<U+(v||0))throw new RangeError('"length" is outside of buffer bounds');var O;return O=void 0===U&&void 0===v?new Uint8Array(ne):void 0===v?new Uint8Array(ne,U):new Uint8Array(ne,U,v),Object.setPrototypeOf(O,e.prototype),O}function P(ne){if(ne>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return 0|ne}function V(ne,U){if(e.isBuffer(ne))return ne.length;if(ArrayBuffer.isView(ne)||Re(ne,ArrayBuffer))return ne.byteLength;if("string"!=typeof ne)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ne);var v=ne.length,O=arguments.length>2&&!0===arguments[2];if(!O&&0===v)return 0;for(var k=!1;;)switch(U){case"ascii":case"latin1":case"binary":return v;case"utf8":case"utf-8":return W(ne).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*v;case"hex":return v>>>1;case"base64":return _e(ne).length;default:if(k)return O?-1:W(ne).length;U=(""+U).toLowerCase(),k=!0}}function q(ne,U,v){var O=!1;if((void 0===U||U<0)&&(U=0),U>this.length||((void 0===v||v>this.length)&&(v=this.length),v<=0)||(v>>>=0)<=(U>>>=0))return"";for(ne||(ne="utf8");;)switch(ne){case"hex":return ae(this,U,v);case"utf8":case"utf-8":return $(this,U,v);case"ascii":return Z(this,U,v);case"latin1":case"binary":return pe(this,U,v);case"base64":return Q(this,U,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,U,v);default:if(O)throw new TypeError("Unknown encoding: "+ne);ne=(ne+"").toLowerCase(),O=!0}}function L(ne,U,v){var O=ne[U];ne[U]=ne[v],ne[v]=O}function g(ne,U,v,O,k){if(0===ne.length)return-1;if("string"==typeof v?(O=v,v=0):v>2147483647?v=2147483647:v<-2147483648&&(v=-2147483648),De(v=+v)&&(v=k?0:ne.length-1),v<0&&(v=ne.length+v),v>=ne.length){if(k)return-1;v=ne.length-1}else if(v<0){if(!k)return-1;v=0}if("string"==typeof U&&(U=e.from(U,O)),e.isBuffer(U))return 0===U.length?-1:T(ne,U,v,O,k);if("number"==typeof U)return U&=255,"function"==typeof Uint8Array.prototype.indexOf?k?Uint8Array.prototype.indexOf.call(ne,U,v):Uint8Array.prototype.lastIndexOf.call(ne,U,v):T(ne,[U],v,O,k);throw new TypeError("val must be string, number or Buffer")}function T(ne,U,v,O,k){var te,re=1,de=ne.length,xe=U.length;if(void 0!==O&&("ucs2"===(O=String(O).toLowerCase())||"ucs-2"===O||"utf16le"===O||"utf-16le"===O)){if(ne.length<2||U.length<2)return-1;re=2,de/=2,xe/=2,v/=2}function Te(Ie,Ue){return 1===re?Ie[Ue]:Ie.readUInt16BE(Ue*re)}if(k){var he=-1;for(te=v;te<de;te++)if(Te(ne,te)===Te(U,-1===he?0:te-he)){if(-1===he&&(he=te),te-he+1===xe)return he*re}else-1!==he&&(te-=te-he),he=-1}else for(v+xe>de&&(v=de-xe),te=v;te>=0;te--){for(var ve=!0,Oe=0;Oe<xe;Oe++)if(Te(ne,te+Oe)!==Te(U,Oe)){ve=!1;break}if(ve)return te}return-1}function c(ne,U,v,O){v=Number(v)||0;var k=ne.length-v;O?(O=Number(O))>k&&(O=k):O=k;var re=U.length;O>re/2&&(O=re/2);for(var de=0;de<O;++de){var xe=parseInt(U.substr(2*de,2),16);if(De(xe))return de;ne[v+de]=xe}return de}function _(ne,U,v,O){return ye(W(U,ne.length-v),ne,v,O)}function l(ne,U,v,O){return ye(function ee(ne){for(var U=[],v=0;v<ne.length;++v)U.push(255&ne.charCodeAt(v));return U}(U),ne,v,O)}function F(ne,U,v,O){return ye(_e(U),ne,v,O)}function K(ne,U,v,O){return ye(function se(ne,U){for(var v,O,re=[],de=0;de<ne.length&&!((U-=2)<0);++de)O=(v=ne.charCodeAt(de))>>8,re.push(v%256),re.push(O);return re}(U,ne.length-v),ne,v,O)}function Q(ne,U,v){return w.fromByteArray(0===U&&v===ne.length?ne:ne.slice(U,v))}function $(ne,U,v){v=Math.min(ne.length,v);for(var O=[],k=U;k<v;){var Te,te,he,ve,re=ne[k],de=null,xe=re>239?4:re>223?3:re>191?2:1;if(k+xe<=v)switch(xe){case 1:re<128&&(de=re);break;case 2:128==(192&(Te=ne[k+1]))&&(ve=(31&re)<<6|63&Te)>127&&(de=ve);break;case 3:te=ne[k+2],128==(192&(Te=ne[k+1]))&&128==(192&te)&&(ve=(15&re)<<12|(63&Te)<<6|63&te)>2047&&(ve<55296||ve>57343)&&(de=ve);break;case 4:te=ne[k+2],he=ne[k+3],128==(192&(Te=ne[k+1]))&&128==(192&te)&&128==(192&he)&&(ve=(15&re)<<18|(63&Te)<<12|(63&te)<<6|63&he)>65535&&ve<1114112&&(de=ve)}null===de?(de=65533,xe=1):de>65535&&(O.push((de-=65536)>>>10&1023|55296),de=56320|1023&de),O.push(de),k+=xe}return function ge(ne){var U=ne.length;if(U<=4096)return String.fromCharCode.apply(String,ne);for(var v="",O=0;O<U;)v+=String.fromCharCode.apply(String,ne.slice(O,O+=4096));return v}(O)}function Z(ne,U,v){var O="";v=Math.min(ne.length,v);for(var k=U;k<v;++k)O+=String.fromCharCode(127&ne[k]);return O}function pe(ne,U,v){var O="";v=Math.min(ne.length,v);for(var k=U;k<v;++k)O+=String.fromCharCode(ne[k]);return O}function ae(ne,U,v){var O=ne.length;(!U||U<0)&&(U=0),(!v||v<0||v>O)&&(v=O);for(var k="",re=U;re<v;++re)k+=Me[ne[re]];return k}function z(ne,U,v){for(var O=ne.slice(U,v),k="",re=0;re<O.length-1;re+=2)k+=String.fromCharCode(O[re]+256*O[re+1]);return k}function Y(ne,U,v){if(ne%1!=0||ne<0)throw new RangeError("offset is not uint");if(ne+U>v)throw new RangeError("Trying to access beyond buffer length")}function ie(ne,U,v,O,k,re){if(!e.isBuffer(ne))throw new TypeError('"buffer" argument must be a Buffer instance');if(U>k||U<re)throw new RangeError('"value" argument is out of bounds');if(v+O>ne.length)throw new RangeError("Index out of range")}function J(ne,U,v,O,k,re){if(v+O>ne.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("Index out of range")}function A(ne,U,v,O,k){return U=+U,v>>>=0,k||J(ne,0,v,4),d.write(ne,U,v,O,23,4),v+4}function b(ne,U,v,O,k){return U=+U,v>>>=0,k||J(ne,0,v,8),d.write(ne,U,v,O,52,8),v+8}!(e.TYPED_ARRAY_SUPPORT=function i(){try{var ne=new Uint8Array(1),U={foo:function(){return 42}};return Object.setPrototypeOf(U,Uint8Array.prototype),Object.setPrototypeOf(ne,U),42===ne.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(e.prototype,"parent",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.buffer}}),Object.defineProperty(e.prototype,"offset",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.byteOffset}}),e.poolSize=8192,e.from=function(ne,U,v){return a(ne,U,v)},Object.setPrototypeOf(e.prototype,Uint8Array.prototype),Object.setPrototypeOf(e,Uint8Array),e.alloc=function(ne,U,v){return function h(ne,U,v){return u(ne),ne<=0?s(ne):void 0!==U?"string"==typeof v?s(ne).fill(U,v):s(ne).fill(U):s(ne)}(ne,U,v)},e.allocUnsafe=function(ne){return y(ne)},e.allocUnsafeSlow=function(ne){return y(ne)},e.isBuffer=function(U){return null!=U&&!0===U._isBuffer&&U!==e.prototype},e.compare=function(U,v){if(Re(U,Uint8Array)&&(U=e.from(U,U.offset,U.byteLength)),Re(v,Uint8Array)&&(v=e.from(v,v.offset,v.byteLength)),!e.isBuffer(U)||!e.isBuffer(v))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(U===v)return 0;for(var O=U.length,k=v.length,re=0,de=Math.min(O,k);re<de;++re)if(U[re]!==v[re]){O=U[re],k=v[re];break}return O<k?-1:k<O?1:0},e.isEncoding=function(U){switch(String(U).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},e.concat=function(U,v){if(!Array.isArray(U))throw new TypeError('"list" argument must be an Array of Buffers');if(0===U.length)return e.alloc(0);var O;if(void 0===v)for(v=0,O=0;O<U.length;++O)v+=U[O].length;var k=e.allocUnsafe(v),re=0;for(O=0;O<U.length;++O){var de=U[O];if(Re(de,Uint8Array))re+de.length>k.length?e.from(de).copy(k,re):Uint8Array.prototype.set.call(k,de,re);else{if(!e.isBuffer(de))throw new TypeError('"list" argument must be an Array of Buffers');de.copy(k,re)}re+=de.length}return k},e.byteLength=V,e.prototype._isBuffer=!0,e.prototype.swap16=function(){var U=this.length;if(U%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var v=0;v<U;v+=2)L(this,v,v+1);return this},e.prototype.swap32=function(){var U=this.length;if(U%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var v=0;v<U;v+=4)L(this,v,v+3),L(this,v+1,v+2);return this},e.prototype.swap64=function(){var U=this.length;if(U%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var v=0;v<U;v+=8)L(this,v,v+7),L(this,v+1,v+6),L(this,v+2,v+5),L(this,v+3,v+4);return this},e.prototype.toLocaleString=e.prototype.toString=function(){var U=this.length;return 0===U?"":0===arguments.length?$(this,0,U):q.apply(this,arguments)},e.prototype.equals=function(U){if(!e.isBuffer(U))throw new TypeError("Argument must be a Buffer");return this===U||0===e.compare(this,U)},e.prototype.inspect=function(){var U="",v=M.h2;return U=this.toString("hex",0,v).replace(/(.{2})/g,"$1 ").trim(),this.length>v&&(U+=" ... "),"<Buffer "+U+">"},r&&(e.prototype[r]=e.prototype.inspect),e.prototype.compare=function(U,v,O,k,re){if(Re(U,Uint8Array)&&(U=e.from(U,U.offset,U.byteLength)),!e.isBuffer(U))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof U);if(void 0===v&&(v=0),void 0===O&&(O=U?U.length:0),void 0===k&&(k=0),void 0===re&&(re=this.length),v<0||O>U.length||k<0||re>this.length)throw new RangeError("out of range index");if(k>=re&&v>=O)return 0;if(k>=re)return-1;if(v>=O)return 1;if(this===U)return 0;for(var de=(re>>>=0)-(k>>>=0),xe=(O>>>=0)-(v>>>=0),Te=Math.min(de,xe),te=this.slice(k,re),he=U.slice(v,O),ve=0;ve<Te;++ve)if(te[ve]!==he[ve]){de=te[ve],xe=he[ve];break}return de<xe?-1:xe<de?1:0},e.prototype.includes=function(U,v,O){return-1!==this.indexOf(U,v,O)},e.prototype.indexOf=function(U,v,O){return g(this,U,v,O,!0)},e.prototype.lastIndexOf=function(U,v,O){return g(this,U,v,O,!1)},e.prototype.write=function(U,v,O,k){if(void 0===v)k="utf8",O=this.length,v=0;else if(void 0===O&&"string"==typeof v)k=v,O=this.length,v=0;else{if(!isFinite(v))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");v>>>=0,isFinite(O)?(O>>>=0,void 0===k&&(k="utf8")):(k=O,O=void 0)}var re=this.length-v;if((void 0===O||O>re)&&(O=re),U.length>0&&(O<0||v<0)||v>this.length)throw new RangeError("Attempt to write outside buffer bounds");k||(k="utf8");for(var de=!1;;)switch(k){case"hex":return c(this,U,v,O);case"utf8":case"utf-8":return _(this,U,v,O);case"ascii":case"latin1":case"binary":return l(this,U,v,O);case"base64":return F(this,U,v,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,U,v,O);default:if(de)throw new TypeError("Unknown encoding: "+k);k=(""+k).toLowerCase(),de=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},e.prototype.slice=function(U,v){var O=this.length;(U=~~U)<0?(U+=O)<0&&(U=0):U>O&&(U=O),(v=void 0===v?O:~~v)<0?(v+=O)<0&&(v=0):v>O&&(v=O),v<U&&(v=U);var k=this.subarray(U,v);return Object.setPrototypeOf(k,e.prototype),k},e.prototype.readUintLE=e.prototype.readUIntLE=function(U,v,O){U>>>=0,v>>>=0,O||Y(U,v,this.length);for(var k=this[U],re=1,de=0;++de<v&&(re*=256);)k+=this[U+de]*re;return k},e.prototype.readUintBE=e.prototype.readUIntBE=function(U,v,O){U>>>=0,v>>>=0,O||Y(U,v,this.length);for(var k=this[U+--v],re=1;v>0&&(re*=256);)k+=this[U+--v]*re;return k},e.prototype.readUint8=e.prototype.readUInt8=function(U,v){return U>>>=0,v||Y(U,1,this.length),this[U]},e.prototype.readUint16LE=e.prototype.readUInt16LE=function(U,v){return U>>>=0,v||Y(U,2,this.length),this[U]|this[U+1]<<8},e.prototype.readUint16BE=e.prototype.readUInt16BE=function(U,v){return U>>>=0,v||Y(U,2,this.length),this[U]<<8|this[U+1]},e.prototype.readUint32LE=e.prototype.readUInt32LE=function(U,v){return U>>>=0,v||Y(U,4,this.length),(this[U]|this[U+1]<<8|this[U+2]<<16)+16777216*this[U+3]},e.prototype.readUint32BE=e.prototype.readUInt32BE=function(U,v){return U>>>=0,v||Y(U,4,this.length),16777216*this[U]+(this[U+1]<<16|this[U+2]<<8|this[U+3])},e.prototype.readIntLE=function(U,v,O){U>>>=0,v>>>=0,O||Y(U,v,this.length);for(var k=this[U],re=1,de=0;++de<v&&(re*=256);)k+=this[U+de]*re;return k>=(re*=128)&&(k-=Math.pow(2,8*v)),k},e.prototype.readIntBE=function(U,v,O){U>>>=0,v>>>=0,O||Y(U,v,this.length);for(var k=v,re=1,de=this[U+--k];k>0&&(re*=256);)de+=this[U+--k]*re;return de>=(re*=128)&&(de-=Math.pow(2,8*v)),de},e.prototype.readInt8=function(U,v){return U>>>=0,v||Y(U,1,this.length),128&this[U]?-1*(255-this[U]+1):this[U]},e.prototype.readInt16LE=function(U,v){U>>>=0,v||Y(U,2,this.length);var O=this[U]|this[U+1]<<8;return 32768&O?4294901760|O:O},e.prototype.readInt16BE=function(U,v){U>>>=0,v||Y(U,2,this.length);var O=this[U+1]|this[U]<<8;return 32768&O?4294901760|O:O},e.prototype.readInt32LE=function(U,v){return U>>>=0,v||Y(U,4,this.length),this[U]|this[U+1]<<8|this[U+2]<<16|this[U+3]<<24},e.prototype.readInt32BE=function(U,v){return U>>>=0,v||Y(U,4,this.length),this[U]<<24|this[U+1]<<16|this[U+2]<<8|this[U+3]},e.prototype.readFloatLE=function(U,v){return U>>>=0,v||Y(U,4,this.length),d.read(this,U,!0,23,4)},e.prototype.readFloatBE=function(U,v){return U>>>=0,v||Y(U,4,this.length),d.read(this,U,!1,23,4)},e.prototype.readDoubleLE=function(U,v){return U>>>=0,v||Y(U,8,this.length),d.read(this,U,!0,52,8)},e.prototype.readDoubleBE=function(U,v){return U>>>=0,v||Y(U,8,this.length),d.read(this,U,!1,52,8)},e.prototype.writeUintLE=e.prototype.writeUIntLE=function(U,v,O,k){U=+U,v>>>=0,O>>>=0,k||ie(this,U,v,O,Math.pow(2,8*O)-1,0);var de=1,xe=0;for(this[v]=255&U;++xe<O&&(de*=256);)this[v+xe]=U/de&255;return v+O},e.prototype.writeUintBE=e.prototype.writeUIntBE=function(U,v,O,k){U=+U,v>>>=0,O>>>=0,k||ie(this,U,v,O,Math.pow(2,8*O)-1,0);var de=O-1,xe=1;for(this[v+de]=255&U;--de>=0&&(xe*=256);)this[v+de]=U/xe&255;return v+O},e.prototype.writeUint8=e.prototype.writeUInt8=function(U,v,O){return U=+U,v>>>=0,O||ie(this,U,v,1,255,0),this[v]=255&U,v+1},e.prototype.writeUint16LE=e.prototype.writeUInt16LE=function(U,v,O){return U=+U,v>>>=0,O||ie(this,U,v,2,65535,0),this[v]=255&U,this[v+1]=U>>>8,v+2},e.prototype.writeUint16BE=e.prototype.writeUInt16BE=function(U,v,O){return U=+U,v>>>=0,O||ie(this,U,v,2,65535,0),this[v]=U>>>8,this[v+1]=255&U,v+2},e.prototype.writeUint32LE=e.prototype.writeUInt32LE=function(U,v,O){return U=+U,v>>>=0,O||ie(this,U,v,4,4294967295,0),this[v+3]=U>>>24,this[v+2]=U>>>16,this[v+1]=U>>>8,this[v]=255&U,v+4},e.prototype.writeUint32BE=e.prototype.writeUInt32BE=function(U,v,O){return U=+U,v>>>=0,O||ie(this,U,v,4,4294967295,0),this[v]=U>>>24,this[v+1]=U>>>16,this[v+2]=U>>>8,this[v+3]=255&U,v+4},e.prototype.writeIntLE=function(U,v,O,k){if(U=+U,v>>>=0,!k){var re=Math.pow(2,8*O-1);ie(this,U,v,O,re-1,-re)}var de=0,xe=1,Te=0;for(this[v]=255&U;++de<O&&(xe*=256);)U<0&&0===Te&&0!==this[v+de-1]&&(Te=1),this[v+de]=(U/xe>>0)-Te&255;return v+O},e.prototype.writeIntBE=function(U,v,O,k){if(U=+U,v>>>=0,!k){var re=Math.pow(2,8*O-1);ie(this,U,v,O,re-1,-re)}var de=O-1,xe=1,Te=0;for(this[v+de]=255&U;--de>=0&&(xe*=256);)U<0&&0===Te&&0!==this[v+de+1]&&(Te=1),this[v+de]=(U/xe>>0)-Te&255;return v+O},e.prototype.writeInt8=function(U,v,O){return U=+U,v>>>=0,O||ie(this,U,v,1,127,-128),U<0&&(U=255+U+1),this[v]=255&U,v+1},e.prototype.writeInt16LE=function(U,v,O){return U=+U,v>>>=0,O||ie(this,U,v,2,32767,-32768),this[v]=255&U,this[v+1]=U>>>8,v+2},e.prototype.writeInt16BE=function(U,v,O){return U=+U,v>>>=0,O||ie(this,U,v,2,32767,-32768),this[v]=U>>>8,this[v+1]=255&U,v+2},e.prototype.writeInt32LE=function(U,v,O){return U=+U,v>>>=0,O||ie(this,U,v,4,2147483647,-2147483648),this[v]=255&U,this[v+1]=U>>>8,this[v+2]=U>>>16,this[v+3]=U>>>24,v+4},e.prototype.writeInt32BE=function(U,v,O){return U=+U,v>>>=0,O||ie(this,U,v,4,2147483647,-2147483648),U<0&&(U=4294967295+U+1),this[v]=U>>>24,this[v+1]=U>>>16,this[v+2]=U>>>8,this[v+3]=255&U,v+4},e.prototype.writeFloatLE=function(U,v,O){return A(this,U,v,!0,O)},e.prototype.writeFloatBE=function(U,v,O){return A(this,U,v,!1,O)},e.prototype.writeDoubleLE=function(U,v,O){return b(this,U,v,!0,O)},e.prototype.writeDoubleBE=function(U,v,O){return b(this,U,v,!1,O)},e.prototype.copy=function(U,v,O,k){if(!e.isBuffer(U))throw new TypeError("argument should be a Buffer");if(O||(O=0),!k&&0!==k&&(k=this.length),v>=U.length&&(v=U.length),v||(v=0),k>0&&k<O&&(k=O),k===O||0===U.length||0===this.length)return 0;if(v<0)throw new RangeError("targetStart out of bounds");if(O<0||O>=this.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("sourceEnd out of bounds");k>this.length&&(k=this.length),U.length-v<k-O&&(k=U.length-v+O);var re=k-O;return this===U&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(v,O,k):Uint8Array.prototype.set.call(U,this.subarray(O,k),v),re},e.prototype.fill=function(U,v,O,k){if("string"==typeof U){if("string"==typeof v?(k=v,v=0,O=this.length):"string"==typeof O&&(k=O,O=this.length),void 0!==k&&"string"!=typeof k)throw new TypeError("encoding must be a string");if("string"==typeof k&&!e.isEncoding(k))throw new TypeError("Unknown encoding: "+k);if(1===U.length){var re=U.charCodeAt(0);("utf8"===k&&re<128||"latin1"===k)&&(U=re)}}else"number"==typeof U?U&=255:"boolean"==typeof U&&(U=Number(U));if(v<0||this.length<v||this.length<O)throw new RangeError("Out of range index");if(O<=v)return this;var de;if(v>>>=0,O=void 0===O?this.length:O>>>0,U||(U=0),"number"==typeof U)for(de=v;de<O;++de)this[de]=U;else{var xe=e.isBuffer(U)?U:e.from(U,k),Te=xe.length;if(0===Te)throw new TypeError('The value "'+U+'" is invalid for argument "value"');for(de=0;de<O-v;++de)this[de+v]=xe[de%Te]}return this};var x=/[^+/0-9A-Za-z-_]/g;function W(ne,U){U=U||1/0;for(var v,O=ne.length,k=null,re=[],de=0;de<O;++de){if((v=ne.charCodeAt(de))>55295&&v<57344){if(!k){if(v>56319){(U-=3)>-1&&re.push(239,191,189);continue}if(de+1===O){(U-=3)>-1&&re.push(239,191,189);continue}k=v;continue}if(v<56320){(U-=3)>-1&&re.push(239,191,189),k=v;continue}v=65536+(k-55296<<10|v-56320)}else k&&(U-=3)>-1&&re.push(239,191,189);if(k=null,v<128){if((U-=1)<0)break;re.push(v)}else if(v<2048){if((U-=2)<0)break;re.push(v>>6|192,63&v|128)}else if(v<65536){if((U-=3)<0)break;re.push(v>>12|224,v>>6&63|128,63&v|128)}else{if(!(v<1114112))throw new Error("Invalid code point");if((U-=4)<0)break;re.push(v>>18|240,v>>12&63|128,v>>6&63|128,63&v|128)}}return re}function _e(ne){return w.toByteArray(function N(ne){if((ne=(ne=ne.split("=")[0]).trim().replace(x,"")).length<2)return"";for(;ne.length%4!=0;)ne+="=";return ne}(ne))}function ye(ne,U,v,O){for(var k=0;k<O&&!(k+v>=U.length||k>=ne.length);++k)U[k+v]=ne[k];return k}function Re(ne,U){return ne instanceof U||null!=ne&&null!=ne.constructor&&null!=ne.constructor.name&&ne.constructor.name===U.name}function De(ne){return ne!=ne}var Me=function(){for(var ne="0123456789abcdef",U=new Array(256),v=0;v<16;++v)for(var O=16*v,k=0;k<16;++k)U[O+k]=ne[v]+ne[k];return U}()},63859:(ue,M,p)=>{"use strict";var t=p(66204),w=p(86535),d=w(t("String.prototype.indexOf"));ue.exports=function(n,i){var s=t(n,!!i);return"function"==typeof s&&d(n,".prototype.")>-1?w(s):s}},86535:(ue,M,p)=>{"use strict";var t=p(76026),w=p(66204),d=w("%Function.prototype.apply%"),r=w("%Function.prototype.call%"),n=w("%Reflect.apply%",!0)||t.call(r,d),i=w("%Object.getOwnPropertyDescriptor%",!0),s=w("%Object.defineProperty%",!0),e=w("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}ue.exports=function(h){var y=n(t,r,arguments);if(i&&s){var m=i(y,"length");m.configurable&&s(y,"length",{value:1+e(0,h.length-(arguments.length-1))})}return y};var a=function(){return n(t,d,arguments)};s?s(ue.exports,"apply",{value:a}):ue.exports.apply=a},41280:ue=>{var M=1e3,p=60*M,t=60*p,w=24*t;function s(e,a,u){if(!(e<a))return e<1.5*a?Math.floor(e/a)+" "+u:Math.ceil(e/a)+" "+u+"s"}ue.exports=function(e,a){a=a||{};var u=typeof e;if("string"===u&&e.length>0)return function r(e){if(!((e=String(e)).length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var u=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*u;case"days":case"day":case"d":return u*w;case"hours":case"hour":case"hrs":case"hr":case"h":return u*t;case"minutes":case"minute":case"mins":case"min":case"m":return u*p;case"seconds":case"second":case"secs":case"sec":case"s":return u*M;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}}}(e);if("number"===u&&!1===isNaN(e))return a.long?function i(e){return s(e,w,"day")||s(e,t,"hour")||s(e,p,"minute")||s(e,M,"second")||e+" ms"}(e):function n(e){return e>=w?Math.round(e/w)+"d":e>=t?Math.round(e/t)+"h":e>=p?Math.round(e/p)+"m":e>=M?Math.round(e/M)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},83483:(ue,M,p)=>{function n(){var s;try{s=M.storage.debug}catch{}return!s&&typeof process<"u"&&"env"in process&&(s=process.env.DEBUG),s}(M=ue.exports=p(23419)).log=function d(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},M.formatArgs=function w(s){var e=this.useColors;if(s[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+s[0]+(e?"%c ":" ")+"+"+M.humanize(this.diff),e){var a="color: "+this.color;s.splice(1,0,a,"color: inherit");var u=0,h=0;s[0].replace(/%[a-zA-Z%]/g,function(y){"%%"!==y&&(u++,"%c"===y&&(h=u))}),s.splice(h,0,a)}},M.save=function r(s){try{null==s?M.storage.removeItem("debug"):M.storage.debug=s}catch{}},M.load=n,M.useColors=function t(){return!!(typeof window<"u"&&window.process&&"renderer"===window.process.type)||typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},M.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:function i(){try{return window.localStorage}catch{}}(),M.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],M.formatters.j=function(s){try{return JSON.stringify(s)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},M.enable(n())},23419:(ue,M,p)=>{var t;function d(e){function a(){if(a.enabled){var u=a,h=+new Date,y=h-(t||h);u.diff=y,u.prev=t,u.curr=h,t=h;for(var m=new Array(arguments.length),R=0;R<m.length;R++)m[R]=arguments[R];m[0]=M.coerce(m[0]),"string"!=typeof m[0]&&m.unshift("%O");var D=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,function(C,P){if("%%"===C)return C;D++;var j=M.formatters[P];return"function"==typeof j&&(C=j.call(u,m[D]),m.splice(D,1),D--),C}),M.formatArgs.call(u,m);var I=a.log||M.log||console.log.bind(console);I.apply(u,m)}}return a.namespace=e,a.enabled=M.enabled(e),a.useColors=M.useColors(),a.color=function w(e){var u,a=0;for(u in e)a=(a<<5)-a+e.charCodeAt(u),a|=0;return M.colors[Math.abs(a)%M.colors.length]}(e),"function"==typeof M.init&&M.init(a),a}(M=ue.exports=d.debug=d.default=d).coerce=function s(e){return e instanceof Error?e.stack||e.message:e},M.disable=function n(){M.enable("")},M.enable=function r(e){M.save(e),M.names=[],M.skips=[];for(var a=("string"==typeof e?e:"").split(/[\s,]+/),u=a.length,h=0;h<u;h++)!a[h]||("-"===(e=a[h].replace(/\*/g,".*?"))[0]?M.skips.push(new RegExp("^"+e.substr(1)+"$")):M.names.push(new RegExp("^"+e+"$")))},M.enabled=function i(e){var a,u;for(a=0,u=M.skips.length;a<u;a++)if(M.skips[a].test(e))return!1;for(a=0,u=M.names.length;a<u;a++)if(M.names[a].test(e))return!0;return!1},M.humanize=p(41280),M.names=[],M.skips=[],M.formatters={}},5538:ue=>{function M(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function p(r){return"function"==typeof r}function w(r){return"object"==typeof r&&null!==r}function d(r){return void 0===r}ue.exports=M,M.EventEmitter=M,M.prototype._events=void 0,M.prototype._maxListeners=void 0,M.defaultMaxListeners=10,M.prototype.setMaxListeners=function(r){if(!function t(r){return"number"==typeof r}(r)||r<0||isNaN(r))throw TypeError("n must be a positive number");return this._maxListeners=r,this},M.prototype.emit=function(r){var n,i,s,e,a,u;if(this._events||(this._events={}),"error"===r&&(!this._events.error||w(this._events.error)&&!this._events.error.length)){if((n=arguments[1])instanceof Error)throw n;var h=new Error('Uncaught, unspecified "error" event. ('+n+")");throw h.context=n,h}if(d(i=this._events[r]))return!1;if(p(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:e=Array.prototype.slice.call(arguments,1),i.apply(this,e)}else if(w(i))for(e=Array.prototype.slice.call(arguments,1),s=(u=i.slice()).length,a=0;a<s;a++)u[a].apply(this,e);return!0},M.prototype.on=M.prototype.addListener=function(r,n){var i;if(!p(n))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",r,p(n.listener)?n.listener:n),this._events[r]?w(this._events[r])?this._events[r].push(n):this._events[r]=[this._events[r],n]:this._events[r]=n,w(this._events[r])&&!this._events[r].warned&&(i=d(this._maxListeners)?M.defaultMaxListeners:this._maxListeners)&&i>0&&this._events[r].length>i&&(this._events[r].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[r].length),"function"==typeof console.trace&&console.trace()),this},M.prototype.once=function(r,n){if(!p(n))throw TypeError("listener must be a function");var i=!1;function s(){this.removeListener(r,s),i||(i=!0,n.apply(this,arguments))}return s.listener=n,this.on(r,s),this},M.prototype.removeListener=function(r,n){var i,s,e,a;if(!p(n))throw TypeError("listener must be a function");if(!this._events||!this._events[r])return this;if(e=(i=this._events[r]).length,s=-1,i===n||p(i.listener)&&i.listener===n)delete this._events[r],this._events.removeListener&&this.emit("removeListener",r,n);else if(w(i)){for(a=e;a-- >0;)if(i[a]===n||i[a].listener&&i[a].listener===n){s=a;break}if(s<0)return this;1===i.length?(i.length=0,delete this._events[r]):i.splice(s,1),this._events.removeListener&&this.emit("removeListener",r,n)}return this},M.prototype.removeAllListeners=function(r){var n,i;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[r]&&delete this._events[r],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(p(i=this._events[r]))this.removeListener(r,i);else if(i)for(;i.length;)this.removeListener(r,i[i.length-1]);return delete this._events[r],this},M.prototype.listeners=function(r){return this._events&&this._events[r]?p(this._events[r])?[this._events[r]]:this._events[r].slice():[]},M.prototype.listenerCount=function(r){if(this._events){var n=this._events[r];if(p(n))return 1;if(n)return n.length}return 0},M.listenerCount=function(r,n){return r.listenerCount(n)}},67495:ue=>{"use strict";ue.exports=function(M,p){p||(p={}),"function"==typeof p&&(p={cmp:p});var r,t="boolean"==typeof p.cycles&&p.cycles,w=p.cmp&&(r=p.cmp,function(n){return function(i,s){return r({key:i,value:n[i]},{key:s,value:n[s]})}}),d=[];return function r(n){if(n&&n.toJSON&&"function"==typeof n.toJSON&&(n=n.toJSON()),void 0!==n){if("number"==typeof n)return isFinite(n)?""+n:"null";if("object"!=typeof n)return JSON.stringify(n);var i,s;if(Array.isArray(n)){for(s="[",i=0;i<n.length;i++)i&&(s+=","),s+=r(n[i])||"null";return s+"]"}if(null===n)return"null";if(-1!==d.indexOf(n)){if(t)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var e=d.push(n)-1,a=Object.keys(n).sort(w&&w(n));for(s="",i=0;i<a.length;i++){var u=a[i],h=r(n[u]);!h||(s&&(s+=","),s+=JSON.stringify(u)+":"+h)}return d.splice(e,1),"{"+s+"}"}}(M)}},72441:(ue,M,p)=>{"use strict";var t=p(61404),w=Object.prototype.toString,d=Object.prototype.hasOwnProperty,r=function(a,u,h){for(var y=0,m=a.length;y<m;y++)d.call(a,y)&&(null==h?u(a[y],y,a):u.call(h,a[y],y,a))},n=function(a,u,h){for(var y=0,m=a.length;y<m;y++)null==h?u(a.charAt(y),y,a):u.call(h,a.charAt(y),y,a)},i=function(a,u,h){for(var y in a)d.call(a,y)&&(null==h?u(a[y],y,a):u.call(h,a[y],y,a))};ue.exports=function(a,u,h){if(!t(u))throw new TypeError("iterator must be a function");var y;arguments.length>=3&&(y=h),"[object Array]"===w.call(a)?r(a,u,y):"string"==typeof a?n(a,u,y):i(a,u,y)}},61404:ue=>{"use strict";var t,w,M=Function.prototype.toString,p="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof p&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw w}}),w={},p(function(){throw 42},null,t)}catch(h){h!==w&&(p=null)}else p=null;var d=/^\s*class\b/,r=function(y){try{var m=M.call(y);return d.test(m)}catch{return!1}},i=Object.prototype.toString,a="function"==typeof Symbol&&!!Symbol.toStringTag,u="object"==typeof document&&typeof document.all>"u"&&void 0!==document.all?document.all:{};ue.exports=p?function(y){if(y===u)return!0;if(!y||"function"!=typeof y&&"object"!=typeof y)return!1;if("function"==typeof y&&!y.prototype)return!0;try{p(y,null,t)}catch(m){if(m!==w)return!1}return!r(y)}:function(y){if(y===u)return!0;if(!y||"function"!=typeof y&&"object"!=typeof y)return!1;if("function"==typeof y&&!y.prototype)return!0;if(a)return function(y){try{return!r(y)&&(M.call(y),!0)}catch{return!1}}(y);if(r(y))return!1;var m=i.call(y);return"[object Function]"===m||"[object GeneratorFunction]"===m}},20031:ue=>{"use strict";var M="Function.prototype.bind called on incompatible ",p=Array.prototype.slice,t=Object.prototype.toString,w="[object Function]";ue.exports=function(r){var n=this;if("function"!=typeof n||t.call(n)!==w)throw new TypeError(M+n);for(var s,i=p.call(arguments,1),e=function(){if(this instanceof s){var m=n.apply(this,i.concat(p.call(arguments)));return Object(m)===m?m:this}return n.apply(r,i.concat(p.call(arguments)))},a=Math.max(0,n.length-i.length),u=[],h=0;h<a;h++)u.push("$"+h);if(s=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(e),n.prototype){var y=function(){};y.prototype=n.prototype,s.prototype=new y,y.prototype=null}return s}},76026:(ue,M,p)=>{"use strict";var t=p(20031);ue.exports=Function.prototype.bind||t},66204:(ue,M,p)=>{"use strict";var t,w=SyntaxError,d=Function,r=TypeError,n=function(l){try{return d('"use strict"; return ('+l+").constructor;")()}catch{}},i=Object.getOwnPropertyDescriptor;if(i)try{i({},"")}catch{i=null}var s=function(){throw new r},e=i?function(){try{return s}catch{try{return i(arguments,"callee").get}catch{return s}}}():s,a=p(55237)(),u=Object.getPrototypeOf||function(l){return l.__proto__},h={},y=typeof Uint8Array>"u"?t:u(Uint8Array),m={"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":a?u([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":a?u(u([][Symbol.iterator]())):t,"%JSON%":"object"==typeof JSON?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!a?t:u((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!a?t:u((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":a?u(""[Symbol.iterator]()):t,"%Symbol%":a?Symbol:t,"%SyntaxError%":w,"%ThrowTypeError%":e,"%TypedArray%":y,"%TypeError%":r,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet},R=function l(F){var K;if("%AsyncFunction%"===F)K=n("async function () {}");else if("%GeneratorFunction%"===F)K=n("function* () {}");else if("%AsyncGeneratorFunction%"===F)K=n("async function* () {}");else if("%AsyncGenerator%"===F){var Q=l("%AsyncGeneratorFunction%");Q&&(K=Q.prototype)}else if("%AsyncIteratorPrototype%"===F){var $=l("%AsyncGenerator%");$&&(K=u($.prototype))}return m[F]=K,K},D={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},I=p(76026),C=p(97790),P=I.call(Function.call,Array.prototype.concat),j=I.call(Function.apply,Array.prototype.splice),V=I.call(Function.call,String.prototype.replace),q=I.call(Function.call,String.prototype.slice),L=I.call(Function.call,RegExp.prototype.exec),g=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,c=function(F){var K=q(F,0,1),Q=q(F,-1);if("%"===K&&"%"!==Q)throw new w("invalid intrinsic syntax, expected closing `%`");if("%"===Q&&"%"!==K)throw new w("invalid intrinsic syntax, expected opening `%`");var $=[];return V(F,g,function(ce,ge,Z,pe){$[$.length]=Z?V(pe,T,"$1"):ge||ce}),$},_=function(F,K){var $,Q=F;if(C(D,Q)&&(Q="%"+($=D[Q])[0]+"%"),C(m,Q)){var ce=m[Q];if(ce===h&&(ce=R(Q)),typeof ce>"u"&&!K)throw new r("intrinsic "+F+" exists, but is not available. Please file an issue!");return{alias:$,name:Q,value:ce}}throw new w("intrinsic "+F+" does not exist!")};ue.exports=function(F,K){if("string"!=typeof F||0===F.length)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof K)throw new r('"allowMissing" argument must be a boolean');if(null===L(/^%?[^%]*%?$/g,F))throw new w("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Q=c(F),$=Q.length>0?Q[0]:"",ce=_("%"+$+"%",K),ge=ce.name,Z=ce.value,pe=!1,ae=ce.alias;ae&&($=ae[0],j(Q,P([0,1],ae)));for(var z=1,Y=!0;z<Q.length;z+=1){var ie=Q[z],J=q(ie,0,1),A=q(ie,-1);if(('"'===J||"'"===J||"`"===J||'"'===A||"'"===A||"`"===A)&&J!==A)throw new w("property names with quotes must have matching quotes");if(("constructor"===ie||!Y)&&(pe=!0),C(m,ge="%"+($+="."+ie)+"%"))Z=m[ge];else if(null!=Z){if(!(ie in Z)){if(!K)throw new r("base intrinsic for "+F+" exists, but the property is not available.");return}if(i&&z+1>=Q.length){var b=i(Z,ie);Z=(Y=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:Z[ie]}else Y=C(Z,ie),Z=Z[ie];Y&&!pe&&(m[ge]=Z)}}return Z}},19636:(ue,M,p)=>{"use strict";p.d(M,{HW:()=>m,J9:()=>I,Ps:()=>y,ZP:()=>P,_t:()=>R,wO:()=>D});var t=p(5163),w=p(71439),d=new Map,r=new Map,n=!0,i=!1;function s(j){return j.replace(/[\s,]+/g," ").trim()}function h(j){var V=s(j);if(!d.has(V)){var q=(0,w.Qc)(j,{experimentalFragmentVariables:i,allowLegacyFragmentVariables:i});if(!q||"Document"!==q.kind)throw new Error("Not a valid GraphQL document.");d.set(V,function u(j){var V=new Set(j.definitions);V.forEach(function(L){L.loc&&delete L.loc,Object.keys(L).forEach(function(g){var T=L[g];T&&"object"==typeof T&&V.add(T)})});var q=j.loc;return q&&(delete q.startToken,delete q.endToken),j}(function a(j){var V=new Set,q=[];return j.definitions.forEach(function(L){if("FragmentDefinition"===L.kind){var g=L.name.value,T=function e(j){return s(j.source.body.substring(j.start,j.end))}(L.loc),c=r.get(g);c&&!c.has(T)?n&&console.warn("Warning: fragment with name "+g+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):c||r.set(g,c=new Set),c.add(T),V.has(T)||(V.add(T),q.push(L))}else q.push(L)}),(0,t.pi)((0,t.pi)({},j),{definitions:q})}(q)))}return d.get(V)}function y(j){for(var V=[],q=1;q<arguments.length;q++)V[q-1]=arguments[q];"string"==typeof j&&(j=[j]);var L=j[0];return V.forEach(function(g,T){L+=g&&"Document"===g.kind?g.loc.source.body:g,L+=j[T+1]}),h(L)}function m(){d.clear(),r.clear()}function R(){n=!1}function D(){i=!0}function I(){i=!1}var j,C_gql=y,C_resetCaches=m,C_disableFragmentWarnings=R,C_enableExperimentalFragmentVariables=D,C_disableExperimentalFragmentVariables=I;(j=y||(y={})).gql=C_gql,j.resetCaches=C_resetCaches,j.disableFragmentWarnings=C_disableFragmentWarnings,j.enableExperimentalFragmentVariables=C_enableExperimentalFragmentVariables,j.disableExperimentalFragmentVariables=C_disableExperimentalFragmentVariables,y.default=y;const P=y},55237:(ue,M,p)=>{"use strict";var t=typeof Symbol<"u"&&Symbol,w=p(50693);ue.exports=function(){return"function"==typeof t&&"function"==typeof Symbol&&"symbol"==typeof t("foo")&&"symbol"==typeof Symbol("bar")&&w()}},50693:ue=>{"use strict";ue.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var p={},t=Symbol("test"),w=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(w))return!1;for(t in p[t]=42,p)return!1;if("function"==typeof Object.keys&&0!==Object.keys(p).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(p).length)return!1;var r=Object.getOwnPropertySymbols(p);if(1!==r.length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(p,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(p,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},38411:(ue,M,p)=>{"use strict";var t=p(50693);ue.exports=function(){return t()&&!!Symbol.toStringTag}},97790:(ue,M,p)=>{"use strict";var t=p(76026);ue.exports=t.call(Function.call,Object.prototype.hasOwnProperty)},10107:(ue,M)=>{M.read=function(p,t,w,d,r){var n,i,s=8*r-d-1,e=(1<<s)-1,a=e>>1,u=-7,h=w?r-1:0,y=w?-1:1,m=p[t+h];for(h+=y,n=m&(1<<-u)-1,m>>=-u,u+=s;u>0;n=256*n+p[t+h],h+=y,u-=8);for(i=n&(1<<-u)-1,n>>=-u,u+=d;u>0;i=256*i+p[t+h],h+=y,u-=8);if(0===n)n=1-a;else{if(n===e)return i?NaN:1/0*(m?-1:1);i+=Math.pow(2,d),n-=a}return(m?-1:1)*i*Math.pow(2,n-d)},M.write=function(p,t,w,d,r,n){var i,s,e,a=8*n-r-1,u=(1<<a)-1,h=u>>1,y=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,m=d?0:n-1,R=d?1:-1,D=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=u):(i=Math.floor(Math.log(t)/Math.LN2),t*(e=Math.pow(2,-i))<1&&(i--,e*=2),(t+=i+h>=1?y/e:y*Math.pow(2,1-h))*e>=2&&(i++,e/=2),i+h>=u?(s=0,i=u):i+h>=1?(s=(t*e-1)*Math.pow(2,r),i+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,r),i=0));r>=8;p[w+m]=255&s,m+=R,s/=256,r-=8);for(i=i<<r|s,a+=r;a>0;p[w+m]=255&i,m+=R,i/=256,a-=8);p[w+m-R]|=128*D}},83201:ue=>{ue.exports="function"==typeof Object.create?function(p,t){t&&(p.super_=t,p.prototype=Object.create(t.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}))}:function(p,t){if(t){p.super_=t;var w=function(){};w.prototype=t.prototype,p.prototype=new w,p.prototype.constructor=p}}},1718:ue=>{"use strict";var M="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,p=Object.prototype.toString,t=function(n){return!(M&&n&&"object"==typeof n&&Symbol.toStringTag in n)&&"[object Arguments]"===p.call(n)},w=function(n){return!!t(n)||null!==n&&"object"==typeof n&&"number"==typeof n.length&&n.length>=0&&"[object Array]"!==p.call(n)&&"[object Function]"===p.call(n.callee)},d=function(){return t(arguments)}();t.isLegacyArguments=w,ue.exports=d?t:w},27122:(ue,M,p)=>{"use strict";var s,t=Object.prototype.toString,w=Function.prototype.toString,d=/^\s*(?:function)?\*/,r=p(38411)(),n=Object.getPrototypeOf;ue.exports=function(a){if("function"!=typeof a)return!1;if(d.test(w.call(a)))return!0;if(!r)return"[object GeneratorFunction]"===t.call(a);if(!n)return!1;if(typeof s>"u"){var h=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}}();s=!!h&&n(h)}return n(a)===s}},85981:(ue,M,p)=>{"use strict";var t=p(72441),w=p(46841),d=p(63859),r=d("Object.prototype.toString"),n=p(38411)(),i=typeof globalThis>"u"?global:globalThis,s=w(),e=d("Array.prototype.indexOf",!0)||function(D,I){for(var C=0;C<D.length;C+=1)if(D[C]===I)return C;return-1},a=d("String.prototype.slice"),u={},h=p(45394),y=Object.getPrototypeOf;n&&h&&y&&t(s,function(R){var D=new i[R];if(Symbol.toStringTag in D){var I=y(D),C=h(I,Symbol.toStringTag);if(!C){var P=y(I);C=h(P,Symbol.toStringTag)}u[R]=C.get}}),ue.exports=function(D){if(!D||"object"!=typeof D)return!1;if(!n||!(Symbol.toStringTag in D)){var I=a(r(D),8,-1);return e(s,I)>-1}return!!h&&function(D){var I=!1;return t(u,function(C,P){if(!I)try{I=C.call(D)===P}catch{}}),I}(D)}},52866:ue=>{var M={}.toString;ue.exports=Array.isArray||function(p){return"[object Array]"==M.call(p)}},57920:(ue,M)=>{!function(p){"use strict";function t(te){return null!==te&&"[object Array]"===Object.prototype.toString.call(te)}function w(te){return null!==te&&"[object Object]"===Object.prototype.toString.call(te)}function d(te,he){if(te===he)return!0;if(Object.prototype.toString.call(te)!==Object.prototype.toString.call(he))return!1;if(!0===t(te)){if(te.length!==he.length)return!1;for(var Oe=0;Oe<te.length;Oe++)if(!1===d(te[Oe],he[Oe]))return!1;return!0}if(!0===w(te)){var Ie={};for(var Ue in te)if(hasOwnProperty.call(te,Ue)){if(!1===d(te[Ue],he[Ue]))return!1;Ie[Ue]=!0}for(var qe in he)if(hasOwnProperty.call(he,qe)&&!0!==Ie[qe])return!1;return!0}return!1}function r(te){if(""===te||!1===te||null===te)return!0;if(t(te)&&0===te.length)return!0;if(w(te)){for(var he in te)if(te.hasOwnProperty(he))return!1;return!0}return!1}var s;s="function"==typeof String.prototype.trimLeft?function(te){return te.trimLeft()}:function(te){return te.match(/^\s*(.*)/)[1]};var e=0,u=2,P={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},j="EOF",V="UnquotedIdentifier",q="QuotedIdentifier",L="Rbracket",g="Rparen",T="Comma",c="Colon",_="Rbrace",l="Number",F="Current",K="Expref",Q="Pipe",Z="GT",z="LTE",Y="NE",ie="Flatten",J="Star",A="Filter",b="Dot",x="Not",N="Lbrace",W="Lbracket",ee="Lparen",se="Literal",_e={".":b,"*":J,",":T,":":c,"{":N,"}":_,"]":L,"(":ee,")":g,"@":F},ye={"<":!0,">":!0,"=":!0,"!":!0},Re={" ":!0,"\t":!0,"\n":!0};function De(te){return te>="a"&&te<="z"||te>="A"&&te<="Z"||"_"===te}function Me(te){return te>="0"&&te<="9"||"-"===te}function ne(te){return te>="a"&&te<="z"||te>="A"&&te<="Z"||te>="0"&&te<="9"||"_"===te}function U(){}U.prototype={tokenize:function(te){var ve,Oe,Ie,he=[];for(this._current=0;this._current<te.length;)if(De(te[this._current]))ve=this._current,Oe=this._consumeUnquotedIdentifier(te),he.push({type:V,value:Oe,start:ve});else if(void 0!==_e[te[this._current]])he.push({type:_e[te[this._current]],value:te[this._current],start:this._current}),this._current++;else if(Me(te[this._current]))Ie=this._consumeNumber(te),he.push(Ie);else if("["===te[this._current])Ie=this._consumeLBracket(te),he.push(Ie);else if('"'===te[this._current])ve=this._current,Oe=this._consumeQuotedIdentifier(te),he.push({type:q,value:Oe,start:ve});else if("'"===te[this._current])ve=this._current,Oe=this._consumeRawStringLiteral(te),he.push({type:se,value:Oe,start:ve});else if("`"===te[this._current]){ve=this._current;var Ue=this._consumeLiteral(te);he.push({type:se,value:Ue,start:ve})}else if(void 0!==ye[te[this._current]])he.push(this._consumeOperator(te));else if(void 0!==Re[te[this._current]])this._current++;else if("&"===te[this._current])ve=this._current,this._current++,"&"===te[this._current]?(this._current++,he.push({type:"And",value:"&&",start:ve})):he.push({type:K,value:"&",start:ve});else{if("|"!==te[this._current]){var qe=new Error("Unknown character:"+te[this._current]);throw qe.name="LexerError",qe}ve=this._current,this._current++,"|"===te[this._current]?(this._current++,he.push({type:"Or",value:"||",start:ve})):he.push({type:Q,value:"|",start:ve})}return he},_consumeUnquotedIdentifier:function(te){var he=this._current;for(this._current++;this._current<te.length&&ne(te[this._current]);)this._current++;return te.slice(he,this._current)},_consumeQuotedIdentifier:function(te){var he=this._current;this._current++;for(var ve=te.length;'"'!==te[this._current]&&this._current<ve;){var Oe=this._current;"\\"!==te[Oe]||"\\"!==te[Oe+1]&&'"'!==te[Oe+1]?Oe++:Oe+=2,this._current=Oe}return this._current++,JSON.parse(te.slice(he,this._current))},_consumeRawStringLiteral:function(te){var he=this._current;this._current++;for(var ve=te.length;"'"!==te[this._current]&&this._current<ve;){var Oe=this._current;"\\"!==te[Oe]||"\\"!==te[Oe+1]&&"'"!==te[Oe+1]?Oe++:Oe+=2,this._current=Oe}return this._current++,te.slice(he+1,this._current-1).replace("\\'","'")},_consumeNumber:function(te){var he=this._current;this._current++;for(var ve=te.length;Me(te[this._current])&&this._current<ve;)this._current++;var Oe=parseInt(te.slice(he,this._current));return{type:l,value:Oe,start:he}},_consumeLBracket:function(te){var he=this._current;return this._current++,"?"===te[this._current]?(this._current++,{type:A,value:"[?",start:he}):"]"===te[this._current]?(this._current++,{type:ie,value:"[]",start:he}):{type:W,value:"[",start:he}},_consumeOperator:function(te){var he=this._current,ve=te[he];return this._current++,"!"===ve?"="===te[this._current]?(this._current++,{type:Y,value:"!=",start:he}):{type:x,value:"!",start:he}:"<"===ve?"="===te[this._current]?(this._current++,{type:z,value:"<=",start:he}):{type:"LT",value:"<",start:he}:">"===ve?"="===te[this._current]?(this._current++,{type:"GTE",value:">=",start:he}):{type:Z,value:">",start:he}:"="===ve&&"="===te[this._current]?(this._current++,{type:"EQ",value:"==",start:he}):void 0},_consumeLiteral:function(te){this._current++;for(var Oe,he=this._current,ve=te.length;"`"!==te[this._current]&&this._current<ve;){var Ie=this._current;"\\"!==te[Ie]||"\\"!==te[Ie+1]&&"`"!==te[Ie+1]?Ie++:Ie+=2,this._current=Ie}var Ue=s(te.slice(he,this._current));return Ue=Ue.replace("\\`","`"),Oe=this._looksLikeJSON(Ue)?JSON.parse(Ue):JSON.parse('"'+Ue+'"'),this._current++,Oe},_looksLikeJSON:function(te){if(""===te)return!1;if('[{"'.indexOf(te[0])>=0)return!0;if(["true","false","null"].indexOf(te)>=0)return!0;if(!("-0123456789".indexOf(te[0])>=0))return!1;try{return JSON.parse(te),!0}catch{return!1}}};var v={};function O(){}function k(te){this.runtime=te}function re(te){this._interpreter=te,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[e]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[e]}]},contains:{_func:this._functionContains,_signature:[{types:[u,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[u]},{types:[u]}]},floor:{_func:this._functionFloor,_signature:[{types:[e]}]},length:{_func:this._functionLength,_signature:[{types:[u,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[u]},{types:[u]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[u]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[u,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}v[j]=0,v[V]=0,v[q]=0,v[L]=0,v[g]=0,v[T]=0,v[_]=0,v[l]=0,v[F]=0,v[K]=0,v[Q]=1,v.Or=2,v.And=3,v.EQ=5,v.GT=5,v.LT=5,v.GTE=5,v[z]=5,v.NE=5,v[ie]=9,v[J]=20,v[A]=21,v[b]=40,v[x]=45,v[N]=50,v[W]=55,v[ee]=60,O.prototype={parse:function(te){this._loadTokens(te),this.index=0;var he=this.expression(0);if(this._lookahead(0)!==j){var ve=this._lookaheadToken(0),Oe=new Error("Unexpected token type: "+ve.type+", value: "+ve.value);throw Oe.name="ParserError",Oe}return he},_loadTokens:function(te){var ve=(new U).tokenize(te);ve.push({type:j,value:"",start:te.length}),this.tokens=ve},expression:function(te){var he=this._lookaheadToken(0);this._advance();for(var ve=this.nud(he),Oe=this._lookahead(0);te<v[Oe];)this._advance(),ve=this.led(Oe,ve),Oe=this._lookahead(0);return ve},_lookahead:function(te){return this.tokens[this.index+te].type},_lookaheadToken:function(te){return this.tokens[this.index+te]},_advance:function(){this.index++},nud:function(te){var ve,Oe;switch(te.type){case se:return{type:"Literal",value:te.value};case V:return{type:"Field",name:te.value};case q:var Ie={type:"Field",name:te.value};if(this._lookahead(0)===ee)throw new Error("Quoted identifier not allowed for function names.");return Ie;case x:return{type:"NotExpression",children:[ve=this.expression(v.Not)]};case J:return ve=null,{type:"ValueProjection",children:[{type:"Identity"},ve=this._lookahead(0)===L?{type:"Identity"}:this._parseProjectionRHS(v.Star)]};case A:return this.led(te.type,{type:"Identity"});case N:return this._parseMultiselectHash();case ie:return{type:"Projection",children:[{type:ie,children:[{type:"Identity"}]},ve=this._parseProjectionRHS(v.Flatten)]};case W:return this._lookahead(0)===l||this._lookahead(0)===c?(ve=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},ve)):this._lookahead(0)===J&&this._lookahead(1)===L?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},ve=this._parseProjectionRHS(v.Star)]}):this._parseMultiselectList();case F:return{type:F};case K:return{type:"ExpressionReference",children:[Oe=this.expression(v.Expref)]};case ee:for(var Ue=[];this._lookahead(0)!==g;)this._lookahead(0)===F?(Oe={type:F},this._advance()):Oe=this.expression(0),Ue.push(Oe);return this._match(g),Ue[0];default:this._errorToken(te)}},led:function(te,he){var ve;switch(te){case b:var Oe=v.Dot;return this._lookahead(0)!==J?{type:"Subexpression",children:[he,ve=this._parseDotRHS(Oe)]}:(this._advance(),{type:"ValueProjection",children:[he,ve=this._parseProjectionRHS(Oe)]});case Q:return ve=this.expression(v.Pipe),{type:Q,children:[he,ve]};case"Or":return{type:"OrExpression",children:[he,ve=this.expression(v.Or)]};case"And":return{type:"AndExpression",children:[he,ve=this.expression(v.And)]};case ee:for(var qe,Ie=he.name,Ue=[];this._lookahead(0)!==g;)this._lookahead(0)===F?(qe={type:F},this._advance()):qe=this.expression(0),this._lookahead(0)===T&&this._match(T),Ue.push(qe);return this._match(g),{type:"Function",name:Ie,children:Ue};case A:var nt=this.expression(0);return this._match(L),{type:"FilterProjection",children:[he,ve=this._lookahead(0)===ie?{type:"Identity"}:this._parseProjectionRHS(v.Filter),nt]};case ie:return{type:"Projection",children:[{type:ie,children:[he]},this._parseProjectionRHS(v.Flatten)]};case"EQ":case Y:case Z:case"GTE":case"LT":case z:return this._parseComparator(he,te);case W:var Ke=this._lookaheadToken(0);return Ke.type===l||Ke.type===c?(ve=this._parseIndexExpression(),this._projectIfSlice(he,ve)):(this._match(J),this._match(L),{type:"Projection",children:[he,ve=this._parseProjectionRHS(v.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(te){if(this._lookahead(0)!==te){var he=this._lookaheadToken(0),ve=new Error("Expected "+te+", got: "+he.type);throw ve.name="ParserError",ve}this._advance()},_errorToken:function(te){var he=new Error("Invalid token ("+te.type+'): "'+te.value+'"');throw he.name="ParserError",he},_parseIndexExpression:function(){if(this._lookahead(0)===c||this._lookahead(1)===c)return this._parseSliceExpression();var te={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(L),te},_projectIfSlice:function(te,he){var ve={type:"IndexExpression",children:[te,he]};return"Slice"===he.type?{type:"Projection",children:[ve,this._parseProjectionRHS(v.Star)]}:ve},_parseSliceExpression:function(){for(var te=[null,null,null],he=0,ve=this._lookahead(0);ve!==L&&he<3;){if(ve===c)he++,this._advance();else{if(ve!==l){var Oe=this._lookahead(0),Ie=new Error("Syntax error, unexpected token: "+Oe.value+"("+Oe.type+")");throw Ie.name="Parsererror",Ie}te[he]=this._lookaheadToken(0).value,this._advance()}ve=this._lookahead(0)}return this._match(L),{type:"Slice",children:te}},_parseComparator:function(te,he){return{type:"Comparator",name:he,children:[te,this.expression(v[he])]}},_parseDotRHS:function(te){var he=this._lookahead(0);return[V,q,J].indexOf(he)>=0?this.expression(te):he===W?(this._match(W),this._parseMultiselectList()):he===N?(this._match(N),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(te){var he;if(v[this._lookahead(0)]<10)he={type:"Identity"};else if(this._lookahead(0)===W)he=this.expression(te);else if(this._lookahead(0)===A)he=this.expression(te);else{if(this._lookahead(0)!==b){var ve=this._lookaheadToken(0),Oe=new Error("Sytanx error, unexpected token: "+ve.value+"("+ve.type+")");throw Oe.name="ParserError",Oe}this._match(b),he=this._parseDotRHS(te)}return he},_parseMultiselectList:function(){for(var te=[];this._lookahead(0)!==L;){var he=this.expression(0);if(te.push(he),this._lookahead(0)===T&&(this._match(T),this._lookahead(0)===L))throw new Error("Unexpected token Rbracket")}return this._match(L),{type:"MultiSelectList",children:te}},_parseMultiselectHash:function(){for(var ve,Oe,Ie,te=[],he=[V,q];;){if(ve=this._lookaheadToken(0),he.indexOf(ve.type)<0)throw new Error("Expecting an identifier token, got: "+ve.type);if(Oe=ve.value,this._advance(),this._match(c),Ie=this.expression(0),te.push({type:"KeyValuePair",name:Oe,value:Ie}),this._lookahead(0)===T)this._match(T);else if(this._lookahead(0)===_){this._match(_);break}}return{type:"MultiSelectHash",children:te}}},k.prototype={search:function(te,he){return this.visit(te,he)},visit:function(te,he){var ve,Oe,Ie,Ue,qe,ze,nt,at,Ke;switch(te.type){case"Field":return null!==he&&w(he)?void 0===(ze=he[te.name])?null:ze:null;case"Subexpression":for(Ie=this.visit(te.children[0],he),Ke=1;Ke<te.children.length;Ke++)if(null===(Ie=this.visit(te.children[1],Ie)))return null;return Ie;case"IndexExpression":return nt=this.visit(te.children[0],he),this.visit(te.children[1],nt);case"Index":if(!t(he))return null;var ct=te.value;return ct<0&&(ct=he.length+ct),void 0===(Ie=he[ct])&&(Ie=null),Ie;case"Slice":if(!t(he))return null;var jt=te.children.slice(0),pt=this.computeSliceParams(he.length,jt),yt=pt[0],Rt=pt[1],St=pt[2];if(Ie=[],St>0)for(Ke=yt;Ke<Rt;Ke+=St)Ie.push(he[Ke]);else for(Ke=yt;Ke>Rt;Ke+=St)Ie.push(he[Ke]);return Ie;case"Projection":var ft=this.visit(te.children[0],he);if(!t(ft))return null;for(at=[],Ke=0;Ke<ft.length;Ke++)null!==(Oe=this.visit(te.children[1],ft[Ke]))&&at.push(Oe);return at;case"ValueProjection":if(!w(ft=this.visit(te.children[0],he)))return null;at=[];var Tt=function n(te){for(var he=Object.keys(te),ve=[],Oe=0;Oe<he.length;Oe++)ve.push(te[he[Oe]]);return ve}(ft);for(Ke=0;Ke<Tt.length;Ke++)null!==(Oe=this.visit(te.children[1],Tt[Ke]))&&at.push(Oe);return at;case"FilterProjection":if(!t(ft=this.visit(te.children[0],he)))return null;var Ft=[],wt=[];for(Ke=0;Ke<ft.length;Ke++)r(ve=this.visit(te.children[2],ft[Ke]))||Ft.push(ft[Ke]);for(var Ct=0;Ct<Ft.length;Ct++)null!==(Oe=this.visit(te.children[1],Ft[Ct]))&&wt.push(Oe);return wt;case"Comparator":switch(Ue=this.visit(te.children[0],he),qe=this.visit(te.children[1],he),te.name){case"EQ":Ie=d(Ue,qe);break;case Y:Ie=!d(Ue,qe);break;case Z:Ie=Ue>qe;break;case"GTE":Ie=Ue>=qe;break;case"LT":Ie=Ue<qe;break;case z:Ie=Ue<=qe;break;default:throw new Error("Unknown comparator: "+te.name)}return Ie;case ie:var It=this.visit(te.children[0],he);if(!t(It))return null;var Lt=[];for(Ke=0;Ke<It.length;Ke++)t(Oe=It[Ke])?Lt.push.apply(Lt,Oe):Lt.push(Oe);return Lt;case"Identity":return he;case"MultiSelectList":if(null===he)return null;for(at=[],Ke=0;Ke<te.children.length;Ke++)at.push(this.visit(te.children[Ke],he));return at;case"MultiSelectHash":if(null===he)return null;var Vt;for(at={},Ke=0;Ke<te.children.length;Ke++)at[(Vt=te.children[Ke]).name]=this.visit(Vt.value,he);return at;case"OrExpression":return r(ve=this.visit(te.children[0],he))&&(ve=this.visit(te.children[1],he)),ve;case"AndExpression":return!0===r(Ue=this.visit(te.children[0],he))?Ue:this.visit(te.children[1],he);case"NotExpression":return r(Ue=this.visit(te.children[0],he));case"Literal":return te.value;case Q:return nt=this.visit(te.children[0],he),this.visit(te.children[1],nt);case F:return he;case"Function":var Wt=[];for(Ke=0;Ke<te.children.length;Ke++)Wt.push(this.visit(te.children[Ke],he));return this.runtime.callFunction(te.name,Wt);case"ExpressionReference":var Et=te.children[0];return Et.jmespathType=K,Et;default:throw new Error("Unknown node type: "+te.type)}},computeSliceParams:function(te,he){var ve=he[0],Oe=he[1],Ie=he[2],Ue=[null,null,null];if(null===Ie)Ie=1;else if(0===Ie){var qe=new Error("Invalid slice, step cannot be 0");throw qe.name="RuntimeError",qe}var ze=Ie<0;return ve=null===ve?ze?te-1:0:this.capSliceRange(te,ve,Ie),Oe=null===Oe?ze?-1:te:this.capSliceRange(te,Oe,Ie),Ue[0]=ve,Ue[1]=Oe,Ue[2]=Ie,Ue},capSliceRange:function(te,he,ve){return he<0?(he+=te)<0&&(he=ve<0?-1:0):he>=te&&(he=ve<0?te-1:te),he}},re.prototype={callFunction:function(te,he){var ve=this.functionTable[te];if(void 0===ve)throw new Error("Unknown function: "+te+"()");return this._validateArgs(te,he,ve._signature),ve._func.call(this,he)},_validateArgs:function(te,he,ve){var Oe;if(ve[ve.length-1].variadic){if(he.length<ve.length)throw Oe=1===ve.length?" argument":" arguments",new Error("ArgumentError: "+te+"() takes at least"+ve.length+Oe+" but received "+he.length)}else if(he.length!==ve.length)throw Oe=1===ve.length?" argument":" arguments",new Error("ArgumentError: "+te+"() takes "+ve.length+Oe+" but received "+he.length);for(var Ie,Ue,qe,ze=0;ze<ve.length;ze++){qe=!1,Ie=ve[ze].types,Ue=this._getTypeName(he[ze]);for(var nt=0;nt<Ie.length;nt++)if(this._typeMatches(Ue,Ie[nt],he[ze])){qe=!0;break}if(!qe){var ht=Ie.map(function(at){return P[at]}).join(",");throw new Error("TypeError: "+te+"() expected argument "+(ze+1)+" to be type "+ht+" but received type "+P[Ue]+" instead.")}}},_typeMatches:function(te,he,ve){if(1===he)return!0;if(9!==he&&8!==he&&3!==he)return te===he;if(3===he)return 3===te;if(3===te){var Oe;8===he?Oe=e:9===he&&(Oe=u);for(var Ie=0;Ie<ve.length;Ie++)if(!this._typeMatches(this._getTypeName(ve[Ie]),Oe,ve[Ie]))return!1;return!0}},_getTypeName:function(te){switch(Object.prototype.toString.call(te)){case"[object String]":return u;case"[object Number]":return e;case"[object Array]":return 3;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return te.jmespathType===K?6:4}},_functionStartsWith:function(te){return 0===te[0].lastIndexOf(te[1])},_functionEndsWith:function(te){var he=te[0],ve=te[1];return-1!==he.indexOf(ve,he.length-ve.length)},_functionReverse:function(te){if(this._getTypeName(te[0])===u){for(var ve=te[0],Oe="",Ie=ve.length-1;Ie>=0;Ie--)Oe+=ve[Ie];return Oe}var Ue=te[0].slice(0);return Ue.reverse(),Ue},_functionAbs:function(te){return Math.abs(te[0])},_functionCeil:function(te){return Math.ceil(te[0])},_functionAvg:function(te){for(var he=0,ve=te[0],Oe=0;Oe<ve.length;Oe++)he+=ve[Oe];return he/ve.length},_functionContains:function(te){return te[0].indexOf(te[1])>=0},_functionFloor:function(te){return Math.floor(te[0])},_functionLength:function(te){return w(te[0])?Object.keys(te[0]).length:te[0].length},_functionMap:function(te){for(var he=[],ve=this._interpreter,Oe=te[0],Ie=te[1],Ue=0;Ue<Ie.length;Ue++)he.push(ve.visit(Oe,Ie[Ue]));return he},_functionMerge:function(te){for(var he={},ve=0;ve<te.length;ve++){var Oe=te[ve];for(var Ie in Oe)he[Ie]=Oe[Ie]}return he},_functionMax:function(te){if(te[0].length>0){if(this._getTypeName(te[0][0])===e)return Math.max.apply(Math,te[0]);for(var ve=te[0],Oe=ve[0],Ie=1;Ie<ve.length;Ie++)Oe.localeCompare(ve[Ie])<0&&(Oe=ve[Ie]);return Oe}return null},_functionMin:function(te){if(te[0].length>0){if(this._getTypeName(te[0][0])===e)return Math.min.apply(Math,te[0]);for(var ve=te[0],Oe=ve[0],Ie=1;Ie<ve.length;Ie++)ve[Ie].localeCompare(Oe)<0&&(Oe=ve[Ie]);return Oe}return null},_functionSum:function(te){for(var he=0,ve=te[0],Oe=0;Oe<ve.length;Oe++)he+=ve[Oe];return he},_functionType:function(te){switch(this._getTypeName(te[0])){case e:return"number";case u:return"string";case 3:return"array";case 4:return"object";case 5:return"boolean";case 6:return"expref";case 7:return"null"}},_functionKeys:function(te){return Object.keys(te[0])},_functionValues:function(te){for(var he=te[0],ve=Object.keys(he),Oe=[],Ie=0;Ie<ve.length;Ie++)Oe.push(he[ve[Ie]]);return Oe},_functionJoin:function(te){return te[1].join(te[0])},_functionToArray:function(te){return 3===this._getTypeName(te[0])?te[0]:[te[0]]},_functionToString:function(te){return this._getTypeName(te[0])===u?te[0]:JSON.stringify(te[0])},_functionToNumber:function(te){var ve,he=this._getTypeName(te[0]);return he===e?te[0]:he!==u||(ve=+te[0],isNaN(ve))?null:ve},_functionNotNull:function(te){for(var he=0;he<te.length;he++)if(7!==this._getTypeName(te[he]))return te[he];return null},_functionSort:function(te){var he=te[0].slice(0);return he.sort(),he},_functionSortBy:function(te){var he=te[0].slice(0);if(0===he.length)return he;var ve=this._interpreter,Oe=te[1],Ie=this._getTypeName(ve.visit(Oe,he[0]));if([e,u].indexOf(Ie)<0)throw new Error("TypeError");for(var Ue=this,qe=[],ze=0;ze<he.length;ze++)qe.push([ze,he[ze]]);qe.sort(function(ht,at){var Ke=ve.visit(Oe,ht[1]),ct=ve.visit(Oe,at[1]);if(Ue._getTypeName(Ke)!==Ie)throw new Error("TypeError: expected "+Ie+", received "+Ue._getTypeName(Ke));if(Ue._getTypeName(ct)!==Ie)throw new Error("TypeError: expected "+Ie+", received "+Ue._getTypeName(ct));return Ke>ct?1:Ke<ct?-1:ht[0]-at[0]});for(var nt=0;nt<qe.length;nt++)he[nt]=qe[nt][1];return he},_functionMaxBy:function(te){for(var Ue,qe,ve=te[0],Oe=this.createKeyFunction(te[1],[e,u]),Ie=-1/0,ze=0;ze<ve.length;ze++)(qe=Oe(ve[ze]))>Ie&&(Ie=qe,Ue=ve[ze]);return Ue},_functionMinBy:function(te){for(var Ue,qe,ve=te[0],Oe=this.createKeyFunction(te[1],[e,u]),Ie=1/0,ze=0;ze<ve.length;ze++)(qe=Oe(ve[ze]))<Ie&&(Ie=qe,Ue=ve[ze]);return Ue},createKeyFunction:function(te,he){var ve=this,Oe=this._interpreter;return function(Ue){var qe=Oe.visit(te,Ue);if(he.indexOf(ve._getTypeName(qe))<0){var ze="TypeError: expected one of "+he+", received "+ve._getTypeName(qe);throw new Error(ze)}return qe}}},p.tokenize=function xe(te){return(new U).tokenize(te)},p.compile=function de(te){return(new O).parse(te)},p.search=function Te(te,he){var ve=new O,Oe=new re,Ie=new k(Oe);Oe._interpreter=Ie;var Ue=ve.parse(he);return Ie.search(Ue,te)},p.strictDeepEqual=d}(M)},10757:ue=>{"use strict";var M=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function w(r){if(null==r)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}ue.exports=function d(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var n={},i=0;i<10;i++)n["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(n).map(function(a){return n[a]}).join(""))return!1;var e={};return"abcdefghijklmnopqrst".split("").forEach(function(a){e[a]=a}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},e)).join("")}catch{return!1}}()?Object.assign:function(r,n){for(var i,e,s=w(r),a=1;a<arguments.length;a++){for(var u in i=Object(arguments[a]))p.call(i,u)&&(s[u]=i[u]);if(M){e=M(i);for(var h=0;h<e.length;h++)t.call(i,e[h])&&(s[e[h]]=i[e[h]])}}return s}},86438:(ue,M,p)=>{"use strict";p.d(M,{Gl:()=>t.B,dP:()=>ce,re:()=>ae});var t=p(91269),w=p(91971);function d(){}var i,r=function(){function z(Y,ie){void 0===Y&&(Y=1/0),void 0===ie&&(ie=d),this.max=Y,this.dispose=ie,this.map=new Map,this.newest=null,this.oldest=null}return z.prototype.has=function(Y){return this.map.has(Y)},z.prototype.get=function(Y){var ie=this.getNode(Y);return ie&&ie.value},z.prototype.getNode=function(Y){var ie=this.map.get(Y);if(ie&&ie!==this.newest){var J=ie.older,A=ie.newer;A&&(A.older=J),J&&(J.newer=A),ie.older=this.newest,ie.older.newer=ie,ie.newer=null,this.newest=ie,ie===this.oldest&&(this.oldest=A)}return ie},z.prototype.set=function(Y,ie){var J=this.getNode(Y);return J?J.value=ie:(J={key:Y,value:ie,newer:null,older:this.newest},this.newest&&(this.newest.newer=J),this.newest=J,this.oldest=this.oldest||J,this.map.set(Y,J),J.value)},z.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},z.prototype.delete=function(Y){var ie=this.map.get(Y);return!!ie&&(ie===this.newest&&(this.newest=ie.older),ie===this.oldest&&(this.oldest=ie.newer),ie.newer&&(ie.newer.older=ie.older),ie.older&&(ie.older.newer=ie.newer),this.map.delete(Y),this.dispose(ie.value,Y),!0)},z}(),n=new w.g7,s=Object.prototype.hasOwnProperty,e=void 0===(i=Array.from)?function(z){var Y=[];return z.forEach(function(ie){return Y.push(ie)}),Y}:i;function a(z){var Y=z.unsubscribe;"function"==typeof Y&&(z.unsubscribe=void 0,Y())}var u=[];function y(z,Y){if(!z)throw new Error(Y||"assertion failure")}function R(z){switch(z.length){case 0:throw new Error("unknown value");case 1:return z[0];case 2:throw z[1]}}var I=function(){function z(Y){this.fn=Y,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++z.count}return z.prototype.peek=function(){if(1===this.value.length&&!V(this))return C(this),this.value[0]},z.prototype.recompute=function(Y){return y(!this.recomputing,"already recomputing"),C(this),V(this)?function P(z,Y){return F(z),n.withValue(z,j,[z,Y]),function Q(z,Y){if("function"==typeof z.subscribe)try{a(z),z.unsubscribe=z.subscribe.apply(null,Y)}catch{return z.setDirty(),!1}return!0}(z,Y)&&function q(z){z.dirty=!1,!V(z)&&g(z)}(z),R(z.value)}(this,Y):R(this.value)},z.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,L(this),a(this))},z.prototype.dispose=function(){var Y=this;this.setDirty(),F(this),T(this,function(ie,J){ie.setDirty(),K(ie,Y)})},z.prototype.forget=function(){this.dispose()},z.prototype.dependOn=function(Y){Y.add(this),this.deps||(this.deps=u.pop()||new Set),this.deps.add(Y)},z.prototype.forgetDeps=function(){var Y=this;this.deps&&(e(this.deps).forEach(function(ie){return ie.delete(Y)}),this.deps.clear(),u.push(this.deps),this.deps=null)},z.count=0,z}();function C(z){var Y=n.getValue();if(Y)return z.parents.add(Y),Y.childValues.has(z)||Y.childValues.set(z,[]),V(z)?c(Y,z):_(Y,z),Y}function j(z,Y){z.recomputing=!0,z.value.length=0;try{z.value[0]=z.fn.apply(null,Y)}catch(ie){z.value[1]=ie}z.recomputing=!1}function V(z){return z.dirty||!(!z.dirtyChildren||!z.dirtyChildren.size)}function L(z){T(z,c)}function g(z){T(z,_)}function T(z,Y){var ie=z.parents.size;if(ie)for(var J=e(z.parents),A=0;A<ie;++A)Y(J[A],z)}function c(z,Y){y(z.childValues.has(Y)),y(V(Y));var ie=!V(z);if(z.dirtyChildren){if(z.dirtyChildren.has(Y))return}else z.dirtyChildren=u.pop()||new Set;z.dirtyChildren.add(Y),ie&&L(z)}function _(z,Y){y(z.childValues.has(Y)),y(!V(Y));var ie=z.childValues.get(Y);0===ie.length?z.childValues.set(Y,function D(z){return z.slice(0)}(Y.value)):function m(z,Y){var ie=z.length;return ie>0&&ie===Y.length&&z[ie-1]===Y[ie-1]}(ie,Y.value)||z.setDirty(),l(z,Y),!V(z)&&g(z)}function l(z,Y){var ie=z.dirtyChildren;ie&&(ie.delete(Y),0===ie.size&&(u.length<100&&u.push(ie),z.dirtyChildren=null))}function F(z){z.childValues.size>0&&z.childValues.forEach(function(Y,ie){K(z,ie)}),z.forgetDeps(),y(null===z.dirtyChildren)}function K(z,Y){Y.parents.delete(z),z.childValues.delete(Y),l(z,Y)}var $={setDirty:!0,dispose:!0,forget:!0};function ce(z){var Y=new Map,ie=z&&z.subscribe;function J(A){var b=n.getValue();if(b){var x=Y.get(A);x||Y.set(A,x=new Set),b.dependOn(x),"function"==typeof ie&&(a(x),x.unsubscribe=ie(A))}}return J.dirty=function(b,x){var N=Y.get(b);if(N){var W=x&&s.call($,x)?x:"setDirty";e(N).forEach(function(ee){return ee[W]()}),Y.delete(b),a(N)}},J}function ge(){var z=new t.B("function"==typeof WeakMap);return function(){return z.lookupArray(arguments)}}ge();var pe=new Set;function ae(z,Y){void 0===Y&&(Y=Object.create(null));var ie=new r(Y.max||Math.pow(2,16),function(ee){return ee.dispose()}),J=Y.keyArgs,A=Y.makeCacheKey||ge(),b=function(){var ee=A.apply(null,J?J.apply(null,arguments):arguments);if(void 0===ee)return z.apply(null,arguments);var se=ie.get(ee);se||(ie.set(ee,se=new I(z)),se.subscribe=Y.subscribe,se.forget=function(){return ie.delete(ee)});var _e=se.recompute(Array.prototype.slice.call(arguments));return ie.set(ee,se),pe.add(ie),n.hasValue()||(pe.forEach(function(ye){return ye.clean()}),pe.clear()),_e};function x(ee){var se=ie.get(ee);se&&se.setDirty()}function N(ee){var se=ie.get(ee);if(se)return se.peek()}function W(ee){return ie.delete(ee)}return Object.defineProperty(b,"size",{get:function(){return ie.map.size},configurable:!1,enumerable:!1}),b.dirtyKey=x,b.dirty=function(){x(A.apply(null,arguments))},b.peekKey=N,b.peek=function(){return N(A.apply(null,arguments))},b.forgetKey=W,b.forget=function(){return W(A.apply(null,arguments))},b.makeCacheKey=A,b.getKey=J?function(){return A.apply(null,J.apply(null,arguments))}:A,Object.freeze(b)}},56473:ue=>{"use strict";function M(p,t){return Object.prototype.hasOwnProperty.call(p,t)}ue.exports=function(p,t,w,d){w=w||"=";var r={};if("string"!=typeof p||0===p.length)return r;var n=/\+/g;p=p.split(t=t||"&");var i=1e3;d&&"number"==typeof d.maxKeys&&(i=d.maxKeys);var s=p.length;i>0&&s>i&&(s=i);for(var e=0;e<s;++e){var h,y,m,R,a=p[e].replace(n,"%20"),u=a.indexOf(w);u>=0?(h=a.substr(0,u),y=a.substr(u+1)):(h=a,y=""),m=decodeURIComponent(h),R=decodeURIComponent(y),M(r,m)?Array.isArray(r[m])?r[m].push(R):r[m]=[r[m],R]:r[m]=R}return r}},49851:ue=>{"use strict";var M=function(p){switch(typeof p){case"string":return p;case"boolean":return p?"true":"false";case"number":return isFinite(p)?p:"";default:return""}};ue.exports=function(p,t,w,d){return t=t||"&",w=w||"=",null===p&&(p=void 0),"object"==typeof p?Object.keys(p).map(function(r){var n=encodeURIComponent(M(r))+w;return Array.isArray(p[r])?p[r].map(function(i){return n+encodeURIComponent(M(i))}).join(t):n+encodeURIComponent(M(p[r]))}).join(t):d?encodeURIComponent(M(d))+w+encodeURIComponent(M(p)):""}},31625:(ue,M,p)=>{"use strict";M.decode=M.parse=p(56473),M.encode=M.stringify=p(49851)},94448:function(ue,M,p){var t;ue=p.nmd(ue),function(w){"object"==typeof global&&global;var i,s=2147483647,e=36,I=/^xn--/,C=/[^\x20-\x7E]/,P=/[\x2E\u3002\uFF0E\uFF61]/g,j={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},q=Math.floor,L=String.fromCharCode;function T(ae){throw RangeError(j[ae])}function c(ae,z){for(var Y=ae.length,ie=[];Y--;)ie[Y]=z(ae[Y]);return ie}function _(ae,z){var Y=ae.split("@"),ie="";return Y.length>1&&(ie=Y[0]+"@",ae=Y[1]),ie+c((ae=ae.replace(P,".")).split("."),z).join(".")}function l(ae){for(var J,A,z=[],Y=0,ie=ae.length;Y<ie;)(J=ae.charCodeAt(Y++))>=55296&&J<=56319&&Y<ie?56320==(64512&(A=ae.charCodeAt(Y++)))?z.push(((1023&J)<<10)+(1023&A)+65536):(z.push(J),Y--):z.push(J);return z}function F(ae){return c(ae,function(z){var Y="";return z>65535&&(Y+=L((z-=65536)>>>10&1023|55296),z=56320|1023&z),Y+L(z)}).join("")}function K(ae){return ae-48<10?ae-22:ae-65<26?ae-65:ae-97<26?ae-97:e}function Q(ae,z){return ae+22+75*(ae<26)-((0!=z)<<5)}function $(ae,z,Y){var ie=0;for(ae=Y?q(ae/700):ae>>1,ae+=q(ae/z);ae>455;ie+=e)ae=q(ae/35);return q(ie+36*ae/(ae+38))}function ce(ae){var ie,x,N,W,ee,se,_e,ye,Re,De,z=[],Y=ae.length,J=0,A=128,b=72;for((x=ae.lastIndexOf("-"))<0&&(x=0),N=0;N<x;++N)ae.charCodeAt(N)>=128&&T("not-basic"),z.push(ae.charCodeAt(N));for(W=x>0?x+1:0;W<Y;){for(ee=J,se=1,_e=e;W>=Y&&T("invalid-input"),((ye=K(ae.charCodeAt(W++)))>=e||ye>q((s-J)/se))&&T("overflow"),J+=ye*se,!(ye<(Re=_e<=b?1:_e>=b+26?26:_e-b));_e+=e)se>q(s/(De=e-Re))&&T("overflow"),se*=De;b=$(J-ee,ie=z.length+1,0==ee),q(J/ie)>s-A&&T("overflow"),A+=q(J/ie),J%=ie,z.splice(J++,0,A)}return F(z)}function ge(ae){var z,Y,ie,J,A,b,x,N,W,ee,se,ye,Re,De,Me,_e=[];for(ye=(ae=l(ae)).length,z=128,Y=0,A=72,b=0;b<ye;++b)(se=ae[b])<128&&_e.push(L(se));for(ie=J=_e.length,J&&_e.push("-");ie<ye;){for(x=s,b=0;b<ye;++b)(se=ae[b])>=z&&se<x&&(x=se);for(x-z>q((s-Y)/(Re=ie+1))&&T("overflow"),Y+=(x-z)*Re,z=x,b=0;b<ye;++b)if((se=ae[b])<z&&++Y>s&&T("overflow"),se==z){for(N=Y,W=e;!(N<(ee=W<=A?1:W>=A+26?26:W-A));W+=e)_e.push(L(Q(ee+(Me=N-ee)%(De=e-ee),0))),N=q(Me/De);_e.push(L(Q(N,0))),A=$(Y,Re,ie==J),Y=0,++ie}++Y,++z}return _e.join("")}i={version:"1.3.2",ucs2:{decode:l,encode:F},decode:ce,encode:ge,toASCII:function pe(ae){return _(ae,function(z){return C.test(z)?"xn--"+ge(z):z})},toUnicode:function Z(ae){return _(ae,function(z){return I.test(z)?ce(z.slice(4).toLowerCase()):z})}},void 0!==(t=function(){return i}.call(M,p,M,ue))&&(ue.exports=t)}()},90258:(ue,M,p)=>{"use strict";var t=p(94448),w=p(829);function d(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}M.parse=j,M.resolve=function q(g,T){return j(g,!1,!0).resolve(T)},M.resolveObject=function L(g,T){return g?j(g,!1,!0).resolveObject(T):T},M.format=function V(g){return w.isString(g)&&(g=j(g)),g instanceof d?g.format():d.prototype.format.call(g)},M.Url=d;var r=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,e=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(e),u=["%","/","?",";","#"].concat(a),h=["/","?","#"],m=/^[+a-z0-9A-Z_-]{0,63}$/,R=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,D={javascript:!0,"javascript:":!0},I={javascript:!0,"javascript:":!0},C={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},P=p(31625);function j(g,T,c){if(g&&w.isObject(g)&&g instanceof d)return g;var _=new d;return _.parse(g,T,c),_}d.prototype.parse=function(g,T,c){if(!w.isString(g))throw new TypeError("Parameter 'url' must be a string, not "+typeof g);var _=g.indexOf("?"),l=-1!==_&&_<g.indexOf("#")?"?":"#",F=g.split(l);F[0]=F[0].replace(/\\/g,"/");var Q=g=F.join(l);if(Q=Q.trim(),!c&&1===g.split("#").length){var $=i.exec(Q);if($)return this.path=Q,this.href=Q,this.pathname=$[1],$[2]?(this.search=$[2],this.query=T?P.parse(this.search.substr(1)):this.search.substr(1)):T&&(this.search="",this.query={}),this}var ce=r.exec(Q);if(ce){var ge=(ce=ce[0]).toLowerCase();this.protocol=ge,Q=Q.substr(ce.length)}if(c||ce||Q.match(/^\/\/[^@\/]+@[^@\/]+/)){var Z="//"===Q.substr(0,2);Z&&(!ce||!I[ce])&&(Q=Q.substr(2),this.slashes=!0)}if(!I[ce]&&(Z||ce&&!C[ce])){for(var pe=-1,ae=0;ae<h.length;ae++)-1!==(z=Q.indexOf(h[ae]))&&(-1===pe||z<pe)&&(pe=z);var Y,ie;for(-1!==(ie=-1===pe?Q.lastIndexOf("@"):Q.lastIndexOf("@",pe))&&(Y=Q.slice(0,ie),Q=Q.slice(ie+1),this.auth=decodeURIComponent(Y)),pe=-1,ae=0;ae<u.length;ae++){var z;-1!==(z=Q.indexOf(u[ae]))&&(-1===pe||z<pe)&&(pe=z)}-1===pe&&(pe=Q.length),this.host=Q.slice(0,pe),Q=Q.slice(pe),this.parseHost(),this.hostname=this.hostname||"";var J="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!J)for(var A=this.hostname.split(/\./),b=(ae=0,A.length);ae<b;ae++){var x=A[ae];if(x&&!x.match(m)){for(var N="",W=0,ee=x.length;W<ee;W++)x.charCodeAt(W)>127?N+="x":N+=x[W];if(!N.match(m)){var se=A.slice(0,ae),_e=A.slice(ae+1),ye=x.match(R);ye&&(se.push(ye[1]),_e.unshift(ye[2])),_e.length&&(Q="/"+_e.join(".")+Q),this.hostname=se.join(".");break}}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),J||(this.hostname=t.toASCII(this.hostname)),this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,J&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==Q[0]&&(Q="/"+Q))}if(!D[ge])for(ae=0,b=a.length;ae<b;ae++){var Me=a[ae];if(-1!==Q.indexOf(Me)){var ne=encodeURIComponent(Me);ne===Me&&(ne=escape(Me)),Q=Q.split(Me).join(ne)}}var U=Q.indexOf("#");-1!==U&&(this.hash=Q.substr(U),Q=Q.slice(0,U));var v=Q.indexOf("?");return-1!==v?(this.search=Q.substr(v),this.query=Q.substr(v+1),T&&(this.query=P.parse(this.query)),Q=Q.slice(0,v)):T&&(this.search="",this.query={}),Q&&(this.pathname=Q),C[ge]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(this.search||"")),this.href=this.format(),this},d.prototype.format=function(){var g=this.auth||"";g&&(g=(g=encodeURIComponent(g)).replace(/%3A/i,":"),g+="@");var T=this.protocol||"",c=this.pathname||"",_=this.hash||"",l=!1,F="";this.host?l=g+this.host:this.hostname&&(l=g+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(l+=":"+this.port)),this.query&&w.isObject(this.query)&&Object.keys(this.query).length&&(F=P.stringify(this.query));var K=this.search||F&&"?"+F||"";return T&&":"!==T.substr(-1)&&(T+=":"),this.slashes||(!T||C[T])&&!1!==l?(l="//"+(l||""),c&&"/"!==c.charAt(0)&&(c="/"+c)):l||(l=""),_&&"#"!==_.charAt(0)&&(_="#"+_),K&&"?"!==K.charAt(0)&&(K="?"+K),T+l+(c=c.replace(/[?#]/g,function(Q){return encodeURIComponent(Q)}))+(K=K.replace("#","%23"))+_},d.prototype.resolve=function(g){return this.resolveObject(j(g,!1,!0)).format()},d.prototype.resolveObject=function(g){if(w.isString(g)){var T=new d;T.parse(g,!1,!0),g=T}for(var c=new d,_=Object.keys(this),l=0;l<_.length;l++){var F=_[l];c[F]=this[F]}if(c.hash=g.hash,""===g.href)return c.href=c.format(),c;if(g.slashes&&!g.protocol){for(var K=Object.keys(g),Q=0;Q<K.length;Q++){var $=K[Q];"protocol"!==$&&(c[$]=g[$])}return C[c.protocol]&&c.hostname&&!c.pathname&&(c.path=c.pathname="/"),c.href=c.format(),c}if(g.protocol&&g.protocol!==c.protocol){if(!C[g.protocol]){for(var ce=Object.keys(g),ge=0;ge<ce.length;ge++){var Z=ce[ge];c[Z]=g[Z]}return c.href=c.format(),c}if(c.protocol=g.protocol,g.host||I[g.protocol])c.pathname=g.pathname;else{for(var b=(g.pathname||"").split("/");b.length&&!(g.host=b.shift()););g.host||(g.host=""),g.hostname||(g.hostname=""),""!==b[0]&&b.unshift(""),b.length<2&&b.unshift(""),c.pathname=b.join("/")}return c.search=g.search,c.query=g.query,c.host=g.host||"",c.auth=g.auth,c.hostname=g.hostname||g.host,c.port=g.port,(c.pathname||c.search)&&(c.path=(c.pathname||"")+(c.search||"")),c.slashes=c.slashes||g.slashes,c.href=c.format(),c}var z=c.pathname&&"/"===c.pathname.charAt(0),Y=g.host||g.pathname&&"/"===g.pathname.charAt(0),ie=Y||z||c.host&&g.pathname,J=ie,A=c.pathname&&c.pathname.split("/")||[],x=(b=g.pathname&&g.pathname.split("/")||[],c.protocol&&!C[c.protocol]);if(x&&(c.hostname="",c.port=null,c.host&&(""===A[0]?A[0]=c.host:A.unshift(c.host)),c.host="",g.protocol&&(g.hostname=null,g.port=null,g.host&&(""===b[0]?b[0]=g.host:b.unshift(g.host)),g.host=null),ie=ie&&(""===b[0]||""===A[0])),Y)c.host=g.host||""===g.host?g.host:c.host,c.hostname=g.hostname||""===g.hostname?g.hostname:c.hostname,c.search=g.search,c.query=g.query,A=b;else if(b.length)A||(A=[]),A.pop(),A=A.concat(b),c.search=g.search,c.query=g.query;else if(!w.isNullOrUndefined(g.search))return x&&(c.hostname=c.host=A.shift(),(N=!!(c.host&&c.host.indexOf("@")>0)&&c.host.split("@"))&&(c.auth=N.shift(),c.host=c.hostname=N.shift())),c.search=g.search,c.query=g.query,(!w.isNull(c.pathname)||!w.isNull(c.search))&&(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.href=c.format(),c;if(!A.length)return c.pathname=null,c.path=c.search?"/"+c.search:null,c.href=c.format(),c;for(var W=A.slice(-1)[0],ee=(c.host||g.host||A.length>1)&&("."===W||".."===W)||""===W,se=0,_e=A.length;_e>=0;_e--)"."===(W=A[_e])?A.splice(_e,1):".."===W?(A.splice(_e,1),se++):se&&(A.splice(_e,1),se--);if(!ie&&!J)for(;se--;se)A.unshift("..");ie&&""!==A[0]&&(!A[0]||"/"!==A[0].charAt(0))&&A.unshift(""),ee&&"/"!==A.join("/").substr(-1)&&A.push("");var N,ye=""===A[0]||A[0]&&"/"===A[0].charAt(0);return x&&(c.hostname=c.host=ye?"":A.length?A.shift():"",(N=!!(c.host&&c.host.indexOf("@")>0)&&c.host.split("@"))&&(c.auth=N.shift(),c.host=c.hostname=N.shift())),(ie=ie||c.host&&A.length)&&!ye&&A.unshift(""),A.length?c.pathname=A.join("/"):(c.pathname=null,c.path=null),(!w.isNull(c.pathname)||!w.isNull(c.search))&&(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.auth=g.auth||c.auth,c.slashes=c.slashes||g.slashes,c.href=c.format(),c},d.prototype.parseHost=function(){var g=this.host,T=n.exec(g);T&&(":"!==(T=T[0])&&(this.port=T.substr(1)),g=g.substr(0,g.length-T.length)),g&&(this.hostname=g)}},829:ue=>{"use strict";ue.exports={isString:function(M){return"string"==typeof M},isObject:function(M){return"object"==typeof M&&null!==M},isNull:function(M){return null===M},isNullOrUndefined:function(M){return null==M}}},17403:ue=>{ue.exports=function(p){return p&&"object"==typeof p&&"function"==typeof p.copy&&"function"==typeof p.fill&&"function"==typeof p.readUInt8}},84593:(ue,M,p)=>{"use strict";var t=p(1718),w=p(27122),d=p(68426),r=p(85981);function n(v){return v.call.bind(v)}var i=typeof BigInt<"u",s=typeof Symbol<"u",e=n(Object.prototype.toString),a=n(Number.prototype.valueOf),u=n(String.prototype.valueOf),h=n(Boolean.prototype.valueOf);if(i)var y=n(BigInt.prototype.valueOf);if(s)var m=n(Symbol.prototype.valueOf);function R(v,O){if("object"!=typeof v)return!1;try{return O(v),!0}catch{return!1}}function F(v){return"[object Map]"===e(v)}function Q(v){return"[object Set]"===e(v)}function ce(v){return"[object WeakMap]"===e(v)}function Z(v){return"[object WeakSet]"===e(v)}function ae(v){return"[object ArrayBuffer]"===e(v)}function z(v){return!(typeof ArrayBuffer>"u")&&(ae.working?ae(v):v instanceof ArrayBuffer)}function Y(v){return"[object DataView]"===e(v)}function ie(v){return!(typeof DataView>"u")&&(Y.working?Y(v):v instanceof DataView)}M.isArgumentsObject=t,M.isGeneratorFunction=w,M.isTypedArray=r,M.isPromise=function D(v){return typeof Promise<"u"&&v instanceof Promise||null!==v&&"object"==typeof v&&"function"==typeof v.then&&"function"==typeof v.catch},M.isArrayBufferView=function I(v){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(v):r(v)||ie(v)},M.isUint8Array=function C(v){return"Uint8Array"===d(v)},M.isUint8ClampedArray=function P(v){return"Uint8ClampedArray"===d(v)},M.isUint16Array=function j(v){return"Uint16Array"===d(v)},M.isUint32Array=function V(v){return"Uint32Array"===d(v)},M.isInt8Array=function q(v){return"Int8Array"===d(v)},M.isInt16Array=function L(v){return"Int16Array"===d(v)},M.isInt32Array=function g(v){return"Int32Array"===d(v)},M.isFloat32Array=function T(v){return"Float32Array"===d(v)},M.isFloat64Array=function c(v){return"Float64Array"===d(v)},M.isBigInt64Array=function _(v){return"BigInt64Array"===d(v)},M.isBigUint64Array=function l(v){return"BigUint64Array"===d(v)},F.working=typeof Map<"u"&&F(new Map),M.isMap=function K(v){return!(typeof Map>"u")&&(F.working?F(v):v instanceof Map)},Q.working=typeof Set<"u"&&Q(new Set),M.isSet=function $(v){return!(typeof Set>"u")&&(Q.working?Q(v):v instanceof Set)},ce.working=typeof WeakMap<"u"&&ce(new WeakMap),M.isWeakMap=function ge(v){return!(typeof WeakMap>"u")&&(ce.working?ce(v):v instanceof WeakMap)},Z.working=typeof WeakSet<"u"&&Z(new WeakSet),M.isWeakSet=function pe(v){return Z(v)},ae.working=typeof ArrayBuffer<"u"&&ae(new ArrayBuffer),M.isArrayBuffer=z,Y.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Y(new DataView(new ArrayBuffer(1),0,1)),M.isDataView=ie;var J=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function A(v){return"[object SharedArrayBuffer]"===e(v)}function b(v){return!(typeof J>"u")&&(typeof A.working>"u"&&(A.working=A(new J)),A.working?A(v):v instanceof J)}function _e(v){return R(v,a)}function ye(v){return R(v,u)}function Re(v){return R(v,h)}function De(v){return i&&R(v,y)}function Me(v){return s&&R(v,m)}M.isSharedArrayBuffer=b,M.isAsyncFunction=function x(v){return"[object AsyncFunction]"===e(v)},M.isMapIterator=function N(v){return"[object Map Iterator]"===e(v)},M.isSetIterator=function W(v){return"[object Set Iterator]"===e(v)},M.isGeneratorObject=function ee(v){return"[object Generator]"===e(v)},M.isWebAssemblyCompiledModule=function se(v){return"[object WebAssembly.Module]"===e(v)},M.isNumberObject=_e,M.isStringObject=ye,M.isBooleanObject=Re,M.isBigIntObject=De,M.isSymbolObject=Me,M.isBoxedPrimitive=function ne(v){return _e(v)||ye(v)||Re(v)||De(v)||Me(v)},M.isAnyArrayBuffer=function U(v){return typeof Uint8Array<"u"&&(z(v)||b(v))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(v){Object.defineProperty(M,v,{enumerable:!1,value:function(){throw new Error(v+" is not supported in userland")}})})},14999:(ue,M,p)=>{var t=Object.getOwnPropertyDescriptors||function(ie){for(var J=Object.keys(ie),A={},b=0;b<J.length;b++)A[J[b]]=Object.getOwnPropertyDescriptor(ie,J[b]);return A},w=/%[sdj%]/g;M.format=function(Y){if(!q(Y)){for(var ie=[],J=0;J<arguments.length;J++)ie.push(i(arguments[J]));return ie.join(" ")}J=1;for(var A=arguments,b=A.length,x=String(Y).replace(w,function(W){if("%%"===W)return"%";if(J>=b)return W;switch(W){case"%s":return String(A[J++]);case"%d":return Number(A[J++]);case"%j":try{return JSON.stringify(A[J++])}catch{return"[Circular]"}default:return W}}),N=A[J];J<b;N=A[++J])P(N)||!c(N)?x+=" "+N:x+=" "+i(N);return x},M.deprecate=function(Y,ie){if(typeof process<"u"&&!0===process.noDeprecation)return Y;if(typeof process>"u")return function(){return M.deprecate(Y,ie).apply(this,arguments)};var J=!1;return function A(){if(!J){if(process.throwDeprecation)throw new Error(ie);process.traceDeprecation?console.trace(ie):console.error(ie),J=!0}return Y.apply(this,arguments)}};var d={},r=/^$/;if(process.env.NODE_DEBUG){var n=process.env.NODE_DEBUG;n=n.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),r=new RegExp("^"+n+"$","i")}function i(Y,ie){var J={seen:[],stylize:e};return arguments.length>=3&&(J.depth=arguments[2]),arguments.length>=4&&(J.colors=arguments[3]),C(ie)?J.showHidden=ie:ie&&M._extend(J,ie),g(J.showHidden)&&(J.showHidden=!1),g(J.depth)&&(J.depth=2),g(J.colors)&&(J.colors=!1),g(J.customInspect)&&(J.customInspect=!0),J.colors&&(J.stylize=s),u(J,Y,J.depth)}function s(Y,ie){var J=i.styles[ie];return J?"\x1b["+i.colors[J][0]+"m"+Y+"\x1b["+i.colors[J][1]+"m":Y}function e(Y,ie){return Y}function u(Y,ie,J){if(Y.customInspect&&ie&&F(ie.inspect)&&ie.inspect!==M.inspect&&(!ie.constructor||ie.constructor.prototype!==ie)){var A=ie.inspect(J,Y);return q(A)||(A=u(Y,A,J)),A}var b=function h(Y,ie){if(g(ie))return Y.stylize("undefined","undefined");if(q(ie)){var J="'"+JSON.stringify(ie).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Y.stylize(J,"string")}return V(ie)?Y.stylize(""+ie,"number"):C(ie)?Y.stylize(""+ie,"boolean"):P(ie)?Y.stylize("null","null"):void 0}(Y,ie);if(b)return b;var x=Object.keys(ie),N=function a(Y){var ie={};return Y.forEach(function(J,A){ie[J]=!0}),ie}(x);if(Y.showHidden&&(x=Object.getOwnPropertyNames(ie)),l(ie)&&(x.indexOf("message")>=0||x.indexOf("description")>=0))return y(ie);if(0===x.length){if(F(ie))return Y.stylize("[Function"+(ie.name?": "+ie.name:"")+"]","special");if(T(ie))return Y.stylize(RegExp.prototype.toString.call(ie),"regexp");if(_(ie))return Y.stylize(Date.prototype.toString.call(ie),"date");if(l(ie))return y(ie)}var Re,ee="",se=!1,_e=["{","}"];return I(ie)&&(se=!0,_e=["[","]"]),F(ie)&&(ee=" [Function"+(ie.name?": "+ie.name:"")+"]"),T(ie)&&(ee=" "+RegExp.prototype.toString.call(ie)),_(ie)&&(ee=" "+Date.prototype.toUTCString.call(ie)),l(ie)&&(ee=" "+y(ie)),0!==x.length||se&&0!=ie.length?J<0?T(ie)?Y.stylize(RegExp.prototype.toString.call(ie),"regexp"):Y.stylize("[Object]","special"):(Y.seen.push(ie),Re=se?function m(Y,ie,J,A,b){for(var x=[],N=0,W=ie.length;N<W;++N)Z(ie,String(N))?x.push(R(Y,ie,J,A,String(N),!0)):x.push("");return b.forEach(function(ee){ee.match(/^\d+$/)||x.push(R(Y,ie,J,A,ee,!0))}),x}(Y,ie,J,N,x):x.map(function(De){return R(Y,ie,J,N,De,se)}),Y.seen.pop(),function D(Y,ie,J){var b=Y.reduce(function(x,N){return N.indexOf("\n"),x+N.replace(/\u001b\[\d\d?m/g,"").length+1},0);return b>60?J[0]+(""===ie?"":ie+"\n ")+" "+Y.join(",\n ")+" "+J[1]:J[0]+ie+" "+Y.join(", ")+" "+J[1]}(Re,ee,_e)):_e[0]+ee+_e[1]}function y(Y){return"["+Error.prototype.toString.call(Y)+"]"}function R(Y,ie,J,A,b,x){var N,W,ee;if((ee=Object.getOwnPropertyDescriptor(ie,b)||{value:ie[b]}).get?W=Y.stylize(ee.set?"[Getter/Setter]":"[Getter]","special"):ee.set&&(W=Y.stylize("[Setter]","special")),Z(A,b)||(N="["+b+"]"),W||(Y.seen.indexOf(ee.value)<0?(W=P(J)?u(Y,ee.value,null):u(Y,ee.value,J-1)).indexOf("\n")>-1&&(W=x?W.split("\n").map(function(se){return" "+se}).join("\n").substr(2):"\n"+W.split("\n").map(function(se){return" "+se}).join("\n")):W=Y.stylize("[Circular]","special")),g(N)){if(x&&b.match(/^\d+$/))return W;(N=JSON.stringify(""+b)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(N=N.substr(1,N.length-2),N=Y.stylize(N,"name")):(N=N.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),N=Y.stylize(N,"string"))}return N+": "+W}function I(Y){return Array.isArray(Y)}function C(Y){return"boolean"==typeof Y}function P(Y){return null===Y}function V(Y){return"number"==typeof Y}function q(Y){return"string"==typeof Y}function g(Y){return void 0===Y}function T(Y){return c(Y)&&"[object RegExp]"===Q(Y)}function c(Y){return"object"==typeof Y&&null!==Y}function _(Y){return c(Y)&&"[object Date]"===Q(Y)}function l(Y){return c(Y)&&("[object Error]"===Q(Y)||Y instanceof Error)}function F(Y){return"function"==typeof Y}function Q(Y){return Object.prototype.toString.call(Y)}function $(Y){return Y<10?"0"+Y.toString(10):Y.toString(10)}M.debuglog=function(Y){if(Y=Y.toUpperCase(),!d[Y])if(r.test(Y)){var ie=process.pid;d[Y]=function(){var J=M.format.apply(M,arguments);console.error("%s %d: %s",Y,ie,J)}}else d[Y]=function(){};return d[Y]},M.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},M.types=p(84593),M.isArray=I,M.isBoolean=C,M.isNull=P,M.isNullOrUndefined=function j(Y){return null==Y},M.isNumber=V,M.isString=q,M.isSymbol=function L(Y){return"symbol"==typeof Y},M.isUndefined=g,M.isRegExp=T,M.types.isRegExp=T,M.isObject=c,M.isDate=_,M.types.isDate=_,M.isError=l,M.types.isNativeError=l,M.isFunction=F,M.isPrimitive=function K(Y){return null===Y||"boolean"==typeof Y||"number"==typeof Y||"string"==typeof Y||"symbol"==typeof Y||typeof Y>"u"},M.isBuffer=p(17403);var ce=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ge(){var Y=new Date,ie=[$(Y.getHours()),$(Y.getMinutes()),$(Y.getSeconds())].join(":");return[Y.getDate(),ce[Y.getMonth()],ie].join(" ")}function Z(Y,ie){return Object.prototype.hasOwnProperty.call(Y,ie)}M.log=function(){console.log("%s - %s",ge(),M.format.apply(M,arguments))},M.inherits=p(83201),M._extend=function(Y,ie){if(!ie||!c(ie))return Y;for(var J=Object.keys(ie),A=J.length;A--;)Y[J[A]]=ie[J[A]];return Y};var pe=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function ae(Y,ie){if(!Y){var J=new Error("Promise was rejected with a falsy value");J.reason=Y,Y=J}return ie(Y)}M.promisify=function(ie){if("function"!=typeof ie)throw new TypeError('The "original" argument must be of type Function');if(pe&&ie[pe]){var J;if("function"!=typeof(J=ie[pe]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(J,pe,{value:J,enumerable:!1,writable:!1,configurable:!0}),J}function J(){for(var A,b,x=new Promise(function(ee,se){A=ee,b=se}),N=[],W=0;W<arguments.length;W++)N.push(arguments[W]);N.push(function(ee,se){ee?b(ee):A(se)});try{ie.apply(this,N)}catch(ee){b(ee)}return x}return Object.setPrototypeOf(J,Object.getPrototypeOf(ie)),pe&&Object.defineProperty(J,pe,{value:J,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(J,t(ie))},M.promisify.custom=pe,M.callbackify=function z(Y){if("function"!=typeof Y)throw new TypeError('The "original" argument must be of type Function');function ie(){for(var J=[],A=0;A<arguments.length;A++)J.push(arguments[A]);var b=J.pop();if("function"!=typeof b)throw new TypeError("The last argument must be of type Function");var x=this,N=function(){return b.apply(x,arguments)};Y.apply(this,J).then(function(W){process.nextTick(N.bind(null,null,W))},function(W){process.nextTick(ae.bind(null,W,N))})}return Object.setPrototypeOf(ie,Object.getPrototypeOf(Y)),Object.defineProperties(ie,t(Y)),ie}},49927:(ue,M,p)=>{"use strict";p.r(M),p.d(M,{NIL:()=>Y,parse:()=>h,stringify:()=>w.Z,v1:()=>e,v3:()=>Q,v4:()=>$.Z,v5:()=>z,validate:()=>a.Z,version:()=>J});var d,r,t=p(46481),w=p(58965),n=0,i=0;const e=function s(A,b,x){var N=b&&x||0,W=b||new Array(16),ee=(A=A||{}).node||d,se=void 0!==A.clockseq?A.clockseq:r;if(null==ee||null==se){var _e=A.random||(A.rng||t.Z)();null==ee&&(ee=d=[1|_e[0],_e[1],_e[2],_e[3],_e[4],_e[5]]),null==se&&(se=r=16383&(_e[6]<<8|_e[7]))}var ye=void 0!==A.msecs?A.msecs:Date.now(),Re=void 0!==A.nsecs?A.nsecs:i+1,De=ye-n+(Re-i)/1e4;if(De<0&&void 0===A.clockseq&&(se=se+1&16383),(De<0||ye>n)&&void 0===A.nsecs&&(Re=0),Re>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");n=ye,i=Re,r=se;var Me=(1e4*(268435455&(ye+=122192928e5))+Re)%4294967296;W[N++]=Me>>>24&255,W[N++]=Me>>>16&255,W[N++]=Me>>>8&255,W[N++]=255&Me;var ne=ye/4294967296*1e4&268435455;W[N++]=ne>>>8&255,W[N++]=255&ne,W[N++]=ne>>>24&15|16,W[N++]=ne>>>16&255,W[N++]=se>>>8|128,W[N++]=255&se;for(var U=0;U<6;++U)W[N+U]=ee[U];return b||(0,w.Z)(W)};var a=p(84638);const h=function u(A){if(!(0,a.Z)(A))throw TypeError("Invalid UUID");var b,x=new Uint8Array(16);return x[0]=(b=parseInt(A.slice(0,8),16))>>>24,x[1]=b>>>16&255,x[2]=b>>>8&255,x[3]=255&b,x[4]=(b=parseInt(A.slice(9,13),16))>>>8,x[5]=255&b,x[6]=(b=parseInt(A.slice(14,18),16))>>>8,x[7]=255&b,x[8]=(b=parseInt(A.slice(19,23),16))>>>8,x[9]=255&b,x[10]=(b=parseInt(A.slice(24,36),16))/1099511627776&255,x[11]=b/4294967296&255,x[12]=b>>>24&255,x[13]=b>>>16&255,x[14]=b>>>8&255,x[15]=255&b,x};function D(A,b,x){function N(W,ee,se,_e){if("string"==typeof W&&(W=function y(A){A=unescape(encodeURIComponent(A));for(var b=[],x=0;x<A.length;++x)b.push(A.charCodeAt(x));return b}(W)),"string"==typeof ee&&(ee=h(ee)),16!==ee.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var ye=new Uint8Array(16+W.length);if(ye.set(ee),ye.set(W,ee.length),(ye=x(ye))[6]=15&ye[6]|b,ye[8]=63&ye[8]|128,se){_e=_e||0;for(var Re=0;Re<16;++Re)se[_e+Re]=ye[Re];return se}return(0,w.Z)(ye)}try{N.name=A}catch{}return N.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",N.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",N}function P(A){return 14+(A+64>>>9<<4)+1}function q(A,b){var x=(65535&A)+(65535&b);return(A>>16)+(b>>16)+(x>>16)<<16|65535&x}function g(A,b,x,N,W,ee){return q(function L(A,b){return A<<b|A>>>32-b}(q(q(b,A),q(N,ee)),W),x)}function T(A,b,x,N,W,ee,se){return g(b&x|~b&N,A,b,W,ee,se)}function c(A,b,x,N,W,ee,se){return g(b&N|x&~N,A,b,W,ee,se)}function _(A,b,x,N,W,ee,se){return g(b^x^N,A,b,W,ee,se)}function l(A,b,x,N,W,ee,se){return g(x^(b|~N),A,b,W,ee,se)}const Q=D("v3",48,function I(A){if("string"==typeof A){var b=unescape(encodeURIComponent(A));A=new Uint8Array(b.length);for(var x=0;x<b.length;++x)A[x]=b.charCodeAt(x)}return function C(A){for(var b=[],x=32*A.length,N="0123456789abcdef",W=0;W<x;W+=8){var ee=A[W>>5]>>>W%32&255,se=parseInt(N.charAt(ee>>>4&15)+N.charAt(15&ee),16);b.push(se)}return b}(function j(A,b){A[b>>5]|=128<<b%32,A[P(b)-1]=b;for(var x=1732584193,N=-271733879,W=-1732584194,ee=271733878,se=0;se<A.length;se+=16){var _e=x,ye=N,Re=W,De=ee;x=T(x,N,W,ee,A[se],7,-680876936),ee=T(ee,x,N,W,A[se+1],12,-389564586),W=T(W,ee,x,N,A[se+2],17,606105819),N=T(N,W,ee,x,A[se+3],22,-1044525330),x=T(x,N,W,ee,A[se+4],7,-176418897),ee=T(ee,x,N,W,A[se+5],12,1200080426),W=T(W,ee,x,N,A[se+6],17,-1473231341),N=T(N,W,ee,x,A[se+7],22,-45705983),x=T(x,N,W,ee,A[se+8],7,1770035416),ee=T(ee,x,N,W,A[se+9],12,-1958414417),W=T(W,ee,x,N,A[se+10],17,-42063),N=T(N,W,ee,x,A[se+11],22,-1990404162),x=T(x,N,W,ee,A[se+12],7,1804603682),ee=T(ee,x,N,W,A[se+13],12,-40341101),W=T(W,ee,x,N,A[se+14],17,-1502002290),x=c(x,N=T(N,W,ee,x,A[se+15],22,1236535329),W,ee,A[se+1],5,-165796510),ee=c(ee,x,N,W,A[se+6],9,-1069501632),W=c(W,ee,x,N,A[se+11],14,643717713),N=c(N,W,ee,x,A[se],20,-373897302),x=c(x,N,W,ee,A[se+5],5,-701558691),ee=c(ee,x,N,W,A[se+10],9,38016083),W=c(W,ee,x,N,A[se+15],14,-660478335),N=c(N,W,ee,x,A[se+4],20,-405537848),x=c(x,N,W,ee,A[se+9],5,568446438),ee=c(ee,x,N,W,A[se+14],9,-1019803690),W=c(W,ee,x,N,A[se+3],14,-187363961),N=c(N,W,ee,x,A[se+8],20,1163531501),x=c(x,N,W,ee,A[se+13],5,-1444681467),ee=c(ee,x,N,W,A[se+2],9,-51403784),W=c(W,ee,x,N,A[se+7],14,1735328473),x=_(x,N=c(N,W,ee,x,A[se+12],20,-1926607734),W,ee,A[se+5],4,-378558),ee=_(ee,x,N,W,A[se+8],11,-2022574463),W=_(W,ee,x,N,A[se+11],16,1839030562),N=_(N,W,ee,x,A[se+14],23,-35309556),x=_(x,N,W,ee,A[se+1],4,-1530992060),ee=_(ee,x,N,W,A[se+4],11,1272893353),W=_(W,ee,x,N,A[se+7],16,-155497632),N=_(N,W,ee,x,A[se+10],23,-1094730640),x=_(x,N,W,ee,A[se+13],4,681279174),ee=_(ee,x,N,W,A[se],11,-358537222),W=_(W,ee,x,N,A[se+3],16,-722521979),N=_(N,W,ee,x,A[se+6],23,76029189),x=_(x,N,W,ee,A[se+9],4,-640364487),ee=_(ee,x,N,W,A[se+12],11,-421815835),W=_(W,ee,x,N,A[se+15],16,530742520),x=l(x,N=_(N,W,ee,x,A[se+2],23,-995338651),W,ee,A[se],6,-198630844),ee=l(ee,x,N,W,A[se+7],10,1126891415),W=l(W,ee,x,N,A[se+14],15,-1416354905),N=l(N,W,ee,x,A[se+5],21,-57434055),x=l(x,N,W,ee,A[se+12],6,1700485571),ee=l(ee,x,N,W,A[se+3],10,-1894986606),W=l(W,ee,x,N,A[se+10],15,-1051523),N=l(N,W,ee,x,A[se+1],21,-2054922799),x=l(x,N,W,ee,A[se+8],6,1873313359),ee=l(ee,x,N,W,A[se+15],10,-30611744),W=l(W,ee,x,N,A[se+6],15,-1560198380),N=l(N,W,ee,x,A[se+13],21,1309151649),x=l(x,N,W,ee,A[se+4],6,-145523070),ee=l(ee,x,N,W,A[se+11],10,-1120210379),W=l(W,ee,x,N,A[se+2],15,718787259),N=l(N,W,ee,x,A[se+9],21,-343485551),x=q(x,_e),N=q(N,ye),W=q(W,Re),ee=q(ee,De)}return[x,N,W,ee]}(function V(A){if(0===A.length)return[];for(var b=8*A.length,x=new Uint32Array(P(b)),N=0;N<b;N+=8)x[N>>5]|=(255&A[N/8])<<N%32;return x}(A),8*A.length))});var $=p(14926);function ce(A,b,x,N){switch(A){case 0:return b&x^~b&N;case 1:case 3:return b^x^N;case 2:return b&x^b&N^x&N}}function ge(A,b){return A<<b|A>>>32-b}const z=D("v5",80,function Z(A){var b=[1518500249,1859775393,2400959708,3395469782],x=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof A){var N=unescape(encodeURIComponent(A));A=[];for(var W=0;W<N.length;++W)A.push(N.charCodeAt(W))}else Array.isArray(A)||(A=Array.prototype.slice.call(A));A.push(128);for(var se=Math.ceil((A.length/4+2)/16),_e=new Array(se),ye=0;ye<se;++ye){for(var Re=new Uint32Array(16),De=0;De<16;++De)Re[De]=A[64*ye+4*De]<<24|A[64*ye+4*De+1]<<16|A[64*ye+4*De+2]<<8|A[64*ye+4*De+3];_e[ye]=Re}_e[se-1][14]=8*(A.length-1)/Math.pow(2,32),_e[se-1][14]=Math.floor(_e[se-1][14]),_e[se-1][15]=8*(A.length-1)&4294967295;for(var Me=0;Me<se;++Me){for(var ne=new Uint32Array(80),U=0;U<16;++U)ne[U]=_e[Me][U];for(var v=16;v<80;++v)ne[v]=ge(ne[v-3]^ne[v-8]^ne[v-14]^ne[v-16],1);for(var O=x[0],k=x[1],re=x[2],de=x[3],xe=x[4],Te=0;Te<80;++Te){var te=Math.floor(Te/20),he=ge(O,5)+ce(te,k,re,de)+xe+b[te]+ne[Te]>>>0;xe=de,de=re,re=ge(k,30)>>>0,k=O,O=he}x[0]=x[0]+O>>>0,x[1]=x[1]+k>>>0,x[2]=x[2]+re>>>0,x[3]=x[3]+de>>>0,x[4]=x[4]+xe>>>0}return[x[0]>>24&255,x[0]>>16&255,x[0]>>8&255,255&x[0],x[1]>>24&255,x[1]>>16&255,x[1]>>8&255,255&x[1],x[2]>>24&255,x[2]>>16&255,x[2]>>8&255,255&x[2],x[3]>>24&255,x[3]>>16&255,x[3]>>8&255,255&x[3],x[4]>>24&255,x[4]>>16&255,x[4]>>8&255,255&x[4]]}),Y="00000000-0000-0000-0000-000000000000",J=function ie(A){if(!(0,a.Z)(A))throw TypeError("Invalid UUID");return parseInt(A.substr(14,1),16)}},68426:(ue,M,p)=>{"use strict";var t=p(72441),w=p(46841),d=p(63859),r=d("Object.prototype.toString"),n=p(38411)(),i=typeof globalThis>"u"?global:globalThis,s=w(),e=d("String.prototype.slice"),a={},u=p(45394),h=Object.getPrototypeOf;n&&u&&h&&t(s,function(R){if("function"==typeof i[R]){var D=new i[R];if(Symbol.toStringTag in D){var I=h(D),C=u(I,Symbol.toStringTag);if(!C){var P=h(I);C=u(P,Symbol.toStringTag)}a[R]=C.get}}});var m=p(85981);ue.exports=function(D){return!!m(D)&&(n&&Symbol.toStringTag in D?function(D){var I=!1;return t(a,function(C,P){if(!I)try{var j=C.call(D);j===P&&(I=j)}catch{}}),I}(D):e(r(D),8,-1))}},20316:(ue,M,p)=>{ue.exports=p(16390).Observable},16390:(ue,M)=>{"use strict";function t(g,T){if(!(g instanceof T))throw new TypeError("Cannot call a class as a function")}function w(g,T){for(var c=0;c<T.length;c++){var _=T[c];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}function d(g,T,c){return T&&w(g.prototype,T),c&&w(g,c),g}M.Observable=void 0;var r=function(){return"function"==typeof Symbol},n=function(g){return r()&&Boolean(Symbol[g])},i=function(g){return n(g)?Symbol[g]:"@@"+g};r()&&!n("observable")&&(Symbol.observable=Symbol("observable"));var s=i("iterator"),e=i("observable"),a=i("species");function u(g,T){var c=g[T];if(null!=c){if("function"!=typeof c)throw new TypeError(c+" is not a function");return c}}function h(g){var T=g.constructor;return void 0!==T&&null===(T=T[a])&&(T=void 0),void 0!==T?T:L}function m(g){m.log?m.log(g):setTimeout(function(){throw g})}function R(g){Promise.resolve().then(function(){try{g()}catch(T){m(T)}})}function D(g){var T=g._cleanup;if(void 0!==T&&(g._cleanup=void 0,T))try{if("function"==typeof T)T();else{var c=u(T,"unsubscribe");c&&c.call(T)}}catch(_){m(_)}}function I(g){g._observer=void 0,g._queue=void 0,g._state="closed"}function P(g,T,c){g._state="running";var _=g._observer;try{var l=u(_,T);switch(T){case"next":l&&l.call(_,c);break;case"error":if(I(g),!l)throw c;l.call(_,c);break;case"complete":I(g),l&&l.call(_)}}catch(F){m(F)}"closed"===g._state?D(g):"running"===g._state&&(g._state="ready")}function j(g,T,c){if("closed"!==g._state){if("buffering"===g._state)return void g._queue.push({type:T,value:c});if("ready"!==g._state)return g._state="buffering",g._queue=[{type:T,value:c}],void R(function(){return function C(g){var T=g._queue;if(T){g._queue=void 0,g._state="ready";for(var c=0;c<T.length&&(P(g,T[c].type,T[c].value),"closed"!==g._state);++c);}}(g)});P(g,T,c)}}var V=function(){function g(T,c){t(this,g),this._cleanup=void 0,this._observer=T,this._queue=void 0,this._state="initializing";var _=new q(this);try{this._cleanup=c.call(void 0,_)}catch(l){_.error(l)}"initializing"===this._state&&(this._state="ready")}return d(g,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(I(this),D(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),g}(),q=function(){function g(T){t(this,g),this._subscription=T}return d(g,[{key:"next",value:function(c){j(this._subscription,"next",c)}},{key:"error",value:function(c){j(this._subscription,"error",c)}},{key:"complete",value:function(){j(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),g}(),L=function(){function g(T){if(t(this,g),!(this instanceof g))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof T)throw new TypeError("Observable initializer must be a function");this._subscriber=T}return d(g,[{key:"subscribe",value:function(c){return("object"!=typeof c||null===c)&&(c={next:c,error:arguments[1],complete:arguments[2]}),new V(c,this._subscriber)}},{key:"forEach",value:function(c){var _=this;return new Promise(function(l,F){if("function"==typeof c)var Q=_.subscribe({next:function($){try{c($,K)}catch(ce){F(ce),Q.unsubscribe()}},error:F,complete:l});else F(new TypeError(c+" is not a function"));function K(){Q.unsubscribe(),l()}})}},{key:"map",value:function(c){var _=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");return new(h(this))(function(F){return _.subscribe({next:function(K){try{K=c(K)}catch(Q){return F.error(Q)}F.next(K)},error:function(K){F.error(K)},complete:function(){F.complete()}})})}},{key:"filter",value:function(c){var _=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");return new(h(this))(function(F){return _.subscribe({next:function(K){try{if(!c(K))return}catch(Q){return F.error(Q)}F.next(K)},error:function(K){F.error(K)},complete:function(){F.complete()}})})}},{key:"reduce",value:function(c){var _=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");var l=h(this),F=arguments.length>1,K=!1,Q=arguments[1],$=Q;return new l(function(ce){return _.subscribe({next:function(ge){var Z=!K;if(K=!0,!Z||F)try{$=c($,ge)}catch(pe){return ce.error(pe)}else $=ge},error:function(ge){ce.error(ge)},complete:function(){if(!K&&!F)return ce.error(new TypeError("Cannot reduce an empty sequence"));ce.next($),ce.complete()}})})}},{key:"concat",value:function(){for(var c=this,_=arguments.length,l=new Array(_),F=0;F<_;F++)l[F]=arguments[F];var K=h(this);return new K(function(Q){var $,ce=0;return function ge(Z){$=Z.subscribe({next:function(pe){Q.next(pe)},error:function(pe){Q.error(pe)},complete:function(){ce===l.length?($=void 0,Q.complete()):ge(K.from(l[ce++]))}})}(c),function(){$&&($.unsubscribe(),$=void 0)}})}},{key:"flatMap",value:function(c){var _=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");var l=h(this);return new l(function(F){var K=[],Q=_.subscribe({next:function(ce){if(c)try{ce=c(ce)}catch(Z){return F.error(Z)}var ge=l.from(ce).subscribe({next:function(Z){F.next(Z)},error:function(Z){F.error(Z)},complete:function(){var Z=K.indexOf(ge);Z>=0&&K.splice(Z,1),$()}});K.push(ge)},error:function(ce){F.error(ce)},complete:function(){$()}});function $(){Q.closed&&0===K.length&&F.complete()}return function(){K.forEach(function(ce){return ce.unsubscribe()}),Q.unsubscribe()}})}},{key:e,value:function(){return this}}],[{key:"from",value:function(c){var _="function"==typeof this?this:g;if(null==c)throw new TypeError(c+" is not an object");var l=u(c,e);if(l){var F=l.call(c);if(Object(F)!==F)throw new TypeError(F+" is not an object");return function y(g){return g instanceof L}(F)&&F.constructor===_?F:new _(function(K){return F.subscribe(K)})}if(n("iterator")&&(l=u(c,s)))return new _(function(K){R(function(){if(!K.closed){var Q=!0,$=!1,ce=void 0;try{for(var Z,ge=l.call(c)[Symbol.iterator]();!(Q=(Z=ge.next()).done);Q=!0)if(K.next(Z.value),K.closed)return}catch(ae){$=!0,ce=ae}finally{try{!Q&&null!=ge.return&&ge.return()}finally{if($)throw ce}}K.complete()}})});if(Array.isArray(c))return new _(function(K){R(function(){if(!K.closed){for(var Q=0;Q<c.length;++Q)if(K.next(c[Q]),K.closed)return;K.complete()}})});throw new TypeError(c+" is not observable")}},{key:"of",value:function(){for(var c=arguments.length,_=new Array(c),l=0;l<c;l++)_[l]=arguments[l];var F="function"==typeof this?this:g;return new F(function(K){R(function(){if(!K.closed){for(var Q=0;Q<_.length;++Q)if(K.next(_[Q]),K.closed)return;K.complete()}})})}},{key:a,get:function(){return this}}]),g}();M.Observable=L,r()&&Object.defineProperty(L,Symbol("extensions"),{value:{symbol:e,hostReportError:m},configurable:!0})},30243:(ue,M,p)=>{"use strict";p.r(M),p.d(M,{AppSyncSubscriptionProvider:()=>u});var t=p(69972),w=p(16922),d=p(60506),r=p(85641),i=p(29783),s=p(97307),e=p(45670),a=p(71439);class u extends t.q{execute(y){const m=this.connectionParams.aws_appsync_graphqlEndpoint,R=this.connectionParams.aws_appsync_region,D={type:this.connectionParams.aws_appsync_authenticationType,apiKey:this.connectionParams.aws_appsync_apiKey,jwtToken:this.connectionParams.aws_appsync_jwtToken},I=i.ApolloLink.from([(0,d.W9)({url:m,region:R,auth:D}),(0,r.createSubscriptionHandshakeLink)({url:m,region:R,auth:D})]),P=new s.f({link:I,cache:new e.h}).subscribe({query:(0,a.Qc)(y.query),variables:y.variables});return new w.y(j=>{this.subscription=P.subscribe({next:(...V)=>j.next(...V),error:(...V)=>j.error(...V),complete:()=>j.complete()})})}close(){this.subscription?.closed&&this.subscription?.unsubscribe()}}},45011:function(ue,M,p){"use strict";var P,t=this&&this.__extends||(P=function(j,V){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,L){q.__proto__=L}||function(q,L){for(var g in L)L.hasOwnProperty(g)&&(q[g]=L[g])})(j,V)},function(j,V){function q(){this.constructor=j}P(j,V),j.prototype=null===V?Object.create(V):(q.prototype=V.prototype,new q)}),w=this&&this.__assign||function(){return w=Object.assign||function(P){for(var j,V=1,q=arguments.length;V<q;V++)for(var L in j=arguments[V])Object.prototype.hasOwnProperty.call(j,L)&&(P[L]=j[L]);return P},w.apply(this,arguments)},d=this&&this.__awaiter||function(P,j,V,q){return new(V||(V=Promise))(function(g,T){function c(F){try{l(q.next(F))}catch(K){T(K)}}function _(F){try{l(q.throw(F))}catch(K){T(K)}}function l(F){F.done?g(F.value):function L(g){return g instanceof V?g:new V(function(T){T(g)})}(F.value).then(c,_)}l((q=q.apply(P,j||[])).next())})},r=this&&this.__generator||function(P,j){var q,L,g,T,V={label:0,sent:function(){if(1&g[0])throw g[1];return g[1]},trys:[],ops:[]};return T={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(T[Symbol.iterator]=function(){return this}),T;function c(l){return function(F){return function _(l){if(q)throw new TypeError("Generator is already executing.");for(;V;)try{if(q=1,L&&(g=2&l[0]?L.return:l[0]?L.throw||((g=L.return)&&g.call(L),0):L.next)&&!(g=g.call(L,l[1])).done)return g;switch(L=0,g&&(l=[2&l[0],g.value]),l[0]){case 0:case 1:g=l;break;case 4:return V.label++,{value:l[1],done:!1};case 5:V.label++,L=l[1],l=[0];continue;case 7:l=V.ops.pop(),V.trys.pop();continue;default:if(!(g=(g=V.trys).length>0&&g[g.length-1])&&(6===l[0]||2===l[0])){V=0;continue}if(3===l[0]&&(!g||l[1]>g[0]&&l[1]<g[3])){V.label=l[1];break}if(6===l[0]&&V.label<g[1]){V.label=g[1],g=l;break}if(g&&V.label<g[2]){V.label=g[2],V.ops.push(l);break}g[2]&&V.ops.pop(),V.trys.pop();continue}l=j.call(P,V)}catch(F){l=[6,F],L=0}finally{q=g=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,F])}}};Object.defineProperty(M,"__esModule",{value:!0});var y,n=p(98e3),i=p(8511),s=p(2745),e=p(90258),a=p(32246),u=p(44226);M.USER_AGENT_HEADER="x-amz-user-agent",M.USER_AGENT="aws-amplify/"+u.version+(a.userAgent&&" ")+a.userAgent,function(P){P.NONE="NONE",P.API_KEY="API_KEY",P.AWS_IAM="AWS_IAM",P.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",P.OPENID_CONNECT="OPENID_CONNECT"}(y=M.AUTH_TYPE||(M.AUTH_TYPE={}));var m=function(P){function j(V){var q=P.call(this)||this;return q.link=M.authLink(V),q}return t(j,P),j.prototype.request=function(V,q){return this.link.request(V,q)},j}(n.ApolloLink);M.AuthLink=m;var R=function(P,j,V){var q=void 0===P?{header:"",value:""}:P,L=q.header,g=q.value;return d(void 0,void 0,void 0,function(){var T,c,l,F,K;return r(this,function(Q){switch(Q.label){case 0:return T=j.getContext(),c=w(w({},T.headers),((F={})[M.USER_AGENT_HEADER]=M.USER_AGENT,F)),L&&g?"function"!=typeof g?[3,2]:[4,g.call(void 0)]:[3,5];case 1:return l=Q.sent(),[3,4];case 2:return[4,g];case 3:l=Q.sent(),Q.label=4;case 4:c=w(((K={})[L]=l,K),c),Q.label=5;case 5:return j.setContext(w(w({},T),{headers:c})),[2,V(j)]}})})};M.authLink=function(P){var j=P.url,V=P.region,q=P.auth,L=(void 0===q?{}:q).type,g=P.auth;return new n.ApolloLink(function(T,c){return new n.Observable(function(_){var l,F;switch(L){case y.NONE:F=R(void 0,T,c);break;case y.AWS_IAM:var K=g.credentials;F=function(P,j,V){var q=P.credentials,L=P.region,g=P.url;return d(void 0,void 0,void 0,function(){var T,c,_,l,F,K,Q,$,ce,ge,Z,pe,ae;return r(this,function(z){switch(z.label){case 0:return T="appsync",c=j.getContext(),(_="function"==typeof q?q.call():q||{})&&"function"==typeof _.getPromise?[4,_.getPromise()]:[3,2];case 1:z.sent(),z.label=2;case 2:return[4,_];case 3:return l=z.sent(),F=l.accessKeyId,K=l.secretAccessKey,Q=l.sessionToken,$=e.parse(g),ce=$.host,ge=$.path,Z=w(w({},I(j,{})),{service:T,region:L,url:g,host:ce,path:ge}),pe=s.Signer.sign(Z,{access_key:F,secret_key:K,session_token:Q}).headers,j.setContext(w(w({},c),{headers:w(w(w({},c.headers),pe),(ae={},ae[M.USER_AGENT_HEADER]=M.USER_AGENT,ae))})),[2,V(j)]}})})}({credentials:void 0===K?{}:K,region:V,url:j},T,c);break;case y.API_KEY:var $=g.apiKey;F=R({header:"X-Api-Key",value:void 0===$?"":$},T,c);break;case y.AMAZON_COGNITO_USER_POOLS:case y.OPENID_CONNECT:var ge=g.jwtToken;F=R({header:"Authorization",value:void 0===ge?"":ge},T,c);break;default:throw new Error("Invalid AUTH_TYPE: "+g.type)}return F.then(function(ae){l=ae.subscribe({next:_.next.bind(_),error:_.error.bind(_),complete:_.complete.bind(_)})}),function(){l&&l.unsubscribe()}})})};var I=function(P,j){var L=P.query,g={operationName:P.operationName,variables:C(P.variables),query:i.print(L)};return w(w({body:JSON.stringify(g),method:"POST"},j),{headers:w({accept:"*/*","content-type":"application/json; charset=UTF-8"},j.headers)})},C=function(P){return Object.keys(P).filter(function(j){return!j.startsWith("@@")}).reduce(function(j,V){return j[V]=P[V],j},{})}},60506:(ue,M,p)=>{"use strict";var w=p(45011);M.W9=function(r){return new w.AuthLink({url:r.url,region:r.region,auth:r.auth})},p(2745)},32246:(ue,M)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.userAgent=""},2745:(ue,M,p)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),function t(w){for(var d in w)M.hasOwnProperty(d)||(M[d]=w[d])}(p(31748))},31748:(ue,M,p)=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0}),global.Buffer=global.Buffer||p(75877).lW;var t=p(90258),w=p(78987).util.crypto,d=function(I,C,P){return void 0===P&&(P=""),w.lib.createHmac("sha256",I).update(C,"utf8").digest(P)},r=function(I){return I=I||"",w.createHash("sha256").update(I,"utf8").digest("hex")},n=function(I){return I&&0!==Object.keys(I).length?Object.keys(I).map(function(C){return{key:C.toLowerCase(),value:I[C]?I[C].trim().replace(/\s+/g," "):""}}).sort(function(C,P){return C.key<P.key?-1:1}).map(function(C){return C.key+":"+C.value}).join("\n")+"\n":""},i=function(I){return Object.keys(I).map(function(C){return C.toLowerCase()}).sort().join(";")},R=function(I,C,P){void 0===P&&(P=null),I.headers=I.headers||{};var V=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),q=V.substr(0,8),L="AWS4-HMAC-SHA256",g=t.parse(I.url);I.headers.host=g.host,I.headers["x-amz-date"]=V,C.session_token&&(I.headers["X-Amz-Security-Token"]=C.session_token);var T=function(I){var C=t.parse(I.url);return[I.method||"/",C.path,C.query,n(I.headers),i(I.headers),r(I.body)].join("\n")}(I);P=P||function(I){var V=(t.parse(I.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===V[1]&&(V=V.reverse()),{service:I.service||V[0],region:I.region||V[1]}}(I);var c=function(I,C,P){return[I,C,P,"aws4_request"].join("/")}(q,P.region,P.service),_=function(I,C,P,j){return[I,P,j,r(C)].join("\n")}(L,T,V,c),l=function(I,C,P){void 0===I&&(I="");var V=d("AWS4"+I,C),q=d(V,P.region),L=d(q,P.service);return d(L,"aws4_request")}(C.secret_key,q,P),F=function(I,C){return d(I,C,"hex")}(l,_),K=function(I,C,P,j,V){return void 0===C&&(C=""),["AWS4-HMAC-SHA256 Credential="+C+"/"+P,"SignedHeaders="+j,"Signature="+V].join(", ")}(0,C.access_key,c,i(I.headers),F);return I.headers.Authorization=K,I},D=function(){function I(){}return I.sign=R,I}();M.Signer=D,M.default=D},47310:()=>{},46841:ue=>{"use strict";var M=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],p=typeof globalThis>"u"?global:globalThis;ue.exports=function(){for(var w=[],d=0;d<M.length;d++)"function"==typeof p[M[d]]&&(w[w.length]=M[d]);return w}},45394:(ue,M,p)=>{"use strict";var w=p(66204)("%Object.getOwnPropertyDescriptor%",!0);if(w)try{w([],"length")}catch{w=null}ue.exports=w},8711:(ue,M,p)=>{"use strict";p.r(M),p.d(M,{ApolloCache:()=>kn,ApolloClient:()=>bi,ApolloError:()=>Yt,ApolloLink:()=>mt,Cache:()=>cn,HttpLink:()=>tr,InMemoryCache:()=>Di,MissingFieldError:()=>fn,NetworkStatus:()=>tt,Observable:()=>ye,ObservableQuery:()=>Lr,checkFetcher:()=>Kt,concat:()=>Li,createHttpLink:()=>er,createSignalIfSupported:()=>cr,defaultDataIdFromObject:()=>pr,defaultPrinter:()=>Xt,disableExperimentalFragmentVariables:()=>wr.J9,disableFragmentWarnings:()=>wr._t,empty:()=>Mi,enableExperimentalFragmentVariables:()=>wr.wO,execute:()=>Nt,fallbackHttpConfig:()=>sr,from:()=>ki,fromError:()=>Zt,fromPromise:()=>Bi,gql:()=>wr.Ps,isApolloError:()=>On,isReference:()=>O,makeReference:()=>v,makeVar:()=>In,mergeOptions:()=>Nr,parseAndCheckHttpResponse:()=>Ot,resetCaches:()=>wr.HW,rewriteURIForGET:()=>Cr,selectHttpOptionsAndBody:()=>Tr,selectHttpOptionsAndBodyInternal:()=>ur,selectURI:()=>Or,serializeFetchParameter:()=>Qt,setLogVerbosity:()=>u,split:()=>Fi,throwServerError:()=>$t,toPromise:()=>Ni});var t=p(5163),w="Invariant Violation",d=Object.setPrototypeOf,r=void 0===d?function(S,o){return S.__proto__=o,S}:d,n=function(S){function o(f){void 0===f&&(f=w);var E=S.call(this,"number"==typeof f?w+": "+f+" (see https://github.com/apollographql/invariant-packages)":f)||this;return E.framesToPop=1,E.name=w,r(E,o.prototype),E}return(0,t.ZT)(o,S),o}(Error);function i(S,o){if(!S)throw new n(o)}var S,s=["debug","log","warn","error","silent"],e=s.indexOf("log");function a(S){return function(){if(s.indexOf(S)>=e){var o=console[S]||console.log;return o.apply(console,arguments)}}}function u(S){var o=s[e];return e=Math.max(0,s.indexOf(S)),o}function y(S){try{return S()}catch{}}(S=i||(i={})).debug=a("debug"),S.log=a("log"),S.warn=a("warn"),S.error=a("error");const m=y(function(){return globalThis})||y(function(){return window})||y(function(){return self})||y(function(){return global})||y(function(){return y.constructor("return this")()});var R="__",D=[R,R].join("DEV");const C=function I(){try{return Boolean(__DEV__)}catch{return Object.defineProperty(m,D,{value:"production"!==y(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),m[D]}}();function P(S){try{return S()}catch{}}var j=P(function(){return globalThis})||P(function(){return window})||P(function(){return self})||P(function(){return global})||P(function(){return P.constructor("return this")()}),V=!1;function F(S,o){(null==o||o>S.length)&&(o=S.length);for(var f=0,E=new Array(o);f<o;f++)E[f]=S[f];return E}function K(S,o){for(var f=0;f<o.length;f++){var E=o[f];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(S,E.key,E)}}function Q(S,o,f){return o&&K(S.prototype,o),f&&K(S,f),Object.defineProperty(S,"prototype",{writable:!1}),S}!function q(){j&&!P(function(){return"production"})&&!P(function(){return process})&&(Object.defineProperty(j,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),V=!0)}(),p(58203),function T(){(function L(){V&&(delete j.process,V=!1)})()}(),function c(){__DEV__?i("boolean"==typeof C,C):i("boolean"==typeof C,36)}();var $=function(){return"function"==typeof Symbol},ce=function(S){return $()&&Boolean(Symbol[S])},ge=function(S){return ce(S)?Symbol[S]:"@@"+S};$()&&!ce("observable")&&(Symbol.observable=Symbol("observable"));var Z=ge("iterator"),pe=ge("observable"),ae=ge("species");function z(S,o){var f=S[o];if(null!=f){if("function"!=typeof f)throw new TypeError(f+" is not a function");return f}}function Y(S){var o=S.constructor;return void 0!==o&&null===(o=o[ae])&&(o=void 0),void 0!==o?o:ye}function J(S){J.log?J.log(S):setTimeout(function(){throw S})}function A(S){Promise.resolve().then(function(){try{S()}catch(o){J(o)}})}function b(S){var o=S._cleanup;if(void 0!==o&&(S._cleanup=void 0,o))try{if("function"==typeof o)o();else{var f=z(o,"unsubscribe");f&&f.call(o)}}catch(E){J(E)}}function x(S){S._observer=void 0,S._queue=void 0,S._state="closed"}function W(S,o,f){S._state="running";var E=S._observer;try{var B=z(E,o);switch(o){case"next":B&&B.call(E,f);break;case"error":if(x(S),!B)throw f;B.call(E,f);break;case"complete":x(S),B&&B.call(E)}}catch(H){J(H)}"closed"===S._state?b(S):"running"===S._state&&(S._state="ready")}function ee(S,o,f){if("closed"!==S._state){if("buffering"===S._state)return void S._queue.push({type:o,value:f});if("ready"!==S._state)return S._state="buffering",S._queue=[{type:o,value:f}],void A(function(){return function N(S){var o=S._queue;if(o){S._queue=void 0,S._state="ready";for(var f=0;f<o.length&&(W(S,o[f].type,o[f].value),"closed"!==S._state);++f);}}(S)});W(S,o,f)}}var se=function(){function S(f,E){this._cleanup=void 0,this._observer=f,this._queue=void 0,this._state="initializing";var B=new _e(this);try{this._cleanup=E.call(void 0,B)}catch(H){B.error(H)}"initializing"===this._state&&(this._state="ready")}return S.prototype.unsubscribe=function(){"closed"!==this._state&&(x(this),b(this))},Q(S,[{key:"closed",get:function(){return"closed"===this._state}}]),S}(),_e=function(){function S(f){this._subscription=f}var o=S.prototype;return o.next=function(E){ee(this._subscription,"next",E)},o.error=function(E){ee(this._subscription,"error",E)},o.complete=function(){ee(this._subscription,"complete")},Q(S,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),S}(),ye=function(){function S(f){if(!(this instanceof S))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof f)throw new TypeError("Observable initializer must be a function");this._subscriber=f}var o=S.prototype;return o.subscribe=function(E){return("object"!=typeof E||null===E)&&(E={next:E,error:arguments[1],complete:arguments[2]}),new se(E,this._subscriber)},o.forEach=function(E){var B=this;return new Promise(function(H,X){if("function"==typeof E)var me=B.subscribe({next:function(be){try{E(be,le)}catch(Ae){X(Ae),me.unsubscribe()}},error:X,complete:H});else X(new TypeError(E+" is not a function"));function le(){me.unsubscribe(),H()}})},o.map=function(E){var B=this;if("function"!=typeof E)throw new TypeError(E+" is not a function");return new(Y(this))(function(X){return B.subscribe({next:function(le){try{le=E(le)}catch(me){return X.error(me)}X.next(le)},error:function(le){X.error(le)},complete:function(){X.complete()}})})},o.filter=function(E){var B=this;if("function"!=typeof E)throw new TypeError(E+" is not a function");return new(Y(this))(function(X){return B.subscribe({next:function(le){try{if(!E(le))return}catch(me){return X.error(me)}X.next(le)},error:function(le){X.error(le)},complete:function(){X.complete()}})})},o.reduce=function(E){var B=this;if("function"!=typeof E)throw new TypeError(E+" is not a function");var H=Y(this),X=arguments.length>1,le=!1,me=arguments[1],be=me;return new H(function(Ae){return B.subscribe({next:function(Pe){var Ce=!le;if(le=!0,!Ce||X)try{be=E(be,Pe)}catch(ke){return Ae.error(ke)}else be=Pe},error:function(Pe){Ae.error(Pe)},complete:function(){if(!le&&!X)return Ae.error(new TypeError("Cannot reduce an empty sequence"));Ae.next(be),Ae.complete()}})})},o.concat=function(){for(var E=this,B=arguments.length,H=new Array(B),X=0;X<B;X++)H[X]=arguments[X];var le=Y(this);return new le(function(me){var be,Ae=0;return function Pe(Ce){be=Ce.subscribe({next:function(ke){me.next(ke)},error:function(ke){me.error(ke)},complete:function(){Ae===H.length?(be=void 0,me.complete()):Pe(le.from(H[Ae++]))}})}(E),function(){be&&(be.unsubscribe(),be=void 0)}})},o.flatMap=function(E){var B=this;if("function"!=typeof E)throw new TypeError(E+" is not a function");var H=Y(this);return new H(function(X){var le=[],me=B.subscribe({next:function(Ae){if(E)try{Ae=E(Ae)}catch(Ce){return X.error(Ce)}var Pe=H.from(Ae).subscribe({next:function(Ce){X.next(Ce)},error:function(Ce){X.error(Ce)},complete:function(){var Ce=le.indexOf(Pe);Ce>=0&&le.splice(Ce,1),be()}});le.push(Pe)},error:function(Ae){X.error(Ae)},complete:function(){be()}});function be(){me.closed&&0===le.length&&X.complete()}return function(){le.forEach(function(Ae){return Ae.unsubscribe()}),me.unsubscribe()}})},o[pe]=function(){return this},S.from=function(E){var B="function"==typeof this?this:S;if(null==E)throw new TypeError(E+" is not an object");var H=z(E,pe);if(H){var X=H.call(E);if(Object(X)!==X)throw new TypeError(X+" is not an object");return function ie(S){return S instanceof ye}(X)&&X.constructor===B?X:new B(function(le){return X.subscribe(le)})}if(ce("iterator")&&(H=z(E,Z)))return new B(function(le){A(function(){if(!le.closed){for(var be,me=function _(S,o){var f=typeof Symbol<"u"&&S[Symbol.iterator]||S["@@iterator"];if(f)return(f=f.call(S)).next.bind(f);if(Array.isArray(S)||(f=function l(S,o){if(S){if("string"==typeof S)return F(S,o);var f=Object.prototype.toString.call(S).slice(8,-1);if("Object"===f&&S.constructor&&(f=S.constructor.name),"Map"===f||"Set"===f)return Array.from(S);if("Arguments"===f||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return F(S,o)}}(S))||o&&S&&"number"==typeof S.length){f&&(S=f);var E=0;return function(){return E>=S.length?{done:!0}:{done:!1,value:S[E++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(H.call(E));!(be=me()).done;)if(le.next(be.value),le.closed)return;le.complete()}})});if(Array.isArray(E))return new B(function(le){A(function(){if(!le.closed){for(var me=0;me<E.length;++me)if(le.next(E[me]),le.closed)return;le.complete()}})});throw new TypeError(E+" is not observable")},S.of=function(){for(var E=arguments.length,B=new Array(E),H=0;H<E;H++)B[H]=arguments[H];var X="function"==typeof this?this:S;return new X(function(le){A(function(){if(!le.closed){for(var me=0;me<B.length;++me)if(le.next(B[me]),le.closed)return;le.complete()}})})},Q(S,null,[{key:ae,get:function(){return this}}]),S}();function De(S){return null!==S&&"object"==typeof S}function Me(S,o){var f=o,E=[];return S.definitions.forEach(function(H){if("OperationDefinition"===H.kind)throw __DEV__?new n("Found a ".concat(H.operation," operation").concat(H.name?" named '".concat(H.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new n(41);"FragmentDefinition"===H.kind&&E.push(H)}),typeof f>"u"&&(__DEV__?i(1===E.length,"Found ".concat(E.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):i(1===E.length,42),f=E[0].name.value),(0,t.pi)((0,t.pi)({},S),{definitions:(0,t.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:f}}]}}],S.definitions,!0)})}function ne(S){void 0===S&&(S=[]);var o={};return S.forEach(function(f){o[f.name.value]=f}),o}function U(S,o){switch(S.kind){case"InlineFragment":return S;case"FragmentSpread":var f=o&&o[S.name.value];return __DEV__?i(f,"No fragment named ".concat(S.name.value,".")):i(f,43),f;default:return null}}function v(S){return{__ref:String(S)}}function O(S){return Boolean(S&&"object"==typeof S&&"string"==typeof S.__ref)}function Ue(S,o,f,E){if(function xe(S){return"IntValue"===S.kind}(f)||function Te(S){return"FloatValue"===S.kind}(f))S[o.value]=Number(f.value);else if(function de(S){return"BooleanValue"===S.kind}(f)||function re(S){return"StringValue"===S.kind}(f))S[o.value]=f.value;else if(function he(S){return"ObjectValue"===S.kind}(f)){var B={};f.fields.map(function(X){return Ue(B,X.name,X.value,E)}),S[o.value]=B}else if(function te(S){return"Variable"===S.kind}(f))S[o.value]=(E||{})[f.name.value];else if(function ve(S){return"ListValue"===S.kind}(f))S[o.value]=f.values.map(function(X){var le={};return Ue(le,o,X,E),le[o.value]});else if(function Oe(S){return"EnumValue"===S.kind}(f))S[o.value]=f.value;else{if(!function Ie(S){return"NullValue"===S.kind}(f))throw __DEV__?new n('The inline argument "'.concat(o.value,'" of kind "').concat(f.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new n(52);S[o.value]=null}}$()&&Object.defineProperty(ye,Symbol("extensions"),{value:{symbol:pe,hostReportError:J},configurable:!0});var ze=["connection","include","skip","client","rest","export"],nt=Object.assign(function(S,o,f){if(o&&f&&f.connection&&f.connection.key){if(f.connection.filter&&f.connection.filter.length>0){var E=f.connection.filter?f.connection.filter:[];E.sort();var B={};return E.forEach(function(le){B[le]=o[le]}),"".concat(f.connection.key,"(").concat(ht(B),")")}return f.connection.key}var H=S;if(o){var X=ht(o);H+="(".concat(X,")")}return f&&Object.keys(f).forEach(function(le){-1===ze.indexOf(le)&&(f[le]&&Object.keys(f[le]).length?H+="@".concat(le,"(").concat(ht(f[le]),")"):H+="@".concat(le))}),H},{setStringify:function(S){var o=ht;return ht=S,o}}),ht=function(o){return JSON.stringify(o,at)};function at(S,o){return De(o)&&!Array.isArray(o)&&(o=Object.keys(o).sort().reduce(function(f,E){return f[E]=o[E],f},{})),o}function Ke(S,o){if(S.arguments&&S.arguments.length){var f={};return S.arguments.forEach(function(E){return Ue(f,E.name,E.value,o)}),f}return null}function ct(S){return S.alias?S.alias.value:S.name.value}function jt(S,o,f){if("string"==typeof S.__typename)return S.__typename;for(var E=0,B=o.selections;E<B.length;E++){var H=B[E];if(pt(H)){if("__typename"===H.name.value)return S[ct(H)]}else{var X=jt(S,U(H,f).selectionSet,f);if("string"==typeof X)return X}}}function pt(S){return"Field"===S.kind}function yt(S){return"InlineFragment"===S.kind}function Rt(S){__DEV__?i(S&&"Document"===S.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):i(S&&"Document"===S.kind,44);var o=S.definitions.filter(function(f){return"FragmentDefinition"!==f.kind}).map(function(f){if("OperationDefinition"!==f.kind)throw __DEV__?new n('Schema type definitions not allowed in queries. Found: "'.concat(f.kind,'"')):new n(45);return f});return __DEV__?i(o.length<=1,"Ambiguous GraphQL document: contains ".concat(o.length," operations")):i(o.length<=1,46),S}function St(S){return Rt(S),S.definitions.filter(function(o){return"OperationDefinition"===o.kind})[0]}function ft(S){return S.definitions.filter(function(o){return"OperationDefinition"===o.kind&&o.name}).map(function(o){return o.name.value})[0]||null}function Tt(S){return S.definitions.filter(function(o){return"FragmentDefinition"===o.kind})}function Ft(S){var o=St(S);return __DEV__?i(o&&"query"===o.operation,"Must contain a query definition."):i(o&&"query"===o.operation,47),o}function Ct(S){Rt(S);for(var o,f=0,E=S.definitions;f<E.length;f++){var B=E[f];if("OperationDefinition"===B.kind){var H=B.operation;if("query"===H||"mutation"===H||"subscription"===H)return B}"FragmentDefinition"===B.kind&&!o&&(o=B)}if(o)return o;throw __DEV__?new n("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new n(51)}function It(S){var o=Object.create(null),f=S&&S.variableDefinitions;return f&&f.length&&f.forEach(function(E){E.defaultValue&&Ue(o,E.variable.name,E.defaultValue)}),o}function Wt(S,o){return o?o(S):ye.of()}function Et(S){return"function"==typeof S?new mt(S):S}function Jt(S){return S.request.length<=1}var Vr=function(S){function o(f,E){var B=S.call(this,f)||this;return B.link=E,B}return(0,t.ZT)(o,S),o}(Error),mt=function(){function S(o){o&&(this.request=o)}return S.empty=function(){return new S(function(){return ye.of()})},S.from=function(o){return 0===o.length?S.empty():o.map(Et).reduce(function(f,E){return f.concat(E)})},S.split=function(o,f,E){var B=Et(f),H=Et(E||new S(Wt));return Jt(B)&&Jt(H)?new S(function(X){return o(X)?B.request(X)||ye.of():H.request(X)||ye.of()}):new S(function(X,le){return o(X)?B.request(X,le)||ye.of():H.request(X,le)||ye.of()})},S.execute=function(o,f){return o.request(function Re(S,o){var f=(0,t.pi)({},S);return Object.defineProperty(o,"setContext",{enumerable:!1,value:function(H){f=(0,t.pi)((0,t.pi)({},f),"function"==typeof H?H(f):H)}}),Object.defineProperty(o,"getContext",{enumerable:!1,value:function(){return(0,t.pi)({},f)}}),o}(f.context,function Lt(S){var o={variables:S.variables||{},extensions:S.extensions||{},operationName:S.operationName,query:S.query};return o.operationName||(o.operationName="string"!=typeof o.query?ft(o.query)||void 0:""),o}(function Vt(S){for(var o=["query","operationName","variables","extensions","context"],f=0,E=Object.keys(S);f<E.length;f++){var B=E[f];if(o.indexOf(B)<0)throw __DEV__?new n("illegal argument: ".concat(B)):new n(24)}return S}(f))))||ye.of()},S.concat=function(o,f){var E=Et(o);if(Jt(E))return __DEV__&&i.warn(new Vr("You are calling concat on a terminating link, which will have no effect",E)),E;var B=Et(f);return Jt(B)?new S(function(H){return E.request(H,function(X){return B.request(X)||ye.of()})||ye.of()}):new S(function(H,X){return E.request(H,function(le){return B.request(le,X)||ye.of()})||ye.of()})},S.prototype.split=function(o,f,E){return this.concat(S.split(o,f,E||new S(Wt)))},S.prototype.concat=function(o){return S.concat(this,o)},S.prototype.request=function(o,f){throw __DEV__?new n("request is not implemented"):new n(19)},S.prototype.onError=function(o,f){if(f&&f.error)return f.error(o),!1;throw o},S.prototype.setOnError=function(o){return this.onError=o,this},S}(),Nt=mt.execute,_t=p(74270),Qt=function(S,o){var f;try{f=JSON.stringify(S)}catch(B){var E=__DEV__?new n("Network request failed. ".concat(o," is not serializable: ").concat(B.message)):new n(21);throw E.parseError=B,E}return f},Or=function(S,o){return S.getContext().uri||("function"==typeof o?o(S):o||"/graphql")},$t=function(S,o,f){var E=new Error(f);throw E.name="ServerError",E.response=S,E.statusCode=S.status,E.result=o,E},Ar=Object.prototype.hasOwnProperty;function Ot(S){return function(o){return o.text().then(function(f){try{return JSON.parse(f)}catch(B){var E=B;throw E.name="ServerParseError",E.response=o,E.statusCode=o.status,E.bodyText=f,E}}).then(function(f){return o.status>=300&&$t(o,f,"Response not successful: Received status code ".concat(o.status)),!Array.isArray(f)&&!Ar.call(f,"data")&&!Ar.call(f,"errors")&&$t(o,f,"Server response was missing for query '".concat(Array.isArray(S)?S.map(function(E){return E.operationName}):S.operationName,"'.")),f})}}var Kt=function(S){if(!S&&typeof fetch>"u")throw __DEV__?new n("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new n(20)},Qr=p(8511),sr={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Xt=function(S,o){return o(S)};function Tr(S,o){for(var f=[],E=2;E<arguments.length;E++)f[E-2]=arguments[E];return f.unshift(o),ur.apply(void 0,(0,t.ev)([S,Xt],f,!1))}function ur(S,o){for(var f=[],E=2;E<arguments.length;E++)f[E-2]=arguments[E];var B={},H={};f.forEach(function(Pe){B=(0,t.pi)((0,t.pi)((0,t.pi)({},B),Pe.options),{headers:(0,t.pi)((0,t.pi)({},B.headers),zr(Pe.headers))}),Pe.credentials&&(B.credentials=Pe.credentials),H=(0,t.pi)((0,t.pi)({},H),Pe.http)});var X=S.operationName,le=S.extensions,me=S.variables,be=S.query,Ae={operationName:X,variables:me};return H.includeExtensions&&(Ae.extensions=le),H.includeQuery&&(Ae.query=o(be,Qr.print)),{options:B,body:Ae}}function zr(S){if(S){var o=Object.create(null);return Object.keys(Object(S)).forEach(function(f){o[f.toLowerCase()]=S[f]}),o}return S}var cr=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var S=new AbortController;return{controller:S,signal:S.signal}};function Cr(S,o){var f=[],E=function(Pe,Ce){f.push("".concat(Pe,"=").concat(encodeURIComponent(Ce)))};if("query"in o&&E("query",o.query),o.operationName&&E("operationName",o.operationName),o.variables){var B=void 0;try{B=Qt(o.variables,"Variables map")}catch(Pe){return{parseError:Pe}}E("variables",B)}if(o.extensions){var H=void 0;try{H=Qt(o.extensions,"Extensions map")}catch(Pe){return{parseError:Pe}}E("extensions",H)}var X="",le=S,me=S.indexOf("#");-1!==me&&(X=S.substr(me),le=S.substr(0,me));var be=-1===le.indexOf("?")?"?":"&";return{newURI:le+be+f.join("&")+X}}function Zt(S){return new ye(function(o){o.error(S)})}var qt=y(function(){return fetch}),er=function(S){void 0===S&&(S={});var o=S.uri,f=void 0===o?"/graphql":o,E=S.fetch,B=S.print,H=void 0===B?Xt:B,X=S.includeExtensions,le=S.useGETForQueries,me=S.includeUnusedVariables,be=void 0!==me&&me,Ae=(0,t._T)(S,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&Kt(E||qt);var Pe={http:{includeExtensions:X},options:Ae.fetchOptions,credentials:Ae.credentials,headers:Ae.headers};return new mt(function(Ce){var ke=Or(Ce,f),je=Ce.getContext(),Le={};if(je.clientAwareness){var Ve=je.clientAwareness,Qe=Ve.name,Xe=Ve.version;Qe&&(Le["apollographql-client-name"]=Qe),Xe&&(Le["apollographql-client-version"]=Xe)}var gt,We=(0,t.pi)((0,t.pi)({},Le),je.headers),Ze=ur(Ce,H,sr,Pe,{http:je.http,options:je.fetchOptions,credentials:je.credentials,headers:We}),Ye=Ze.options,Je=Ze.body;if(Je.variables&&!be){var rt=new Set(Object.keys(Je.variables));(0,_t.Vn)(Ce.query,{Variable:function(bt,ri,vt){vt&&"VariableDefinition"!==vt.kind&&rt.delete(bt.name.value)}}),rt.size&&(Je.variables=(0,t.pi)({},Je.variables),rt.forEach(function(bt){delete Je.variables[bt]}))}if(!Ye.signal){var ot=cr();(gt=ot.controller)&&(Ye.signal=ot.signal)}if(le&&!Ce.query.definitions.some(function(bt){return"OperationDefinition"===bt.kind&&"mutation"===bt.operation})&&(Ye.method="GET"),"GET"===Ye.method){var ei=Cr(ke,Je),ji=ei.newURI,ti=ei.parseError;if(ti)return Zt(ti);ke=ji}else try{Ye.body=Qt(Je,"Payload")}catch(bt){return Zt(bt)}return new ye(function(bt){return(E||y(function(){return fetch})||qt)(ke,Ye).then(function(vt){return Ce.setContext({response:vt}),vt}).then(Ot(Ce)).then(function(vt){return bt.next(vt),bt.complete(),vt}).catch(function(vt){"AbortError"!==vt.name&&(vt.result&&vt.result.errors&&vt.result.data&&bt.next(vt.result),bt.error(vt))}),function(){gt&&gt.abort()}})})},tr=function(S){function o(f){void 0===f&&(f={});var E=S.call(this,er(f).request)||this;return E.options=f,E}return(0,t.ZT)(o,S),o}(mt),ut=p(52485),rr=p(91269),Pt="function"==typeof WeakMap&&"ReactNative"!==y(function(){return navigator.product}),Rr="function"==typeof WeakSet,Ir="function"==typeof Symbol&&"function"==typeof Symbol.for;function zt(){for(var S=[],o=0;o<arguments.length;o++)S[o]=arguments[o];var f=Object.create(null);return S.forEach(function(E){!E||Object.keys(E).forEach(function(B){var H=E[B];void 0!==H&&(f[B]=H)})}),f}function Ht(S,o){var f=S.directives;return!f||!f.length||function Zr(S){var o=[];return S&&S.length&&S.forEach(function(f){if(function Xr(S){var o=S.name.value;return"skip"===o||"include"===o}(f)){var E=f.arguments,B=f.name.value;__DEV__?i(E&&1===E.length,"Incorrect number of arguments for the @".concat(B," directive.")):i(E&&1===E.length,38);var H=E[0];__DEV__?i(H.name&&"if"===H.name.value,"Invalid argument for the @".concat(B," directive.")):i(H.name&&"if"===H.name.value,39);var X=H.value;__DEV__?i(X&&("Variable"===X.kind||"BooleanValue"===X.kind),"Argument for the @".concat(B," directive must be a variable or a boolean value.")):i(X&&("Variable"===X.kind||"BooleanValue"===X.kind),40),o.push({directive:f,ifArgument:H})}}),o}(f).every(function(E){var B=E.directive,H=E.ifArgument,X=!1;return"Variable"===H.value.kind?(X=o&&o[H.value.name.value],__DEV__?i(void 0!==X,"Invalid variable referenced in @".concat(B.name.value," directive.")):i(void 0!==X,37)):X=H.value.value,"skip"===B.name.value?!X:X})}function fr(S,o){return function Jr(S){var o=[];return(0,_t.Vn)(S,{Directive:function(f){o.push(f.name.value)}}),o}(o).some(function(f){return S.indexOf(f)>-1})}function $r(S){return S&&fr(["client"],S)&&fr(["export"],S)}y(function(){return window.document.createElement}),y(function(){return navigator.userAgent.indexOf("jsdom")>=0});var lr=Object.prototype.hasOwnProperty;function hr(){for(var S=[],o=0;o<arguments.length;o++)S[o]=arguments[o];return Bt(S)}function Bt(S){var o=S[0]||{},f=S.length;if(f>1)for(var E=new Dt,B=1;B<f;++B)o=E.merge(o,S[B]);return o}var Pr=function(S,o,f){return this.merge(S[f],o[f])},Dt=function(){function S(o){void 0===o&&(o=Pr),this.reconciler=o,this.isObject=De,this.pastCopies=new Set}return S.prototype.merge=function(o,f){for(var E=this,B=[],H=2;H<arguments.length;H++)B[H-2]=arguments[H];return De(f)&&De(o)?(Object.keys(f).forEach(function(X){if(lr.call(o,X)){var le=o[X];if(f[X]!==le){var me=E.reconciler.apply(E,(0,t.ev)([o,f,X],B,!1));me!==le&&((o=E.shallowCopyForMerge(o))[X]=me)}}else(o=E.shallowCopyForMerge(o))[X]=f[X]}),o):f},S.prototype.shallowCopyForMerge=function(o){return De(o)&&(this.pastCopies.has(o)||(o=Array.isArray(o)?o.slice(0):(0,t.pi)({__proto__:Object.getPrototypeOf(o)},o),this.pastCopies.add(o))),o},S}(),st=Object.prototype.hasOwnProperty;function pr(S,o){var f=S.__typename,E=S.id,B=S._id;if("string"==typeof f&&(o&&(o.keyObject=void 0!==E?{id:E}:void 0!==B?{_id:B}:void 0),void 0===E&&(E=B),void 0!==E))return"".concat(f,":").concat("number"==typeof E||"string"==typeof E?E:JSON.stringify(E))}var Dr={dataIdFromObject:pr,addTypename:!0,resultCaching:!0,canonizeResults:!1};function kr(S){var o=S.canonizeResults;return void 0===o?Dr.canonizeResults:o}var Fr=/^[_a-z][_0-9a-z]*/i;function At(S){var o=S.match(Fr);return o?o[0]:S}function nr(S,o,f){return!!De(o)&&(it(o)?o.every(function(E){return nr(S,E,f)}):S.selections.every(function(E){if(pt(E)&&Ht(E,f)){var B=ct(E);return st.call(o,B)&&(!E.selectionSet||nr(E.selectionSet,o[B],f))}return!0}))}function Mt(S){return De(S)&&!O(S)&&!it(S)}var oe,fe,it=function(S){return Array.isArray(S)},vr=function(){function S(){this.known=new(Rr?WeakSet:Set),this.pool=new rr.B(Pt),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return S.prototype.isKnown=function(o){return De(o)&&this.known.has(o)},S.prototype.pass=function(o){if(De(o)){var f=function tn(S){return De(S)?it(S)?S.slice(0):(0,t.pi)({__proto__:Object.getPrototypeOf(S)},S):S}(o);return this.passes.set(f,o),f}return o},S.prototype.admit=function(o){var f=this;if(De(o)){var E=this.passes.get(o);if(E)return E;switch(Object.getPrototypeOf(o)){case Array.prototype:if(this.known.has(o))return o;var H=o.map(this.admit,this);return(X=this.pool.lookupArray(H)).array||(this.known.add(X.array=H),__DEV__&&Object.freeze(H)),X.array;case null:case Object.prototype:if(this.known.has(o))return o;var le=Object.getPrototypeOf(o),me=[le],be=this.sortedKeys(o);me.push(be.json);var X,Ae=me.length;if(be.sorted.forEach(function(ke){me.push(f.admit(o[ke]))}),!(X=this.pool.lookupArray(me)).object){var Pe=X.object=Object.create(le);this.known.add(Pe),be.sorted.forEach(function(ke,je){Pe[ke]=me[Ae+je]}),__DEV__&&Object.freeze(Pe)}return X.object}}return o},S.prototype.sortedKeys=function(o){var f=Object.keys(o),E=this.pool.lookupArray(f);if(!E.keys){f.sort();var B=JSON.stringify(f);(E.keys=this.keysByJSON.get(B))||this.keysByJSON.set(B,E.keys={sorted:f,json:B})}return E.keys},S}(),G=Object.assign(function(S){if(De(S)){void 0===oe&&Ee();var o=oe.admit(S),f=fe.get(o);return void 0===f&&fe.set(o,f=JSON.stringify(o)),f}return JSON.stringify(S)},{reset:Ee});function Ee(){oe=new vr,fe=new(Pt?WeakMap:Map)}function we(S,o,f){return new ye(function(E){var B=E.next,H=E.error,X=E.complete,le=0,me=!1,be={then:function(ke){return new Promise(function(je){return je(ke())})}};function Ae(ke,je){return ke?function(Le){++le;var Ve=function(){return ke(Le)};be=be.then(Ve,Ve).then(function(Qe){--le,B&&B.call(E,Qe),me&&Pe.complete()},function(Qe){throw--le,Qe}).catch(function(Qe){H&&H.call(E,Qe)})}:function(Le){return je&&je.call(E,Le)}}var Pe={next:Ae(o,B),error:Ae(f,H),complete:function(){me=!0,le||X&&X.call(E)}},Ce=S.subscribe(Pe);return function(){return Ce.unsubscribe()}})}function Se(S){return S.errors&&S.errors.length>0||!1}function Fe(S,o,f){var E=0;return S.forEach(function(B,H){o.call(this,B,H,S)&&(S[E++]=B)},f),S.length=E,S}var Be={kind:"Field",name:{kind:"Name",value:"__typename"}};function Ge(S,o){return S.selectionSet.selections.every(function(f){return"FragmentSpread"===f.kind&&Ge(o[f.name.value],o)})}function Ne(S){return Ge(St(S)||function wt(S){__DEV__?i("Document"===S.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):i("Document"===S.kind,48),__DEV__?i(S.definitions.length<=1,"Fragment must have exactly one definition."):i(S.definitions.length<=1,49);var o=S.definitions[0];return __DEV__?i("FragmentDefinition"===o.kind,"Must be a fragment definition."):i("FragmentDefinition"===o.kind,50),o}(S),ne(Tt(S)))?null:S}function et(S){return function(f){return S.some(function(E){return E.name&&E.name===f.name.value||E.test&&E.test(f)})}}function dt(S,o){var f=Object.create(null),E=[],B=Object.create(null),H=[],X=Ne((0,_t.Vn)(o,{Variable:{enter:function(le,me,be){"VariableDefinition"!==be.kind&&(f[le.name.value]=!0)}},Field:{enter:function(le){if(S&&le.directives&&S.some(function(be){return be.remove})&&le.directives&&le.directives.some(et(S)))return le.arguments&&le.arguments.forEach(function(be){"Variable"===be.value.kind&&E.push({name:be.value.name.value})}),le.selectionSet&&En(le.selectionSet).forEach(function(be){H.push({name:be.name.value})}),null}},FragmentSpread:{enter:function(le){B[le.name.value]=!0}},Directive:{enter:function(le){if(et(S)(le))return null}}}));return X&&Fe(E,function(le){return!!le.name&&!f[le.name]}).length&&(X=function ai(S,o){var f=function ii(S){return function(f){return S.some(function(E){return f.value&&"Variable"===f.value.kind&&f.value.name&&(E.name===f.value.name.value||E.test&&E.test(f))})}}(S);return Ne((0,_t.Vn)(o,{OperationDefinition:{enter:function(E){return(0,t.pi)((0,t.pi)({},E),{variableDefinitions:E.variableDefinitions?E.variableDefinitions.filter(function(B){return!S.some(function(H){return H.name===B.variable.name.value})}):[]})}},Field:{enter:function(E){var B=S.some(function(X){return X.remove});if(B){var H=0;if(E.arguments&&E.arguments.forEach(function(X){f(X)&&(H+=1)}),1===H)return null}}},Argument:{enter:function(E){if(f(E))return null}}}))}(E,X)),X&&Fe(H,function(le){return!!le.name&&!B[le.name]}).length&&(X=function oi(S,o){function f(E){if(S.some(function(B){return B.name===E.name.value}))return null}return Ne((0,_t.Vn)(o,{FragmentSpread:{enter:f},FragmentDefinition:{enter:f}}))}(H,X)),X}var $e=Object.assign(function(S){return(0,_t.Vn)(S,{SelectionSet:{enter:function(o,f,E){if(!E||"OperationDefinition"!==E.kind){var B=o.selections;if(B&&!B.some(function(le){return pt(le)&&("__typename"===le.name.value||0===le.name.value.lastIndexOf("__",0))})){var X=E;if(!(pt(X)&&X.directives&&X.directives.some(function(le){return"export"===le.name.value})))return(0,t.pi)((0,t.pi)({},o),{selections:(0,t.ev)((0,t.ev)([],B,!0),[Be],!1)})}}}}})},{added:function(S){return S===Be}}),lt={test:function(S){var o="connection"===S.name.value;return o&&(!S.arguments||!S.arguments.some(function(f){return"key"===f.name.value}))&&__DEV__&&i.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),o}};function En(S){var o=[];return S.selections.forEach(function(f){(pt(f)||yt(f))&&f.selectionSet?En(f.selectionSet).forEach(function(E){return o.push(E)}):"FragmentSpread"===f.kind&&o.push(f)}),o}function si(S){return"query"===Ct(S).operation?S:(0,_t.Vn)(S,{OperationDefinition:{enter:function(B){return(0,t.pi)((0,t.pi)({},B),{operation:"query"})}}})}var _n=new Map;function rn(S){var o=_n.get(S)||1;return _n.set(S,o+1),"".concat(S,":").concat(o,":").concat(Math.random().toString(36).slice(2))}function mr(S,o,f){var E=[];S.forEach(function(B){return B[o]&&E.push(B)}),E.forEach(function(B){return B[o](f)})}function Sn(S){function o(f){Object.defineProperty(S,f,{value:ye})}return Ir&&Symbol.species&&o(Symbol.species),o("@@species"),S}function wn(S){return S&&"function"==typeof S.then}var gr=function(S){function o(f){var E=S.call(this,function(B){return E.addObserver(B),function(){return E.removeObserver(B)}})||this;return E.observers=new Set,E.addCount=0,E.promise=new Promise(function(B,H){E.resolve=B,E.reject=H}),E.handlers={next:function(B){null!==E.sub&&(E.latest=["next",B],mr(E.observers,"next",B))},error:function(B){var H=E.sub;null!==H&&(H&&setTimeout(function(){return H.unsubscribe()}),E.sub=null,E.latest=["error",B],E.reject(B),mr(E.observers,"error",B))},complete:function(){var B=E.sub;if(null!==B){var H=E.sources.shift();H?wn(H)?H.then(function(X){return E.sub=X.subscribe(E.handlers)}):E.sub=H.subscribe(E.handlers):(B&&setTimeout(function(){return B.unsubscribe()}),E.sub=null,E.latest&&"next"===E.latest[0]?E.resolve(E.latest[1]):E.resolve(),mr(E.observers,"complete"))}}},E.cancel=function(B){E.reject(B),E.sources=[],E.handlers.complete()},E.promise.catch(function(B){}),"function"==typeof f&&(f=[new ye(f)]),wn(f)?f.then(function(B){return E.start(B)},E.handlers.error):E.start(f),E}return(0,t.ZT)(o,S),o.prototype.start=function(f){void 0===this.sub&&(this.sources=Array.from(f),this.handlers.complete())},o.prototype.deliverLastMessage=function(f){if(this.latest){var E=this.latest[0],B=f[E];B&&B.call(f,this.latest[1]),null===this.sub&&"next"===E&&f.complete&&f.complete()}},o.prototype.addObserver=function(f){this.observers.has(f)||(this.deliverLastMessage(f),this.observers.add(f),++this.addCount)},o.prototype.removeObserver=function(f,E){this.observers.delete(f)&&--this.addCount<1&&!E&&this.handlers.complete()},o.prototype.cleanup=function(f){var E=this,B=!1,H=function(){B||(B=!0,E.observers.delete(X),f())},X={next:H,error:H,complete:H},le=this.addCount;this.addObserver(X),this.addCount=le},o}(ye);function Gt(S){return Array.isArray(S)&&S.length>0}function On(S){return S.hasOwnProperty("graphQLErrors")}Sn(gr);var Yt=function(S){function o(f){var E=f.graphQLErrors,B=f.clientErrors,H=f.networkError,X=f.errorMessage,le=f.extraInfo,me=S.call(this,X)||this;return me.graphQLErrors=E||[],me.clientErrors=B||[],me.networkError=H||null,me.message=X||function(S){var o="";return(Gt(S.graphQLErrors)||Gt(S.clientErrors))&&(S.graphQLErrors||[]).concat(S.clientErrors||[]).forEach(function(E){o+="".concat(E?E.message:"Error message not found.","\n")}),S.networkError&&(o+="".concat(S.networkError.message,"\n")),o=o.replace(/\n$/,"")}(me),me.extraInfo=le,me.__proto__=o.prototype,me}return(0,t.ZT)(o,S),o}(Error),tt=(()=>(function(S){S[S.loading=1]="loading",S[S.setVariables=2]="setVariables",S[S.fetchMore=3]="fetchMore",S[S.refetch=4]="refetch",S[S.poll=6]="poll",S[S.ready=7]="ready",S[S.error=8]="error"}(tt||(tt={})),tt))();function br(S){return!!S&&S<7}var fi=Object.prototype.toString;function An(S){return nn(S)}function nn(S,o){switch(fi.call(S)){case"[object Array]":if((o=o||new Map).has(S))return o.get(S);var f=S.slice(0);return o.set(S,f),f.forEach(function(B,H){f[H]=nn(B,o)}),f;case"[object Object]":if((o=o||new Map).has(S))return o.get(S);var E=Object.create(Object.getPrototypeOf(S));return o.set(S,E),Object.keys(S).forEach(function(B){E[B]=nn(S[B],o)}),E;default:return S}}var li=Object.assign,hi=Object.hasOwnProperty,Lr=function(S){function o(f){var E=f.queryManager,B=f.queryInfo,H=f.options,X=S.call(this,function(Ve){try{var Qe=Ve._subscription._observer;Qe&&!Qe.error&&(Qe.error=pi)}catch{}var Xe=!X.observers.size;X.observers.add(Ve);var We=X.last;return We&&We.error?Ve.error&&Ve.error(We.error):We&&We.result&&Ve.next&&Ve.next(We.result),Xe&&X.reobserve().catch(function(){}),function(){X.observers.delete(Ve)&&!X.observers.size&&X.tearDownQuery()}})||this;X.observers=new Set,X.subscriptions=new Set,X.queryInfo=B,X.queryManager=E,X.isTornDown=!1;var le=E.defaultOptions.watchQuery,be=(void 0===le?{}:le).fetchPolicy,Ae=void 0===be?"cache-first":be,Pe=H.fetchPolicy,Ce=void 0===Pe?Ae:Pe,ke=H.initialFetchPolicy,je=void 0===ke?"standby"===Ce?Ae:Ce:ke;X.options=(0,t.pi)((0,t.pi)({},H),{initialFetchPolicy:je,fetchPolicy:Ce}),X.queryId=B.queryId||E.generateQueryId();var Le=St(X.query);return X.queryName=Le&&Le.name&&Le.name.value,X}return(0,t.ZT)(o,S),Object.defineProperty(o.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),o.prototype.result=function(){var f=this;return new Promise(function(E,B){var H={next:function(le){E(le),f.observers.delete(H),f.observers.size||f.queryManager.removeQuery(f.queryId),setTimeout(function(){X.unsubscribe()},0)},error:B},X=f.subscribe(H)})},o.prototype.getCurrentResult=function(f){void 0===f&&(f=!0);var E=this.getLastResult(!0),B=this.queryInfo.networkStatus||E&&E.networkStatus||tt.ready,H=(0,t.pi)((0,t.pi)({},E),{loading:br(B),networkStatus:B}),X=this.options.fetchPolicy,le=void 0===X?"cache-first":X;if("network-only"!==le&&"no-cache"!==le&&"standby"!==le&&!this.queryManager.transform(this.options.query).hasForcedResolvers){var me=this.queryInfo.getDiff();(me.complete||this.options.returnPartialData)&&(H.data=me.result),(0,ut.D)(H.data,{})&&(H.data=void 0),me.complete?(delete H.partial,me.complete&&H.networkStatus===tt.loading&&("cache-first"===le||"cache-only"===le)&&(H.networkStatus=tt.ready,H.loading=!1)):H.partial=!0,__DEV__&&!me.complete&&!this.options.partialRefetch&&!H.loading&&!H.data&&!H.error&&Tn(me.missing)}return f&&this.updateLastResult(H),H},o.prototype.isDifferentFromLastResult=function(f){return!this.last||!(0,ut.D)(this.last.result,f)},o.prototype.getLast=function(f,E){var B=this.last;if(B&&B[f]&&(!E||(0,ut.D)(B.variables,this.variables)))return B[f]},o.prototype.getLastResult=function(f){return this.getLast("result",f)},o.prototype.getLastError=function(f){return this.getLast("error",f)},o.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},o.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},o.prototype.refetch=function(f){var E,B={pollInterval:0},H=this.options.fetchPolicy;if(B.fetchPolicy="cache-and-network"===H?H:"no-cache"===H?"no-cache":"network-only",__DEV__&&f&&hi.call(f,"variables")){var X=Ft(this.query),le=X.variableDefinitions;(!le||!le.some(function(me){return"variables"===me.variable.name.value}))&&__DEV__&&i.warn("Called refetch(".concat(JSON.stringify(f),") for query ").concat((null===(E=X.name)||void 0===E?void 0:E.value)||JSON.stringify(X),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return f&&!(0,ut.D)(this.options.variables,f)&&(B.variables=this.options.variables=(0,t.pi)((0,t.pi)({},this.options.variables),f)),this.queryInfo.resetLastWrite(),this.reobserve(B,tt.refetch)},o.prototype.fetchMore=function(f){var E=this,B=(0,t.pi)((0,t.pi)({},f.query?f:(0,t.pi)((0,t.pi)((0,t.pi)((0,t.pi)({},this.options),{query:this.query}),f),{variables:(0,t.pi)((0,t.pi)({},this.options.variables),f.variables)})),{fetchPolicy:"no-cache"}),H=this.queryManager.generateQueryId(),X=this.queryInfo,le=X.networkStatus;X.networkStatus=tt.fetchMore,B.notifyOnNetworkStatusChange&&this.observe();var me=new Set;return this.queryManager.fetchQuery(H,B,tt.fetchMore).then(function(be){return E.queryManager.removeQuery(H),X.networkStatus===tt.fetchMore&&(X.networkStatus=le),E.queryManager.cache.batch({update:function(Ae){var Pe=f.updateQuery;Pe?Ae.updateQuery({query:E.query,variables:E.variables,returnPartialData:!0,optimistic:!1},function(Ce){return Pe(Ce,{fetchMoreResult:be.data,variables:B.variables})}):Ae.writeQuery({query:B.query,variables:B.variables,data:be.data})},onWatchUpdated:function(Ae){me.add(Ae.query)}}),be}).finally(function(){me.has(E.query)||xn(E)})},o.prototype.subscribeToMore=function(f){var E=this,B=this.queryManager.startGraphQLSubscription({query:f.document,variables:f.variables,context:f.context}).subscribe({next:function(H){var X=f.updateQuery;X&&E.updateQuery(function(le,me){return X(le,{subscriptionData:H,variables:me.variables})})},error:function(H){f.onError?f.onError(H):__DEV__&&i.error("Unhandled GraphQL subscription error",H)}});return this.subscriptions.add(B),function(){E.subscriptions.delete(B)&&B.unsubscribe()}},o.prototype.setOptions=function(f){return this.reobserve(f)},o.prototype.setVariables=function(f){return(0,ut.D)(this.variables,f)?this.observers.size?this.result():Promise.resolve():(this.options.variables=f,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:f},tt.setVariables):Promise.resolve())},o.prototype.updateQuery=function(f){var E=this.queryManager,H=f(E.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});H&&(E.cache.writeQuery({query:this.options.query,data:H,variables:this.variables}),E.broadcastQueries())},o.prototype.startPolling=function(f){this.options.pollInterval=f,this.updatePolling()},o.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},o.prototype.applyNextFetchPolicy=function(f,E){if(E.nextFetchPolicy){var B=E.fetchPolicy,H=void 0===B?"cache-first":B,X=E.initialFetchPolicy,le=void 0===X?H:X;"standby"===H||(E.fetchPolicy="function"==typeof E.nextFetchPolicy?E.nextFetchPolicy(H,{reason:f,options:E,observable:this,initialFetchPolicy:le}):"variables-changed"===f?le:E.nextFetchPolicy)}return E.fetchPolicy},o.prototype.fetch=function(f,E){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,f,E)},o.prototype.updatePolling=function(){var f=this;if(!this.queryManager.ssrMode){var B=this.pollingInfo,H=this.options.pollInterval;if(!H)return void(B&&(clearTimeout(B.timeout),delete this.pollingInfo));if(!B||B.interval!==H){__DEV__?i(H,"Attempted to start a polling query without a polling interval."):i(H,10),(B||(this.pollingInfo={})).interval=H;var le=function(){f.pollingInfo&&(br(f.queryInfo.networkStatus)?me():f.reobserve({fetchPolicy:"network-only"},tt.poll).then(me,me))},me=function(){var be=f.pollingInfo;be&&(clearTimeout(be.timeout),be.timeout=setTimeout(le,be.interval))};me()}}},o.prototype.updateLastResult=function(f,E){return void 0===E&&(E=this.variables),this.last=(0,t.pi)((0,t.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?f:An(f),variables:E}),Gt(f.errors)||delete this.last.error,this.last},o.prototype.reobserve=function(f,E){var B=this;this.isTornDown=!1;var H=E===tt.refetch||E===tt.fetchMore||E===tt.poll,X=this.options.variables,le=this.options.fetchPolicy,me=zt(this.options,f||{}),be=H?me:li(this.options,me);H||(this.updatePolling(),f&&f.variables&&!(0,ut.D)(f.variables,X)&&"standby"!==be.fetchPolicy&&be.fetchPolicy===le&&(this.applyNextFetchPolicy("variables-changed",be),void 0===E&&(E=tt.setVariables)));var Ae=be.variables&&(0,t.pi)({},be.variables),Pe=this.fetch(be,E),Ce={next:function(ke){B.reportResult(ke,Ae)},error:function(ke){B.reportError(ke,Ae)}};return H||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=Pe,this.observer=Ce),Pe.addObserver(Ce),Pe.promise},o.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},o.prototype.reportResult=function(f,E){var B=this.getLastError();(B||this.isDifferentFromLastResult(f))&&((B||!f.partial||this.options.returnPartialData)&&this.updateLastResult(f,E),mr(this.observers,"next",f))},o.prototype.reportError=function(f,E){var B=(0,t.pi)((0,t.pi)({},this.getLastResult()),{error:f,errors:f.graphQLErrors,networkStatus:tt.error,loading:!1});this.updateLastResult(B,E),mr(this.observers,"error",this.last.error=f)},o.prototype.hasObservers=function(){return this.observers.size>0},o.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(f){return f.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},o}(ye);function xn(S){var o=S.options,f=o.fetchPolicy,E=o.nextFetchPolicy;return"cache-and-network"===f||"network-only"===f?S.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=E,"function"==typeof E?E.apply(this,arguments):f}}):S.reobserve()}function pi(S){__DEV__&&i.error("Unhandled error",S.message,S.stack)}function Tn(S){__DEV__&&S&&__DEV__&&i.debug("Missing cache result fields: ".concat(JSON.stringify(S)),S)}Sn(Lr);var ir=p(86438),an=new(p(91971).g7),Cn=new WeakMap;function Er(S){var o=Cn.get(S);return o||Cn.set(S,o={vars:new Set,dep:(0,ir.dP)()}),o}function Rn(S){Er(S).vars.forEach(function(o){return o.forgetCache(S)})}function In(S){var o=new Set,f=new Set,E=function(H){if(arguments.length>0){if(S!==H){S=H,o.forEach(function(me){Er(me).dep.dirty(E),yi(me)});var X=Array.from(f);f.clear(),X.forEach(function(me){return me(S)})}}else{var le=an.getValue();le&&(B(le),Er(le).dep(E))}return S};E.onNextChange=function(H){return f.add(H),function(){f.delete(H)}};var B=E.attachCache=function(H){return o.add(H),Er(H).vars.add(E),E};return E.forgetCache=function(H){return o.delete(H)},E}function yi(S){S.broadcastWatches&&S.broadcastWatches()}var Pn=function(){function S(o){var E=o.client,B=o.resolvers,H=o.fragmentMatcher;this.cache=o.cache,E&&(this.client=E),B&&this.addResolvers(B),H&&this.setFragmentMatcher(H)}return S.prototype.addResolvers=function(o){var f=this;this.resolvers=this.resolvers||{},Array.isArray(o)?o.forEach(function(E){f.resolvers=hr(f.resolvers,E)}):this.resolvers=hr(this.resolvers,o)},S.prototype.setResolvers=function(o){this.resolvers={},this.addResolvers(o)},S.prototype.getResolvers=function(){return this.resolvers||{}},S.prototype.runResolvers=function(o){var f=o.document,E=o.remoteResult,B=o.context,H=o.variables,X=o.onlyRunForcedResolvers,le=void 0!==X&&X;return(0,t.mG)(this,void 0,void 0,function(){return(0,t.Jh)(this,function(me){return f?[2,this.resolveDocument(f,E.data,B,H,this.fragmentMatcher,le).then(function(be){return(0,t.pi)((0,t.pi)({},E),{data:be.result})})]:[2,E]})})},S.prototype.setFragmentMatcher=function(o){this.fragmentMatcher=o},S.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},S.prototype.clientQuery=function(o){return fr(["client"],o)&&this.resolvers?o:null},S.prototype.serverQuery=function(o){return function ui(S){Rt(S);var o=dt([{test:function(f){return"client"===f.name.value},remove:!0}],S);return o&&(o=(0,_t.Vn)(o,{FragmentDefinition:{enter:function(f){if(f.selectionSet&&f.selectionSet.selections.every(function(B){return pt(B)&&"__typename"===B.name.value}))return null}}})),o}(o)},S.prototype.prepareContext=function(o){var f=this.cache;return(0,t.pi)((0,t.pi)({},o),{cache:f,getCacheKey:function(E){return f.identify(E)}})},S.prototype.addExportedVariables=function(o,f,E){return void 0===f&&(f={}),void 0===E&&(E={}),(0,t.mG)(this,void 0,void 0,function(){return(0,t.Jh)(this,function(B){return o?[2,this.resolveDocument(o,this.buildRootValueFromCache(o,f)||{},this.prepareContext(E),f).then(function(H){return(0,t.pi)((0,t.pi)({},f),H.exportedVariables)})]:[2,(0,t.pi)({},f)]})})},S.prototype.shouldForceResolvers=function(o){var f=!1;return(0,_t.Vn)(o,{Directive:{enter:function(E){if("client"===E.name.value&&E.arguments&&(f=E.arguments.some(function(B){return"always"===B.name.value&&"BooleanValue"===B.value.kind&&!0===B.value.value})))return _t.$_}}}),f},S.prototype.buildRootValueFromCache=function(o,f){return this.cache.diff({query:si(o),variables:f,returnPartialData:!0,optimistic:!1}).result},S.prototype.resolveDocument=function(o,f,E,B,H,X){return void 0===E&&(E={}),void 0===B&&(B={}),void 0===H&&(H=function(){return!0}),void 0===X&&(X=!1),(0,t.mG)(this,void 0,void 0,function(){var le,me,be,Ae,Pe,Ce,ke,je,Le;return(0,t.Jh)(this,function(Ve){return le=Ct(o),me=Tt(o),be=ne(me),Pe=(Ae=le.operation)?Ae.charAt(0).toUpperCase()+Ae.slice(1):"Query",ke=(Ce=this).cache,je=Ce.client,Le={fragmentMap:be,context:(0,t.pi)((0,t.pi)({},E),{cache:ke,client:je}),variables:B,fragmentMatcher:H,defaultOperationType:Pe,exportedVariables:{},onlyRunForcedResolvers:X},[2,this.resolveSelectionSet(le.selectionSet,f,Le).then(function(Qe){return{result:Qe,exportedVariables:Le.exportedVariables}})]})})},S.prototype.resolveSelectionSet=function(o,f,E){return(0,t.mG)(this,void 0,void 0,function(){var B,H,X,le,be=this;return(0,t.Jh)(this,function(Ae){return B=E.fragmentMap,H=E.context,X=E.variables,le=[f],[2,Promise.all(o.selections.map(function(Pe){return(0,t.mG)(be,void 0,void 0,function(){var Ce;return(0,t.Jh)(this,function(je){return Ht(Pe,X)?pt(Pe)?[2,this.resolveField(Pe,f,E).then(function(Le){var Ve;typeof Le<"u"&&le.push(((Ve={})[ct(Pe)]=Le,Ve))})]:(yt(Pe)?Ce=Pe:(Ce=B[Pe.name.value],__DEV__?i(Ce,"No fragment named ".concat(Pe.name.value)):i(Ce,9)),Ce&&Ce.typeCondition&&E.fragmentMatcher(f,Ce.typeCondition.name.value,H)?[2,this.resolveSelectionSet(Ce.selectionSet,f,E).then(function(Le){le.push(Le)})]:[2]):[2]})})})).then(function(){return Bt(le)})]})})},S.prototype.resolveField=function(o,f,E){return(0,t.mG)(this,void 0,void 0,function(){var B,H,X,le,me,be,Ae,Pe,Ce,ke=this;return(0,t.Jh)(this,function(je){return B=E.variables,H=o.name.value,X=ct(o),le=H!==X,me=f[X]||f[H],be=Promise.resolve(me),(!E.onlyRunForcedResolvers||this.shouldForceResolvers(o))&&(Ae=f.__typename||E.defaultOperationType,(Pe=this.resolvers&&this.resolvers[Ae])&&(Ce=Pe[le?H:X])&&(be=Promise.resolve(an.withValue(this.cache,Ce,[f,Ke(o,B),E.context,{field:o,fragmentMap:E.fragmentMap}])))),[2,be.then(function(Le){return void 0===Le&&(Le=me),o.directives&&o.directives.forEach(function(Ve){"export"===Ve.name.value&&Ve.arguments&&Ve.arguments.forEach(function(Qe){"as"===Qe.name.value&&"StringValue"===Qe.value.kind&&(E.exportedVariables[Qe.value.value]=Le)})}),o.selectionSet&&null!=Le?Array.isArray(Le)?ke.resolveSubSelectedArray(o,Le,E):o.selectionSet?ke.resolveSelectionSet(o.selectionSet,Le,E):void 0:Le})]})})},S.prototype.resolveSubSelectedArray=function(o,f,E){var B=this;return Promise.all(f.map(function(H){return null===H?null:Array.isArray(H)?B.resolveSubSelectedArray(o,H,E):o.selectionSet?B.resolveSelectionSet(o.selectionSet,H,E):void 0}))},S}(),ar=new(Pt?WeakMap:Map);function on(S,o){var f=S[o];"function"==typeof f&&(S[o]=function(){return ar.set(S,(ar.get(S)+1)%1e15),f.apply(this,arguments)})}function Dn(S){S.notifyTimeout&&(clearTimeout(S.notifyTimeout),S.notifyTimeout=void 0)}var sn=function(){function S(o,f){void 0===f&&(f=o.generateQueryId()),this.queryId=f,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var E=this.cache=o.cache;ar.has(E)||(ar.set(E,0),on(E,"evict"),on(E,"modify"),on(E,"reset"))}return S.prototype.init=function(o){var f=o.networkStatus||tt.loading;return this.variables&&this.networkStatus!==tt.loading&&!(0,ut.D)(this.variables,o.variables)&&(f=tt.setVariables),(0,ut.D)(o.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:o.document,variables:o.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:f}),o.observableQuery&&this.setObservableQuery(o.observableQuery),o.lastRequestId&&(this.lastRequestId=o.lastRequestId),this},S.prototype.reset=function(){Dn(this),this.lastDiff=void 0,this.dirty=!1},S.prototype.getDiff=function(o){void 0===o&&(o=this.variables);var f=this.getDiffOptions(o);if(this.lastDiff&&(0,ut.D)(f,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=o);var E=this.observableQuery;if(E&&"no-cache"===E.options.fetchPolicy)return{complete:!1};var B=this.cache.diff(f);return this.updateLastDiff(B,f),B},S.prototype.updateLastDiff=function(o,f){this.lastDiff=o?{diff:o,options:f||this.getDiffOptions()}:void 0},S.prototype.getDiffOptions=function(o){var f;return void 0===o&&(o=this.variables),{query:this.document,variables:o,returnPartialData:!0,optimistic:!0,canonizeResults:null===(f=this.observableQuery)||void 0===f?void 0:f.options.canonizeResults}},S.prototype.setDiff=function(o){var f=this,E=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(o),!this.dirty&&!(0,ut.D)(E&&E.result,o&&o.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return f.notify()},0)))},S.prototype.setObservableQuery=function(o){var f=this;o!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=o,o?(o.queryInfo=this,this.listeners.add(this.oqListener=function(){f.getDiff().fromOptimisticTransaction?o.observe():xn(o)})):delete this.oqListener)},S.prototype.notify=function(){var o=this;Dn(this),this.shouldNotify()&&this.listeners.forEach(function(f){return f(o)}),this.dirty=!1},S.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(br(this.networkStatus)&&this.observableQuery){var o=this.observableQuery.options.fetchPolicy;if("cache-only"!==o&&"cache-and-network"!==o)return!1}return!0},S.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=S.prototype.cancel,this.subscriptions.forEach(function(f){return f.unsubscribe()});var o=this.observableQuery;o&&o.stopPolling()}},S.prototype.cancel=function(){},S.prototype.updateWatch=function(o){var f=this;void 0===o&&(o=this.variables);var E=this.observableQuery;if(!E||"no-cache"!==E.options.fetchPolicy){var B=(0,t.pi)((0,t.pi)({},this.getDiffOptions(o)),{watcher:this,callback:function(H){return f.setDiff(H)}});(!this.lastWatch||!(0,ut.D)(B,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=B))}},S.prototype.resetLastWrite=function(){this.lastWrite=void 0},S.prototype.shouldWrite=function(o,f){var E=this.lastWrite;return!(E&&E.dmCount===ar.get(this.cache)&&(0,ut.D)(f,E.variables)&&(0,ut.D)(o.data,E.result.data))},S.prototype.markResult=function(o,f,E){var B=this;this.graphQLErrors=Gt(o.errors)?o.errors:[],this.reset(),"no-cache"===f.fetchPolicy?this.updateLastDiff({result:o.data,complete:!0},this.getDiffOptions(f.variables)):0!==E&&(un(o,f.errorPolicy)?this.cache.performTransaction(function(H){if(B.shouldWrite(o,f.variables))H.writeQuery({query:B.document,data:o.data,variables:f.variables,overwrite:1===E}),B.lastWrite={result:o,variables:f.variables,dmCount:ar.get(B.cache)};else if(B.lastDiff&&B.lastDiff.diff.complete)return void(o.data=B.lastDiff.diff.result);var X=B.getDiffOptions(f.variables),le=H.diff(X);B.stopped||B.updateWatch(f.variables),B.updateLastDiff(le,X),le.complete&&(o.data=le.result)}):this.lastWrite=void 0)},S.prototype.markReady=function(){return this.networkError=null,this.networkStatus=tt.ready},S.prototype.markError=function(o){return this.networkStatus=tt.error,this.lastWrite=void 0,this.reset(),o.graphQLErrors&&(this.graphQLErrors=o.graphQLErrors),o.networkError&&(this.networkError=o.networkError),o},S}();function un(S,o){void 0===o&&(o="none");var f="ignore"===o||"all"===o,E=!Se(S);return!E&&f&&S.data&&(E=!0),E}var mi=Object.prototype.hasOwnProperty,gi=function(){function S(o){var f=o.cache,E=o.link,B=o.defaultOptions,H=o.queryDeduplication,X=void 0!==H&&H,le=o.onBroadcast,me=o.ssrMode,be=void 0!==me&&me,Ae=o.clientAwareness,Pe=void 0===Ae?{}:Ae,Ce=o.localState,ke=o.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Pt?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=f,this.link=E,this.defaultOptions=B||Object.create(null),this.queryDeduplication=X,this.clientAwareness=Pe,this.localState=Ce||new Pn({cache:f}),this.ssrMode=be,this.assumeImmutableResults=!!ke,(this.onBroadcast=le)&&(this.mutationStore=Object.create(null))}return S.prototype.stop=function(){var o=this;this.queries.forEach(function(f,E){o.stopQueryNoBroadcast(E)}),this.cancelPendingFetches(__DEV__?new n("QueryManager stopped while query was in flight"):new n(11))},S.prototype.cancelPendingFetches=function(o){this.fetchCancelFns.forEach(function(f){return f(o)}),this.fetchCancelFns.clear()},S.prototype.mutate=function(o){var f,E,B=o.mutation,H=o.variables,X=o.optimisticResponse,le=o.updateQueries,me=o.refetchQueries,be=void 0===me?[]:me,Ae=o.awaitRefetchQueries,Pe=void 0!==Ae&&Ae,Ce=o.update,ke=o.onQueryUpdated,je=o.fetchPolicy,Le=void 0===je?(null===(f=this.defaultOptions.mutate)||void 0===f?void 0:f.fetchPolicy)||"network-only":je,Ve=o.errorPolicy,Qe=void 0===Ve?(null===(E=this.defaultOptions.mutate)||void 0===E?void 0:E.errorPolicy)||"none":Ve,Xe=o.keepRootFields,We=o.context;return(0,t.mG)(this,void 0,void 0,function(){var He,Ze,Ye;return(0,t.Jh)(this,function(Je){switch(Je.label){case 0:return __DEV__?i(B,"mutation option is required. You must specify your GraphQL document in the mutation option."):i(B,12),__DEV__?i("network-only"===Le||"no-cache"===Le,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):i("network-only"===Le||"no-cache"===Le,13),He=this.generateMutationId(),B=this.transform(B).document,H=this.getVariables(B,H),this.transform(B).hasClientExports?[4,this.localState.addExportedVariables(B,H,We)]:[3,2];case 1:H=Je.sent(),Je.label=2;case 2:return Ze=this.mutationStore&&(this.mutationStore[He]={mutation:B,variables:H,loading:!0,error:null}),X&&this.markMutationOptimistic(X,{mutationId:He,document:B,variables:H,fetchPolicy:Le,errorPolicy:Qe,context:We,updateQueries:le,update:Ce,keepRootFields:Xe}),this.broadcastQueries(),Ye=this,[2,new Promise(function(rt,gt){return we(Ye.getObservableFromLink(B,(0,t.pi)((0,t.pi)({},We),{optimisticResponse:X}),H,!1),function(ot){if(Se(ot)&&"none"===Qe)throw new Yt({graphQLErrors:ot.errors});Ze&&(Ze.loading=!1,Ze.error=null);var kt=(0,t.pi)({},ot);return"function"==typeof be&&(be=be(kt)),"ignore"===Qe&&Se(kt)&&delete kt.errors,Ye.markMutationResult({mutationId:He,result:kt,document:B,variables:H,fetchPolicy:Le,errorPolicy:Qe,context:We,update:Ce,updateQueries:le,awaitRefetchQueries:Pe,refetchQueries:be,removeOptimistic:X?He:void 0,onQueryUpdated:ke,keepRootFields:Xe})}).subscribe({next:function(ot){Ye.broadcastQueries(),rt(ot)},error:function(ot){Ze&&(Ze.loading=!1,Ze.error=ot),X&&Ye.cache.removeOptimistic(He),Ye.broadcastQueries(),gt(ot instanceof Yt?ot:new Yt({networkError:ot}))}})})]}})})},S.prototype.markMutationResult=function(o,f){var E=this;void 0===f&&(f=this.cache);var B=o.result,H=[],X="no-cache"===o.fetchPolicy;if(!X&&un(B,o.errorPolicy)){H.push({result:B.data,dataId:"ROOT_MUTATION",query:o.document,variables:o.variables});var le=o.updateQueries;le&&this.queries.forEach(function(be,Ae){var Pe=be.observableQuery,Ce=Pe&&Pe.queryName;if(Ce&&mi.call(le,Ce)){var ke=le[Ce],je=E.queries.get(Ae),Le=je.document,Ve=je.variables,Qe=f.diff({query:Le,variables:Ve,returnPartialData:!0,optimistic:!1}),Xe=Qe.result;if(Qe.complete&&Xe){var He=ke(Xe,{mutationResult:B,queryName:Le&&ft(Le)||void 0,queryVariables:Ve});He&&H.push({result:He,dataId:"ROOT_QUERY",query:Le,variables:Ve})}}})}if(H.length>0||o.refetchQueries||o.update||o.onQueryUpdated||o.removeOptimistic){var me=[];if(this.refetchQueries({updateCache:function(be){X||H.forEach(function(Ce){return be.write(Ce)});var Ae=o.update;if(Ae){if(!X){var Pe=be.diff({id:"ROOT_MUTATION",query:E.transform(o.document).asQuery,variables:o.variables,optimistic:!1,returnPartialData:!0});Pe.complete&&(B=(0,t.pi)((0,t.pi)({},B),{data:Pe.result}))}Ae(be,B,{context:o.context,variables:o.variables})}!X&&!o.keepRootFields&&be.modify({id:"ROOT_MUTATION",fields:function(Ce,ke){return"__typename"===ke.fieldName?Ce:ke.DELETE}})},include:o.refetchQueries,optimistic:!1,removeOptimistic:o.removeOptimistic,onQueryUpdated:o.onQueryUpdated||null}).forEach(function(be){return me.push(be)}),o.awaitRefetchQueries||o.onQueryUpdated)return Promise.all(me).then(function(){return B})}return Promise.resolve(B)},S.prototype.markMutationOptimistic=function(o,f){var E=this,B="function"==typeof o?o(f.variables):o;return this.cache.recordOptimisticTransaction(function(H){try{E.markMutationResult((0,t.pi)((0,t.pi)({},f),{result:{data:B}}),H)}catch(X){__DEV__&&i.error(X)}},f.mutationId)},S.prototype.fetchQuery=function(o,f,E){return this.fetchQueryObservable(o,f,E).promise},S.prototype.getQueryStore=function(){var o=Object.create(null);return this.queries.forEach(function(f,E){o[E]={variables:f.variables,networkStatus:f.networkStatus,networkError:f.networkError,graphQLErrors:f.graphQLErrors}}),o},S.prototype.resetErrors=function(o){var f=this.queries.get(o);f&&(f.networkError=void 0,f.graphQLErrors=[])},S.prototype.transform=function(o){var f=this.transformCache;if(!f.has(o)){var E=this.cache.transformDocument(o),B=function xt(S){return dt([lt],Rt(S))}(this.cache.transformForLink(E)),H=this.localState.clientQuery(E),X=B&&this.localState.serverQuery(B),le={document:E,hasClientExports:$r(E),hasForcedResolvers:this.localState.shouldForceResolvers(E),clientQuery:H,serverQuery:X,defaultVars:It(St(E)),asQuery:(0,t.pi)((0,t.pi)({},E),{definitions:E.definitions.map(function(be){return"OperationDefinition"===be.kind&&"query"!==be.operation?(0,t.pi)((0,t.pi)({},be),{operation:"query"}):be})})},me=function(be){be&&!f.has(be)&&f.set(be,le)};me(o),me(E),me(H),me(X)}return f.get(o)},S.prototype.getVariables=function(o,f){return(0,t.pi)((0,t.pi)({},this.transform(o).defaultVars),f)},S.prototype.watchQuery=function(o){typeof(o=(0,t.pi)((0,t.pi)({},o),{variables:this.getVariables(o.query,o.variables)})).notifyOnNetworkStatusChange>"u"&&(o.notifyOnNetworkStatusChange=!1);var f=new sn(this),E=new Lr({queryManager:this,queryInfo:f,options:o});return this.queries.set(E.queryId,f),f.init({document:E.query,observableQuery:E,variables:E.variables}),E},S.prototype.query=function(o,f){var E=this;return void 0===f&&(f=this.generateQueryId()),__DEV__?i(o.query,"query option is required. You must specify your GraphQL document in the query option."):i(o.query,14),__DEV__?i("Document"===o.query.kind,'You must wrap the query string in a "gql" tag.'):i("Document"===o.query.kind,15),__DEV__?i(!o.returnPartialData,"returnPartialData option only supported on watchQuery."):i(!o.returnPartialData,16),__DEV__?i(!o.pollInterval,"pollInterval option only supported on watchQuery."):i(!o.pollInterval,17),this.fetchQuery(f,o).finally(function(){return E.stopQuery(f)})},S.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},S.prototype.generateRequestId=function(){return this.requestIdCounter++},S.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},S.prototype.stopQueryInStore=function(o){this.stopQueryInStoreNoBroadcast(o),this.broadcastQueries()},S.prototype.stopQueryInStoreNoBroadcast=function(o){var f=this.queries.get(o);f&&f.stop()},S.prototype.clearStore=function(o){return void 0===o&&(o={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new n("Store reset while query was in flight (not completed in link chain)"):new n(18)),this.queries.forEach(function(f){f.observableQuery?f.networkStatus=tt.loading:f.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(o)},S.prototype.getObservableQueries=function(o){var f=this;void 0===o&&(o="active");var E=new Map,B=new Map,H=new Set;return Array.isArray(o)&&o.forEach(function(X){"string"==typeof X?B.set(X,!1):function k(S){return De(S)&&"Document"===S.kind&&Array.isArray(S.definitions)}(X)?B.set(f.transform(X).document,!1):De(X)&&X.query&&H.add(X)}),this.queries.forEach(function(X,le){var me=X.observableQuery,be=X.document;if(me){if("all"===o)return void E.set(le,me);var Ae=me.queryName;if("standby"===me.options.fetchPolicy||"active"===o&&!me.hasObservers())return;("active"===o||Ae&&B.has(Ae)||be&&B.has(be))&&(E.set(le,me),Ae&&B.set(Ae,!0),be&&B.set(be,!0))}}),H.size&&H.forEach(function(X){var le=rn("legacyOneTimeQuery"),me=f.getQuery(le).init({document:X.query,variables:X.variables}),be=new Lr({queryManager:f,queryInfo:me,options:(0,t.pi)((0,t.pi)({},X),{fetchPolicy:"network-only"})});i(be.queryId===le),me.setObservableQuery(be),E.set(le,be)}),__DEV__&&B.size&&B.forEach(function(X,le){X||__DEV__&&i.warn("Unknown query ".concat("string"==typeof le?"named ":"").concat(JSON.stringify(le,null,2)," requested in refetchQueries options.include array"))}),E},S.prototype.reFetchObservableQueries=function(o){var f=this;void 0===o&&(o=!1);var E=[];return this.getObservableQueries(o?"all":"active").forEach(function(B,H){var X=B.options.fetchPolicy;B.resetLastResults(),(o||"standby"!==X&&"cache-only"!==X)&&E.push(B.refetch()),f.getQuery(H).setDiff(null)}),this.broadcastQueries(),Promise.all(E)},S.prototype.setObservableQuery=function(o){this.getQuery(o.queryId).setObservableQuery(o)},S.prototype.startGraphQLSubscription=function(o){var f=this,E=o.query,B=o.fetchPolicy,H=o.errorPolicy,X=o.variables,le=o.context,me=void 0===le?{}:le;E=this.transform(E).document,X=this.getVariables(E,X);var be=function(Pe){return f.getObservableFromLink(E,me,Pe).map(function(Ce){if("no-cache"!==B&&(un(Ce,H)&&f.cache.write({query:E,result:Ce.data,dataId:"ROOT_SUBSCRIPTION",variables:Pe}),f.broadcastQueries()),Se(Ce))throw new Yt({graphQLErrors:Ce.errors});return Ce})};if(this.transform(E).hasClientExports){var Ae=this.localState.addExportedVariables(E,X,me).then(be);return new ye(function(Pe){var Ce=null;return Ae.then(function(ke){return Ce=ke.subscribe(Pe)},Pe.error),function(){return Ce&&Ce.unsubscribe()}})}return be(X)},S.prototype.stopQuery=function(o){this.stopQueryNoBroadcast(o),this.broadcastQueries()},S.prototype.stopQueryNoBroadcast=function(o){this.stopQueryInStoreNoBroadcast(o),this.removeQuery(o)},S.prototype.removeQuery=function(o){this.fetchCancelFns.delete(o),this.queries.has(o)&&(this.getQuery(o).stop(),this.queries.delete(o))},S.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(o){return o.notify()})},S.prototype.getLocalState=function(){return this.localState},S.prototype.getObservableFromLink=function(o,f,E,B){var X,H=this;void 0===B&&(B=null!==(X=f?.queryDeduplication)&&void 0!==X?X:this.queryDeduplication);var le,me=this.transform(o).serverQuery;if(me){var Ae=this.inFlightLinkObservables,Pe=this.link,Ce={query:me,variables:E,operationName:ft(me)||void 0,context:this.prepareContext((0,t.pi)((0,t.pi)({},f),{forceFetch:!B}))};if(f=Ce.context,B){var ke=Ae.get(me)||new Map;Ae.set(me,ke);var je=G(E);if(!(le=ke.get(je))){var Le=new gr([Nt(Pe,Ce)]);ke.set(je,le=Le),Le.cleanup(function(){ke.delete(je)&&ke.size<1&&Ae.delete(me)})}}else le=new gr([Nt(Pe,Ce)])}else le=new gr([ye.of({data:{}})]),f=this.prepareContext(f);var Ve=this.transform(o).clientQuery;return Ve&&(le=we(le,function(Qe){return H.localState.runResolvers({document:Ve,remoteResult:Qe,context:f,variables:E})})),le},S.prototype.getResultsFromLink=function(o,f,E){var B=o.lastRequestId=this.generateRequestId();return we(this.getObservableFromLink(o.document,E.context,E.variables),function(H){var X=Gt(H.errors);if(B>=o.lastRequestId){if(X&&"none"===E.errorPolicy)throw o.markError(new Yt({graphQLErrors:H.errors}));o.markResult(H,E,f),o.markReady()}var le={data:H.data,loading:!1,networkStatus:tt.ready};return X&&"ignore"!==E.errorPolicy&&(le.errors=H.errors,le.networkStatus=tt.error),le},function(H){var X=On(H)?H:new Yt({networkError:H});throw B>=o.lastRequestId&&o.markError(X),X})},S.prototype.fetchQueryObservable=function(o,f,E){var B=this;void 0===E&&(E=tt.loading);var H=this.transform(f.query).document,X=this.getVariables(H,f.variables),le=this.getQuery(o),me=this.defaultOptions.watchQuery,be=f.fetchPolicy,Pe=f.errorPolicy,ke=f.returnPartialData,Le=f.notifyOnNetworkStatusChange,Qe=f.context,We=Object.assign({},f,{query:H,variables:X,fetchPolicy:void 0===be?me&&me.fetchPolicy||"cache-first":be,errorPolicy:void 0===Pe?me&&me.errorPolicy||"none":Pe,returnPartialData:void 0!==ke&&ke,notifyOnNetworkStatusChange:void 0!==Le&&Le,context:void 0===Qe?{}:Qe}),He=function(Je){We.variables=Je;var rt=B.fetchQueryByPolicy(le,We,E);return"standby"!==We.fetchPolicy&&rt.length>0&&le.observableQuery&&le.observableQuery.applyNextFetchPolicy("after-fetch",f),rt},Ze=function(){return B.fetchCancelFns.delete(o)};this.fetchCancelFns.set(o,function(Je){Ze(),setTimeout(function(){return Ye.cancel(Je)})});var Ye=new gr(this.transform(We.query).hasClientExports?this.localState.addExportedVariables(We.query,We.variables,We.context).then(He):He(We.variables));return Ye.promise.then(Ze,Ze),Ye},S.prototype.refetchQueries=function(o){var f=this,E=o.updateCache,B=o.include,H=o.optimistic,X=void 0!==H&&H,le=o.removeOptimistic,me=void 0===le?X?rn("refetchQueries"):void 0:le,be=o.onQueryUpdated,Ae=new Map;B&&this.getObservableQueries(B).forEach(function(Ce,ke){Ae.set(ke,{oq:Ce,lastDiff:f.getQuery(ke).getDiff()})});var Pe=new Map;return E&&this.cache.batch({update:E,optimistic:X&&me||!1,removeOptimistic:me,onWatchUpdated:function(Ce,ke,je){var Le=Ce.watcher instanceof sn&&Ce.watcher.observableQuery;if(Le){if(be){Ae.delete(Le.queryId);var Ve=be(Le,ke,je);return!0===Ve&&(Ve=Le.refetch()),!1!==Ve&&Pe.set(Le,Ve),Ve}null!==be&&Ae.set(Le.queryId,{oq:Le,lastDiff:je,diff:ke})}}}),Ae.size&&Ae.forEach(function(Ce,ke){var Qe,je=Ce.oq,Le=Ce.lastDiff,Ve=Ce.diff;if(be){if(!Ve){var Xe=je.queryInfo;Xe.reset(),Ve=Xe.getDiff()}Qe=be(je,Ve,Le)}(!be||!0===Qe)&&(Qe=je.refetch()),!1!==Qe&&Pe.set(je,Qe),ke.indexOf("legacyOneTimeQuery")>=0&&f.stopQueryNoBroadcast(ke)}),me&&this.cache.removeOptimistic(me),Pe},S.prototype.fetchQueryByPolicy=function(o,f,E){var B=this,H=f.query,X=f.variables,le=f.fetchPolicy,me=f.refetchWritePolicy,be=f.errorPolicy,Ae=f.returnPartialData,Pe=f.context,Ce=f.notifyOnNetworkStatusChange,ke=o.networkStatus;o.init({document:this.transform(H).document,variables:X,networkStatus:E});var je=function(){return o.getDiff(X)},Le=function(He,Ze){void 0===Ze&&(Ze=o.networkStatus||tt.loading);var Ye=He.result;__DEV__&&!Ae&&!(0,ut.D)(Ye,{})&&Tn(He.missing);var Je=function(rt){return ye.of((0,t.pi)({data:rt,loading:br(Ze),networkStatus:Ze},He.complete?null:{partial:!0}))};return Ye&&B.transform(H).hasForcedResolvers?B.localState.runResolvers({document:H,remoteResult:{data:Ye},context:Pe,variables:X,onlyRunForcedResolvers:!0}).then(function(rt){return Je(rt.data||void 0)}):Je(Ye)},Ve="no-cache"===le?0:E===tt.refetch&&"merge"!==me?1:2,Qe=function(){return B.getResultsFromLink(o,Ve,{variables:X,context:Pe,fetchPolicy:le,errorPolicy:be})},Xe=Ce&&"number"==typeof ke&&ke!==E&&br(E);switch(le){default:case"cache-first":return(We=je()).complete?[Le(We,o.markReady())]:Ae||Xe?[Le(We),Qe()]:[Qe()];case"cache-and-network":var We;return(We=je()).complete||Ae||Xe?[Le(We),Qe()]:[Qe()];case"cache-only":return[Le(je(),o.markReady())];case"network-only":return Xe?[Le(je()),Qe()]:[Qe()];case"no-cache":return Xe?[Le(o.getDiff()),Qe()]:[Qe()];case"standby":return[]}},S.prototype.getQuery=function(o){return o&&!this.queries.has(o)&&this.queries.set(o,new sn(this,o)),this.queries.get(o)},S.prototype.prepareContext=function(o){void 0===o&&(o={});var f=this.localState.prepareContext(o);return(0,t.pi)((0,t.pi)({},f),{clientAwareness:this.clientAwareness})},S}();function Nr(S,o){return zt(S,o,o.variables&&{variables:(0,t.pi)((0,t.pi)({},S&&S.variables),o.variables)})}var cn,Mn=!1,bi=function(){function S(o){var f=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var E=o.uri,X=o.cache,le=o.ssrMode,me=void 0!==le&&le,be=o.ssrForceFetchDelay,Ae=void 0===be?0:be,Pe=o.connectToDevTools,Ce=void 0===Pe?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:Pe,ke=o.queryDeduplication,je=void 0===ke||ke,Le=o.defaultOptions,Ve=o.assumeImmutableResults,Qe=void 0!==Ve&&Ve,Xe=o.resolvers,We=o.typeDefs,He=o.fragmentMatcher,Ze=o.name,Ye=o.version,Je=o.link;if(Je||(Je=E?new tr({uri:E,credentials:o.credentials,headers:o.headers}):mt.empty()),!X)throw __DEV__?new n("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new n(7);if(this.link=Je,this.cache=X,this.disableNetworkFetches=me||Ae>0,this.queryDeduplication=je,this.defaultOptions=Le||Object.create(null),this.typeDefs=We,Ae&&setTimeout(function(){return f.disableNetworkFetches=!1},Ae),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),Ce&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!Mn&&__DEV__&&(Mn=!0,typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var rt=window.navigator,gt=rt&&rt.userAgent,ot=void 0;"string"==typeof gt&&(gt.indexOf("Chrome/")>-1?ot="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":gt.indexOf("Firefox/")>-1&&(ot="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),ot&&__DEV__&&i.log("Download the Apollo DevTools for a better development experience: "+ot)}this.version="3.6.9",this.localState=new Pn({cache:X,client:this,resolvers:Xe,fragmentMatcher:He}),this.queryManager=new gi({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:je,ssrMode:me,clientAwareness:{name:Ze,version:Ye},localState:this.localState,assumeImmutableResults:Qe,onBroadcast:Ce?function(){f.devToolsHookCb&&f.devToolsHookCb({action:{},state:{queries:f.queryManager.getQueryStore(),mutations:f.queryManager.mutationStore||{}},dataWithOptimisticResults:f.cache.extract(!0)})}:void 0})}return S.prototype.stop=function(){this.queryManager.stop()},S.prototype.watchQuery=function(o){return this.defaultOptions.watchQuery&&(o=Nr(this.defaultOptions.watchQuery,o)),this.disableNetworkFetches&&("network-only"===o.fetchPolicy||"cache-and-network"===o.fetchPolicy)&&(o=(0,t.pi)((0,t.pi)({},o),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(o)},S.prototype.query=function(o){return this.defaultOptions.query&&(o=Nr(this.defaultOptions.query,o)),__DEV__?i("cache-and-network"!==o.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):i("cache-and-network"!==o.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===o.fetchPolicy&&(o=(0,t.pi)((0,t.pi)({},o),{fetchPolicy:"cache-first"})),this.queryManager.query(o)},S.prototype.mutate=function(o){return this.defaultOptions.mutate&&(o=Nr(this.defaultOptions.mutate,o)),this.queryManager.mutate(o)},S.prototype.subscribe=function(o){return this.queryManager.startGraphQLSubscription(o)},S.prototype.readQuery=function(o,f){return void 0===f&&(f=!1),this.cache.readQuery(o,f)},S.prototype.readFragment=function(o,f){return void 0===f&&(f=!1),this.cache.readFragment(o,f)},S.prototype.writeQuery=function(o){this.cache.writeQuery(o),this.queryManager.broadcastQueries()},S.prototype.writeFragment=function(o){this.cache.writeFragment(o),this.queryManager.broadcastQueries()},S.prototype.__actionHookForDevTools=function(o){this.devToolsHookCb=o},S.prototype.__requestRaw=function(o){return Nt(this.link,o)},S.prototype.resetStore=function(){var o=this;return Promise.resolve().then(function(){return o.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(o.resetStoreCallbacks.map(function(f){return f()}))}).then(function(){return o.reFetchObservableQueries()})},S.prototype.clearStore=function(){var o=this;return Promise.resolve().then(function(){return o.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(o.clearStoreCallbacks.map(function(f){return f()}))})},S.prototype.onResetStore=function(o){var f=this;return this.resetStoreCallbacks.push(o),function(){f.resetStoreCallbacks=f.resetStoreCallbacks.filter(function(E){return E!==o})}},S.prototype.onClearStore=function(o){var f=this;return this.clearStoreCallbacks.push(o),function(){f.clearStoreCallbacks=f.clearStoreCallbacks.filter(function(E){return E!==o})}},S.prototype.reFetchObservableQueries=function(o){return this.queryManager.reFetchObservableQueries(o)},S.prototype.refetchQueries=function(o){var f=this.queryManager.refetchQueries(o),E=[],B=[];f.forEach(function(X,le){E.push(le),B.push(X)});var H=Promise.all(B);return H.queries=E,H.results=B,H.catch(function(X){__DEV__&&i.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(X))}),H},S.prototype.getObservableQueries=function(o){return void 0===o&&(o="active"),this.queryManager.getObservableQueries(o)},S.prototype.extract=function(o){return this.cache.extract(o)},S.prototype.restore=function(o){return this.cache.restore(o)},S.prototype.addResolvers=function(o){this.localState.addResolvers(o)},S.prototype.setResolvers=function(o){this.localState.setResolvers(o)},S.prototype.getResolvers=function(){return this.localState.getResolvers()},S.prototype.setLocalStateFragmentMatcher=function(o){this.localState.setFragmentMatcher(o)},S.prototype.setLink=function(o){this.link=this.queryManager.link=o},S}();cn||(cn={});var kn=function(){function S(){this.getFragmentDoc=(0,ir.re)(Me)}return S.prototype.batch=function(o){var B,f=this;return this.performTransaction(function(){return B=o.update(f)},"string"==typeof o.optimistic?o.optimistic:!1===o.optimistic?null:void 0),B},S.prototype.recordOptimisticTransaction=function(o,f){this.performTransaction(o,f)},S.prototype.transformDocument=function(o){return o},S.prototype.identify=function(o){},S.prototype.gc=function(){return[]},S.prototype.modify=function(o){return!1},S.prototype.transformForLink=function(o){return o},S.prototype.readQuery=function(o,f){return void 0===f&&(f=!!o.optimistic),this.read((0,t.pi)((0,t.pi)({},o),{rootId:o.id||"ROOT_QUERY",optimistic:f}))},S.prototype.readFragment=function(o,f){return void 0===f&&(f=!!o.optimistic),this.read((0,t.pi)((0,t.pi)({},o),{query:this.getFragmentDoc(o.fragment,o.fragmentName),rootId:o.id,optimistic:f}))},S.prototype.writeQuery=function(o){var f=o.id,E=o.data,B=(0,t._T)(o,["id","data"]);return this.write(Object.assign(B,{dataId:f||"ROOT_QUERY",result:E}))},S.prototype.writeFragment=function(o){var f=o.id,E=o.data,B=o.fragment,H=o.fragmentName,X=(0,t._T)(o,["id","data","fragment","fragmentName"]);return this.write(Object.assign(X,{query:this.getFragmentDoc(B,H),dataId:f,result:E}))},S.prototype.updateQuery=function(o,f){return this.batch({update:function(E){var B=E.readQuery(o),H=f(B);return null==H?B:(E.writeQuery((0,t.pi)((0,t.pi)({},o),{data:H})),H)}})},S.prototype.updateFragment=function(o,f){return this.batch({update:function(E){var B=E.readFragment(o),H=f(B);return null==H?B:(E.writeFragment((0,t.pi)((0,t.pi)({},o),{data:H})),H)}})},S}(),fn=function S(o,f,E,B){this.message=o,this.path=f,this.query=E,this.variables=B};function ln(S){return __DEV__&&function Ei(S){var o=new Set([S]);return o.forEach(function(f){De(f)&&function _i(S){if(__DEV__&&!Object.isFrozen(S))try{Object.freeze(S)}catch(o){if(o instanceof TypeError)return null;throw o}return S}(f)===f&&Object.getOwnPropertyNames(f).forEach(function(E){De(f[E])&&o.add(f[E])})}),S}(S),S}var Br=Object.create(null),hn=function(){return Br},Fn=Object.create(null),_r=function(){function S(o,f){var E=this;this.policies=o,this.group=f,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(B,H){return ln(O(B)?E.get(B.__ref,H):B&&B[H])},this.canRead=function(B){return O(B)?E.has(B.__ref):"object"==typeof B},this.toReference=function(B,H){if("string"==typeof B)return v(B);if(O(B))return B;var X=E.policies.identify(B)[0];if(X){var le=v(X);return H&&E.merge(X,B),le}}}return S.prototype.toObject=function(){return(0,t.pi)({},this.data)},S.prototype.has=function(o){return void 0!==this.lookup(o,!0)},S.prototype.get=function(o,f){if(this.group.depend(o,f),st.call(this.data,o)){var E=this.data[o];if(E&&st.call(E,f))return E[f]}return"__typename"===f&&st.call(this.policies.rootTypenamesById,o)?this.policies.rootTypenamesById[o]:this instanceof Ut?this.parent.get(o,f):void 0},S.prototype.lookup=function(o,f){return f&&this.group.depend(o,"__exists"),st.call(this.data,o)?this.data[o]:this instanceof Ut?this.parent.lookup(o,f):this.policies.rootTypenamesById[o]?Object.create(null):void 0},S.prototype.merge=function(o,f){var B,E=this;O(o)&&(o=o.__ref),O(f)&&(f=f.__ref);var H="string"==typeof o?this.lookup(B=o):o,X="string"==typeof f?this.lookup(B=f):f;if(X){__DEV__?i("string"==typeof B,"store.merge expects a string ID"):i("string"==typeof B,1);var le=new Dt(wi).merge(H,X);if(this.data[B]=le,le!==H&&(delete this.refs[B],this.group.caching)){var me=Object.create(null);H||(me.__exists=1),Object.keys(X).forEach(function(be){if(!H||H[be]!==le[be]){me[be]=1;var Ae=At(be);Ae!==be&&!E.policies.hasKeyArgs(le.__typename,Ae)&&(me[Ae]=1),void 0===le[be]&&!(E instanceof Ut)&&delete le[be]}}),me.__typename&&!(H&&H.__typename)&&this.policies.rootTypenamesById[B]===le.__typename&&delete me.__typename,Object.keys(me).forEach(function(be){return E.group.dirty(B,be)})}}},S.prototype.modify=function(o,f){var E=this,B=this.lookup(o);if(B){var H=Object.create(null),X=!1,le=!0,me={DELETE:Br,INVALIDATE:Fn,isReference:O,toReference:this.toReference,canRead:this.canRead,readField:function(be,Ae){return E.policies.readField("string"==typeof be?{fieldName:be,from:Ae||v(o)}:be,{store:E})}};if(Object.keys(B).forEach(function(be){var Ae=At(be),Pe=B[be];if(void 0!==Pe){var Ce="function"==typeof f?f:f[be]||f[Ae];if(Ce){var ke=Ce===hn?Br:Ce(ln(Pe),(0,t.pi)((0,t.pi)({},me),{fieldName:Ae,storeFieldName:be,storage:E.getStorage(o,be)}));ke===Fn?E.group.dirty(o,be):(ke===Br&&(ke=void 0),ke!==Pe&&(H[be]=ke,X=!0,Pe=ke))}void 0!==Pe&&(le=!1)}}),X)return this.merge(o,H),le&&(this instanceof Ut?this.data[o]=void 0:delete this.data[o],this.group.dirty(o,"__exists")),!0}return!1},S.prototype.delete=function(o,f,E){var B,H=this.lookup(o);if(H){var X=this.getFieldValue(H,"__typename"),le=f&&E?this.policies.getStoreFieldName({typename:X,fieldName:f,args:E}):f;return this.modify(o,le?((B={})[le]=hn,B):hn)}return!1},S.prototype.evict=function(o,f){var E=!1;return o.id&&(st.call(this.data,o.id)&&(E=this.delete(o.id,o.fieldName,o.args)),this instanceof Ut&&this!==f&&(E=this.parent.evict(o,f)||E),(o.fieldName||E)&&this.group.dirty(o.id,o.fieldName||"__exists")),E},S.prototype.clear=function(){this.replace(null)},S.prototype.extract=function(){var o=this,f=this.toObject(),E=[];return this.getRootIdSet().forEach(function(B){st.call(o.policies.rootTypenamesById,B)||E.push(B)}),E.length&&(f.__META={extraRootIds:E.sort()}),f},S.prototype.replace=function(o){var f=this;if(Object.keys(this.data).forEach(function(H){o&&st.call(o,H)||f.delete(H)}),o){var E=o.__META,B=(0,t._T)(o,["__META"]);Object.keys(B).forEach(function(H){f.merge(H,B[H])}),E&&E.extraRootIds.forEach(this.retain,this)}},S.prototype.retain=function(o){return this.rootIds[o]=(this.rootIds[o]||0)+1},S.prototype.release=function(o){if(this.rootIds[o]>0){var f=--this.rootIds[o];return f||delete this.rootIds[o],f}return 0},S.prototype.getRootIdSet=function(o){return void 0===o&&(o=new Set),Object.keys(this.rootIds).forEach(o.add,o),this instanceof Ut?this.parent.getRootIdSet(o):Object.keys(this.policies.rootTypenamesById).forEach(o.add,o),o},S.prototype.gc=function(){var o=this,f=this.getRootIdSet(),E=this.toObject();f.forEach(function(X){st.call(E,X)&&(Object.keys(o.findChildRefIds(X)).forEach(f.add,f),delete E[X])});var B=Object.keys(E);if(B.length){for(var H=this;H instanceof Ut;)H=H.parent;B.forEach(function(X){return H.delete(X)})}return B},S.prototype.findChildRefIds=function(o){if(!st.call(this.refs,o)){var f=this.refs[o]=Object.create(null),E=this.data[o];if(!E)return f;var B=new Set([E]);B.forEach(function(H){O(H)&&(f[H.__ref]=!0),De(H)&&Object.keys(H).forEach(function(X){var le=H[X];De(le)&&B.add(le)})})}return this.refs[o]},S.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},S}(),Ln=function(){function S(o,f){void 0===f&&(f=null),this.caching=o,this.parent=f,this.d=null,this.resetCaching()}return S.prototype.resetCaching=function(){this.d=this.caching?(0,ir.dP)():null,this.keyMaker=new rr.B(Pt)},S.prototype.depend=function(o,f){if(this.d){this.d(pn(o,f));var E=At(f);E!==f&&this.d(pn(o,E)),this.parent&&this.parent.depend(o,f)}},S.prototype.dirty=function(o,f){this.d&&this.d.dirty(pn(o,f),"__exists"===f?"forget":"setDirty")},S}();function pn(S,o){return o+"#"+S}function Nn(S,o){Sr(S)&&S.group.depend(o,"__exists")}!function(S){var o=function(f){function E(B){var X=B.resultCaching,me=B.seed,be=f.call(this,B.policies,new Ln(void 0===X||X))||this;return be.stump=new Si(be),be.storageTrie=new rr.B(Pt),me&&be.replace(me),be}return(0,t.ZT)(E,f),E.prototype.addLayer=function(B,H){return this.stump.addLayer(B,H)},E.prototype.removeLayer=function(){return this},E.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},E}(S);S.Root=o}(_r||(_r={}));var Ut=function(S){function o(f,E,B,H){var X=S.call(this,E.policies,H)||this;return X.id=f,X.parent=E,X.replay=B,X.group=H,B(X),X}return(0,t.ZT)(o,S),o.prototype.addLayer=function(f,E){return new o(f,this,E,this.group)},o.prototype.removeLayer=function(f){var E=this,B=this.parent.removeLayer(f);return f===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(H){var X=E.data[H],le=B.lookup(H);le?X?X!==le&&Object.keys(X).forEach(function(me){(0,ut.D)(X[me],le[me])||E.group.dirty(H,me)}):(E.group.dirty(H,"__exists"),Object.keys(le).forEach(function(me){E.group.dirty(H,me)})):E.delete(H)}),B):B===this.parent?this:B.addLayer(this.id,this.replay)},o.prototype.toObject=function(){return(0,t.pi)((0,t.pi)({},this.parent.toObject()),this.data)},o.prototype.findChildRefIds=function(f){var E=this.parent.findChildRefIds(f);return st.call(this.data,f)?(0,t.pi)((0,t.pi)({},E),S.prototype.findChildRefIds.call(this,f)):E},o.prototype.getStorage=function(){for(var f=this.parent;f.parent;)f=f.parent;return f.getStorage.apply(f,arguments)},o}(_r),Si=function(S){function o(f){return S.call(this,"EntityStore.Stump",f,function(){},new Ln(f.group.caching,f.group))||this}return(0,t.ZT)(o,S),o.prototype.removeLayer=function(){return this},o.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},o}(Ut);function wi(S,o,f){var E=S[f],B=o[f];return(0,ut.D)(E,B)?E:B}function Sr(S){return!!(S instanceof _r&&S.group.caching)}function Bn(S){return[S.selectionSet,S.objectOrReference,S.context,S.context.canonizeResults]}var Oi=function(){function S(o){var f=this;this.knownResults=new(Pt?WeakMap:Map),this.config=zt(o,{addTypename:!1!==o.addTypename,canonizeResults:kr(o)}),this.canon=o.canon||new vr,this.executeSelectionSet=(0,ir.re)(function(E){var B,H=E.context.canonizeResults,X=Bn(E);X[3]=!H;var le=(B=f.executeSelectionSet).peek.apply(B,X);return le?H?(0,t.pi)((0,t.pi)({},le),{result:f.canon.admit(le.result)}):le:(Nn(E.context.store,E.enclosingRef.__ref),f.execSelectionSetImpl(E))},{max:this.config.resultCacheMaxSize,keyArgs:Bn,makeCacheKey:function(E,B,H,X){if(Sr(H.store))return H.store.makeCacheKey(E,O(B)?B.__ref:B,H.varString,X)}}),this.executeSubSelectedArray=(0,ir.re)(function(E){return Nn(E.context.store,E.enclosingRef.__ref),f.execSubSelectedArrayImpl(E)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(E){var B=E.field,H=E.array,X=E.context;if(Sr(X.store))return X.store.makeCacheKey(B,H,X.varString)}})}return S.prototype.resetCanon=function(){this.canon=new vr},S.prototype.diffQueryAgainstStore=function(o){var f=o.store,E=o.query,B=o.rootId,H=void 0===B?"ROOT_QUERY":B,X=o.variables,le=o.returnPartialData,me=void 0===le||le,be=o.canonizeResults,Ae=void 0===be?this.config.canonizeResults:be,Pe=this.config.cache.policies;X=(0,t.pi)((0,t.pi)({},It(Ft(E))),X);var je,Ce=v(H),ke=this.executeSelectionSet({selectionSet:Ct(E).selectionSet,objectOrReference:Ce,enclosingRef:Ce,context:{store:f,query:E,policies:Pe,variables:X,varString:G(X),canonizeResults:Ae,fragmentMap:ne(Tt(E))}});if(ke.missing&&(je=[new fn(Ai(ke.missing),ke.missing,E,X)],!me))throw je[0];return{result:ke.result,complete:!je,missing:je}},S.prototype.isFresh=function(o,f,E,B){if(Sr(B.store)&&this.knownResults.get(o)===E){var H=this.executeSelectionSet.peek(E,f,B,this.canon.isKnown(o));if(H&&o===H.result)return!0}return!1},S.prototype.execSelectionSetImpl=function(o){var f=this,E=o.selectionSet,B=o.objectOrReference,H=o.enclosingRef,X=o.context;if(O(B)&&!X.policies.rootTypenamesById[B.__ref]&&!X.store.has(B.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(B.__ref," object")};var Ce,le=X.variables,me=X.policies,Ae=X.store.getFieldValue(B,"__typename"),Pe=[],ke=new Dt;function je(We,He){var Ze;return We.missing&&(Ce=ke.merge(Ce,((Ze={})[He]=We.missing,Ze))),We.result}this.config.addTypename&&"string"==typeof Ae&&!me.rootIdsByTypename[Ae]&&Pe.push({__typename:Ae});var Le=new Set(E.selections);Le.forEach(function(We){var He,Ze;if(Ht(We,le))if(pt(We)){var Ye=me.readField({fieldName:We.name.value,field:We,variables:X.variables,from:B},X),Je=ct(We);void 0===Ye?$e.added(We)||(Ce=ke.merge(Ce,((He={})[Je]="Can't find field '".concat(We.name.value,"' on ").concat(O(B)?B.__ref+" object":"object "+JSON.stringify(B,null,2)),He))):it(Ye)?Ye=je(f.executeSubSelectedArray({field:We,array:Ye,enclosingRef:H,context:X}),Je):We.selectionSet?null!=Ye&&(Ye=je(f.executeSelectionSet({selectionSet:We.selectionSet,objectOrReference:Ye,enclosingRef:O(Ye)?Ye:H,context:X}),Je)):X.canonizeResults&&(Ye=f.canon.pass(Ye)),void 0!==Ye&&Pe.push(((Ze={})[Je]=Ye,Ze))}else{var rt=U(We,X.fragmentMap);rt&&me.fragmentMatches(rt,Ae)&&rt.selectionSet.selections.forEach(Le.add,Le)}});var Qe={result:Bt(Pe),missing:Ce},Xe=X.canonizeResults?this.canon.admit(Qe):ln(Qe);return Xe.result&&this.knownResults.set(Xe.result,E),Xe},S.prototype.execSubSelectedArrayImpl=function(o){var le,f=this,E=o.field,B=o.array,H=o.enclosingRef,X=o.context,me=new Dt;function be(Ae,Pe){var Ce;return Ae.missing&&(le=me.merge(le,((Ce={})[Pe]=Ae.missing,Ce))),Ae.result}return E.selectionSet&&(B=B.filter(X.store.canRead)),B=B.map(function(Ae,Pe){return null===Ae?null:it(Ae)?be(f.executeSubSelectedArray({field:E,array:Ae,enclosingRef:H,context:X}),Pe):E.selectionSet?be(f.executeSelectionSet({selectionSet:E.selectionSet,objectOrReference:Ae,enclosingRef:O(Ae)?Ae:H,context:X}),Pe):(__DEV__&&function xi(S,o,f){if(!o.selectionSet){var E=new Set([f]);E.forEach(function(B){De(B)&&(__DEV__?i(!O(B),"Missing selection set for object of type ".concat(function en(S,o){return O(o)?S.get(o.__ref,"__typename"):o&&o.__typename}(S,B)," returned for query field ").concat(o.name.value)):i(!O(B),5),Object.values(B).forEach(E.add,E))})}}(X.store,E,Ae),Ae)}),{result:X.canonizeResults?this.canon.admit(B):B,missing:le}},S}();function Ai(S){try{JSON.stringify(S,function(o,f){if("string"==typeof f)throw f;return f})}catch(o){return o}}var Un=Object.create(null);function dn(S){var o=JSON.stringify(S);return Un[o]||(Un[o]=Object.create(null))}function jn(S){var o=dn(S);return o.keyFieldsFn||(o.keyFieldsFn=function(f,E){var B=function(X,le){return E.readField(le,X)},H=E.keyObject=vn(S,function(X){var le=or(E.storeObject,X,B);return void 0===le&&f!==E.storeObject&&st.call(f,X[0])&&(le=or(f,X,Qn)),__DEV__?i(void 0!==le,"Missing field '".concat(X.join("."),"' while extracting keyFields from ").concat(JSON.stringify(f))):i(void 0!==le,2),le});return"".concat(E.typename,":").concat(JSON.stringify(H))})}function Vn(S){var o=dn(S);return o.keyArgsFn||(o.keyArgsFn=function(f,E){var B=E.field,H=E.variables,X=E.fieldName,le=vn(S,function(be){var Ae=be[0],Pe=Ae.charAt(0);if("@"!==Pe)if("$"!==Pe){if(f)return or(f,be)}else{var Le=Ae.slice(1);if(H&&st.call(H,Le)){var Ve=be.slice(0);return Ve[0]=Le,or(H,Ve)}}else if(B&&Gt(B.directives)){var Ce=Ae.slice(1),ke=B.directives.find(function(Qe){return Qe.name.value===Ce}),je=ke&&Ke(ke,H);return je&&or(je,be.slice(1))}}),me=JSON.stringify(le);return(f||"{}"!==me)&&(X+=":"+me),X})}function vn(S,o){var f=new Dt;return Wn(S).reduce(function(E,B){var H,X=o(B);if(void 0!==X){for(var le=B.length-1;le>=0;--le)(H={})[B[le]]=X,X=H;E=f.merge(E,X)}return E},Object.create(null))}function Wn(S){var o=dn(S);if(!o.paths){var f=o.paths=[],E=[];S.forEach(function(B,H){it(B)?(Wn(B).forEach(function(X){return f.push(E.concat(X))}),E.length=0):(E.push(B),it(S[H+1])||(f.push(E.slice(0)),E.length=0))})}return o.paths}function Qn(S,o){return S[o]}function or(S,o,f){return f=f||Qn,Kn(o.reduce(function E(B,H){return it(B)?B.map(function(X){return E(X,H)}):B&&f(B,H)},S))}function Kn(S){return De(S)?it(S)?S.map(Kn):vn(Object.keys(S).sort(),function(o){return or(S,o)}):S}function yn(S){return void 0!==S.args?S.args:S.field?Ke(S.field,S.variables):null}nt.setStringify(G);var Ci=function(){},qn=function(S,o){return o.fieldName},zn=function(S,o,f){return(0,f.mergeObjects)(S,o)},Hn=function(S,o){return o},Ri=function(){function S(o){this.config=o,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,t.pi)({dataIdFromObject:pr},o),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),o.possibleTypes&&this.addPossibleTypes(o.possibleTypes),o.typePolicies&&this.addTypePolicies(o.typePolicies)}return S.prototype.identify=function(o,f){var E,B=this,H=f&&(f.typename||(null===(E=f.storeObject)||void 0===E?void 0:E.__typename))||o.__typename;if(H===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var me,X=f&&f.storeObject||o,le=(0,t.pi)((0,t.pi)({},f),{typename:H,storeObject:X,readField:f&&f.readField||function(){var Ce=mn(arguments,X);return B.readField(Ce,{store:B.cache.data,variables:Ce.variables})}}),be=H&&this.getTypePolicy(H),Ae=be&&be.keyFn||this.config.dataIdFromObject;Ae;){var Pe=Ae(o,le);if(!it(Pe)){me=Pe;break}Ae=jn(Pe)}return me=me?String(me):void 0,le.keyObject?[me,le.keyObject]:[me]},S.prototype.addTypePolicies=function(o){var f=this;Object.keys(o).forEach(function(E){var B=o[E],H=B.queryType,X=B.mutationType,le=B.subscriptionType,me=(0,t._T)(B,["queryType","mutationType","subscriptionType"]);H&&f.setRootTypename("Query",E),X&&f.setRootTypename("Mutation",E),le&&f.setRootTypename("Subscription",E),st.call(f.toBeAdded,E)?f.toBeAdded[E].push(me):f.toBeAdded[E]=[me]})},S.prototype.updateTypePolicy=function(o,f){var E=this,B=this.getTypePolicy(o),H=f.keyFields,X=f.fields;function le(me,be){me.merge="function"==typeof be?be:!0===be?zn:!1===be?Hn:me.merge}le(B,f.merge),B.keyFn=!1===H?Ci:it(H)?jn(H):"function"==typeof H?H:B.keyFn,X&&Object.keys(X).forEach(function(me){var be=E.getFieldPolicy(o,me,!0),Ae=X[me];if("function"==typeof Ae)be.read=Ae;else{var Pe=Ae.keyArgs,Ce=Ae.read,ke=Ae.merge;be.keyFn=!1===Pe?qn:it(Pe)?Vn(Pe):"function"==typeof Pe?Pe:be.keyFn,"function"==typeof Ce&&(be.read=Ce),le(be,ke)}be.read&&be.merge&&(be.keyFn=be.keyFn||qn)})},S.prototype.setRootTypename=function(o,f){void 0===f&&(f=o);var E="ROOT_"+o.toUpperCase(),B=this.rootTypenamesById[E];f!==B&&(__DEV__?i(!B||B===o,"Cannot change root ".concat(o," __typename more than once")):i(!B||B===o,3),B&&delete this.rootIdsByTypename[B],this.rootIdsByTypename[f]=E,this.rootTypenamesById[E]=f)},S.prototype.addPossibleTypes=function(o){var f=this;this.usingPossibleTypes=!0,Object.keys(o).forEach(function(E){f.getSupertypeSet(E,!0),o[E].forEach(function(B){f.getSupertypeSet(B,!0).add(E);var H=B.match(Fr);(!H||H[0]!==B)&&f.fuzzySubtypes.set(B,new RegExp(B))})})},S.prototype.getTypePolicy=function(o){var f=this;if(!st.call(this.typePolicies,o)){var E=this.typePolicies[o]=Object.create(null);E.fields=Object.create(null);var B=this.supertypeMap.get(o);B&&B.size&&B.forEach(function(X){var le=f.getTypePolicy(X),me=le.fields,be=(0,t._T)(le,["fields"]);Object.assign(E,be),Object.assign(E.fields,me)})}var H=this.toBeAdded[o];return H&&H.length&&H.splice(0).forEach(function(X){f.updateTypePolicy(o,X)}),this.typePolicies[o]},S.prototype.getFieldPolicy=function(o,f,E){if(o){var B=this.getTypePolicy(o).fields;return B[f]||E&&(B[f]=Object.create(null))}},S.prototype.getSupertypeSet=function(o,f){var E=this.supertypeMap.get(o);return!E&&f&&this.supertypeMap.set(o,E=new Set),E},S.prototype.fragmentMatches=function(o,f,E,B){var H=this;if(!o.typeCondition)return!0;if(!f)return!1;var X=o.typeCondition.name.value;if(f===X)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(X))for(var le=this.getSupertypeSet(f,!0),me=[le],be=function(je){var Le=H.getSupertypeSet(je,!1);Le&&Le.size&&me.indexOf(Le)<0&&me.push(Le)},Ae=!(!E||!this.fuzzySubtypes.size),Pe=!1,Ce=0;Ce<me.length;++Ce){var ke=me[Ce];if(ke.has(X))return le.has(X)||(Pe&&__DEV__&&i.warn("Inferring subtype ".concat(f," of supertype ").concat(X)),le.add(X)),!0;ke.forEach(be),Ae&&Ce===me.length-1&&nr(o.selectionSet,E,B)&&(Ae=!1,Pe=!0,this.fuzzySubtypes.forEach(function(je,Le){var Ve=f.match(je);Ve&&Ve[0]===f&&be(Le)}))}return!1},S.prototype.hasKeyArgs=function(o,f){var E=this.getFieldPolicy(o,f,!1);return!(!E||!E.keyFn)},S.prototype.getStoreFieldName=function(o){var H,f=o.typename,E=o.fieldName,B=this.getFieldPolicy(f,E,!1),X=B&&B.keyFn;if(X&&f)for(var le={typename:f,fieldName:E,field:o.field||null,variables:o.variables},me=yn(o);X;){var be=X(me,le);if(!it(be)){H=be||E;break}X=Vn(be)}return void 0===H&&(H=o.field?function qe(S,o){var f=null;S.directives&&(f={},S.directives.forEach(function(B){f[B.name.value]={},B.arguments&&B.arguments.forEach(function(H){return Ue(f[B.name.value],H.name,H.value,o)})}));var E=null;return S.arguments&&S.arguments.length&&(E={},S.arguments.forEach(function(B){return Ue(E,B.name,B.value,o)})),nt(S.name.value,E,f)}(o.field,o.variables):nt(E,yn(o))),!1===H?E:E===At(H)?H:E+":"+H},S.prototype.readField=function(o,f){var E=o.from;if(E&&(o.field||o.fieldName)){if(void 0===o.typename){var H=f.store.getFieldValue(E,"__typename");H&&(o.typename=H)}var X=this.getStoreFieldName(o),le=At(X),me=f.store.getFieldValue(E,X),be=this.getFieldPolicy(o.typename,le,!1),Ae=be&&be.read;if(Ae){var Pe=Gn(this,E,o,f,f.store.getStorage(O(E)?E.__ref:E,X));return an.withValue(this.cache,Ae,[me,Pe])}return me}},S.prototype.getReadFunction=function(o,f){var E=this.getFieldPolicy(o,f,!1);return E&&E.read},S.prototype.getMergeFunction=function(o,f,E){var B=this.getFieldPolicy(o,f,!1),H=B&&B.merge;return!H&&E&&(H=(B=this.getTypePolicy(E))&&B.merge),H},S.prototype.runMergeFunction=function(o,f,E,B,H){var X=E.field,le=E.typename,me=E.merge;return me===zn?Yn(B.store)(o,f):me===Hn?f:(B.overwrite&&(o=void 0),me(o,f,Gn(this,void 0,{typename:le,fieldName:X.name.value,field:X,variables:B.variables},B,H||Object.create(null))))},S}();function Gn(S,o,f,E,B){var H=S.getStoreFieldName(f),X=At(H),le=f.variables||E.variables,me=E.store,be=me.toReference,Ae=me.canRead;return{args:yn(f),field:f.field||null,fieldName:X,storeFieldName:H,variables:le,isReference:O,toReference:be,storage:B,cache:S.cache,canRead:Ae,readField:function(){return S.readField(mn(arguments,o,le),E)},mergeObjects:Yn(E.store)}}function mn(S,o,f){var X,E=S[0];return"string"==typeof E?X={fieldName:E,from:S.length>1?S[1]:o}:(X=(0,t.pi)({},E),st.call(X,"from")||(X.from=o)),__DEV__&&void 0===X.from&&__DEV__&&i.warn("Undefined 'from' passed to readField with arguments ".concat(function Ti(S){var o=rn("stringifyForDisplay");return JSON.stringify(S,function(f,E){return void 0===E?o:E}).split(JSON.stringify(o)).join("<undefined>")}(Array.from(S)))),void 0===X.variables&&(X.variables=f),X}function Yn(S){return function(f,E){if(it(f)||it(E))throw __DEV__?new n("Cannot automatically merge arrays"):new n(4);if(De(f)&&De(E)){var B=S.getFieldValue(f,"__typename"),H=S.getFieldValue(E,"__typename");if(B&&H&&B!==H)return E;if(O(f)&&Mt(E))return S.merge(f.__ref,E),f;if(Mt(f)&&O(E))return S.merge(f,E.__ref),E;if(Mt(f)&&Mt(E))return(0,t.pi)((0,t.pi)({},f),E)}return E}}function gn(S,o,f){var E="".concat(o).concat(f),B=S.flavors.get(E);return B||S.flavors.set(E,B=S.clientOnly===o&&S.deferred===f?S:(0,t.pi)((0,t.pi)({},S),{clientOnly:o,deferred:f})),B}var Ii=function(){function S(o,f){this.cache=o,this.reader=f}return S.prototype.writeToStore=function(o,f){var E=this,B=f.query,H=f.result,X=f.dataId,le=f.variables,me=f.overwrite,be=St(B),Ae=function dr(){return new Dt}();le=(0,t.pi)((0,t.pi)({},It(be)),le);var Pe={store:o,written:Object.create(null),merge:function(ke,je){return Ae.merge(ke,je)},variables:le,varString:G(le),fragmentMap:ne(Tt(B)),overwrite:!!me,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},Ce=this.processSelectionSet({result:H||Object.create(null),dataId:X,selectionSet:be.selectionSet,mergeTree:{map:new Map},context:Pe});if(!O(Ce))throw __DEV__?new n("Could not identify object ".concat(JSON.stringify(H))):new n(6);return Pe.incomingById.forEach(function(ke,je){var Le=ke.storeObject,Ve=ke.mergeTree,Qe=ke.fieldNodeSet,Xe=v(je);if(Ve&&Ve.map.size){var We=E.applyMerges(Ve,Xe,Le,Pe);if(O(We))return;Le=We}if(__DEV__&&!Pe.overwrite){var He=Object.create(null);Qe.forEach(function(Je){Je.selectionSet&&(He[Je.name.value]=!0)}),Object.keys(Le).forEach(function(Je){(function(Je){return!0===He[At(Je)]})(Je)&&!function(Je){var rt=Ve&&Ve.map.get(Je);return Boolean(rt&&rt.info&&rt.info.merge)}(Je)&&function Pi(S,o,f,E){var B=function(Pe){var Ce=E.getFieldValue(Pe,f);return"object"==typeof Ce&&Ce},H=B(S);if(H){var X=B(o);if(X&&!O(H)&&!(0,ut.D)(H,X)&&!Object.keys(H).every(function(Pe){return void 0!==E.getFieldValue(X,Pe)})){var le=E.getFieldValue(S,"__typename")||E.getFieldValue(o,"__typename"),me=At(f),be="".concat(le,".").concat(me);if(!Zn.has(be)){Zn.add(be);var Ae=[];!it(H)&&!it(X)&&[H,X].forEach(function(Pe){var Ce=E.getFieldValue(Pe,"__typename");"string"==typeof Ce&&!Ae.includes(Ce)&&Ae.push(Ce)}),__DEV__&&i.warn("Cache data may be lost when replacing the ".concat(me," field of a ").concat(le," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(Ae.length?"either ensure all objects of type "+Ae.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(be," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(H).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(X).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(Xe,Le,Je,Pe.store)})}o.merge(je,Le)}),o.retain(Ce.__ref),Ce},S.prototype.processSelectionSet=function(o){var f=this,E=o.dataId,B=o.result,H=o.selectionSet,X=o.context,le=o.mergeTree,me=this.cache.policies,be=Object.create(null),Ae=E&&me.rootTypenamesById[E]||jt(B,H,X.fragmentMap)||E&&X.store.get(E,"__typename");"string"==typeof Ae&&(be.__typename=Ae);var Pe=function(){var We=mn(arguments,be,X.variables);if(O(We.from)){var He=X.incomingById.get(We.from.__ref);if(He){var Ze=me.readField((0,t.pi)((0,t.pi)({},We),{from:He.storeObject}),X);if(void 0!==Ze)return Ze}}return me.readField(We,X)},Ce=new Set;this.flattenFields(H,B,X,Ae).forEach(function(We,He){var Ze,Ye=ct(He),Je=B[Ye];if(Ce.add(He),void 0!==Je){var rt=me.getStoreFieldName({typename:Ae,fieldName:He.name.value,field:He,variables:We.variables}),gt=$n(le,rt),ot=f.processFieldValue(Je,He,He.selectionSet?gn(We,!1,!1):We,gt),kt=void 0;He.selectionSet&&(O(ot)||Mt(ot))&&(kt=Pe("__typename",ot));var jr=me.getMergeFunction(Ae,He.name.value,kt);jr?gt.info={field:He,typename:Ae,merge:jr}:Xn(le,rt),be=We.merge(be,((Ze={})[rt]=ot,Ze))}else __DEV__&&!We.clientOnly&&!We.deferred&&!$e.added(He)&&!me.getReadFunction(Ae,He.name.value)&&__DEV__&&i.error("Missing field '".concat(ct(He),"' while writing result ").concat(JSON.stringify(B,null,2)).substring(0,1e3))});try{var ke=me.identify(B,{typename:Ae,selectionSet:H,fragmentMap:X.fragmentMap,storeObject:be,readField:Pe}),Le=ke[1];E=E||ke[0],Le&&(be=X.merge(be,Le))}catch(We){if(!E)throw We}if("string"==typeof E){var Ve=v(E),Qe=X.written[E]||(X.written[E]=[]);if(Qe.indexOf(H)>=0||(Qe.push(H),this.reader&&this.reader.isFresh(B,Ve,H,X)))return Ve;var Xe=X.incomingById.get(E);return Xe?(Xe.storeObject=X.merge(Xe.storeObject,be),Xe.mergeTree=bn(Xe.mergeTree,le),Ce.forEach(function(We){return Xe.fieldNodeSet.add(We)})):X.incomingById.set(E,{storeObject:be,mergeTree:Ur(le)?void 0:le,fieldNodeSet:Ce}),Ve}return be},S.prototype.processFieldValue=function(o,f,E,B){var H=this;return f.selectionSet&&null!==o?it(o)?o.map(function(X,le){var me=H.processFieldValue(X,f,E,$n(B,le));return Xn(B,le),me}):this.processSelectionSet({result:o,selectionSet:f.selectionSet,context:E,mergeTree:B}):__DEV__?An(o):o},S.prototype.flattenFields=function(o,f,E,B){void 0===B&&(B=jt(f,o,E.fragmentMap));var H=new Map,X=this.cache.policies,le=new rr.B(!1);return function me(be,Ae){var Pe=le.lookup(be,Ae.clientOnly,Ae.deferred);Pe.visited||(Pe.visited=!0,be.selections.forEach(function(Ce){if(Ht(Ce,E.variables)){var ke=Ae.clientOnly,je=Ae.deferred;if(!(ke&&je)&&Gt(Ce.directives)&&Ce.directives.forEach(function(Qe){var Xe=Qe.name.value;if("client"===Xe&&(ke=!0),"defer"===Xe){var We=Ke(Qe,E.variables);(!We||!1!==We.if)&&(je=!0)}}),pt(Ce)){var Le=H.get(Ce);Le&&(ke=ke&&Le.clientOnly,je=je&&Le.deferred),H.set(Ce,gn(E,ke,je))}else{var Ve=U(Ce,E.fragmentMap);Ve&&X.fragmentMatches(Ve,B,f,E.variables)&&me(Ve.selectionSet,gn(E,ke,je))}}}))}(o,E),H},S.prototype.applyMerges=function(o,f,E,B,H){var X,le=this;if(o.map.size&&!O(E)){var me=it(E)||!O(f)&&!Mt(f)?void 0:f,be=E;me&&!H&&(H=[O(me)?me.__ref:me]);var Ae,Pe=function(Ce,ke){return it(Ce)?"number"==typeof ke?Ce[ke]:void 0:B.store.getFieldValue(Ce,String(ke))};o.map.forEach(function(Ce,ke){var je=Pe(me,ke),Le=Pe(be,ke);if(void 0!==Le){H&&H.push(ke);var Ve=le.applyMerges(Ce,je,Le,B,H);Ve!==Le&&(Ae=Ae||new Map).set(ke,Ve),H&&i(H.pop()===ke)}}),Ae&&(E=it(be)?be.slice(0):(0,t.pi)({},be),Ae.forEach(function(Ce,ke){E[ke]=Ce}))}return o.info?this.cache.policies.runMergeFunction(f,E,o.info,B,H&&(X=B.store).getStorage.apply(X,H)):E},S}(),Jn=[];function $n(S,o){var f=S.map;return f.has(o)||f.set(o,Jn.pop()||{map:new Map}),f.get(o)}function bn(S,o){if(S===o||!o||Ur(o))return S;if(!S||Ur(S))return o;var f=S.info&&o.info?(0,t.pi)((0,t.pi)({},S.info),o.info):S.info||o.info,E=S.map.size&&o.map.size,H={info:f,map:E?new Map:S.map.size?S.map:o.map};if(E){var X=new Set(o.map.keys());S.map.forEach(function(le,me){H.map.set(me,bn(le,o.map.get(me))),X.delete(me)}),X.forEach(function(le){H.map.set(le,bn(o.map.get(le),S.map.get(le)))})}return H}function Ur(S){return!S||!(S.info||S.map.size)}function Xn(S,o){var f=S.map,E=f.get(o);E&&Ur(E)&&(Jn.push(E),f.delete(o))}var Zn=new Set,Di=function(S){function o(f){void 0===f&&(f={});var E=S.call(this)||this;return E.watches=new Set,E.typenameDocumentCache=new Map,E.makeVar=In,E.txCount=0,E.config=function Mr(S){return zt(Dr,S)}(f),E.addTypename=!!E.config.addTypename,E.policies=new Ri({cache:E,dataIdFromObject:E.config.dataIdFromObject,possibleTypes:E.config.possibleTypes,typePolicies:E.config.typePolicies}),E.init(),E}return(0,t.ZT)(o,S),o.prototype.init=function(){var f=this.data=new _r.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=f.stump,this.resetResultCache()},o.prototype.resetResultCache=function(f){var E=this,B=this.storeReader;this.storeWriter=new Ii(this,this.storeReader=new Oi({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:kr(this.config),canon:f?void 0:B&&B.canon})),this.maybeBroadcastWatch=(0,ir.re)(function(H,X){return E.broadcastWatch(H,X)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(H){var X=H.optimistic?E.optimisticData:E.data;if(Sr(X))return X.makeCacheKey(H.query,H.callback,G({optimistic:H.optimistic,rootId:H.rootId,variables:H.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(H){return H.resetCaching()})},o.prototype.restore=function(f){return this.init(),f&&this.data.replace(f),this},o.prototype.extract=function(f){return void 0===f&&(f=!1),(f?this.optimisticData:this.data).extract()},o.prototype.read=function(f){var E=f.returnPartialData,B=void 0!==E&&E;try{return this.storeReader.diffQueryAgainstStore((0,t.pi)((0,t.pi)({},f),{store:f.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:B})).result||null}catch(H){if(H instanceof fn)return null;throw H}},o.prototype.write=function(f){try{return++this.txCount,this.storeWriter.writeToStore(this.data,f)}finally{!--this.txCount&&!1!==f.broadcast&&this.broadcastWatches()}},o.prototype.modify=function(f){if(st.call(f,"id")&&!f.id)return!1;var E=f.optimistic?this.optimisticData:this.data;try{return++this.txCount,E.modify(f.id||"ROOT_QUERY",f.fields)}finally{!--this.txCount&&!1!==f.broadcast&&this.broadcastWatches()}},o.prototype.diff=function(f){return this.storeReader.diffQueryAgainstStore((0,t.pi)((0,t.pi)({},f),{store:f.optimistic?this.optimisticData:this.data,rootId:f.id||"ROOT_QUERY",config:this.config}))},o.prototype.watch=function(f){var E=this;return this.watches.size||function vi(S){Er(S).vars.forEach(function(o){return o.attachCache(S)})}(this),this.watches.add(f),f.immediate&&this.maybeBroadcastWatch(f),function(){E.watches.delete(f)&&!E.watches.size&&Rn(E),E.maybeBroadcastWatch.forget(f)}},o.prototype.gc=function(f){G.reset();var E=this.optimisticData.gc();return f&&!this.txCount&&(f.resetResultCache?this.resetResultCache(f.resetResultIdentities):f.resetResultIdentities&&this.storeReader.resetCanon()),E},o.prototype.retain=function(f,E){return(E?this.optimisticData:this.data).retain(f)},o.prototype.release=function(f,E){return(E?this.optimisticData:this.data).release(f)},o.prototype.identify=function(f){if(O(f))return f.__ref;try{return this.policies.identify(f)[0]}catch(E){__DEV__&&i.warn(E)}},o.prototype.evict=function(f){if(!f.id){if(st.call(f,"id"))return!1;f=(0,t.pi)((0,t.pi)({},f),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(f,this.data)}finally{!--this.txCount&&!1!==f.broadcast&&this.broadcastWatches()}},o.prototype.reset=function(f){var E=this;return this.init(),G.reset(),f&&f.discardWatches?(this.watches.forEach(function(B){return E.maybeBroadcastWatch.forget(B)}),this.watches.clear(),Rn(this)):this.broadcastWatches(),Promise.resolve()},o.prototype.removeOptimistic=function(f){var E=this.optimisticData.removeLayer(f);E!==this.optimisticData&&(this.optimisticData=E,this.broadcastWatches())},o.prototype.batch=function(f){var be,E=this,B=f.update,H=f.optimistic,X=void 0===H||H,le=f.removeOptimistic,me=f.onWatchUpdated,Ae=function(Ce){var je=E.data,Le=E.optimisticData;++E.txCount,Ce&&(E.data=E.optimisticData=Ce);try{return be=B(E)}finally{--E.txCount,E.data=je,E.optimisticData=Le}},Pe=new Set;return me&&!this.txCount&&this.broadcastWatches((0,t.pi)((0,t.pi)({},f),{onWatchUpdated:function(Ce){return Pe.add(Ce),!1}})),"string"==typeof X?this.optimisticData=this.optimisticData.addLayer(X,Ae):!1===X?Ae(this.data):Ae(),"string"==typeof le&&(this.optimisticData=this.optimisticData.removeLayer(le)),me&&Pe.size?(this.broadcastWatches((0,t.pi)((0,t.pi)({},f),{onWatchUpdated:function(Ce,ke){var je=me.call(this,Ce,ke);return!1!==je&&Pe.delete(Ce),je}})),Pe.size&&Pe.forEach(function(Ce){return E.maybeBroadcastWatch.dirty(Ce)})):this.broadcastWatches(f),be},o.prototype.performTransaction=function(f,E){return this.batch({update:f,optimistic:E||null!==E})},o.prototype.transformDocument=function(f){if(this.addTypename){var E=this.typenameDocumentCache.get(f);return E||(E=$e(f),this.typenameDocumentCache.set(f,E),this.typenameDocumentCache.set(E,E)),E}return f},o.prototype.broadcastWatches=function(f){var E=this;this.txCount||this.watches.forEach(function(B){return E.maybeBroadcastWatch(B,f)})},o.prototype.broadcastWatch=function(f,E){var B=f.lastDiff,H=this.diff(f);E&&(f.optimistic&&"string"==typeof E.optimistic&&(H.fromOptimisticTransaction=!0),E.onWatchUpdated&&!1===E.onWatchUpdated.call(this,f,H,B))||(!B||!(0,ut.D)(B.result,H.result))&&f.callback(f.lastDiff=H,B)},o}(kn),Mi=mt.empty,ki=mt.from,Fi=mt.split,Li=mt.concat;function Ni(S){var o=!1;return new Promise(function(f,E){S.subscribe({next:function(B){o?__DEV__&&i.warn("Promise Wrapper does not support multiple results from Observable"):(o=!0,f(B))},error:E})})}function Bi(S){return new ye(function(o){S.then(function(f){o.next(f),o.complete()}).catch(o.error.bind(o))})}var wr=p(19636);u(C?"log":"silent")},7535:ue=>{"use strict";ue.exports=JSON.parse('{"name":"aws-appsync-auth-link","version":"3.0.7","main":"lib/index.js","license":"Apache-2.0","description":"AWS Mobile AppSync Auth Link for JavaScript","author":{"name":"Amazon Web Services","url":"https://aws.amazon.com/"},"homepage":"https://github.com/awslabs/aws-mobile-appsync-sdk-js.git","repository":{"type":"git","url":"https://github.com/awslabs/aws-mobile-appsync-sdk-js.git"},"scripts":{"prepare":"tsc","test":"jest --coverage --coverageReporters=text --passWithNoTests","test-watch":"jest --watch"},"dependencies":{"@aws-crypto/sha256-js":"^1.2.0","@aws-sdk/types":"^3.25.0","@aws-sdk/util-hex-encoding":"^3.29.0","debug":"2.6.9"},"devDependencies":{"@apollo/client":"^3.2.0"},"peerDependencies":{"@apollo/client":"3.x"}}')},79476:ue=>{"use strict";ue.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2014-06-30","endpointPrefix":"cognito-identity","jsonVersion":"1.1","protocol":"json","serviceFullName":"Amazon Cognito Identity","serviceId":"Cognito Identity","signatureVersion":"v4","targetPrefix":"AWSCognitoIdentityService","uid":"cognito-identity-2014-06-30"},"operations":{"CreateIdentityPool":{"input":{"type":"structure","required":["IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"output":{"shape":"Sk"}},"DeleteIdentities":{"input":{"type":"structure","required":["IdentityIdsToDelete"],"members":{"IdentityIdsToDelete":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"UnprocessedIdentityIds":{"type":"list","member":{"type":"structure","members":{"IdentityId":{},"ErrorCode":{}}}}}}},"DeleteIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}}},"DescribeIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{}}},"output":{"shape":"Sv"}},"DescribeIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"shape":"Sk"}},"GetCredentialsForIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"CustomRoleArn":{}}},"output":{"type":"structure","members":{"IdentityId":{},"Credentials":{"type":"structure","members":{"AccessKeyId":{},"SecretKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}}}},"authtype":"none"},"GetId":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"AccountId":{},"IdentityPoolId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{}}},"authtype":"none"},"GetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"GetOpenIdToken":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}},"authtype":"none"},"GetOpenIdTokenForDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId","Logins"],"members":{"IdentityPoolId":{},"IdentityId":{},"Logins":{"shape":"S10"},"PrincipalTags":{"shape":"S1s"},"TokenDuration":{"type":"long"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"GetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"ListIdentities":{"input":{"type":"structure","required":["IdentityPoolId","MaxResults"],"members":{"IdentityPoolId":{},"MaxResults":{"type":"integer"},"NextToken":{},"HideDisabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Identities":{"type":"list","member":{"shape":"Sv"}},"NextToken":{}}}},"ListIdentityPools":{"input":{"type":"structure","required":["MaxResults"],"members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityPools":{"type":"list","member":{"type":"structure","members":{"IdentityPoolId":{},"IdentityPoolName":{}}}},"NextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sh"}}}},"LookupDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{},"IdentityId":{},"DeveloperUserIdentifier":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityId":{},"DeveloperUserIdentifierList":{"type":"list","member":{}},"NextToken":{}}}},"MergeDeveloperIdentities":{"input":{"type":"structure","required":["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],"members":{"SourceUserIdentifier":{},"DestinationUserIdentifier":{},"DeveloperProviderName":{},"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"SetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId","Roles"],"members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"SetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"TagResource":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"Sh"}}},"output":{"type":"structure","members":{}}},"UnlinkDeveloperIdentity":{"input":{"type":"structure","required":["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],"members":{"IdentityId":{},"IdentityPoolId":{},"DeveloperProviderName":{},"DeveloperUserIdentifier":{}}}},"UnlinkIdentity":{"input":{"type":"structure","required":["IdentityId","Logins","LoginsToRemove"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"LoginsToRemove":{"shape":"Sw"}}},"authtype":"none"},"UntagResource":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateIdentityPool":{"input":{"shape":"Sk"},"output":{"shape":"Sk"}}},"shapes":{"S5":{"type":"map","key":{},"value":{}},"S9":{"type":"list","member":{}},"Sb":{"type":"list","member":{"type":"structure","members":{"ProviderName":{},"ClientId":{},"ServerSideTokenCheck":{"type":"boolean"}}}},"Sg":{"type":"list","member":{}},"Sh":{"type":"map","key":{},"value":{}},"Sk":{"type":"structure","required":["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolId":{},"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"Sv":{"type":"structure","members":{"IdentityId":{},"Logins":{"shape":"Sw"},"CreationDate":{"type":"timestamp"},"LastModifiedDate":{"type":"timestamp"}}},"Sw":{"type":"list","member":{}},"S10":{"type":"map","key":{},"value":{}},"S1c":{"type":"map","key":{},"value":{}},"S1e":{"type":"map","key":{},"value":{"type":"structure","required":["Type"],"members":{"Type":{},"AmbiguousRoleResolution":{},"RulesConfiguration":{"type":"structure","required":["Rules"],"members":{"Rules":{"type":"list","member":{"type":"structure","required":["Claim","MatchType","Value","RoleARN"],"members":{"Claim":{},"MatchType":{},"Value":{},"RoleARN":{}}}}}}}}},"S1s":{"type":"map","key":{},"value":{}}}}')},85464:ue=>{"use strict";ue.exports=JSON.parse('{"o":{"ListIdentityPools":{"input_token":"NextToken","limit_key":"MaxResults","output_token":"NextToken","result_key":"IdentityPools"}}}')},6839:ue=>{"use strict";ue.exports=JSON.parse('{"acm":{"name":"ACM","cors":true},"apigateway":{"name":"APIGateway","cors":true},"applicationautoscaling":{"prefix":"application-autoscaling","name":"ApplicationAutoScaling","cors":true},"appstream":{"name":"AppStream"},"autoscaling":{"name":"AutoScaling","cors":true},"batch":{"name":"Batch"},"budgets":{"name":"Budgets"},"clouddirectory":{"name":"CloudDirectory","versions":["2016-05-10*"]},"cloudformation":{"name":"CloudFormation","cors":true},"cloudfront":{"name":"CloudFront","versions":["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25*","2017-03-25*","2017-10-30*","2018-06-18*","2018-11-05*","2019-03-26*"],"cors":true},"cloudhsm":{"name":"CloudHSM","cors":true},"cloudsearch":{"name":"CloudSearch"},"cloudsearchdomain":{"name":"CloudSearchDomain"},"cloudtrail":{"name":"CloudTrail","cors":true},"cloudwatch":{"prefix":"monitoring","name":"CloudWatch","cors":true},"cloudwatchevents":{"prefix":"events","name":"CloudWatchEvents","versions":["2014-02-03*"],"cors":true},"cloudwatchlogs":{"prefix":"logs","name":"CloudWatchLogs","cors":true},"codebuild":{"name":"CodeBuild","cors":true},"codecommit":{"name":"CodeCommit","cors":true},"codedeploy":{"name":"CodeDeploy","cors":true},"codepipeline":{"name":"CodePipeline","cors":true},"cognitoidentity":{"prefix":"cognito-identity","name":"CognitoIdentity","cors":true},"cognitoidentityserviceprovider":{"prefix":"cognito-idp","name":"CognitoIdentityServiceProvider","cors":true},"cognitosync":{"prefix":"cognito-sync","name":"CognitoSync","cors":true},"configservice":{"prefix":"config","name":"ConfigService","cors":true},"cur":{"name":"CUR","cors":true},"datapipeline":{"name":"DataPipeline"},"devicefarm":{"name":"DeviceFarm","cors":true},"directconnect":{"name":"DirectConnect","cors":true},"directoryservice":{"prefix":"ds","name":"DirectoryService"},"discovery":{"name":"Discovery"},"dms":{"name":"DMS"},"dynamodb":{"name":"DynamoDB","cors":true},"dynamodbstreams":{"prefix":"streams.dynamodb","name":"DynamoDBStreams","cors":true},"ec2":{"name":"EC2","versions":["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*"],"cors":true},"ecr":{"name":"ECR","cors":true},"ecs":{"name":"ECS","cors":true},"efs":{"prefix":"elasticfilesystem","name":"EFS","cors":true},"elasticache":{"name":"ElastiCache","versions":["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*"],"cors":true},"elasticbeanstalk":{"name":"ElasticBeanstalk","cors":true},"elb":{"prefix":"elasticloadbalancing","name":"ELB","cors":true},"elbv2":{"prefix":"elasticloadbalancingv2","name":"ELBv2","cors":true},"emr":{"prefix":"elasticmapreduce","name":"EMR","cors":true},"es":{"name":"ES"},"elastictranscoder":{"name":"ElasticTranscoder","cors":true},"firehose":{"name":"Firehose","cors":true},"gamelift":{"name":"GameLift","cors":true},"glacier":{"name":"Glacier"},"health":{"name":"Health"},"iam":{"name":"IAM","cors":true},"importexport":{"name":"ImportExport"},"inspector":{"name":"Inspector","versions":["2015-08-18*"],"cors":true},"iot":{"name":"Iot","cors":true},"iotdata":{"prefix":"iot-data","name":"IotData","cors":true},"kinesis":{"name":"Kinesis","cors":true},"kinesisanalytics":{"name":"KinesisAnalytics"},"kms":{"name":"KMS","cors":true},"lambda":{"name":"Lambda","cors":true},"lexruntime":{"prefix":"runtime.lex","name":"LexRuntime","cors":true},"lightsail":{"name":"Lightsail"},"machinelearning":{"name":"MachineLearning","cors":true},"marketplacecommerceanalytics":{"name":"MarketplaceCommerceAnalytics","cors":true},"marketplacemetering":{"prefix":"meteringmarketplace","name":"MarketplaceMetering"},"mturk":{"prefix":"mturk-requester","name":"MTurk","cors":true},"mobileanalytics":{"name":"MobileAnalytics","cors":true},"opsworks":{"name":"OpsWorks","cors":true},"opsworkscm":{"name":"OpsWorksCM"},"organizations":{"name":"Organizations"},"pinpoint":{"name":"Pinpoint"},"polly":{"name":"Polly","cors":true},"rds":{"name":"RDS","versions":["2014-09-01*"],"cors":true},"redshift":{"name":"Redshift","cors":true},"rekognition":{"name":"Rekognition","cors":true},"resourcegroupstaggingapi":{"name":"ResourceGroupsTaggingAPI"},"route53":{"name":"Route53","cors":true},"route53domains":{"name":"Route53Domains","cors":true},"s3":{"name":"S3","dualstackAvailable":true,"cors":true},"s3control":{"name":"S3Control","dualstackAvailable":true,"xmlNoDefaultLists":true},"servicecatalog":{"name":"ServiceCatalog","cors":true},"ses":{"prefix":"email","name":"SES","cors":true},"shield":{"name":"Shield"},"simpledb":{"prefix":"sdb","name":"SimpleDB"},"sms":{"name":"SMS"},"snowball":{"name":"Snowball"},"sns":{"name":"SNS","cors":true},"sqs":{"name":"SQS","cors":true},"ssm":{"name":"SSM","cors":true},"storagegateway":{"name":"StorageGateway","cors":true},"stepfunctions":{"prefix":"states","name":"StepFunctions"},"sts":{"name":"STS","cors":true},"support":{"name":"Support"},"swf":{"name":"SWF"},"xray":{"name":"XRay","cors":true},"waf":{"name":"WAF","cors":true},"wafregional":{"prefix":"waf-regional","name":"WAFRegional"},"workdocs":{"name":"WorkDocs","cors":true},"workspaces":{"name":"WorkSpaces"},"codestar":{"name":"CodeStar"},"lexmodelbuildingservice":{"prefix":"lex-models","name":"LexModelBuildingService","cors":true},"marketplaceentitlementservice":{"prefix":"entitlement.marketplace","name":"MarketplaceEntitlementService"},"athena":{"name":"Athena","cors":true},"greengrass":{"name":"Greengrass"},"dax":{"name":"DAX"},"migrationhub":{"prefix":"AWSMigrationHub","name":"MigrationHub"},"cloudhsmv2":{"name":"CloudHSMV2","cors":true},"glue":{"name":"Glue"},"mobile":{"name":"Mobile"},"pricing":{"name":"Pricing","cors":true},"costexplorer":{"prefix":"ce","name":"CostExplorer","cors":true},"mediaconvert":{"name":"MediaConvert"},"medialive":{"name":"MediaLive"},"mediapackage":{"name":"MediaPackage"},"mediastore":{"name":"MediaStore"},"mediastoredata":{"prefix":"mediastore-data","name":"MediaStoreData","cors":true},"appsync":{"name":"AppSync"},"guardduty":{"name":"GuardDuty"},"mq":{"name":"MQ"},"comprehend":{"name":"Comprehend","cors":true},"iotjobsdataplane":{"prefix":"iot-jobs-data","name":"IoTJobsDataPlane"},"kinesisvideoarchivedmedia":{"prefix":"kinesis-video-archived-media","name":"KinesisVideoArchivedMedia","cors":true},"kinesisvideomedia":{"prefix":"kinesis-video-media","name":"KinesisVideoMedia","cors":true},"kinesisvideo":{"name":"KinesisVideo","cors":true},"sagemakerruntime":{"prefix":"runtime.sagemaker","name":"SageMakerRuntime"},"sagemaker":{"name":"SageMaker"},"translate":{"name":"Translate","cors":true},"resourcegroups":{"prefix":"resource-groups","name":"ResourceGroups","cors":true},"alexaforbusiness":{"name":"AlexaForBusiness"},"cloud9":{"name":"Cloud9"},"serverlessapplicationrepository":{"prefix":"serverlessrepo","name":"ServerlessApplicationRepository"},"servicediscovery":{"name":"ServiceDiscovery"},"workmail":{"name":"WorkMail"},"autoscalingplans":{"prefix":"autoscaling-plans","name":"AutoScalingPlans"},"transcribeservice":{"prefix":"transcribe","name":"TranscribeService"},"connect":{"name":"Connect","cors":true},"acmpca":{"prefix":"acm-pca","name":"ACMPCA"},"fms":{"name":"FMS"},"secretsmanager":{"name":"SecretsManager","cors":true},"iotanalytics":{"name":"IoTAnalytics","cors":true},"iot1clickdevicesservice":{"prefix":"iot1click-devices","name":"IoT1ClickDevicesService"},"iot1clickprojects":{"prefix":"iot1click-projects","name":"IoT1ClickProjects"},"pi":{"name":"PI"},"neptune":{"name":"Neptune"},"mediatailor":{"name":"MediaTailor"},"eks":{"name":"EKS"},"macie":{"name":"Macie"},"dlm":{"name":"DLM"},"signer":{"name":"Signer"},"chime":{"name":"Chime"},"pinpointemail":{"prefix":"pinpoint-email","name":"PinpointEmail"},"ram":{"name":"RAM"},"route53resolver":{"name":"Route53Resolver"},"pinpointsmsvoice":{"prefix":"sms-voice","name":"PinpointSMSVoice"},"quicksight":{"name":"QuickSight"},"rdsdataservice":{"prefix":"rds-data","name":"RDSDataService"},"amplify":{"name":"Amplify"},"datasync":{"name":"DataSync"},"robomaker":{"name":"RoboMaker"},"transfer":{"name":"Transfer"},"globalaccelerator":{"name":"GlobalAccelerator"},"comprehendmedical":{"name":"ComprehendMedical","cors":true},"kinesisanalyticsv2":{"name":"KinesisAnalyticsV2"},"mediaconnect":{"name":"MediaConnect"},"fsx":{"name":"FSx"},"securityhub":{"name":"SecurityHub"},"appmesh":{"name":"AppMesh","versions":["2018-10-01*"]},"licensemanager":{"prefix":"license-manager","name":"LicenseManager"},"kafka":{"name":"Kafka"},"apigatewaymanagementapi":{"name":"ApiGatewayManagementApi"},"apigatewayv2":{"name":"ApiGatewayV2"},"docdb":{"name":"DocDB"},"backup":{"name":"Backup"},"worklink":{"name":"WorkLink"},"textract":{"name":"Textract"},"managedblockchain":{"name":"ManagedBlockchain"},"mediapackagevod":{"prefix":"mediapackage-vod","name":"MediaPackageVod"},"groundstation":{"name":"GroundStation"},"iotthingsgraph":{"name":"IoTThingsGraph"},"iotevents":{"name":"IoTEvents"},"ioteventsdata":{"prefix":"iotevents-data","name":"IoTEventsData"},"personalize":{"name":"Personalize","cors":true},"personalizeevents":{"prefix":"personalize-events","name":"PersonalizeEvents","cors":true},"personalizeruntime":{"prefix":"personalize-runtime","name":"PersonalizeRuntime","cors":true},"applicationinsights":{"prefix":"application-insights","name":"ApplicationInsights"},"servicequotas":{"prefix":"service-quotas","name":"ServiceQuotas"},"ec2instanceconnect":{"prefix":"ec2-instance-connect","name":"EC2InstanceConnect"},"eventbridge":{"name":"EventBridge"},"lakeformation":{"name":"LakeFormation"},"forecastservice":{"prefix":"forecast","name":"ForecastService","cors":true},"forecastqueryservice":{"prefix":"forecastquery","name":"ForecastQueryService","cors":true},"qldb":{"name":"QLDB"},"qldbsession":{"prefix":"qldb-session","name":"QLDBSession"},"workmailmessageflow":{"name":"WorkMailMessageFlow"},"codestarnotifications":{"prefix":"codestar-notifications","name":"CodeStarNotifications"},"savingsplans":{"name":"SavingsPlans"},"sso":{"name":"SSO"},"ssooidc":{"prefix":"sso-oidc","name":"SSOOIDC"},"marketplacecatalog":{"prefix":"marketplace-catalog","name":"MarketplaceCatalog"},"dataexchange":{"name":"DataExchange"},"sesv2":{"name":"SESV2"},"migrationhubconfig":{"prefix":"migrationhub-config","name":"MigrationHubConfig"},"connectparticipant":{"name":"ConnectParticipant"},"appconfig":{"name":"AppConfig"},"iotsecuretunneling":{"name":"IoTSecureTunneling"},"wafv2":{"name":"WAFV2"},"elasticinference":{"prefix":"elastic-inference","name":"ElasticInference"},"imagebuilder":{"name":"Imagebuilder"},"schemas":{"name":"Schemas"},"accessanalyzer":{"name":"AccessAnalyzer"},"codegurureviewer":{"prefix":"codeguru-reviewer","name":"CodeGuruReviewer"},"codeguruprofiler":{"name":"CodeGuruProfiler"},"computeoptimizer":{"prefix":"compute-optimizer","name":"ComputeOptimizer"},"frauddetector":{"name":"FraudDetector"},"kendra":{"name":"Kendra"},"networkmanager":{"name":"NetworkManager"},"outposts":{"name":"Outposts"},"augmentedairuntime":{"prefix":"sagemaker-a2i-runtime","name":"AugmentedAIRuntime"},"ebs":{"name":"EBS"},"kinesisvideosignalingchannels":{"prefix":"kinesis-video-signaling","name":"KinesisVideoSignalingChannels","cors":true},"detective":{"name":"Detective"},"codestarconnections":{"prefix":"codestar-connections","name":"CodeStarconnections"},"synthetics":{"name":"Synthetics"},"iotsitewise":{"name":"IoTSiteWise"},"macie2":{"name":"Macie2"},"codeartifact":{"name":"CodeArtifact"},"honeycode":{"name":"Honeycode"},"ivs":{"name":"IVS"},"braket":{"name":"Braket"},"identitystore":{"name":"IdentityStore"},"appflow":{"name":"Appflow"},"redshiftdata":{"prefix":"redshift-data","name":"RedshiftData"},"ssoadmin":{"prefix":"sso-admin","name":"SSOAdmin"},"timestreamquery":{"prefix":"timestream-query","name":"TimestreamQuery"},"timestreamwrite":{"prefix":"timestream-write","name":"TimestreamWrite"},"s3outposts":{"name":"S3Outposts"},"databrew":{"name":"DataBrew"},"servicecatalogappregistry":{"prefix":"servicecatalog-appregistry","name":"ServiceCatalogAppRegistry"},"networkfirewall":{"prefix":"network-firewall","name":"NetworkFirewall"},"mwaa":{"name":"MWAA"},"amplifybackend":{"name":"AmplifyBackend"},"appintegrations":{"name":"AppIntegrations"},"connectcontactlens":{"prefix":"connect-contact-lens","name":"ConnectContactLens"},"devopsguru":{"prefix":"devops-guru","name":"DevOpsGuru"},"ecrpublic":{"prefix":"ecr-public","name":"ECRPUBLIC"},"lookoutvision":{"name":"LookoutVision"},"sagemakerfeaturestoreruntime":{"prefix":"sagemaker-featurestore-runtime","name":"SageMakerFeatureStoreRuntime"},"customerprofiles":{"prefix":"customer-profiles","name":"CustomerProfiles"},"auditmanager":{"name":"AuditManager"},"emrcontainers":{"prefix":"emr-containers","name":"EMRcontainers"},"healthlake":{"name":"HealthLake"},"sagemakeredge":{"prefix":"sagemaker-edge","name":"SagemakerEdge"},"amp":{"name":"Amp"},"greengrassv2":{"name":"GreengrassV2"},"iotdeviceadvisor":{"name":"IotDeviceAdvisor"},"iotfleethub":{"name":"IoTFleetHub"},"iotwireless":{"name":"IoTWireless"},"location":{"name":"Location","cors":true},"wellarchitected":{"name":"WellArchitected"},"lexmodelsv2":{"prefix":"models.lex.v2","name":"LexModelsV2"},"lexruntimev2":{"prefix":"runtime.lex.v2","name":"LexRuntimeV2","cors":true},"fis":{"name":"Fis"},"lookoutmetrics":{"name":"LookoutMetrics"},"mgn":{"name":"Mgn"},"lookoutequipment":{"name":"LookoutEquipment"},"nimble":{"name":"Nimble"},"finspace":{"name":"Finspace"},"finspacedata":{"prefix":"finspace-data","name":"Finspacedata"},"ssmcontacts":{"prefix":"ssm-contacts","name":"SSMContacts"},"ssmincidents":{"prefix":"ssm-incidents","name":"SSMIncidents"},"applicationcostprofiler":{"name":"ApplicationCostProfiler"},"apprunner":{"name":"AppRunner"},"proton":{"name":"Proton"},"route53recoverycluster":{"prefix":"route53-recovery-cluster","name":"Route53RecoveryCluster"},"route53recoverycontrolconfig":{"prefix":"route53-recovery-control-config","name":"Route53RecoveryControlConfig"},"route53recoveryreadiness":{"prefix":"route53-recovery-readiness","name":"Route53RecoveryReadiness"},"chimesdkidentity":{"prefix":"chime-sdk-identity","name":"ChimeSDKIdentity"},"chimesdkmessaging":{"prefix":"chime-sdk-messaging","name":"ChimeSDKMessaging"},"snowdevicemanagement":{"prefix":"snow-device-management","name":"SnowDeviceManagement"},"memorydb":{"name":"MemoryDB"},"opensearch":{"name":"OpenSearch"},"kafkaconnect":{"name":"KafkaConnect"},"voiceid":{"prefix":"voice-id","name":"VoiceID"},"wisdom":{"name":"Wisdom"},"account":{"name":"Account"},"cloudcontrol":{"name":"CloudControl"},"grafana":{"name":"Grafana"},"panorama":{"name":"Panorama"},"chimesdkmeetings":{"prefix":"chime-sdk-meetings","name":"ChimeSDKMeetings"},"resiliencehub":{"name":"Resiliencehub"},"migrationhubstrategy":{"name":"MigrationHubStrategy"},"appconfigdata":{"name":"AppConfigData"},"drs":{"name":"Drs"},"migrationhubrefactorspaces":{"prefix":"migration-hub-refactor-spaces","name":"MigrationHubRefactorSpaces"},"evidently":{"name":"Evidently"},"inspector2":{"name":"Inspector2"},"rbin":{"name":"Rbin"},"rum":{"name":"RUM"},"backupgateway":{"prefix":"backup-gateway","name":"BackupGateway"},"iottwinmaker":{"name":"IoTTwinMaker"},"workspacesweb":{"prefix":"workspaces-web","name":"WorkSpacesWeb"},"amplifyuibuilder":{"name":"AmplifyUIBuilder"},"keyspaces":{"name":"Keyspaces"},"billingconductor":{"name":"Billingconductor"},"gamesparks":{"name":"GameSparks"},"pinpointsmsvoicev2":{"prefix":"pinpoint-sms-voice-v2","name":"PinpointSMSVoiceV2"},"ivschat":{"name":"Ivschat"},"chimesdkmediapipelines":{"prefix":"chime-sdk-media-pipelines","name":"ChimeSDKMediaPipelines"},"emrserverless":{"prefix":"emr-serverless","name":"EMRServerless"},"m2":{"name":"M2"},"connectcampaigns":{"name":"ConnectCampaigns"},"redshiftserverless":{"prefix":"redshift-serverless","name":"RedshiftServerless"},"rolesanywhere":{"name":"RolesAnywhere"},"licensemanagerusersubscriptions":{"prefix":"license-manager-user-subscriptions","name":"LicenseManagerUserSubscriptions"}}')},3554:ue=>{"use strict";ue.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2011-06-15","endpointPrefix":"sts","globalEndpoint":"sts.amazonaws.com","protocol":"query","serviceAbbreviation":"AWS STS","serviceFullName":"AWS Security Token Service","serviceId":"STS","signatureVersion":"v4","uid":"sts-2011-06-15","xmlNamespace":"https://sts.amazonaws.com/doc/2011-06-15/"},"operations":{"AssumeRole":{"input":{"type":"structure","required":["RoleArn","RoleSessionName"],"members":{"RoleArn":{},"RoleSessionName":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"},"TransitiveTagKeys":{"type":"list","member":{}},"ExternalId":{},"SerialNumber":{},"TokenCode":{},"SourceIdentity":{}}},"output":{"resultWrapper":"AssumeRoleResult","type":"structure","members":{"Credentials":{"shape":"Si"},"AssumedRoleUser":{"shape":"Sn"},"PackedPolicySize":{"type":"integer"},"SourceIdentity":{}}}},"AssumeRoleWithSAML":{"input":{"type":"structure","required":["RoleArn","PrincipalArn","SAMLAssertion"],"members":{"RoleArn":{},"PrincipalArn":{},"SAMLAssertion":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithSAMLResult","type":"structure","members":{"Credentials":{"shape":"Si"},"AssumedRoleUser":{"shape":"Sn"},"PackedPolicySize":{"type":"integer"},"Subject":{},"SubjectType":{},"Issuer":{},"Audience":{},"NameQualifier":{},"SourceIdentity":{}}}},"AssumeRoleWithWebIdentity":{"input":{"type":"structure","required":["RoleArn","RoleSessionName","WebIdentityToken"],"members":{"RoleArn":{},"RoleSessionName":{},"WebIdentityToken":{},"ProviderId":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithWebIdentityResult","type":"structure","members":{"Credentials":{"shape":"Si"},"SubjectFromWebIdentityToken":{},"AssumedRoleUser":{"shape":"Sn"},"PackedPolicySize":{"type":"integer"},"Provider":{},"Audience":{},"SourceIdentity":{}}}},"DecodeAuthorizationMessage":{"input":{"type":"structure","required":["EncodedMessage"],"members":{"EncodedMessage":{}}},"output":{"resultWrapper":"DecodeAuthorizationMessageResult","type":"structure","members":{"DecodedMessage":{}}}},"GetAccessKeyInfo":{"input":{"type":"structure","required":["AccessKeyId"],"members":{"AccessKeyId":{}}},"output":{"resultWrapper":"GetAccessKeyInfoResult","type":"structure","members":{"Account":{}}}},"GetCallerIdentity":{"input":{"type":"structure","members":{}},"output":{"resultWrapper":"GetCallerIdentityResult","type":"structure","members":{"UserId":{},"Account":{},"Arn":{}}}},"GetFederationToken":{"input":{"type":"structure","required":["Name"],"members":{"Name":{},"Policy":{},"PolicyArns":{"shape":"S4"},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"}}},"output":{"resultWrapper":"GetFederationTokenResult","type":"structure","members":{"Credentials":{"shape":"Si"},"FederatedUser":{"type":"structure","required":["FederatedUserId","Arn"],"members":{"FederatedUserId":{},"Arn":{}}},"PackedPolicySize":{"type":"integer"}}}},"GetSessionToken":{"input":{"type":"structure","members":{"DurationSeconds":{"type":"integer"},"SerialNumber":{},"TokenCode":{}}},"output":{"resultWrapper":"GetSessionTokenResult","type":"structure","members":{"Credentials":{"shape":"Si"}}}}},"shapes":{"S4":{"type":"list","member":{"type":"structure","members":{"arn":{}}}},"S8":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"Si":{"type":"structure","required":["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],"members":{"AccessKeyId":{},"SecretAccessKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}},"Sn":{"type":"structure","required":["AssumedRoleId","Arn"],"members":{"AssumedRoleId":{},"Arn":{}}}}}')},31152:ue=>{"use strict";ue.exports={o:{}}},85595:ue=>{"use strict";ue.exports=JSON.parse('{"rules":{"*/*":{"endpoint":"{service}.{region}.amazonaws.com"},"cn-*/*":{"endpoint":"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":"usIso","us-isob-*/*":"usIsob","*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2","globalEndpoint":true},"*/route53":"globalSSL","cn-*/route53":{"endpoint":"{service}.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","us-iso-*/route53":{"endpoint":"{service}.c2s.ic.gov","globalEndpoint":true,"signingRegion":"us-iso-east-1"},"us-isob-*/route53":{"endpoint":"{service}.sc2s.sgov.gov","globalEndpoint":true,"signingRegion":"us-isob-east-1"},"*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{"endpoint":"{service}.cn-north-1.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-north-1"},"us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{"endpoint":"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{"endpoint":"{service}.amazonaws.com","signatureVersion":"s3"},"us-east-1/sdb":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2"},"*/sdb":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"v2"}},"fipsRules":{"*/*":"fipsStandard","us-gov-*/*":"fipsStandard","us-iso-*/*":{"endpoint":"{service}-fips.{region}.c2s.ic.gov"},"us-iso-*/dms":"usIso","us-isob-*/*":{"endpoint":"{service}-fips.{region}.sc2s.sgov.gov"},"us-isob-*/dms":"usIsob","cn-*/*":{"endpoint":"{service}-fips.{region}.amazonaws.com.cn"},"*/api.ecr":"fips.api.ecr","*/api.sagemaker":"fips.api.sagemaker","*/batch":"fipsDotPrefix","*/eks":"fipsDotPrefix","*/models.lex":"fips.models.lex","*/runtime.lex":"fips.runtime.lex","*/runtime.sagemaker":{"endpoint":"runtime-fips.sagemaker.{region}.amazonaws.com"},"*/iam":"fipsWithoutRegion","*/route53":"fipsWithoutRegion","*/transcribe":"fipsDotPrefix","*/waf":"fipsWithoutRegion","us-gov-*/transcribe":"fipsDotPrefix","us-gov-*/api.ecr":"fips.api.ecr","us-gov-*/api.sagemaker":"fips.api.sagemaker","us-gov-*/models.lex":"fips.models.lex","us-gov-*/runtime.lex":"fips.runtime.lex","us-gov-*/acm-pca":"fipsWithServiceOnly","us-gov-*/batch":"fipsWithServiceOnly","us-gov-*/config":"fipsWithServiceOnly","us-gov-*/eks":"fipsWithServiceOnly","us-gov-*/elasticmapreduce":"fipsWithServiceOnly","us-gov-*/identitystore":"fipsWithServiceOnly","us-gov-*/dynamodb":"fipsWithServiceOnly","us-gov-*/elasticloadbalancing":"fipsWithServiceOnly","us-gov-*/guardduty":"fipsWithServiceOnly","us-gov-*/monitoring":"fipsWithServiceOnly","us-gov-*/resource-groups":"fipsWithServiceOnly","us-gov-*/runtime.sagemaker":"fipsWithServiceOnly","us-gov-*/servicecatalog-appregistry":"fipsWithServiceOnly","us-gov-*/servicequotas":"fipsWithServiceOnly","us-gov-*/ssm":"fipsWithServiceOnly","us-gov-*/sts":"fipsWithServiceOnly","us-gov-*/support":"fipsWithServiceOnly","us-gov-west-1/states":"fipsWithServiceOnly","us-iso-east-1/elasticfilesystem":{"endpoint":"elasticfilesystem-fips.{region}.c2s.ic.gov"},"us-gov-west-1/organizations":"fipsWithServiceOnly","us-gov-west-1/route53":{"endpoint":"route53.us-gov.amazonaws.com"}},"dualstackRules":{"*/*":{"endpoint":"{service}.{region}.api.aws"},"cn-*/*":{"endpoint":"{service}.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackLegacy","cn-*/s3":"dualstackLegacyCn","*/s3-control":"dualstackLegacy","cn-*/s3-control":"dualstackLegacyCn","ap-south-1/ec2":"dualstackLegacyEc2","eu-west-1/ec2":"dualstackLegacyEc2","sa-east-1/ec2":"dualstackLegacyEc2","us-east-1/ec2":"dualstackLegacyEc2","us-east-2/ec2":"dualstackLegacyEc2","us-west-2/ec2":"dualstackLegacyEc2"},"dualstackFipsRules":{"*/*":{"endpoint":"{service}-fips.{region}.api.aws"},"cn-*/*":{"endpoint":"{service}-fips.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackFipsLegacy","cn-*/s3":"dualstackFipsLegacyCn","*/s3-control":"dualstackFipsLegacy","cn-*/s3-control":"dualstackFipsLegacyCn"},"patterns":{"globalSSL":{"endpoint":"https://{service}.amazonaws.com","globalEndpoint":true,"signingRegion":"us-east-1"},"globalGovCloud":{"endpoint":"{service}.us-gov.amazonaws.com","globalEndpoint":true,"signingRegion":"us-gov-west-1"},"s3signature":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"s3"},"usIso":{"endpoint":"{service}.{region}.c2s.ic.gov"},"usIsob":{"endpoint":"{service}.{region}.sc2s.sgov.gov"},"fipsStandard":{"endpoint":"{service}-fips.{region}.amazonaws.com"},"fipsDotPrefix":{"endpoint":"fips.{service}.{region}.amazonaws.com"},"fipsWithoutRegion":{"endpoint":"{service}-fips.amazonaws.com"},"fips.api.ecr":{"endpoint":"ecr-fips.{region}.amazonaws.com"},"fips.api.sagemaker":{"endpoint":"api-fips.sagemaker.{region}.amazonaws.com"},"fips.models.lex":{"endpoint":"models-fips.lex.{region}.amazonaws.com"},"fips.runtime.lex":{"endpoint":"runtime-fips.lex.{region}.amazonaws.com"},"fipsWithServiceOnly":{"endpoint":"{service}.{region}.amazonaws.com"},"dualstackLegacy":{"endpoint":"{service}.dualstack.{region}.amazonaws.com"},"dualstackLegacyCn":{"endpoint":"{service}.dualstack.{region}.amazonaws.com.cn"},"dualstackFipsLegacy":{"endpoint":"{service}-fips.dualstack.{region}.amazonaws.com"},"dualstackFipsLegacyCn":{"endpoint":"{service}-fips.dualstack.{region}.amazonaws.com.cn"},"dualstackLegacyEc2":{"endpoint":"api.ec2.{region}.aws"}}}')},44226:ue=>{"use strict";ue.exports=JSON.parse('{"name":"aws-appsync-auth-link","version":"3.0.4","main":"lib/index.js","license":"Apache-2.0","description":"AWS Mobile AppSync Auth Link for JavaScript","author":{"name":"Amazon Web Services","url":"https://aws.amazon.com/"},"homepage":"https://github.com/awslabs/aws-mobile-appsync-sdk-js.git","repository":{"type":"git","url":"https://github.com/awslabs/aws-mobile-appsync-sdk-js.git"},"scripts":{"prepare":"tsc","test":"jest --coverage --coverageReporters=text --passWithNoTests","test-watch":"jest --watch"},"dependencies":{"aws-sdk":"^2.814.0","debug":"2.6.9"},"devDependencies":{"@apollo/client":"^3.2.0"},"peerDependencies":{"@apollo/client":"3.x"}}')}}]);