altair-static 4.5.3 → 4.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/243.js +1 -1
- package/build/dist/364.js +1 -1
- package/build/dist/3rdpartylicenses.txt +1019 -52
- package/build/dist/471.js +1 -1
- package/build/dist/480.js +1 -0
- package/build/dist/482.js +1 -1
- package/build/dist/{657.js → 521.js} +1 -1
- package/build/dist/{23.js → 60.js} +1 -1
- package/build/dist/609.js +1 -0
- package/build/dist/783.js +1 -1
- package/build/dist/810.js +1 -0
- package/build/dist/{121.js → 855.js} +1 -1
- package/build/dist/89.js +1 -0
- package/build/dist/main.js +1 -1
- package/build/dist/polyfills.js +1 -1
- package/build/dist/styles.css +1 -1
- package/build/index.d.ts +4 -6
- package/package.json +7 -8
- package/tsconfig.json +1 -1
- package/build/dist/206.js +0 -1
- package/build/dist/478.js +0 -1
- package/build/dist/690.js +0 -1
- package/build/dist/747.js +0 -1
- package/build/dist/863.js +0 -1
package/build/dist/243.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[243],{30243:(ne,L,d)=>{"use strict";d.r(L),d.d(L,{AppSyncSubscriptionProvider:()=>v});var s=d(69972),S=d(12418),l=d(60506),t=d(55748),n=d(69786),c=d(82699),o=d(64588),u=d(51724);class v extends s.q{execute(E){const R=this.connectionParams.aws_appsync_graphqlEndpoint,P=this.connectionParams.aws_appsync_region,D={type:this.connectionParams.aws_appsync_authenticationType,apiKey:this.connectionParams.aws_appsync_apiKey,jwtToken:this.connectionParams.aws_appsync_jwtToken},A=n.ApolloLink.from([(0,l.createAuthLink)({url:R,region:P,auth:D}),(0,t.createSubscriptionHandshakeLink)({url:R,region:P,auth:D})]),I=new c.f({link:A,cache:new o.h}).subscribe({query:(0,u.Qc)(E.query),variables:E.variables});return new S.y(B=>{this.subscription=I.subscribe({next:(...K)=>B.next(...K),error:(...K)=>B.error(...K),complete:()=>B.complete()})})}close(){var E,R;null!==(E=this.subscription)&&void 0!==E&&E.closed&&(null===(R=this.subscription)||void 0===R||R.unsubscribe())}}},5962:(ne,L,d)=>{"use strict";d.d(L,{R:()=>l});var s=d(95629),S=d(2454),l=function(){function t(){this.getFragmentDoc=(0,s.re)(S.Yk)}return t.prototype.recordOptimisticTransaction=function(r,n){this.performTransaction(r,n)},t.prototype.transformDocument=function(r){return r},t.prototype.identify=function(r){},t.prototype.gc=function(){return[]},t.prototype.modify=function(r){return!1},t.prototype.transformForLink=function(r){return r},t.prototype.readQuery=function(r,n){return void 0===n&&(n=!!r.optimistic),this.read({rootId:r.id||"ROOT_QUERY",query:r.query,variables:r.variables,returnPartialData:r.returnPartialData,optimistic:n})},t.prototype.readFragment=function(r,n){return void 0===n&&(n=!!r.optimistic),this.read({query:this.getFragmentDoc(r.fragment,r.fragmentName),variables:r.variables,rootId:r.id,returnPartialData:r.returnPartialData,optimistic:n})},t.prototype.writeQuery=function(r){return this.write({dataId:r.id||"ROOT_QUERY",result:r.data,query:r.query,variables:r.variables,broadcast:r.broadcast})},t.prototype.writeFragment=function(r){return this.write({dataId:r.id,result:r.data,variables:r.variables,query:this.getFragmentDoc(r.fragment,r.fragmentName),broadcast:r.broadcast})},t}()},33006:(ne,L,d)=>{"use strict";var s;d.d(L,{C:()=>s}),s||(s={})},76112:(ne,L,d)=>{"use strict";d.d(L,{y:()=>s});var s=function S(l,t,r,n,c){this.message=l,this.path=t,this.query=r,this.clientOnly=n,this.variables=c}},14363:(ne,L,d)=>{"use strict";d.d(L,{$O:()=>n,E_:()=>c,RC:()=>o,RI:()=>t,ig:()=>v,j:()=>u});var s=d(35476),S=d(31323),l=d(91917),t=Object.prototype.hasOwnProperty,n=/^[_a-z][_0-9a-z]*/i;function c(m){var E=m.match(n);return E?E[0]:m}function o(m,E,R){return!(!E||"object"!=typeof E)&&(Array.isArray(E)?E.every(function(P){return o(m,P,R)}):m.selections.every(function(P){if((0,s.My)(P)&&(0,S.LZ)(P,R)){var D=(0,s.u2)(P);return t.call(E,D)&&(!P.selectionSet||o(P.selectionSet,E[D],R))}return!0}))}function u(m){return null!==m&&"object"==typeof m&&!(0,s.Yk)(m)&&!Array.isArray(m)}function v(){return new l.w0}},64588:(ne,L,d)=>{"use strict";d.d(L,{h:()=>J});var ee,x,s=d(9376),S=d(95629),l=d(5962),t=d(76112),r=d(35476),n=d(98351),c=d(71177),o=d(72722),u=d(2454),v=d(31323),m=d(91917),E=d(37117),A=d(55144),_=d(14363),I=Object.create(null),B=function(){return I},K=Object.create(null),q=function(){function ee(x,h){var b=this;this.policies=x,this.group=h,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(T,M){return(0,r.Yk)(T)?b.get(T.__ref,M):T&&T[M]},this.canRead=function(T){return(0,r.Yk)(T)?b.has(T.__ref):"object"==typeof T},this.toReference=function(T,M){if("string"==typeof T)return(0,r.kQ)(T);if((0,r.Yk)(T))return T;var G=b.policies.identify(T)[0];if(G){var Z=(0,r.kQ)(G);return M&&b.merge(G,T),Z}}}return ee.prototype.toObject=function(){return(0,s.pi)({},this.data)},ee.prototype.has=function(x){return void 0!==this.lookup(x,!0)},ee.prototype.get=function(x,h){if(this.group.depend(x,h),_.RI.call(this.data,x)){var b=this.data[x];if(b&&_.RI.call(b,h))return b[h]}return"__typename"===h&&_.RI.call(this.policies.rootTypenamesById,x)?this.policies.rootTypenamesById[x]:this instanceof w?this.parent.get(x,h):void 0},ee.prototype.lookup=function(x,h){return h&&this.group.depend(x,"__exists"),_.RI.call(this.data,x)?this.data[x]:this instanceof w?this.parent.lookup(x,h):this.policies.rootTypenamesById[x]?Object.create(null):void 0},ee.prototype.merge=function(x,h){var b=this,T=this.lookup(x),M=new m.w0(f).merge(T,h);if(this.data[x]=M,M!==T&&(delete this.refs[x],this.group.caching)){var G=Object.create(null);T||(G.__exists=1),Object.keys(h).forEach(function(Z){if(!T||T[Z]!==M[Z]){G[Z]=1;var se=(0,_.E_)(Z);se!==Z&&!b.policies.hasKeyArgs(M.__typename,se)&&(G[se]=1),void 0===M[Z]&&!(b instanceof w)&&delete M[Z]}}),Object.keys(G).forEach(function(Z){return b.group.dirty(x,Z)})}},ee.prototype.modify=function(x,h){var b=this,T=this.lookup(x);if(T){var M=Object.create(null),G=!1,Z=!0,se={DELETE:I,INVALIDATE:K,isReference:r.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(ie,_e){return b.policies.readField("string"==typeof ie?{fieldName:ie,from:_e||(0,r.kQ)(x)}:ie,{store:b})}};if(Object.keys(T).forEach(function(ie){var _e=(0,_.E_)(ie),Te=T[ie];if(void 0!==Te){var xe="function"==typeof h?h:h[ie]||h[_e];if(xe){var Oe=xe===B?I:xe(Te,(0,s.pi)((0,s.pi)({},se),{fieldName:_e,storeFieldName:ie,storage:b.getStorage(x,ie)}));Oe===K?b.group.dirty(x,ie):(Oe===I&&(Oe=void 0),Oe!==Te&&(M[ie]=Oe,G=!0,Te=Oe))}void 0!==Te&&(Z=!1)}}),G)return this.merge(x,M),Z&&(this instanceof w?this.data[x]=void 0:delete this.data[x],this.group.dirty(x,"__exists")),!0}return!1},ee.prototype.delete=function(x,h,b){var T,M=this.lookup(x);if(M){var G=this.getFieldValue(M,"__typename"),Z=h&&b?this.policies.getStoreFieldName({typename:G,fieldName:h,args:b}):h;return this.modify(x,Z?((T={})[Z]=B,T):B)}return!1},ee.prototype.evict=function(x){var h=!1;return x.id&&(_.RI.call(this.data,x.id)&&(h=this.delete(x.id,x.fieldName,x.args)),this instanceof w&&(h=this.parent.evict(x)||h),(x.fieldName||h)&&this.group.dirty(x.id,x.fieldName||"__exists")),h},ee.prototype.clear=function(){this.replace(null)},ee.prototype.extract=function(){var x=this,h=this.toObject(),b=[];return this.getRootIdSet().forEach(function(T){_.RI.call(x.policies.rootTypenamesById,T)||b.push(T)}),b.length&&(h.__META={extraRootIds:b.sort()}),h},ee.prototype.replace=function(x){var h=this;if(Object.keys(this.data).forEach(function(M){x&&_.RI.call(x,M)||h.delete(M)}),x){var b=x.__META,T=(0,s._T)(x,["__META"]);Object.keys(T).forEach(function(M){h.merge(M,T[M])}),b&&b.extraRootIds.forEach(this.retain,this)}},ee.prototype.retain=function(x){return this.rootIds[x]=(this.rootIds[x]||0)+1},ee.prototype.release=function(x){if(this.rootIds[x]>0){var h=--this.rootIds[x];return h||delete this.rootIds[x],h}return 0},ee.prototype.getRootIdSet=function(x){return void 0===x&&(x=new Set),Object.keys(this.rootIds).forEach(x.add,x),this instanceof w?this.parent.getRootIdSet(x):Object.keys(this.policies.rootTypenamesById).forEach(x.add,x),x},ee.prototype.gc=function(){var x=this,h=this.getRootIdSet(),b=this.toObject();h.forEach(function(G){_.RI.call(b,G)&&(Object.keys(x.findChildRefIds(G)).forEach(h.add,h),delete b[G])});var T=Object.keys(b);if(T.length){for(var M=this;M instanceof w;)M=M.parent;T.forEach(function(G){return M.delete(G)})}return T},ee.prototype.findChildRefIds=function(x){if(!_.RI.call(this.refs,x)){var h=this.refs[x]=Object.create(null),b=new Set([this.data[x]]),T=function(M){return null!==M&&"object"==typeof M};b.forEach(function(M){(0,r.Yk)(M)?h[M.__ref]=!0:T(M)&&Object.values(M).filter(T).forEach(b.add,b)})}return this.refs[x]},ee.prototype.makeCacheKey=function(){for(var x=[],h=0;h<arguments.length;h++)x[h]=arguments[h];return this.group.keyMaker.lookupArray(x)},ee}(),W=function(){function ee(x){this.caching=x,this.d=null,this.keyMaker=new S.Gl(A.m),this.d=x?(0,S.dP)():null}return ee.prototype.depend=function(x,h){if(this.d){this.d(O(x,h));var b=(0,_.E_)(h);b!==h&&this.d(O(x,b))}},ee.prototype.dirty=function(x,h){this.d&&this.d.dirty(O(x,h))},ee}();function O(ee,x){return x+"#"+ee}x=function(h){function b(T){var G=T.resultCaching,Z=void 0===G||G,se=T.seed,ie=h.call(this,T.policies,new W(Z))||this;return ie.storageTrie=new S.Gl(A.m),ie.sharedLayerGroup=new W(Z),se&&ie.replace(se),ie}return(0,s.ZT)(b,h),b.prototype.addLayer=function(T,M){return new w(T,this,M,this.sharedLayerGroup)},b.prototype.removeLayer=function(){return this},b.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},b}(ee=q||(q={})),ee.Root=x;var w=function(ee){function x(h,b,T,M){var G=ee.call(this,b.policies,M)||this;return G.id=h,G.parent=b,G.replay=T,G.group=M,T(G),G}return(0,s.ZT)(x,ee),x.prototype.addLayer=function(h,b){return new x(h,this,b,this.group)},x.prototype.removeLayer=function(h){var b=this,T=this.parent.removeLayer(h);return h===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(M){b.data[M]!==T.lookup(M)&&b.delete(M)}),T):T===this.parent?this:T.addLayer(this.id,this.replay)},x.prototype.toObject=function(){return(0,s.pi)((0,s.pi)({},this.parent.toObject()),this.data)},x.prototype.findChildRefIds=function(h){var b=this.parent.findChildRefIds(h);return _.RI.call(this.data,h)?(0,s.pi)((0,s.pi)({},b),ee.prototype.findChildRefIds.call(this,h)):b},x.prototype.getStorage=function(){for(var h=this.parent;h.parent;)h=h.parent;return h.getStorage.apply(h,arguments)},x}(q);function f(ee,x,h){var b=ee[h],T=x[h];return(0,E.D)(b,T)?b:T}function y(ee){return!!(ee instanceof q&&ee.group.caching)}function p(ee,x){return new t.y(ee.message,x.path.slice(),x.query,x.clientOnly,x.variables)}var N=function(){function ee(x){var h=this;this.config=x,this.executeSelectionSet=(0,S.re)(function(b){return h.execSelectionSetImpl(b)},{keyArgs:function(b){return[b.selectionSet,b.objectOrReference,b.context]},makeCacheKey:function(b,T,M){if(y(M.store))return M.store.makeCacheKey(b,(0,r.Yk)(T)?T.__ref:T,M.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=(0,S.re)(function(b){return h.execSubSelectedArrayImpl(b)},{makeCacheKey:function(b){var T=b.field,M=b.array,G=b.context;if(y(G.store))return G.store.makeCacheKey(T,M,G.varString)}}),this.config=(0,s.pi)({addTypename:!0},x)}return ee.prototype.diffQueryAgainstStore=function(x){var h=x.store,b=x.query,T=x.rootId,M=void 0===T?"ROOT_QUERY":T,G=x.variables,Z=x.returnPartialData,se=void 0===Z||Z,ie=this.config.cache.policies;G=(0,s.pi)((0,s.pi)({},(0,o.O4)((0,o.iW)(b))),G);var _e=this.executeSelectionSet({selectionSet:(0,o.p$)(b).selectionSet,objectOrReference:(0,r.kQ)(M),context:{store:h,query:b,policies:ie,variables:G,varString:JSON.stringify(G),fragmentMap:(0,u.F)((0,o.kU)(b)),path:[],clientOnly:!1}}),Te=_e.missing&&_e.missing.length>0;if(Te&&!se)throw _e.missing[0];return{result:_e.result,missing:_e.missing,complete:!Te}},ee.prototype.isFresh=function(x,h,b,T){if(y(T.store)&&this.knownResults.get(x)===b){var M=this.executeSelectionSet.peek(b,h,T);if(M&&x===M.result)return!0}return!1},ee.prototype.execSelectionSetImpl=function(x){var h=this,b=x.selectionSet,T=x.objectOrReference,M=x.context;if((0,r.Yk)(T)&&!M.policies.rootTypenamesById[T.__ref]&&!M.store.has(T.__ref))return{result:{},missing:[p(new c.ej(4),M)]};var G=M.variables,Z=M.policies,ie=[],_e={result:null},Te=M.store.getFieldValue(T,"__typename");function xe(){return _e.missing||(_e.missing=[])}function Oe(H){var F;return H.missing&&(F=xe()).push.apply(F,H.missing),H.result}this.config.addTypename&&"string"==typeof Te&&!Z.rootIdsByTypename[Te]&&ie.push({__typename:Te});var Re=new Set(b.selections);return Re.forEach(function(H){var F;if((0,v.LZ)(H,G))if((0,r.My)(H)){var U=Z.readField({fieldName:H.name.value,field:H,variables:M.variables,from:T},M),ue=(0,r.u2)(H);M.path.push(ue);var ye=M.clientOnly;M.clientOnly=ye||!(!H.directives||!H.directives.some(function(z){return"client"===z.name.value})),void 0===U?n.Gw.added(H)||xe().push(p(new c.ej(5),M)):Array.isArray(U)?U=Oe(h.executeSubSelectedArray({field:H,array:U,context:M})):H.selectionSet&&null!=U&&(U=Oe(h.executeSelectionSet({selectionSet:H.selectionSet,objectOrReference:U,context:M}))),void 0!==U&&ie.push(((F={})[ue]=U,F)),M.clientOnly=ye,(0,c.kG)(M.path.pop()===ue)}else{var Ce=(0,u.hi)(H,M.fragmentMap);Ce&&Z.fragmentMatches(Ce,Te)&&Ce.selectionSet.selections.forEach(Re.add,Re)}}),_e.result=(0,m.bw)(ie),this.knownResults.set(_e.result,b),_e},ee.prototype.execSubSelectedArrayImpl=function(x){var G,h=this,b=x.field,T=x.array,M=x.context;function Z(se,ie){return se.missing&&(G=G||[]).push.apply(G,se.missing),(0,c.kG)(M.path.pop()===ie),se.result}return b.selectionSet&&(T=T.filter(M.store.canRead)),{result:T=T.map(function(se,ie){return null===se?null:(M.path.push(ie),Array.isArray(se)?Z(h.executeSubSelectedArray({field:b,array:se,context:M}),ie):b.selectionSet?Z(h.executeSelectionSet({selectionSet:b.selectionSet,objectOrReference:se,context:M}),ie):((0,c.kG)(M.path.pop()===ie),se))}),missing:G}},ee}(),Q=function(){function ee(x,h){this.cache=x,this.reader=h}return ee.prototype.writeToStore=function(x){var h=x.query,b=x.result,T=x.dataId,M=x.store,G=x.variables,Z=(0,o.$H)(h),se=(0,_.ig)();G=(0,s.pi)((0,s.pi)({},(0,o.O4)(Z)),G);var ie=this.processSelectionSet({result:b||Object.create(null),dataId:T,selectionSet:Z.selectionSet,mergeTree:{map:new Map},context:{store:M,written:Object.create(null),merge:function(_e,Te){return se.merge(_e,Te)},variables:G,varString:JSON.stringify(G),fragmentMap:(0,u.F)((0,o.kU)(h))}});if(!(0,r.Yk)(ie))throw new c.ej(7);return M.retain(ie.__ref),ie},ee.prototype.processSelectionSet=function(x){var h=this,b=x.dataId,T=x.result,M=x.selectionSet,G=x.context,Z=x.mergeTree,se=this.cache.policies,ie=se.identify(T,M,G.fragmentMap),Te=ie[1];if("string"==typeof(b=b||ie[0])){var xe=G.written[b]||(G.written[b]=[]),Oe=(0,r.kQ)(b);if(xe.indexOf(M)>=0||(xe.push(M),this.reader&&this.reader.isFresh(T,Oe,M,G)))return Oe}var Re=Object.create(null);Te&&(Re=G.merge(Re,Te));var H=b&&se.rootTypenamesById[b]||(0,r.qw)(T,M,G.fragmentMap)||b&&G.store.get(b,"__typename");"string"==typeof H&&(Re.__typename=H);var F=new Set(M.selections);if(F.forEach(function(z){var le;if((0,v.LZ)(z,G.variables))if((0,r.My)(z)){var ve=(0,r.u2)(z),Se=T[ve];if(typeof Se<"u"){var Ie=se.getStoreFieldName({typename:H,fieldName:z.name.value,field:z,variables:G.variables}),Me=ae(Z,Ie),Ke=h.processFieldValue(Se,z,G,Me),Ze=z.selectionSet&&G.store.getFieldValue(Ke,"__typename")||void 0,$e=se.getMergeFunction(H,z.name.value,Ze);$e?Me.info={field:z,typename:H,merge:$e}:me(Z,Ie),Re=G.merge(Re,((le={})[Ie]=Ke,le))}else if(se.usingPossibleTypes&&!(0,v.FS)(["defer","client"],z))throw new c.ej(8)}else{var gt=(0,u.hi)(z,G.fragmentMap);gt&&se.fragmentMatches(gt,H,T,G.variables)&>.selectionSet.selections.forEach(F.add,F)}}),"string"==typeof b){var U=(0,r.kQ)(b);return Z.map.size&&(Re=this.applyMerges(Z,U,Re,G)),G.store.merge(b,Re),U}return Re},ee.prototype.processFieldValue=function(x,h,b,T){var M=this;return h.selectionSet&&null!==x?Array.isArray(x)?x.map(function(G,Z){var se=M.processFieldValue(G,h,b,ae(T,Z));return me(T,Z),se}):this.processSelectionSet({result:x,selectionSet:h.selectionSet,context:b,mergeTree:T}):x},ee.prototype.applyMerges=function(x,h,b,T,M){var G,Z=this;if(x.map.size&&!(0,r.Yk)(b)){var se=Array.isArray(b)||!(0,r.Yk)(h)&&!(0,_.j)(h)?void 0:h,ie=b;se&&!M&&(M=[(0,r.Yk)(se)?se.__ref:se]);var _e,Te=function(xe,Oe){return Array.isArray(xe)?"number"==typeof Oe?xe[Oe]:void 0:T.store.getFieldValue(xe,String(Oe))};x.map.forEach(function(xe,Oe){M&&M.push(Oe);var Re=Te(se,Oe),H=Te(ie,Oe),F=Z.applyMerges(xe,Re,H,T,M);F!==H&&(_e=_e||new Map).set(Oe,F),M&&(0,c.kG)(M.pop()===Oe)}),_e&&(b=Array.isArray(ie)?ie.slice(0):(0,s.pi)({},ie),_e.forEach(function(xe,Oe){b[Oe]=xe}))}return x.info?this.cache.policies.runMergeFunction(h,b,x.info,T,M&&(G=T.store).getStorage.apply(G,M)):b},ee}(),$=[];function ae(ee,x){var h=ee.map;return h.has(x)||h.set(x,$.pop()||{map:new Map}),h.get(x)}function me(ee,x){var h=ee.map,b=h.get(x);b&&!b.info&&!b.map.size&&($.push(b),h.delete(x))}var oe=d(31625),j=d(99610),re={dataIdFromObject:j.u,addTypename:!0,resultCaching:!0,typePolicies:{}},J=function(ee){function x(h){void 0===h&&(h={});var b=ee.call(this)||this;return b.watches=new Set,b.typenameDocumentCache=new Map,b.makeVar=oe.QS,b.txCount=0,b.maybeBroadcastWatch=(0,S.re)(function(T,M){return b.broadcastWatch.call(b,T,!!M)},{makeCacheKey:function(T){var M=T.optimistic?b.optimisticData:b.data;if(y(M))return M.makeCacheKey(T.query,T.callback,JSON.stringify({optimistic:T.optimistic,rootId:T.rootId,variables:T.variables}))}}),b.watchDep=(0,S.dP)(),b.config=(0,s.pi)((0,s.pi)({},re),h),b.addTypename=!!b.config.addTypename,b.policies=new j.r({cache:b,dataIdFromObject:b.config.dataIdFromObject,possibleTypes:b.config.possibleTypes,typePolicies:b.config.typePolicies}),b.data=new q.Root({policies:b.policies,resultCaching:b.config.resultCaching}),b.optimisticData=b.data,b.storeWriter=new Q(b,b.storeReader=new N({cache:b,addTypename:b.addTypename})),b}return(0,s.ZT)(x,ee),x.prototype.restore=function(h){return h&&this.data.replace(h),this},x.prototype.extract=function(h){return void 0===h&&(h=!1),(h?this.optimisticData:this.data).extract()},x.prototype.read=function(h){var b=h.returnPartialData,T=void 0!==b&&b;try{return this.storeReader.diffQueryAgainstStore({store:h.optimistic?this.optimisticData:this.data,query:h.query,variables:h.variables,rootId:h.rootId,config:this.config,returnPartialData:T}).result||null}catch(M){if(M instanceof t.y)return null;throw M}},x.prototype.write=function(h){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:h.query,result:h.result,dataId:h.dataId,variables:h.variables})}finally{!--this.txCount&&!1!==h.broadcast&&this.broadcastWatches()}},x.prototype.modify=function(h){if(_.RI.call(h,"id")&&!h.id)return!1;var b=h.optimistic?this.optimisticData:this.data;try{return++this.txCount,b.modify(h.id||"ROOT_QUERY",h.fields)}finally{!--this.txCount&&!1!==h.broadcast&&this.broadcastWatches()}},x.prototype.diff=function(h){return this.storeReader.diffQueryAgainstStore({store:h.optimistic?this.optimisticData:this.data,rootId:h.id||"ROOT_QUERY",query:h.query,variables:h.variables,returnPartialData:h.returnPartialData,config:this.config})},x.prototype.watch=function(h){var b=this;return this.watches.size||(0,oe._v)(this),this.watches.add(h),h.immediate&&this.maybeBroadcastWatch(h),function(){b.watches.delete(h)&&!b.watches.size&&(0,oe.li)(b),b.watchDep.dirty(h),b.maybeBroadcastWatch.forget(h)}},x.prototype.gc=function(){return this.optimisticData.gc()},x.prototype.retain=function(h,b){return(b?this.optimisticData:this.data).retain(h)},x.prototype.release=function(h,b){return(b?this.optimisticData:this.data).release(h)},x.prototype.identify=function(h){return(0,r.Yk)(h)?h.__ref:this.policies.identify(h)[0]},x.prototype.evict=function(h){if(!h.id){if(_.RI.call(h,"id"))return!1;h=(0,s.pi)((0,s.pi)({},h),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(h)}finally{!--this.txCount&&!1!==h.broadcast&&this.broadcastWatches()}},x.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},x.prototype.removeOptimistic=function(h){var b=this.optimisticData.removeLayer(h);b!==this.optimisticData&&(this.optimisticData=b,this.broadcastWatches())},x.prototype.performTransaction=function(h,b){var T=this,M=function(Z){var ie=T.data,_e=T.optimisticData;++T.txCount,Z&&(T.data=T.optimisticData=Z);try{h(T)}finally{--T.txCount,T.data=ie,T.optimisticData=_e}},G=!1;"string"==typeof b?(this.optimisticData=this.optimisticData.addLayer(b,M),G=!0):null===b?M(this.data):M(),this.broadcastWatches(G)},x.prototype.transformDocument=function(h){if(this.addTypename){var b=this.typenameDocumentCache.get(h);return b||(b=(0,n.Gw)(h),this.typenameDocumentCache.set(h,b),this.typenameDocumentCache.set(b,b)),b}return h},x.prototype.broadcastWatches=function(h){var b=this;this.txCount||this.watches.forEach(function(T){return b.maybeBroadcastWatch(T,h)})},x.prototype.broadcastWatch=function(h,b){this.watchDep.dirty(h),this.watchDep(h);var T=this.diff({query:h.query,variables:h.variables,optimistic:h.optimistic});h.optimistic&&b&&(T.fromOptimisticTransaction=!0),h.callback(T)},x}(l.R)},99610:(ne,L,d)=>{"use strict";d.d(L,{r:()=>D,u:()=>v});var s=d(9376),S=d(95629),l=d(71177),t=d(35476),r=d(55144),n=d(2454),c=d(14363),o=d(31625);function u(W){return void 0!==W.args?W.args:W.field?(0,t.NC)(W.field,W.variables):null}var v=function(W,O){var w=W.__typename,f=W.id,y=W._id;if("string"==typeof w&&(O&&(O.keyObject=void 0!==f?{id:f}:void 0!==y?{_id:y}:void 0),void 0===f&&(f=y),void 0!==f))return w+":"+("number"==typeof f||"string"==typeof f?f:JSON.stringify(f))},m=function(){},E=function(W,O){return O.fieldName},R=function(W,O,w){return(0,w.mergeObjects)(W,O)},P=function(W,O){return O},D=function(){function W(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,s.pi)({dataIdFromObject:v},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 W.prototype.identify=function(O,w,f){var y=w&&f?(0,t.qw)(O,w,f):O.__typename;if(y===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var N,p={typename:y,selectionSet:w,fragmentMap:f},V=y&&this.getTypePolicy(y),Q=V&&V.keyFn||this.config.dataIdFromObject;Q;){var $=Q(O,p);if(!Array.isArray($)){N=$;break}Q=B($)}return N=N?String(N):void 0,p.keyObject?[N,p.keyObject]:[N]},W.prototype.addTypePolicies=function(O){var w=this;Object.keys(O).forEach(function(f){var y=O[f],p=y.queryType,N=y.mutationType,V=y.subscriptionType,Q=(0,s._T)(y,["queryType","mutationType","subscriptionType"]);p&&w.setRootTypename("Query",f),N&&w.setRootTypename("Mutation",f),V&&w.setRootTypename("Subscription",f),c.RI.call(w.toBeAdded,f)?w.toBeAdded[f].push(Q):w.toBeAdded[f]=[Q]})},W.prototype.updateTypePolicy=function(O,w){var f=this,y=this.getTypePolicy(O),p=w.keyFields,N=w.fields;function V(Q,$){Q.merge="function"==typeof $?$:!0===$?R:!1===$?P:Q.merge}V(y,w.merge),y.keyFn=!1===p?m:Array.isArray(p)?B(p):"function"==typeof p?p:y.keyFn,N&&Object.keys(N).forEach(function(Q){var $=f.getFieldPolicy(O,Q,!0),ae=N[Q];if("function"==typeof ae)$.read=ae;else{var me=ae.keyArgs,X=ae.read,he=ae.merge;$.keyFn=!1===me?E:Array.isArray(me)?I(me):"function"==typeof me?me:$.keyFn,"function"==typeof X&&($.read=X),V($,he)}$.read&&$.merge&&($.keyFn=$.keyFn||E)})},W.prototype.setRootTypename=function(O,w){void 0===w&&(w=O);var f="ROOT_"+O.toUpperCase(),y=this.rootTypenamesById[f];w!==y&&((0,l.kG)(!y||y===O,1),y&&delete this.rootIdsByTypename[y],this.rootIdsByTypename[w]=f,this.rootTypenamesById[f]=w)},W.prototype.addPossibleTypes=function(O){var w=this;this.usingPossibleTypes=!0,Object.keys(O).forEach(function(f){w.getSupertypeSet(f,!0),O[f].forEach(function(y){w.getSupertypeSet(y,!0).add(f);var p=y.match(c.$O);(!p||p[0]!==y)&&w.fuzzySubtypes.set(y,new RegExp(y))})})},W.prototype.getTypePolicy=function(O){var w=this;if(!c.RI.call(this.typePolicies,O)){var f=this.typePolicies[O]=Object.create(null);f.fields=Object.create(null);var y=this.supertypeMap.get(O);y&&y.size&&y.forEach(function(N){var V=w.getTypePolicy(N),Q=V.fields,$=(0,s._T)(V,["fields"]);Object.assign(f,$),Object.assign(f.fields,Q)})}var p=this.toBeAdded[O];return p&&p.length&&p.splice(0).forEach(function(N){w.updateTypePolicy(O,N)}),this.typePolicies[O]},W.prototype.getFieldPolicy=function(O,w,f){if(O){var y=this.getTypePolicy(O).fields;return y[w]||f&&(y[w]=Object.create(null))}},W.prototype.getSupertypeSet=function(O,w){var f=this.supertypeMap.get(O);return!f&&w&&this.supertypeMap.set(O,f=new Set),f},W.prototype.fragmentMatches=function(O,w,f,y){var p=this;if(!O.typeCondition)return!0;if(!w)return!1;var N=O.typeCondition.name.value;if(w===N)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(N))for(var V=this.getSupertypeSet(w,!0),Q=[V],$=function(oe){var j=p.getSupertypeSet(oe,!1);j&&j.size&&Q.indexOf(j)<0&&Q.push(j)},ae=!(!f||!this.fuzzySubtypes.size),X=0;X<Q.length;++X){var he=Q[X];if(he.has(N))return V.has(N)||V.add(N),!0;he.forEach($),ae&&X===Q.length-1&&(0,c.RC)(O.selectionSet,f,y)&&(ae=!1,this.fuzzySubtypes.forEach(function(oe,j){var re=w.match(oe);re&&re[0]===w&&$(j)}))}return!1},W.prototype.hasKeyArgs=function(O,w){var f=this.getFieldPolicy(O,w,!1);return!(!f||!f.keyFn)},W.prototype.getStoreFieldName=function(O){var p,w=O.typename,f=O.fieldName,y=this.getFieldPolicy(w,f,!1),N=y&&y.keyFn;if(N&&w)for(var V={typename:w,fieldName:f,field:O.field||null,variables:O.variables},Q=u(O);N;){var $=N(Q,V);if(!Array.isArray($)){p=$||f;break}N=I($)}return void 0===p&&(p=O.field?(0,t.vf)(O.field,O.variables):(0,t.PT)(f,u(O))),!1===p?f:f===(0,c.E_)(p)?p:f+":"+p},W.prototype.readField=function(O,w){var f=O.from;if(f&&(O.field||O.fieldName)){if(void 0===O.typename){var p=w.store.getFieldValue(f,"__typename");p&&(O.typename=p)}var N=this.getStoreFieldName(O),V=(0,c.E_)(N),Q=w.store.getFieldValue(f,N),$=this.getFieldPolicy(O.typename,V,!1),ae=$&&$.read;if(ae){var me=A(this,f,O,w,w.store.getStorage((0,t.Yk)(f)?f.__ref:f,N));return o.ab.withValue(this.cache,ae,[Q,me])}return Q}},W.prototype.getMergeFunction=function(O,w,f){var y=this.getFieldPolicy(O,w,!1),p=y&&y.merge;return!p&&f&&(p=(y=this.getTypePolicy(f))&&y.merge),p},W.prototype.runMergeFunction=function(O,w,f,y,p){var N=f.field,V=f.typename,Q=f.merge;return Q===R?_(y.store.getFieldValue)(O,w):Q===P?w:Q(O,w,A(this,void 0,{typename:V,fieldName:N.name.value,field:N,variables:y.variables},y,p||Object.create(null)))},W}();function A(W,O,w,f,y){var p=W.getStoreFieldName(w),N=(0,c.E_)(p),V=w.variables||f.variables,Q=f.store,$=Q.getFieldValue,ae=Q.toReference,me=Q.canRead;return{args:u(w),field:w.field||null,fieldName:N,storeFieldName:p,variables:V,isReference:t.Yk,toReference:ae,storage:y,cache:W.cache,canRead:me,readField:function(X,he){var oe="string"==typeof X?{fieldName:X,from:he}:(0,s.pi)({},X);return void 0===oe.from&&(oe.from=O),void 0===oe.variables&&(oe.variables=V),W.readField(oe,f)},mergeObjects:_($)}}function _(W){return function(w,f){if(Array.isArray(w)||Array.isArray(f))throw new l.ej(2);if(w&&"object"==typeof w&&f&&"object"==typeof f){var y=W(w,"__typename"),p=W(f,"__typename");return y&&p&&y!==p||!(0,c.j)(w)||!(0,c.j)(f)?f:(0,s.pi)((0,s.pi)({},w),f)}return f}}function I(W){return function(O,w){return O?w.fieldName+":"+JSON.stringify(q(O,W,!1)):w.fieldName}}function B(W){var O=new S.Gl(r.m);return function(w,f){var y;if(f.selectionSet&&f.fragmentMap){var p=O.lookupArray([f.selectionSet,f.fragmentMap]);y=p.aliasMap||(p.aliasMap=K(f.selectionSet,f.fragmentMap))}var N=f.keyObject=q(w,W,!0,y);return f.typename+":"+JSON.stringify(N)}}function K(W,O){var w=Object.create(null),f=new Set([W]);return f.forEach(function(y){y.selections.forEach(function(p){if((0,t.My)(p)){if(p.alias){var N=p.alias.value,V=p.name.value;V!==N&&((w.aliases||(w.aliases=Object.create(null)))[V]=N)}p.selectionSet&&((w.subsets||(w.subsets=Object.create(null)))[p.name.value]=K(p.selectionSet,O))}else{var ae=(0,n.hi)(p,O);ae&&f.add(ae.selectionSet)}})}),w}function q(W,O,w,f){var p,y=Object.create(null);return O.forEach(function(N){if(Array.isArray(N)){if("string"==typeof p){var V=f&&f.subsets;y[p]=q(W[p],N,w,V&&V[p])}}else{var $=f&&f.aliases,ae=$&&$[N]||N;c.RI.call(W,ae)?y[p=N]=W[ae]:((0,l.kG)(!w,3),p=void 0)}}),y}},31625:(ne,L,d)=>{"use strict";d.d(L,{QS:()=>o,_v:()=>c,ab:()=>l,li:()=>n});var s=d(95629),l=new(d(66072).g7),t=new WeakMap;function r(v){var m=t.get(v);return m||t.set(v,m={vars:new Set,dep:(0,s.dP)()}),m}function n(v){r(v).vars.forEach(function(m){return m.forgetCache(v)})}function c(v){r(v).vars.forEach(function(m){return m.attachCache(v)})}function o(v){var m=new Set,E=new Set,R=function(D){if(arguments.length>0){if(v!==D){v=D,m.forEach(function(I){r(I).dep.dirty(R),u(I)});var A=Array.from(E);E.clear(),A.forEach(function(I){return I(v)})}}else{var _=l.getValue();_&&(P(_),r(_).dep(R))}return v};R.onNextChange=function(D){return E.add(D),function(){E.delete(D)}};var P=R.attachCache=function(D){return m.add(D),r(D).vars.add(R),R};return R.forgetCache=function(D){return m.delete(D)},R}function u(v){v.broadcastWatches&&v.broadcastWatches()}},27393:()=>{},82699:(ne,L,d)=>{"use strict";d.d(L,{f:()=>ee,J:()=>J});var s=d(9376),S=d(71177),l=d(91093),t=d(61283),r=d(67447),c=d(65982),o=d(37117),u=d(55144);function v(x){return x.errors&&x.errors.length>0||!1}var m=d(88372),E=d(72722),R=d(98351),P=d(31323),D=d(31468),A=d.n(D),_=d(69771),I=d(70799);function B(x){return x&&"function"==typeof x.then}var K=function(x){function h(b){var T=x.call(this,function(M){return T.addObserver(M),function(){return T.removeObserver(M)}})||this;return T.observers=new Set,T.addCount=0,T.promise=new Promise(function(M,G){T.resolve=M,T.reject=G}),T.handlers={next:function(M){null!==T.sub&&(T.latest=["next",M],(0,_.p)(T.observers,"next",M))},error:function(M){var G=T.sub;null!==G&&(G&&Promise.resolve().then(function(){return G.unsubscribe()}),T.sub=null,T.latest=["error",M],T.reject(M),(0,_.p)(T.observers,"error",M))},complete:function(){if(null!==T.sub){var M=T.sources.shift();M?B(M)?M.then(function(G){return T.sub=G.subscribe(T.handlers)}):T.sub=M.subscribe(T.handlers):(T.sub=null,T.latest&&"next"===T.latest[0]?T.resolve(T.latest[1]):T.resolve(),(0,_.p)(T.observers,"complete"))}}},T.cancel=function(M){T.reject(M),T.sources=[],T.handlers.complete()},T.promise.catch(function(M){}),"function"==typeof b&&(b=[new(A())(b)]),B(b)?b.then(function(M){return T.start(M)},T.handlers.error):T.start(b),T}return(0,s.ZT)(h,x),h.prototype.start=function(b){void 0===this.sub&&(this.sources=Array.from(b),this.handlers.complete())},h.prototype.deliverLastMessage=function(b){if(this.latest){var T=this.latest[0],M=b[T];M&&M.call(b,this.latest[1]),null===this.sub&&"next"===T&&b.complete&&b.complete()}},h.prototype.addObserver=function(b){this.observers.has(b)||(this.deliverLastMessage(b),this.observers.add(b),++this.addCount)},h.prototype.removeObserver=function(b,T){this.observers.delete(b)&&--this.addCount<1&&!T&&this.handlers.error(new Error("Observable cancelled prematurely"))},h.prototype.cleanup=function(b){var T=this,M=!1,G=function(){M||(M=!0,T.observers.delete(Z),b())},Z={next:G,error:G,complete:G},se=this.addCount;this.addObserver(Z),this.addCount=se},h}(A());function q(x,h,b){return new(A())(function(T){var M=T.next,G=T.error,Z=T.complete,se=0,ie=!1,_e={then:function(Re){return new Promise(function(H){return H(Re())})}};function Te(Re,H){return Re?function(F){++se;var U=function(){return Re(F)};_e=_e.then(U,U).then(function(ue){--se,M&&M.call(T,ue),ie&&xe.complete()},function(ue){throw--se,ue}).catch(function(ue){G&&G.call(T,ue)})}:function(F){return H&&H.call(T,F)}}var xe={next:Te(h,M),error:Te(b,G),complete:function(){ie=!0,se||Z&&Z.call(T)}},Oe=x.subscribe(xe);return function(){return Oe.unsubscribe()}})}(0,I.D)(K);var W=d(13040),O=d(32088),w=d(11202),f=d(86729),y=d(91917),p=d(2454),N=d(35476),V=d(31625),Q=function(){function x(h){var T=h.client,M=h.resolvers,G=h.fragmentMatcher;this.cache=h.cache,T&&(this.client=T),M&&this.addResolvers(M),G&&this.setFragmentMatcher(G)}return x.prototype.addResolvers=function(h){var b=this;this.resolvers=this.resolvers||{},Array.isArray(h)?h.forEach(function(T){b.resolvers=(0,y.Ee)(b.resolvers,T)}):this.resolvers=(0,y.Ee)(this.resolvers,h)},x.prototype.setResolvers=function(h){this.resolvers={},this.addResolvers(h)},x.prototype.getResolvers=function(){return this.resolvers||{}},x.prototype.runResolvers=function(h){var b=h.document,T=h.remoteResult,M=h.context,G=h.variables,Z=h.onlyRunForcedResolvers,se=void 0!==Z&&Z;return(0,s.mG)(this,void 0,void 0,function(){return(0,s.Jh)(this,function(ie){return b?[2,this.resolveDocument(b,T.data,M,G,this.fragmentMatcher,se).then(function(_e){return(0,s.pi)((0,s.pi)({},T),{data:_e.result})})]:[2,T]})})},x.prototype.setFragmentMatcher=function(h){this.fragmentMatcher=h},x.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},x.prototype.clientQuery=function(h){return(0,P.FS)(["client"],h)&&this.resolvers?h:null},x.prototype.serverQuery=function(h){return(0,R.ob)(h)},x.prototype.prepareContext=function(h){var b=this.cache;return(0,s.pi)((0,s.pi)({},h),{cache:b,getCacheKey:function(T){return b.identify(T)}})},x.prototype.addExportedVariables=function(h,b,T){return void 0===b&&(b={}),void 0===T&&(T={}),(0,s.mG)(this,void 0,void 0,function(){return(0,s.Jh)(this,function(M){return h?[2,this.resolveDocument(h,this.buildRootValueFromCache(h,b)||{},this.prepareContext(T),b).then(function(G){return(0,s.pi)((0,s.pi)({},b),G.exportedVariables)})]:[2,(0,s.pi)({},b)]})})},x.prototype.shouldForceResolvers=function(h){var b=!1;return(0,f.Vn)(h,{Directive:{enter:function(T){if("client"===T.name.value&&T.arguments&&(b=T.arguments.some(function(M){return"always"===M.name.value&&"BooleanValue"===M.value.kind&&!0===M.value.value})))return f.$_}}}),b},x.prototype.buildRootValueFromCache=function(h,b){return this.cache.diff({query:(0,R.aL)(h),variables:b,returnPartialData:!0,optimistic:!1}).result},x.prototype.resolveDocument=function(h,b,T,M,G,Z){return void 0===T&&(T={}),void 0===M&&(M={}),void 0===G&&(G=function(){return!0}),void 0===Z&&(Z=!1),(0,s.mG)(this,void 0,void 0,function(){var se,ie,_e,Te,xe,Oe,Re,H,F;return(0,s.Jh)(this,function(U){return se=(0,E.p$)(h),ie=(0,E.kU)(h),_e=(0,p.F)(ie),xe=(Te=se.operation)?Te.charAt(0).toUpperCase()+Te.slice(1):"Query",Re=(Oe=this).cache,H=Oe.client,F={fragmentMap:_e,context:(0,s.pi)((0,s.pi)({},T),{cache:Re,client:H}),variables:M,fragmentMatcher:G,defaultOperationType:xe,exportedVariables:{},onlyRunForcedResolvers:Z},[2,this.resolveSelectionSet(se.selectionSet,b,F).then(function(ue){return{result:ue,exportedVariables:F.exportedVariables}})]})})},x.prototype.resolveSelectionSet=function(h,b,T){return(0,s.mG)(this,void 0,void 0,function(){var M,G,Z,se,_e=this;return(0,s.Jh)(this,function(Te){return M=T.fragmentMap,G=T.context,Z=T.variables,se=[b],[2,Promise.all(h.selections.map(function(xe){return(0,s.mG)(_e,void 0,void 0,function(){var Oe;return(0,s.Jh)(this,function(H){return(0,P.LZ)(xe,Z)?(0,N.My)(xe)?[2,this.resolveField(xe,b,T).then(function(F){var U;typeof F<"u"&&se.push(((U={})[(0,N.u2)(xe)]=F,U))})]:((0,N.Ao)(xe)?Oe=xe:(0,S.kG)(Oe=M[xe.name.value],11),Oe&&Oe.typeCondition&&T.fragmentMatcher(b,Oe.typeCondition.name.value,G)?[2,this.resolveSelectionSet(Oe.selectionSet,b,T).then(function(F){se.push(F)})]:[2]):[2]})})})).then(function(){return(0,y.bw)(se)})]})})},x.prototype.resolveField=function(h,b,T){return(0,s.mG)(this,void 0,void 0,function(){var M,G,Z,se,ie,_e,Te,xe,Oe,Re=this;return(0,s.Jh)(this,function(H){return M=T.variables,G=h.name.value,Z=(0,N.u2)(h),se=G!==Z,ie=b[Z]||b[G],_e=Promise.resolve(ie),(!T.onlyRunForcedResolvers||this.shouldForceResolvers(h))&&(Te=b.__typename||T.defaultOperationType,(xe=this.resolvers&&this.resolvers[Te])&&(Oe=xe[se?G:Z])&&(_e=Promise.resolve(V.ab.withValue(this.cache,Oe,[b,(0,N.NC)(h,M),T.context,{field:h,fragmentMap:T.fragmentMap}])))),[2,_e.then(function(F){return void 0===F&&(F=ie),h.directives&&h.directives.forEach(function(U){"export"===U.name.value&&U.arguments&&U.arguments.forEach(function(ue){"as"===ue.name.value&&"StringValue"===ue.value.kind&&(T.exportedVariables[ue.value.value]=F)})}),h.selectionSet&&null!=F?Array.isArray(F)?Re.resolveSubSelectedArray(h,F,T):h.selectionSet?Re.resolveSelectionSet(h.selectionSet,F,T):void 0:F})]})})},x.prototype.resolveSubSelectedArray=function(h,b,T){var M=this;return Promise.all(b.map(function(G){return null===G?null:Array.isArray(G)?M.resolveSubSelectedArray(h,G,T):h.selectionSet?M.resolveSelectionSet(h.selectionSet,G,T):void 0}))},x}(),$=new(u.m?WeakMap:Map);function ae(x,h){var b=x[h];"function"==typeof b&&(x[h]=function(){return $.set(x,($.get(x)+1)%1e15),b.apply(this,arguments)})}function me(x){x.notifyTimeout&&(clearTimeout(x.notifyTimeout),x.notifyTimeout=void 0)}var X=function(){function x(h){this.cache=h,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(h)||($.set(h,0),ae(h,"evict"),ae(h,"modify"),ae(h,"reset"))}return x.prototype.init=function(h){var b=h.networkStatus||w.I.loading;return this.variables&&this.networkStatus!==w.I.loading&&!(0,o.D)(this.variables,h.variables)&&(b=w.I.setVariables),(0,o.D)(h.variables,this.variables)||(this.diff=null),Object.assign(this,{document:h.document,variables:h.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:b}),h.observableQuery&&this.setObservableQuery(h.observableQuery),h.lastRequestId&&(this.lastRequestId=h.lastRequestId),this},x.prototype.reset=function(){me(this),this.diff=null,this.dirty=!1},x.prototype.getDiff=function(h){return void 0===h&&(h=this.variables),this.diff&&(0,o.D)(h,this.variables)?this.diff:(this.updateWatch(this.variables=h),this.diff=this.cache.diff({query:this.document,variables:h,returnPartialData:!0,optimistic:!0}))},x.prototype.setDiff=function(h){var b=this,T=this.diff;this.diff=h,!this.dirty&&(h&&h.result)!==(T&&T.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return b.notify()},0)))},x.prototype.setObservableQuery=function(h){var b=this;h!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=h,h?(h.queryInfo=this,this.listeners.add(this.oqListener=function(){b.getDiff().fromOptimisticTransaction?h.observe():h.reobserve()})):delete this.oqListener)},x.prototype.notify=function(){var h=this;me(this),this.shouldNotify()&&this.listeners.forEach(function(b){return b(h)}),this.dirty=!1},x.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,w.O)(this.networkStatus)&&this.observableQuery){var h=this.observableQuery.options.fetchPolicy;if("cache-only"!==h&&"cache-and-network"!==h)return!1}return!0},x.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),delete this.cancel,this.subscriptions.forEach(function(b){return b.unsubscribe()});var h=this.observableQuery;h&&h.stopPolling()}},x.prototype.cancel=function(){},x.prototype.updateWatch=function(h){var b=this;void 0===h&&(h=this.variables);var T=this.observableQuery;T&&"no-cache"===T.options.fetchPolicy||(!this.lastWatch||this.lastWatch.query!==this.document||!(0,o.D)(h,this.lastWatch.variables))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:h,optimistic:!0,callback:function(M){return b.setDiff(M)}}))},x.prototype.shouldWrite=function(h,b){var T=this.lastWrite;return!(T&&T.dmCount===$.get(this.cache)&&(0,o.D)(b,T.variables)&&(0,o.D)(h.data,T.result.data))},x.prototype.markResult=function(h,b,T){var M=this;this.graphQLErrors=(0,m.O)(h.errors)?h.errors:[],this.reset(),"no-cache"===b.fetchPolicy?this.diff={result:h.data,complete:!0}:!this.stopped&&T&&(he(h,b.errorPolicy)?this.cache.performTransaction(function(G){if(M.shouldWrite(h,b.variables))G.writeQuery({query:M.document,data:h.data,variables:b.variables}),M.lastWrite={result:h,variables:b.variables,dmCount:$.get(M.cache)};else if(M.diff&&M.diff.complete)return void(h.data=M.diff.result);var Z=G.diff({query:M.document,variables:b.variables,returnPartialData:!0,optimistic:!0});M.stopped||M.updateWatch(b.variables),M.diff=Z,Z.complete&&(h.data=Z.result)}):this.lastWrite=void 0)},x.prototype.markReady=function(){return this.networkError=null,this.networkStatus=w.I.ready},x.prototype.markError=function(h){return this.networkStatus=w.I.error,this.lastWrite=void 0,this.reset(),h.graphQLErrors&&(this.graphQLErrors=h.graphQLErrors),h.networkError&&(this.networkError=h.networkError),h},x}();function he(x,h){void 0===h&&(h="none");var b="ignore"===h||"all"===h,T=!v(x);return!T&&b&&x.data&&(T=!0),T}var oe=Object.prototype.hasOwnProperty,j=function(){function x(h){var b=h.cache,T=h.link,M=h.queryDeduplication,G=void 0!==M&&M,Z=h.onBroadcast,se=h.ssrMode,ie=void 0!==se&&se,_e=h.clientAwareness,Te=void 0===_e?{}:_e,xe=h.localState,Oe=h.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(u.m?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=b,this.link=T,this.queryDeduplication=G,this.clientAwareness=Te,this.localState=xe||new Q({cache:b}),this.ssrMode=ie,this.assumeImmutableResults=!!Oe,(this.onBroadcast=Z)&&(this.mutationStore=Object.create(null))}return x.prototype.stop=function(){var h=this;this.queries.forEach(function(b,T){h.stopQueryNoBroadcast(T)}),this.cancelPendingFetches(new S.ej(12))},x.prototype.cancelPendingFetches=function(h){this.fetchCancelFns.forEach(function(b){return b(h)}),this.fetchCancelFns.clear()},x.prototype.mutate=function(h){var b=h.mutation,T=h.variables,M=h.optimisticResponse,G=h.updateQueries,Z=h.refetchQueries,se=void 0===Z?[]:Z,ie=h.awaitRefetchQueries,_e=void 0!==ie&&ie,Te=h.update,xe=h.errorPolicy,Oe=void 0===xe?"none":xe,Re=h.fetchPolicy,H=h.context,F=void 0===H?{}:H;return(0,s.mG)(this,void 0,void 0,function(){var U,ue,ye;return(0,s.Jh)(this,function(Ce){switch(Ce.label){case 0:return(0,S.kG)(b,13),(0,S.kG)(!Re||"no-cache"===Re,14),U=this.generateMutationId(),b=this.transform(b).document,T=this.getVariables(b,T),this.transform(b).hasClientExports?[4,this.localState.addExportedVariables(b,T,F)]:[3,2];case 1:T=Ce.sent(),Ce.label=2;case 2:return ue=this.mutationStore&&(this.mutationStore[U]={mutation:b,variables:T,loading:!0,error:null}),M&&this.markMutationOptimistic(M,{mutationId:U,document:b,variables:T,errorPolicy:Oe,updateQueries:G,update:Te}),this.broadcastQueries(),ye=this,[2,new Promise(function(z,le){var ve,Se;ye.getObservableFromLink(b,(0,s.pi)((0,s.pi)({},F),{optimisticResponse:M}),T,!1).subscribe({next:function(Ie){if(v(Ie)&&"none"===Oe)Se=new W.c({graphQLErrors:Ie.errors});else{if(ue&&(ue.loading=!1,ue.error=null),"no-cache"!==Re)try{ye.markMutationResult({mutationId:U,result:Ie,document:b,variables:T,errorPolicy:Oe,updateQueries:G,update:Te})}catch(Me){return void(Se=new W.c({networkError:Me}))}ve=Ie}},error:function(Ie){ue&&(ue.loading=!1,ue.error=Ie),M&&ye.cache.removeOptimistic(U),ye.broadcastQueries(),le(new W.c({networkError:Ie}))},complete:function(){if(Se&&ue&&(ue.loading=!1,ue.error=Se),M&&ye.cache.removeOptimistic(U),ye.broadcastQueries(),Se)le(Se);else{"function"==typeof se&&(se=se(ve));var Ie=[];(0,m.O)(se)&&se.forEach(function(Me){if("string"==typeof Me)ye.queries.forEach(function(Ze){var $e=Ze.observableQuery;$e&&$e.hasObservers()&&$e.queryName===Me&&Ie.push($e.refetch())});else{var Ke={query:Me.query,variables:Me.variables,fetchPolicy:"network-only"};Me.context&&(Ke.context=Me.context),Ie.push(ye.query(Ke))}}),Promise.all(_e?Ie:[]).then(function(){"ignore"===Oe&&ve&&v(ve)&&delete ve.errors,z(ve)},le)}}})})]}})})},x.prototype.markMutationResult=function(h,b){var T=this;if(void 0===b&&(b=this.cache),he(h.result,h.errorPolicy)){var M=[{result:h.result.data,dataId:"ROOT_MUTATION",query:h.document,variables:h.variables}],G=h.updateQueries;G&&this.queries.forEach(function(Z,se){var ie=Z.observableQuery,_e=ie&&ie.queryName;if(_e&&oe.call(G,_e)){var Te=G[_e],xe=T.queries.get(se),Oe=xe.document,Re=xe.variables,H=b.diff({query:Oe,variables:Re,returnPartialData:!0,optimistic:!1}),F=H.result;if(H.complete&&F){var ue=Te(F,{mutationResult:h.result,queryName:Oe&&(0,E.rY)(Oe)||void 0,queryVariables:Re});ue&&M.push({result:ue,dataId:"ROOT_QUERY",query:Oe,variables:Re})}}}),b.performTransaction(function(Z){M.forEach(function(ie){return Z.write(ie)});var se=h.update;se&&se(Z,h.result)},null)}},x.prototype.markMutationOptimistic=function(h,b){var T=this,M="function"==typeof h?h(b.variables):h;return this.cache.recordOptimisticTransaction(function(G){try{T.markMutationResult((0,s.pi)((0,s.pi)({},b),{result:{data:M}}),G)}catch{}},b.mutationId)},x.prototype.fetchQuery=function(h,b,T){return this.fetchQueryObservable(h,b,T).promise},x.prototype.getQueryStore=function(){var h=Object.create(null);return this.queries.forEach(function(b,T){h[T]={variables:b.variables,networkStatus:b.networkStatus,networkError:b.networkError,graphQLErrors:b.graphQLErrors}}),h},x.prototype.resetErrors=function(h){var b=this.queries.get(h);b&&(b.networkError=void 0,b.graphQLErrors=[])},x.prototype.transform=function(h){var b=this.transformCache;if(!b.has(h)){var T=this.cache.transformDocument(h),M=(0,R.Fo)(this.cache.transformForLink(T)),G=this.localState.clientQuery(T),Z=M&&this.localState.serverQuery(M),se={document:T,hasClientExports:(0,P.mj)(T),hasForcedResolvers:this.localState.shouldForceResolvers(T),clientQuery:G,serverQuery:Z,defaultVars:(0,E.O4)((0,E.$H)(T))},ie=function(_e){_e&&!b.has(_e)&&b.set(_e,se)};ie(h),ie(T),ie(G),ie(Z)}return b.get(h)},x.prototype.getVariables=function(h,b){return(0,s.pi)((0,s.pi)({},this.transform(h).defaultVars),b)},x.prototype.watchQuery=function(h){typeof(h=(0,s.pi)((0,s.pi)({},h),{variables:this.getVariables(h.query,h.variables)})).notifyOnNetworkStatusChange>"u"&&(h.notifyOnNetworkStatusChange=!1);var b=new X(this.cache),T=new O.u({queryManager:this,queryInfo:b,options:h});return this.queries.set(T.queryId,b),b.init({document:h.query,observableQuery:T,variables:h.variables}),T},x.prototype.query=function(h){var b=this;(0,S.kG)(h.query,15),(0,S.kG)("Document"===h.query.kind,16),(0,S.kG)(!h.returnPartialData,17),(0,S.kG)(!h.pollInterval,18);var T=this.generateQueryId();return this.fetchQuery(T,h).finally(function(){return b.stopQuery(T)})},x.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},x.prototype.generateRequestId=function(){return this.requestIdCounter++},x.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},x.prototype.stopQueryInStore=function(h){this.stopQueryInStoreNoBroadcast(h),this.broadcastQueries()},x.prototype.stopQueryInStoreNoBroadcast=function(h){var b=this.queries.get(h);b&&b.stop()},x.prototype.clearStore=function(){return this.cancelPendingFetches(new S.ej(19)),this.queries.forEach(function(h){h.observableQuery?h.networkStatus=w.I.loading:h.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},x.prototype.resetStore=function(){var h=this;return this.clearStore().then(function(){return h.reFetchObservableQueries()})},x.prototype.reFetchObservableQueries=function(h){var b=this;void 0===h&&(h=!1);var T=[];return this.queries.forEach(function(M,G){var Z=M.observableQuery;if(Z&&Z.hasObservers()){var se=Z.options.fetchPolicy;Z.resetLastResults(),"cache-only"!==se&&(h||"standby"!==se)&&T.push(Z.refetch()),b.getQuery(G).setDiff(null)}}),this.broadcastQueries(),Promise.all(T)},x.prototype.setObservableQuery=function(h){this.getQuery(h.queryId).setObservableQuery(h)},x.prototype.startGraphQLSubscription=function(h){var b=this,T=h.query,M=h.fetchPolicy,G=h.errorPolicy,Z=h.variables,se=h.context,ie=void 0===se?{}:se;T=this.transform(T).document,Z=this.getVariables(T,Z);var _e=function(xe){return b.getObservableFromLink(T,ie,xe,!1).map(function(Oe){if("no-cache"!==M&&(he(Oe,G)&&b.cache.write({query:T,result:Oe.data,dataId:"ROOT_SUBSCRIPTION",variables:xe}),b.broadcastQueries()),v(Oe))throw new W.c({graphQLErrors:Oe.errors});return Oe})};if(this.transform(T).hasClientExports){var Te=this.localState.addExportedVariables(T,Z,ie).then(_e);return new(A())(function(xe){var Oe=null;return Te.then(function(Re){return Oe=Re.subscribe(xe)},xe.error),function(){return Oe&&Oe.unsubscribe()}})}return _e(Z)},x.prototype.stopQuery=function(h){this.stopQueryNoBroadcast(h),this.broadcastQueries()},x.prototype.stopQueryNoBroadcast=function(h){this.stopQueryInStoreNoBroadcast(h),this.removeQuery(h)},x.prototype.removeQuery=function(h){this.fetchCancelFns.delete(h),this.getQuery(h).stop(),this.queries.delete(h)},x.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(h){return h.notify()})},x.prototype.getLocalState=function(){return this.localState},x.prototype.getObservableFromLink=function(h,b,T,M){var Z,G=this;void 0===M&&(M=null!==(Z=b?.queryDeduplication)&&void 0!==Z?Z:this.queryDeduplication);var se,ie=this.transform(h).serverQuery;if(ie){var Te=this.inFlightLinkObservables,xe=this.link,Oe={query:ie,variables:T,operationName:(0,E.rY)(ie)||void 0,context:this.prepareContext((0,s.pi)((0,s.pi)({},b),{forceFetch:!M}))};if(b=Oe.context,M){var Re=Te.get(ie)||new Map;Te.set(ie,Re);var H=JSON.stringify(T);if(!(se=Re.get(H))){var F=new K([(0,t.h)(xe,Oe)]);Re.set(H,se=F),F.cleanup(function(){Re.delete(H)&&Re.size<1&&Te.delete(ie)})}}else se=new K([(0,t.h)(xe,Oe)])}else se=new K([A().of({data:{}})]),b=this.prepareContext(b);var U=this.transform(h).clientQuery;return U&&(se=q(se,function(ue){return G.localState.runResolvers({document:U,remoteResult:ue,context:b,variables:T})})),se},x.prototype.getResultsFromLink=function(h,b,T){var M=h.lastRequestId=this.generateRequestId();return q(this.getObservableFromLink(h.document,T.context,T.variables),function(G){var Z=(0,m.O)(G.errors);if(M>=h.lastRequestId){if(Z&&"none"===T.errorPolicy)throw h.markError(new W.c({graphQLErrors:G.errors}));h.markResult(G,T,b),h.markReady()}var se={data:G.data,loading:!1,networkStatus:h.networkStatus||w.I.ready};return Z&&"ignore"!==T.errorPolicy&&(se.errors=G.errors),se},function(G){var Z=(0,W.M)(G)?G:new W.c({networkError:G});throw M>=h.lastRequestId&&h.markError(Z),Z})},x.prototype.fetchQueryObservable=function(h,b,T){var M=this;void 0===T&&(T=w.I.loading);var G=this.transform(b.query).document,Z=this.getVariables(G,b.variables),se=this.getQuery(h),ie=se.networkStatus,_e=b.fetchPolicy,Te=void 0===_e?"cache-first":_e,xe=b.errorPolicy,Oe=void 0===xe?"none":xe,Re=b.returnPartialData,H=void 0!==Re&&Re,F=b.notifyOnNetworkStatusChange,U=void 0!==F&&F,ue=b.context,ye=void 0===ue?{}:ue;("cache-first"===Te||"cache-and-network"===Te||"network-only"===Te||"no-cache"===Te)&&U&&"number"==typeof ie&&ie!==T&&(0,w.O)(T)&&("cache-first"!==Te&&(Te="cache-and-network"),H=!0);var z=Object.assign({},b,{query:G,variables:Z,fetchPolicy:Te,errorPolicy:Oe,returnPartialData:H,notifyOnNetworkStatusChange:U,context:ye}),le=function(Se){return z.variables=Se,M.fetchQueryByPolicy(se,z,T)};this.fetchCancelFns.set(h,function(Se){Promise.resolve().then(function(){return ve.cancel(Se)})});var ve=new K(this.transform(z.query).hasClientExports?this.localState.addExportedVariables(z.query,z.variables,z.context).then(le):le(z.variables));return ve.cleanup(function(){M.fetchCancelFns.delete(h);var Se=b.nextFetchPolicy;Se&&(b.nextFetchPolicy=void 0,b.fetchPolicy="function"==typeof Se?Se.call(b,b.fetchPolicy||"cache-first"):Se)}),ve},x.prototype.fetchQueryByPolicy=function(h,b,T){var M=this,G=b.query,Z=b.variables,se=b.fetchPolicy,ie=b.errorPolicy,_e=b.returnPartialData,Te=b.context;h.init({document:G,variables:Z,networkStatus:T});var xe=function(){return h.getDiff(Z)},Oe=function(F,U){void 0===U&&(U=h.networkStatus||w.I.loading);var ue=F.result,ye=function(Ce){return A().of((0,s.pi)({data:Ce,loading:(0,w.O)(U),networkStatus:U},F.complete?null:{partial:!0}))};return M.transform(G).hasForcedResolvers?M.localState.runResolvers({document:G,remoteResult:{data:ue},context:Te,variables:Z,onlyRunForcedResolvers:!0}).then(function(Ce){return ye(Ce.data)}):ye(ue)},Re=function(F){return M.getResultsFromLink(h,F,{variables:Z,context:Te,fetchPolicy:se,errorPolicy:ie})};switch(se){default:case"cache-first":return(H=xe()).complete?[Oe(H,h.markReady())]:_e?[Oe(H),Re(!0)]:[Re(!0)];case"cache-and-network":var H;return(H=xe()).complete||_e?[Oe(H),Re(!0)]:[Re(!0)];case"cache-only":return[Oe(xe(),h.markReady())];case"network-only":return[Re(!0)];case"no-cache":return[Re(!1)];case"standby":return[]}},x.prototype.getQuery=function(h){return h&&!this.queries.has(h)&&this.queries.set(h,new X(this.cache)),this.queries.get(h)},x.prototype.prepareContext=function(h){void 0===h&&(h={});var b=this.localState.prepareContext(h);return(0,s.pi)((0,s.pi)({},b),{clientAwareness:this.clientAwareness})},x}();function J(x,h){return(0,r.o)(x,h,h.variables&&{variables:(0,s.pi)((0,s.pi)({},x.variables),h.variables)})}var ee=function(){function x(h){var b=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var T=h.uri,Z=h.cache,se=h.ssrMode,ie=void 0!==se&&se,_e=h.ssrForceFetchDelay,Te=void 0===_e?0:_e,xe=h.connectToDevTools,Oe=void 0===xe?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:xe,Re=h.queryDeduplication,H=void 0===Re||Re,F=h.defaultOptions,U=h.assumeImmutableResults,ue=void 0!==U&&U,ye=h.resolvers,Ce=h.typeDefs,z=h.fragmentMatcher,le=h.name,ve=h.version,Se=h.link;if(Se||(Se=T?new c.u({uri:T,credentials:h.credentials,headers:h.headers}):l.i.empty()),!Z)throw new S.ej(9);this.link=Se,this.cache=Z,this.disableNetworkFetches=ie||Te>0,this.queryDeduplication=H,this.defaultOptions=F||{},this.typeDefs=Ce,Te&&setTimeout(function(){return b.disableNetworkFetches=!1},Te),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),Oe&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),this.version="3.3.20",this.localState=new Q({cache:Z,client:this,resolvers:ye,fragmentMatcher:z}),this.queryManager=new j({cache:this.cache,link:this.link,queryDeduplication:H,ssrMode:ie,clientAwareness:{name:le,version:ve},localState:this.localState,assumeImmutableResults:ue,onBroadcast:Oe?function(){b.devToolsHookCb&&b.devToolsHookCb({action:{},state:{queries:b.queryManager.getQueryStore(),mutations:b.queryManager.mutationStore||{}},dataWithOptimisticResults:b.cache.extract(!0)})}:void 0})}return x.prototype.stop=function(){this.queryManager.stop()},x.prototype.watchQuery=function(h){return this.defaultOptions.watchQuery&&(h=J(this.defaultOptions.watchQuery,h)),this.disableNetworkFetches&&("network-only"===h.fetchPolicy||"cache-and-network"===h.fetchPolicy)&&(h=(0,s.pi)((0,s.pi)({},h),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(h)},x.prototype.query=function(h){return this.defaultOptions.query&&(h=J(this.defaultOptions.query,h)),(0,S.kG)("cache-and-network"!==h.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===h.fetchPolicy&&(h=(0,s.pi)((0,s.pi)({},h),{fetchPolicy:"cache-first"})),this.queryManager.query(h)},x.prototype.mutate=function(h){return this.defaultOptions.mutate&&(h=J(this.defaultOptions.mutate,h)),this.queryManager.mutate(h)},x.prototype.subscribe=function(h){return this.queryManager.startGraphQLSubscription(h)},x.prototype.readQuery=function(h,b){return void 0===b&&(b=!1),this.cache.readQuery(h,b)},x.prototype.readFragment=function(h,b){return void 0===b&&(b=!1),this.cache.readFragment(h,b)},x.prototype.writeQuery=function(h){this.cache.writeQuery(h),this.queryManager.broadcastQueries()},x.prototype.writeFragment=function(h){this.cache.writeFragment(h),this.queryManager.broadcastQueries()},x.prototype.__actionHookForDevTools=function(h){this.devToolsHookCb=h},x.prototype.__requestRaw=function(h){return(0,t.h)(this.link,h)},x.prototype.resetStore=function(){var h=this;return Promise.resolve().then(function(){return h.queryManager.clearStore()}).then(function(){return Promise.all(h.resetStoreCallbacks.map(function(b){return b()}))}).then(function(){return h.reFetchObservableQueries()})},x.prototype.clearStore=function(){var h=this;return Promise.resolve().then(function(){return h.queryManager.clearStore()}).then(function(){return Promise.all(h.clearStoreCallbacks.map(function(b){return b()}))})},x.prototype.onResetStore=function(h){var b=this;return this.resetStoreCallbacks.push(h),function(){b.resetStoreCallbacks=b.resetStoreCallbacks.filter(function(T){return T!==h})}},x.prototype.onClearStore=function(h){var b=this;return this.clearStoreCallbacks.push(h),function(){b.clearStoreCallbacks=b.clearStoreCallbacks.filter(function(T){return T!==h})}},x.prototype.reFetchObservableQueries=function(h){return this.queryManager.reFetchObservableQueries(h)},x.prototype.extract=function(h){return this.cache.extract(h)},x.prototype.restore=function(h){return this.cache.restore(h)},x.prototype.addResolvers=function(h){this.localState.addResolvers(h)},x.prototype.setResolvers=function(h){this.localState.setResolvers(h)},x.prototype.getResolvers=function(){return this.localState.getResolvers()},x.prototype.setLocalStateFragmentMatcher=function(h){this.localState.setFragmentMatcher(h)},x.prototype.setLink=function(h){this.link=this.queryManager.link=h},x}()},32088:(ne,L,d)=>{"use strict";d.d(L,{u:()=>_});var s=d(9376),S=d(71177),l=d(37117),t=d(11202),r=Object.prototype.toString;function n(B){return c(B)}function c(B,K){switch(r.call(B)){case"[object Array]":if((K=K||new Map).has(B))return K.get(B);var q=B.slice(0);return K.set(B,q),q.forEach(function(O,w){q[w]=c(O,K)}),q;case"[object Object]":if((K=K||new Map).has(B))return K.get(B);var W=Object.create(Object.getPrototypeOf(B));return K.set(B,W),Object.keys(B).forEach(function(O){W[O]=c(B[O],K)}),W;default:return B}}var o=d(69771),u=d(72722),v=d(88372),m=d(31468),E=d.n(m),R=d(70799),P=d(67447),D=function(){function B(K,q,W,O){this.observer=K,this.options=q,this.fetch=W,this.shouldFetch=O}return B.prototype.reobserve=function(K,q){K?this.updateOptions(K):this.updatePolling();var W=this.fetch(this.options,q);return this.concast&&this.concast.removeObserver(this.observer,!0),W.addObserver(this.observer),(this.concast=W).promise},B.prototype.updateOptions=function(K){return Object.assign(this.options,(0,P.o)(K)),this.updatePolling(),this},B.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())},B.prototype.updatePolling=function(){var K=this,W=this.pollingInfo,O=this.options.pollInterval;if(O){if((!W||W.interval!==O)&&((0,S.kG)(O,20),!1!==this.shouldFetch)){(W||(this.pollingInfo={})).interval=O;var f=function(){K.pollingInfo&&(K.shouldFetch&&K.shouldFetch()?K.reobserve({fetchPolicy:"network-only",nextFetchPolicy:K.options.fetchPolicy||"cache-first"},t.I.poll).then(y,y):y())},y=function(){var p=K.pollingInfo;p&&(clearTimeout(p.timeout),p.timeout=setTimeout(f,p.interval))};y()}}else W&&(clearTimeout(W.timeout),delete this.pollingInfo)},B}(),_=function(B){function K(q){var W=q.queryManager,O=q.queryInfo,w=q.options,f=B.call(this,function(p){return f.onSubscribe(p)})||this;f.observers=new Set,f.subscriptions=new Set,f.observer={next:function(p){(f.lastError||f.isDifferentFromLastResult(p))&&(f.updateLastResult(p),(0,o.p)(f.observers,"next",p))},error:function(p){f.updateLastResult((0,s.pi)((0,s.pi)({},f.lastResult),{error:p,errors:p.graphQLErrors,networkStatus:t.I.error,loading:!1})),(0,o.p)(f.observers,"error",f.lastError=p)}},f.isTornDown=!1,f.options=w,f.queryId=W.generateQueryId();var y=(0,u.$H)(w.query);return f.queryName=y&&y.name&&y.name.value,f.queryManager=W,f.queryInfo=O,f}return(0,s.ZT)(K,B),Object.defineProperty(K.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),K.prototype.result=function(){var q=this;return new Promise(function(W,O){var w={next:function(y){W(y),q.observers.delete(w),q.observers.size||q.queryManager.removeQuery(q.queryId),setTimeout(function(){f.unsubscribe()},0)},error:O},f=q.subscribe(w)})},K.prototype.getCurrentResult=function(q){void 0===q&&(q=!0);var W=this.lastResult,O=this.queryInfo.networkStatus||W&&W.networkStatus||t.I.ready,w=(0,s.pi)((0,s.pi)({},W),{loading:(0,t.O)(O),networkStatus:O});if(this.isTornDown)return w;var f=this.options.fetchPolicy,y=void 0===f?"cache-first":f;if("no-cache"===y||"network-only"===y)delete w.partial;else if(!w.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var p=this.queryInfo.getDiff();w.data=p.complete||this.options.returnPartialData?p.result:void 0,p.complete?(w.networkStatus===t.I.loading&&("cache-first"===y||"cache-only"===y)&&(w.networkStatus=t.I.ready,w.loading=!1),delete w.partial):w.partial=!0}return q&&this.updateLastResult(w),w},K.prototype.isDifferentFromLastResult=function(q){return!(0,l.D)(this.lastResultSnapshot,q)},K.prototype.getLastResult=function(){return this.lastResult},K.prototype.getLastError=function(){return this.lastError},K.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},K.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},K.prototype.refetch=function(q){var W={pollInterval:0},O=this.options.fetchPolicy;return"no-cache"!==O&&"cache-and-network"!==O&&(W.fetchPolicy="network-only",W.nextFetchPolicy=O||"cache-first"),q&&!(0,l.D)(this.options.variables,q)&&(W.variables=this.options.variables=(0,s.pi)((0,s.pi)({},this.options.variables),q)),this.newReobserver(!1).reobserve(W,t.I.refetch)},K.prototype.fetchMore=function(q){var W=this,O=(0,s.pi)((0,s.pi)({},q.query?q:(0,s.pi)((0,s.pi)((0,s.pi)({},this.options),q),{variables:(0,s.pi)((0,s.pi)({},this.options.variables),q.variables)})),{fetchPolicy:"no-cache"}),w=this.queryManager.generateQueryId();return O.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=t.I.fetchMore,this.observe()),this.queryManager.fetchQuery(w,O,t.I.fetchMore).then(function(f){var y=f.data,p=q.updateQuery;return p?W.updateQuery(function(N){return p(N,{fetchMoreResult:y,variables:O.variables})}):W.queryManager.cache.writeQuery({query:O.query,variables:O.variables,data:y}),f}).finally(function(){W.queryManager.stopQuery(w),W.reobserve()})},K.prototype.subscribeToMore=function(q){var W=this,O=this.queryManager.startGraphQLSubscription({query:q.document,variables:q.variables,context:q.context}).subscribe({next:function(w){var f=q.updateQuery;f&&W.updateQuery(function(y,p){return f(y,{subscriptionData:w,variables:p.variables})})},error:function(w){q.onError&&q.onError(w)}});return this.subscriptions.add(O),function(){W.subscriptions.delete(O)&&O.unsubscribe()}},K.prototype.setOptions=function(q){return this.reobserve(q)},K.prototype.setVariables=function(q){if((0,l.D)(this.variables,q))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=q,!this.observers.size)return Promise.resolve();var W=this.options.fetchPolicy,O=void 0===W?"cache-first":W,w={fetchPolicy:O,variables:q};return"cache-first"!==O&&"no-cache"!==O&&"network-only"!==O&&(w.fetchPolicy="cache-and-network",w.nextFetchPolicy=O),this.reobserve(w,t.I.setVariables)},K.prototype.updateQuery=function(q){var W,O=this.queryManager,f=q(O.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(W=this.lastResult)||void 0===W?void 0:W.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});f&&(O.cache.writeQuery({query:this.options.query,data:f,variables:this.variables}),O.broadcastQueries())},K.prototype.startPolling=function(q){this.getReobserver().updateOptions({pollInterval:q})},K.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},K.prototype.updateLastResult=function(q){var W=this.lastResult;return this.lastResult=q,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?q:n(q),(0,v.O)(q.errors)||delete this.lastError,W},K.prototype.onSubscribe=function(q){var W=this;if(q===this.observer)return function(){};try{var O=q._subscription._observer;O&&!O.error&&(O.error=I)}catch{}var w=!this.observers.size;return this.observers.add(q),this.lastError?q.error&&q.error(this.lastError):this.lastResult&&q.next&&q.next(this.lastResult),w&&this.reobserve().catch(function(f){}),function(){W.observers.delete(q)&&!W.observers.size&&W.tearDownQuery()}},K.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},K.prototype.newReobserver=function(q){var W=this,w=this.queryManager,f=this.queryId;return w.setObservableQuery(this),new D(this.observer,q?this.options:(0,s.pi)({},this.options),function(y,p){return w.setObservableQuery(W),w.fetchQueryObservable(f,y,p)},!w.ssrMode&&function(){return!(0,t.O)(W.queryInfo.networkStatus)})},K.prototype.reobserve=function(q,W){return this.isTornDown=!1,this.getReobserver().reobserve(q,W)},K.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},K.prototype.hasObservers=function(){return this.observers.size>0},K.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)},K}(E());function I(B){}(0,R.D)(_)},69786:(ne,L,d)=>{"use strict";d.r(L),d.d(L,{ApolloCache:()=>o.R,ApolloClient:()=>s.f,ApolloError:()=>n.c,Cache:()=>c.C,HttpLink:()=>_.uG,InMemoryCache:()=>u.h,MissingFieldError:()=>v.y,NetworkStatus:()=>l.I,Observable:()=>O.a,ObservableQuery:()=>S.u,checkFetcher:()=>_.U2,createHttpLink:()=>_.LQ,createSignalIfSupported:()=>_.$g,defaultDataIdFromObject:()=>m.u,disableExperimentalFragmentVariables:()=>y.J9,disableFragmentWarnings:()=>y._t,enableExperimentalFragmentVariables:()=>y.wO,fallbackHttpConfig:()=>_.SC,fromError:()=>I.Q,fromPromise:()=>K.p,gql:()=>y.ZP,isApolloError:()=>n.M,isReference:()=>w.Yk,makeReference:()=>w.kQ,makeVar:()=>E.QS,mergeOptions:()=>s.J,parseAndCheckHttpResponse:()=>_.dO,resetCaches:()=>y.HW,rewriteURIForGET:()=>_.Hg,selectHttpOptionsAndBody:()=>_.E4,selectURI:()=>_.rg,serializeFetchParameter:()=>_.gE,setLogVerbosity:()=>f.U6,throwServerError:()=>q.P,toPromise:()=>B.V});var s=d(82699),S=d(32088),l=d(11202),t=d(16205),A={};for(const p in t)["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(p)<0&&(A[p]=()=>t[p]);d.d(L,A);var n=d(13040),c=d(33006),o=d(5962),u=d(64588),v=d(76112),m=d(99610),E=d(31625),R=d(27393);A={};for(const p 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(p)<0&&(A[p]=()=>R[p]);d.d(L,A);var D=d(25662);A={};for(const p 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(p)<0&&(A[p]=()=>D[p]);d.d(L,A);var _=d(51478),I=d(97549),B=d(36474),K=d(68225),q=d(87742),W=d(31468),O=d.n(W),w=d(35476),f=d(71177),y=d(44766);(0,f.U6)("log")},11202:(ne,L,d)=>{"use strict";d.d(L,{I:()=>s,O:()=>S});var s=(()=>{return(l=s||(s={}))[l.loading=1]="loading",l[l.setVariables=2]="setVariables",l[l.fetchMore=3]="fetchMore",l[l.refetch=4]="refetch",l[l.poll=6]="poll",l[l.ready=7]="ready",l[l.error=8]="error",s;var l})();function S(l){return!!l&&l<7}},16205:()=>{},13040:(ne,L,d)=>{"use strict";d.d(L,{M:()=>l,c:()=>r});var s=d(9376),S=d(88372);function l(n){return n.hasOwnProperty("graphQLErrors")}var r=function(n){function c(o){var u=o.graphQLErrors,v=o.networkError,m=o.errorMessage,E=o.extraInfo,R=n.call(this,m)||this;return R.graphQLErrors=u||[],R.networkError=v||null,R.message=m||function(n){var c="";return(0,S.O)(n.graphQLErrors)&&n.graphQLErrors.forEach(function(o){c+=(o?o.message:"Error message not found.")+"\n"}),n.networkError&&(c+=n.networkError.message+"\n"),c=c.replace(/\n$/,"")}(R),R.extraInfo=E,R.__proto__=c.prototype,R}return(0,s.ZT)(c,n),c}(Error)},13445:(ne,L,d)=>{"use strict";d.r(L);var s=d(69786),l={};for(const t in s)"default"!==t&&(l[t]=()=>s[t]);d.d(L,l);var S=d(28878);l={};for(const t in S)["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(t)<0&&(l[t]=()=>S[t]);d.d(L,l)},54813:(ne,L,d)=>{"use strict";d.r(L),d.d(L,{setContext:()=>r});var s=d(9376),S=d(91093),l=d(31468),t=d.n(l);function r(n){return new S.i(function(c,o){var u=(0,s._T)(c,[]);return new(t())(function(v){var m;return Promise.resolve(u).then(function(E){return n(E,c.getContext())}).then(c.setContext).then(function(){m=o(c).subscribe({next:v.next.bind(v),error:v.error.bind(v),complete:v.complete.bind(v)})}).catch(v.error.bind(v)),function(){m&&m.unsubscribe()}})})}},91093:(ne,L,d)=>{"use strict";d.d(L,{i:()=>R});var P,s=d(9376),S=d(71177),l=d(31468),t=d.n(l),n=d(72722);function u(P,D){return D?D(P):t().of()}function v(P){return"function"==typeof P?new R(P):P}function m(P){return P.request.length<=1}P=Error,(0,s.ZT)(function D(A,_){var I=P.call(this,A)||this;return I.link=_,I},P);var R=function(){function P(D){D&&(this.request=D)}return P.empty=function(){return new P(function(){return t().of()})},P.from=function(D){return 0===D.length?P.empty():D.map(v).reduce(function(A,_){return A.concat(_)})},P.split=function(D,A,_){var I=v(A),B=v(_||new P(u));return m(I)&&m(B)?new P(function(K){return D(K)?I.request(K)||t().of():B.request(K)||t().of()}):new P(function(K,q){return D(K)?I.request(K,q)||t().of():B.request(K,q)||t().of()})},P.execute=function(D,A){return D.request(function r(P,D){var A=(0,s.pi)({},P);return Object.defineProperty(D,"setContext",{enumerable:!1,value:function(B){A=(0,s.pi)((0,s.pi)({},A),"function"==typeof B?B(A):B)}}),Object.defineProperty(D,"getContext",{enumerable:!1,value:function(){return(0,s.pi)({},A)}}),D}(A.context,function c(P){var D={variables:P.variables||{},extensions:P.extensions||{},operationName:P.operationName,query:P.query};return D.operationName||(D.operationName="string"!=typeof D.query?(0,n.rY)(D.query)||void 0:""),D}(function o(P){for(var D=["query","operationName","variables","extensions","context"],A=0,_=Object.keys(P);A<_.length;A++)if(D.indexOf(_[A])<0)throw new S.ej(26);return P}(A))))||t().of()},P.concat=function(D,A){var _=v(D);if(m(_))return _;var I=v(A);return m(I)?new P(function(B){return _.request(B,function(K){return I.request(K)||t().of()})||t().of()}):new P(function(B,K){return _.request(B,function(q){return I.request(q,K)||t().of()})||t().of()})},P.prototype.split=function(D,A,_){return this.concat(P.split(D,A,_||new P(u)))},P.prototype.concat=function(D){return P.concat(this,D)},P.prototype.request=function(D,A){throw new S.ej(21)},P.prototype.onError=function(D,A){if(A&&A.error)return A.error(D),!1;throw D},P.prototype.setOnError=function(D){return this.onError=D,this},P}()},56235:(ne,L,d)=>{"use strict";d.d(L,{z:()=>S});var S=d(91093).i.concat},60478:(ne,L,d)=>{"use strict";d.d(L,{c:()=>S});var S=d(91093).i.empty},61283:(ne,L,d)=>{"use strict";d.d(L,{h:()=>S});var S=d(91093).i.execute},4149:(ne,L,d)=>{"use strict";d.d(L,{D:()=>S});var S=d(91093).i.from},25662:(ne,L,d)=>{"use strict";d.r(L),d.d(L,{ApolloLink:()=>n.i,concat:()=>t.z,empty:()=>s.c,execute:()=>r.h,from:()=>S.D,split:()=>l.V});var s=d(60478),S=d(4149),l=d(13251),t=d(56235),r=d(61283),n=d(91093),c=d(95669),u={};for(const v in c)["default","empty","from","split","concat","execute","ApolloLink"].indexOf(v)<0&&(u[v]=()=>c[v]);d.d(L,u)},13251:(ne,L,d)=>{"use strict";d.d(L,{V:()=>S});var S=d(91093).i.split},95669:()=>{},65982:(ne,L,d)=>{"use strict";d.d(L,{u:()=>t});var s=d(9376),S=d(91093),l=d(28484),t=function(r){function n(c){void 0===c&&(c={});var o=r.call(this,(0,l.L)(c).request)||this;return o.options=c,o}return(0,s.ZT)(n,r),n}(S.i)},71418:(ne,L,d)=>{"use strict";d.d(L,{U:()=>S});var s=d(71177),S=function(l){if(!l&&typeof fetch>"u")throw new s.ej(22)}},28484:(ne,L,d)=>{"use strict";d.d(L,{L:()=>P});var s=d(9376),S=d(86729),l=d(91093),t=d(31468),r=d.n(t),n=d(53769),c=d(74815),o=d(46715),u=d(71418),v=d(88949),m=d(5147),E=d(91742),R=d(97549),P=function(D){void 0===D&&(D={});var A=D.uri,_=void 0===A?"/graphql":A,I=D.fetch,B=D.includeExtensions,K=D.useGETForQueries,q=D.includeUnusedVariables,W=void 0!==q&&q,O=(0,s._T)(D,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);(0,u.U)(I),I||(I=fetch);var w={http:{includeExtensions:B},options:O.fetchOptions,credentials:O.credentials,headers:O.headers};return new l.i(function(f){var y=(0,c.r)(f,_),p=f.getContext(),N={};if(p.clientAwareness){var V=p.clientAwareness,Q=V.name,$=V.version;Q&&(N["apollographql-client-name"]=Q),$&&(N["apollographql-client-version"]=$)}var re,ae=(0,s.pi)((0,s.pi)({},N),p.headers),X=(0,v.E)(f,v.S,w,{http:p.http,options:p.fetchOptions,credentials:p.credentials,headers:ae}),he=X.options,oe=X.body;if(oe.variables&&!W){var j=new Set(Object.keys(oe.variables));(0,S.Vn)(f.query,{Variable:function(G,Z,se){se&&"VariableDefinition"!==se.kind&&j.delete(G.name.value)}}),j.size&&(oe.variables=(0,s.pi)({},oe.variables),j.forEach(function(G){delete oe.variables[G]}))}if(!he.signal){var J=(0,m.$)();(re=J.controller)&&(he.signal=J.signal)}if(K&&!f.query.definitions.some(function(G){return"OperationDefinition"===G.kind&&"mutation"===G.operation})&&(he.method="GET"),"GET"===he.method){var b=(0,E.H)(y,oe),T=b.newURI,M=b.parseError;if(M)return(0,R.Q)(M);y=T}else try{he.body=(0,n.g)(oe,"Payload")}catch(G){return(0,R.Q)(G)}return new(r())(function(G){return I(y,he).then(function(Z){return f.setContext({response:Z}),Z}).then((0,o.d)(f)).then(function(Z){return G.next(Z),G.complete(),Z}).catch(function(Z){"AbortError"!==Z.name&&(Z.result&&Z.result.errors&&Z.result.data&&G.next(Z.result),G.error(Z))}),function(){re&&re.abort()}})})}},5147:(ne,L,d)=>{"use strict";d.d(L,{$:()=>s});var s=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var S=new AbortController;return{controller:S,signal:S.signal}}},51478:(ne,L,d)=>{"use strict";d.d(L,{$g:()=>r.$,E4:()=>l.E,Hg:()=>u.H,LQ:()=>c.L,SC:()=>l.S,U2:()=>t.U,dO:()=>s.d,gE:()=>S.g,rg:()=>n.r,uG:()=>o.u});var s=d(46715),S=d(53769),l=d(88949),t=d(71418),r=d(5147),n=d(74815),c=d(28484),o=d(65982),u=d(91742)},46715:(ne,L,d)=>{"use strict";d.d(L,{d:()=>l});var s=d(87742),S=Object.prototype.hasOwnProperty;function l(t){return function(r){return r.text().then(function(n){try{return JSON.parse(n)}catch(o){var c=o;throw c.name="ServerParseError",c.response=r,c.statusCode=r.status,c.bodyText=n,c}}).then(function(n){return r.status>=300&&(0,s.P)(r,n,"Response not successful: Received status code "+r.status),!Array.isArray(n)&&!S.call(n,"data")&&!S.call(n,"errors")&&(0,s.P)(r,n,"Server response was missing for query '"+(Array.isArray(t)?t.map(function(c){return c.operationName}):t.operationName)+"'."),n})}}},91742:(ne,L,d)=>{"use strict";d.d(L,{H:()=>S});var s=d(53769);function S(l,t){var r=[],n=function(P,D){r.push(P+"="+encodeURIComponent(D))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var c=void 0;try{c=(0,s.g)(t.variables,"Variables map")}catch(P){return{parseError:P}}n("variables",c)}if(t.extensions){var o=void 0;try{o=(0,s.g)(t.extensions,"Extensions map")}catch(P){return{parseError:P}}n("extensions",o)}var u="",v=l,m=l.indexOf("#");-1!==m&&(u=l.substr(m),v=l.substr(0,m));var E=-1===v.indexOf("?")?"?":"&";return{newURI:v+E+r.join("&")+u}}},88949:(ne,L,d)=>{"use strict";d.d(L,{E:()=>c,S:()=>n});var s=d(9376),S=d(71352),n={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},c=function(o,u){for(var v=[],m=2;m<arguments.length;m++)v[m-2]=arguments[m];var E=(0,s.pi)((0,s.pi)({},u.options),{headers:u.headers,credentials:u.credentials}),R=u.http||{};v.forEach(function(B){E=(0,s.pi)((0,s.pi)((0,s.pi)({},E),B.options),{headers:(0,s.pi)((0,s.pi)({},E.headers),B.headers)}),B.credentials&&(E.credentials=B.credentials),R=(0,s.pi)((0,s.pi)({},R),B.http)});var P=o.operationName,D=o.extensions,A=o.variables,_=o.query,I={operationName:P,variables:A};return R.includeExtensions&&(I.extensions=D),R.includeQuery&&(I.query=(0,S.print)(_)),{options:E,body:I}}},74815:(ne,L,d)=>{"use strict";d.d(L,{r:()=>s});var s=function(S,l){return S.getContext().uri||("function"==typeof l?l(S):l||"/graphql")}},53769:(ne,L,d)=>{"use strict";d.d(L,{g:()=>S});var s=d(71177),S=function(l,t){var r;try{r=JSON.stringify(l)}catch(c){var n=new s.ej(23);throw n.parseError=c,n}return r}},97549:(ne,L,d)=>{"use strict";d.d(L,{Q:()=>l});var s=d(31468),S=d.n(s);function l(t){return new(S())(function(r){r.error(t)})}},68225:(ne,L,d)=>{"use strict";d.d(L,{p:()=>l});var s=d(31468),S=d.n(s);function l(t){return new(S())(function(r){t.then(function(n){r.next(n),r.complete()}).catch(r.error.bind(r))})}},87742:(ne,L,d)=>{"use strict";d.d(L,{P:()=>s});var s=function(S,l,t){var r=new Error(t);throw r.name="ServerError",r.response=S,r.statusCode=S.status,r.result=l,r}},36474:(ne,L,d)=>{"use strict";function S(l){var t=!1;return new Promise(function(r,n){l.subscribe({next:function(c){t||(t=!0,r(c))},error:n})})}d.d(L,{V:()=>S}),d(71177)},95629:(ne,L,d)=>{"use strict";d.d(L,{Gl:()=>r,dP:()=>j,re:()=>x});var s=function(){return Object.create(null)},S=Array.prototype,l=S.forEach,t=S.slice,r=function(){function h(b,T){void 0===b&&(b=!0),void 0===T&&(T=s),this.weakness=b,this.makeData=T}return h.prototype.lookup=function(){for(var b=[],T=0;T<arguments.length;T++)b[T]=arguments[T];return this.lookupArray(b)},h.prototype.lookupArray=function(b){var T=this;return l.call(b,function(M){return T=T.getChildTrie(M)}),T.data||(T.data=this.makeData(t.call(b)))},h.prototype.getChildTrie=function(b){var T=this.weakness&&function n(h){switch(typeof h){case"object":if(null===h)break;case"function":return!0}return!1}(b)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),M=T.get(b);return M||T.set(b,M=new h(this.weakness,this.makeData)),M},h}(),c=d(66072);function o(){}var m,u=function(){function h(b,T){void 0===b&&(b=1/0),void 0===T&&(T=o),this.max=b,this.dispose=T,this.map=new Map,this.newest=null,this.oldest=null}return h.prototype.has=function(b){return this.map.has(b)},h.prototype.get=function(b){var T=this.getNode(b);return T&&T.value},h.prototype.getNode=function(b){var T=this.map.get(b);if(T&&T!==this.newest){var M=T.older,G=T.newer;G&&(G.older=M),M&&(M.newer=G),T.older=this.newest,T.older.newer=T,T.newer=null,this.newest=T,T===this.oldest&&(this.oldest=G)}return T},h.prototype.set=function(b,T){var M=this.getNode(b);return M?M.value=T:(M={key:b,value:T,newer:null,older:this.newest},this.newest&&(this.newest.newer=M),this.newest=M,this.oldest=this.oldest||M,this.map.set(b,M),M.value)},h.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},h.prototype.delete=function(b){var T=this.map.get(b);return!!T&&(T===this.newest&&(this.newest=T.older),T===this.oldest&&(this.oldest=T.newer),T.newer&&(T.newer.older=T.older),T.older&&(T.older.newer=T.newer),this.map.delete(b),this.dispose(T.value,b),!0)},h}(),v=new c.g7,E=Object.prototype.hasOwnProperty,R=void 0===(m=Array.from)?function(h){var b=[];return h.forEach(function(T){return b.push(T)}),b}:m;function P(h){var b=h.unsubscribe;"function"==typeof b&&(h.unsubscribe=void 0,b())}var D=[];function _(h,b){if(!h)throw new Error(b||"assertion failure")}function B(h){switch(h.length){case 0:throw new Error("unknown value");case 1:return h[0];case 2:throw h[1]}}var q=function(){function h(b){this.fn=b,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++h.count}return h.prototype.peek=function(){if(1===this.value.length&&!f(this))return W(this),this.value[0]},h.prototype.recompute=function(b){return _(!this.recomputing,"already recomputing"),W(this),f(this)?function O(h,b){return me(h),v.withValue(h,w,[h,b]),function he(h,b){if("function"==typeof h.subscribe)try{P(h),h.unsubscribe=h.subscribe.apply(null,b)}catch{return h.setDirty(),!1}return!0}(h,b)&&function y(h){h.dirty=!1,!f(h)&&N(h)}(h),B(h.value)}(this,b):B(this.value)},h.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,p(this),P(this))},h.prototype.dispose=function(){var b=this;this.setDirty(),me(this),V(this,function(T,M){T.setDirty(),X(T,b)})},h.prototype.forget=function(){this.dispose()},h.prototype.dependOn=function(b){b.add(this),this.deps||(this.deps=D.pop()||new Set),this.deps.add(b)},h.prototype.forgetDeps=function(){var b=this;this.deps&&(R(this.deps).forEach(function(T){return T.delete(b)}),this.deps.clear(),D.push(this.deps),this.deps=null)},h.count=0,h}();function W(h){var b=v.getValue();if(b)return h.parents.add(b),b.childValues.has(h)||b.childValues.set(h,[]),f(h)?Q(b,h):$(b,h),b}function w(h,b){h.recomputing=!0,h.value.length=0;try{h.value[0]=h.fn.apply(null,b)}catch(T){h.value[1]=T}h.recomputing=!1}function f(h){return h.dirty||!(!h.dirtyChildren||!h.dirtyChildren.size)}function p(h){V(h,Q)}function N(h){V(h,$)}function V(h,b){var T=h.parents.size;if(T)for(var M=R(h.parents),G=0;G<T;++G)b(M[G],h)}function Q(h,b){_(h.childValues.has(b)),_(f(b));var T=!f(h);if(h.dirtyChildren){if(h.dirtyChildren.has(b))return}else h.dirtyChildren=D.pop()||new Set;h.dirtyChildren.add(b),T&&p(h)}function $(h,b){_(h.childValues.has(b)),_(!f(b));var T=h.childValues.get(b);0===T.length?h.childValues.set(b,function K(h){return h.slice(0)}(b.value)):function I(h,b){var T=h.length;return T>0&&T===b.length&&h[T-1]===b[T-1]}(T,b.value)||h.setDirty(),ae(h,b),!f(h)&&N(h)}function ae(h,b){var T=h.dirtyChildren;T&&(T.delete(b),0===T.size&&(D.length<100&&D.push(T),h.dirtyChildren=null))}function me(h){h.childValues.size>0&&h.childValues.forEach(function(b,T){X(h,T)}),h.forgetDeps(),_(null===h.dirtyChildren)}function X(h,b){b.parents.delete(h),h.childValues.delete(b),ae(h,b)}var oe={setDirty:!0,dispose:!0,forget:!0};function j(h){var b=new Map,T=h&&h.subscribe;function M(G){var Z=v.getValue();if(Z){var se=b.get(G);se||b.set(G,se=new Set),Z.dependOn(se),"function"==typeof T&&(P(se),se.unsubscribe=T(G))}}return M.dirty=function(Z,se){var ie=b.get(Z);if(ie){var _e=se&&E.call(oe,se)?se:"setDirty";R(ie).forEach(function(Te){return Te[_e]()}),b.delete(Z),P(ie)}},M}function re(){var h=new r("function"==typeof WeakMap);return function(){return h.lookupArray(arguments)}}re();var ee=new Set;function x(h,b){void 0===b&&(b=Object.create(null));var T=new u(b.max||Math.pow(2,16),function(Te){return Te.dispose()}),M=b.keyArgs,G=b.makeCacheKey||re(),Z=function(){var Te=G.apply(null,M?M.apply(null,arguments):arguments);if(void 0===Te)return h.apply(null,arguments);var xe=T.get(Te);xe||(T.set(Te,xe=new q(h)),xe.subscribe=b.subscribe,xe.forget=function(){return T.delete(Te)});var Oe=xe.recompute(Array.prototype.slice.call(arguments));return T.set(Te,xe),ee.add(T),v.hasValue()||(ee.forEach(function(Re){return Re.clean()}),ee.clear()),Oe};function se(Te){var xe=T.get(Te);xe&&xe.setDirty()}function ie(Te){var xe=T.get(Te);if(xe)return xe.peek()}function _e(Te){return T.delete(Te)}return Object.defineProperty(Z,"size",{get:function(){return T.map.size},configurable:!1,enumerable:!1}),Z.dirtyKey=se,Z.dirty=function(){se(G.apply(null,arguments))},Z.peekKey=ie,Z.peek=function(){return ie(G.apply(null,arguments))},Z.forgetKey=_e,Z.forget=function(){return _e(G.apply(null,arguments))},Z.makeCacheKey=G,Z.getKey=M?function(){return G.apply(null,M.apply(null,arguments))}:G,Object.freeze(Z)}},71177:(ne,L,d)=>{"use strict";d.d(L,{ej:()=>Q,kG:()=>$,U6:()=>he});var s=function(J,ee){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,h){x.__proto__=h}||function(x,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(x[b]=h[b])})(J,ee)},p="Invariant Violation",N=Object.setPrototypeOf,V=void 0===N?function(J,ee){return J.__proto__=ee,J}:N,Q=function(J){function ee(x){void 0===x&&(x=p);var h=J.call(this,"number"==typeof x?p+": "+x+" (see https://github.com/apollographql/invariant-packages)":x)||this;return h.framesToPop=1,h.name=p,V(h,ee.prototype),h}return function S(J,ee){if("function"!=typeof ee&&null!==ee)throw new TypeError("Class extends value "+String(ee)+" is not a constructor or null");function x(){this.constructor=J}s(J,ee),J.prototype=null===ee?Object.create(ee):(x.prototype=ee.prototype,new x)}(ee,J),ee}(Error);function $(J,ee){if(!J)throw new Q(ee)}var J,ae=["log","warn","error","silent"],me=ae.indexOf("log");function X(J){return function(){if(ae.indexOf(J)>=me)return console[J].apply(console,arguments)}}function he(J){var ee=ae[me];return me=Math.max(0,ae.indexOf(J)),ee}(J=$||($={})).log=X("log"),J.warn=X("warn"),J.error=X("error"),"object"==typeof process&&"object"==typeof process.env&&process},99418:(ne,L,d)=>{"use strict";d.d(L,{a:()=>t});var s=d(26064),S=d(71177),l=d(87106),t=function(r){var n=(0,l.K)();return s.createElement(n.Consumer,null,function(c){return(0,S.kG)(c&&c.client,27),r.children(c.client)})}},87106:(ne,L,d)=>{"use strict";d.d(L,{K:()=>t,Z:()=>t});var s=d(26064),l=new(d(55144).m?WeakMap:Map);function t(){var r=l.get(s.createContext);return r||((r=s.createContext({})).displayName="ApolloContext",l.set(s.createContext,r)),r}},68614:(ne,L,d)=>{"use strict";d.d(L,{e:()=>t});var s=d(26064),S=d(71177),l=d(87106),t=function(r){var n=r.client,c=r.children,o=(0,l.K)();return s.createElement(o.Consumer,null,function(u){return void 0===u&&(u={}),n&&u.client!==n&&(u=Object.assign({},u,{client:n})),(0,S.kG)(u.client,28),s.createElement(o.Provider,{value:u},c)})}},45725:(ne,L,d)=>{"use strict";d.d(L,{xJ:()=>t,td:()=>P,Db:()=>_,aM:()=>I,lY:()=>q,mU:()=>K});var s=d(26064),S=d(71177),l=d(87106);function t(){var W=s.useContext((0,l.K)()).client;return(0,S.kG)(W,33),W}var r=d(9376),n=d(37117),c=d(13040),o=d(11202),u=d(60081),v=function(){function W(O,w){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=O||{},this.context=w||{}}return W.prototype.getOptions=function(){return this.options},W.prototype.setOptions=function(O,w){void 0===w&&(w=!1),w&&!(0,n.D)(this.options,O)&&(this.previousOptions=this.options),this.options=O},W.prototype.unmount=function(){this.isMounted=!1},W.prototype.refreshClient=function(){var O=this.options&&this.options.client||this.context&&this.context.client;(0,S.kG)(!!O,29);var w=!1;return O!==this.client&&(w=!0,this.client=O,this.cleanup()),{client:this.client,isNew:w}},W.prototype.verifyDocumentType=function(O,w){var f=(0,u.E2)(O);(0,u.mw)(w),(0,u.mw)(f.type),(0,S.kG)(f.type===w,30)},W}(),m=function(W){function O(w){var p=w.onNewData,N=W.call(this,w.options,w.context)||this;return N.runLazy=!1,N.previous=Object.create(null),N.runLazyQuery=function(V){N.cleanup(),N.runLazy=!0,N.lazyOptions=V,N.onNewData()},N.getQueryResult=function(){var V=N.observableQueryFields(),Q=N.getOptions();if(Q.skip)V=(0,r.pi)((0,r.pi)({},V),{data:void 0,error:void 0,loading:!1,networkStatus:o.I.ready,called:!0});else if(N.currentObservable){var $=N.currentObservable.getCurrentResult(),ae=$.data,me=$.loading,X=$.partial,he=$.networkStatus,oe=$.errors,j=$.error;if(oe&&oe.length>0&&(j=new c.c({graphQLErrors:oe})),V=(0,r.pi)((0,r.pi)({},V),{data:ae,loading:me,networkStatus:he,error:j,called:!0}),!me)if(j)Object.assign(V,{data:(N.currentObservable.getLastResult()||{}).data});else{var re=N.currentObservable.options.fetchPolicy;if(Q.partialRefetch&&X&&(!ae||0===Object.keys(ae).length)&&"cache-only"!==re)return Object.assign(V,{loading:!0,networkStatus:o.I.loading}),V.refetch(),V}}V.client=N.client,N.setOptions(Q,!0);var ee=N.previous.result;return N.previous.loading=ee&&ee.loading||!1,V.previousData=ee&&(ee.data||ee.previousData),N.previous.result=V,N.currentObservable&&N.currentObservable.resetQueryStoreErrors(),V},N.obsRefetch=function(V){var Q;return null===(Q=N.currentObservable)||void 0===Q?void 0:Q.refetch(V)},N.obsFetchMore=function(V){return N.currentObservable.fetchMore(V)},N.obsUpdateQuery=function(V){return N.currentObservable.updateQuery(V)},N.obsStartPolling=function(V){var Q;null===(Q=N.currentObservable)||void 0===Q||Q.startPolling(V)},N.obsStopPolling=function(){var V;null===(V=N.currentObservable)||void 0===V||V.stopPolling()},N.obsSubscribeToMore=function(V){return N.currentObservable.subscribeToMore(V)},N.onNewData=p,N}return(0,r.ZT)(O,W),O.prototype.execute=function(){this.refreshClient();var w=this.getOptions(),f=w.skip,y=w.query;return(f||y!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!f),this.previous.query=y),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},O.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:o.I.ready,called:!1,data:void 0}]},O.prototype.fetchData=function(){var w=this,f=this.getOptions();return!f.skip&&!1!==f.ssr&&new Promise(function(y){return w.startQuerySubscription(y)})},O.prototype.afterExecute=function(w){var f=(void 0===w?{}:w).lazy,y=void 0!==f&&f;return this.isMounted=!0,(!y||this.runLazy)&&this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},O.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},O.prototype.getOptions=function(){var w=W.prototype.getOptions.call(this);return this.lazyOptions&&(w.variables=(0,r.pi)((0,r.pi)({},w.variables),this.lazyOptions.variables),w.context=(0,r.pi)((0,r.pi)({},w.context),this.lazyOptions.context)),this.runLazy&&delete w.skip,w},O.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},O.prototype.getExecuteResult=function(){var w=this.getQueryResult();return this.startQuerySubscription(),w},O.prototype.getExecuteSsrResult=function(){var w=this.getOptions(),y=w.skip,p=!1===w.ssr,N=this.refreshClient().client.disableNetworkFetches,V=(0,r.pi)({loading:!0,networkStatus:o.I.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());if(p&&(this.ssrInitiated()||N))return this.previous.result=V,V;if(this.ssrInitiated()){var Q=this.getQueryResult()||V;return Q.loading&&!y&&this.context.renderPromises.addQueryPromise(this,function(){return null}),Q}},O.prototype.prepareObservableQueryOptions=function(){var w=this.getOptions();this.verifyDocumentType(w.query,u.n_.Query);var f=w.displayName||"Query";return this.ssrInitiated()&&("network-only"===w.fetchPolicy||"cache-and-network"===w.fetchPolicy)&&(w.fetchPolicy="cache-first"),(0,r.pi)((0,r.pi)({},w),{displayName:f,context:w.context})},O.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var w=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=(0,r.pi)((0,r.pi)({},w),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery((0,r.pi)({},w)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,w)}},O.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var w=(0,r.pi)((0,r.pi)({},this.prepareObservableQueryOptions()),{children:null});(0,n.D)(w,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=w,this.currentObservable.setOptions(w).catch(function(){}))}}else this.initializeObservableQuery()},O.prototype.startQuerySubscription=function(w){var f=this;void 0===w&&(w=this.onNewData),!this.currentSubscription&&!this.getOptions().skip&&(this.currentSubscription=this.currentObservable.subscribe({next:function(y){var Q=f.previous.result;Q&&Q.loading===y.loading&&Q.networkStatus===y.networkStatus&&(0,n.D)(Q.data,y.data)||w()},error:function(y){if(f.resubscribeToQuery(),!y.hasOwnProperty("graphQLErrors"))throw y;var p=f.previous.result;(p&&p.loading||!(0,n.D)(y,f.previous.error))&&(f.previous.error=y,w())}}))},O.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var w=this.currentObservable;if(w){var f=w.getLastError(),y=w.getLastResult();w.resetLastResults(),this.startQuerySubscription(),Object.assign(w,{lastError:f,lastResult:y})}},O.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var w=this.previous.result,f=w.data,p=w.error;if(!w.loading){var N=this.getOptions(),Q=N.variables,$=N.onCompleted,ae=N.onError,me=N.skip;if(this.previousOptions&&!this.previous.loading&&(0,n.D)(this.previousOptions.query,N.query)&&(0,n.D)(this.previousOptions.variables,Q))return;!$||p||me?ae&&p&&ae(p):$(f)}}},O.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},O.prototype.removeObservable=function(w){this.currentObservable&&(this.currentObservable.tearDownQuery(),w&&delete this.currentObservable)},O.prototype.observableQueryFields=function(){var w;return{variables:null===(w=this.currentObservable)||void 0===w?void 0:w.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}},O}(v);function R(W,O,w){void 0===w&&(w=!1);var f=(0,s.useContext)((0,l.K)()),y=(0,s.useReducer)(function(he){return he+1},0),p=y[0],N=y[1],V=O?(0,r.pi)((0,r.pi)({},O),{query:W}):{query:W},Q=(0,s.useRef)(),$=Q.current||(Q.current=new m({options:V,context:f,onNewData:function(){$.ssrInitiated()?N():Promise.resolve().then(function(){return Q.current&&N()})}}));$.setOptions(V),$.context=f;var me=function E(W,O){var w=(0,s.useRef)();return(!w.current||!(0,n.D)(O,w.current.key))&&(w.current={key:O,value:W()}),w.current.value}(function(){return w?$.executeLazy():$.execute()},{options:(0,r.pi)((0,r.pi)({},V),{onError:void 0,onCompleted:void 0}),context:f,tick:p}),X=w?me[1]:me;return(0,s.useEffect)(function(){return function(){return $.cleanup()}},[]),(0,s.useEffect)(function(){return $.afterExecute({lazy:w})},[X.loading,X.networkStatus,X.error,X.data]),me}function P(W,O){return R(W,O,!0)}var D=d(82699),A=function(W){function O(w){var f=w.options,p=w.result,N=w.setResult,V=W.call(this,f,w.context)||this;return V.runMutation=function(Q){void 0===Q&&(Q={}),V.onMutationStart();var $=V.generateNewMutationId();return V.mutate(Q).then(function(ae){return V.onMutationCompleted(ae,$),ae}).catch(function(ae){var me=V.getOptions().onError;if(V.onMutationError(ae,$),me)return me(ae),{data:void 0,errors:ae};throw ae})},V.verifyDocumentType(f.mutation,u.n_.Mutation),V.result=p,V.setResult=N,V.mostRecentMutationId=0,V}return(0,r.ZT)(O,W),O.prototype.execute=function(w){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,u.n_.Mutation),[this.runMutation,(0,r.pi)((0,r.pi)({},w),{client:this.refreshClient().client})]},O.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},O.prototype.cleanup=function(){},O.prototype.mutate=function(w){return this.refreshClient().client.mutate((0,D.J)(this.getOptions(),w))},O.prototype.onMutationStart=function(){!this.result.loading&&!this.getOptions().ignoreResults&&this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},O.prototype.onMutationCompleted=function(w,f){var y=this.getOptions(),p=y.onCompleted,N=y.ignoreResults,V=w.data,Q=w.errors,$=Q&&Q.length>0?new c.c({graphQLErrors:Q}):void 0;this.isMostRecentMutation(f)&&!N&&this.updateResult({called:!0,loading:!1,data:V,error:$}),p&&p(V)},O.prototype.onMutationError=function(w,f){this.isMostRecentMutation(f)&&this.updateResult({loading:!1,error:w,data:void 0,called:!0})},O.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},O.prototype.isMostRecentMutation=function(w){return this.mostRecentMutationId===w},O.prototype.updateResult=function(w){if(this.isMounted&&(!this.previousResult||!(0,n.D)(this.previousResult,w)))return this.setResult(w),this.previousResult=w,w},O}(v);function _(W,O){var w=(0,s.useContext)((0,l.K)()),f=(0,s.useState)({called:!1,loading:!1}),y=f[0],p=f[1],N=O?(0,r.pi)((0,r.pi)({},O),{mutation:W}):{mutation:W},V=(0,s.useRef)(),$=function Q(){return V.current||(V.current=new A({options:N,context:w,result:y,setResult:p})),V.current}();return $.setOptions(N),$.context=w,(0,s.useEffect)(function(){return $.afterExecute()}),$.execute(y)}function I(W,O){return R(W,O,!1)}var B=function(W){function O(w){var f=w.options,p=w.setResult,N=W.call(this,f,w.context)||this;return N.currentObservable={},N.setResult=p,N.initialize(f),N}return(0,r.ZT)(O,W),O.prototype.execute=function(w){if(!0===this.getOptions().skip)return this.cleanup(),{loading:!1,error:void 0,data:void 0,variables:this.getOptions().variables};var f=w;this.refreshClient().isNew&&(f=this.getLoadingResult());var y=this.getOptions().shouldResubscribe;return"function"==typeof y&&(y=!!y(this.getOptions())),!1!==y&&this.previousOptions&&Object.keys(this.previousOptions).length>0&&(this.previousOptions.subscription!==this.getOptions().subscription||!(0,n.D)(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),f=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),(0,r.pi)((0,r.pi)({},f),{variables:this.getOptions().variables})},O.prototype.afterExecute=function(){this.isMounted=!0},O.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},O.prototype.initialize=function(w){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:w.subscription,variables:w.variables,fetchPolicy:w.fetchPolicy,context:w.context}))},O.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)}))},O.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},O.prototype.updateResult=function(w){this.isMounted&&this.setResult(w)},O.prototype.updateCurrentData=function(w){var f=this.getOptions().onSubscriptionData;this.updateResult({data:w.data,loading:!1,error:void 0}),f&&f({client:this.refreshClient().client,subscriptionData:w})},O.prototype.updateError=function(w){this.updateResult({error:w,loading:!1})},O.prototype.completeSubscription=function(){var w=this;Promise.resolve().then(function(){var f=w.getOptions().onSubscriptionComplete;f&&f(),w.endSubscription()})},O.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},O}(v);function K(W,O){var w=(0,s.useContext)((0,l.K)()),f=O?(0,r.pi)((0,r.pi)({},O),{subscription:W}):{subscription:W},y=(0,s.useState)({loading:!f.skip,error:void 0,data:void 0}),p=y[0],N=y[1],V=(0,s.useRef)(),$=function Q(){return V.current||(V.current=new B({options:f,context:w,setResult:N})),V.current}();return $.setOptions(f,!0),$.context=w,(0,s.useEffect)(function(){return $.afterExecute()}),(0,s.useEffect)(function(){return $.cleanup.bind($)},[]),$.execute(p)}function q(W){var O=W(),w=(0,s.useState)(O)[1];return(0,s.useEffect)(function(){var f=W();if(O===f)return W.onNextChange(w);w(f)},[O]),O}},28878:(ne,L,d)=>{"use strict";d.r(L),d.d(L,{ApolloConsumer:()=>S.a,ApolloProvider:()=>s.e,DocumentType:()=>r.n_,getApolloContext:()=>l.K,operationName:()=>r.mw,parser:()=>r.E2,resetApolloContext:()=>l.Z,useApolloClient:()=>t.xJ,useLazyQuery:()=>t.td,useMutation:()=>t.Db,useQuery:()=>t.aM,useReactiveVar:()=>t.lY,useSubscription:()=>t.mU});var s=d(68614),S=d(99418),l=d(87106),t=d(45725),r=d(60081),n=d(687),o={};for(const u in n)["default","ApolloProvider","ApolloConsumer","getApolloContext","resetApolloContext","DocumentType","operationName","parser","useApolloClient","useLazyQuery","useMutation","useQuery","useReactiveVar","useSubscription"].indexOf(u)<0&&(o[u]=()=>n[u]);d.d(L,o)},60081:(ne,L,d)=>{"use strict";d.d(L,{E2:()=>r,mw:()=>t,n_:()=>S});var s=d(71177),S=(()=>{return(n=S||(S={}))[n.Query=0]="Query",n[n.Mutation=1]="Mutation",n[n.Subscription=2]="Subscription",S;var n})(),l=new Map;function t(n){var c;switch(n){case S.Query:c="Query";break;case S.Mutation:c="Mutation";break;case S.Subscription:c="Subscription"}return c}function r(n){var u,c=l.get(n);if(c)return c;(0,s.kG)(!!n&&!!n.kind,34);var m=n.definitions.filter(function(I){return"FragmentDefinition"===I.kind}),E=n.definitions.filter(function(I){return"OperationDefinition"===I.kind&&"query"===I.operation}),R=n.definitions.filter(function(I){return"OperationDefinition"===I.kind&&"mutation"===I.operation}),P=n.definitions.filter(function(I){return"OperationDefinition"===I.kind&&"subscription"===I.operation});(0,s.kG)(!m.length||E.length||R.length||P.length,35),(0,s.kG)(E.length+R.length+P.length<=1,36),u=E.length?S.Query:S.Mutation,!E.length&&!R.length&&(u=S.Subscription);var D=E.length?E:R.length?R:P;(0,s.kG)(1===D.length,37);var A=D[0],_={name:A.name&&"Name"===A.name.kind?A.name.value:"data",type:u,variables:A.variableDefinitions||[]};return l.set(n,_),_}},687:()=>{},88372:(ne,L,d)=>{"use strict";function s(S){return Array.isArray(S)&&S.length>0}d.d(L,{O:()=>s})},55144:(ne,L,d)=>{"use strict";d.d(L,{m:()=>s});var s="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product)},67447:(ne,L,d)=>{"use strict";function s(){for(var S=[],l=0;l<arguments.length;l++)S[l]=arguments[l];var t=Object.create(null);return S.forEach(function(r){!r||Object.keys(r).forEach(function(n){var c=r[n];void 0!==c&&(t[n]=c)})}),t}d.d(L,{o:()=>s})},91917:(ne,L,d)=>{"use strict";d.d(L,{Ee:()=>l,bw:()=>t,w0:()=>c});var s=d(9376),S=Object.prototype.hasOwnProperty;function l(){for(var o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];return t(o)}function t(o){var u=o[0]||{},v=o.length;if(v>1)for(var m=new c,E=1;E<v;++E)u=m.merge(u,o[E]);return u}function r(o){return null!==o&&"object"==typeof o}var n=function(o,u,v){return this.merge(o[v],u[v])},c=function(){function o(u){void 0===u&&(u=n),this.reconciler=u,this.isObject=r,this.pastCopies=new Set}return o.prototype.merge=function(u,v){for(var m=this,E=[],R=2;R<arguments.length;R++)E[R-2]=arguments[R];return r(v)&&r(u)?(Object.keys(v).forEach(function(P){if(S.call(u,P)){var D=u[P];if(v[P]!==D){var A=m.reconciler.apply(m,(0,s.pr)([u,v,P],E));A!==D&&((u=m.shallowCopyForMerge(u))[P]=A)}}else(u=m.shallowCopyForMerge(u))[P]=v[P]}),u):v},o.prototype.shallowCopyForMerge=function(u){return r(u)&&!this.pastCopies.has(u)&&(u=Array.isArray(u)?u.slice(0):(0,s.pi)({__proto__:Object.getPrototypeOf(u)},u),this.pastCopies.add(u)),u},o}()},31323:(ne,L,d)=>{"use strict";d.d(L,{FS:()=>r,LZ:()=>l,mj:()=>n});var s=d(86729),S=d(71177);function l(u,v){var m=u.directives;return!m||!m.length||function o(u){var v=[];return u&&u.length&&u.forEach(function(m){if(function c(u){var v=u.name.value;return"skip"===v||"include"===v}(m)){var E=m.arguments;(0,S.kG)(E&&1===E.length,39);var P=E[0];(0,S.kG)(P.name&&"if"===P.name.value,40);var D=P.value;(0,S.kG)(D&&("Variable"===D.kind||"BooleanValue"===D.kind),41),v.push({directive:m,ifArgument:P})}}),v}(m).every(function(E){var R=E.directive,P=E.ifArgument,D=!1;return"Variable"===P.value.kind?(0,S.kG)(void 0!==(D=v&&v[P.value.name.value]),38):D=P.value.value,"skip"===R.name.value?!D:D})}function r(u,v){return function t(u){var v=[];return(0,s.Vn)(u,{Directive:function(m){v.push(m.name.value)}}),v}(v).some(function(m){return u.indexOf(m)>-1})}function n(u){return u&&r(["client"],u)&&r(["export"],u)}},2454:(ne,L,d)=>{"use strict";d.d(L,{F:()=>t,Yk:()=>l,hi:()=>r});var s=d(9376),S=d(71177);function l(n,c){var o=c,u=[];return n.definitions.forEach(function(m){if("OperationDefinition"===m.kind)throw new S.ej(42);"FragmentDefinition"===m.kind&&u.push(m)}),typeof o>"u"&&((0,S.kG)(1===u.length,43),o=u[0].name.value),(0,s.pi)((0,s.pi)({},n),{definitions:(0,s.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:o}}]}}],n.definitions)})}function t(n){void 0===n&&(n=[]);var c={};return n.forEach(function(o){c[o.name.value]=o}),c}function r(n,c){switch(n.kind){case"InlineFragment":return n;case"FragmentSpread":var o=c&&c[n.name.value];return(0,S.kG)(o,44),o;default:return null}}},72722:(ne,L,d)=>{"use strict";d.d(L,{$H:()=>t,A$:()=>l,O4:()=>v,iW:()=>c,kU:()=>n,p$:()=>u,pD:()=>o,rY:()=>r});var s=d(71177),S=d(35476);function l(m){(0,s.kG)(m&&"Document"===m.kind,45);var E=m.definitions.filter(function(R){return"FragmentDefinition"!==R.kind}).map(function(R){if("OperationDefinition"!==R.kind)throw new s.ej(46);return R});return(0,s.kG)(E.length<=1,47),m}function t(m){return l(m),m.definitions.filter(function(E){return"OperationDefinition"===E.kind})[0]}function r(m){return m.definitions.filter(function(E){return"OperationDefinition"===E.kind&&E.name}).map(function(E){return E.name.value})[0]||null}function n(m){return m.definitions.filter(function(E){return"FragmentDefinition"===E.kind})}function c(m){var E=t(m);return(0,s.kG)(E&&"query"===E.operation,48),E}function o(m){(0,s.kG)("Document"===m.kind,49),(0,s.kG)(m.definitions.length<=1,50);var E=m.definitions[0];return(0,s.kG)("FragmentDefinition"===E.kind,51),E}function u(m){l(m);for(var E,R=0,P=m.definitions;R<P.length;R++){var D=P[R];if("OperationDefinition"===D.kind){var A=D.operation;if("query"===A||"mutation"===A||"subscription"===A)return D}"FragmentDefinition"===D.kind&&!E&&(E=D)}if(E)return E;throw new s.ej(52)}function v(m){var E=Object.create(null),R=m&&m.variableDefinitions;return R&&R.length&&R.forEach(function(P){P.defaultValue&&(0,S.vb)(E,P.variable.name,P.defaultValue)}),E}},35476:(ne,L,d)=>{"use strict";d.d(L,{Ao:()=>w,My:()=>O,NC:()=>K,PT:()=>B,Yk:()=>n,kQ:()=>r,qw:()=>W,u2:()=>q,vb:()=>A,vf:()=>_});var s=d(48165),S=d.n(s),l=d(71177),t=d(2454);function r(f){return{__ref:String(f)}}function n(f){return Boolean(f&&"object"==typeof f&&"string"==typeof f.__ref)}function A(f,y,p,N){if(function u(f){return"IntValue"===f.kind}(p)||function v(f){return"FloatValue"===f.kind}(p))f[y.value]=Number(p.value);else if(function o(f){return"BooleanValue"===f.kind}(p)||function c(f){return"StringValue"===f.kind}(p))f[y.value]=p.value;else if(function E(f){return"ObjectValue"===f.kind}(p)){var V={};p.fields.map(function($){return A(V,$.name,$.value,N)}),f[y.value]=V}else if(function m(f){return"Variable"===f.kind}(p))f[y.value]=(N||{})[p.name.value];else if(function R(f){return"ListValue"===f.kind}(p))f[y.value]=p.values.map(function($){var ae={};return A(ae,y,$,N),ae[y.value]});else if(function P(f){return"EnumValue"===f.kind}(p))f[y.value]=p.value;else{if(!function D(f){return"NullValue"===f.kind}(p))throw new l.ej(53);f[y.value]=null}}function _(f,y){var p=null;f.directives&&(p={},f.directives.forEach(function(V){p[V.name.value]={},V.arguments&&V.arguments.forEach(function(Q){return A(p[V.name.value],Q.name,Q.value,y)})}));var N=null;return f.arguments&&f.arguments.length&&(N={},f.arguments.forEach(function(V){return A(N,V.name,V.value,y)})),B(f.name.value,N,p)}var I=["connection","include","skip","client","rest","export"];function B(f,y,p){if(y&&p&&p.connection&&p.connection.key){if(p.connection.filter&&p.connection.filter.length>0){var N=p.connection.filter?p.connection.filter:[];N.sort();var V={};return N.forEach(function(ae){V[ae]=y[ae]}),p.connection.key+"("+JSON.stringify(V)+")"}return p.connection.key}var Q=f;if(y){var $=S()(y);Q+="("+$+")"}return p&&Object.keys(p).forEach(function(ae){-1===I.indexOf(ae)&&(p[ae]&&Object.keys(p[ae]).length?Q+="@"+ae+"("+JSON.stringify(p[ae])+")":Q+="@"+ae)}),Q}function K(f,y){if(f.arguments&&f.arguments.length){var p={};return f.arguments.forEach(function(N){return A(p,N.name,N.value,y)}),p}return null}function q(f){return f.alias?f.alias.value:f.name.value}function W(f,y,p){if("string"==typeof f.__typename)return f.__typename;for(var N=0,V=y.selections;N<V.length;N++){var Q=V[N];if(O(Q)){if("__typename"===Q.name.value)return f[q(Q)]}else{var $=W(f,(0,t.hi)(Q,p).selectionSet,p);if("string"==typeof $)return $}}}function O(f){return"Field"===f.kind}function w(f){return"InlineFragment"===f.kind}},98351:(ne,L,d)=>{"use strict";d.d(L,{Gw:()=>R,aL:()=>W,ob:()=>O,Fo:()=>D});var s=d(9376),S=d(86729),t=(d(71177),d(72722));function r(w,f,y){var p=0;return w.forEach(function(N,V){f.call(this,N,V,w)&&(w[p++]=N)},y),w.length=p,w}var n=d(35476),c=d(2454),o={kind:"Field",name:{kind:"Name",value:"__typename"}};function u(w,f){return w.selectionSet.selections.every(function(y){return"FragmentSpread"===y.kind&&u(f[y.name.value],f)})}function v(w){return u((0,t.$H)(w)||(0,t.pD)(w),(0,c.F)((0,t.kU)(w)))?null:w}function m(w){return function(y){return w.some(function(p){return p.name&&p.name===y.name.value||p.test&&p.test(y)})}}function E(w,f){var y=Object.create(null),p=[],N=Object.create(null),V=[],Q=v((0,S.Vn)(f,{Variable:{enter:function($,ae,me){"VariableDefinition"!==me.kind&&(y[$.name.value]=!0)}},Field:{enter:function($){if(w&&$.directives&&w.some(function(me){return me.remove})&&$.directives&&$.directives.some(m(w)))return $.arguments&&$.arguments.forEach(function(me){"Variable"===me.value.kind&&p.push({name:me.value.name.value})}),$.selectionSet&&q($.selectionSet).forEach(function(me){V.push({name:me.name.value})}),null}},FragmentSpread:{enter:function($){N[$.name.value]=!0}},Directive:{enter:function($){if(m(w)($))return null}}}));return Q&&r(p,function($){return!!$.name&&!y[$.name]}).length&&(Q=function B(w,f){var y=function I(w){return function(y){return w.some(function(p){return y.value&&"Variable"===y.value.kind&&y.value.name&&(p.name===y.value.name.value||p.test&&p.test(y))})}}(w);return v((0,S.Vn)(f,{OperationDefinition:{enter:function(p){return(0,s.pi)((0,s.pi)({},p),{variableDefinitions:p.variableDefinitions?p.variableDefinitions.filter(function(N){return!w.some(function(V){return V.name===N.variable.name.value})}):[]})}},Field:{enter:function(p){var N=w.some(function(Q){return Q.remove});if(N){var V=0;if(p.arguments&&p.arguments.forEach(function(Q){y(Q)&&(V+=1)}),1===V)return null}}},Argument:{enter:function(p){if(y(p))return null}}}))}(p,Q)),Q&&r(V,function($){return!!$.name&&!N[$.name]}).length&&(Q=function K(w,f){function y(p){if(w.some(function(N){return N.name===p.name.value}))return null}return v((0,S.Vn)(f,{FragmentSpread:{enter:y},FragmentDefinition:{enter:y}}))}(V,Q)),Q}function R(w){return(0,S.Vn)((0,t.A$)(w),{SelectionSet:{enter:function(f,y,p){if(!p||"OperationDefinition"!==p.kind){var N=f.selections;if(N&&!N.some(function($){return(0,n.My)($)&&("__typename"===$.name.value||0===$.name.value.lastIndexOf("__",0))})){var Q=p;if(!((0,n.My)(Q)&&Q.directives&&Q.directives.some(function($){return"export"===$.name.value})))return(0,s.pi)((0,s.pi)({},f),{selections:(0,s.pr)(N,[o])})}}}}})}R.added=function(w){return w===o};var P={test:function(w){var f="connection"===w.name.value;return f&&(!w.arguments||w.arguments.some(function(y){return"key"===y.name.value})),f}};function D(w){return E([P],(0,t.A$)(w))}function q(w){var f=[];return w.selections.forEach(function(y){((0,n.My)(y)||(0,n.Ao)(y))&&y.selectionSet?q(y.selectionSet).forEach(function(p){return f.push(p)}):"FragmentSpread"===y.kind&&f.push(y)}),f}function W(w){return"query"===(0,t.p$)(w).operation?w:(0,S.Vn)(w,{OperationDefinition:{enter:function(N){return(0,s.pi)((0,s.pi)({},N),{operation:"query"})}}})}function O(w){(0,t.A$)(w);var f=E([{test:function(y){return"client"===y.name.value},remove:!0}],w);return f&&(f=(0,S.Vn)(f,{FragmentDefinition:{enter:function(y){if(y.selectionSet&&y.selectionSet.selections.every(function(N){return(0,n.My)(N)&&"__typename"===N.name.value}))return null}}})),f}},69771:(ne,L,d)=>{"use strict";function s(S,l,t){var r=[];S.forEach(function(n){return n[l]&&r.push(n)}),r.forEach(function(n){return n[l](t)})}d.d(L,{p:()=>s})},70799:(ne,L,d)=>{"use strict";d.d(L,{D:()=>l});var s=d(31468),S=d.n(s);function l(t){function r(n){Object.defineProperty(t,n,{value:S()})}return"function"==typeof Symbol&&Symbol.species&&r(Symbol.species),r("@@species"),t}},66072:(ne,L,d)=>{"use strict";d.d(L,{g7:()=>c});var s=null,S={},l=1,r="@wry/context:Slot",n=Array,c=n[r]||function(){var D=function(){function D(){this.id=["slot",l++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return D.prototype.hasValue=function(){for(var A=s;A;A=A.parent)if(this.id in A.slots){var _=A.slots[this.id];if(_===S)break;return A!==s&&(s.slots[this.id]=_),!0}return s&&(s.slots[this.id]=S),!1},D.prototype.getValue=function(){if(this.hasValue())return s.slots[this.id]},D.prototype.withValue=function(A,_,I,B){var K,q=((K={__proto__:null})[this.id]=A,K),W=s;s={parent:W,slots:q};try{return _.apply(B,I)}finally{s=W}},D.bind=function(A){var _=s;return function(){var I=s;try{return s=_,A.apply(this,arguments)}finally{s=I}}},D.noContext=function(A,_,I){if(!s)return A.apply(I,_);var B=s;try{return s=null,A.apply(I,_)}finally{s=B}},D}();try{Object.defineProperty(n,r,{value:n[r]=D,enumerable:!1,writable:!1,configurable:!1})}finally{return D}}()},37117:(ne,L,d)=>{"use strict";d.d(L,{D:()=>n});var s=Object.prototype,S=s.toString,l=s.hasOwnProperty,t=Function.prototype.toString,r=new Map;function n(P,D){try{return c(P,D)}finally{r.clear()}}function c(P,D){if(P===D)return!0;var A=S.call(P);if(A!==S.call(D))return!1;switch(A){case"[object Array]":if(P.length!==D.length)return!1;case"[object Object]":if(E(P,D))return!0;var I=o(P),B=o(D),K=I.length;if(K!==B.length)return!1;for(var q=0;q<K;++q)if(!l.call(D,I[q]))return!1;for(q=0;q<K;++q){var W=I[q];if(!c(P[W],D[W]))return!1}return!0;case"[object Error]":return P.name===D.name&&P.message===D.message;case"[object Number]":if(P!=P)return D!=D;case"[object Boolean]":case"[object Date]":return+P==+D;case"[object RegExp]":case"[object String]":return P==""+D;case"[object Map]":case"[object Set]":if(P.size!==D.size)return!1;if(E(P,D))return!0;for(var O=P.entries(),w="[object Map]"===A;;){var f=O.next();if(f.done)break;var y=f.value,p=y[0],N=y[1];if(!D.has(p)||w&&!c(N,D.get(p)))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]":P=new Uint8Array(P),D=new Uint8Array(D);case"[object DataView]":var V=P.byteLength;if(V===D.byteLength)for(;V--&&P[V]===D[V];);return-1===V;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var Q=t.call(P);return Q===t.call(D)&&!function m(P,D){var A=P.length-D.length;return A>=0&&P.indexOf(D,A)===A}(Q,v)}return!1}function o(P){return Object.keys(P).filter(u,P)}function u(P){return void 0!==this[P]}var v="{ [native code] }";function E(P,D){var A=r.get(P);if(A){if(A.has(D))return!0}else r.set(P,A=new Set);return A.add(D),!1}},4614:(ne,L,d)=>{"use strict";d.r(L),d.d(L,{addTypenameToDocument:()=>bt,argumentsObjectFromField:()=>j,assign:()=>Re,buildQueryFromSelectionSet:()=>Tt,canUseWeakMap:()=>Qt,checkDocument:()=>F,cloneDeep:()=>Mt,createFragmentMap:()=>Se,getDefaultValues:()=>Ie,getDirectiveInfoFromField:()=>G,getDirectiveNames:()=>se,getDirectivesFromDocument:()=>Rt,getEnv:()=>gr,getFragmentDefinition:()=>le,getFragmentDefinitions:()=>Ce,getFragmentQueryDocument:()=>Oe,getInclusionDirectives:()=>xe,getMainDefinition:()=>ve,getMutationDefinition:()=>H,getOperationDefinition:()=>U,getOperationDefinitionOrDie:()=>ue,getOperationName:()=>ye,getQueryDefinition:()=>z,getStoreKeyName:()=>oe,graphQLResultHasError:()=>cr,hasClientExports:()=>_e,hasDirectives:()=>ie,isDevelopment:()=>Bt,isEnv:()=>wt,isEqual:()=>I,isField:()=>J,isIdValue:()=>x,isInlineFragment:()=>ee,isJsonValue:()=>b,isNumberValue:()=>O,isProduction:()=>Ut,isScalarValue:()=>W,isTest:()=>Er,maybeDeepFreeze:()=>zt,mergeDeep:()=>fr,mergeDeepArray:()=>nr,removeArgumentsFromDocument:()=>ht,removeClientSetsFromDocument:()=>mt,removeConnectionDirectiveFromDocument:()=>$t,removeDirectivesFromDocument:()=>ke,removeFragmentSpreadFromDocument:()=>Nt,resultKeyNameFromField:()=>re,shouldInclude:()=>Z,storeKeyNameFromField:()=>X,stripSymbols:()=>on,toIdValue:()=>h,tryFunctionOrLogError:()=>Lt,valueFromNode:()=>M,valueToObjectRepresentation:()=>me,variablesInOperation:()=>Me,warnOnceInDevelopment:()=>ze});var fe,s=d(86729),S=d(9376),l="Invariant Violation",t=Object.setPrototypeOf,r=void 0===t?function(fe,be){return fe.__proto__=be,fe}:t,n=function(fe){function be(Ae){void 0===Ae&&(Ae=l);var Ne=fe.call(this,"number"==typeof Ae?l+": "+Ae+" (see https://github.com/apollographql/invariant-packages)":Ae)||this;return Ne.framesToPop=1,Ne.name=l,r(Ne,be.prototype),Ne}return(0,S.ZT)(be,fe),be}(Error);function c(fe,be){if(!fe)throw new n(be)}function o(fe){return function(){return console[fe].apply(console,arguments)}}(fe=c||(c={})).warn=o("warn"),fe.error=o("error");var u={env:{}};if("object"==typeof process)u=process;else try{Function("stub","process = stub")(u)}catch{}var E=d(48165),R=d.n(E),P=Object.prototype,D=P.toString,A=P.hasOwnProperty,_=new Map;function I(fe,be){try{return B(fe,be)}finally{_.clear()}}function B(fe,be){if(fe===be)return!0;var Ae=D.call(fe);if(Ae!==D.call(be))return!1;switch(Ae){case"[object Array]":if(fe.length!==be.length)return!1;case"[object Object]":if(K(fe,be))return!0;var je=Object.keys(fe),We=Object.keys(be),Xe=je.length;if(Xe!==We.length)return!1;for(var Ye=0;Ye<Xe;++Ye)if(!A.call(be,je[Ye]))return!1;for(Ye=0;Ye<Xe;++Ye){var yt=je[Ye];if(!B(fe[yt],be[yt]))return!1}return!0;case"[object Error]":return fe.name===be.name&&fe.message===be.message;case"[object Number]":if(fe!=fe)return be!=be;case"[object Boolean]":case"[object Date]":return+fe==+be;case"[object RegExp]":case"[object String]":return fe==""+be;case"[object Map]":case"[object Set]":if(fe.size!==be.size)return!1;if(K(fe,be))return!0;for(var _t=fe.entries(),sn="[object Map]"===Ae;;){var Vr=_t.next();if(Vr.done)break;var Sr=Vr.value,tr=Sr[0],un=Sr[1];if(!be.has(tr)||sn&&!B(un,be.get(tr)))return!1}return!0}return!1}function K(fe,be){var Ae=_.get(fe);if(Ae){if(Ae.has(be))return!0}else _.set(fe,Ae=new Set);return Ae.add(be),!1}function W(fe){return["StringValue","BooleanValue","EnumValue"].indexOf(fe.kind)>-1}function O(fe){return["IntValue","FloatValue"].indexOf(fe.kind)>-1}function me(fe,be,Ae,Ne){if(function y(fe){return"IntValue"===fe.kind}(Ae)||function p(fe){return"FloatValue"===fe.kind}(Ae))fe[be.value]=Number(Ae.value);else if(function f(fe){return"BooleanValue"===fe.kind}(Ae)||function w(fe){return"StringValue"===fe.kind}(Ae))fe[be.value]=Ae.value;else if(function V(fe){return"ObjectValue"===fe.kind}(Ae)){var je={};Ae.fields.map(function(Xe){return me(je,Xe.name,Xe.value,Ne)}),fe[be.value]=je}else if(function N(fe){return"Variable"===fe.kind}(Ae))fe[be.value]=(Ne||{})[Ae.name.value];else if(function Q(fe){return"ListValue"===fe.kind}(Ae))fe[be.value]=Ae.values.map(function(Xe){var Ye={};return me(Ye,be,Xe,Ne),Ye[be.value]});else if(function $(fe){return"EnumValue"===fe.kind}(Ae))fe[be.value]=Ae.value;else{if(!function ae(fe){return"NullValue"===fe.kind}(Ae))throw new n(17);fe[be.value]=null}}function X(fe,be){var Ae=null;fe.directives&&(Ae={},fe.directives.forEach(function(je){Ae[je.name.value]={},je.arguments&&je.arguments.forEach(function(We){return me(Ae[je.name.value],We.name,We.value,be)})}));var Ne=null;return fe.arguments&&fe.arguments.length&&(Ne={},fe.arguments.forEach(function(je){return me(Ne,je.name,je.value,be)})),oe(fe.name.value,Ne,Ae)}var he=["connection","include","skip","client","rest","export"];function oe(fe,be,Ae){if(Ae&&Ae.connection&&Ae.connection.key){if(Ae.connection.filter&&Ae.connection.filter.length>0){var Ne=Ae.connection.filter?Ae.connection.filter:[];Ne.sort();var je=be,We={};return Ne.forEach(function(yt){We[yt]=je[yt]}),Ae.connection.key+"("+JSON.stringify(We)+")"}return Ae.connection.key}var Xe=fe;if(be){var Ye=R()(be);Xe+="("+Ye+")"}return Ae&&Object.keys(Ae).forEach(function(yt){-1===he.indexOf(yt)&&(Ae[yt]&&Object.keys(Ae[yt]).length?Xe+="@"+yt+"("+JSON.stringify(Ae[yt])+")":Xe+="@"+yt)}),Xe}function j(fe,be){if(fe.arguments&&fe.arguments.length){var Ae={};return fe.arguments.forEach(function(Ne){return me(Ae,Ne.name,Ne.value,be)}),Ae}return null}function re(fe){return fe.alias?fe.alias.value:fe.name.value}function J(fe){return"Field"===fe.kind}function ee(fe){return"InlineFragment"===fe.kind}function x(fe){return fe&&"id"===fe.type&&"boolean"==typeof fe.generated}function h(fe,be){return void 0===be&&(be=!1),(0,S.pi)({type:"id",generated:be},"string"==typeof fe?{id:fe,typename:void 0}:fe)}function b(fe){return null!=fe&&"object"==typeof fe&&"json"===fe.type}function T(fe){throw new n(18)}function M(fe,be){switch(void 0===be&&(be=T),fe.kind){case"Variable":return be(fe);case"NullValue":return null;case"IntValue":return parseInt(fe.value,10);case"FloatValue":return parseFloat(fe.value);case"ListValue":return fe.values.map(function(Xe){return M(Xe,be)});case"ObjectValue":for(var Ae={},Ne=0,je=fe.fields;Ne<je.length;Ne++){var We=je[Ne];Ae[We.name.value]=M(We.value,be)}return Ae;default:return fe.value}}function G(fe,be){if(fe.directives&&fe.directives.length){var Ae={};return fe.directives.forEach(function(Ne){Ae[Ne.name.value]=j(Ne,be)}),Ae}return null}function Z(fe,be){return void 0===be&&(be={}),xe(fe.directives).every(function(Ae){var Ne=Ae.directive,je=Ae.ifArgument,We=!1;return"Variable"===je.value.kind?c(void 0!==(We=be[je.value.name.value]),13):We=je.value.value,"skip"===Ne.name.value?!We:We})}function se(fe){var be=[];return(0,s.Vn)(fe,{Directive:function(Ae){be.push(Ae.name.value)}}),be}function ie(fe,be){return se(be).some(function(Ae){return fe.indexOf(Ae)>-1})}function _e(fe){return fe&&ie(["client"],fe)&&ie(["export"],fe)}function Te(fe){var be=fe.name.value;return"skip"===be||"include"===be}function xe(fe){return fe?fe.filter(Te).map(function(be){var Ae=be.arguments;c(Ae&&1===Ae.length,14);var je=Ae[0];c(je.name&&"if"===je.name.value,15);var We=je.value;return c(We&&("Variable"===We.kind||"BooleanValue"===We.kind),16),{directive:be,ifArgument:je}}):[]}function Oe(fe,be){var Ae=be,Ne=[];return fe.definitions.forEach(function(We){if("OperationDefinition"===We.kind)throw new n(11);"FragmentDefinition"===We.kind&&Ne.push(We)}),typeof Ae>"u"&&(c(1===Ne.length,12),Ae=Ne[0].name.value),(0,S.pi)((0,S.pi)({},fe),{definitions:(0,S.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:Ae}}]}}],fe.definitions)})}function Re(fe){for(var be=[],Ae=1;Ae<arguments.length;Ae++)be[Ae-1]=arguments[Ae];return be.forEach(function(Ne){typeof Ne>"u"||null===Ne||Object.keys(Ne).forEach(function(je){fe[je]=Ne[je]})}),fe}function H(fe){F(fe);var be=fe.definitions.filter(function(Ae){return"OperationDefinition"===Ae.kind&&"mutation"===Ae.operation})[0];return c(be,1),be}function F(fe){return c(fe&&"Document"===fe.kind,2),c(fe.definitions.filter(function(Ae){return"FragmentDefinition"!==Ae.kind}).map(function(Ae){if("OperationDefinition"!==Ae.kind)throw new n(3);return Ae}).length<=1,4),fe}function U(fe){return F(fe),fe.definitions.filter(function(be){return"OperationDefinition"===be.kind})[0]}function ue(fe){var be=U(fe);return c(be,5),be}function ye(fe){return fe.definitions.filter(function(be){return"OperationDefinition"===be.kind&&be.name}).map(function(be){return be.name.value})[0]||null}function Ce(fe){return fe.definitions.filter(function(be){return"FragmentDefinition"===be.kind})}function z(fe){var be=U(fe);return c(be&&"query"===be.operation,6),be}function le(fe){c("Document"===fe.kind,7),c(fe.definitions.length<=1,8);var be=fe.definitions[0];return c("FragmentDefinition"===be.kind,9),be}function ve(fe){F(fe);for(var be,Ae=0,Ne=fe.definitions;Ae<Ne.length;Ae++){var je=Ne[Ae];if("OperationDefinition"===je.kind){var We=je.operation;if("query"===We||"mutation"===We||"subscription"===We)return je}"FragmentDefinition"===je.kind&&!be&&(be=je)}if(be)return be;throw new n(10)}function Se(fe){void 0===fe&&(fe=[]);var be={};return fe.forEach(function(Ae){be[Ae.name.value]=Ae}),be}function Ie(fe){if(fe&&fe.variableDefinitions&&fe.variableDefinitions.length){var be=fe.variableDefinitions.filter(function(Ae){return Ae.defaultValue}).map(function(Ae){var We={};return me(We,Ae.variable.name,Ae.defaultValue),We});return Re.apply(void 0,(0,S.pr)([{}],be))}return{}}function Me(fe){var be=new Set;if(fe.variableDefinitions)for(var Ae=0,Ne=fe.variableDefinitions;Ae<Ne.length;Ae++)be.add(Ne[Ae].variable.name.value);return be}function Ke(fe,be,Ae){var Ne=0;return fe.forEach(function(je,We){be.call(this,je,We,fe)&&(fe[Ne++]=je)},Ae),fe.length=Ne,fe}var Ze={kind:"Field",name:{kind:"Name",value:"__typename"}};function $e(fe,be){return fe.selectionSet.selections.every(function(Ae){return"FragmentSpread"===Ae.kind&&$e(be[Ae.name.value],be)})}function gt(fe){return $e(U(fe)||le(fe),Se(Ce(fe)))?null:fe}function qe(fe){return function(Ae){return fe.some(function(Ne){return Ne.name&&Ne.name===Ae.name.value||Ne.test&&Ne.test(Ae)})}}function ke(fe,be){var Ae=Object.create(null),Ne=[],je=Object.create(null),We=[],Xe=gt((0,s.Vn)(be,{Variable:{enter:function(Ye,yt,_t){"VariableDefinition"!==_t.kind&&(Ae[Ye.name.value]=!0)}},Field:{enter:function(Ye){if(fe&&Ye.directives&&fe.some(function(_t){return _t.remove})&&Ye.directives&&Ye.directives.some(qe(fe)))return Ye.arguments&&Ye.arguments.forEach(function(_t){"Variable"===_t.value.kind&&Ne.push({name:_t.value.name.value})}),Ye.selectionSet&&Dt(Ye.selectionSet).forEach(function(_t){We.push({name:_t.name.value})}),null}},FragmentSpread:{enter:function(Ye){je[Ye.name.value]=!0}},Directive:{enter:function(Ye){if(qe(fe)(Ye))return null}}}));return Xe&&Ke(Ne,function(Ye){return!Ae[Ye.name]}).length&&(Xe=ht(Ne,Xe)),Xe&&Ke(We,function(Ye){return!je[Ye.name]}).length&&(Xe=Nt(We,Xe)),Xe}function bt(fe){return(0,s.Vn)(F(fe),{SelectionSet:{enter:function(be,Ae,Ne){if(!Ne||"OperationDefinition"!==Ne.kind){var je=be.selections;if(je&&!je.some(function(Ye){return J(Ye)&&("__typename"===Ye.name.value||0===Ye.name.value.lastIndexOf("__",0))})){var Xe=Ne;if(!(J(Xe)&&Xe.directives&&Xe.directives.some(function(Ye){return"export"===Ye.name.value})))return(0,S.pi)((0,S.pi)({},be),{selections:(0,S.pr)(je,[Ze])})}}}}})}var yr={test:function(fe){var be="connection"===fe.name.value;return be&&(!fe.arguments||fe.arguments.some(function(Ae){return"key"===Ae.name.value})),be}};function $t(fe){return ke([yr],F(fe))}function Gt(fe,be,Ae){return void 0===Ae&&(Ae=!0),be&&be.selections&&be.selections.some(function(Ne){return Wt(fe,Ne,Ae)})}function Wt(fe,be,Ae){return void 0===Ae&&(Ae=!0),!J(be)||!!be.directives&&(be.directives.some(qe(fe))||Ae&&Gt(fe,be.selectionSet,Ae))}function Rt(fe,be){var Ae;return F(be),gt((0,s.Vn)(be,{SelectionSet:{enter:function(Ne,je,We,Xe){var Ye=Xe.join("-");if(!Ae||Ye===Ae||!Ye.startsWith(Ae)){if(Ne.selections){var yt=Ne.selections.filter(function(_t){return Wt(fe,_t)});return Gt(fe,Ne,!1)&&(Ae=Ye),(0,S.pi)((0,S.pi)({},Ne),{selections:yt})}return null}}}}))}function ht(fe,be){var Ae=function St(fe){return function(Ae){return fe.some(function(Ne){return Ae.value&&"Variable"===Ae.value.kind&&Ae.value.name&&(Ne.name===Ae.value.name.value||Ne.test&&Ne.test(Ae))})}}(fe);return gt((0,s.Vn)(be,{OperationDefinition:{enter:function(Ne){return(0,S.pi)((0,S.pi)({},Ne),{variableDefinitions:Ne.variableDefinitions.filter(function(je){return!fe.some(function(We){return We.name===je.variable.name.value})})})}},Field:{enter:function(Ne){if(fe.some(function(Xe){return Xe.remove})){var We=0;if(Ne.arguments.forEach(function(Xe){Ae(Xe)&&(We+=1)}),1===We)return null}}},Argument:{enter:function(Ne){if(Ae(Ne))return null}}}))}function Nt(fe,be){function Ae(Ne){if(fe.some(function(je){return je.name===Ne.name.value}))return null}return gt((0,s.Vn)(be,{FragmentSpread:{enter:Ae},FragmentDefinition:{enter:Ae}}))}function Dt(fe){var be=[];return fe.selections.forEach(function(Ae){(J(Ae)||ee(Ae))&&Ae.selectionSet?Dt(Ae.selectionSet).forEach(function(Ne){return be.push(Ne)}):"FragmentSpread"===Ae.kind&&be.push(Ae)}),be}function Tt(fe){return"query"===ve(fe).operation?fe:(0,s.Vn)(fe,{OperationDefinition:{enter:function(je){return(0,S.pi)((0,S.pi)({},je),{operation:"query"})}}})}function mt(fe){F(fe);var be=ke([{test:function(Ae){return"client"===Ae.name.value},remove:!0}],fe);return be&&(be=(0,s.Vn)(be,{FragmentDefinition:{enter:function(Ae){if(Ae.selectionSet&&Ae.selectionSet.selections.every(function(je){return J(je)&&"__typename"===je.name.value}))return null}}})),be}var Qt="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),er=Object.prototype.toString;function Mt(fe){return Ht(fe,new Map)}function Ht(fe,be){switch(er.call(fe)){case"[object Array]":if(be.has(fe))return be.get(fe);var Ae=fe.slice(0);return be.set(fe,Ae),Ae.forEach(function(je,We){Ae[We]=Ht(je,be)}),Ae;case"[object Object]":if(be.has(fe))return be.get(fe);var Ne=Object.create(Object.getPrototypeOf(fe));return be.set(fe,Ne),Object.keys(fe).forEach(function(je){Ne[je]=Ht(fe[je],be)}),Ne;default:return fe}}function gr(){return typeof process<"u"?"production":"development"}function wt(fe){return gr()===fe}function Ut(){return!0===wt("production")}function Bt(){return!0===wt("development")}function Er(){return!0===wt("test")}function Lt(fe){try{return fe()}catch(be){console.error&&console.error(be)}}function cr(fe){return fe.errors&&fe.errors.length}function jr(fe){return Object.freeze(fe),Object.getOwnPropertyNames(fe).forEach(function(be){null!==fe[be]&&("object"==typeof fe[be]||"function"==typeof fe[be])&&!Object.isFrozen(fe[be])&&jr(fe[be])}),fe}function zt(fe){return!Bt()&&!Er()||"function"==typeof Symbol&&"string"==typeof Symbol("")?fe:jr(fe)}var an=Object.prototype.hasOwnProperty;function fr(){for(var fe=[],be=0;be<arguments.length;be++)fe[be]=arguments[be];return nr(fe)}function nr(fe){var be=fe[0]||{},Ae=fe.length;if(Ae>1){var Ne=[];be=br(be,Ne);for(var je=1;je<Ae;++je)be=lr(be,fe[je],Ne)}return be}function jt(fe){return null!==fe&&"object"==typeof fe}function lr(fe,be,Ae){return jt(be)&&jt(fe)?(Object.isExtensible&&!Object.isExtensible(fe)&&(fe=br(fe,Ae)),Object.keys(be).forEach(function(Ne){var je=be[Ne];if(an.call(fe,Ne)){var We=fe[Ne];je!==We&&(fe[Ne]=lr(br(We,Ae),je,Ae))}else fe[Ne]=je}),fe):be}function br(fe,be){return null!==fe&&"object"==typeof fe&&be.indexOf(fe)<0&&(fe=Array.isArray(fe)?fe.slice(0):(0,S.pi)({__proto__:Object.getPrototypeOf(fe)},fe),be.push(fe)),fe}var Tr=Object.create({});function ze(fe,be){void 0===be&&(be="warn"),!Ut()&&!Tr[fe]&&(Er()||(Tr[fe]=!0),"error"===be?console.error(fe):console.warn(fe))}function on(fe){return JSON.parse(JSON.stringify(fe))}},45011:function(ne,L,d){"use strict";var I,s=this&&this.__extends||(I=function(B,K){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,W){q.__proto__=W}||function(q,W){for(var O in W)W.hasOwnProperty(O)&&(q[O]=W[O])})(B,K)},function(B,K){function q(){this.constructor=B}I(B,K),B.prototype=null===K?Object.create(K):(q.prototype=K.prototype,new q)}),S=this&&this.__assign||function(){return S=Object.assign||function(I){for(var B,K=1,q=arguments.length;K<q;K++)for(var W in B=arguments[K])Object.prototype.hasOwnProperty.call(B,W)&&(I[W]=B[W]);return I},S.apply(this,arguments)},l=this&&this.__awaiter||function(I,B,K,q){return new(K||(K=Promise))(function(O,w){function f(N){try{p(q.next(N))}catch(V){w(V)}}function y(N){try{p(q.throw(N))}catch(V){w(V)}}function p(N){N.done?O(N.value):function W(O){return O instanceof K?O:new K(function(w){w(O)})}(N.value).then(f,y)}p((q=q.apply(I,B||[])).next())})},t=this&&this.__generator||function(I,B){var q,W,O,w,K={label:0,sent:function(){if(1&O[0])throw O[1];return O[1]},trys:[],ops:[]};return w={next:f(0),throw:f(1),return:f(2)},"function"==typeof Symbol&&(w[Symbol.iterator]=function(){return this}),w;function f(p){return function(N){return function y(p){if(q)throw new TypeError("Generator is already executing.");for(;K;)try{if(q=1,W&&(O=2&p[0]?W.return:p[0]?W.throw||((O=W.return)&&O.call(W),0):W.next)&&!(O=O.call(W,p[1])).done)return O;switch(W=0,O&&(p=[2&p[0],O.value]),p[0]){case 0:case 1:O=p;break;case 4:return K.label++,{value:p[1],done:!1};case 5:K.label++,W=p[1],p=[0];continue;case 7:p=K.ops.pop(),K.trys.pop();continue;default:if(!(O=(O=K.trys).length>0&&O[O.length-1])&&(6===p[0]||2===p[0])){K=0;continue}if(3===p[0]&&(!O||p[1]>O[0]&&p[1]<O[3])){K.label=p[1];break}if(6===p[0]&&K.label<O[1]){K.label=O[1],O=p;break}if(O&&K.label<O[2]){K.label=O[2],K.ops.push(p);break}O[2]&&K.ops.pop(),K.trys.pop();continue}p=B.call(I,K)}catch(N){p=[6,N],W=0}finally{q=O=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,N])}}};Object.defineProperty(L,"__esModule",{value:!0});var E,r=d(13445),n=d(71352),c=d(2745),o=d(54983),u=d(32246),v=d(44226);L.USER_AGENT_HEADER="x-amz-user-agent",L.USER_AGENT="aws-amplify/"+v.version+(u.userAgent&&" ")+u.userAgent,function(I){I.NONE="NONE",I.API_KEY="API_KEY",I.AWS_IAM="AWS_IAM",I.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",I.OPENID_CONNECT="OPENID_CONNECT"}(E=L.AUTH_TYPE||(L.AUTH_TYPE={}));var R=function(I){function B(K){var q=I.call(this)||this;return q.link=L.authLink(K),q}return s(B,I),B.prototype.request=function(K,q){return this.link.request(K,q)},B}(r.ApolloLink);L.AuthLink=R;var P=function(I,B,K){var q=void 0===I?{header:"",value:""}:I,W=q.header,O=q.value;return l(void 0,void 0,void 0,function(){var w,f,p,N,V;return t(this,function(Q){switch(Q.label){case 0:return w=B.getContext(),f=S(S({},w.headers),((N={})[L.USER_AGENT_HEADER]=L.USER_AGENT,N)),W&&O?"function"!=typeof O?[3,2]:[4,O.call(void 0)]:[3,5];case 1:return p=Q.sent(),[3,4];case 2:return[4,O];case 3:p=Q.sent(),Q.label=4;case 4:f=S(((V={})[W]=p,V),f),Q.label=5;case 5:return B.setContext(S(S({},w),{headers:f})),[2,K(B)]}})})};L.authLink=function(I){var B=I.url,K=I.region,q=I.auth,W=(void 0===q?{}:q).type,O=I.auth;return new r.ApolloLink(function(w,f){return new r.Observable(function(y){var p,N;switch(W){case E.NONE:N=P(void 0,w,f);break;case E.AWS_IAM:var V=O.credentials;N=function(I,B,K){var q=I.credentials,W=I.region,O=I.url;return l(void 0,void 0,void 0,function(){var w,f,y,p,N,V,Q,$,ae,me,X,he,oe;return t(this,function(j){switch(j.label){case 0:return w="appsync",f=B.getContext(),(y="function"==typeof q?q.call():q||{})&&"function"==typeof y.getPromise?[4,y.getPromise()]:[3,2];case 1:j.sent(),j.label=2;case 2:return[4,y];case 3:return p=j.sent(),N=p.accessKeyId,V=p.secretAccessKey,Q=p.sessionToken,$=o.parse(O),ae=$.host,me=$.path,X=S(S({},A(B,{})),{service:w,region:W,url:O,host:ae,path:me}),he=c.Signer.sign(X,{access_key:N,secret_key:V,session_token:Q}).headers,B.setContext(S(S({},f),{headers:S(S(S({},f.headers),he),(oe={},oe[L.USER_AGENT_HEADER]=L.USER_AGENT,oe))})),[2,K(B)]}})})}({credentials:void 0===V?{}:V,region:K,url:B},w,f);break;case E.API_KEY:var $=O.apiKey;N=P({header:"X-Api-Key",value:void 0===$?"":$},w,f);break;case E.AMAZON_COGNITO_USER_POOLS:case E.OPENID_CONNECT:var me=O.jwtToken;N=P({header:"Authorization",value:void 0===me?"":me},w,f);break;default:throw new Error("Invalid AUTH_TYPE: "+O.type)}return N.then(function(oe){p=oe.subscribe({next:y.next.bind(y),error:y.error.bind(y),complete:y.complete.bind(y)})}),function(){p&&p.unsubscribe()}})})};var A=function(I,B){var W=I.query,O={operationName:I.operationName,variables:_(I.variables),query:n.print(W)};return S(S({body:JSON.stringify(O),method:"POST"},B),{headers:S({accept:"*/*","content-type":"application/json; charset=UTF-8"},B.headers)})},_=function(I){return Object.keys(I).filter(function(B){return!B.startsWith("@@")}).reduce(function(B,K){return B[K]=I[K],B},{})}},60506:(ne,L,d)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var s=d(45011);L.AuthLink=s.AuthLink,L.AUTH_TYPE=s.AUTH_TYPE,L.USER_AGENT_HEADER=s.USER_AGENT_HEADER,L.USER_AGENT=s.USER_AGENT,L.createAuthLink=function(l){return new s.AuthLink({url:l.url,region:l.region,auth:l.auth})};var S=d(2745);L.Signer=S.Signer},32246:(ne,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.userAgent=""},2745:(ne,L,d)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0}),function s(S){for(var l in S)L.hasOwnProperty(l)||(L[l]=S[l])}(d(31748))},31748:(ne,L,d)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0}),global.Buffer=global.Buffer||d(8754).lW;var s=d(54983),S=d(36469).util.crypto,l=function(A,_,I){return void 0===I&&(I=""),S.lib.createHmac("sha256",A).update(_,"utf8").digest(I)},t=function(A){return A=A||"",S.createHash("sha256").update(A,"utf8").digest("hex")},r=function(A){return A&&0!==Object.keys(A).length?Object.keys(A).map(function(_){return{key:_.toLowerCase(),value:A[_]?A[_].trim().replace(/\s+/g," "):""}}).sort(function(_,I){return _.key<I.key?-1:1}).map(function(_){return _.key+":"+_.value}).join("\n")+"\n":""},n=function(A){return Object.keys(A).map(function(_){return _.toLowerCase()}).sort().join(";")},P=function(A,_,I){void 0===I&&(I=null),A.headers=A.headers||{};var K=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),q=K.substr(0,8),W="AWS4-HMAC-SHA256",O=s.parse(A.url);A.headers.host=O.host,A.headers["x-amz-date"]=K,_.session_token&&(A.headers["X-Amz-Security-Token"]=_.session_token);var w=function(A){var _=s.parse(A.url);return[A.method||"/",_.path,_.query,r(A.headers),n(A.headers),t(A.body)].join("\n")}(A);I=I||function(A){var K=(s.parse(A.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===K[1]&&(K=K.reverse()),{service:A.service||K[0],region:A.region||K[1]}}(A);var f=function(A,_,I){return[A,_,I,"aws4_request"].join("/")}(q,I.region,I.service),y=function(A,_,I,B){return[A,I,B,t(_)].join("\n")}(W,w,K,f),p=function(A,_,I){void 0===A&&(A="");var K=l("AWS4"+A,_),q=l(K,I.region),W=l(q,I.service);return l(W,"aws4_request")}(_.secret_key,q,I),N=function(A,_){return l(A,_,"hex")}(p,y),V=function(A,_,I,B,K){return void 0===_&&(_=""),["AWS4-HMAC-SHA256 Credential="+_+"/"+I,"SignedHeaders="+B,"Signature="+K].join(", ")}(0,_.access_key,f,n(A.headers),N);return A.headers.Authorization=V,A},D=function(){function A(){}return A.sign=P,A}();L.Signer=D,L.default=D},55748:function(ne,L,d){"use strict";var s=this&&this.__rest||function(o,u){var v={};for(var m in o)Object.prototype.hasOwnProperty.call(o,m)&&u.indexOf(m)<0&&(v[m]=o[m]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var E=0;for(m=Object.getOwnPropertySymbols(o);E<m.length;E++)u.indexOf(m[E])<0&&Object.prototype.propertyIsEnumerable.call(o,m[E])&&(v[m[E]]=o[m[E]])}return v};Object.defineProperty(L,"__esModule",{value:!0});var S=d(61829);L.CONTROL_EVENTS_KEY=S.CONTROL_EVENTS_KEY;var l=d(13445),t=d(4614),r=d(71056),n=d(70147);L.createSubscriptionHandshakeLink=function c(o,u){var v,m;return"string"==typeof o?(v=u||l.createHttpLink({uri:o}),m=l.ApolloLink.from([new r.NonTerminatingLink("controlMessages",{link:new l.ApolloLink(function(R,P){return new l.Observable(function(D){var A,_=R.variables,I=S.CONTROL_EVENTS_KEY,B=_[I],K=s(_,["symbol"==typeof I?I:I+""]);return typeof B<"u"&&(R.variables=K),D.next(((A={})[S.CONTROL_EVENTS_KEY]=B,A)),function(){}})})}),new r.NonTerminatingLink("subsInfo",{link:v}),new S.SubscriptionHandshakeLink("subsInfo")])):(v=u||l.createHttpLink({uri:o.url}),m=new n.AppSyncRealTimeSubscriptionHandshakeLink(o)),l.ApolloLink.split(function(R){var D=t.getMainDefinition(R.query);return"OperationDefinition"===D.kind&&"subscription"===D.operation},m,v)}},71056:function(ne,L,d){"use strict";var o,s=this&&this.__extends||(o=function(u,v){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,E){m.__proto__=E}||function(m,E){for(var R in E)E.hasOwnProperty(R)&&(m[R]=E[R])})(u,v)},function(u,v){function m(){this.constructor=u}o(u,v),u.prototype=null===v?Object.create(v):(m.prototype=v.prototype,new m)}),S=this&&this.__assign||function(){return S=Object.assign||function(o){for(var u,v=1,m=arguments.length;v<m;v++)for(var E in u=arguments[v])Object.prototype.hasOwnProperty.call(u,E)&&(o[E]=u[E]);return o},S.apply(this,arguments)},l=this&&this.__awaiter||function(o,u,v,m){return new(v||(v=Promise))(function(R,P){function D(I){try{_(m.next(I))}catch(B){P(B)}}function A(I){try{_(m.throw(I))}catch(B){P(B)}}function _(I){I.done?R(I.value):function E(R){return R instanceof v?R:new v(function(P){P(R)})}(I.value).then(D,A)}_((m=m.apply(o,u||[])).next())})},t=this&&this.__generator||function(o,u){var m,E,R,P,v={label:0,sent:function(){if(1&R[0])throw R[1];return R[1]},trys:[],ops:[]};return P={next:D(0),throw:D(1),return:D(2)},"function"==typeof Symbol&&(P[Symbol.iterator]=function(){return this}),P;function D(_){return function(I){return function A(_){if(m)throw new TypeError("Generator is already executing.");for(;v;)try{if(m=1,E&&(R=2&_[0]?E.return:_[0]?E.throw||((R=E.return)&&R.call(E),0):E.next)&&!(R=R.call(E,_[1])).done)return R;switch(E=0,R&&(_=[2&_[0],R.value]),_[0]){case 0:case 1:R=_;break;case 4:return v.label++,{value:_[1],done:!1};case 5:v.label++,E=_[1],_=[0];continue;case 7:_=v.ops.pop(),v.trys.pop();continue;default:if(!(R=(R=v.trys).length>0&&R[R.length-1])&&(6===_[0]||2===_[0])){v=0;continue}if(3===_[0]&&(!R||_[1]>R[0]&&_[1]<R[3])){v.label=_[1];break}if(6===_[0]&&v.label<R[1]){v.label=R[1],R=_;break}if(R&&v.label<R[2]){v.label=R[2],v.ops.push(_);break}R[2]&&v.ops.pop(),v.trys.pop();continue}_=u.call(o,v)}catch(I){_=[6,I],E=0}finally{m=R=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([_,I])}}};Object.defineProperty(L,"__esModule",{value:!0});var r=d(13445),n=d(54813),c=function(o){function u(v,m){var E=m.link,R=o.call(this)||this;return R.contextKey=v,R.link=E,R}return s(u,o),u.prototype.request=function(v,m){var E=this;return n.setContext(function(R,P){return l(E,void 0,void 0,function(){var D,A,_=this;return t(this,function(I){switch(I.label){case 0:return[4,new Promise(function(B,K){_.link.request(v).subscribe({next:B,error:K})})];case 1:return D=I.sent(),[2,S(S({},P),(A={},A[this.contextKey]=D,A))]}})})}).request(v,m)},u}(r.ApolloLink);L.NonTerminatingLink=c},70147:function(ne,L,d){"use strict";var q,s=this&&this.__extends||(q=function(W,O){return(q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,f){w.__proto__=f}||function(w,f){for(var y in f)f.hasOwnProperty(y)&&(w[y]=f[y])})(W,O)},function(W,O){function w(){this.constructor=W}q(W,O),W.prototype=null===O?Object.create(O):(w.prototype=O.prototype,new w)}),S=this&&this.__assign||function(){return S=Object.assign||function(q){for(var W,O=1,w=arguments.length;O<w;O++)for(var f in W=arguments[O])Object.prototype.hasOwnProperty.call(W,f)&&(q[f]=W[f]);return q},S.apply(this,arguments)},l=this&&this.__awaiter||function(q,W,O,w){return new(O||(O=Promise))(function(y,p){function N($){try{Q(w.next($))}catch(ae){p(ae)}}function V($){try{Q(w.throw($))}catch(ae){p(ae)}}function Q($){$.done?y($.value):function f(y){return y instanceof O?y:new O(function(p){p(y)})}($.value).then(N,V)}Q((w=w.apply(q,W||[])).next())})},t=this&&this.__generator||function(q,W){var w,f,y,p,O={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return p={next:N(0),throw:N(1),return:N(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function N(Q){return function($){return function V(Q){if(w)throw new TypeError("Generator is already executing.");for(;O;)try{if(w=1,f&&(y=2&Q[0]?f.return:Q[0]?f.throw||((y=f.return)&&y.call(f),0):f.next)&&!(y=y.call(f,Q[1])).done)return y;switch(f=0,y&&(Q=[2&Q[0],y.value]),Q[0]){case 0:case 1:y=Q;break;case 4:return O.label++,{value:Q[1],done:!1};case 5:O.label++,f=Q[1],Q=[0];continue;case 7:Q=O.ops.pop(),O.trys.pop();continue;default:if(!(y=(y=O.trys).length>0&&y[y.length-1])&&(6===Q[0]||2===Q[0])){O=0;continue}if(3===Q[0]&&(!y||Q[1]>y[0]&&Q[1]<y[3])){O.label=Q[1];break}if(6===Q[0]&&O.label<y[1]){O.label=y[1],y=Q;break}if(y&&O.label<y[2]){O.label=y[2],O.ops.push(Q);break}y[2]&&O.ops.pop(),O.trys.pop();continue}Q=W.call(q,O)}catch($){Q=[6,$],f=0}finally{w=y=0}if(5&Q[0])throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}([Q,$])}}};Object.defineProperty(L,"__esModule",{value:!0});var r=d(13445),n=d(93682),c=d(60506),o=d(72660),u=d(54983),v=d(43762),m=d(32173),E=d(65689),R=n.rootLogger.extend("subscriptions");L.CONTROL_EVENTS_KEY="@@controlEvents";var P=[400,401,403],A={accept:"application/json, text/javascript","content-encoding":"amz-1.0","content-type":"application/json; charset=UTF-8"},B=3e5,K=function(q){function W(O){var w=O.url,f=O.region,y=O.auth,p=q.call(this)||this;return p.socketStatus=m.SOCKET_STATUS.CLOSED,p.keepAliveTimeout=B,p.subscriptionObserverMap=new Map,p.promiseArray=[],p.url=w,p.region=f,p.auth=y,p}return s(W,q),W.prototype.request=function(O){var w,f=this,y=O.query,p=O.variables,N=O.getContext(),V=N.controlMessages,Q=L.CONTROL_EVENTS_KEY,$=(void 0===V?(w={},w[L.CONTROL_EVENTS_KEY]=void 0,w):V)[Q],ae=N.headers;return new r.Observable(function(me){if(f.url){var X=v.v4(),he={appSyncGraphqlEndpoint:f.url,authenticationType:f.auth.type,query:o.print(y),region:f.region,graphql_headers:function(){return ae},variables:p,apiKey:f.auth.type===c.AUTH_TYPE.API_KEY?f.auth.apiKey:"",credentials:f.auth.type===c.AUTH_TYPE.AWS_IAM?f.auth.credentials:null,jwtToken:f.auth.type===c.AUTH_TYPE.AMAZON_COGNITO_USER_POOLS||f.auth.type===c.AUTH_TYPE.OPENID_CONNECT?f.auth.jwtToken:null};return f._startSubscriptionWithAWSAppSyncRealTime({options:he,observer:me,subscriptionId:X}),function(){return l(f,void 0,void 0,function(){return t(this,function(j){try{if(this._verifySubscriptionAlreadyStarted(X),this.subscriptionObserverMap.get(X).subscriptionState!==m.SUBSCRIPTION_STATUS.CONNECTED)throw new Error("Subscription has failed, starting to remove subscription.");this._sendUnsubscriptionMessage(X)}catch{return this._removeSubscriptionObserver(X),[2]}return[2]})})}}me.error({errors:[S({},new o.GraphQLError("Subscribe only available for AWS AppSync endpoint"))]}),me.complete()}).filter(function(me){var X=me.extensions,he=(void 0===X?{}:X).controlMsgType;return!0===$||!(typeof(void 0===he?void 0:he)<"u")})},W.prototype._verifySubscriptionAlreadyStarted=function(O){return l(this,void 0,void 0,function(){var f=this;return t(this,function(y){return this.subscriptionObserverMap.get(O).subscriptionState===m.SUBSCRIPTION_STATUS.PENDING?[2,new Promise(function(p,N){var V=f.subscriptionObserverMap.get(O);f.subscriptionObserverMap.set(O,{observer:V.observer,subscriptionState:V.subscriptionState,variables:V.variables,query:V.query,subscriptionReadyCallback:p,subscriptionFailedCallback:N})})]:[2]})})},W.prototype._sendUnsubscriptionMessage=function(O){try{if(this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.socketStatus===m.SOCKET_STATUS.READY){var f=JSON.stringify({id:O,type:m.MESSAGE_TYPES.GQL_STOP});this.awsRealTimeSocket.send(f),this._removeSubscriptionObserver(O)}}catch(y){R({err:y})}},W.prototype._removeSubscriptionObserver=function(O){this.subscriptionObserverMap.delete(O),0===this.subscriptionObserverMap.size&&this._closeSocketWhenFlushed()},W.prototype._closeSocketWhenFlushed=function(){R("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=m.SOCKET_STATUS.CLOSED):this.socketStatus=m.SOCKET_STATUS.CLOSED},W.prototype._startSubscriptionWithAWSAppSyncRealTime=function(O){var w=O.options,f=O.observer,y=O.subscriptionId;return l(this,void 0,void 0,function(){var p,N,V,Q,$,ae,me,X,he,oe,j,re,J,ee,x,h,b,T,M,G,se,ie,xe,Oe=this;return t(this,function(Re){switch(Re.label){case 0:return p=w.appSyncGraphqlEndpoint,N=w.authenticationType,$=w.apiKey,ae=w.region,X=void 0===(me=w.graphql_headers)?function(){return{}}:me,he=w.credentials,oe=w.jwtToken,re={query:V=w.query,variables:Q=w.variables},this.subscriptionObserverMap.set(y,{observer:f,query:V,variables:Q,subscriptionState:j=m.SUBSCRIPTION_STATUS.PENDING,startAckTimeoutId:null}),J=JSON.stringify(re),x=[{}],[4,this._awsRealTimeHeaderBasedAuth({apiKey:$,appSyncGraphqlEndpoint:p,authenticationType:N,payload:J,canonicalUri:"",region:ae,credentials:he,jwtToken:oe})];case 1:return h=[S.apply(void 0,x.concat([Re.sent()]))],[4,X()];case 2:ee=S.apply(void 0,[S.apply(void 0,h.concat([Re.sent()])),(xe={},xe[c.USER_AGENT_HEADER]=c.USER_AGENT,xe)]),b={id:y,payload:{data:J,extensions:{authorization:S({},ee)}},type:m.MESSAGE_TYPES.GQL_START},T=JSON.stringify(b),Re.label=3;case 3:return Re.trys.push([3,5,,6]),[4,this._initializeWebSocketConnection({apiKey:$,appSyncGraphqlEndpoint:p,authenticationType:N,region:ae,credentials:he,jwtToken:oe})];case 4:return Re.sent(),[3,6];case 5:return M=Re.sent(),f.error({errors:[S({},new o.GraphQLError("Connection failed: "+(void 0===(G=M.message)?"":G)))]}),f.complete(),"function"==typeof(se=(this.subscriptionObserverMap.get(y)||{}).subscriptionFailedCallback)&&se(),[2];case 6:return ie=this.subscriptionObserverMap.get(y),this.subscriptionObserverMap.set(y,{observer:f,subscriptionState:j,variables:Q,query:V,subscriptionReadyCallback:ie.subscriptionReadyCallback,subscriptionFailedCallback:ie.subscriptionFailedCallback,startAckTimeoutId:setTimeout(function(){Oe._timeoutStartSubscriptionAck.call(Oe,y)},15e3)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send(T),[2]}})})},W.prototype._initializeWebSocketConnection=function(O){var w=this,f=O.appSyncGraphqlEndpoint,y=O.authenticationType,p=O.apiKey,N=O.region,V=O.credentials,Q=O.jwtToken;if(this.socketStatus!==m.SOCKET_STATUS.READY)return new Promise(function($,ae){return l(w,void 0,void 0,function(){var me,X,he,oe,j,re,J,x;return t(this,function(h){switch(h.label){case 0:if(this.promiseArray.push({res:$,rej:ae}),this.socketStatus!==m.SOCKET_STATUS.CLOSED)return[3,5];h.label=1;case 1:return h.trys.push([1,4,,5]),this.socketStatus=m.SOCKET_STATUS.CONNECTING,me=W._discoverAppSyncRealTimeEndpoint(this.url),X="{}",j=(oe=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:y,payload:X,canonicalUri:"/connect",apiKey:p,appSyncGraphqlEndpoint:f,region:N,credentials:V,jwtToken:Q})];case 2:return he=j.apply(oe,[h.sent()]),re=Buffer.from(he).toString("base64"),J=Buffer.from(X).toString("base64"),[4,this._initializeRetryableHandshake({awsRealTimeUrl:me+"?header="+re+"&payload="+J})];case 3:return h.sent(),this.promiseArray.forEach(function(b){var T=b.res;R("Notifying connection successful"),T()}),this.socketStatus=m.SOCKET_STATUS.READY,this.promiseArray=[],[3,5];case 4:return x=h.sent(),this.promiseArray.forEach(function(b){return(0,b.rej)(x)}),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=null,this.socketStatus=m.SOCKET_STATUS.CLOSED,[3,5];case 5:return[2]}})})})},W.prototype._awsRealTimeHeaderBasedAuth=function(O){var w=O.authenticationType,f=O.payload,y=O.canonicalUri,p=O.appSyncGraphqlEndpoint,N=O.apiKey,V=O.region,Q=O.credentials,$=O.jwtToken;return l(this,void 0,void 0,function(){var ae,me,X;return t(this,function(oe){switch(oe.label){case 0:return ae={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(me=ae[w])?(R("Authentication type "+w+" not supported"),[2,{}]):(X=u.parse(p).host,[4,me({payload:f,canonicalUri:y,appSyncGraphqlEndpoint:p,apiKey:N,region:V,host:X,credentials:Q,jwtToken:$})]);case 1:return[2,oe.sent()]}})})},W.prototype._awsRealTimeOPENIDHeader=function(O){var w=O.host,f=O.jwtToken;return l(this,void 0,void 0,function(){var y,p;return t(this,function(N){switch(N.label){case 0:return y={},"function"!=typeof f?[3,2]:[4,f.call(void 0)];case 1:return p=N.sent(),[3,4];case 2:return[4,f];case 3:p=N.sent(),N.label=4;case 4:return[2,(y.Authorization=p,y.host=w,y)]}})})},W.prototype._awsRealTimeApiKeyHeader=function(O){var w=O.apiKey,f=O.host;return l(this,void 0,void 0,function(){var y,p;return t(this,function(N){return y=new Date,p=y.toISOString().replace(/[:\-]|\.\d{3}/g,""),[2,{host:f,"x-amz-date":p,"x-api-key":w}]})})},W.prototype._awsRealTimeIAMHeader=function(O){var w=O.payload,f=O.canonicalUri,y=O.appSyncGraphqlEndpoint,p=O.region,N=O.credentials;return l(this,void 0,void 0,function(){var V,Q,$,he,oe;return t(this,function(re){switch(re.label){case 0:return V={region:p,service:"appsync"},(Q="function"==typeof N?N.call():N||{})&&"function"==typeof Q.getPromise?[4,Q.getPromise()]:[3,2];case 1:re.sent(),re.label=2;case 2:if(!Q)throw new Error("No credentials");return[4,Q];case 3:return $=re.sent(),he={access_key:$.accessKeyId,secret_key:$.secretAccessKey,session_token:$.sessionToken},oe={url:""+y+f,body:w,method:"POST",headers:S({},A)},[2,c.Signer.sign(oe,he,V).headers]}})})},W.prototype._initializeRetryableHandshake=function(O){var w=O.awsRealTimeUrl;return l(this,void 0,void 0,function(){return t(this,function(f){switch(f.label){case 0:return R("Initializaling retryable Handshake"),[4,E.jitteredExponentialRetry(this._initializeHandshake.bind(this),[{awsRealTimeUrl:w}])];case 1:return f.sent(),[2]}})})},W.prototype._initializeHandshake=function(O){var w=O.awsRealTimeUrl;return l(this,void 0,void 0,function(){var f,y,N=this;return t(this,function(V){switch(V.label){case 0:R("Initializing handshake "+w),V.label=1;case 1:return V.trys.push([1,4,,5]),[4,new Promise(function(Q,$){var ae=W.createWebSocket(w,"graphql-ws");ae.onerror=function(){R("WebSocket connection error")},ae.onclose=function(){$(new Error("Connection handshake error"))},ae.onopen=function(){return N.awsRealTimeSocket=ae,Q()}})];case 2:return V.sent(),[4,new Promise(function(Q,$){var ae=!1;N.awsRealTimeSocket.onerror=function(he){R("WebSocket closed "+JSON.stringify(he))},N.awsRealTimeSocket.onclose=function(he){R("WebSocket closed "+he.reason),$(new Error(JSON.stringify(he)))},N.awsRealTimeSocket.onmessage=function(he){R("subscription message from AWS AppSyncRealTime: "+he.data+" ");var oe=JSON.parse(he.data),j=oe.type,re=oe.payload,J=(void 0===re?{}:re).connectionTimeoutMs;if(j===m.MESSAGE_TYPES.GQL_CONNECTION_ACK)return ae=!0,N.keepAliveTimeout=void 0===J?B:J,N.awsRealTimeSocket.onmessage=N._handleIncomingSubscriptionMessage.bind(N),N.awsRealTimeSocket.onerror=function(ie){R(ie),N._errorDisconnect(m.CONTROL_MSG.CONNECTION_CLOSED)},N.awsRealTimeSocket.onclose=function(ie){R("WebSocket closed "+ie.reason),N._errorDisconnect(m.CONTROL_MSG.CONNECTION_CLOSED)},void Q("Cool, connected to AWS AppSyncRealTime");if(j===m.MESSAGE_TYPES.GQL_CONNECTION_ERROR){var x=oe.payload,h=(void 0===x?{}:x).errors,b=(void 0===h?[]:h)[0],T=void 0===b?{}:b,M=T.errorType,Z=T.errorCode;$({errorType:void 0===M?"":M,errorCode:void 0===Z?0:Z})}},N.awsRealTimeSocket.send(JSON.stringify({type:m.MESSAGE_TYPES.GQL_CONNECTION_INIT})),setTimeout(function X(){ae||$(new Error("Connection timeout: ack from AWSRealTime was not received on 15000 ms"))}.bind(N),15e3)})];case 3:return V.sent(),[3,5];case 4:throw f=V.sent(),y=f.errorType,P.indexOf(f.errorCode)>=0?new E.NonRetryableError(y):y?new Error(y):f;case 5:return[2]}})})},W.prototype._handleIncomingSubscriptionMessage=function(O){R("subscription message from AWS AppSync RealTime: "+O.data);var w=JSON.parse(O.data),f=w.id,y=void 0===f?"":f,p=w.payload,N=w.type,V=this.subscriptionObserverMap.get(y)||{},Q=V.observer,$=void 0===Q?null:Q,ae=V.query,me=void 0===ae?"":ae,X=V.variables,he=void 0===X?{}:X,oe=V.startAckTimeoutId,j=void 0===oe?0:oe,re=V.subscriptionReadyCallback,J=void 0===re?null:re,ee=V.subscriptionFailedCallback,x=void 0===ee?null:ee;if(R({id:y,observer:$,query:me,variables:he}),N===m.MESSAGE_TYPES.GQL_DATA&&p&&p.data)$?$.next(p):R("observer not found for id: "+y);else{if(N===m.MESSAGE_TYPES.GQL_START_ACK)return R("subscription ready for "+JSON.stringify({query:me,variables:he})),"function"==typeof J&&J(),clearTimeout(j),$?$.next({data:p,extensions:{controlMsgType:"CONNECTED"}}):R("observer not found for id: "+y),void this.subscriptionObserverMap.set(y,{observer:$,query:me,variables:he,startAckTimeoutId:null,subscriptionState:m.SUBSCRIPTION_STATUS.CONNECTED,subscriptionReadyCallback:J,subscriptionFailedCallback:x});if(N===m.MESSAGE_TYPES.GQL_CONNECTION_KEEP_ALIVE)return clearTimeout(this.keepAliveTimeoutId),void(this.keepAliveTimeoutId=setTimeout(this._errorDisconnect.bind(this,m.CONTROL_MSG.TIMEOUT_DISCONNECT),this.keepAliveTimeout));N===m.MESSAGE_TYPES.GQL_ERROR&&(this.subscriptionObserverMap.set(y,{observer:$,query:me,variables:he,startAckTimeoutId:j,subscriptionReadyCallback:J,subscriptionFailedCallback:x,subscriptionState:m.SUBSCRIPTION_STATUS.FAILED}),$.error({errors:[S({},new o.GraphQLError("Connection failed: "+JSON.stringify(p)))]}),clearTimeout(j),$.complete(),"function"==typeof x&&x())}},W.prototype._errorDisconnect=function(O){R("Disconnect error: "+O),this.subscriptionObserverMap.forEach(function(w){var f=w.observer;f&&!f.closed&&f.error({errors:[S({},new o.GraphQLError(O))]})}),this.subscriptionObserverMap.clear(),this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=m.SOCKET_STATUS.CLOSED},W.prototype._timeoutStartSubscriptionAck=function(O){var w=this.subscriptionObserverMap.get(O)||{},f=w.observer,y=w.query,p=w.variables;!f||(this.subscriptionObserverMap.set(O,{observer:f,query:y,variables:p,subscriptionState:m.SUBSCRIPTION_STATUS.FAILED}),f&&!f.closed&&(f.error({errors:[S({},new o.GraphQLError("Subscription timeout "+JSON.stringify({query:y,variables:p})))]}),f.complete()),R("timeoutStartSubscription",JSON.stringify({query:y,variables:p})))},W.createWebSocket=function(O,w){return new WebSocket(O,w)},W._discoverAppSyncRealTimeEndpoint=function(O){return O.replace("https://","wss://").replace("http://","ws://").replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta")},W}(r.ApolloLink);L.AppSyncRealTimeSubscriptionHandshakeLink=K},61829:function(ne,L,d){"use strict";var R,s=this&&this.__extends||(R=function(P,D){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,_){A.__proto__=_}||function(A,_){for(var I in _)_.hasOwnProperty(I)&&(A[I]=_[I])})(P,D)},function(P,D){function A(){this.constructor=P}R(P,D),P.prototype=null===D?Object.create(D):(A.prototype=D.prototype,new A)}),S=this&&this.__assign||function(){return S=Object.assign||function(R){for(var P,D=1,A=arguments.length;D<A;D++)for(var _ in P=arguments[D])Object.prototype.hasOwnProperty.call(P,_)&&(R[_]=P[_]);return R},S.apply(this,arguments)},l=this&&this.__awaiter||function(R,P,D,A){return new(D||(D=Promise))(function(I,B){function K(O){try{W(A.next(O))}catch(w){B(w)}}function q(O){try{W(A.throw(O))}catch(w){B(w)}}function W(O){O.done?I(O.value):function _(I){return I instanceof D?I:new D(function(B){B(I)})}(O.value).then(K,q)}W((A=A.apply(R,P||[])).next())})},t=this&&this.__generator||function(R,P){var A,_,I,B,D={label:0,sent:function(){if(1&I[0])throw I[1];return I[1]},trys:[],ops:[]};return B={next:K(0),throw:K(1),return:K(2)},"function"==typeof Symbol&&(B[Symbol.iterator]=function(){return this}),B;function K(W){return function(O){return function q(W){if(A)throw new TypeError("Generator is already executing.");for(;D;)try{if(A=1,_&&(I=2&W[0]?_.return:W[0]?_.throw||((I=_.return)&&I.call(_),0):_.next)&&!(I=I.call(_,W[1])).done)return I;switch(_=0,I&&(W=[2&W[0],I.value]),W[0]){case 0:case 1:I=W;break;case 4:return D.label++,{value:W[1],done:!1};case 5:D.label++,_=W[1],W=[0];continue;case 7:W=D.ops.pop(),D.trys.pop();continue;default:if(!(I=(I=D.trys).length>0&&I[I.length-1])&&(6===W[0]||2===W[0])){D=0;continue}if(3===W[0]&&(!I||W[1]>I[0]&&W[1]<I[3])){D.label=W[1];break}if(6===W[0]&&D.label<I[1]){D.label=I[1],I=W;break}if(I&&D.label<I[2]){D.label=I[2],D.ops.push(W);break}I[2]&&D.ops.pop(),D.trys.pop();continue}W=P.call(R,D)}catch(O){W=[6,O],_=0}finally{A=I=0}if(5&W[0])throw W[1];return{value:W[0]?W[1]:void 0,done:!0}}([W,O])}}},r=this&&this.__rest||function(R,P){var D={};for(var A in R)Object.prototype.hasOwnProperty.call(R,A)&&P.indexOf(A)<0&&(D[A]=R[A]);if(null!=R&&"function"==typeof Object.getOwnPropertySymbols){var _=0;for(A=Object.getOwnPropertySymbols(R);_<A.length;_++)P.indexOf(A[_])<0&&Object.prototype.propertyIsEnumerable.call(R,A[_])&&(D[A[_]]=R[A[_]])}return D};Object.defineProperty(L,"__esModule",{value:!0});var n=d(13445),c=d(93682),o=d(87505),u=d(4614),v=c.rootLogger.extend("subscriptions"),m=v.extend("mqtt");L.CONTROL_EVENTS_KEY="@@controlEvents";var E=function(R){function P(D){var A=R.call(this)||this;return A.topicObservers=new Map,A.clientObservers=new Map,A.onMessage=function(_,I,B){var K=JSON.parse(I),q=A.topicObservers.get(_),W=B.reduce(function(O,w){return O[w]=O[w]||null,O},K.data||{});v("Message received",{data:W,topic:_,observers:q}),q.forEach(function(O){try{O.next(S(S({},K),{data:W}))}catch(w){v(w)}})},A.subsInfoContextKey=D,A}return s(P,R),P.prototype.request=function(D){var A,_=this,I=D.getContext(),K=I[this.subsInfoContextKey],q=I.controlMessages,W=L.CONTROL_EVENTS_KEY,O=(void 0===q?(A={},A[L.CONTROL_EVENTS_KEY]=void 0,A):q)[W],w=K.extensions,f=(void 0===w?{subscription:{newSubscriptions:{},mqttConnections:[]}}:w).subscription,y=f.newSubscriptions,p=f.mqttConnections,N=K.errors,V=void 0===N?[]:N;if(V&&V.length)return new n.Observable(function(me){return me.error(new n.ApolloError({errorMessage:"Error during subscription handshake",extraInfo:{errors:V},graphQLErrors:V})),function(){}});var Q=Object.keys(y).map(function(me){return y[me].topic}),$=new Set(Q.filter(function(me){return _.topicObservers.has(me)})),ae=new Set(Q.filter(function(me){return!$.has(me)}));return new n.Observable(function(me){$.forEach(function(he){_.topicObservers.get(he).add(me);var oe=Array.from(_.topicObservers.get(he)).find(function(){return!0}),j=Array.from(_.clientObservers).find(function(re){return re[1].observers.has(oe)})[0];_.clientObservers.get(j).observers.add(me)});var X=p.filter(function(he){return he.topics.some(function(oe){return ae.has(oe)})}).map(function(he){var oe=he.topics,j=r(he,["topics"]);return S(S({},j),{topics:oe.filter(function(re){return ae.has(re)})})});return _.connectNewClients(X,me,D),function(){Array.from(_.clientObservers).filter(function(oe){return oe[1].observers.has(me)}).forEach(function(oe){return _.clientObservers.get(oe[0]).observers.delete(me)}),_.clientObservers.forEach(function(oe){var re=oe.client;0===oe.observers.size&&(re.isConnected()&&re.disconnect(),_.clientObservers.delete(re.clientId))}),_.clientObservers=new Map(Array.from(_.clientObservers).filter(function(oe){return oe[1].observers.size>0})),_.topicObservers.forEach(function(oe){return oe.delete(me)}),_.topicObservers=new Map(Array.from(_.topicObservers).filter(function(oe){return oe[1].size>0}))}}).filter(function(me){var X=me.extensions,he=(void 0===X?{}:X).controlMsgType;return!0===O||!(typeof(void 0===he?void 0:he)<"u")})},P.prototype.connectNewClients=function(D,A,_){return l(this,void 0,void 0,function(){var B,K,q,W=this;return t(this,function(O){return B=u.getMainDefinition(_.query).selectionSet.selections.map(function(w){return w.name.value}),K=Promise.all(D.map(function(w){return W.connectNewClient(w,A,B)})),q=B.reduce(function(w,f){return w[f]=w[f]||null,w},{}),A.next({data:q,extensions:{controlMsgType:"CONNECTED",controlMsgInfo:{connectionInfo:D}}}),[2,K]})})},P.prototype.connectNewClient=function(D,A,_){return l(this,void 0,void 0,function(){var I,B,K,q,W=this;return t(this,function(O){switch(O.label){case 0:return K=D.topics,(q=new o.Client(B=D.url,I=D.client)).trace=m.bind(null,I),q.onConnectionLost=function(w){var f=w.errorCode,y=r(w,["errorCode"]);0!==f&&K.forEach(function(p){W.topicObservers.has(p)&&W.topicObservers.get(p).forEach(function(N){return N.error(S(S({},y),{permanent:!0}))})}),K.forEach(function(p){return W.topicObservers.delete(p)})},q.onMessageArrived=function(w){return W.onMessage(w.destinationName,w.payloadString,_)},[4,new Promise(function(w,f){q.connect({useSSL:0===B.indexOf("wss://"),mqttVersion:3,onSuccess:function(){return w(q)},onFailure:f})})];case 1:return O.sent(),[4,this.subscribeToTopics(q,K,A)];case 2:return O.sent(),[2,q]}})})},P.prototype.subscribeToTopics=function(D,A,_){var I=this;return Promise.all(A.map(function(B){return I.subscribeToTopic(D,B,_)}))},P.prototype.subscribeToTopic=function(D,A,_){var I=this;return new Promise(function(B,K){D.subscribe(A,{onSuccess:function(){I.topicObservers.has(A)||I.topicObservers.set(A,new Set),I.clientObservers.has(D.clientId)||I.clientObservers.set(D.clientId,{client:D,observers:new Set}),I.topicObservers.get(A).add(_),I.clientObservers.get(D.clientId).observers.add(_),B(A)},onFailure:K})})},P}(n.ApolloLink);L.SubscriptionHandshakeLink=E},32173:(ne,L)=>{"use strict";var t;Object.defineProperty(L,"__esModule",{value:!0}),(t=L.SUBSCRIPTION_STATUS||(L.SUBSCRIPTION_STATUS={}))[t.PENDING=0]="PENDING",t[t.CONNECTED=1]="CONNECTED",t[t.FAILED=2]="FAILED",function(t){t[t.CLOSED=0]="CLOSED",t[t.READY=1]="READY",t[t.CONNECTING=2]="CONNECTING"}(L.SOCKET_STATUS||(L.SOCKET_STATUS={})),function(t){t.GQL_CONNECTION_INIT="connection_init",t.GQL_CONNECTION_ERROR="connection_error",t.GQL_CONNECTION_ACK="connection_ack",t.GQL_START="start",t.GQL_START_ACK="start_ack",t.GQL_DATA="data",t.GQL_CONNECTION_KEEP_ALIVE="ka",t.GQL_STOP="stop",t.GQL_COMPLETE="complete",t.GQL_ERROR="error"}(L.MESSAGE_TYPES||(L.MESSAGE_TYPES={})),function(t){t.CONNECTION_CLOSED="Connection closed",t.TIMEOUT_DISCONNECT="Timeout disconnect",t.SUBSCRIPTION_ACK="Subscription ack"}(L.CONTROL_MSG||(L.CONTROL_MSG={}))},93682:(ne,L,d)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var s=d(58848);L.rootLogger=s.default},58848:function(ne,L,d){"use strict";var s=this&&this.__spreadArrays||function(){for(var r=0,n=0,c=arguments.length;n<c;n++)r+=arguments[n].length;var o=Array(r),u=0;for(n=0;n<c;n++)for(var v=arguments[n],m=0,E=v.length;m<E;m++,u++)o[u]=v[m];return o};Object.defineProperty(L,"__esModule",{value:!0});var S=d(2922),l=S.default("aws-appsync"),t=function(r){void 0===r&&(r="");var n=r?s(this.namespace.split(":"),[r]).join(":"):this.namespace,c=S.default(n);return c.extend=t.bind(c),c};l.extend=t.bind(l),L.default=l},65689:function(ne,L,d){"use strict";var m,s=this&&this.__extends||(m=function(E,R){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,D){P.__proto__=D}||function(P,D){for(var A in D)D.hasOwnProperty(A)&&(P[A]=D[A])})(E,R)},function(E,R){function P(){this.constructor=E}m(E,R),E.prototype=null===R?Object.create(R):(P.prototype=R.prototype,new P)}),S=this&&this.__awaiter||function(m,E,R,P){return new(R||(R=Promise))(function(A,_){function I(q){try{K(P.next(q))}catch(W){_(W)}}function B(q){try{K(P.throw(q))}catch(W){_(W)}}function K(q){q.done?A(q.value):function D(A){return A instanceof R?A:new R(function(_){_(A)})}(q.value).then(I,B)}K((P=P.apply(m,E||[])).next())})},l=this&&this.__generator||function(m,E){var P,D,A,_,R={label:0,sent:function(){if(1&A[0])throw A[1];return A[1]},trys:[],ops:[]};return _={next:I(0),throw:I(1),return:I(2)},"function"==typeof Symbol&&(_[Symbol.iterator]=function(){return this}),_;function I(K){return function(q){return function B(K){if(P)throw new TypeError("Generator is already executing.");for(;R;)try{if(P=1,D&&(A=2&K[0]?D.return:K[0]?D.throw||((A=D.return)&&A.call(D),0):D.next)&&!(A=A.call(D,K[1])).done)return A;switch(D=0,A&&(K=[2&K[0],A.value]),K[0]){case 0:case 1:A=K;break;case 4:return R.label++,{value:K[1],done:!1};case 5:R.label++,D=K[1],K=[0];continue;case 7:K=R.ops.pop(),R.trys.pop();continue;default:if(!(A=(A=R.trys).length>0&&A[A.length-1])&&(6===K[0]||2===K[0])){R=0;continue}if(3===K[0]&&(!A||K[1]>A[0]&&K[1]<A[3])){R.label=K[1];break}if(6===K[0]&&R.label<A[1]){R.label=A[1],A=K;break}if(A&&R.label<A[2]){R.label=A[2],R.ops.push(K);break}A[2]&&R.ops.pop(),R.trys.pop();continue}K=E.call(m,R)}catch(q){K=[6,q],D=0}finally{P=A=0}if(5&K[0])throw K[1];return{value:K[0]?K[1]:void 0,done:!0}}([K,q])}}};Object.defineProperty(L,"__esModule",{value:!0});var r=d(93682).rootLogger.extend("retry"),c=function(m){function E(R){var P=m.call(this,R)||this;return P.nonRetryable=!0,P}return s(E,m),E}(Error);function u(m,E,R,P){return void 0===P&&(P=1),S(this,void 0,void 0,function(){var D,A;return l(this,function(_){switch(_.label){case 0:r("Attempt #"+P+" for this vars: "+JSON.stringify(E)),_.label=1;case 1:return _.trys.push([1,3,,8]),[4,m.apply(void 0,E)];case 2:return _.sent(),[3,8];case 3:if(D=_.sent(),r("error "+D),function(m){return m&&m.nonRetryable}(D))throw r("non retryable error"),D;return A=R(P,E,D),r("retryIn ",A),!1===A?[3,6]:[4,new Promise(function(I){return setTimeout(I,A)})];case 4:return _.sent(),[4,u(m,E,R,P+1)];case 5:return[2,_.sent()];case 6:throw D;case 7:return[3,8];case 8:return[2]}})})}L.NonRetryableError=c,L.retry=u,L.jitteredExponentialRetry=function(m,E,R){return void 0===R&&(R=5e3),u(m,E,function v(m){return function(P){var D=100*Math.pow(2,P)+100*Math.random();return!(D>m)&&D}}(R))}},87505:function(ne){var d;ne.exports=(d=function(s){var y,l=s.localStorage||(y={},{setItem:function(p,N){y[p]=N},getItem:function(p){return y[p]},removeItem:function(p){delete y[p]}}),t_CONNECT=1,t_CONNACK=2,t_PUBLISH=3,t_PUBACK=4,t_PUBREC=5,t_PUBREL=6,t_PUBCOMP=7,t_SUBSCRIBE=8,t_SUBACK=9,t_UNSUBSCRIBE=10,t_UNSUBACK=11,t_PINGREQ=12,t_PINGRESP=13,t_DISCONNECT=14,r=function(y,p){for(var N in y)if(y.hasOwnProperty(N)){if(!p.hasOwnProperty(N)){var V="Unknown property, "+N+". Valid properties are:";for(var Q in p)p.hasOwnProperty(Q)&&(V=V+" "+Q);throw new Error(V)}if(typeof y[N]!==p[N])throw new Error(u(c.INVALID_TYPE,[typeof y[N],N]))}},n=function(y,p){return function(){return y.apply(p,arguments)}},c={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}."}},o={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"},u=function(y,p){var N=y.text;if(p)for(var V,Q,$=0;$<p.length;$++)if((Q=N.indexOf(V="{"+$+"}"))>0){var ae=N.substring(0,Q),me=N.substring(Q+V.length);N=ae+p[$]+me}return N},v=[0,6,77,81,73,115,100,112,3],m=[0,4,77,81,84,84,4],E=function(y,p){for(var N in this.type=y,p)p.hasOwnProperty(N)&&(this[N]=p[N])};function R(y,p){var N=p,V=y[p],Q=V>>4,$=V&=15;p+=1;var ae,me=0,X=1;do{if(p==y.length)return[null,N];me+=(127&(ae=y[p++]))*X,X*=128}while(0!=(128&ae));var he=p+me;if(he>y.length)return[null,N];var oe=new E(Q);switch(Q){case t_CONNACK:1&y[p++]&&(oe.sessionPresent=!0),oe.returnCode=y[p++];break;case t_PUBLISH:var re=$>>1&3,J=A(y,p),ee=K(y,p+=2,J);p+=J,re>0&&(oe.messageIdentifier=A(y,p),p+=2);var x=new d.Message(y.subarray(p,he));1==(1&$)&&(x.retained=!0),8==(8&$)&&(x.duplicate=!0),x.qos=re,x.destinationName=ee,oe.payloadMessage=x;break;case t_PUBACK:case t_PUBREC:case t_PUBREL:case t_PUBCOMP:case t_UNSUBACK:oe.messageIdentifier=A(y,p);break;case t_SUBACK:oe.messageIdentifier=A(y,p),oe.returnCode=y.subarray(p+=2,he)}return[oe,he]}function P(y,p,N){return p[N++]=y>>8,p[N++]=y%256,N}function D(y,p,N,V){return B(y,N,V=P(p,N,V)),V+p}function A(y,p){return 256*y[p]+y[p+1]}function I(y){for(var p=0,N=0;N<y.length;N++){var V=y.charCodeAt(N);V>2047?(55296<=V&&V<=56319&&(N++,p++),p+=3):V>127?p+=2:p++}return p}function B(y,p,N){for(var V=N,Q=0;Q<y.length;Q++){var $=y.charCodeAt(Q);if(55296<=$&&$<=56319){var ae=y.charCodeAt(++Q);if(isNaN(ae))throw new Error(u(c.MALFORMED_UNICODE,[$,ae]));$=ae-56320+($-55296<<10)+65536}$<=127?p[V++]=$:$<=2047?(p[V++]=$>>6&31|192,p[V++]=63&$|128):$<=65535?(p[V++]=$>>12&15|224,p[V++]=$>>6&63|128,p[V++]=63&$|128):(p[V++]=$>>18&7|240,p[V++]=$>>12&63|128,p[V++]=$>>6&63|128,p[V++]=63&$|128)}return p}function K(y,p,N){for(var Q,V="",$=p;$<p+N;){var ae=y[$++];if(ae<128)Q=ae;else{var me=y[$++]-128;if(me<0)throw new Error(u(c.MALFORMED_UTF,[ae.toString(16),me.toString(16),""]));if(ae<224)Q=64*(ae-192)+me;else{var X=y[$++]-128;if(X<0)throw new Error(u(c.MALFORMED_UTF,[ae.toString(16),me.toString(16),X.toString(16)]));if(ae<240)Q=4096*(ae-224)+64*me+X;else{var he=y[$++]-128;if(he<0)throw new Error(u(c.MALFORMED_UTF,[ae.toString(16),me.toString(16),X.toString(16),he.toString(16)]));if(!(ae<248))throw new Error(u(c.MALFORMED_UTF,[ae.toString(16),me.toString(16),X.toString(16),he.toString(16)]));Q=262144*(ae-240)+4096*me+64*X+he}}}Q>65535&&(Q-=65536,V+=String.fromCharCode(55296+(Q>>10)),Q=56320+(1023&Q)),V+=String.fromCharCode(Q)}return V}E.prototype.encode=function(){var Q,y=(15&this.type)<<4,p=0,N=[],V=0;switch(void 0!==this.messageIdentifier&&(p+=2),this.type){case t_CONNECT:switch(this.mqttVersion){case 3:p+=v.length+3;break;case 4:p+=m.length+3}p+=I(this.clientId)+2,void 0!==this.willMessage&&(p+=I(this.willMessage.destinationName)+2,(Q=this.willMessage.payloadBytes)instanceof Uint8Array||(Q=new Uint8Array(ae)),p+=Q.byteLength+2),void 0!==this.userName&&(p+=I(this.userName)+2),void 0!==this.password&&(p+=I(this.password)+2);break;case t_SUBSCRIBE:y|=2;for(var $=0;$<this.topics.length;$++)N[$]=I(this.topics[$]),p+=N[$]+2;p+=this.requestedQos.length;break;case t_UNSUBSCRIBE:for(y|=2,$=0;$<this.topics.length;$++)N[$]=I(this.topics[$]),p+=N[$]+2;break;case t_PUBREL:y|=2;break;case t_PUBLISH:this.payloadMessage.duplicate&&(y|=8),y=y|=this.payloadMessage.qos<<1,this.payloadMessage.retained&&(y|=1),p+=(V=I(this.payloadMessage.destinationName))+2;var ae=this.payloadMessage.payloadBytes;p+=ae.byteLength,ae instanceof ArrayBuffer?ae=new Uint8Array(ae):ae instanceof Uint8Array||(ae=new Uint8Array(ae.buffer))}var me=function _(y){var p=new Array(1),N=0;do{var V=y%128;(y>>=7)>0&&(V|=128),p[N++]=V}while(y>0&&N<4);return p}(p),X=me.length+1,he=new ArrayBuffer(p+X),oe=new Uint8Array(he);if(oe[0]=y,oe.set(me,1),this.type==t_PUBLISH)X=D(this.payloadMessage.destinationName,V,oe,X);else if(this.type==t_CONNECT){switch(this.mqttVersion){case 3:oe.set(v,X),X+=v.length;break;case 4:oe.set(m,X),X+=m.length}var j=0;this.cleanSession&&(j=2),void 0!==this.willMessage&&(j|=4,j|=this.willMessage.qos<<3,this.willMessage.retained&&(j|=32)),void 0!==this.userName&&(j|=128),void 0!==this.password&&(j|=64),oe[X++]=j,X=P(this.keepAliveInterval,oe,X)}switch(void 0!==this.messageIdentifier&&(X=P(this.messageIdentifier,oe,X)),this.type){case t_CONNECT:X=D(this.clientId,I(this.clientId),oe,X),void 0!==this.willMessage&&(X=D(this.willMessage.destinationName,I(this.willMessage.destinationName),oe,X),X=P(Q.byteLength,oe,X),oe.set(Q,X),X+=Q.byteLength),void 0!==this.userName&&(X=D(this.userName,I(this.userName),oe,X)),void 0!==this.password&&(X=D(this.password,I(this.password),oe,X));break;case t_PUBLISH:oe.set(ae,X);break;case t_SUBSCRIBE:for($=0;$<this.topics.length;$++)X=D(this.topics[$],N[$],oe,X),oe[X++]=this.requestedQos[$];break;case t_UNSUBSCRIBE:for($=0;$<this.topics.length;$++)X=D(this.topics[$],N[$],oe,X)}return he};var q=function(y,p){this._client=y,this._keepAliveInterval=1e3*p,this.isReset=!1;var N=new E(t_PINGREQ).encode(),V=function($){return function(){return Q.apply($)}},Q=function(){this.isReset?(this.isReset=!1,this._client._trace("Pinger.doPing","send PINGREQ"),this._client.socket.send(N),this.timeout=setTimeout(V(this),this._keepAliveInterval)):(this._client._trace("Pinger.doPing","Timed out"),this._client._disconnected(c.PING_TIMEOUT.code,u(c.PING_TIMEOUT)))};this.reset=function(){this.isReset=!0,clearTimeout(this.timeout),this._keepAliveInterval>0&&(this.timeout=setTimeout(V(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},W=function(y,p,N,V){var $,ae,me;p||(p=30),this.timeout=setTimeout(($=N,ae=y,me=V,function(){return $.apply(ae,me)}),1e3*p),this.cancel=function(){clearTimeout(this.timeout)}},O=function(y,p,N,V,Q){if(!("WebSocket"in s)||null===s.WebSocket)throw new Error(u(c.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in s)||null===s.ArrayBuffer)throw new Error(u(c.UNSUPPORTED,["ArrayBuffer"]));for(var $ in this._trace("Paho.Client",y,p,N,V,Q),this.host=p,this.port=N,this.path=V,this.uri=y,this.clientId=Q,this._wsuri=null,this._localKey=p+":"+N+("/mqtt"!=V?":"+V:"")+":"+Q+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,l)(0===$.indexOf("Sent:"+this._localKey)||0===$.indexOf("Received:"+this._localKey))&&this.restore($)};O.prototype.host=null,O.prototype.port=null,O.prototype.path=null,O.prototype.uri=null,O.prototype.clientId=null,O.prototype.socket=null,O.prototype.connected=!1,O.prototype.maxMessageIdentifier=65536,O.prototype.connectOptions=null,O.prototype.hostIndex=null,O.prototype.onConnected=null,O.prototype.onConnectionLost=null,O.prototype.onMessageDelivered=null,O.prototype.onMessageArrived=null,O.prototype.traceFunction=null,O.prototype._msg_queue=null,O.prototype._buffered_msg_queue=null,O.prototype._connectTimeout=null,O.prototype.sendPinger=null,O.prototype.receivePinger=null,O.prototype._reconnectInterval=1,O.prototype._reconnecting=!1,O.prototype._reconnectTimeout=null,O.prototype.disconnectedPublishing=!1,O.prototype.disconnectedBufferSize=5e3,O.prototype.receiveBuffer=null,O.prototype._traceBuffer=null,O.prototype._MAX_TRACE_ENTRIES=100,O.prototype.connect=function(y){var p=this._traceMask(y,"password");if(this._trace("Client.connect",p,this.socket,this.connected),this.connected)throw new Error(u(c.INVALID_STATE,["already connected"]));if(this.socket)throw new Error(u(c.INVALID_STATE,["already connected"]));this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),this.connectOptions=y,this._reconnectInterval=1,this._reconnecting=!1,y.uris?(this.hostIndex=0,this._doConnect(y.uris[0])):this._doConnect(this.uri)},O.prototype.subscribe=function(y,p){if(this._trace("Client.subscribe",y,p),!this.connected)throw new Error(u(c.INVALID_STATE,["not connected"]));var N=new E(t_SUBSCRIBE);N.topics=[y],N.requestedQos=void 0!==p.qos?[p.qos]:[0],p.onSuccess&&(N.onSuccess=function(V){p.onSuccess({invocationContext:p.invocationContext,grantedQos:V})}),p.onFailure&&(N.onFailure=function(V){p.onFailure({invocationContext:p.invocationContext,errorCode:V,errorMessage:u(V)})}),p.timeout&&(N.timeOut=new W(this,p.timeout,p.onFailure,[{invocationContext:p.invocationContext,errorCode:c.SUBSCRIBE_TIMEOUT.code,errorMessage:u(c.SUBSCRIBE_TIMEOUT)}])),this._requires_ack(N),this._schedule_message(N)},O.prototype.unsubscribe=function(y,p){if(this._trace("Client.unsubscribe",y,p),!this.connected)throw new Error(u(c.INVALID_STATE,["not connected"]));var N=new E(t_UNSUBSCRIBE);N.topics=[y],p.onSuccess&&(N.callback=function(){p.onSuccess({invocationContext:p.invocationContext})}),p.timeout&&(N.timeOut=new W(this,p.timeout,p.onFailure,[{invocationContext:p.invocationContext,errorCode:c.UNSUBSCRIBE_TIMEOUT.code,errorMessage:u(c.UNSUBSCRIBE_TIMEOUT)}])),this._requires_ack(N),this._schedule_message(N)},O.prototype.send=function(y){this._trace("Client.send",y);var p=new E(t_PUBLISH);if(p.payloadMessage=y,this.connected)y.qos>0?this._requires_ack(p):this.onMessageDelivered&&(this._notify_msg_sent[p]=this.onMessageDelivered(p.payloadMessage)),this._schedule_message(p);else{if(!this._reconnecting||!this.disconnectedPublishing)throw new Error(u(c.INVALID_STATE,["not connected"]));if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw new Error(u(c.BUFFER_FULL,[this.disconnectedBufferSize]));y.qos>0?this._requires_ack(p):(p.sequence=++this._sequence,this._buffered_msg_queue.unshift(p))}},O.prototype.disconnect=function(){if(this._trace("Client.disconnect"),this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),!this.socket)throw new Error(u(c.INVALID_STATE,["not connecting or connected"]));var y=new E(t_DISCONNECT);this._notify_msg_sent[y]=n(this._disconnected,this),this._schedule_message(y)},O.prototype.getTraceLog=function(){if(null!==this._traceBuffer){for(var y in this._trace("Client.getTraceLog",new Date),this._trace("Client.getTraceLog in flight messages",this._sentMessages.length),this._sentMessages)this._trace("_sentMessages ",y,this._sentMessages[y]);for(var y in this._receivedMessages)this._trace("_receivedMessages ",y,this._receivedMessages[y]);return this._traceBuffer}},O.prototype.startTrace=function(){null===this._traceBuffer&&(this._traceBuffer=[]),this._trace("Client.startTrace",new Date,"@VERSION@-@BUILDLEVEL@")},O.prototype.stopTrace=function(){delete this._traceBuffer},O.prototype._doConnect=function(y){if(this.connectOptions.useSSL){var p=y.split(":");p[0]="wss",y=p.join(":")}this._wsuri=y,this.connected=!1,this.socket=this.connectOptions.mqttVersion<4?new WebSocket(y,["mqttv3.1"]):new WebSocket(y,["mqtt"]),this.socket.binaryType="arraybuffer",this.socket.onopen=n(this._on_socket_open,this),this.socket.onmessage=n(this._on_socket_message,this),this.socket.onerror=n(this._on_socket_error,this),this.socket.onclose=n(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 W(this,this.connectOptions.timeout,this._disconnected,[c.CONNECT_TIMEOUT.code,u(c.CONNECT_TIMEOUT)])},O.prototype._schedule_message=function(y){this._msg_queue.unshift(y),this.connected&&this._process_queue()},O.prototype.store=function(y,p){var N={type:p.type,messageIdentifier:p.messageIdentifier,version:1};if(p.type!==t_PUBLISH)throw Error(u(c.INVALID_STORED_DATA,[y+this._localKey+p.messageIdentifier,N]));p.pubRecReceived&&(N.pubRecReceived=!0),N.payloadMessage={};for(var V="",Q=p.payloadMessage.payloadBytes,$=0;$<Q.length;$++)Q[$]<=15?V=V+"0"+Q[$].toString(16):V+=Q[$].toString(16);N.payloadMessage.payloadHex=V,N.payloadMessage.qos=p.payloadMessage.qos,N.payloadMessage.destinationName=p.payloadMessage.destinationName,p.payloadMessage.duplicate&&(N.payloadMessage.duplicate=!0),p.payloadMessage.retained&&(N.payloadMessage.retained=!0),0===y.indexOf("Sent:")&&(void 0===p.sequence&&(p.sequence=++this._sequence),N.sequence=p.sequence),l.setItem(y+this._localKey+p.messageIdentifier,JSON.stringify(N))},O.prototype.restore=function(y){var p=l.getItem(y),N=JSON.parse(p),V=new E(N.type,N);if(N.type!==t_PUBLISH)throw Error(u(c.INVALID_STORED_DATA,[y,p]));for(var Q=N.payloadMessage.payloadHex,$=new ArrayBuffer(Q.length/2),ae=new Uint8Array($),me=0;Q.length>=2;){var X=parseInt(Q.substring(0,2),16);Q=Q.substring(2,Q.length),ae[me++]=X}var he=new d.Message(ae);he.qos=N.payloadMessage.qos,he.destinationName=N.payloadMessage.destinationName,N.payloadMessage.duplicate&&(he.duplicate=!0),N.payloadMessage.retained&&(he.retained=!0),V.payloadMessage=he,0===y.indexOf("Sent:"+this._localKey)?(V.payloadMessage.duplicate=!0,this._sentMessages[V.messageIdentifier]=V):0===y.indexOf("Received:"+this._localKey)&&(this._receivedMessages[V.messageIdentifier]=V)},O.prototype._process_queue=function(){for(var y=null;y=this._msg_queue.pop();)this._socket_send(y),this._notify_msg_sent[y]&&(this._notify_msg_sent[y](),delete this._notify_msg_sent[y])},O.prototype._requires_ack=function(y){var p=Object.keys(this._sentMessages).length;if(p>this.maxMessageIdentifier)throw Error("Too many messages:"+p);for(;void 0!==this._sentMessages[this._message_identifier];)this._message_identifier++;y.messageIdentifier=this._message_identifier,this._sentMessages[y.messageIdentifier]=y,y.type===t_PUBLISH&&this.store("Sent:",y),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},O.prototype._on_socket_open=function(){var y=new E(t_CONNECT,this.connectOptions);y.clientId=this.clientId,this._socket_send(y)},O.prototype._on_socket_message=function(y){this._trace("Client._on_socket_message",y.data);for(var p=this._deframeMessages(y.data),N=0;N<p.length;N+=1)this._handleMessage(p[N])},O.prototype._deframeMessages=function(y){var p=new Uint8Array(y),N=[];if(this.receiveBuffer){var V=new Uint8Array(this.receiveBuffer.length+p.length);V.set(this.receiveBuffer),V.set(p,this.receiveBuffer.length),p=V,delete this.receiveBuffer}try{for(var Q=0;Q<p.length;){var $=R(p,Q),ae=$[0];if(Q=$[1],null===ae)break;N.push(ae)}Q<p.length&&(this.receiveBuffer=p.subarray(Q))}catch(X){var me="undefined"==X.hasOwnProperty("stack")?X.stack.toString():"No Error Stack Available";return void this._disconnected(c.INTERNAL_ERROR.code,u(c.INTERNAL_ERROR,[X.message,me]))}return N},O.prototype._handleMessage=function(y){this._trace("Client._handleMessage",y);try{switch(y.type){case t_CONNACK:if(this._connectTimeout.cancel(),this._reconnectTimeout&&this._reconnectTimeout.cancel(),this.connectOptions.cleanSession){for(var p in this._sentMessages)l.removeItem("Sent:"+this._localKey+(j=this._sentMessages[p]).messageIdentifier);for(var p in this._sentMessages={},this._receivedMessages)l.removeItem("Received:"+this._localKey+(he=this._receivedMessages[p]).messageIdentifier);this._receivedMessages={}}if(0!==y.returnCode){this._disconnected(c.CONNACK_RETURNCODE.code,u(c.CONNACK_RETURNCODE,[y.returnCode,o[y.returnCode]]));break}this.connected=!0,this.connectOptions.uris&&(this.hostIndex=this.connectOptions.uris.length);var Q=[];for(var N in this._sentMessages)this._sentMessages.hasOwnProperty(N)&&Q.push(this._sentMessages[N]);if(this._buffered_msg_queue.length>0)for(var V=null;V=this._buffered_msg_queue.pop();)Q.push(V),this.onMessageDelivered&&(this._notify_msg_sent[V]=this.onMessageDelivered(V.payloadMessage));Q=Q.sort(function(J,ee){return J.sequence-ee.sequence});for(var $=0,ae=Q.length;$<ae;$++)if((j=Q[$]).type==t_PUBLISH&&j.pubRecReceived){var me=new E(t_PUBREL,{messageIdentifier:j.messageIdentifier});this._schedule_message(me)}else this._schedule_message(j);this.connectOptions.onSuccess&&this.connectOptions.onSuccess({invocationContext:this.connectOptions.invocationContext});var X=!1;this._reconnecting&&(X=!0,this._reconnectInterval=1,this._reconnecting=!1),this._connected(X,this._wsuri),this._process_queue();break;case t_PUBLISH:this._receivePublish(y);break;case t_PUBACK:(j=this._sentMessages[y.messageIdentifier])&&(delete this._sentMessages[y.messageIdentifier],l.removeItem("Sent:"+this._localKey+y.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(j.payloadMessage));break;case t_PUBREC:(j=this._sentMessages[y.messageIdentifier])&&(j.pubRecReceived=!0,me=new E(t_PUBREL,{messageIdentifier:y.messageIdentifier}),this.store("Sent:",j),this._schedule_message(me));break;case t_PUBREL:var he=this._receivedMessages[y.messageIdentifier];l.removeItem("Received:"+this._localKey+y.messageIdentifier),he&&(this._receiveMessage(he),delete this._receivedMessages[y.messageIdentifier]);var oe=new E(t_PUBCOMP,{messageIdentifier:y.messageIdentifier});this._schedule_message(oe);break;case t_PUBCOMP:var j=this._sentMessages[y.messageIdentifier];delete this._sentMessages[y.messageIdentifier],l.removeItem("Sent:"+this._localKey+y.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(j.payloadMessage);break;case t_SUBACK:(j=this._sentMessages[y.messageIdentifier])&&(j.timeOut&&j.timeOut.cancel(),128===y.returnCode[0]?j.onFailure&&j.onFailure(y.returnCode):j.onSuccess&&j.onSuccess(y.returnCode),delete this._sentMessages[y.messageIdentifier]);break;case t_UNSUBACK:(j=this._sentMessages[y.messageIdentifier])&&(j.timeOut&&j.timeOut.cancel(),j.callback&&j.callback(),delete this._sentMessages[y.messageIdentifier]);break;case t_PINGRESP:this.sendPinger.reset();break;default:this._disconnected(c.INVALID_MQTT_MESSAGE_TYPE.code,u(c.INVALID_MQTT_MESSAGE_TYPE,[y.type]))}}catch(J){var re="undefined"==J.hasOwnProperty("stack")?J.stack.toString():"No Error Stack Available";return void this._disconnected(c.INTERNAL_ERROR.code,u(c.INTERNAL_ERROR,[J.message,re]))}},O.prototype._on_socket_error=function(y){this._reconnecting||this._disconnected(c.SOCKET_ERROR.code,u(c.SOCKET_ERROR,[y.data]))},O.prototype._on_socket_close=function(){this._reconnecting||this._disconnected(c.SOCKET_CLOSE.code,u(c.SOCKET_CLOSE))},O.prototype._socket_send=function(y){if(1==y.type){var p=this._traceMask(y,"password");this._trace("Client._socket_send",p)}else this._trace("Client._socket_send",y);this.socket.send(y.encode()),this.sendPinger.reset()},O.prototype._receivePublish=function(y){switch(y.payloadMessage.qos){case"undefined":case 0:this._receiveMessage(y);break;case 1:var p=new E(t_PUBACK,{messageIdentifier:y.messageIdentifier});this._schedule_message(p),this._receiveMessage(y);break;case 2:this._receivedMessages[y.messageIdentifier]=y,this.store("Received:",y);var N=new E(t_PUBREC,{messageIdentifier:y.messageIdentifier});this._schedule_message(N);break;default:throw Error("Invaild qos="+y.payloadMessage.qos)}},O.prototype._receiveMessage=function(y){this.onMessageArrived&&this.onMessageArrived(y.payloadMessage)},O.prototype._connected=function(y,p){this.onConnected&&this.onConnected(y,p)},O.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))},O.prototype._disconnected=function(y,p){if(this._trace("Client._disconnected",y,p),void 0!==y&&this._reconnecting)this._reconnectTimeout=new W(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===y&&(y=c.OK.code,p=u(c.OK)),this.connected){if(this.connected=!1,this.onConnectionLost&&this.onConnectionLost({errorCode:y,errorMessage:p,reconnect:this.connectOptions.reconnect,uri:this._wsuri}),y!==c.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:y,errorMessage:p})},O.prototype._trace=function(){if(this.traceFunction){var y=Array.prototype.slice.call(arguments);for(var p in y)typeof y[p]<"u"&&y.splice(p,1,JSON.stringify(y[p]));var N=y.join("");this.traceFunction({severity:"Debug",message:N})}if(null!==this._traceBuffer){p=0;for(var V=arguments.length;p<V;p++)this._traceBuffer.length==this._MAX_TRACE_ENTRIES&&this._traceBuffer.shift(),this._traceBuffer.push(0===p||typeof arguments[p]>"u"?arguments[p]:" "+JSON.stringify(arguments[p]))}},O.prototype._traceMask=function(y,p){var N={};for(var V in y)y.hasOwnProperty(V)&&(N[V]=V==p?"******":y[V]);return N};var f=function(y){var p;if(!("string"==typeof y||y instanceof ArrayBuffer||ArrayBuffer.isView(y)&&!(y instanceof DataView)))throw u(c.INVALID_ARGUMENT,[y,"newPayload"]);p=y;var N,V=0,Q=!1,$=!1;Object.defineProperties(this,{payloadString:{enumerable:!0,get:function(){return"string"==typeof p?p:K(p,0,p.length)}},payloadBytes:{enumerable:!0,get:function(){if("string"==typeof p){var ae=new ArrayBuffer(I(p)),me=new Uint8Array(ae);return B(p,me,0),me}return p}},destinationName:{enumerable:!0,get:function(){return N},set:function(ae){if("string"!=typeof ae)throw new Error(u(c.INVALID_ARGUMENT,[ae,"newDestinationName"]));N=ae}},qos:{enumerable:!0,get:function(){return V},set:function(ae){if(0!==ae&&1!==ae&&2!==ae)throw new Error("Invalid argument:"+ae);V=ae}},retained:{enumerable:!0,get:function(){return Q},set:function(ae){if("boolean"!=typeof ae)throw new Error(u(c.INVALID_ARGUMENT,[ae,"newRetained"]));Q=ae}},topic:{enumerable:!0,get:function(){return N},set:function(ae){N=ae}},duplicate:{enumerable:!0,get:function(){return $},set:function(ae){$=ae}}})};return{Client:function(y,p,N,V){var Q;if("string"!=typeof y)throw new Error(u(c.INVALID_TYPE,[typeof y,"host"]));if(2==arguments.length){V=p;var $=(Q=y).match(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/);if(!$)throw new Error(u(c.INVALID_ARGUMENT,[y,"host"]));y=$[4]||$[2],p=parseInt($[7]),N=$[8]}else{if(3==arguments.length&&(V=N,N="/mqtt"),"number"!=typeof p||p<0)throw new Error(u(c.INVALID_TYPE,[typeof p,"port"]));if("string"!=typeof N)throw new Error(u(c.INVALID_TYPE,[typeof N,"path"]));var ae=-1!==y.indexOf(":")&&"["!==y.slice(0,1)&&"]"!==y.slice(-1);Q="ws://"+(ae?"["+y+"]":y)+":"+p+N}for(var me=0,X=0;X<V.length;X++){var he=V.charCodeAt(X);55296<=he&&he<=56319&&X++,me++}if("string"!=typeof V||me>65535)throw new Error(u(c.INVALID_ARGUMENT,[V,"clientId"]));var oe=new O(Q,y,p,N,V);Object.defineProperties(this,{host:{get:function(){return y},set:function(){throw new Error(u(c.UNSUPPORTED_OPERATION))}},port:{get:function(){return p},set:function(){throw new Error(u(c.UNSUPPORTED_OPERATION))}},path:{get:function(){return N},set:function(){throw new Error(u(c.UNSUPPORTED_OPERATION))}},uri:{get:function(){return Q},set:function(){throw new Error(u(c.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return oe.clientId},set:function(){throw new Error(u(c.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return oe.onConnected},set:function(j){if("function"!=typeof j)throw new Error(u(c.INVALID_TYPE,[typeof j,"onConnected"]));oe.onConnected=j}},disconnectedPublishing:{get:function(){return oe.disconnectedPublishing},set:function(j){oe.disconnectedPublishing=j}},disconnectedBufferSize:{get:function(){return oe.disconnectedBufferSize},set:function(j){oe.disconnectedBufferSize=j}},onConnectionLost:{get:function(){return oe.onConnectionLost},set:function(j){if("function"!=typeof j)throw new Error(u(c.INVALID_TYPE,[typeof j,"onConnectionLost"]));oe.onConnectionLost=j}},onMessageDelivered:{get:function(){return oe.onMessageDelivered},set:function(j){if("function"!=typeof j)throw new Error(u(c.INVALID_TYPE,[typeof j,"onMessageDelivered"]));oe.onMessageDelivered=j}},onMessageArrived:{get:function(){return oe.onMessageArrived},set:function(j){if("function"!=typeof j)throw new Error(u(c.INVALID_TYPE,[typeof j,"onMessageArrived"]));oe.onMessageArrived=j}},trace:{get:function(){return oe.traceFunction},set:function(j){if("function"!=typeof j)throw new Error(u(c.INVALID_TYPE,[typeof j,"onTrace"]));oe.traceFunction=j}}}),this.connect=function(j){if(r(j=j||{},{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===j.keepAliveInterval&&(j.keepAliveInterval=60),j.mqttVersion>4||j.mqttVersion<3)throw new Error(u(c.INVALID_ARGUMENT,[j.mqttVersion,"connectOptions.mqttVersion"]));if(void 0===j.mqttVersion?(j.mqttVersionExplicit=!1,j.mqttVersion=4):j.mqttVersionExplicit=!0,void 0!==j.password&&void 0===j.userName)throw new Error(u(c.INVALID_ARGUMENT,[j.password,"connectOptions.password"]));if(j.willMessage){if(!(j.willMessage instanceof f))throw new Error(u(c.INVALID_TYPE,[j.willMessage,"connectOptions.willMessage"]));if(j.willMessage.stringPayload=null,typeof j.willMessage.destinationName>"u")throw new Error(u(c.INVALID_TYPE,[typeof j.willMessage.destinationName,"connectOptions.willMessage.destinationName"]))}if(typeof j.cleanSession>"u"&&(j.cleanSession=!0),j.hosts){if(!(j.hosts instanceof Array))throw new Error(u(c.INVALID_ARGUMENT,[j.hosts,"connectOptions.hosts"]));if(j.hosts.length<1)throw new Error(u(c.INVALID_ARGUMENT,[j.hosts,"connectOptions.hosts"]));for(var re=!1,J=0;J<j.hosts.length;J++){if("string"!=typeof j.hosts[J])throw new Error(u(c.INVALID_TYPE,[typeof j.hosts[J],"connectOptions.hosts["+J+"]"]));if(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/.test(j.hosts[J])){if(0===J)re=!0;else if(!re)throw new Error(u(c.INVALID_ARGUMENT,[j.hosts[J],"connectOptions.hosts["+J+"]"]))}else if(re)throw new Error(u(c.INVALID_ARGUMENT,[j.hosts[J],"connectOptions.hosts["+J+"]"]))}if(re)j.uris=j.hosts;else{if(!j.ports)throw new Error(u(c.INVALID_ARGUMENT,[j.ports,"connectOptions.ports"]));if(!(j.ports instanceof Array))throw new Error(u(c.INVALID_ARGUMENT,[j.ports,"connectOptions.ports"]));if(j.hosts.length!==j.ports.length)throw new Error(u(c.INVALID_ARGUMENT,[j.ports,"connectOptions.ports"]));for(j.uris=[],J=0;J<j.hosts.length;J++){if("number"!=typeof j.ports[J]||j.ports[J]<0)throw new Error(u(c.INVALID_TYPE,[typeof j.ports[J],"connectOptions.ports["+J+"]"]));var ee=j.hosts[J],x=j.ports[J],h=-1!==ee.indexOf(":");j.uris.push(Q="ws://"+(h?"["+ee+"]":ee)+":"+x+N)}}}oe.connect(j)},this.subscribe=function(j,re){if("string"!=typeof j)throw new Error("Invalid argument:"+j);if(r(re=re||{},{qos:"number",invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),re.timeout&&!re.onFailure)throw new Error("subscribeOptions.timeout specified with no onFailure callback.");if(typeof re.qos<"u"&&0!==re.qos&&1!==re.qos&&2!==re.qos)throw new Error(u(c.INVALID_ARGUMENT,[re.qos,"subscribeOptions.qos"]));oe.subscribe(j,re)},this.unsubscribe=function(j,re){if("string"!=typeof j)throw new Error("Invalid argument:"+j);if(r(re=re||{},{invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),re.timeout&&!re.onFailure)throw new Error("unsubscribeOptions.timeout specified with no onFailure callback.");oe.unsubscribe(j,re)},this.send=function(j,re,J,ee){var x;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(j instanceof f)&&"string"!=typeof j)throw new Error("Invalid argument:"+typeof j);if(typeof(x=j).destinationName>"u")throw new Error(u(c.INVALID_ARGUMENT,[x.destinationName,"Message.destinationName"]));oe.send(x)}else(x=new f(re)).destinationName=j,arguments.length>=3&&(x.qos=J),arguments.length>=4&&(x.retained=ee),oe.send(x)},this.publish=function(j,re,J,ee){var x;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(j instanceof f)&&"string"!=typeof j)throw new Error("Invalid argument:"+typeof j);if(typeof(x=j).destinationName>"u")throw new Error(u(c.INVALID_ARGUMENT,[x.destinationName,"Message.destinationName"]));oe.send(x)}else(x=new f(re)).destinationName=j,arguments.length>=3&&(x.qos=J),arguments.length>=4&&(x.retained=ee),oe.send(x)},this.disconnect=function(){oe.disconnect()},this.getTraceLog=function(){return oe.getTraceLog()},this.startTrace=function(){oe.startTrace()},this.stopTrace=function(){oe.stopTrace()},this.isConnected=function(){return oe.connected}},Message:f}}(typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{}),d)},36469:(ne,L,d)=>{d(93749);var s=d(13026);typeof window<"u"&&(window.AWS=s),ne.exports=s,typeof self<"u"&&(self.AWS=s)},51520:(ne,L,d)=>{d(93749);var s=d(13026),S=s.Service,l=s.apiLoader;l.services.cognitoidentity={},s.CognitoIdentity=S.defineService("cognitoidentity",["2014-06-30"]),Object.defineProperty(l.services.cognitoidentity,"2014-06-30",{get:function(){var r=d(46933);return r.paginators=d(13428).o,r},enumerable:!0,configurable:!0}),ne.exports=s.CognitoIdentity},44025:(ne,L,d)=>{d(93749);var s=d(13026),S=s.Service,l=s.apiLoader;l.services.sts={},s.STS=S.defineService("sts",["2011-06-15"]),d(50066),Object.defineProperty(l.services.sts,"2011-06-15",{get:function(){var r=d(42369);return r.paginators=d(14819).o,r},enumerable:!0,configurable:!0}),ne.exports=s.STS},57569:ne=>{function L(d,s){if(!L.services.hasOwnProperty(d))throw new Error("InvalidService: Failed to load api for "+d);return L.services[d][s]}L.services={},ne.exports=L},61789:(ne,L,d)=>{var s=d(20788),S=d(12008),l=d(18785),t=d(53255);ne.exports={createHash:function(n){if("md5"===(n=n.toLowerCase()))return new S;if("sha256"===n)return new t;if("sha1"===n)return new l;throw new Error("Hash algorithm "+n+" is not supported in the browser SDK")},createHmac:function(n,c){if("md5"===(n=n.toLowerCase()))return new s(S,c);if("sha256"===n)return new s(t,c);if("sha1"===n)return new s(l,c);throw new Error("HMAC algorithm "+n+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},52246:(ne,L,d)=>{var s=d(8754).lW;typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView>"u"&&(ArrayBuffer.isView=function(r){return S.indexOf(Object.prototype.toString.call(r))>-1});var S=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];ne.exports={isEmptyData:function l(r){return"string"==typeof r?0===r.length:0===r.byteLength},convertToBuffer:function t(r){return"string"==typeof r&&(r=new s(r,"utf8")),ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(r)}}},20788:(ne,L,d)=>{var s=d(52246);function S(t,r){this.hash=new t,this.outer=new t;var n=function l(t,r){var n=s.convertToBuffer(r);if(n.byteLength>t.BLOCK_SIZE){var c=new t;c.update(n),n=c.digest()}var o=new Uint8Array(t.BLOCK_SIZE);return o.set(n),o}(t,r),c=new Uint8Array(t.BLOCK_SIZE);c.set(n);for(var o=0;o<t.BLOCK_SIZE;o++)n[o]^=54,c[o]^=92;for(this.hash.update(n),this.outer.update(c),o=0;o<n.byteLength;o++)n[o]=0}ne.exports=S,S.prototype.update=function(t){if(s.isEmptyData(t)||this.error)return this;try{this.hash.update(s.convertToBuffer(t))}catch(r){this.error=r}return this},S.prototype.digest=function(t){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(t)}},12008:(ne,L,d)=>{var s=d(52246),S=d(8754).lW;function n(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function c(E,R,P,D,A,_){return((R=(R+E&4294967295)+(D+_&4294967295)&4294967295)<<A|R>>>32-A)+P&4294967295}function o(E,R,P,D,A,_,I){return c(R&P|~R&D,E,R,A,_,I)}function u(E,R,P,D,A,_,I){return c(R&D|P&~D,E,R,A,_,I)}function v(E,R,P,D,A,_,I){return c(R^P^D,E,R,A,_,I)}function m(E,R,P,D,A,_,I){return c(P^(R|~D),E,R,A,_,I)}ne.exports=n,n.BLOCK_SIZE=64,n.prototype.update=function(E){if(s.isEmptyData(E))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var R=s.convertToBuffer(E),P=0,D=R.byteLength;for(this.bytesHashed+=D;D>0;)this.buffer.setUint8(this.bufferLength++,R[P++]),D--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},n.prototype.digest=function(E){if(!this.finished){var R=this,P=R.buffer,D=R.bufferLength,_=8*R.bytesHashed;if(P.setUint8(this.bufferLength++,128),D%64>=56){for(var I=this.bufferLength;I<64;I++)P.setUint8(I,0);this.hashBuffer(),this.bufferLength=0}for(I=this.bufferLength;I<56;I++)P.setUint8(I,0);P.setUint32(56,_>>>0,!0),P.setUint32(60,Math.floor(_/4294967296),!0),this.hashBuffer(),this.finished=!0}var B=new DataView(new ArrayBuffer(16));for(I=0;I<4;I++)B.setUint32(4*I,this.state[I],!0);var K=new S(B.buffer,B.byteOffset,B.byteLength);return E?K.toString(E):K},n.prototype.hashBuffer=function(){var R=this.buffer,P=this.state,D=P[0],A=P[1],_=P[2],I=P[3];D=o(D,A,_,I,R.getUint32(0,!0),7,3614090360),I=o(I,D,A,_,R.getUint32(4,!0),12,3905402710),_=o(_,I,D,A,R.getUint32(8,!0),17,606105819),A=o(A,_,I,D,R.getUint32(12,!0),22,3250441966),D=o(D,A,_,I,R.getUint32(16,!0),7,4118548399),I=o(I,D,A,_,R.getUint32(20,!0),12,1200080426),_=o(_,I,D,A,R.getUint32(24,!0),17,2821735955),A=o(A,_,I,D,R.getUint32(28,!0),22,4249261313),D=o(D,A,_,I,R.getUint32(32,!0),7,1770035416),I=o(I,D,A,_,R.getUint32(36,!0),12,2336552879),_=o(_,I,D,A,R.getUint32(40,!0),17,4294925233),A=o(A,_,I,D,R.getUint32(44,!0),22,2304563134),D=o(D,A,_,I,R.getUint32(48,!0),7,1804603682),I=o(I,D,A,_,R.getUint32(52,!0),12,4254626195),_=o(_,I,D,A,R.getUint32(56,!0),17,2792965006),D=u(D,A=o(A,_,I,D,R.getUint32(60,!0),22,1236535329),_,I,R.getUint32(4,!0),5,4129170786),I=u(I,D,A,_,R.getUint32(24,!0),9,3225465664),_=u(_,I,D,A,R.getUint32(44,!0),14,643717713),A=u(A,_,I,D,R.getUint32(0,!0),20,3921069994),D=u(D,A,_,I,R.getUint32(20,!0),5,3593408605),I=u(I,D,A,_,R.getUint32(40,!0),9,38016083),_=u(_,I,D,A,R.getUint32(60,!0),14,3634488961),A=u(A,_,I,D,R.getUint32(16,!0),20,3889429448),D=u(D,A,_,I,R.getUint32(36,!0),5,568446438),I=u(I,D,A,_,R.getUint32(56,!0),9,3275163606),_=u(_,I,D,A,R.getUint32(12,!0),14,4107603335),A=u(A,_,I,D,R.getUint32(32,!0),20,1163531501),D=u(D,A,_,I,R.getUint32(52,!0),5,2850285829),I=u(I,D,A,_,R.getUint32(8,!0),9,4243563512),_=u(_,I,D,A,R.getUint32(28,!0),14,1735328473),D=v(D,A=u(A,_,I,D,R.getUint32(48,!0),20,2368359562),_,I,R.getUint32(20,!0),4,4294588738),I=v(I,D,A,_,R.getUint32(32,!0),11,2272392833),_=v(_,I,D,A,R.getUint32(44,!0),16,1839030562),A=v(A,_,I,D,R.getUint32(56,!0),23,4259657740),D=v(D,A,_,I,R.getUint32(4,!0),4,2763975236),I=v(I,D,A,_,R.getUint32(16,!0),11,1272893353),_=v(_,I,D,A,R.getUint32(28,!0),16,4139469664),A=v(A,_,I,D,R.getUint32(40,!0),23,3200236656),D=v(D,A,_,I,R.getUint32(52,!0),4,681279174),I=v(I,D,A,_,R.getUint32(0,!0),11,3936430074),_=v(_,I,D,A,R.getUint32(12,!0),16,3572445317),A=v(A,_,I,D,R.getUint32(24,!0),23,76029189),D=v(D,A,_,I,R.getUint32(36,!0),4,3654602809),I=v(I,D,A,_,R.getUint32(48,!0),11,3873151461),_=v(_,I,D,A,R.getUint32(60,!0),16,530742520),D=m(D,A=v(A,_,I,D,R.getUint32(8,!0),23,3299628645),_,I,R.getUint32(0,!0),6,4096336452),I=m(I,D,A,_,R.getUint32(28,!0),10,1126891415),_=m(_,I,D,A,R.getUint32(56,!0),15,2878612391),A=m(A,_,I,D,R.getUint32(20,!0),21,4237533241),D=m(D,A,_,I,R.getUint32(48,!0),6,1700485571),I=m(I,D,A,_,R.getUint32(12,!0),10,2399980690),_=m(_,I,D,A,R.getUint32(40,!0),15,4293915773),A=m(A,_,I,D,R.getUint32(4,!0),21,2240044497),D=m(D,A,_,I,R.getUint32(32,!0),6,1873313359),I=m(I,D,A,_,R.getUint32(60,!0),10,4264355552),_=m(_,I,D,A,R.getUint32(24,!0),15,2734768916),A=m(A,_,I,D,R.getUint32(52,!0),21,1309151649),D=m(D,A,_,I,R.getUint32(16,!0),6,4149444226),I=m(I,D,A,_,R.getUint32(44,!0),10,3174756917),_=m(_,I,D,A,R.getUint32(8,!0),15,718787259),A=m(A,_,I,D,R.getUint32(36,!0),21,3951481745),P[0]=D+P[0]&4294967295,P[1]=A+P[1]&4294967295,P[2]=_+P[2]&4294967295,P[3]=I+P[3]&4294967295}},18785:(ne,L,d)=>{var s=d(8754).lW,S=d(52246);function o(){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),ne.exports=o,o.BLOCK_SIZE=64,o.prototype.update=function(u){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(S.isEmptyData(u))return this;var v=(u=S.convertToBuffer(u)).length;this.totalLength+=8*v;for(var m=0;m<v;m++)this.write(u[m]);return this},o.prototype.write=function(v){this.block[this.offset]|=(255&v)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},o.prototype.digest=function(u){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 v=24;v>=0;v-=8)this.write(this.totalLength>>v);var m=new s(20),E=new DataView(m.buffer);return E.setUint32(0,this.h0,!1),E.setUint32(4,this.h1,!1),E.setUint32(8,this.h2,!1),E.setUint32(12,this.h3,!1),E.setUint32(16,this.h4,!1),u?m.toString(u):m},o.prototype.processBlock=function(){for(var v=16;v<80;v++){var m=this.block[v-3]^this.block[v-8]^this.block[v-14]^this.block[v-16];this.block[v]=m<<1|m>>>31}var _,I,E=this.h0,R=this.h1,P=this.h2,D=this.h3,A=this.h4;for(v=0;v<80;v++){v<20?(_=D^R&(P^D),I=1518500249):v<40?(_=R^P^D,I=1859775393):v<60?(_=R&P|D&(R|P),I=2400959708):(_=R^P^D,I=3395469782);var B=(E<<5|E>>>27)+_+A+I+(0|this.block[v]);A=D,D=P,P=R<<30|R>>>2,R=E,E=B}for(this.h0=this.h0+E|0,this.h1=this.h1+R|0,this.h2=this.h2+P|0,this.h3=this.h3+D|0,this.h4=this.h4+A|0,this.offset=0,v=0;v<16;v++)this.block[v]=0}},53255:(ne,L,d)=>{var s=d(8754).lW,S=d(52246),r=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]),c=Math.pow(2,53)-1;function o(){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}ne.exports=o,o.BLOCK_SIZE=64,o.prototype.update=function(u){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(S.isEmptyData(u))return this;var v=0,m=(u=S.convertToBuffer(u)).byteLength;if(this.bytesHashed+=m,8*this.bytesHashed>c)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;m>0;)this.buffer[this.bufferLength++]=u[v++],m--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},o.prototype.digest=function(u){if(!this.finished){var v=8*this.bytesHashed,m=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),E=this.bufferLength;if(m.setUint8(this.bufferLength++,128),E%64>=56){for(var R=this.bufferLength;R<64;R++)m.setUint8(R,0);this.hashBuffer(),this.bufferLength=0}for(R=this.bufferLength;R<56;R++)m.setUint8(R,0);m.setUint32(56,Math.floor(v/4294967296),!0),m.setUint32(60,v),this.hashBuffer(),this.finished=!0}var P=new s(32);for(R=0;R<8;R++)P[4*R]=this.state[R]>>>24&255,P[4*R+1]=this.state[R]>>>16&255,P[4*R+2]=this.state[R]>>>8&255,P[4*R+3]=this.state[R]>>>0&255;return u?P.toString(u):P},o.prototype.hashBuffer=function(){for(var v=this.buffer,m=this.state,E=m[0],R=m[1],P=m[2],D=m[3],A=m[4],_=m[5],I=m[6],B=m[7],K=0;K<64;K++){if(K<16)this.temp[K]=(255&v[4*K])<<24|(255&v[4*K+1])<<16|(255&v[4*K+2])<<8|255&v[4*K+3];else{var q=this.temp[K-2];this.temp[K]=(((q>>>17|q<<15)^(q>>>19|q<<13)^q>>>10)+this.temp[K-7]|0)+((((q=this.temp[K-15])>>>7|q<<25)^(q>>>18|q<<14)^q>>>3)+this.temp[K-16]|0)}var w=(((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&_^~A&I)|0)+(B+(r[K]+this.temp[K]|0)|0)|0,f=((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+(E&R^E&P^R&P)|0;B=I,I=_,_=A,A=D+w|0,D=P,P=R,R=E,E=w+f|0}m[0]+=E,m[1]+=R,m[2]+=P,m[3]+=D,m[4]+=A,m[5]+=_,m[6]+=I,m[7]+=B}},93749:(ne,L,d)=>{var s=d(69264);s.crypto.lib=d(61789),s.Buffer=d(8754).lW,s.url=d(24451),s.querystring=d(46467),s.realClock=d(64885),s.environment="js",s.createEventStream=d(91784).createEventStream,s.isBrowser=function(){return!0},s.isNode=function(){return!1};var S=d(13026);if(ne.exports=S,d(65983),d(57017),d(94235),d(38476),d(18605),d(86398),d(60038),S.XML.Parser=d(57335),d(49789),typeof l>"u")var l={browser:!0}},81212:(ne,L,d)=>{var S,s=d(13026);d(65983),d(57017),s.Config=s.util.inherit({constructor:function(t){void 0===t&&(t={}),t=this.extractCredentials(t),s.util.each.call(this,this.keys,function(r,n){this.set(r,t[r],n)})},getCredentials:function(t){var r=this;function n(v){t(v,v?null:r.credentials)}function c(v,m){return new s.util.error(m||new Error,{code:"CredentialsError",message:v,name:"CredentialsError"})}r.credentials?"function"==typeof r.credentials.get?function o(){r.credentials.get(function(v){v&&(v=c("Could not load credentials from "+r.credentials.constructor.name,v)),n(v)})}():function u(){var v=null;(!r.credentials.accessKeyId||!r.credentials.secretAccessKey)&&(v=c("Missing credentials")),n(v)}():r.credentialProvider?r.credentialProvider.resolve(function(v,m){v&&(v=c("Could not load credentials from any providers",v)),r.credentials=m,n(v)}):n(c("No credentials to load"))},update:function(t,r){r=r||!1,t=this.extractCredentials(t),s.util.each.call(this,t,function(n,c){(r||Object.prototype.hasOwnProperty.call(this.keys,n)||s.Service.hasService(n))&&this.set(n,c)})},loadFromPath:function(t){this.clear();var r=JSON.parse(s.util.readFileSync(t)),n=new s.FileSystemCredentials(t),c=new s.CredentialProviderChain;return c.providers.unshift(n),c.resolve(function(o,u){if(o)throw o;r.credentials=u}),this.constructor(r),this},clear:function(){s.util.each.call(this,this.keys,function(t){delete this[t]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(t,r,n){void 0===r?(void 0===n&&(n=this.keys[t]),this[t]="function"==typeof n?n.call(this):n):this[t]="httpOptions"===t&&this[t]?s.util.merge(this[t],r):r},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"},extractCredentials:function(t){return t.accessKeyId&&t.secretAccessKey&&((t=s.util.copy(t)).credentials=new s.Credentials(t)),t},setPromisesDependency:function(t){S=t,null===t&&"function"==typeof Promise&&(S=Promise);var r=[s.Request,s.Credentials,s.CredentialProviderChain];s.S3&&(r.push(s.S3),s.S3.ManagedUpload&&r.push(s.S3.ManagedUpload)),s.util.addPromises(r,S)},getPromisesDependency:function(){return S}}),s.config=new s.Config},90127:(ne,L,d)=>{var s=d(13026);function S(t,r){if("string"==typeof t){if(["legacy","regional"].indexOf(t.toLowerCase())>=0)return t.toLowerCase();throw s.util.error(new Error,r)}}ne.exports=function l(t,r){var n;if((t=t||{})[r.clientConfig]&&(n=S(t[r.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+r.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+t[r.clientConfig]+'".'}))||!s.util.isNode())return n;if(Object.prototype.hasOwnProperty.call(process.env,r.env)&&(n=S(process.env[r.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+r.env+' environmental variable. Expect "legacy" or "regional". Got "'+process.env[r.env]+'".'})))return n;var o={};try{o=s.util.getProfilesFromSharedConfig(s.util.iniLoader)[process.env.AWS_PROFILE||s.util.defaultProfile]}catch{}return o&&Object.prototype.hasOwnProperty.call(o,r.sharedConfig)&&(n=S(o[r.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+r.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+o[r.sharedConfig]+'".'})),n}},13026:(ne,L,d)=>{var s={util:d(69264)};({}).toString(),ne.exports=s,s.util.update(s,{VERSION:"2.931.0",Signers:{},Protocol:{Json:d(51942),Query:d(23088),Rest:d(61310),RestJson:d(95100),RestXml:d(10937)},XML:{Builder:d(37775),Parser:null},JSON:{Builder:d(44256),Parser:d(70576)},Model:{Api:d(129),Operation:d(62344),Shape:d(83560),Paginator:d(47793),ResourceWaiter:d(87922)},apiLoader:d(57569),EndpointCache:d(19984).$}),d(30878),d(83618),d(81212),d(66100),d(95724),d(72354),d(93250),d(13730),d(30670),d(67859),s.events=new s.SequentialExecutor,s.util.memoizedProperty(s,"endpointCache",function(){return new s.EndpointCache(s.config.endpointCacheSize)},!0)},65983:(ne,L,d)=>{var s=d(13026);s.Credentials=s.util.inherit({constructor:function(){if(s.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"==typeof arguments[0]){var l=arguments[0].credentials||arguments[0];this.accessKeyId=l.accessKeyId,this.secretAccessKey=l.secretAccessKey,this.sessionToken=l.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var l=s.util.date.getDate().getTime(),t=new Date(l+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||this.expired||!this.accessKeyId||!this.secretAccessKey},get:function(l){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),l&&l(r)}):l&&l()},refresh:function(l){this.expired=!1,l()},coalesceRefresh:function(l,t){var r=this;1===r.refreshCallbacks.push(l)&&r.load(function(c){s.util.arrayEach(r.refreshCallbacks,function(o){t?o(c):s.util.defer(function(){o(c)})}),r.refreshCallbacks.length=0})},load:function(l){l()}}),s.Credentials.addPromisesToClass=function(l){this.prototype.getPromise=s.util.promisifyMethod("get",l),this.prototype.refreshPromise=s.util.promisifyMethod("refresh",l)},s.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},s.util.addPromises(s.Credentials)},38476:(ne,L,d)=>{var s=d(13026),S=d(44025);s.ChainableTemporaryCredentials=s.util.inherit(s.Credentials,{constructor:function(t){s.Credentials.call(this),t=t||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var r=s.util.copy(t.params)||{};if(r.RoleArn&&(r.RoleSessionName=r.RoleSessionName||"temporary-credentials"),r.SerialNumber){if(!t.tokenCodeFn||"function"!=typeof t.tokenCodeFn)throw new s.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=t.tokenCodeFn}var n=s.util.merge({params:r,credentials:t.masterCredentials||s.config.credentials},t.stsConfig||{});this.service=new S(n)},refresh:function(t){this.coalesceRefresh(t||s.util.fn.callback)},load:function(t){var r=this,n=r.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(c,o){var u={};c?t(c):(o&&(u.TokenCode=o),r.service[n](u,function(v,m){v||r.service.credentialsFrom(m,r),t(v)}))})},getTokenCode:function(t){var r=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(n,c){if(n){var o=n;return n instanceof Error&&(o=n.message),void t(s.util.error(new Error("Error fetching MFA token: "+o),{code:r.errorCode}))}t(null,c)}):t(null)}})},86398:(ne,L,d)=>{var s=d(13026),S=d(51520),l=d(44025);s.CognitoIdentityCredentials=s.util.inherit(s.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(r,n){s.Credentials.call(this),this.expired=!0,this.params=r,this.data=null,this._identityId=null,this._clientConfig=s.util.copy(n||{}),this.loadCachedId();var c=this;Object.defineProperty(this,"identityId",{get:function(){return c.loadCachedId(),c._identityId||c.params.IdentityId},set:function(o){c._identityId=o}})},refresh:function(r){this.coalesceRefresh(r||s.util.fn.callback)},load:function(r){var n=this;n.createClients(),n.data=null,n._identityId=null,n.getId(function(c){c?(n.clearIdOnNotAuthorized(c),r(c)):n.params.RoleArn?n.getCredentialsFromSTS(r):n.getCredentialsForIdentity(r)})},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var r=this.params.IdentityPoolId,n=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+r+n],delete this.storage[this.localStorageKey.providers+r+n]},clearIdOnNotAuthorized:function(r){"NotAuthorizedException"==r.code&&this.clearCachedId()},getId:function(r){var n=this;if("string"==typeof n.params.IdentityId)return r(null,n.params.IdentityId);n.cognito.getId(function(c,o){!c&&o.IdentityId?(n.params.IdentityId=o.IdentityId,r(null,o.IdentityId)):r(c)})},loadCredentials:function(r,n){!r||!n||(n.expired=!1,n.accessKeyId=r.Credentials.AccessKeyId,n.secretAccessKey=r.Credentials.SecretKey,n.sessionToken=r.Credentials.SessionToken,n.expireTime=r.Credentials.Expiration)},getCredentialsForIdentity:function(r){var n=this;n.cognito.getCredentialsForIdentity(function(c,o){c?n.clearIdOnNotAuthorized(c):(n.cacheId(o),n.data=o,n.loadCredentials(n.data,n)),r(c)})},getCredentialsFromSTS:function(r){var n=this;n.cognito.getOpenIdToken(function(c,o){c?(n.clearIdOnNotAuthorized(c),r(c)):(n.cacheId(o),n.params.WebIdentityToken=o.Token,n.webIdentityCredentials.refresh(function(u){u||(n.data=n.webIdentityCredentials.data,n.sts.credentialsFrom(n.data,n)),r(u)}))})},loadCachedId:function(){var r=this;if(s.util.isBrowser()&&!r.params.IdentityId){var n=r.getStorage("id");if(n&&r.params.Logins){var c=Object.keys(r.params.Logins);0!==(r.getStorage("providers")||"").split(",").filter(function(v){return-1!==c.indexOf(v)}).length&&(r.params.IdentityId=n)}else n&&(r.params.IdentityId=n)}},createClients:function(){var t=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new s.WebIdentityCredentials(this.params,t),!this.cognito){var r=s.util.merge({},t);r.params=this.params,this.cognito=new S(r)}this.sts=this.sts||new l(t)},cacheId:function(r){this._identityId=r.IdentityId,this.params.IdentityId=this._identityId,s.util.isBrowser()&&(this.setStorage("id",r.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(r){return this.storage[this.localStorageKey[r]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(r,n){try{this.storage[this.localStorageKey[r]+this.params.IdentityPoolId+(this.params.LoginId||"")]=n}catch{}},storage:function(){try{var t=s.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return t["aws.test-storage"]="foobar",delete t["aws.test-storage"],t}catch{return{}}}()})},57017:(ne,L,d)=>{var s=d(13026);s.CredentialProviderChain=s.util.inherit(s.Credentials,{constructor:function(l){this.providers=l||s.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(l){var t=this;if(0===t.providers.length)return l(new Error("No providers")),t;if(1===t.resolveCallbacks.push(l)){let o=function(u,v){if(!u&&v||r===n.length)return s.util.arrayEach(t.resolveCallbacks,function(E){E(u,v)}),void(t.resolveCallbacks.length=0);var m=n[r++];(v="function"==typeof m?m.call():m).get?v.get(function(E){o(E,E?null:v)}):o(null,v)};var r=0,n=t.providers.slice(0);o()}return t}}),s.CredentialProviderChain.defaultProviders=[],s.CredentialProviderChain.addPromisesToClass=function(l){this.prototype.resolvePromise=s.util.promisifyMethod("resolve",l)},s.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},s.util.addPromises(s.CredentialProviderChain)},60038:(ne,L,d)=>{var s=d(13026),S=d(44025);s.SAMLCredentials=s.util.inherit(s.Credentials,{constructor:function(t){s.Credentials.call(this),this.expired=!0,this.params=t},refresh:function(t){this.coalesceRefresh(t||s.util.fn.callback)},load:function(t){var r=this;r.createClients(),r.service.assumeRoleWithSAML(function(n,c){n||r.service.credentialsFrom(c,r),t(n)})},createClients:function(){this.service=this.service||new S({params:this.params})}})},94235:(ne,L,d)=>{var s=d(13026),S=d(44025);s.TemporaryCredentials=s.util.inherit(s.Credentials,{constructor:function(t,r){s.Credentials.call(this),this.loadMasterCredentials(r),this.expired=!0,this.params=t||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(t){this.coalesceRefresh(t||s.util.fn.callback)},load:function(t){var r=this;r.createClients(),r.masterCredentials.get(function(){r.service.config.credentials=r.masterCredentials,(r.params.RoleArn?r.service.assumeRole:r.service.getSessionToken).call(r.service,function(c,o){c||r.service.credentialsFrom(o,r),t(c)})})},loadMasterCredentials:function(t){for(this.masterCredentials=t||s.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!=typeof this.masterCredentials.get&&(this.masterCredentials=new s.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new S({params:this.params})}})},18605:(ne,L,d)=>{var s=d(13026),S=d(44025);s.WebIdentityCredentials=s.util.inherit(s.Credentials,{constructor:function(t,r){s.Credentials.call(this),this.expired=!0,this.params=t,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=s.util.copy(r||{})},refresh:function(t){this.coalesceRefresh(t||s.util.fn.callback)},load:function(t){var r=this;r.createClients(),r.service.assumeRoleWithWebIdentity(function(n,c){r.data=null,n||(r.data=c,r.service.credentialsFrom(c,r)),t(n)})},createClients:function(){if(!this.service){var l=s.util.merge({},this._clientConfig);l.params=this.params,this.service=new S(l)}}})},17102:(ne,L,d)=>{var s=d(13026),S=d(69264),l=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function t(A){var _=A.service,I=_.api||{},K={};return _.config.region&&(K.region=_.config.region),I.serviceId&&(K.serviceId=I.serviceId),_.config.credentials.accessKeyId&&(K.accessKeyId=_.config.credentials.accessKeyId),K}function r(A,_,I){!I||null==_||"structure"===I.type&&I.required&&I.required.length>0&&S.arrayEach(I.required,function(B){var K=I.members[B];!0===K.endpointDiscoveryId?A[K.isLocationName?K.name:B]=String(_[B]):r(A,_[B],K)})}function n(A,_){var I={};return r(I,A.params,_),I}function c(A){var _=A.service,I=_.api,B=I.operations?I.operations[A.operation]:void 0,q=n(A,B?B.input:void 0),W=t(A);Object.keys(q).length>0&&(W=S.update(W,q),B&&(W.operation=B.name));var O=s.endpointCache.get(W);if(!O||1!==O.length||""!==O[0].Address)if(O&&O.length>0)A.httpRequest.updateEndpoint(O[0].Address);else{var w=_.makeRequest(I.endpointOperation,{Operation:B.name,Identifiers:q});v(w),w.removeListener("validate",s.EventListeners.Core.VALIDATE_PARAMETERS),w.removeListener("retry",s.EventListeners.Core.RETRY_CHECK),s.endpointCache.put(W,[{Address:"",CachePeriodInMinutes:1}]),w.send(function(f,y){y&&y.Endpoints?s.endpointCache.put(W,y.Endpoints):f&&s.endpointCache.put(W,[{Address:"",CachePeriodInMinutes:1}])})}}var o={};function u(A,_){var I=A.service,B=I.api,K=B.operations?B.operations[A.operation]:void 0,W=n(A,K?K.input:void 0),O=t(A);Object.keys(W).length>0&&(O=S.update(O,W),K&&(O.operation=K.name));var w=s.EndpointCache.getKeyString(O),f=s.endpointCache.get(w);if(f&&1===f.length&&""===f[0].Address)return o[w]||(o[w]=[]),void o[w].push({request:A,callback:_});if(f&&f.length>0)A.httpRequest.updateEndpoint(f[0].Address),_();else{var y=I.makeRequest(B.endpointOperation,{Operation:K.name,Identifiers:W});y.removeListener("validate",s.EventListeners.Core.VALIDATE_PARAMETERS),v(y),s.endpointCache.put(w,[{Address:"",CachePeriodInMinutes:60}]),y.send(function(p,N){p?(A.response.error=S.error(p,{retryable:!1}),s.endpointCache.remove(O),o[w]&&(S.arrayEach(o[w],function(Q){Q.request.response.error=S.error(p,{retryable:!1}),Q.callback()}),delete o[w])):N&&(s.endpointCache.put(w,N.Endpoints),A.httpRequest.updateEndpoint(N.Endpoints[0].Address),o[w])&&(S.arrayEach(o[w],function($){$.request.httpRequest.updateEndpoint(N.Endpoints[0].Address),$.callback()}),delete o[w]),_()})}}function v(A){var I=A.service.api.apiVersion;I&&!A.httpRequest.headers["x-amz-api-version"]&&(A.httpRequest.headers["x-amz-api-version"]=I)}function m(A){var _=A.error;if(_&&("InvalidEndpointException"===_.code||421===A.httpResponse.statusCode)){var B=A.request,K=B.service.api.operations||{},W=n(B,K[B.operation]?K[B.operation].input:void 0),O=t(B);Object.keys(W).length>0&&(O=S.update(O,W),K[B.operation]&&(O.operation=K[B.operation].name)),s.endpointCache.remove(O)}}function R(A){return["false","0"].indexOf(A)>=0}ne.exports={discoverEndpoint:function D(A,_){var I=A.service||{};if(function E(A){if(A._originalConfig&&A._originalConfig.endpoint&&!0===A._originalConfig.endpointDiscoveryEnabled)throw S.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});return Boolean(s.config.endpoint||(s.config[A.serviceIdentifier]||{}).endpoint||A._originalConfig&&A._originalConfig.endpoint)}(I)||A.isPresigned())return _();var K=(I.api.operations||{})[A.operation],q=K?K.endpointDiscoveryRequired:"NULL",W=function P(A){var _=A.service||{};if(void 0!==_.config.endpointDiscoveryEnabled)return _.config.endpointDiscoveryEnabled;if(!S.isBrowser()){for(var I=0;I<l.length;I++){var B=l[I];if(Object.prototype.hasOwnProperty.call(process.env,B)){if(""===process.env[B]||void 0===process.env[B])throw S.error(new Error,{code:"ConfigurationException",message:"environmental variable "+B+" cannot be set to nothing"});return!R(process.env[B])}}var K={};try{K=s.util.iniLoader?s.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[s.util.sharedConfigFileEnv]}):{}}catch{}var q=K[process.env.AWS_PROFILE||s.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(q,"endpoint_discovery_enabled")){if(void 0===q.endpoint_discovery_enabled)throw S.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!R(q.endpoint_discovery_enabled)}}}(A),O=I.api.hasRequiredEndpointDiscovery;switch((W||O)&&A.httpRequest.appendToUserAgent("endpoint-discovery"),q){case"OPTIONAL":(W||O)&&(c(A),A.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",m)),_();break;case"REQUIRED":if(!1===W){A.response.error=S.error(new Error,{code:"ConfigurationException",message:"Endpoint Discovery is disabled but "+I.api.className+"."+A.operation+"() requires it. Please check your configurations."}),_();break}A.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",m),u(A,_);break;default:_()}},requiredDiscoverEndpoint:u,optionalDiscoverEndpoint:c,marshallCustomIdentifiers:n,getCacheKey:t,invalidateCachedEndpoint:m}},91784:(ne,L,d)=>{var s=d(68150).eventMessageChunker,S=d(59767).parseEvent;ne.exports={createEventStream:function l(t,r,n){for(var c=s(t),o=[],u=0;u<c.length;u++)o.push(S(r,c[u],n));return o}}},68150:ne=>{ne.exports={eventMessageChunker:function L(d){for(var s=[],S=0;S<d.length;){var l=d.readInt32BE(S),t=d.slice(S,l+S);S+=l,s.push(t)}return s}}},46058:(ne,L,d)=>{var s=d(13026).util,S=s.buffer.toBuffer;function l(r){if(8!==r.length)throw new Error("Int64 buffers must be exactly 8 bytes");s.Buffer.isBuffer(r)||(r=S(r)),this.bytes=r}function t(r){for(var n=0;n<8;n++)r[n]^=255;for(n=7;n>-1&&(r[n]++,0===r[n]);n--);}l.fromNumber=function(r){if(r>0x8000000000000000||r<-0x8000000000000000)throw new Error(r+" is too large (or, if negative, too small) to represent as an Int64");for(var n=new Uint8Array(8),c=7,o=Math.abs(Math.round(r));c>-1&&o>0;c--,o/=256)n[c]=o;return r<0&&t(n),new l(n)},l.prototype.valueOf=function(){var r=this.bytes.slice(0),n=128&r[0];return n&&t(r),parseInt(r.toString("hex"),16)*(n?-1:1)},l.prototype.toString=function(){return String(this.valueOf())},ne.exports={Int64:l}},59767:(ne,L,d)=>{var s=d(96450).parseMessage;ne.exports={parseEvent:function S(t,r,n){var c=s(r),o=c.headers[":message-type"];if(o){if("error"===o.value)throw function l(t){var r=t.headers[":error-code"],n=t.headers[":error-message"],c=new Error(n.value||n);return c.code=c.name=r.value||r,c}(c);if("event"!==o.value)return}var u=c.headers[":event-type"],v=n.members[u.value];if(v){var m={},E=v.eventPayloadMemberName;if(E){var R=v.members[E];m[E]="binary"===R.type?c.body:t.parse(c.body.toString(),R)}for(var P=v.eventHeaderMemberNames,D=0;D<P.length;D++){var A=P[D];c.headers[A]&&(m[A]=v.members[A].toType(c.headers[A].value))}var _={};return _[u.value]=m,_}}}},96450:(ne,L,d)=>{var s=d(46058).Int64,S=d(6677).splitMessage,l="boolean";function E(P){for(var D={},A=0;A<P.length;){var _=P.readUInt8(A++),I=P.slice(A,A+_).toString();switch(A+=_,P.readUInt8(A++)){case 0:D[I]={type:l,value:!0};break;case 1:D[I]={type:l,value:!1};break;case 2:D[I]={type:"byte",value:P.readInt8(A++)};break;case 3:D[I]={type:"short",value:P.readInt16BE(A)},A+=2;break;case 4:D[I]={type:"integer",value:P.readInt32BE(A)},A+=4;break;case 5:D[I]={type:"long",value:new s(P.slice(A,A+8))},A+=8;break;case 6:var B=P.readUInt16BE(A);D[I]={type:"binary",value:P.slice(A+=2,A+B)},A+=B;break;case 7:var K=P.readUInt16BE(A);D[I]={type:"string",value:P.slice(A+=2,A+K).toString()},A+=K;break;case 8:D[I]={type:"timestamp",value:new Date(new s(P.slice(A,A+8)).valueOf())},A+=8;break;case 9:var q=P.slice(A,A+16).toString("hex");A+=16,D[I]={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}ne.exports={parseMessage:function R(P){var D=S(P);return{headers:E(D.headers),body:D.body}}}},6677:(ne,L,d)=>{var s=d(13026).util,S=s.buffer.toBuffer;ne.exports={splitMessage:function c(o){if(s.Buffer.isBuffer(o)||(o=S(o)),o.length<16)throw new Error("Provided message too short to accommodate event stream message overhead");if(o.length!==o.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var u=o.readUInt32BE(8);if(u!==s.crypto.crc32(o.slice(0,8)))throw new Error("The prelude checksum specified in the message ("+u+") does not match the calculated CRC32 checksum.");var v=o.readUInt32BE(o.length-4);if(v!==s.crypto.crc32(o.slice(0,o.length-4)))throw new Error("The message checksum did not match the expected value of "+v);var E=12+o.readUInt32BE(4);return{headers:o.slice(12,E),body:o.slice(E,o.length-4)}}}},95724:(ne,L,d)=>{var s=d(13026),S=d(30878),l=d(17102).discoverEndpoint;s.EventListeners={Core:{}},s.EventListeners={Core:(new S).addNamedListeners(function(r,n){n("VALIDATE_CREDENTIALS","validate",function(u,v){if(!u.service.api.signatureVersion&&!u.service.config.signatureVersion)return v();u.service.config.getCredentials(function(m){m&&(u.response.error=s.util.error(m,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),v()})}),r("VALIDATE_REGION","validate",function(u){if(!u.service.isGlobalEndpoint){var v=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);u.service.config.region?v.test(u.service.config.region)||(u.response.error=s.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):u.response.error=s.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}}),r("BUILD_IDEMPOTENCY_TOKENS","validate",function(u){if(u.service.api.operations){var v=u.service.api.operations[u.operation];if(v){var m=v.idempotentMembers;if(m.length){for(var E=s.util.copy(u.params),R=0,P=m.length;R<P;R++)E[m[R]]||(E[m[R]]=s.util.uuid.v4());u.params=E}}}}),r("VALIDATE_PARAMETERS","validate",function(u){if(u.service.api.operations){var v=u.service.api.operations[u.operation].input;new s.ParamValidator(u.service.config.paramValidation).validate(v,u.params)}}),r("COMPUTE_CHECKSUM","afterBuild",function(u){if(u.service.api.operations){var v=u.service.api.operations[u.operation];if(v){var m=u.httpRequest.body,E=m&&(s.util.Buffer.isBuffer(m)||"string"==typeof m),R=u.httpRequest.headers;if(v.httpChecksumRequired&&u.service.config.computeChecksums&&E&&u.service.getSignerClass(u)===s.Signers.V4&&!R["Content-MD5"]){var P=s.util.crypto.md5(m,"base64");R["Content-MD5"]=P}}}}),n("COMPUTE_SHA256","afterBuild",function(u,v){if(u.haltHandlersOnError(),u.service.api.operations){var m=u.service.api.operations[u.operation],E=m?m.authtype:"";if(!u.service.api.signatureVersion&&!E&&!u.service.config.signatureVersion)return v();if(u.service.getSignerClass(u)===s.Signers.V4){var R=u.httpRequest.body||"";if(E.indexOf("unsigned-body")>=0)return u.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",v();s.util.computeSha256(R,function(P,D){P?v(P):(u.httpRequest.headers["X-Amz-Content-Sha256"]=D,v())})}else v()}}),r("SET_CONTENT_LENGTH","afterBuild",function(u){var v=function t(r){if(!r.service.api.operations)return"";var n=r.service.api.operations[r.operation];return n?n.authtype:""}(u),m=s.util.getRequestPayloadShape(u);if(void 0===u.httpRequest.headers["Content-Length"])try{var E=s.util.string.byteLength(u.httpRequest.body);u.httpRequest.headers["Content-Length"]=E}catch(R){if(m&&m.isStreaming){if(m.requiresLength)throw R;if(v.indexOf("unsigned-body")>=0)return void(u.httpRequest.headers["Transfer-Encoding"]="chunked");throw R}throw R}}),r("SET_HTTP_HOST","afterBuild",function(u){u.httpRequest.headers.Host=u.httpRequest.endpoint.host}),r("RESTART","restart",function(){var u=this.response.error;!u||!u.retryable||(this.httpRequest=new s.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount<this.service.config.maxRetries?this.response.retryCount++:this.response.error=null)}),n("DISCOVER_ENDPOINT","sign",l,!0),n("SIGN","sign",function(u,v){var m=u.service,R=(u.service.api.operations||{})[u.operation];if(!(m.api.signatureVersion||R&&R.authtype||m.config.signatureVersion))return v();m.config.getCredentials(function(D,A){if(D)return u.response.error=D,v();try{var _=m.getSkewCorrectedDate(),B=new(m.getSignerClass(u))(u.httpRequest,m.getSigningName(u),{signatureCache:m.config.signatureCache,operation:R,signatureVersion:m.api.signatureVersion});B.setServiceClientId(m._clientId),delete u.httpRequest.headers.Authorization,delete u.httpRequest.headers.Date,delete u.httpRequest.headers["X-Amz-Date"],B.addAuthorization(A,_),u.signedAt=_}catch(K){u.response.error=K}v()})}),r("VALIDATE_RESPONSE","validateResponse",function(u){this.service.successfulResponse(u,this)?(u.data={},u.error=null):(u.data=null,u.error=s.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))}),n("SEND","send",function(u,v){function m(A){u.httpResponse.stream=A;var _=u.request.httpRequest.stream,I=u.request.service,q=I.api.operations[u.request.operation]||{};A.on("headers",function(O,w,f){if(u.request.emit("httpHeaders",[O,w,u,f]),!u.httpResponse.streaming)if(2===s.HttpClient.streamsApiVersion){if(q.hasEventOutput&&I.successfulResponse(u))return u.request.emit("httpDone"),void v();A.on("readable",function(){var p=A.read();null!==p&&u.request.emit("httpData",[p,u])})}else A.on("data",function(p){u.request.emit("httpData",[p,u])})}),A.on("end",function(){if(!_||!_.didCallback){if(2===s.HttpClient.streamsApiVersion&&q.hasEventOutput&&I.successfulResponse(u))return;u.request.emit("httpDone"),v()}})}function R(A){"RequestAbortedError"!==A.code&&(A=s.util.error(A,{code:"TimeoutError"===A.code?A.code:"NetworkingError",region:u.request.httpRequest.region,hostname:u.request.httpRequest.endpoint.hostname,retryable:!0})),u.error=A,u.request.emit("httpError",[u.error,u],function(){v()})}function P(){var A=s.HttpClient.getInstance(),_=u.request.service.config.httpOptions||{};try{!function E(A){A.on("sendProgress",function(I){u.request.emit("httpUploadProgress",[I,u])}),A.on("receiveProgress",function(I){u.request.emit("httpDownloadProgress",[I,u])})}(A.handleRequest(u.request.httpRequest,_,m,R))}catch(B){R(B)}}u.httpResponse._abortCallback=v,u.error=null,u.data=null,(u.request.service.getSkewCorrectedDate()-this.signedAt)/1e3>=600?this.emit("sign",[this],function(A){A?v(A):P()}):P()}),r("HTTP_HEADERS","httpHeaders",function(u,v,m,E){m.httpResponse.statusCode=u,m.httpResponse.statusMessage=E,m.httpResponse.headers=v,m.httpResponse.body=s.util.buffer.toBuffer(""),m.httpResponse.buffers=[],m.httpResponse.numBytes=0;var R=v.date||v.Date,P=m.request.service;if(R){var D=Date.parse(R);P.config.correctClockSkew&&P.isClockSkewed(D)&&P.applyClockOffset(D)}}),r("HTTP_DATA","httpData",function(u,v){u&&(s.util.isNode()&&(v.httpResponse.numBytes+=u.length,v.request.emit("httpDownloadProgress",[{loaded:v.httpResponse.numBytes,total:v.httpResponse.headers["content-length"]},v])),v.httpResponse.buffers.push(s.util.buffer.toBuffer(u)))}),r("HTTP_DONE","httpDone",function(u){if(u.httpResponse.buffers&&u.httpResponse.buffers.length>0){var v=s.util.buffer.concat(u.httpResponse.buffers);u.httpResponse.body=v}delete u.httpResponse.numBytes,delete u.httpResponse.buffers}),r("FINALIZE_ERROR","retry",function(u){u.httpResponse.statusCode&&(u.error.statusCode=u.httpResponse.statusCode,void 0===u.error.retryable&&(u.error.retryable=this.service.retryableError(u.error,this)))}),r("INVALIDATE_CREDENTIALS","retry",function(u){if(u.error)switch(u.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":u.error.retryable=!0,u.request.service.config.credentials.expired=!0}}),r("EXPIRED_SIGNATURE","retry",function(u){var v=u.error;!v||"string"==typeof v.code&&"string"==typeof v.message&&v.code.match(/Signature/)&&v.message.match(/expired/)&&(u.error.retryable=!0)}),r("CLOCK_SKEWED","retry",function(u){!u.error||this.service.clockSkewError(u.error)&&this.service.config.correctClockSkew&&(u.error.retryable=!0)}),r("REDIRECT","retry",function(u){u.error&&u.error.statusCode>=300&&u.error.statusCode<400&&u.httpResponse.headers.location&&(this.httpRequest.endpoint=new s.Endpoint(u.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,u.error.redirect=!0,u.error.retryable=!0)}),r("RETRY_CHECK","retry",function(u){u.error&&(u.error.redirect&&u.redirectCount<u.maxRedirects?u.error.retryDelay=0:u.retryCount<u.maxRetries&&(u.error.retryDelay=this.service.retryDelays(u.retryCount,u.error)||0))}),n("RESET_RETRY_STATE","afterRetry",function(u,v){var m,E=!1;u.error&&(m=u.error.retryDelay||0,u.error.retryable&&u.retryCount<u.maxRetries?(u.retryCount++,E=!0):u.error.redirect&&u.redirectCount<u.maxRedirects&&(u.redirectCount++,E=!0)),E&&m>=0?(u.error=null,setTimeout(v,m)):v()})}),CorePost:(new S).addNamedListeners(function(r){r("EXTRACT_REQUEST_ID","extractData",s.util.extractRequestId),r("EXTRACT_REQUEST_ID","extractError",s.util.extractRequestId),r("ENOTFOUND_ERROR","httpError",function(c){"NetworkingError"===c.code&&function o(v){return"ENOTFOUND"===v.errno||"number"==typeof v.errno&&"function"==typeof s.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(s.util.getSystemErrorName(v.errno)>=0)}(c)&&(this.response.error=s.util.error(new Error("Inaccessible host: `"+c.hostname+"'. This service may not be available in the `"+c.region+"' region."),{code:"UnknownEndpoint",region:c.region,hostname:c.hostname,retryable:!0,originalError:c}))})}),Logger:(new S).addNamedListeners(function(r){r("LOG_REQUEST","complete",function(c){var o=c.request,u=o.service.config.logger;if(u){var E=function m(){var P=(c.request.service.getSkewCorrectedDate().getTime()-o.startTime.getTime())/1e3,D=!!u.isTTY,A=c.httpResponse.statusCode,_=o.params;o.service.api.operations&&o.service.api.operations[o.operation]&&o.service.api.operations[o.operation].input&&(_=v(o.service.api.operations[o.operation].input,o.params));var B=d(89174).inspect(_,!0,null),K="";return D&&(K+="\x1b[33m"),K+="[AWS "+o.service.serviceIdentifier+" "+A,K+=" "+P.toString()+"s "+c.retryCount+" retries]",D&&(K+="\x1b[0;1m"),K+=" "+s.util.string.lowerFirst(o.operation),K+="("+B+")",D&&(K+="\x1b[0m"),K}();"function"==typeof u.log?u.log(E):"function"==typeof u.write&&u.write(E+"\n")}function v(R,P){if(!P)return P;if(R.isSensitive)return"***SensitiveInformation***";switch(R.type){case"structure":var D={};return s.util.each(P,function(I,B){D[I]=Object.prototype.hasOwnProperty.call(R.members,I)?v(R.members[I],B):B}),D;case"list":var A=[];return s.util.arrayEach(P,function(I,B){A.push(v(R.member,I))}),A;case"map":var _={};return s.util.each(P,function(I,B){_[I]=v(R.value,B)}),_;default:return P}}})}),Json:(new S).addNamedListeners(function(r){var n=d(51942);r("BUILD","build",n.buildRequest),r("EXTRACT_DATA","extractData",n.extractData),r("EXTRACT_ERROR","extractError",n.extractError)}),Rest:(new S).addNamedListeners(function(r){var n=d(61310);r("BUILD","build",n.buildRequest),r("EXTRACT_DATA","extractData",n.extractData),r("EXTRACT_ERROR","extractError",n.extractError)}),RestJson:(new S).addNamedListeners(function(r){var n=d(95100);r("BUILD","build",n.buildRequest),r("EXTRACT_DATA","extractData",n.extractData),r("EXTRACT_ERROR","extractError",n.extractError)}),RestXml:(new S).addNamedListeners(function(r){var n=d(10937);r("BUILD","build",n.buildRequest),r("EXTRACT_DATA","extractData",n.extractData),r("EXTRACT_ERROR","extractError",n.extractError)}),Query:(new S).addNamedListeners(function(r){var n=d(23088);r("BUILD","build",n.buildRequest),r("EXTRACT_DATA","extractData",n.extractData),r("EXTRACT_ERROR","extractError",n.extractError)})}},66100:(ne,L,d)=>{var s=d(13026),S=s.util.inherit;s.Endpoint=S({constructor:function(t,r){if(s.util.hideProperties(this,["slashes","auth","hash","search","query"]),typeof t>"u"||null===t)throw new Error("Invalid endpoint: "+t);if("string"!=typeof t)return s.util.copy(t);t.match(/^http/)||(t=((r&&void 0!==r.sslEnabled?r.sslEnabled:s.config.sslEnabled)?"https":"http")+"://"+t),s.util.update(this,s.util.urlParse(t)),this.port=this.port?parseInt(this.port,10):"https:"===this.protocol?443:80}}),s.HttpRequest=S({constructor:function(t,r){t=new s.Endpoint(t),this.method="POST",this.path=t.path||"/",this.headers={},this.body="",this.endpoint=t,this.region=r,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=s.util.userAgent()},getUserAgentHeaderName:function(){return(s.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(t){"string"==typeof t&&t&&(this._userAgent+=" "+t),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var t=this.path.split("?",2)[1];return t?(t=s.util.queryStringParse(t),s.util.queryParamsToString(t)):""},updateEndpoint:function(t){var r=new s.Endpoint(t);this.endpoint=r,this.path=r.path||"/",this.headers.Host&&(this.headers.Host=r.host)}}),s.HttpResponse=S({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}}),s.HttpClient=S({}),s.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},49789:(ne,L,d)=>{var s=d(13026),S=d(60820).EventEmitter;d(66100),s.XHRClient=s.util.inherit({handleRequest:function(t,r,n,c){var o=this,u=t.endpoint,v=new S,m=u.protocol+"//"+u.hostname;80!==u.port&&443!==u.port&&(m+=":"+u.port),m+=t.path;var E=new XMLHttpRequest,R=!1;t.stream=E,E.addEventListener("readystatechange",function(){try{if(0===E.status)return}catch{return}this.readyState>=this.HEADERS_RECEIVED&&!R&&(v.statusCode=E.status,v.headers=o.parseHeaders(E.getAllResponseHeaders()),v.emit("headers",v.statusCode,v.headers,E.statusText),R=!0),this.readyState===this.DONE&&o.finishRequest(E,v)},!1),E.upload.addEventListener("progress",function(P){v.emit("sendProgress",P)}),E.addEventListener("progress",function(P){v.emit("receiveProgress",P)},!1),E.addEventListener("timeout",function(){c(s.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),E.addEventListener("error",function(){c(s.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),E.addEventListener("abort",function(){c(s.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),n(v),E.open(t.method,m,!1!==r.xhrAsync),s.util.each(t.headers,function(P,D){"Content-Length"!==P&&"User-Agent"!==P&&"Host"!==P&&E.setRequestHeader(P,D)}),r.timeout&&!1!==r.xhrAsync&&(E.timeout=r.timeout),r.xhrWithCredentials&&(E.withCredentials=!0);try{E.responseType="arraybuffer"}catch{}try{t.body?E.send(t.body):E.send()}catch(P){if(!t.body||"object"!=typeof t.body.buffer)throw P;E.send(t.body.buffer)}return v},parseHeaders:function(t){var r={};return s.util.arrayEach(t.split(/\r?\n/),function(n){var c=n.split(":",1)[0],o=n.substring(c.length+2);c.length>0&&(r[c.toLowerCase()]=o)}),r},finishRequest:function(t,r){var n;if("arraybuffer"===t.responseType&&t.response){var c=t.response;n=new s.util.Buffer(c.byteLength);for(var o=new Uint8Array(c),u=0;u<n.length;++u)n[u]=o[u]}try{!n&&"string"==typeof t.responseText&&(n=new s.util.Buffer(t.responseText))}catch{}n&&r.emit("data",n),r.emit("end")}}),s.HttpClient.prototype=s.XHRClient.prototype,s.HttpClient.streamsApiVersion=1},44256:(ne,L,d)=>{var s=d(69264);function S(){}function l(o,u){if(u&&null!=o)switch(u.type){case"structure":return function t(o,u){var v={};return s.each(o,function(m,E){var R=u.members[m];if(R){if("body"!==R.location)return;var P=R.isLocationName?R.name:m,D=l(E,R);void 0!==D&&(v[P]=D)}}),v}(o,u);case"map":return function n(o,u){var v={};return s.each(o,function(m,E){var R=l(E,u.value);void 0!==R&&(v[m]=R)}),v}(o,u);case"list":return function r(o,u){var v=[];return s.arrayEach(o,function(m){var E=l(m,u.member);void 0!==E&&v.push(E)}),v}(o,u);default:return function c(o,u){return u.toWireFormat(o)}(o,u)}}S.prototype.build=function(o,u){return JSON.stringify(l(o,u))},ne.exports=S},70576:(ne,L,d)=>{var s=d(69264);function S(){}function l(o,u){if(u&&void 0!==o)switch(u.type){case"structure":return function t(o,u){if(null!=o){var v={};return s.each(u.members,function(E,R){var P=R.isLocationName?R.name:E;if(Object.prototype.hasOwnProperty.call(o,P)){var A=l(o[P],R);void 0!==A&&(v[E]=A)}}),v}}(o,u);case"map":return function n(o,u){if(null!=o){var v={};return s.each(o,function(m,E){var R=l(E,u.value);v[m]=void 0===R?null:R}),v}}(o,u);case"list":return function r(o,u){if(null!=o){var v=[];return s.arrayEach(o,function(m){var E=l(m,u.member);v.push(void 0===E?null:E)}),v}}(o,u);default:return function c(o,u){return u.toType(o)}(o,u)}}S.prototype.parse=function(o,u){return l(JSON.parse(o),u)},ne.exports=S},129:(ne,L,d)=>{var s=d(48157),S=d(62344),l=d(83560),t=d(47793),r=d(87922),n=d(1406),c=d(69264),o=c.property,u=c.memoizedProperty;ne.exports=function v(m,E){var R=this;m=m||{},(E=E||{}).api=this,m.metadata=m.metadata||{};var P=E.serviceIdentifier;delete E.serviceIdentifier,o(this,"isApi",!0,!1),o(this,"apiVersion",m.metadata.apiVersion),o(this,"endpointPrefix",m.metadata.endpointPrefix),o(this,"signingName",m.metadata.signingName),o(this,"globalEndpoint",m.metadata.globalEndpoint),o(this,"signatureVersion",m.metadata.signatureVersion),o(this,"jsonVersion",m.metadata.jsonVersion),o(this,"targetPrefix",m.metadata.targetPrefix),o(this,"protocol",m.metadata.protocol),o(this,"timestampFormat",m.metadata.timestampFormat),o(this,"xmlNamespaceUri",m.metadata.xmlNamespace),o(this,"abbreviation",m.metadata.serviceAbbreviation),o(this,"fullName",m.metadata.serviceFullName),o(this,"serviceId",m.metadata.serviceId),P&&n[P]&&o(this,"xmlNoDefaultLists",n[P].xmlNoDefaultLists,!1),u(this,"className",function(){var A=m.metadata.serviceAbbreviation||m.metadata.serviceFullName;return A?("ElasticLoadBalancing"===(A=A.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(A="ELB"),A):null}),o(this,"operations",new s(m.operations,E,function(A,_){return new S(A,_,E)},c.string.lowerFirst,function D(A,_){!0===_.endpointoperation&&o(R,"endpointOperation",c.string.lowerFirst(A)),_.endpointdiscovery&&!R.hasRequiredEndpointDiscovery&&o(R,"hasRequiredEndpointDiscovery",!0===_.endpointdiscovery.required)})),o(this,"shapes",new s(m.shapes,E,function(A,_){return l.create(_,E)})),o(this,"paginators",new s(m.paginators,E,function(A,_){return new t(A,_,E)})),o(this,"waiters",new s(m.waiters,E,function(A,_){return new r(A,_,E)},c.string.lowerFirst)),E.documentation&&(o(this,"documentation",m.documentation),o(this,"documentationUrl",m.documentationUrl))}},48157:(ne,L,d)=>{var s=d(69264).memoizedProperty;function S(t,r,n,c){s(this,c(t),function(){return n(t,r)})}ne.exports=function l(t,r,n,c,o){for(var v in c=c||String,t)Object.prototype.hasOwnProperty.call(t,v)&&(S.call(this,v,t[v],n,c),o&&o(v,t[v]))}},62344:(ne,L,d)=>{var s=d(83560),S=d(69264),l=S.property,t=S.memoizedProperty;ne.exports=function r(c,o,u){var v=this;u=u||{},l(this,"name",o.name||c),l(this,"api",u.api,!1),o.http=o.http||{},l(this,"endpoint",o.endpoint),l(this,"httpMethod",o.http.method||"POST"),l(this,"httpPath",o.http.requestUri||"/"),l(this,"authtype",o.authtype||""),l(this,"endpointDiscoveryRequired",o.endpointdiscovery?o.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL"),l(this,"httpChecksumRequired",o.httpChecksumRequired,!1),t(this,"input",function(){return o.input?s.create(o.input,u):new s.create({type:"structure"},u)}),t(this,"output",function(){return o.output?s.create(o.output,u):new s.create({type:"structure"},u)}),t(this,"errors",function(){var m=[];if(!o.errors)return null;for(var E=0;E<o.errors.length;E++)m.push(s.create(o.errors[E],u));return m}),t(this,"paginator",function(){return u.api.paginators[c]}),u.documentation&&(l(this,"documentation",o.documentation),l(this,"documentationUrl",o.documentationUrl)),t(this,"idempotentMembers",function(){var m=[],E=v.input,R=E.members;if(!E.members)return m;for(var P in R)!R.hasOwnProperty(P)||!0===R[P].isIdempotent&&m.push(P);return m}),t(this,"hasEventOutput",function(){return function n(c){var o=c.members,u=c.payload;if(!c.members)return!1;if(u)return o[u].isEventStream;for(var m in o)if(!o.hasOwnProperty(m)&&!0===o[m].isEventStream)return!0;return!1}(v.output)})}},47793:(ne,L,d)=>{var s=d(69264).property;ne.exports=function S(l,t){s(this,"inputToken",t.input_token),s(this,"limitKey",t.limit_key),s(this,"moreResults",t.more_results),s(this,"outputToken",t.output_token),s(this,"resultKey",t.result_key)}},87922:(ne,L,d)=>{var s=d(69264),S=s.property;ne.exports=function l(t,r,n){n=n||{},S(this,"name",t),S(this,"api",n.api,!1),r.operation&&S(this,"operation",s.string.lowerFirst(r.operation));var c=this;["type","description","delay","maxAttempts","acceptors"].forEach(function(u){var v=r[u];v&&S(c,u,v)})}},83560:(ne,L,d)=>{var s=d(48157),S=d(69264);function l(_,I,B){null!=B&&S.property.apply(this,arguments)}function t(_,I){_.constructor.prototype[I]||S.memoizedProperty.apply(this,arguments)}function r(_,I,B){I=I||{},l(this,"shape",_.shape),l(this,"api",I.api,!1),l(this,"type",_.type),l(this,"enum",_.enum),l(this,"min",_.min),l(this,"max",_.max),l(this,"pattern",_.pattern),l(this,"location",_.location||this.location||"body"),l(this,"name",this.name||_.xmlName||_.queryName||_.locationName||B),l(this,"isStreaming",_.streaming||this.isStreaming||!1),l(this,"requiresLength",_.requiresLength,!1),l(this,"isComposite",_.isComposite||!1),l(this,"isShape",!0,!1),l(this,"isQueryName",Boolean(_.queryName),!1),l(this,"isLocationName",Boolean(_.locationName),!1),l(this,"isIdempotent",!0===_.idempotencyToken),l(this,"isJsonValue",!0===_.jsonvalue),l(this,"isSensitive",!0===_.sensitive||_.prototype&&!0===_.prototype.sensitive),l(this,"isEventStream",Boolean(_.eventstream),!1),l(this,"isEvent",Boolean(_.event),!1),l(this,"isEventPayload",Boolean(_.eventpayload),!1),l(this,"isEventHeader",Boolean(_.eventheader),!1),l(this,"isTimestampFormatSet",Boolean(_.timestampFormat)||_.prototype&&!0===_.prototype.isTimestampFormatSet,!1),l(this,"endpointDiscoveryId",Boolean(_.endpointdiscoveryid),!1),l(this,"hostLabel",Boolean(_.hostLabel),!1),I.documentation&&(l(this,"documentation",_.documentation),l(this,"documentationUrl",_.documentationUrl)),_.xmlAttribute&&l(this,"isXmlAttribute",_.xmlAttribute||!1),l(this,"defaultValue",null),this.toWireFormat=function(K){return K??""},this.toType=function(K){return K}}function n(_){r.apply(this,arguments),l(this,"isComposite",!0),_.flattened&&l(this,"flattened",_.flattened||!1)}function c(_,I){var B=this,K=null,q=!this.isShape;n.apply(this,arguments),q&&(l(this,"defaultValue",function(){return{}}),l(this,"members",{}),l(this,"memberNames",[]),l(this,"required",[]),l(this,"isRequired",function(){return!1})),_.members&&(l(this,"members",new s(_.members,I,function(W,O){return r.create(O,I,W)})),t(this,"memberNames",function(){return _.xmlOrder||Object.keys(_.members)}),_.event&&(t(this,"eventPayloadMemberName",function(){for(var W=B.members,O=B.memberNames,w=0,f=O.length;w<f;w++)if(W[O[w]].isEventPayload)return O[w]}),t(this,"eventHeaderMemberNames",function(){for(var W=B.members,O=B.memberNames,w=[],f=0,y=O.length;f<y;f++)W[O[f]].isEventHeader&&w.push(O[f]);return w}))),_.required&&(l(this,"required",_.required),l(this,"isRequired",function(W){if(!K){K={};for(var O=0;O<_.required.length;O++)K[_.required[O]]=!0}return K[W]},!1,!0)),l(this,"resultWrapper",_.resultWrapper||null),_.payload&&l(this,"payload",_.payload),"string"==typeof _.xmlNamespace?l(this,"xmlNamespaceUri",_.xmlNamespace):"object"==typeof _.xmlNamespace&&(l(this,"xmlNamespacePrefix",_.xmlNamespace.prefix),l(this,"xmlNamespaceUri",_.xmlNamespace.uri))}function o(_,I){var B=this,K=!this.isShape;if(n.apply(this,arguments),K&&l(this,"defaultValue",function(){return[]}),_.member&&t(this,"member",function(){return r.create(_.member,I)}),this.flattened){var q=this.name;t(this,"name",function(){return B.member.name||q})}}function u(_,I){var B=!this.isShape;n.apply(this,arguments),B&&(l(this,"defaultValue",function(){return{}}),l(this,"key",r.create({type:"string"},I)),l(this,"value",r.create({type:"string"},I))),_.key&&t(this,"key",function(){return r.create(_.key,I)}),_.value&&t(this,"value",function(){return r.create(_.value,I)})}function m(){r.apply(this,arguments);var _=["rest-xml","query","ec2"];this.toType=function(I){return I=this.api&&_.indexOf(this.api.protocol)>-1?I||"":I,this.isJsonValue?JSON.parse(I):I&&"function"==typeof I.toString?I.toString():I},this.toWireFormat=function(I){return this.isJsonValue?JSON.stringify(I):I}}function P(){r.apply(this,arguments),this.toType=function(_){var I=S.base64.decode(_);if(this.isSensitive&&S.isNode()&&"function"==typeof S.Buffer.alloc){var B=S.Buffer.alloc(I.length,I);I.fill(0),I=B}return I},this.toWireFormat=S.base64.encode}function D(){P.apply(this,arguments)}function A(){r.apply(this,arguments),this.toType=function(_){return"boolean"==typeof _?_:null==_?null:"true"===_}}r.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},r.types={structure:c,list:o,map:u,boolean:A,timestamp:function v(_){var I=this;if(r.apply(this,arguments),_.timestampFormat)l(this,"timestampFormat",_.timestampFormat);else if(I.isTimestampFormatSet&&this.timestampFormat)l(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)l(this,"timestampFormat","rfc822");else if("querystring"===this.location)l(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":l(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":l(this,"timestampFormat","iso8601")}this.toType=function(B){return null==B?null:"function"==typeof B.toUTCString?B:"string"==typeof B||"number"==typeof B?S.date.parseTimestamp(B):null},this.toWireFormat=function(B){return S.date.format(B,I.timestampFormat)}},float:function E(){r.apply(this,arguments),this.toType=function(_){return null==_?null:parseFloat(_)},this.toWireFormat=this.toType},integer:function R(){r.apply(this,arguments),this.toType=function(_){return null==_?null:parseInt(_,10)},this.toWireFormat=this.toType},string:m,base64:D,binary:P},r.resolve=function(I,B){if(I.shape){var K=B.api.shapes[I.shape];if(!K)throw new Error("Cannot find shape reference: "+I.shape);return K}return null},r.create=function(I,B,K){if(I.isShape)return I;var q=r.resolve(I,B);if(q){var W=Object.keys(I);B.documentation||(W=W.filter(function(f){return!f.match(/documentation/)}));var O=function(){q.constructor.call(this,I,B,K)};return O.prototype=q,new O}I.type||(I.type=I.members?"structure":I.member?"list":I.key?"map":"string");var w=I.type;if(r.normalizedTypes[I.type]&&(I.type=r.normalizedTypes[I.type]),r.types[I.type])return new r.types[I.type](I,B,K);throw new Error("Unrecognized shape type: "+w)},r.shapes={StructureShape:c,ListShape:o,MapShape:u,StringShape:m,BooleanShape:A,Base64Shape:D},ne.exports=r},67859:(ne,L,d)=>{var s=d(13026);s.ParamValidator=s.util.inherit({constructor:function(l){(!0===l||void 0===l)&&(l={min:!0}),this.validation=l},validate:function(l,t,r){if(this.errors=[],this.validateMember(l,t||{},r||"params"),this.errors.length>1){var n=this.errors.join("\n* ");throw n="There were "+this.errors.length+" validation errors:\n* "+n,s.util.error(new Error(n),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(l,t){this.errors.push(s.util.error(new Error(t),{code:l}))},validateStructure:function(l,t,r){this.validateType(t,r,["object"],"structure");for(var n,c=0;l.required&&c<l.required.length;c++)null==t[n=l.required[c]]&&this.fail("MissingRequiredParameter","Missing required key '"+n+"' in "+r);for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var u=t[n],v=l.members[n];if(void 0!==v){var m=[r,n].join(".");this.validateMember(v,u,m)}else null!=u&&this.fail("UnexpectedParameter","Unexpected key '"+n+"' found in "+r)}return!0},validateMember:function(l,t,r){switch(l.type){case"structure":return this.validateStructure(l,t,r);case"list":return this.validateList(l,t,r);case"map":return this.validateMap(l,t,r);default:return this.validateScalar(l,t,r)}},validateList:function(l,t,r){if(this.validateType(t,r,[Array])){this.validateRange(l,t.length,r,"list member count");for(var n=0;n<t.length;n++)this.validateMember(l.member,t[n],r+"["+n+"]")}},validateMap:function(l,t,r){if(this.validateType(t,r,["object"],"map")){var n=0;for(var c in t)!Object.prototype.hasOwnProperty.call(t,c)||(this.validateMember(l.key,c,r+"[key='"+c+"']"),this.validateMember(l.value,t[c],r+"['"+c+"']"),n++);this.validateRange(l,n,r,"map member count")}},validateScalar:function(l,t,r){switch(l.type){case null:case void 0:case"string":return this.validateString(l,t,r);case"base64":case"binary":return this.validatePayload(t,r);case"integer":case"float":return this.validateNumber(l,t,r);case"boolean":return this.validateType(t,r,["boolean"]);case"timestamp":return this.validateType(t,r,[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 "+l.type+" for "+r)}},validateString:function(l,t,r){var n=["string"];l.isJsonValue&&(n=n.concat(["number","object","boolean"])),null!==t&&this.validateType(t,r,n)&&(this.validateEnum(l,t,r),this.validateRange(l,t.length,r,"string length"),this.validatePattern(l,t,r),this.validateUri(l,t,r))},validateUri:function(l,t,r){"uri"===l.location&&0===t.length&&this.fail("UriParameterError",'Expected uri parameter to have length >= 1, but found "'+t+'" for '+r)},validatePattern:function(l,t,r){this.validation.pattern&&void 0!==l.pattern&&(new RegExp(l.pattern).test(t)||this.fail("PatternMatchError",'Provided value "'+t+'" does not match regex pattern /'+l.pattern+"/ for "+r))},validateRange:function(l,t,r,n){this.validation.min&&void 0!==l.min&&t<l.min&&this.fail("MinRangeError","Expected "+n+" >= "+l.min+", but found "+t+" for "+r),this.validation.max&&void 0!==l.max&&t>l.max&&this.fail("MaxRangeError","Expected "+n+" <= "+l.max+", but found "+t+" for "+r)},validateEnum:function(l,t,r){this.validation.enum&&void 0!==l.enum&&-1===l.enum.indexOf(t)&&this.fail("EnumError","Found string value of "+t+", but expected "+l.enum.join("|")+" for "+r)},validateType:function(l,t,r,n){if(null==l)return!1;for(var c=!1,o=0;o<r.length;o++){if("string"==typeof r[o]){if(typeof l===r[o])return!0}else if(r[o]instanceof RegExp){if((l||"").toString().match(r[o]))return!0}else{if(l instanceof r[o]||s.util.isType(l,r[o]))return!0;!n&&!c&&(r=r.slice()),r[o]=s.util.typeName(r[o])}c=!0}var u=n;u||(u=r.join(", ").replace(/,([^,]+)$/,", or$1"));var v=u.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+t+" to be a"+v+" "+u),!1},validateNumber:function(l,t,r){if(null!=t){if("string"==typeof t){var n=parseFloat(t);n.toString()===t&&(t=n)}this.validateType(t,r,["number"])&&this.validateRange(l,t,r,"numeric value")}},validatePayload:function(l,t){if(null!=l&&"string"!=typeof l&&(!l||"number"!=typeof l.byteLength)){if(s.util.isNode()){var r=s.util.stream.Stream;if(s.util.Buffer.isBuffer(l)||l instanceof r)return}else if(void 0!==typeof Blob&&l instanceof Blob)return;var n=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(l)for(var c=0;c<n.length;c++)if(s.util.isType(l,n[c])||s.util.typeName(l.constructor)===n[c])return;this.fail("InvalidParameterType","Expected "+t+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},47082:(ne,L,d)=>{var s=d(69264),S=d(13026);ne.exports={populateHostPrefix:function l(o){if(!o.service.config.hostPrefixEnabled)return o;var v=o.service.api.operations[o.operation];if(function t(o){var u=o.service.api,v=u.operations[o.operation],m=u.endpointOperation&&u.endpointOperation===s.string.lowerFirst(v.name);return"NULL"!==v.endpointDiscoveryRequired||!0===m}(o))return o;if(v.endpoint&&v.endpoint.hostPrefix){var E=function r(o,u,v){return s.each(v.members,function(m,E){if(!0===E.hostLabel){if("string"!=typeof u[m]||""===u[m])throw s.error(new Error,{message:"Parameter "+m+" should be a non-empty string.",code:"InvalidParameter"});var R=new RegExp("\\{"+m+"\\}","g");o=o.replace(R,u[m])}}),o}(v.endpoint.hostPrefix,o.params,v.input);(function n(o,u){o.host&&(o.host=u+o.host),o.hostname&&(o.hostname=u+o.hostname)})(o.httpRequest.endpoint,E),function c(o){var u=o.split("."),v=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;s.arrayEach(u,function(m){if(!m.length||m.length<1||m.length>63)throw s.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!v.test(m))throw S.util.error(new Error,{code:"ValidationError",message:m+" is not hostname compatible."})})}(o.httpRequest.endpoint.hostname)}return o}}},51942:(ne,L,d)=>{var s=d(69264),S=d(44256),l=d(70576),t=d(47082).populateHostPrefix;ne.exports={buildRequest:function r(o){var u=o.httpRequest,v=o.service.api,m=v.targetPrefix+"."+v.operations[o.operation].name,E=v.jsonVersion||"1.0",R=v.operations[o.operation].input,P=new S;1===E&&(E="1.0"),u.body=P.build(o.params||{},R),u.headers["Content-Type"]="application/x-amz-json-"+E,u.headers["X-Amz-Target"]=m,t(o)},extractError:function n(o){var u={},v=o.httpResponse;if(u.code=v.headers["x-amzn-errortype"]||"UnknownError","string"==typeof u.code&&(u.code=u.code.split(":")[0]),v.body.length>0)try{var m=JSON.parse(v.body.toString()),E=m.__type||m.code||m.Code;E&&(u.code=E.split("#").pop()),u.message="RequestEntityTooLarge"===u.code?"Request body must be less than 1 MB":m.message||m.Message||null}catch{u.statusCode=v.statusCode,u.message=v.statusMessage}else u.statusCode=v.statusCode,u.message=v.statusCode.toString();o.error=s.error(new Error,u)},extractData:function c(o){var u=o.httpResponse.body.toString()||"{}";if(!1===o.request.service.config.convertResponseTypes)o.data=JSON.parse(u);else{var m=o.request.service.api.operations[o.request.operation].output||{},E=new l;o.data=E.parse(u,m)}}}},23088:(ne,L,d)=>{var s=d(13026),S=d(69264),l=d(17476),t=d(83560),r=d(47082).populateHostPrefix;ne.exports={buildRequest:function n(u){var v=u.service.api.operations[u.operation],m=u.httpRequest;m.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",m.params={Version:u.service.api.apiVersion,Action:v.name},(new l).serialize(u.params,v.input,function(R,P){m.params[R]=P}),m.body=S.queryParamsToString(m.params),r(u)},extractError:function c(u){var v,m=u.httpResponse.body.toString();if(m.match("<UnknownOperationException"))v={Code:"UnknownOperation",Message:"Unknown operation "+u.request.operation};else try{v=(new s.XML.Parser).parse(m)}catch{v={Code:u.httpResponse.statusCode,Message:u.httpResponse.statusMessage}}v.requestId&&!u.requestId&&(u.requestId=v.requestId),v.Errors&&(v=v.Errors),v.Error&&(v=v.Error),u.error=S.error(new Error,v.Code?{code:v.Code,message:v.Message}:{code:u.httpResponse.statusCode,message:null})},extractData:function o(u){var v=u.request,E=v.service.api.operations[v.operation].output||{},R=E;if(R.resultWrapper){var P=t.create({type:"structure"});P.members[R.resultWrapper]=E,P.memberNames=[R.resultWrapper],S.property(E,"name",E.resultWrapper),E=P}var D=new s.XML.Parser;if(E&&E.members&&!E.members._XAMZRequestId){var A=t.create({type:"string"},{api:{protocol:"query"}},"requestId");E.members._XAMZRequestId=A}var _=D.parse(u.httpResponse.body.toString(),E);u.requestId=_._XAMZRequestId||_.requestId,_._XAMZRequestId&&delete _._XAMZRequestId,R.resultWrapper&&_[R.resultWrapper]&&(S.update(_,_[R.resultWrapper]),delete _[R.resultWrapper]),u.data=_}}},61310:(ne,L,d)=>{var s=d(69264),S=d(47082).populateHostPrefix;function t(v,m,E,R){var P=[v,m].join("/");P=P.replace(/\/+/g,"/");var D={},A=!1;if(s.each(E.members,function(I,B){var K=R[I];if(null!=K)if("uri"===B.location){var q=new RegExp("\\{"+B.name+"(\\+)?\\}");P=P.replace(q,function(W,O){return(O?s.uriEscapePath:s.uriEscape)(String(K))})}else"querystring"===B.location&&(A=!0,"list"===B.type?D[B.name]=K.map(function(W){return s.uriEscape(B.member.toWireFormat(W).toString())}):"map"===B.type?s.each(K,function(W,O){D[W]=Array.isArray(O)?O.map(function(w){return s.uriEscape(String(w))}):s.uriEscape(String(O))}):D[B.name]=s.uriEscape(B.toWireFormat(K).toString()))}),A){P+=P.indexOf("?")>=0?"&":"?";var _=[];s.arrayEach(Object.keys(D).sort(),function(I){Array.isArray(D[I])||(D[I]=[D[I]]);for(var B=0;B<D[I].length;B++)_.push(s.uriEscape(String(I))+"="+D[I][B])}),P+=_.join("&")}return P}ne.exports={buildRequest:function c(v){(function l(v){v.httpRequest.method=v.service.api.operations[v.operation].httpMethod})(v),function r(v){var m=v.service.api.operations[v.operation],R=t(v.httpRequest.endpoint.path,m.httpPath,m.input,v.params);v.httpRequest.path=R}(v),function n(v){s.each(v.service.api.operations[v.operation].input.members,function(E,R){var P=v.params[E];null!=P&&("headers"===R.location&&"map"===R.type?s.each(P,function(D,A){v.httpRequest.headers[R.name+D]=A}):"header"===R.location&&(P=R.toWireFormat(P).toString(),R.isJsonValue&&(P=s.base64.encode(P)),v.httpRequest.headers[R.name]=P))})}(v),S(v)},extractError:function o(){},extractData:function u(v){var m=v.request,E={},R=v.httpResponse,D=m.service.api.operations[m.operation].output,A={};s.each(R.headers,function(_,I){A[_.toLowerCase()]=I}),s.each(D.members,function(_,I){var B=(I.name||_).toLowerCase();if("headers"===I.location&&"map"===I.type){E[_]={};var q=new RegExp("^"+(I.isLocationName?I.name:"")+"(.+)","i");s.each(R.headers,function(O,w){var f=O.match(q);null!==f&&(E[_][f[1]]=w)})}else if("header"===I.location){if(void 0!==A[B]){var W=I.isJsonValue?s.base64.decode(A[B]):A[B];E[_]=I.toType(W)}}else"statusCode"===I.location&&(E[_]=parseInt(R.statusCode,10))}),v.data=E},generateURI:t}},95100:(ne,L,d)=>{var s=d(69264),S=d(61310),l=d(51942),t=d(44256),r=d(70576);function c(m,E){m.httpRequest.headers["Content-Type"]||(m.httpRequest.headers["Content-Type"]=E?"binary/octet-stream":"application/json")}ne.exports={buildRequest:function o(m){S.buildRequest(m),["HEAD","DELETE"].indexOf(m.httpRequest.method)<0&&function n(m){var E=new t,R=m.service.api.operations[m.operation].input;if(R.payload){var P,D=R.members[R.payload];if(void 0===(P=m.params[R.payload]))return;"structure"===D.type?(m.httpRequest.body=E.build(P,D),c(m)):(m.httpRequest.body=P,("binary"===D.type||D.isStreaming)&&c(m,!0))}else{var A=E.build(m.params,R);("{}"!==A||"GET"!==m.httpRequest.method)&&(m.httpRequest.body=A),c(m)}}(m)},extractError:function u(m){l.extractError(m)},extractData:function v(m){S.extractData(m);var E=m.request,P=E.service.api.operations[E.operation].output||{};if(P.payload){var _=P.members[P.payload],I=m.httpResponse.body;if(_.isEventStream)D=new r,m.data[payload]=s.createEventStream(2===AWS.HttpClient.streamsApiVersion?m.httpResponse.stream:I,D,_);else if("structure"===_.type||"list"===_.type){var D=new r;m.data[P.payload]=D.parse(I,_)}else m.data[P.payload]="binary"===_.type||_.isStreaming?I:_.toType(I)}else{var B=m.data;l.extractData(m),m.data=s.merge(B,m.data)}}}},10937:(ne,L,d)=>{var s=d(13026),S=d(69264),l=d(61310);ne.exports={buildRequest:function r(o){l.buildRequest(o),["GET","HEAD"].indexOf(o.httpRequest.method)<0&&function t(o){var u=o.service.api.operations[o.operation].input,v=new s.XML.Builder,m=o.params,E=u.payload;if(E){var R=u.members[E];if(void 0===(m=m[E]))return;o.httpRequest.body="structure"===R.type?v.toXML(m,R,R.name,!0):m}else o.httpRequest.body=v.toXML(m,u,u.name||u.shape||S.string.upperFirst(o.operation)+"Request")}(o)},extractError:function n(o){var u;l.extractError(o);try{u=(new s.XML.Parser).parse(o.httpResponse.body.toString())}catch{u={Code:o.httpResponse.statusCode,Message:o.httpResponse.statusMessage}}u.Errors&&(u=u.Errors),u.Error&&(u=u.Error),o.error=S.error(new Error,u.Code?{code:u.Code,message:u.Message}:{code:o.httpResponse.statusCode,message:null})},extractData:function c(o){l.extractData(o);var u,v=o.request,m=o.httpResponse.body,R=v.service.api.operations[v.operation].output,D=R.payload;if(D){var A=R.members[D];A.isEventStream?(u=new s.XML.Parser,o.data[D]=S.createEventStream(2===s.HttpClient.streamsApiVersion?o.httpResponse.stream:o.httpResponse.body,u,A)):"structure"===A.type?(u=new s.XML.Parser,o.data[D]=u.parse(m.toString(),A)):o.data[D]="binary"===A.type||A.isStreaming?m:A.toType(m)}else if(m.length>0){var _=(u=new s.XML.Parser).parse(m.toString(),R);S.update(o.data,_)}}}},17476:(ne,L,d)=>{var s=d(69264);function S(){}function l(o){return o.isQueryName||"ec2"!==o.api.protocol?o.name:o.name[0].toUpperCase()+o.name.substr(1)}function t(o,u,v,m){s.each(v.members,function(E,R){var P=u[E];if(null!=P){var D=l(R);c(D=o?o+"."+D:D,P,R,m)}})}function c(o,u,v,m){null!=u&&("structure"===v.type?t(o,u,v,m):"list"===v.type?function n(o,u,v,m){var E=v.member||{};0!==u.length?s.arrayEach(u,function(R,P){var D="."+(P+1);if("ec2"===v.api.protocol)D+="";else if(v.flattened){if(E.name){var A=o.split(".");A.pop(),A.push(l(E)),o=A.join(".")}}else D="."+(E.name?E.name:"member")+D;c(o+D,R,E,m)}):m.call(this,o,null)}(o,u,v,m):"map"===v.type?function r(o,u,v,m){var E=1;s.each(u,function(R,P){var A=(v.flattened?".":".entry.")+E+++".",I=A+(v.value.name||"value");c(o+(A+(v.key.name||"key")),R,v.key,m),c(o+I,P,v.value,m)})}(o,u,v,m):m(o,v.toWireFormat(u).toString()))}S.prototype.serialize=function(o,u,v){t("",o,u,v)},ne.exports=S},64885:ne=>{ne.exports={now:function(){return typeof performance<"u"&&"function"==typeof performance.now?performance.now():Date.now()}}},17184:(ne,L,d)=>{var s=d(69264),S=d(50261);function r(o,u){s.each(u,function(v,m){"globalEndpoint"!==v&&null==o.config[v]&&(o.config[v]=m)})}ne.exports={configureEndpoint:function n(o){for(var u=function t(o){var u=o.config.region,v=function l(o){if(!o)return null;var u=o.split("-");return u.length<3?null:u.slice(0,u.length-2).join("-")+"-*"}(u),m=o.api.endpointPrefix;return[[u,m],[v,m],[u,"*"],[v,"*"],["*",m],["*","*"]].map(function(E){return E[0]&&E[1]?E.join("/"):null})}(o),v=0;v<u.length;v++){var m=u[v];if(m&&Object.prototype.hasOwnProperty.call(S.rules,m)){var E=S.rules[m];return"string"==typeof E&&(E=S.patterns[E]),o.config.useDualstack&&s.isDualstackAvailable(o)&&((E=s.copy(E)).endpoint=E.endpoint.replace(/{service}\.({region}\.)?/,"{service}.dualstack.{region}.")),o.isGlobalEndpoint=!!E.globalEndpoint,E.signingRegion&&(o.signingRegion=E.signingRegion),E.signatureVersion||(E.signatureVersion="v4"),void r(o,E)}}},getEndpointSuffix:function c(o){for(var u={"^(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"},m=Object.keys(u),E=0;E<m.length;E++){var R=RegExp(m[E]),P=u[m[E]];if(R.test(o))return P}return"amazonaws.com"}}},72354:(ne,L,d)=>{var s=d(13026),S=d(17463),l=s.util.inherit,t=s.util.domain,r=d(67848),n={success:1,error:1,complete:1},o=new S;o.setupStates=function(){var u=function(v,m){var E=this;E._haltHandlersOnError=!1,E.emit(E._asm.currentState,function(R){if(R)if(function c(u){return Object.prototype.hasOwnProperty.call(n,u._asm.currentState)}(E)){if(!(t&&E.domain instanceof t.Domain))throw R;R.domainEmitter=E,R.domain=E.domain,R.domainThrown=!1,E.domain.emit("error",R)}else E.response.error=R,m(R);else m(E.response.error)})};this.addState("validate","build","error",u),this.addState("build","afterBuild","restart",u),this.addState("afterBuild","sign","restart",u),this.addState("sign","send","retry",u),this.addState("retry","afterRetry","afterRetry",u),this.addState("afterRetry","sign","error",u),this.addState("send","validateResponse","retry",u),this.addState("validateResponse","extractData","extractError",u),this.addState("extractError","extractData","retry",u),this.addState("extractData","success","retry",u),this.addState("restart","build","error",u),this.addState("success","complete","complete",u),this.addState("error","complete","complete",u),this.addState("complete",null,null,u)},o.setupStates(),s.Request=l({constructor:function(v,m,E){var R=v.endpoint,P=v.config.region,D=v.config.customUserAgent;v.isGlobalEndpoint&&(P=v.signingRegion?v.signingRegion:"us-east-1"),this.domain=t&&t.active,this.service=v,this.operation=m,this.params=E||{},this.httpRequest=new s.HttpRequest(R,P),this.httpRequest.appendToUserAgent(D),this.startTime=v.getSkewCorrectedDate(),this.response=new s.Response(this),this._asm=new S(o.states,"validate"),this._haltHandlersOnError=!1,s.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(v){return v&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",function(m){v.call(m,m.error,m.data)})),this.runTo(),this.response},build:function(v){return this.runTo("send",v)},runTo:function(v,m){return this._asm.runTo(v,m,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",function(m){m.error=s.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(v){v=s.util.fn.makeAsync(v,3),this.on("complete",function m(E){v.call(E,E.error,E.data,function(R){!1!==R&&(E.hasNextPage()?E.nextPage().on("complete",m).send():v.call(E,null,null,s.util.fn.noop))})}).send()},eachItem:function(v){var m=this;this.eachPage(function E(R,P){if(R)return v(R,null);if(null===P)return v(null,null);var A=m.service.paginationConfig(m.operation).resultKey;Array.isArray(A)&&(A=A[0]);var _=r.search(P,A),I=!0;return s.util.arrayEach(_,function(B){if(!1===(I=v(null,B)))return s.util.abort}),I})},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var v=s.util.stream,m=this,E=null;return 2===s.HttpClient.streamsApiVersion?(E=new v.PassThrough,process.nextTick(function(){m.send()})):((E=new v.Stream).readable=!0,E.sent=!1,E.on("newListener",function(R){!E.sent&&"data"===R&&(E.sent=!0,process.nextTick(function(){m.send()}))})),this.on("error",function(R){E.emit("error",R)}),this.on("httpHeaders",function(P,D,A){if(P<300){m.removeListener("httpData",s.EventListeners.Core.HTTP_DATA),m.removeListener("httpError",s.EventListeners.Core.HTTP_ERROR),m.on("httpError",function(w){A.error=w,A.error.retryable=!1});var I,_=!1;if("HEAD"!==m.httpRequest.method&&(I=parseInt(D["content-length"],10)),void 0!==I&&!isNaN(I)&&I>=0){_=!0;var B=0}var K=function(){_&&B!==I?E.emit("error",s.util.error(new Error("Stream content length mismatch. Received "+B+" of "+I+" bytes."),{code:"StreamContentLengthMismatch"})):2===s.HttpClient.streamsApiVersion?E.end():E.emit("end")},q=A.httpResponse.createUnbufferedStream();if(2===s.HttpClient.streamsApiVersion)if(_){var W=new v.PassThrough;W._write=function(O){return O&&O.length&&(B+=O.length),v.PassThrough.prototype._write.apply(this,arguments)},W.on("end",K),E.on("error",function(O){_=!1,q.unpipe(W),W.emit("end"),W.end()}),q.pipe(W).pipe(E,{end:!1})}else q.pipe(E);else _&&q.on("data",function(O){O&&O.length&&(B+=O.length)}),q.on("data",function(O){E.emit("data",O)}),q.on("end",K);q.on("error",function(O){_=!1,E.emit("error",O)})}}),E},emitEvent:function(v,m,E){"function"==typeof m&&(E=m,m=null),E||(E=function(){}),m||(m=this.eventParameters(v,this.response)),s.SequentialExecutor.prototype.emit.call(this,v,m,function(P){P&&(this.response.error=P),E.call(this,P)})},eventParameters:function(v){switch(v){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(v,m){return!m&&"function"==typeof v&&(m=v,v=null),(new s.Signers.Presign).sign(this.toGet(),v,m)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",s.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",s.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(v){v.httpRequest.method="GET",v.httpRequest.path=v.service.endpoint.path+"?"+v.httpRequest.body,v.httpRequest.body="",delete v.httpRequest.headers["Content-Length"],delete v.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),s.Request.addPromisesToClass=function(v){this.prototype.promise=function(){var E=this;return this.httpRequest.appendToUserAgent("promise"),new v(function(R,P){E.on("complete",function(D){D.error?P(D.error):R(Object.defineProperty(D.data||{},"$response",{value:D}))}),E.runTo()})}},s.Request.deletePromisesFromClass=function(){delete this.prototype.promise},s.util.addPromises(s.Request),s.util.mixin(s.Request,s.SequentialExecutor)},13730:(ne,L,d)=>{var s=d(13026),S=s.util.inherit,l=d(67848);function t(r){var n=r.request._waiter,o=!1,u="retry";n.config.acceptors.forEach(function(v){if(!o){var m=n.matchers[v.matcher];m&&m(r,v.expected,v.argument)&&(o=!0,u=v.state)}}),!o&&r.error&&(u="failure"),"success"===u?n.setSuccess(r):n.setError(r,"retry"===u)}s.ResourceWaiter=S({constructor:function(n,c){this.service=n,this.state=c,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(r,n,c){try{var o=l.search(r.data,c)}catch{return!1}return l.strictDeepEqual(o,n)},pathAll:function(r,n,c){try{var o=l.search(r.data,c)}catch{return!1}Array.isArray(o)||(o=[o]);var u=o.length;if(!u)return!1;for(var v=0;v<u;v++)if(!l.strictDeepEqual(o[v],n))return!1;return!0},pathAny:function(r,n,c){try{var o=l.search(r.data,c)}catch{return!1}Array.isArray(o)||(o=[o]);for(var u=o.length,v=0;v<u;v++)if(l.strictDeepEqual(o[v],n))return!0;return!1},status:function(r,n){var c=r.httpResponse.statusCode;return"number"==typeof c&&c===n},error:function(r,n){return"string"==typeof n&&r.error?n===r.error.code:n===!!r.error}},listeners:(new s.SequentialExecutor).addNamedListeners(function(r){r("RETRY_CHECK","retry",function(n){n.error&&"ResourceNotReady"===n.error.code&&(n.error.retryDelay=1e3*(n.request._waiter.config.delay||0))}),r("CHECK_OUTPUT","extractData",t),r("CHECK_ERROR","extractError",t)}),wait:function(n,c){"function"==typeof n&&(c=n,n=void 0),n&&n.$waiter&&("number"==typeof(n=s.util.copy(n)).$waiter.delay&&(this.config.delay=n.$waiter.delay),"number"==typeof n.$waiter.maxAttempts&&(this.config.maxAttempts=n.$waiter.maxAttempts),delete n.$waiter);var o=this.service.makeRequest(this.config.operation,n);return o._waiter=this,o.response.maxRetries=this.config.maxAttempts,o.addListeners(this.listeners),c&&o.send(c),o},setSuccess:function(n){n.error=null,n.data=n.data||{},n.request.removeAllListeners("extractData")},setError:function(n,c){n.data=null,n.error=s.util.error(n.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:c})},loadWaiterConfig:function(n){if(!this.service.api.waiters[n])throw new s.util.error(new Error,{code:"StateNotFoundError",message:"State "+n+" not found."});this.config=s.util.copy(this.service.api.waiters[n])}})},93250:(ne,L,d)=>{var s=d(13026),S=s.util.inherit,l=d(67848);s.Response=S({constructor:function(r){this.request=r,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new s.HttpResponse,r&&(this.maxRetries=r.service.numRetries(),this.maxRedirects=r.service.config.maxRedirects)},nextPage:function(r){var n,c=this.request.service,o=this.request.operation;try{n=c.paginationConfig(o,!0)}catch(E){this.error=E}if(!this.hasNextPage()){if(r)r(this.error,null);else if(this.error)throw this.error;return null}var u=s.util.copy(this.request.params);if(this.nextPageTokens){var v=n.inputToken;"string"==typeof v&&(v=[v]);for(var m=0;m<v.length;m++)u[v[m]]=this.nextPageTokens[m];return c.makeRequest(this.request.operation,u,r)}return r?r(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 r=this.request.service.paginationConfig(this.request.operation);if(!r)return this.nextPageTokens;if(this.nextPageTokens=null,r.moreResults&&!l.search(this.data,r.moreResults))return this.nextPageTokens;var n=r.outputToken;return"string"==typeof n&&(n=[n]),s.util.arrayEach.call(this,n,function(c){var o=l.search(this.data,c);o&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(o))}),this.nextPageTokens}})},30878:(ne,L,d)=>{var s=d(13026);s.SequentialExecutor=s.util.inherit({constructor:function(){this._events={}},listeners:function(l){return this._events[l]?this._events[l].slice(0):[]},on:function(l,t,r){return this._events[l]?r?this._events[l].unshift(t):this._events[l].push(t):this._events[l]=[t],this},onAsync:function(l,t,r){return t._isAsync=!0,this.on(l,t,r)},removeListener:function(l,t){var r=this._events[l];if(r){for(var n=r.length,c=-1,o=0;o<n;++o)r[o]===t&&(c=o);c>-1&&r.splice(c,1)}return this},removeAllListeners:function(l){return l?delete this._events[l]:this._events={},this},emit:function(l,t,r){r||(r=function(){});var n=this.listeners(l),c=n.length;return this.callListeners(n,t,r),c>0},callListeners:function(l,t,r,n){var c=this,o=n||null;function u(m){if(m&&(o=s.util.error(o||new Error,m),c._haltHandlersOnError))return r.call(c,o);c.callListeners(l,t,r,o)}for(;l.length>0;){var v=l.shift();if(v._isAsync)return void v.apply(c,t.concat([u]));try{v.apply(c,t)}catch(m){o=s.util.error(o||new Error,m)}if(o&&c._haltHandlersOnError)return void r.call(c,o)}r.call(c,o)},addListeners:function(l){var t=this;return l._events&&(l=l._events),s.util.each(l,function(r,n){"function"==typeof n&&(n=[n]),s.util.arrayEach(n,function(c){t.on(r,c)})}),t},addNamedListener:function(l,t,r,n){return this[l]=r,this.addListener(t,r,n),this},addNamedAsyncListener:function(l,t,r,n){return r._isAsync=!0,this.addNamedListener(l,t,r,n)},addNamedListeners:function(l){var t=this;return l(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)}),this}}),s.SequentialExecutor.prototype.addListener=s.SequentialExecutor.prototype.on,ne.exports=s.SequentialExecutor},83618:(ne,L,d)=>{var s=d(13026),S=d(129),l=d(17184),t=s.util.inherit,r=0;s.Service=t({constructor:function(c){if(!this.loadServiceClass)throw s.util.error(new Error,"Service must be constructed with `new' operator");var o=this.loadServiceClass(c||{});if(o){var u=s.util.copy(c),v=new o(c);return Object.defineProperty(v,"_originalConfig",{get:function(){return u},enumerable:!1,configurable:!0}),v._clientId=++r,v}this.initialize(c)},initialize:function(c){var o=s.config[this.serviceIdentifier];if(this.config=new s.Config(s.config),o&&this.config.update(o,!0),c&&this.config.update(c,!0),this.validateService(),this.config.endpoint||l.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),s.SequentialExecutor.call(this),s.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||s.Service._clientSideMonitoring)&&this.publisher){var u=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(m){process.nextTick(function(){u.eventHandler(m)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(m){process.nextTick(function(){u.eventHandler(m)})})}},validateService:function(){},loadServiceClass:function(c){var o=c;if(s.util.isEmpty(this.api)){if(o.apiConfig)return s.Service.defineServiceApi(this.constructor,o.apiConfig);if(this.constructor.services){(o=new s.Config(s.config)).update(c,!0);var u=o.apiVersions[this.constructor.serviceIdentifier];return this.getLatestServiceClass(u=u||o.apiVersion)}return null}return null},getLatestServiceClass:function(c){return c=this.getLatestServiceVersion(c),null===this.constructor.services[c]&&s.Service.defineServiceApi(this.constructor,c),this.constructor.services[c]},getLatestServiceVersion:function(c){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(c?s.util.isType(c,Date)&&(c=s.util.date.iso8601(c).split("T")[0]):c="latest",Object.hasOwnProperty(this.constructor.services,c))return c;for(var o=Object.keys(this.constructor.services).sort(),u=null,v=o.length-1;v>=0;v--)if("*"!==o[v][o[v].length-1]&&(u=o[v]),o[v].substr(0,10)<=c)return u;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+c+"'")},api:{},defaultRetryCount:3,customizeRequests:function(c){if(c){if("function"!=typeof c)throw new Error("Invalid callback type '"+typeof c+"' provided in customizeRequests");this.customRequestHandler=c}else this.customRequestHandler=null},makeRequest:function(c,o,u){if("function"==typeof o&&(u=o,o=null),o=o||{},this.config.params){var v=this.api.operations[c];v&&(o=s.util.copy(o),s.util.each(this.config.params,function(E,R){v.input.members[E]&&null==o[E]&&(o[E]=R)}))}var m=new s.Request(this,c,o);return this.addAllRequestListeners(m),this.attachMonitoringEmitter(m),u&&m.send(u),m},makeUnauthenticatedRequest:function(c,o,u){"function"==typeof o&&(u=o,o={});var v=this.makeRequest(c,o).toUnauthenticated();return u?v.send(u):v},waitFor:function(c,o,u){return new s.ResourceWaiter(this,c).wait(o,u)},addAllRequestListeners:function(c){for(var o=[s.events,s.EventListeners.Core,this.serviceInterface(),s.EventListeners.CorePost],u=0;u<o.length;u++)o[u]&&c.addListeners(o[u]);this.config.paramValidation||c.removeListener("validate",s.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&c.addListeners(s.EventListeners.Logger),this.setupRequestListeners(c),"function"==typeof this.constructor.prototype.customRequestHandler&&this.constructor.prototype.customRequestHandler(c),Object.prototype.hasOwnProperty.call(this,"customRequestHandler")&&"function"==typeof this.customRequestHandler&&this.customRequestHandler(c)},apiCallEvent:function(c){var o=c.service.api.operations[c.operation],u={Type:"ApiCall",Api:o?o.name:c.operation,Version:1,Service:c.service.api.serviceId||c.service.api.endpointPrefix,Region:c.httpRequest.region,MaxRetriesExceeded:0,UserAgent:c.httpRequest.getUserAgent()},v=c.response;if(v.httpResponse.statusCode&&(u.FinalHttpStatusCode=v.httpResponse.statusCode),v.error){var m=v.error;v.httpResponse.statusCode>299?(m.code&&(u.FinalAwsException=m.code),m.message&&(u.FinalAwsExceptionMessage=m.message)):((m.code||m.name)&&(u.FinalSdkException=m.code||m.name),m.message&&(u.FinalSdkExceptionMessage=m.message))}return u},apiAttemptEvent:function(c){var o=c.service.api.operations[c.operation],u={Type:"ApiCallAttempt",Api:o?o.name:c.operation,Version:1,Service:c.service.api.serviceId||c.service.api.endpointPrefix,Fqdn:c.httpRequest.endpoint.hostname,UserAgent:c.httpRequest.getUserAgent()},v=c.response;return v.httpResponse.statusCode&&(u.HttpStatusCode=v.httpResponse.statusCode),!c._unAuthenticated&&c.service.config.credentials&&c.service.config.credentials.accessKeyId&&(u.AccessKey=c.service.config.credentials.accessKeyId),v.httpResponse.headers&&(c.httpRequest.headers["x-amz-security-token"]&&(u.SessionToken=c.httpRequest.headers["x-amz-security-token"]),v.httpResponse.headers["x-amzn-requestid"]&&(u.XAmznRequestId=v.httpResponse.headers["x-amzn-requestid"]),v.httpResponse.headers["x-amz-request-id"]&&(u.XAmzRequestId=v.httpResponse.headers["x-amz-request-id"]),v.httpResponse.headers["x-amz-id-2"]&&(u.XAmzId2=v.httpResponse.headers["x-amz-id-2"])),u},attemptFailEvent:function(c){var o=this.apiAttemptEvent(c),u=c.response,v=u.error;return u.httpResponse.statusCode>299?(v.code&&(o.AwsException=v.code),v.message&&(o.AwsExceptionMessage=v.message)):((v.code||v.name)&&(o.SdkException=v.code||v.name),v.message&&(o.SdkExceptionMessage=v.message)),o},attachMonitoringEmitter:function(c){var o,u,v,m,R,P,E=0,D=this;c.on("validate",function(){m=s.util.realClock.now(),P=Date.now()},!0),c.on("sign",function(){u=s.util.realClock.now(),o=Date.now(),R=c.httpRequest.region,E++},!0),c.on("validateResponse",function(){v=Math.round(s.util.realClock.now()-u)}),c.addNamedListener("API_CALL_ATTEMPT","success",function(){var I=D.apiAttemptEvent(c);I.Timestamp=o,I.AttemptLatency=v>=0?v:0,I.Region=R,D.emit("apiCallAttempt",[I])}),c.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var I=D.attemptFailEvent(c);I.Timestamp=o,v=v||Math.round(s.util.realClock.now()-u),I.AttemptLatency=v>=0?v:0,I.Region=R,D.emit("apiCallAttempt",[I])}),c.addNamedListener("API_CALL","complete",function(){var I=D.apiCallEvent(c);if(I.AttemptCount=E,!(I.AttemptCount<=0)){I.Timestamp=P;var B=Math.round(s.util.realClock.now()-m);I.Latency=B>=0?B:0;var K=c.response;K.error&&K.error.retryable&&"number"==typeof K.retryCount&&"number"==typeof K.maxRetries&&K.retryCount>=K.maxRetries&&(I.MaxRetriesExceeded=1),D.emit("apiCall",[I])}})},setupRequestListeners:function(c){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(c){var u=null,v="";return c&&(v=(u=(c.service.api.operations||{})[c.operation]||null)?u.authtype:""),s.Signers.RequestSigner.getVersion(this.config.signatureVersion?this.config.signatureVersion:"v4"===v||"v4-unsigned-body"===v?"v4":this.api.signatureVersion)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return s.EventListeners.Query;case"json":return s.EventListeners.Json;case"rest-json":return s.EventListeners.RestJson;case"rest-xml":return s.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(c){return c.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(c,o){return s.util.calculateRetryDelay(c,this.config.retryDelayOptions,o)},retryableError:function(c){return!!(this.timeoutError(c)||this.networkingError(c)||this.expiredCredentialsError(c)||this.throttledError(c)||c.statusCode>=500)},networkingError:function(c){return"NetworkingError"===c.code},timeoutError:function(c){return"TimeoutError"===c.code},expiredCredentialsError:function(c){return"ExpiredTokenException"===c.code},clockSkewError:function(c){switch(c.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(c){c&&(this.config.systemClockOffset=c-Date.now())},isClockSkewed:function(c){if(c)return Math.abs(this.getSkewCorrectedDate().getTime()-c)>=3e5},throttledError:function(c){if(429===c.statusCode)return!0;switch(c.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(c){if("string"!=typeof c)return c;var o=c;return(o=(o=o.replace(/\{service\}/g,this.api.endpointPrefix)).replace(/\{region\}/g,this.config.region)).replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(c){this.endpoint=new s.Endpoint(c,this.config)},paginationConfig:function(c,o){var u=this.api.operations[c].paginator;if(!u){if(o){var v=new Error;throw s.util.error(v,"No pagination configuration for "+c)}return null}return u}}),s.util.update(s.Service,{defineMethods:function(c){s.util.each(c.prototype.api.operations,function(u){c.prototype[u]||(c.prototype[u]="none"===c.prototype.api.operations[u].authtype?function(m,E){return this.makeUnauthenticatedRequest(u,m,E)}:function(m,E){return this.makeRequest(u,m,E)})})},defineService:function(c,o,u){s.Service._serviceMap[c]=!0,Array.isArray(o)||(u=o,o=[]);var v=t(s.Service,u||{});if("string"==typeof c?(s.Service.addVersions(v,o),v.serviceIdentifier=v.serviceIdentifier||c):(v.prototype.api=c,s.Service.defineMethods(v)),s.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&s.util.clientSideMonitoring){var E=s.util.clientSideMonitoring.Publisher,P=(0,s.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new E(P),P.enabled&&(s.Service._clientSideMonitoring=!0)}return s.SequentialExecutor.call(v.prototype),s.Service.addDefaultMonitoringListeners(v.prototype),v},addVersions:function(c,o){Array.isArray(o)||(o=[o]),c.services=c.services||{};for(var u=0;u<o.length;u++)void 0===c.services[o[u]]&&(c.services[o[u]]=null);c.apiVersions=Object.keys(c.services).sort()},defineServiceApi:function(c,o,u){var v=t(c,{serviceIdentifier:c.serviceIdentifier});function m(E){v.prototype.api=E.isApi?E:new S(E,{serviceIdentifier:c.serviceIdentifier})}if("string"==typeof o){if(u)m(u);else try{m(s.apiLoader(c.serviceIdentifier,o))}catch(E){throw s.util.error(E,{message:"Could not find API configuration "+c.serviceIdentifier+"-"+o})}Object.prototype.hasOwnProperty.call(c.services,o)||(c.apiVersions=c.apiVersions.concat(o).sort()),c.services[o]=v}else m(o);return s.Service.defineMethods(v),v},hasService:function(n){return Object.prototype.hasOwnProperty.call(s.Service._serviceMap,n)},addDefaultMonitoringListeners:function(c){c.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",function(u){var v=Object.getPrototypeOf(c);v._events&&v.emit("apiCallAttempt",[u])}),c.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",function(u){var v=Object.getPrototypeOf(c);v._events&&v.emit("apiCall",[u])})},_serviceMap:{}}),s.util.mixin(s.Service,s.SequentialExecutor),ne.exports=s.Service},50066:(ne,L,d)=>{var s=d(13026),S=d(90127);s.util.update(s.STS.prototype,{credentialsFrom:function(n,c){return n?(c||(c=new s.TemporaryCredentials),c.expired=!1,c.accessKeyId=n.Credentials.AccessKeyId,c.secretAccessKey=n.Credentials.SecretAccessKey,c.sessionToken=n.Credentials.SessionToken,c.expireTime=n.Credentials.Expiration,c):null},assumeRoleWithWebIdentity:function(n,c){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",n,c)},assumeRoleWithSAML:function(n,c){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",n,c)},setupRequestListeners:function(n){n.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(n){var c=n.service,o=c.config;if(o.stsRegionalEndpoints=S(c._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===o.stsRegionalEndpoints&&c.isGlobalEndpoint){if(!o.region)throw s.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var u=o.endpoint.indexOf(".amazonaws.com"),v=o.endpoint.substring(0,u)+"."+o.region+o.endpoint.substring(u);n.httpRequest.updateEndpoint(v),n.httpRequest.region=o.region}}})},78068:(ne,L,d)=>{var s=d(13026),l="presigned-expires";function t(n){var c=n.httpRequest.headers[l],o=n.service.getSignerClass(n);if(delete n.httpRequest.headers["User-Agent"],delete n.httpRequest.headers["X-Amz-User-Agent"],o===s.Signers.V4){if(c>604800)throw s.util.error(new Error,{code:"InvalidExpiryTime",message:"Presigning does not support expiry time greater than a week with SigV4 signing.",retryable:!1});n.httpRequest.headers[l]=c}else{if(o!==s.Signers.S3)throw s.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var v=n.service?n.service.getSkewCorrectedDate():s.util.date.getDate();n.httpRequest.headers[l]=parseInt(s.util.date.unixTimestamp(v)+c,10).toString()}}function r(n){var c=n.httpRequest.endpoint,o=s.util.urlParse(n.httpRequest.path),u={};o.search&&(u=s.util.queryStringParse(o.search.substr(1)));var v=n.httpRequest.headers.Authorization.split(" ");if("AWS"===v[0])v=v[1].split(":"),u.Signature=v.pop(),u.AWSAccessKeyId=v.join(":"),s.util.each(n.httpRequest.headers,function(R,P){R===l&&(R="Expires"),0===R.indexOf("x-amz-meta-")&&(delete u[R],R=R.toLowerCase()),u[R]=P}),delete n.httpRequest.headers[l],delete u.Authorization,delete u.Host;else if("AWS4-HMAC-SHA256"===v[0]){v.shift();var E=v.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];u["X-Amz-Signature"]=E,delete u.Expires}c.pathname=o.pathname,c.search=s.util.queryParamsToString(u)}s.Signers.Presign=(0,s.util.inherit)({sign:function(c,o,u){if(c.httpRequest.headers[l]=o||3600,c.on("build",t),c.on("sign",r),c.removeListener("afterBuild",s.EventListeners.Core.SET_CONTENT_LENGTH),c.removeListener("afterBuild",s.EventListeners.Core.COMPUTE_SHA256),c.emit("beforePresign",[c]),!u){if(c.build(),c.response.error)throw c.response.error;return s.util.urlFormat(c.httpRequest.endpoint)}c.build(function(){this.response.error?u(this.response.error):u(null,s.util.urlFormat(c.httpRequest.endpoint))})}}),ne.exports=s.Signers.Presign},30670:(ne,L,d)=>{var s=d(13026);s.Signers.RequestSigner=(0,s.util.inherit)({constructor:function(t){this.request=t},setServiceClientId:function(t){this.serviceClientId=t},getServiceClientId:function(){return this.serviceClientId}}),s.Signers.RequestSigner.getVersion=function(t){switch(t){case"v2":return s.Signers.V2;case"v3":return s.Signers.V3;case"s3v4":case"v4":return s.Signers.V4;case"s3":return s.Signers.S3;case"v3https":return s.Signers.V3Https}throw new Error("Unknown signing version "+t)},d(94856),d(70206),d(60531),d(61497),d(82374),d(78068)},82374:(ne,L,d)=>{var s=d(13026);s.Signers.S3=(0,s.util.inherit)(s.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(t,r){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=s.util.date.rfc822(r)),t.sessionToken&&(this.request.headers["x-amz-security-token"]=t.sessionToken);var n=this.sign(t.secretAccessKey,this.stringToSign());this.request.headers.Authorization="AWS "+t.accessKeyId+":"+n},stringToSign:function(){var t=this.request,r=[];r.push(t.method),r.push(t.headers["Content-MD5"]||""),r.push(t.headers["Content-Type"]||""),r.push(t.headers["presigned-expires"]||"");var n=this.canonicalizedAmzHeaders();return n&&r.push(n),r.push(this.canonicalizedResource()),r.join("\n")},canonicalizedAmzHeaders:function(){var t=[];s.util.each(this.request.headers,function(n){n.match(/^x-amz-/i)&&t.push(n)}),t.sort(function(n,c){return n.toLowerCase()<c.toLowerCase()?-1:1});var r=[];return s.util.arrayEach.call(this,t,function(n){r.push(n.toLowerCase()+":"+String(this.request.headers[n]))}),r.join("\n")},canonicalizedResource:function(){var t=this.request,r=t.path.split("?"),c=r[1],o="";if(t.virtualHostedBucket&&(o+="/"+t.virtualHostedBucket),o+=r[0],c){var u=[];s.util.arrayEach.call(this,c.split("&"),function(v){var m=v.split("=")[0],E=v.split("=")[1];if(this.subResources[m]||this.responseHeaders[m]){var R={name:m};void 0!==E&&(R.value=this.subResources[m]?E:decodeURIComponent(E)),u.push(R)}}),u.sort(function(v,m){return v.name<m.name?-1:1}),u.length&&(c=[],s.util.arrayEach(u,function(v){c.push(void 0===v.value?v.name:v.name+"="+v.value)}),o+="?"+c.join("&"))}return o},sign:function(t,r){return s.util.crypto.hmac(t,r,"base64","sha1")}}),ne.exports=s.Signers.S3},94856:(ne,L,d)=>{var s=d(13026);s.Signers.V2=(0,s.util.inherit)(s.Signers.RequestSigner,{addAuthorization:function(t,r){r||(r=s.util.date.getDate());var n=this.request;n.params.Timestamp=s.util.date.iso8601(r),n.params.SignatureVersion="2",n.params.SignatureMethod="HmacSHA256",n.params.AWSAccessKeyId=t.accessKeyId,t.sessionToken&&(n.params.SecurityToken=t.sessionToken),delete n.params.Signature,n.params.Signature=this.signature(t),n.body=s.util.queryParamsToString(n.params),n.headers["Content-Length"]=n.body.length},signature:function(t){return s.util.crypto.hmac(t.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var t=[];return t.push(this.request.method),t.push(this.request.endpoint.host.toLowerCase()),t.push(this.request.pathname()),t.push(s.util.queryParamsToString(this.request.params)),t.join("\n")}}),ne.exports=s.Signers.V2},70206:(ne,L,d)=>{var s=d(13026);s.Signers.V3=(0,s.util.inherit)(s.Signers.RequestSigner,{addAuthorization:function(t,r){var n=s.util.date.rfc822(r);this.request.headers["X-Amz-Date"]=n,t.sessionToken&&(this.request.headers["x-amz-security-token"]=t.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(t,n)},authorization:function(t){return"AWS3 AWSAccessKeyId="+t.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(t)},signedHeaders:function(){var t=[];return s.util.arrayEach(this.headersToSign(),function(n){t.push(n.toLowerCase())}),t.sort().join(";")},canonicalHeaders:function(){var t=this.request.headers,r=[];return s.util.arrayEach(this.headersToSign(),function(c){r.push(c.toLowerCase().trim()+":"+String(t[c]).trim())}),r.sort().join("\n")+"\n"},headersToSign:function(){var t=[];return s.util.each(this.request.headers,function(n){("Host"===n||"Content-Encoding"===n||n.match(/^X-Amz/i))&&t.push(n)}),t},signature:function(t){return s.util.crypto.hmac(t.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var t=[];return t.push(this.request.method),t.push("/"),t.push(""),t.push(this.canonicalHeaders()),t.push(this.request.body),s.util.crypto.sha256(t.join("\n"))}}),ne.exports=s.Signers.V3},60531:(ne,L,d)=>{var s=d(13026),S=s.util.inherit;d(70206),s.Signers.V3Https=S(s.Signers.V3,{authorization:function(t){return"AWS3-HTTPS AWSAccessKeyId="+t.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(t)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),ne.exports=s.Signers.V3Https},61497:(ne,L,d)=>{var s=d(13026),S=d(5705),t="presigned-expires";s.Signers.V4=(0,s.util.inherit)(s.Signers.RequestSigner,{constructor:function(n,c,o){s.Signers.RequestSigner.call(this,n),this.serviceName=c,this.signatureCache="boolean"!=typeof(o=o||{}).signatureCache||o.signatureCache,this.operation=o.operation,this.signatureVersion=o.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(n,c){var o=s.util.date.iso8601(c).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(n,o):this.addHeaders(n,o),this.request.headers.Authorization=this.authorization(n,o)},addHeaders:function(n,c){this.request.headers["X-Amz-Date"]=c,n.sessionToken&&(this.request.headers["x-amz-security-token"]=n.sessionToken)},updateForPresigned:function(n,c){var o=this.credentialString(c),u={"X-Amz-Date":c,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":n.accessKeyId+"/"+o,"X-Amz-Expires":this.request.headers[t],"X-Amz-SignedHeaders":this.signedHeaders()};n.sessionToken&&(u["X-Amz-Security-Token"]=n.sessionToken),this.request.headers["Content-Type"]&&(u["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(u["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(u["Cache-Control"]=this.request.headers["Cache-Control"]),s.util.each.call(this,this.request.headers,function(m,E){if(m!==t&&this.isSignableHeader(m)){var R=m.toLowerCase();0===R.indexOf("x-amz-meta-")?u[R]=E:0===R.indexOf("x-amz-")&&(u[m]=E)}});var v=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=v+s.util.queryParamsToString(u)},authorization:function(n,c){var o=[],u=this.credentialString(c);return o.push(this.algorithm+" Credential="+n.accessKeyId+"/"+u),o.push("SignedHeaders="+this.signedHeaders()),o.push("Signature="+this.signature(n,c)),o.join(", ")},signature:function(n,c){var o=S.getSigningKey(n,c.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return s.util.crypto.hmac(o,this.stringToSign(c),"hex")},stringToSign:function(n){var c=[];return c.push("AWS4-HMAC-SHA256"),c.push(n),c.push(this.credentialString(n)),c.push(this.hexEncodedHash(this.canonicalString())),c.join("\n")},canonicalString:function(){var n=[],c=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(c=s.util.uriEscapePath(c)),n.push(this.request.method),n.push(c),n.push(this.request.search()),n.push(this.canonicalHeaders()+"\n"),n.push(this.signedHeaders()),n.push(this.hexEncodedBodyHash()),n.join("\n")},canonicalHeaders:function(){var n=[];s.util.each.call(this,this.request.headers,function(o,u){n.push([o,u])}),n.sort(function(o,u){return o[0].toLowerCase()<u[0].toLowerCase()?-1:1});var c=[];return s.util.arrayEach.call(this,n,function(o){var u=o[0].toLowerCase();if(this.isSignableHeader(u)){var v=o[1];if(typeof v>"u"||null===v||"function"!=typeof v.toString)throw s.util.error(new Error("Header "+u+" contains invalid value"),{code:"InvalidHeader"});c.push(u+":"+this.canonicalHeaderValues(v.toString()))}}),c.join("\n")},canonicalHeaderValues:function(n){return n.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},signedHeaders:function(){var n=[];return s.util.each.call(this,this.request.headers,function(c){c=c.toLowerCase(),this.isSignableHeader(c)&&n.push(c)}),n.sort().join(";")},credentialString:function(n){return S.createScope(n.substr(0,8),this.request.region,this.serviceName)},hexEncodedHash:function(n){return s.util.crypto.sha256(n,"hex")},hexEncodedBodyHash:function(){var n=this.request;return this.isPresigned()&&"s3"===this.serviceName&&!n.body?"UNSIGNED-PAYLOAD":n.headers["X-Amz-Content-Sha256"]?n.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent",t,"expect","x-amzn-trace-id"],isSignableHeader:function(n){return 0===n.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(n)<0},isPresigned:function(){return!!this.request.headers[t]}}),ne.exports=s.Signers.V4},5705:(ne,L,d)=>{var s=d(13026),S={},l=[],r="aws4_request";ne.exports={createScope:function(c,o,u){return[c.substr(0,8),o,u,r].join("/")},getSigningKey:function(c,o,u,v,m){var R=[s.util.crypto.hmac(c.secretAccessKey,c.accessKeyId,"base64"),o,u,v].join("_");if((m=!1!==m)&&R in S)return S[R];var P=s.util.crypto.hmac("AWS4"+c.secretAccessKey,o,"buffer"),D=s.util.crypto.hmac(P,u,"buffer"),A=s.util.crypto.hmac(D,v,"buffer"),_=s.util.crypto.hmac(A,r,"buffer");return m&&(S[R]=_,l.push(R),l.length>50&&delete S[l.shift()]),_},emptyCache:function(){S={},l=[]}}},17463:ne=>{function L(d,s){this.currentState=s||null,this.states=d||{}}L.prototype.runTo=function(s,S,l,t){"function"==typeof s&&(t=l,l=S,S=s,s=null);var r=this,n=r.states[r.currentState];n.fn.call(l||r,t,function(c){if(c){if(!n.fail)return S?S.call(l,c):null;r.currentState=n.fail}else{if(!n.accept)return S?S.call(l):null;r.currentState=n.accept}if(r.currentState===s)return S?S.call(l,c):null;r.runTo(s,S,l,c)})},L.prototype.addState=function(s,S,l,t){return"function"==typeof S?(t=S,S=null,l=null):"function"==typeof l&&(t=l,l=null),this.currentState||(this.currentState=s),this.states[s]={accept:S,fail:l,fn:t},this},ne.exports=L},69264:(ne,L,d)=>{var s,S={environment:"nodejs",engine:function(){if(S.isBrowser()&&typeof navigator<"u")return navigator.userAgent;var t=process.platform+"/"+process.version;return process.env.AWS_EXECUTION_ENV&&(t+=" exec-env/"+process.env.AWS_EXECUTION_ENV),t},userAgent:function(){var t=S.environment,r="aws-sdk-"+t+"/"+d(13026).VERSION;return"nodejs"===t&&(r+=" "+S.engine()),r},uriEscape:function(t){var r=encodeURIComponent(t);return(r=r.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,function(n){return"%"+n.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(t){var r=[];return S.arrayEach(t.split("/"),function(n){r.push(S.uriEscape(n))}),r.join("/")},urlParse:function(t){return S.url.parse(t)},urlFormat:function(t){return S.url.format(t)},queryStringParse:function(t){return S.querystring.parse(t)},queryParamsToString:function(t){var r=[],n=S.uriEscape,c=Object.keys(t).sort();return S.arrayEach(c,function(o){var u=t[o],v=n(o),m=v+"=";if(Array.isArray(u)){var E=[];S.arrayEach(u,function(R){E.push(n(R))}),m=v+"="+E.sort().join("&"+v+"=")}else null!=u&&(m=v+"="+n(u));r.push(m)}),r.join("&")},readFileSync:function(t){return S.isBrowser()?null:d(94659).readFileSync(t,"utf-8")},base64:{encode:function(t){if("number"==typeof t)throw S.error(new Error("Cannot base64 encode number "+t));return null===t||typeof t>"u"?t:S.buffer.toBuffer(t).toString("base64")},decode:function(t){if("number"==typeof t)throw S.error(new Error("Cannot base64 decode number "+t));return null===t||typeof t>"u"?t:S.buffer.toBuffer(t,"base64")}},buffer:{toBuffer:function(l,t){return"function"==typeof S.Buffer.from&&S.Buffer.from!==Uint8Array.from?S.Buffer.from(l,t):new S.Buffer(l,t)},alloc:function(l,t,r){if("number"!=typeof l)throw new Error("size passed to alloc must be a number.");if("function"==typeof S.Buffer.alloc)return S.Buffer.alloc(l,t,r);var n=new S.Buffer(l);return void 0!==t&&"function"==typeof n.fill&&n.fill(t,void 0,void 0,r),n},toStream:function(t){S.Buffer.isBuffer(t)||(t=S.buffer.toBuffer(t));var r=new S.stream.Readable,n=0;return r._read=function(c){if(n>=t.length)return r.push(null);var o=n+c;o>t.length&&(o=t.length),r.push(t.slice(n,o)),n=o},r},concat:function(l){var n,c,t=0,r=0;for(c=0;c<l.length;c++)t+=l[c].length;for(n=S.buffer.alloc(t),c=0;c<l.length;c++)l[c].copy(n,r),r+=l[c].length;return n}},string:{byteLength:function(t){if(null==t)return 0;if("string"==typeof t&&(t=S.buffer.toBuffer(t)),"number"==typeof t.byteLength)return t.byteLength;if("number"==typeof t.length)return t.length;if("number"==typeof t.size)return t.size;if("string"==typeof t.path)return d(94659).lstatSync(t.path).size;throw S.error(new Error("Cannot determine length of "+t),{object:t})},upperFirst:function(t){return t[0].toUpperCase()+t.substr(1)},lowerFirst:function(t){return t[0].toLowerCase()+t.substr(1)}},ini:{parse:function(t){var r,n={};return S.arrayEach(t.split(/\r?\n/),function(c){var o=(c=c.split(/(^|\s)[;#]/)[0]).match(/^\s*\[([^\[\]]+)\]\s*$/);if(o){if("__proto__"===(r=o[1])||"__proto__"===r.split(/\s/)[1])throw S.error(new Error("Cannot load profile name '"+r+"' from shared ini file."))}else if(r){var u=c.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);u&&(n[r]=n[r]||{},n[r][u[1]]=u[2])}}),n}},fn:{noop:function(){},callback:function(l){if(l)throw l},makeAsync:function(t,r){return r&&r<=t.length?t:function(){var n=Array.prototype.slice.call(arguments,0),c=n.pop(),o=t.apply(null,n);c(o)}}},date:{getDate:function(){return s||(s=d(13026)),s.config.systemClockOffset?new Date((new Date).getTime()+s.config.systemClockOffset):new Date},iso8601:function(t){return void 0===t&&(t=S.date.getDate()),t.toISOString().replace(/\.\d{3}Z$/,"Z")},rfc822:function(t){return void 0===t&&(t=S.date.getDate()),t.toUTCString()},unixTimestamp:function(t){return void 0===t&&(t=S.date.getDate()),t.getTime()/1e3},from:function(t){return"number"==typeof t?new Date(1e3*t):new Date(t)},format:function(t,r){return r||(r="iso8601"),S.date[r](S.date.from(t))},parseTimestamp:function(t){if("number"==typeof t)return new Date(1e3*t);if(t.match(/^\d+$/))return new Date(1e3*t);if(t.match(/^\d{4}/))return new Date(t);if(t.match(/^\w{3},/))return new Date(t);throw S.error(new Error("unhandled timestamp format: "+t),{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(t){var r=S.crypto.crc32Table,n=-1;"string"==typeof t&&(t=S.buffer.toBuffer(t));for(var c=0;c<t.length;c++)n=n>>>8^r[255&(n^t.readUInt8(c))];return(-1^n)>>>0},hmac:function(t,r,n,c){return n||(n="binary"),"buffer"===n&&(n=void 0),c||(c="sha256"),"string"==typeof r&&(r=S.buffer.toBuffer(r)),S.crypto.lib.createHmac(c,t).update(r).digest(n)},md5:function(t,r,n){return S.crypto.hash("md5",t,r,n)},sha256:function(t,r,n){return S.crypto.hash("sha256",t,r,n)},hash:function(l,t,r,n){var c=S.crypto.createHash(l);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=S.buffer.toBuffer(t));var o=S.arraySliceFn(t),u=S.Buffer.isBuffer(t);if(S.isBrowser()&&typeof ArrayBuffer<"u"&&t&&t.buffer instanceof ArrayBuffer&&(u=!0),n&&"object"==typeof t&&"function"==typeof t.on&&!u)t.on("data",function(P){c.update(P)}),t.on("error",function(P){n(P)}),t.on("end",function(){n(null,c.digest(r))});else{if(!(n&&o&&!u&&typeof FileReader<"u")){S.isBrowser()&&"object"==typeof t&&!u&&(t=new S.Buffer(new Uint8Array(t)));var R=c.update(t).digest(r);return n&&n(null,R),R}var v=0,E=new FileReader;E.onerror=function(){n(new Error("Failed to read data."))},E.onload=function(){var P=new S.Buffer(new Uint8Array(E.result));c.update(P),v+=P.length,E._continueReading()},E._continueReading=function(){if(v>=t.size)n(null,c.digest(r));else{var P=v+524288;P>t.size&&(P=t.size),E.readAsArrayBuffer(o.call(t,v,P))}},E._continueReading()}},toHex:function(t){for(var r=[],n=0;n<t.length;n++)r.push(("0"+t.charCodeAt(n).toString(16)).substr(-2,2));return r.join("")},createHash:function(t){return S.crypto.lib.createHash(t)}},abort:{},each:function(t,r){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r.call(this,n,t[n])===S.abort)break},arrayEach:function(t,r){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r.call(this,t[n],parseInt(n,10))===S.abort)break},update:function(t,r){return S.each(r,function(c,o){t[c]=o}),t},merge:function(t,r){return S.update(S.copy(t),r)},copy:function(t){if(null==t)return t;var r={};for(var n in t)r[n]=t[n];return r},isEmpty:function(t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))return!1;return!0},arraySliceFn:function(t){var r=t.slice||t.webkitSlice||t.mozSlice;return"function"==typeof r?r:null},isType:function(t,r){return"function"==typeof r&&(r=S.typeName(r)),Object.prototype.toString.call(t)==="[object "+r+"]"},typeName:function(t){if(Object.prototype.hasOwnProperty.call(t,"name"))return t.name;var r=t.toString(),n=r.match(/^\s*function (.+)\(/);return n?n[1]:r},error:function(t,r){var n=null;return"string"==typeof t.message&&""!==t.message&&("string"==typeof r||r&&r.message)&&((n=S.copy(t)).message=t.message),t.message=t.message||null,"string"==typeof r?t.message=r:"object"==typeof r&&null!==r&&(S.update(t,r),r.message&&(t.message=r.message),(r.code||r.name)&&(t.code=r.code||r.name),r.stack&&(t.stack=r.stack)),"function"==typeof Object.defineProperty&&(Object.defineProperty(t,"name",{writable:!0,enumerable:!1}),Object.defineProperty(t,"message",{enumerable:!0})),t.name=String(r&&r.name||t.name||t.code||"Error"),t.time=new Date,n&&(t.originalError=n),t},inherit:function(t,r){var n=null;if(void 0===r)r=t,t=Object,n={};else{var c=function(){};c.prototype=t.prototype,n=new c}return r.constructor===Object&&(r.constructor=function(){if(t!==Object)return t.apply(this,arguments)}),r.constructor.prototype=n,S.update(r.constructor.prototype,r),r.constructor.__super__=t,r.constructor},mixin:function(){for(var t=arguments[0],r=1;r<arguments.length;r++)for(var n in arguments[r].prototype){var c=arguments[r].prototype[n];"constructor"!==n&&(t.prototype[n]=c)}return t},hideProperties:function(t,r){"function"==typeof Object.defineProperty&&S.arrayEach(r,function(n){Object.defineProperty(t,n,{enumerable:!1,writable:!0,configurable:!0})})},property:function(t,r,n,c,o){var u={configurable:!0,enumerable:void 0===c||c};"function"!=typeof n||o?(u.value=n,u.writable=!0):u.get=n,Object.defineProperty(t,r,u)},memoizedProperty:function(t,r,n,c){var o=null;S.property(t,r,function(){return null===o&&(o=n()),o},c)},hoistPayloadMember:function(t){var r=t.request,c=r.service.api.operations[r.operation],o=c.output;o.payload&&!c.hasEventOutput&&"structure"===o.members[o.payload].type&&S.each(t.data[o.payload],function(m,E){S.property(t.data,m,E,!1)})},computeSha256:function(t,r){if(S.isNode()){var n=S.stream.Stream,c=d(94659);if("function"==typeof n&&t instanceof n){if("string"!=typeof t.path)return r(new Error("Non-file stream objects are not supported with SigV4"));var o={};"number"==typeof t.start&&(o.start=t.start),"number"==typeof t.end&&(o.end=t.end),t=c.createReadStream(t.path,o)}}S.crypto.sha256(t,"hex",function(u,v){u?r(u):r(null,v)})},isClockSkewed:function(t){if(t)return S.property(s.config,"isClockSkewed",Math.abs((new Date).getTime()-t)>=3e5,!1),s.config.isClockSkewed},applyClockOffset:function(t){t&&(s.config.systemClockOffset=t-(new Date).getTime())},extractRequestId:function(t){var r=t.httpResponse.headers["x-amz-request-id"]||t.httpResponse.headers["x-amzn-requestid"];!r&&t.data&&t.data.ResponseMetadata&&(r=t.data.ResponseMetadata.RequestId),r&&(t.requestId=r),t.error&&(t.error.requestId=r)},addPromises:function(t,r){var n=!1;void 0===r&&s&&s.config&&(r=s.config.getPromisesDependency()),void 0===r&&typeof Promise<"u"&&(r=Promise),"function"!=typeof r&&(n=!0),Array.isArray(t)||(t=[t]);for(var c=0;c<t.length;c++){var o=t[c];n?o.deletePromisesFromClass&&o.deletePromisesFromClass():o.addPromisesToClass&&o.addPromisesToClass(r)}},promisifyMethod:function(t,r){return function(){var c=this,o=Array.prototype.slice.call(arguments);return new r(function(u,v){o.push(function(m,E){m?v(m):u(E)}),c[t].apply(c,o)})}},isDualstackAvailable:function(t){if(!t)return!1;var r=d(1406);return"string"!=typeof t&&(t=t.serviceIdentifier),!("string"!=typeof t||!r.hasOwnProperty(t)||!r[t].dualstackAvailable)},calculateRetryDelay:function(t,r,n){r||(r={});var c=r.customBackoff||null;if("function"==typeof c)return c(t,n);var o="number"==typeof r.base?r.base:100;return Math.random()*(Math.pow(2,t)*o)},handleRequestWithRetries:function(t,r,n){r||(r={});var c=s.HttpClient.getInstance(),o=r.httpOptions||{},u=0,v=function(E){var R=r.maxRetries||0;if(E&&"TimeoutError"===E.code&&(E.retryable=!0),E&&E.retryable&&u<R){var P=S.calculateRetryDelay(u,r.retryDelayOptions,E);if(P>=0)return u++,void setTimeout(m,P+(E.retryAfter||0))}n(E)},m=function(){var E="";c.handleRequest(t,o,function(R){R.on("data",function(P){E+=P.toString()}),R.on("end",function(){var P=R.statusCode;if(P<300)n(null,E);else{var D=1e3*parseInt(R.headers["retry-after"],10)||0,A=S.error(new Error,{statusCode:P,retryable:P>=500||429===P});D&&A.retryable&&(A.retryAfter=D),v(A)}})},v)};s.util.defer(m)},uuid:{v4:function(){return d(3138).v4()}},convertPayloadToString:function(t){var r=t.request,c=r.service.api.operations[r.operation].output||{};c.payload&&t.data[c.payload]&&(t.data[c.payload]=t.data[c.payload].toString())},defer:function(t){"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick(t):"function"==typeof setImmediate?setImmediate(t):setTimeout(t,0)},getRequestPayloadShape:function(t){var r=t.service.api.operations;if(r){var n=(r||{})[t.operation];if(n&&n.input&&n.input.payload)return n.input.members[n.input.payload]}},getProfilesFromSharedConfig:function(t,r){var n={},c={};process.env[S.configOptInEnv]&&(c=t.loadFrom({isConfig:!0,filename:process.env[S.sharedConfigFileEnv]}));var o={};try{o=t.loadFrom({filename:r||process.env[S.configOptInEnv]&&process.env[S.sharedCredentialsFileEnv]})}catch(E){if(!process.env[S.configOptInEnv])throw E}for(var u=0,v=Object.keys(c);u<v.length;u++)n[v[u]]=m(n[v[u]]||{},c[v[u]]);for(u=0,v=Object.keys(o);u<v.length;u++)n[v[u]]=m(n[v[u]]||{},o[v[u]]);return n;function m(E,R){for(var P=0,D=Object.keys(R);P<D.length;P++)E[D[P]]=R[D[P]];return E}},ARN:{validate:function(t){return t&&0===t.indexOf("arn:")&&t.split(":").length>=6},parse:function(t){var r=t.split(":");return{partition:r[1],service:r[2],region:r[3],accountId:r[4],resource:r.slice(5).join(":")}},build:function(t){if(void 0===t.service||void 0===t.region||void 0===t.accountId||void 0===t.resource)throw S.error(new Error("Input ARN object is invalid"));return"arn:"+(t.partition||"aws")+":"+t.service+":"+t.region+":"+t.accountId+":"+t.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};ne.exports=S},57335:(ne,L,d)=>{var s=d(69264),S=d(83560);function l(){}function t(m,E){for(var R=m.getElementsByTagName(E),P=0,D=R.length;P<D;P++)if(R[P].parentNode===m)return R[P]}function r(m,E){switch(E||(E={}),E.type){case"structure":return n(m,E);case"map":return function c(m,E){for(var R={},P=E.key.name||"key",D=E.value.name||"value",A=E.flattened?E.name:"entry",_=m.firstElementChild;_;){if(_.nodeName===A){var I=t(_,P).textContent,B=t(_,D);R[I]=r(B,E.value)}_=_.nextElementSibling}return R}(m,E);case"list":return function o(m,E){for(var R=[],P=E.flattened?E.name:E.member.name||"member",D=m.firstElementChild;D;)D.nodeName===P&&R.push(r(D,E.member)),D=D.nextElementSibling;return R}(m,E);case void 0:case null:return function v(m){if(null==m)return"";if(!m.firstElementChild)return null===m.parentNode.parentNode?{}:0===m.childNodes.length?"":m.textContent;for(var E={type:"structure",members:{}},R=m.firstElementChild;R;){var P=R.nodeName;Object.prototype.hasOwnProperty.call(E.members,P)?E.members[P].type="list":E.members[P]={name:P},R=R.nextElementSibling}return n(m,E)}(m);default:return function u(m,E){if(m.getAttribute){var R=m.getAttribute("encoding");"base64"===R&&(E=new S.create({type:R}))}var P=m.textContent;return""===P&&(P=null),"function"==typeof E.toType?E.toType(P):P}(m,E)}}function n(m,E){var R={};return null===m||s.each(E.members,function(P,D){if(D.isXmlAttribute)Object.prototype.hasOwnProperty.call(m.attributes,D.name)&&(R[P]=r({textContent:m.attributes[D.name].value},D));else{var _=D.flattened?m:t(m,D.name);_?R[P]=r(_,D):!D.flattened&&"list"===D.type&&!E.api.xmlNoDefaultLists&&(R[P]=D.defaultValue)}}),R}l.prototype.parse=function(m,E){if(""===m.replace(/^\s+/,""))return{};var R,P;try{if(window.DOMParser){try{R=(new DOMParser).parseFromString(m,"text/xml")}catch(K){throw s.error(new Error("Parse error in document"),{originalError:K,code:"XMLParserError",retryable:!0})}if(null===R.documentElement)throw s.error(new Error("Cannot parse empty document."),{code:"XMLParserError",retryable:!0});var A=R.getElementsByTagName("parsererror")[0];if(A&&(A.parentNode===R||"body"===A.parentNode.nodeName||A.parentNode.parentNode===R||"body"===A.parentNode.parentNode.nodeName)){var _=A.getElementsByTagName("div")[0]||A;throw s.error(new Error(_.textContent||"Parser error in document"),{code:"XMLParserError",retryable:!0})}}else{if(!window.ActiveXObject)throw new Error("Cannot load XML parser");if((R=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,!R.loadXML(m))throw s.error(new Error("Parse error in document"),{code:"XMLParserError",retryable:!0})}}catch(K){P=K}if(R&&R.documentElement&&!P){var I=r(R.documentElement,E),B=t(R.documentElement,"ResponseMetadata");return B&&(I.ResponseMetadata=r(B,{})),I}if(P)throw s.error(P||new Error,{code:"XMLParserError",retryable:!0});return{}},ne.exports=l},37775:(ne,L,d)=>{var s=d(69264),S=d(90503).XmlNode,l=d(76100).XmlText;function t(){}function r(m,E,R){switch(R.type){case"structure":return function n(m,E,R){s.arrayEach(R.memberNames,function(P){var D=R.members[P];if("body"===D.location){var A=E[P],_=D.name;if(null!=A)if(D.isXmlAttribute)m.addAttribute(_,A);else if(D.flattened)r(m,A,D);else{var I=new S(_);m.addChildNode(I),v(I,D),r(I,A,D)}}})}(m,E,R);case"map":return function c(m,E,R){var P=R.key.name||"key",D=R.value.name||"value";s.each(E,function(A,_){var I=new S(R.flattened?R.name:"entry");m.addChildNode(I);var B=new S(P),K=new S(D);I.addChildNode(B),I.addChildNode(K),r(B,A,R.key),r(K,_,R.value)})}(m,E,R);case"list":return function o(m,E,R){s.arrayEach(E,R.flattened?function(P){var A=new S(R.member.name||R.name);m.addChildNode(A),r(A,P,R.member)}:function(P){var A=new S(R.member.name||"member");m.addChildNode(A),r(A,P,R.member)})}(m,E,R);default:return function u(m,E,R){m.addChildNode(new l(R.toWireFormat(E)))}(m,E,R)}}function v(m,E,R){var P,D="xmlns";E.xmlNamespaceUri?(P=E.xmlNamespaceUri,E.xmlNamespacePrefix&&(D+=":"+E.xmlNamespacePrefix)):R&&E.api.xmlNamespaceUri&&(P=E.api.xmlNamespaceUri),P&&m.addAttribute(D,P)}t.prototype.toXML=function(m,E,R,P){var D=new S(R);return v(D,E,!0),r(D,m,E),D.children.length>0||P?D.toString():""},ne.exports=t},80410:ne=>{ne.exports={escapeAttribute:function L(d){return d.replace(/&/g,"&").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}}},35882:ne=>{ne.exports={escapeElement:function L(d){return d.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}}},90503:(ne,L,d)=>{var s=d(80410).escapeAttribute;function S(l,t){void 0===t&&(t=[]),this.name=l,this.children=t,this.attributes={}}S.prototype.addAttribute=function(l,t){return this.attributes[l]=t,this},S.prototype.addChildNode=function(l){return this.children.push(l),this},S.prototype.removeAttribute=function(l){return delete this.attributes[l],this},S.prototype.toString=function(){for(var l=Boolean(this.children.length),t="<"+this.name,r=this.attributes,n=0,c=Object.keys(r);n<c.length;n++){var o=c[n],u=r[o];typeof u<"u"&&null!==u&&(t+=" "+o+'="'+s(""+u)+'"')}return t+(l?">"+this.children.map(function(v){return v.toString()}).join("")+"</"+this.name+">":"/>")},ne.exports={XmlNode:S}},76100:(ne,L,d)=>{var s=d(35882).escapeElement;function S(l){this.value=l}S.prototype.toString=function(){return s(""+this.value)},ne.exports={XmlText:S}},24451:(ne,L,d)=>{var s=d(96425);function S(){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}L.parse=_,L.resolve=function B(f,y){return _(f,!1,!0).resolve(y)},L.resolveObject=function K(f,y){return f?_(f,!1,!0).resolveObject(y):y},L.format=function I(f){return q(f)&&(f=_(f)),f instanceof S?f.format():S.prototype.format.call(f)},L.Url=S;var l=/^([a-z0-9.+-]+:)/i,t=/:[0-9]*$/,n=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(n),o=["%","/","?",";","#"].concat(c),u=["/","?","#"],m=/^[a-z0-9A-Z_-]{0,63}$/,E=/^([a-z0-9A-Z_-]{0,63})(.*)$/,R={javascript:!0,"javascript:":!0},P={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},A=d(46467);function _(f,y,p){if(f&&W(f)&&f instanceof S)return f;var N=new S;return N.parse(f,y,p),N}function q(f){return"string"==typeof f}function W(f){return"object"==typeof f&&null!==f}function O(f){return null===f}S.prototype.parse=function(f,y,p){if(!q(f))throw new TypeError("Parameter 'url' must be a string, not "+typeof f);var N=f;N=N.trim();var V=l.exec(N);if(V){var Q=(V=V[0]).toLowerCase();this.protocol=Q,N=N.substr(V.length)}if(p||V||N.match(/^\/\/[^@\/]+@[^@\/]+/)){var $="//"===N.substr(0,2);$&&(!V||!P[V])&&(N=N.substr(2),this.slashes=!0)}if(!P[V]&&($||V&&!D[V])){for(var ae=-1,me=0;me<u.length;me++)-1!==(X=N.indexOf(u[me]))&&(-1===ae||X<ae)&&(ae=X);var he,oe;for(-1!==(oe=-1===ae?N.lastIndexOf("@"):N.lastIndexOf("@",ae))&&(he=N.slice(0,oe),N=N.slice(oe+1),this.auth=decodeURIComponent(he)),ae=-1,me=0;me<o.length;me++){var X;-1!==(X=N.indexOf(o[me]))&&(-1===ae||X<ae)&&(ae=X)}-1===ae&&(ae=N.length),this.host=N.slice(0,ae),N=N.slice(ae),this.parseHost(),this.hostname=this.hostname||"";var j="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!j)for(var re=this.hostname.split(/\./),J=(me=0,re.length);me<J;me++){var ee=re[me];if(ee&&!ee.match(m)){for(var x="",h=0,b=ee.length;h<b;h++)ee.charCodeAt(h)>127?x+="x":x+=ee[h];if(!x.match(m)){var T=re.slice(0,me),M=re.slice(me+1),G=ee.match(E);G&&(T.push(G[1]),M.unshift(G[2])),M.length&&(N="/"+M.join(".")+N),this.hostname=T.join(".");break}}}if(this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),!j){var Z=this.hostname.split("."),se=[];for(me=0;me<Z.length;++me)se.push((ie=Z[me]).match(/[^A-Za-z0-9_-]/)?"xn--"+s.encode(ie):ie);this.hostname=se.join(".")}this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==N[0]&&(N="/"+N))}if(!R[Q])for(me=0,J=c.length;me<J;me++){var xe=c[me],Oe=encodeURIComponent(xe);Oe===xe&&(Oe=escape(xe)),N=N.split(xe).join(Oe)}var Re=N.indexOf("#");-1!==Re&&(this.hash=N.substr(Re),N=N.slice(0,Re));var ie,H=N.indexOf("?");return-1!==H?(this.search=N.substr(H),this.query=N.substr(H+1),y&&(this.query=A.parse(this.query)),N=N.slice(0,H)):y&&(this.search="",this.query={}),N&&(this.pathname=N),D[Q]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(ie=this.search||"")),this.href=this.format(),this},S.prototype.format=function(){var f=this.auth||"";f&&(f=(f=encodeURIComponent(f)).replace(/%3A/i,":"),f+="@");var y=this.protocol||"",p=this.pathname||"",N=this.hash||"",V=!1,Q="";this.host?V=f+this.host:this.hostname&&(V=f+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(V+=":"+this.port)),this.query&&W(this.query)&&Object.keys(this.query).length&&(Q=A.stringify(this.query));var $=this.search||Q&&"?"+Q||"";return y&&":"!==y.substr(-1)&&(y+=":"),this.slashes||(!y||D[y])&&!1!==V?(V="//"+(V||""),p&&"/"!==p.charAt(0)&&(p="/"+p)):V||(V=""),N&&"#"!==N.charAt(0)&&(N="#"+N),$&&"?"!==$.charAt(0)&&($="?"+$),y+V+(p=p.replace(/[?#]/g,function(ae){return encodeURIComponent(ae)}))+($=$.replace("#","%23"))+N},S.prototype.resolve=function(f){return this.resolveObject(_(f,!1,!0)).format()},S.prototype.resolveObject=function(f){if(q(f)){var y=new S;y.parse(f,!1,!0),f=y}var p=new S;if(Object.keys(this).forEach(function(b){p[b]=this[b]},this),p.hash=f.hash,""===f.href)return p.href=p.format(),p;if(f.slashes&&!f.protocol)return Object.keys(f).forEach(function(b){"protocol"!==b&&(p[b]=f[b])}),D[p.protocol]&&p.hostname&&!p.pathname&&(p.path=p.pathname="/"),p.href=p.format(),p;if(f.protocol&&f.protocol!==p.protocol){if(!D[f.protocol])return Object.keys(f).forEach(function(b){p[b]=f[b]}),p.href=p.format(),p;if(p.protocol=f.protocol,f.host||P[f.protocol])p.pathname=f.pathname;else{for(var he=(f.pathname||"").split("/");he.length&&!(f.host=he.shift()););f.host||(f.host=""),f.hostname||(f.hostname=""),""!==he[0]&&he.unshift(""),he.length<2&&he.unshift(""),p.pathname=he.join("/")}return p.search=f.search,p.query=f.query,p.host=f.host||"",p.auth=f.auth,p.hostname=f.hostname||f.host,p.port=f.port,(p.pathname||p.search)&&(p.path=(p.pathname||"")+(p.search||"")),p.slashes=p.slashes||f.slashes,p.href=p.format(),p}var Q=p.pathname&&"/"===p.pathname.charAt(0),$=f.host||f.pathname&&"/"===f.pathname.charAt(0),ae=$||Q||p.host&&f.pathname,me=ae,X=p.pathname&&p.pathname.split("/")||[],oe=(he=f.pathname&&f.pathname.split("/")||[],p.protocol&&!D[p.protocol]);if(oe&&(p.hostname="",p.port=null,p.host&&(""===X[0]?X[0]=p.host:X.unshift(p.host)),p.host="",f.protocol&&(f.hostname=null,f.port=null,f.host&&(""===he[0]?he[0]=f.host:he.unshift(f.host)),f.host=null),ae=ae&&(""===he[0]||""===X[0])),$)p.host=f.host||""===f.host?f.host:p.host,p.hostname=f.hostname||""===f.hostname?f.hostname:p.hostname,p.search=f.search,p.query=f.query,X=he;else if(he.length)X||(X=[]),X.pop(),X=X.concat(he),p.search=f.search,p.query=f.query;else if(!function w(f){return null==f}(f.search))return oe&&(p.hostname=p.host=X.shift(),(j=!!(p.host&&p.host.indexOf("@")>0)&&p.host.split("@"))&&(p.auth=j.shift(),p.host=p.hostname=j.shift())),p.search=f.search,p.query=f.query,(!O(p.pathname)||!O(p.search))&&(p.path=(p.pathname?p.pathname:"")+(p.search?p.search:"")),p.href=p.format(),p;if(!X.length)return p.pathname=null,p.path=p.search?"/"+p.search:null,p.href=p.format(),p;for(var re=X.slice(-1)[0],J=(p.host||f.host)&&("."===re||".."===re)||""===re,ee=0,x=X.length;x>=0;x--)"."==(re=X[x])?X.splice(x,1):".."===re?(X.splice(x,1),ee++):ee&&(X.splice(x,1),ee--);if(!ae&&!me)for(;ee--;ee)X.unshift("..");ae&&""!==X[0]&&(!X[0]||"/"!==X[0].charAt(0))&&X.unshift(""),J&&"/"!==X.join("/").substr(-1)&&X.push("");var j,h=""===X[0]||X[0]&&"/"===X[0].charAt(0);return oe&&(p.hostname=p.host=h?"":X.length?X.shift():"",(j=!!(p.host&&p.host.indexOf("@")>0)&&p.host.split("@"))&&(p.auth=j.shift(),p.host=p.hostname=j.shift())),(ae=ae||p.host&&X.length)&&!h&&X.unshift(""),X.length?p.pathname=X.join("/"):(p.pathname=null,p.path=null),(!O(p.pathname)||!O(p.search))&&(p.path=(p.pathname?p.pathname:"")+(p.search?p.search:"")),p.auth=f.auth||p.auth,p.slashes=p.slashes||f.slashes,p.href=p.format(),p},S.prototype.parseHost=function(){var f=this.host,y=t.exec(f);y&&(":"!==(y=y[0])&&(this.port=y.substr(1)),f=f.substr(0,f.length-y.length)),f&&(this.hostname=f)}},3138:(ne,L,d)=>{var s=d(30679),S=d(42308),l=S;l.v1=s,l.v4=S,ne.exports=l},48686:ne=>{for(var L=[],d=0;d<256;++d)L[d]=(d+256).toString(16).substr(1);ne.exports=function s(S,l){var t=l||0;return[L[S[t++]],L[S[t++]],L[S[t++]],L[S[t++]],"-",L[S[t++]],L[S[t++]],"-",L[S[t++]],L[S[t++]],"-",L[S[t++]],L[S[t++]],"-",L[S[t++]],L[S[t++]],L[S[t++]],L[S[t++]],L[S[t++]],L[S[t++]]].join("")}},29984:ne=>{var L=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(L){var d=new Uint8Array(16);ne.exports=function(){return L(d),d}}else{var s=new Array(16);ne.exports=function(){for(var t,l=0;l<16;l++)0==(3&l)&&(t=4294967296*Math.random()),s[l]=t>>>((3&l)<<3)&255;return s}}},30679:(ne,L,d)=>{var l,t,s=d(29984),S=d(48686),r=0,n=0;ne.exports=function c(o,u,v){var m=u&&v||0,E=u||[],R=(o=o||{}).node||l,P=void 0!==o.clockseq?o.clockseq:t;if(null==R||null==P){var D=s();null==R&&(R=l=[1|D[0],D[1],D[2],D[3],D[4],D[5]]),null==P&&(P=t=16383&(D[6]<<8|D[7]))}var A=void 0!==o.msecs?o.msecs:(new Date).getTime(),_=void 0!==o.nsecs?o.nsecs:n+1,I=A-r+(_-n)/1e4;if(I<0&&void 0===o.clockseq&&(P=P+1&16383),(I<0||A>r)&&void 0===o.nsecs&&(_=0),_>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");r=A,n=_,t=P;var B=(1e4*(268435455&(A+=122192928e5))+_)%4294967296;E[m++]=B>>>24&255,E[m++]=B>>>16&255,E[m++]=B>>>8&255,E[m++]=255&B;var K=A/4294967296*1e4&268435455;E[m++]=K>>>8&255,E[m++]=255&K,E[m++]=K>>>24&15|16,E[m++]=K>>>16&255,E[m++]=P>>>8|128,E[m++]=255&P;for(var q=0;q<6;++q)E[m+q]=R[q];return u||S(E)}},42308:(ne,L,d)=>{var s=d(29984),S=d(48686);ne.exports=function l(t,r,n){var c=r&&n||0;"string"==typeof t&&(r="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||s)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,r)for(var u=0;u<16;++u)r[c+u]=o[u];return r||S(o)}},19984:(ne,L,d)=>{"use strict";var S=d(38861),t=function(){function r(n){void 0===n&&(n=1e3),this.maxSize=n,this.cache=new S.LRUCache(n)}return Object.defineProperty(r.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),r.prototype.put=function(n,c){var o="string"!=typeof n?r.getKeyString(n):n,u=this.populateValue(c);this.cache.put(o,u)},r.prototype.get=function(n){var c="string"!=typeof n?r.getKeyString(n):n,o=Date.now(),u=this.cache.get(c);if(u){for(var v=u.length-1;v>=0;v--)u[v].Expire<o&&u.splice(v,1);if(0===u.length)return void this.cache.remove(c)}return u},r.getKeyString=function(n){for(var c=[],o=Object.keys(n).sort(),u=0;u<o.length;u++){var v=o[u];void 0!==n[v]&&c.push(n[v])}return c.join(" ")},r.prototype.populateValue=function(n){var c=Date.now();return n.map(function(o){return{Address:o.Address||"",Expire:c+60*(o.CachePeriodInMinutes||1)*1e3}})},r.prototype.empty=function(){this.cache.empty()},r.prototype.remove=function(n){var c="string"!=typeof n?r.getKeyString(n):n;this.cache.remove(c)},r}();L.$=t},38861:(ne,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var d=function S(l,t){this.key=l,this.value=t},s=function(){function S(l){if(this.nodeMap={},this.size=0,"number"!=typeof l||l<1)throw new Error("Cache size can only be positive number");this.sizeLimit=l}return Object.defineProperty(S.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),S.prototype.prependToList=function(l){this.headerNode?(this.headerNode.prev=l,l.next=this.headerNode):this.tailNode=l,this.headerNode=l,this.size++},S.prototype.removeFromTail=function(){if(this.tailNode){var l=this.tailNode,t=l.prev;return t&&(t.next=void 0),l.prev=void 0,this.tailNode=t,this.size--,l}},S.prototype.detachFromList=function(l){this.headerNode===l&&(this.headerNode=l.next),this.tailNode===l&&(this.tailNode=l.prev),l.prev&&(l.prev.next=l.next),l.next&&(l.next.prev=l.prev),l.next=void 0,l.prev=void 0,this.size--},S.prototype.get=function(l){if(this.nodeMap[l]){var t=this.nodeMap[l];return this.detachFromList(t),this.prependToList(t),t.value}},S.prototype.remove=function(l){this.nodeMap[l]&&(this.detachFromList(this.nodeMap[l]),delete this.nodeMap[l])},S.prototype.put=function(l,t){if(this.nodeMap[l])this.remove(l);else if(this.size===this.sizeLimit){var r=this.removeFromTail();delete this.nodeMap[r.key]}var c=new d(l,t);this.nodeMap[l]=c,this.prependToList(c)},S.prototype.empty=function(){for(var l=Object.keys(this.nodeMap),t=0;t<l.length;t++){var r=l[t];this.detachFromList(this.nodeMap[r]),delete this.nodeMap[r]}},S}();L.LRUCache=s},73961:(ne,L)=>{"use strict";L.byteLength=function c(R){var P=n(R),A=P[1];return 3*(P[0]+A)/4-A},L.toByteArray=function u(R){var P,q,D=n(R),A=D[0],_=D[1],I=new S(function o(R,P,D){return 3*(P+D)/4-D}(0,A,_)),B=0,K=_>0?A-4:A;for(q=0;q<K;q+=4)P=s[R.charCodeAt(q)]<<18|s[R.charCodeAt(q+1)]<<12|s[R.charCodeAt(q+2)]<<6|s[R.charCodeAt(q+3)],I[B++]=P>>16&255,I[B++]=P>>8&255,I[B++]=255&P;return 2===_&&(P=s[R.charCodeAt(q)]<<2|s[R.charCodeAt(q+1)]>>4,I[B++]=255&P),1===_&&(P=s[R.charCodeAt(q)]<<10|s[R.charCodeAt(q+1)]<<4|s[R.charCodeAt(q+2)]>>2,I[B++]=P>>8&255,I[B++]=255&P),I},L.fromByteArray=function E(R){for(var P,D=R.length,A=D%3,_=[],I=16383,B=0,K=D-A;B<K;B+=I)_.push(m(R,B,B+I>K?K:B+I));return 1===A?_.push(d[(P=R[D-1])>>2]+d[P<<4&63]+"=="):2===A&&_.push(d[(P=(R[D-2]<<8)+R[D-1])>>10]+d[P>>4&63]+d[P<<2&63]+"="),_.join("")};for(var d=[],s=[],S=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=l.length;t<r;++t)d[t]=l[t],s[l.charCodeAt(t)]=t;function n(R){var P=R.length;if(P%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var D=R.indexOf("=");return-1===D&&(D=P),[D,D===P?0:4-D%4]}function v(R){return d[R>>18&63]+d[R>>12&63]+d[R>>6&63]+d[63&R]}function m(R,P,D){for(var _=[],I=P;I<D;I+=3)_.push(v((R[I]<<16&16711680)+(R[I+1]<<8&65280)+(255&R[I+2])));return _.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},8754:(ne,L,d)=>{"use strict";var S=d(73961),l=d(25564),t=d(50617);function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(H,F){if(n()<F)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(H=new Uint8Array(F)).__proto__=o.prototype:(null===H&&(H=new o(F)),H.length=F),H}function o(H,F,U){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(H,F,U);if("number"==typeof H){if("string"==typeof F)throw new Error("If encoding is specified then the first argument must be a string");return E(this,H)}return u(this,H,F,U)}function u(H,F,U,ue){if("number"==typeof F)throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&F instanceof ArrayBuffer?function D(H,F,U,ue){if(U<0||F.byteLength<U)throw new RangeError("'offset' is out of bounds");if(F.byteLength<U+(ue||0))throw new RangeError("'length' is out of bounds");return F=void 0===U&&void 0===ue?new Uint8Array(F):void 0===ue?new Uint8Array(F,U):new Uint8Array(F,U,ue),o.TYPED_ARRAY_SUPPORT?(H=F).__proto__=o.prototype:H=P(H,F),H}(H,F,U,ue):"string"==typeof F?function R(H,F,U){if(("string"!=typeof U||""===U)&&(U="utf8"),!o.isEncoding(U))throw new TypeError('"encoding" must be a valid string encoding');var ue=0|B(F,U),ye=(H=c(H,ue)).write(F,U);return ye!==ue&&(H=H.slice(0,ye)),H}(H,F,U):function A(H,F){if(o.isBuffer(F)){var U=0|_(F.length);return 0===(H=c(H,U)).length||F.copy(H,0,0,U),H}if(F){if(typeof ArrayBuffer<"u"&&F.buffer instanceof ArrayBuffer||"length"in F)return"number"!=typeof F.length||function Re(H){return H!=H}(F.length)?c(H,0):P(H,F);if("Buffer"===F.type&&t(F.data))return P(H,F.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(H,F)}function v(H){if("number"!=typeof H)throw new TypeError('"size" argument must be a number');if(H<0)throw new RangeError('"size" argument must not be negative')}function E(H,F){if(v(F),H=c(H,F<0?0:0|_(F)),!o.TYPED_ARRAY_SUPPORT)for(var U=0;U<F;++U)H[U]=0;return H}function P(H,F){var U=F.length<0?0:0|_(F.length);H=c(H,U);for(var ue=0;ue<U;ue+=1)H[ue]=255&F[ue];return H}function _(H){if(H>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|H}function B(H,F){if(o.isBuffer(H))return H.length;if(typeof ArrayBuffer<"u"&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(H)||H instanceof ArrayBuffer))return H.byteLength;"string"!=typeof H&&(H=""+H);var U=H.length;if(0===U)return 0;for(var ue=!1;;)switch(F){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":case void 0:return ie(H).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*U;case"hex":return U>>>1;case"base64":return xe(H).length;default:if(ue)return ie(H).length;F=(""+F).toLowerCase(),ue=!0}}function K(H,F,U){var ue=!1;if((void 0===F||F<0)&&(F=0),F>this.length||((void 0===U||U>this.length)&&(U=this.length),U<=0)||(U>>>=0)<=(F>>>=0))return"";for(H||(H="utf8");;)switch(H){case"hex":return oe(this,F,U);case"utf8":case"utf-8":return $(this,F,U);case"ascii":return X(this,F,U);case"latin1":case"binary":return he(this,F,U);case"base64":return Q(this,F,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,F,U);default:if(ue)throw new TypeError("Unknown encoding: "+H);H=(H+"").toLowerCase(),ue=!0}}function q(H,F,U){var ue=H[F];H[F]=H[U],H[U]=ue}function W(H,F,U,ue,ye){if(0===H.length)return-1;if("string"==typeof U?(ue=U,U=0):U>2147483647?U=2147483647:U<-2147483648&&(U=-2147483648),U=+U,isNaN(U)&&(U=ye?0:H.length-1),U<0&&(U=H.length+U),U>=H.length){if(ye)return-1;U=H.length-1}else if(U<0){if(!ye)return-1;U=0}if("string"==typeof F&&(F=o.from(F,ue)),o.isBuffer(F))return 0===F.length?-1:O(H,F,U,ue,ye);if("number"==typeof F)return F&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?ye?Uint8Array.prototype.indexOf.call(H,F,U):Uint8Array.prototype.lastIndexOf.call(H,F,U):O(H,[F],U,ue,ye);throw new TypeError("val must be string, number or Buffer")}function O(H,F,U,ue,ye){var Se,Ce=1,z=H.length,le=F.length;if(void 0!==ue&&("ucs2"===(ue=String(ue).toLowerCase())||"ucs-2"===ue||"utf16le"===ue||"utf-16le"===ue)){if(H.length<2||F.length<2)return-1;Ce=2,z/=2,le/=2,U/=2}function ve(Ze,$e){return 1===Ce?Ze[$e]:Ze.readUInt16BE($e*Ce)}if(ye){var Ie=-1;for(Se=U;Se<z;Se++)if(ve(H,Se)===ve(F,-1===Ie?0:Se-Ie)){if(-1===Ie&&(Ie=Se),Se-Ie+1===le)return Ie*Ce}else-1!==Ie&&(Se-=Se-Ie),Ie=-1}else for(U+le>z&&(U=z-le),Se=U;Se>=0;Se--){for(var Me=!0,Ke=0;Ke<le;Ke++)if(ve(H,Se+Ke)!==ve(F,Ke)){Me=!1;break}if(Me)return Se}return-1}function w(H,F,U,ue){U=Number(U)||0;var ye=H.length-U;ue?(ue=Number(ue))>ye&&(ue=ye):ue=ye;var Ce=F.length;if(Ce%2!=0)throw new TypeError("Invalid hex string");ue>Ce/2&&(ue=Ce/2);for(var z=0;z<ue;++z){var le=parseInt(F.substr(2*z,2),16);if(isNaN(le))return z;H[U+z]=le}return z}function f(H,F,U,ue){return Oe(ie(F,H.length-U),H,U,ue)}function y(H,F,U,ue){return Oe(function _e(H){for(var F=[],U=0;U<H.length;++U)F.push(255&H.charCodeAt(U));return F}(F),H,U,ue)}function p(H,F,U,ue){return y(H,F,U,ue)}function N(H,F,U,ue){return Oe(xe(F),H,U,ue)}function V(H,F,U,ue){return Oe(function Te(H,F){for(var U,ue,Ce=[],z=0;z<H.length&&!((F-=2)<0);++z)ue=(U=H.charCodeAt(z))>>8,Ce.push(U%256),Ce.push(ue);return Ce}(F,H.length-U),H,U,ue)}function Q(H,F,U){return S.fromByteArray(0===F&&U===H.length?H:H.slice(F,U))}function $(H,F,U){U=Math.min(H.length,U);for(var ue=[],ye=F;ye<U;){var ve,Se,Ie,Me,Ce=H[ye],z=null,le=Ce>239?4:Ce>223?3:Ce>191?2:1;if(ye+le<=U)switch(le){case 1:Ce<128&&(z=Ce);break;case 2:128==(192&(ve=H[ye+1]))&&(Me=(31&Ce)<<6|63&ve)>127&&(z=Me);break;case 3:Se=H[ye+2],128==(192&(ve=H[ye+1]))&&128==(192&Se)&&(Me=(15&Ce)<<12|(63&ve)<<6|63&Se)>2047&&(Me<55296||Me>57343)&&(z=Me);break;case 4:Se=H[ye+2],Ie=H[ye+3],128==(192&(ve=H[ye+1]))&&128==(192&Se)&&128==(192&Ie)&&(Me=(15&Ce)<<18|(63&ve)<<12|(63&Se)<<6|63&Ie)>65535&&Me<1114112&&(z=Me)}null===z?(z=65533,le=1):z>65535&&(ue.push((z-=65536)>>>10&1023|55296),z=56320|1023&z),ue.push(z),ye+=le}return function me(H){var F=H.length;if(F<=4096)return String.fromCharCode.apply(String,H);for(var U="",ue=0;ue<F;)U+=String.fromCharCode.apply(String,H.slice(ue,ue+=4096));return U}(ue)}function X(H,F,U){var ue="";U=Math.min(H.length,U);for(var ye=F;ye<U;++ye)ue+=String.fromCharCode(127&H[ye]);return ue}function he(H,F,U){var ue="";U=Math.min(H.length,U);for(var ye=F;ye<U;++ye)ue+=String.fromCharCode(H[ye]);return ue}function oe(H,F,U){var ue=H.length;(!F||F<0)&&(F=0),(!U||U<0||U>ue)&&(U=ue);for(var ye="",Ce=F;Ce<U;++Ce)ye+=se(H[Ce]);return ye}function j(H,F,U){for(var ue=H.slice(F,U),ye="",Ce=0;Ce<ue.length;Ce+=2)ye+=String.fromCharCode(ue[Ce]+256*ue[Ce+1]);return ye}function re(H,F,U){if(H%1!=0||H<0)throw new RangeError("offset is not uint");if(H+F>U)throw new RangeError("Trying to access beyond buffer length")}function J(H,F,U,ue,ye,Ce){if(!o.isBuffer(H))throw new TypeError('"buffer" argument must be a Buffer instance');if(F>ye||F<Ce)throw new RangeError('"value" argument is out of bounds');if(U+ue>H.length)throw new RangeError("Index out of range")}function ee(H,F,U,ue){F<0&&(F=65535+F+1);for(var ye=0,Ce=Math.min(H.length-U,2);ye<Ce;++ye)H[U+ye]=(F&255<<8*(ue?ye:1-ye))>>>8*(ue?ye:1-ye)}function x(H,F,U,ue){F<0&&(F=4294967295+F+1);for(var ye=0,Ce=Math.min(H.length-U,4);ye<Ce;++ye)H[U+ye]=F>>>8*(ue?ye:3-ye)&255}function h(H,F,U,ue,ye,Ce){if(U+ue>H.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function b(H,F,U,ue,ye){return ye||h(H,0,U,4),l.write(H,F,U,ue,23,4),U+4}function T(H,F,U,ue,ye){return ye||h(H,0,U,8),l.write(H,F,U,ue,52,8),U+8}L.lW=o,L.h2=50,o.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:function r(){try{var H=new Uint8Array(1);return H.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===H.foo()&&"function"==typeof H.subarray&&0===H.subarray(1,1).byteLength}catch{return!1}}(),n(),o.poolSize=8192,o._augment=function(H){return H.__proto__=o.prototype,H},o.from=function(H,F,U){return u(null,H,F,U)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(H,F,U){return function m(H,F,U,ue){return v(F),F<=0?c(H,F):void 0!==U?"string"==typeof ue?c(H,F).fill(U,ue):c(H,F).fill(U):c(H,F)}(null,H,F,U)},o.allocUnsafe=function(H){return E(null,H)},o.allocUnsafeSlow=function(H){return E(null,H)},o.isBuffer=function(F){return!(null==F||!F._isBuffer)},o.compare=function(F,U){if(!o.isBuffer(F)||!o.isBuffer(U))throw new TypeError("Arguments must be Buffers");if(F===U)return 0;for(var ue=F.length,ye=U.length,Ce=0,z=Math.min(ue,ye);Ce<z;++Ce)if(F[Ce]!==U[Ce]){ue=F[Ce],ye=U[Ce];break}return ue<ye?-1:ye<ue?1:0},o.isEncoding=function(F){switch(String(F).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}},o.concat=function(F,U){if(!t(F))throw new TypeError('"list" argument must be an Array of Buffers');if(0===F.length)return o.alloc(0);var ue;if(void 0===U)for(U=0,ue=0;ue<F.length;++ue)U+=F[ue].length;var ye=o.allocUnsafe(U),Ce=0;for(ue=0;ue<F.length;++ue){var z=F[ue];if(!o.isBuffer(z))throw new TypeError('"list" argument must be an Array of Buffers');z.copy(ye,Ce),Ce+=z.length}return ye},o.byteLength=B,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var F=this.length;if(F%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var U=0;U<F;U+=2)q(this,U,U+1);return this},o.prototype.swap32=function(){var F=this.length;if(F%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var U=0;U<F;U+=4)q(this,U,U+3),q(this,U+1,U+2);return this},o.prototype.swap64=function(){var F=this.length;if(F%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var U=0;U<F;U+=8)q(this,U,U+7),q(this,U+1,U+6),q(this,U+2,U+5),q(this,U+3,U+4);return this},o.prototype.toString=function(){var F=0|this.length;return 0===F?"":0===arguments.length?$(this,0,F):K.apply(this,arguments)},o.prototype.equals=function(F){if(!o.isBuffer(F))throw new TypeError("Argument must be a Buffer");return this===F||0===o.compare(this,F)},o.prototype.inspect=function(){var F="",U=L.h2;return this.length>0&&(F=this.toString("hex",0,U).match(/.{2}/g).join(" "),this.length>U&&(F+=" ... ")),"<Buffer "+F+">"},o.prototype.compare=function(F,U,ue,ye,Ce){if(!o.isBuffer(F))throw new TypeError("Argument must be a Buffer");if(void 0===U&&(U=0),void 0===ue&&(ue=F?F.length:0),void 0===ye&&(ye=0),void 0===Ce&&(Ce=this.length),U<0||ue>F.length||ye<0||Ce>this.length)throw new RangeError("out of range index");if(ye>=Ce&&U>=ue)return 0;if(ye>=Ce)return-1;if(U>=ue)return 1;if(this===F)return 0;for(var z=(Ce>>>=0)-(ye>>>=0),le=(ue>>>=0)-(U>>>=0),ve=Math.min(z,le),Se=this.slice(ye,Ce),Ie=F.slice(U,ue),Me=0;Me<ve;++Me)if(Se[Me]!==Ie[Me]){z=Se[Me],le=Ie[Me];break}return z<le?-1:le<z?1:0},o.prototype.includes=function(F,U,ue){return-1!==this.indexOf(F,U,ue)},o.prototype.indexOf=function(F,U,ue){return W(this,F,U,ue,!0)},o.prototype.lastIndexOf=function(F,U,ue){return W(this,F,U,ue,!1)},o.prototype.write=function(F,U,ue,ye){if(void 0===U)ye="utf8",ue=this.length,U=0;else if(void 0===ue&&"string"==typeof U)ye=U,ue=this.length,U=0;else{if(!isFinite(U))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");U|=0,isFinite(ue)?(ue|=0,void 0===ye&&(ye="utf8")):(ye=ue,ue=void 0)}var Ce=this.length-U;if((void 0===ue||ue>Ce)&&(ue=Ce),F.length>0&&(ue<0||U<0)||U>this.length)throw new RangeError("Attempt to write outside buffer bounds");ye||(ye="utf8");for(var z=!1;;)switch(ye){case"hex":return w(this,F,U,ue);case"utf8":case"utf-8":return f(this,F,U,ue);case"ascii":return y(this,F,U,ue);case"latin1":case"binary":return p(this,F,U,ue);case"base64":return N(this,F,U,ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,F,U,ue);default:if(z)throw new TypeError("Unknown encoding: "+ye);ye=(""+ye).toLowerCase(),z=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(F,U){var ye,ue=this.length;if((F=~~F)<0?(F+=ue)<0&&(F=0):F>ue&&(F=ue),(U=void 0===U?ue:~~U)<0?(U+=ue)<0&&(U=0):U>ue&&(U=ue),U<F&&(U=F),o.TYPED_ARRAY_SUPPORT)(ye=this.subarray(F,U)).__proto__=o.prototype;else{var Ce=U-F;ye=new o(Ce,void 0);for(var z=0;z<Ce;++z)ye[z]=this[z+F]}return ye},o.prototype.readUIntLE=function(F,U,ue){F|=0,U|=0,ue||re(F,U,this.length);for(var ye=this[F],Ce=1,z=0;++z<U&&(Ce*=256);)ye+=this[F+z]*Ce;return ye},o.prototype.readUIntBE=function(F,U,ue){F|=0,U|=0,ue||re(F,U,this.length);for(var ye=this[F+--U],Ce=1;U>0&&(Ce*=256);)ye+=this[F+--U]*Ce;return ye},o.prototype.readUInt8=function(F,U){return U||re(F,1,this.length),this[F]},o.prototype.readUInt16LE=function(F,U){return U||re(F,2,this.length),this[F]|this[F+1]<<8},o.prototype.readUInt16BE=function(F,U){return U||re(F,2,this.length),this[F]<<8|this[F+1]},o.prototype.readUInt32LE=function(F,U){return U||re(F,4,this.length),(this[F]|this[F+1]<<8|this[F+2]<<16)+16777216*this[F+3]},o.prototype.readUInt32BE=function(F,U){return U||re(F,4,this.length),16777216*this[F]+(this[F+1]<<16|this[F+2]<<8|this[F+3])},o.prototype.readIntLE=function(F,U,ue){F|=0,U|=0,ue||re(F,U,this.length);for(var ye=this[F],Ce=1,z=0;++z<U&&(Ce*=256);)ye+=this[F+z]*Ce;return ye>=(Ce*=128)&&(ye-=Math.pow(2,8*U)),ye},o.prototype.readIntBE=function(F,U,ue){F|=0,U|=0,ue||re(F,U,this.length);for(var ye=U,Ce=1,z=this[F+--ye];ye>0&&(Ce*=256);)z+=this[F+--ye]*Ce;return z>=(Ce*=128)&&(z-=Math.pow(2,8*U)),z},o.prototype.readInt8=function(F,U){return U||re(F,1,this.length),128&this[F]?-1*(255-this[F]+1):this[F]},o.prototype.readInt16LE=function(F,U){U||re(F,2,this.length);var ue=this[F]|this[F+1]<<8;return 32768&ue?4294901760|ue:ue},o.prototype.readInt16BE=function(F,U){U||re(F,2,this.length);var ue=this[F+1]|this[F]<<8;return 32768&ue?4294901760|ue:ue},o.prototype.readInt32LE=function(F,U){return U||re(F,4,this.length),this[F]|this[F+1]<<8|this[F+2]<<16|this[F+3]<<24},o.prototype.readInt32BE=function(F,U){return U||re(F,4,this.length),this[F]<<24|this[F+1]<<16|this[F+2]<<8|this[F+3]},o.prototype.readFloatLE=function(F,U){return U||re(F,4,this.length),l.read(this,F,!0,23,4)},o.prototype.readFloatBE=function(F,U){return U||re(F,4,this.length),l.read(this,F,!1,23,4)},o.prototype.readDoubleLE=function(F,U){return U||re(F,8,this.length),l.read(this,F,!0,52,8)},o.prototype.readDoubleBE=function(F,U){return U||re(F,8,this.length),l.read(this,F,!1,52,8)},o.prototype.writeUIntLE=function(F,U,ue,ye){F=+F,U|=0,ue|=0,ye||J(this,F,U,ue,Math.pow(2,8*ue)-1,0);var z=1,le=0;for(this[U]=255&F;++le<ue&&(z*=256);)this[U+le]=F/z&255;return U+ue},o.prototype.writeUIntBE=function(F,U,ue,ye){F=+F,U|=0,ue|=0,ye||J(this,F,U,ue,Math.pow(2,8*ue)-1,0);var z=ue-1,le=1;for(this[U+z]=255&F;--z>=0&&(le*=256);)this[U+z]=F/le&255;return U+ue},o.prototype.writeUInt8=function(F,U,ue){return F=+F,U|=0,ue||J(this,F,U,1,255,0),o.TYPED_ARRAY_SUPPORT||(F=Math.floor(F)),this[U]=255&F,U+1},o.prototype.writeUInt16LE=function(F,U,ue){return F=+F,U|=0,ue||J(this,F,U,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[U]=255&F,this[U+1]=F>>>8):ee(this,F,U,!0),U+2},o.prototype.writeUInt16BE=function(F,U,ue){return F=+F,U|=0,ue||J(this,F,U,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[U]=F>>>8,this[U+1]=255&F):ee(this,F,U,!1),U+2},o.prototype.writeUInt32LE=function(F,U,ue){return F=+F,U|=0,ue||J(this,F,U,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[U+3]=F>>>24,this[U+2]=F>>>16,this[U+1]=F>>>8,this[U]=255&F):x(this,F,U,!0),U+4},o.prototype.writeUInt32BE=function(F,U,ue){return F=+F,U|=0,ue||J(this,F,U,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[U]=F>>>24,this[U+1]=F>>>16,this[U+2]=F>>>8,this[U+3]=255&F):x(this,F,U,!1),U+4},o.prototype.writeIntLE=function(F,U,ue,ye){if(F=+F,U|=0,!ye){var Ce=Math.pow(2,8*ue-1);J(this,F,U,ue,Ce-1,-Ce)}var z=0,le=1,ve=0;for(this[U]=255&F;++z<ue&&(le*=256);)F<0&&0===ve&&0!==this[U+z-1]&&(ve=1),this[U+z]=(F/le>>0)-ve&255;return U+ue},o.prototype.writeIntBE=function(F,U,ue,ye){if(F=+F,U|=0,!ye){var Ce=Math.pow(2,8*ue-1);J(this,F,U,ue,Ce-1,-Ce)}var z=ue-1,le=1,ve=0;for(this[U+z]=255&F;--z>=0&&(le*=256);)F<0&&0===ve&&0!==this[U+z+1]&&(ve=1),this[U+z]=(F/le>>0)-ve&255;return U+ue},o.prototype.writeInt8=function(F,U,ue){return F=+F,U|=0,ue||J(this,F,U,1,127,-128),o.TYPED_ARRAY_SUPPORT||(F=Math.floor(F)),F<0&&(F=255+F+1),this[U]=255&F,U+1},o.prototype.writeInt16LE=function(F,U,ue){return F=+F,U|=0,ue||J(this,F,U,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[U]=255&F,this[U+1]=F>>>8):ee(this,F,U,!0),U+2},o.prototype.writeInt16BE=function(F,U,ue){return F=+F,U|=0,ue||J(this,F,U,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[U]=F>>>8,this[U+1]=255&F):ee(this,F,U,!1),U+2},o.prototype.writeInt32LE=function(F,U,ue){return F=+F,U|=0,ue||J(this,F,U,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[U]=255&F,this[U+1]=F>>>8,this[U+2]=F>>>16,this[U+3]=F>>>24):x(this,F,U,!0),U+4},o.prototype.writeInt32BE=function(F,U,ue){return F=+F,U|=0,ue||J(this,F,U,4,2147483647,-2147483648),F<0&&(F=4294967295+F+1),o.TYPED_ARRAY_SUPPORT?(this[U]=F>>>24,this[U+1]=F>>>16,this[U+2]=F>>>8,this[U+3]=255&F):x(this,F,U,!1),U+4},o.prototype.writeFloatLE=function(F,U,ue){return b(this,F,U,!0,ue)},o.prototype.writeFloatBE=function(F,U,ue){return b(this,F,U,!1,ue)},o.prototype.writeDoubleLE=function(F,U,ue){return T(this,F,U,!0,ue)},o.prototype.writeDoubleBE=function(F,U,ue){return T(this,F,U,!1,ue)},o.prototype.copy=function(F,U,ue,ye){if(ue||(ue=0),!ye&&0!==ye&&(ye=this.length),U>=F.length&&(U=F.length),U||(U=0),ye>0&&ye<ue&&(ye=ue),ye===ue||0===F.length||0===this.length)return 0;if(U<0)throw new RangeError("targetStart out of bounds");if(ue<0||ue>=this.length)throw new RangeError("sourceStart out of bounds");if(ye<0)throw new RangeError("sourceEnd out of bounds");ye>this.length&&(ye=this.length),F.length-U<ye-ue&&(ye=F.length-U+ue);var z,Ce=ye-ue;if(this===F&&ue<U&&U<ye)for(z=Ce-1;z>=0;--z)F[z+U]=this[z+ue];else if(Ce<1e3||!o.TYPED_ARRAY_SUPPORT)for(z=0;z<Ce;++z)F[z+U]=this[z+ue];else Uint8Array.prototype.set.call(F,this.subarray(ue,ue+Ce),U);return Ce},o.prototype.fill=function(F,U,ue,ye){if("string"==typeof F){if("string"==typeof U?(ye=U,U=0,ue=this.length):"string"==typeof ue&&(ye=ue,ue=this.length),1===F.length){var Ce=F.charCodeAt(0);Ce<256&&(F=Ce)}if(void 0!==ye&&"string"!=typeof ye)throw new TypeError("encoding must be a string");if("string"==typeof ye&&!o.isEncoding(ye))throw new TypeError("Unknown encoding: "+ye)}else"number"==typeof F&&(F&=255);if(U<0||this.length<U||this.length<ue)throw new RangeError("Out of range index");if(ue<=U)return this;var z;if(U>>>=0,ue=void 0===ue?this.length:ue>>>0,F||(F=0),"number"==typeof F)for(z=U;z<ue;++z)this[z]=F;else{var le=o.isBuffer(F)?F:ie(new o(F,ye).toString()),ve=le.length;for(z=0;z<ue-U;++z)this[z+U]=le[z%ve]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function se(H){return H<16?"0"+H.toString(16):H.toString(16)}function ie(H,F){F=F||1/0;for(var U,ue=H.length,ye=null,Ce=[],z=0;z<ue;++z){if((U=H.charCodeAt(z))>55295&&U<57344){if(!ye){if(U>56319){(F-=3)>-1&&Ce.push(239,191,189);continue}if(z+1===ue){(F-=3)>-1&&Ce.push(239,191,189);continue}ye=U;continue}if(U<56320){(F-=3)>-1&&Ce.push(239,191,189),ye=U;continue}U=65536+(ye-55296<<10|U-56320)}else ye&&(F-=3)>-1&&Ce.push(239,191,189);if(ye=null,U<128){if((F-=1)<0)break;Ce.push(U)}else if(U<2048){if((F-=2)<0)break;Ce.push(U>>6|192,63&U|128)}else if(U<65536){if((F-=3)<0)break;Ce.push(U>>12|224,U>>6&63|128,63&U|128)}else{if(!(U<1114112))throw new Error("Invalid code point");if((F-=4)<0)break;Ce.push(U>>18|240,U>>12&63|128,U>>6&63|128,63&U|128)}}return Ce}function xe(H){return S.toByteArray(function G(H){if((H=function Z(H){return H.trim?H.trim():H.replace(/^\s+|\s+$/g,"")}(H).replace(M,"")).length<2)return"";for(;H.length%4!=0;)H+="=";return H}(H))}function Oe(H,F,U,ue){for(var ye=0;ye<ue&&!(ye+U>=F.length||ye>=H.length);++ye)F[ye+U]=H[ye];return ye}},25564:(ne,L)=>{L.read=function(d,s,S,l,t){var r,n,c=8*t-l-1,o=(1<<c)-1,u=o>>1,v=-7,m=S?t-1:0,E=S?-1:1,R=d[s+m];for(m+=E,r=R&(1<<-v)-1,R>>=-v,v+=c;v>0;r=256*r+d[s+m],m+=E,v-=8);for(n=r&(1<<-v)-1,r>>=-v,v+=l;v>0;n=256*n+d[s+m],m+=E,v-=8);if(0===r)r=1-u;else{if(r===o)return n?NaN:1/0*(R?-1:1);n+=Math.pow(2,l),r-=u}return(R?-1:1)*n*Math.pow(2,r-l)},L.write=function(d,s,S,l,t,r){var n,c,o,u=8*r-t-1,v=(1<<u)-1,m=v>>1,E=23===t?Math.pow(2,-24)-Math.pow(2,-77):0,R=l?0:r-1,P=l?1:-1,D=s<0||0===s&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(c=isNaN(s)?1:0,n=v):(n=Math.floor(Math.log(s)/Math.LN2),s*(o=Math.pow(2,-n))<1&&(n--,o*=2),(s+=n+m>=1?E/o:E*Math.pow(2,1-m))*o>=2&&(n++,o/=2),n+m>=v?(c=0,n=v):n+m>=1?(c=(s*o-1)*Math.pow(2,t),n+=m):(c=s*Math.pow(2,m-1)*Math.pow(2,t),n=0));t>=8;d[S+R]=255&c,R+=P,c/=256,t-=8);for(n=n<<t|c,u+=t;u>0;d[S+R]=255&n,R+=P,n/=256,u-=8);d[S+R-P]|=128*D}},91410:(ne,L,d)=>{"use strict";var s=d(67881),S=d(28066),l=S(s("String.prototype.indexOf"));ne.exports=function(r,n){var c=s(r,!!n);return"function"==typeof c&&l(r,".prototype.")>-1?S(c):c}},28066:(ne,L,d)=>{"use strict";var s=d(42325),S=d(67881),l=S("%Function.prototype.apply%"),t=S("%Function.prototype.call%"),r=S("%Reflect.apply%",!0)||s.call(t,l),n=S("%Object.getOwnPropertyDescriptor%",!0),c=S("%Object.defineProperty%",!0),o=S("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}ne.exports=function(m){var E=r(s,t,arguments);if(n&&c){var R=n(E,"length");R.configurable&&c(E,"length",{value:1+o(0,m.length-(arguments.length-1))})}return E};var u=function(){return r(s,l,arguments)};c?c(ne.exports,"apply",{value:u}):ne.exports.apply=u},2922:(ne,L,d)=>{function r(){var c;try{c=L.storage.debug}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}(L=ne.exports=d(821)).log=function l(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},L.formatArgs=function S(c){var o=this.useColors;if(c[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+c[0]+(o?"%c ":" ")+"+"+L.humanize(this.diff),o){var u="color: "+this.color;c.splice(1,0,u,"color: inherit");var v=0,m=0;c[0].replace(/%[a-zA-Z%]/g,function(E){"%%"!==E&&(v++,"%c"===E&&(m=v))}),c.splice(m,0,u)}},L.save=function t(c){try{null==c?L.storage.removeItem("debug"):L.storage.debug=c}catch{}},L.load=r,L.useColors=function s(){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+)/)},L.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:function n(){try{return window.localStorage}catch{}}(),L.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],L.formatters.j=function(c){try{return JSON.stringify(c)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}},L.enable(r())},821:(ne,L,d)=>{var s;function l(o){function u(){if(u.enabled){var v=u,m=+new Date,E=m-(s||m);v.diff=E,v.prev=s,v.curr=m,s=m;for(var R=new Array(arguments.length),P=0;P<R.length;P++)R[P]=arguments[P];R[0]=L.coerce(R[0]),"string"!=typeof R[0]&&R.unshift("%O");var D=0;R[0]=R[0].replace(/%([a-zA-Z%])/g,function(_,I){if("%%"===_)return _;D++;var B=L.formatters[I];return"function"==typeof B&&(_=B.call(v,R[D]),R.splice(D,1),D--),_}),L.formatArgs.call(v,R);var A=u.log||L.log||console.log.bind(console);A.apply(v,R)}}return u.namespace=o,u.enabled=L.enabled(o),u.useColors=L.useColors(),u.color=function S(o){var v,u=0;for(v in o)u=(u<<5)-u+o.charCodeAt(v),u|=0;return L.colors[Math.abs(u)%L.colors.length]}(o),"function"==typeof L.init&&L.init(u),u}(L=ne.exports=l.debug=l.default=l).coerce=function c(o){return o instanceof Error?o.stack||o.message:o},L.disable=function r(){L.enable("")},L.enable=function t(o){L.save(o),L.names=[],L.skips=[];for(var u=("string"==typeof o?o:"").split(/[\s,]+/),v=u.length,m=0;m<v;m++)!u[m]||("-"===(o=u[m].replace(/\*/g,".*?"))[0]?L.skips.push(new RegExp("^"+o.substr(1)+"$")):L.names.push(new RegExp("^"+o+"$")))},L.enabled=function n(o){var u,v;for(u=0,v=L.skips.length;u<v;u++)if(L.skips[u].test(o))return!1;for(u=0,v=L.names.length;u<v;u++)if(L.names[u].test(o))return!0;return!1},L.humanize=d(12104),L.names=[],L.skips=[],L.formatters={}},60820:ne=>{function L(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function d(t){return"function"==typeof t}function S(t){return"object"==typeof t&&null!==t}function l(t){return void 0===t}ne.exports=L,L.EventEmitter=L,L.prototype._events=void 0,L.prototype._maxListeners=void 0,L.defaultMaxListeners=10,L.prototype.setMaxListeners=function(t){if(!function s(t){return"number"==typeof t}(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},L.prototype.emit=function(t){var r,n,c,o,u,v;if(this._events||(this._events={}),"error"===t&&(!this._events.error||S(this._events.error)&&!this._events.error.length)){if((r=arguments[1])instanceof Error)throw r;var m=new Error('Uncaught, unspecified "error" event. ('+r+")");throw m.context=r,m}if(l(n=this._events[t]))return!1;if(d(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),n.apply(this,o)}else if(S(n))for(o=Array.prototype.slice.call(arguments,1),c=(v=n.slice()).length,u=0;u<c;u++)v[u].apply(this,o);return!0},L.prototype.on=L.prototype.addListener=function(t,r){var n;if(!d(r))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,d(r.listener)?r.listener:r),this._events[t]?S(this._events[t])?this._events[t].push(r):this._events[t]=[this._events[t],r]:this._events[t]=r,S(this._events[t])&&!this._events[t].warned&&(n=l(this._maxListeners)?L.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[t].length>n&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},L.prototype.once=function(t,r){if(!d(r))throw TypeError("listener must be a function");var n=!1;function c(){this.removeListener(t,c),n||(n=!0,r.apply(this,arguments))}return c.listener=r,this.on(t,c),this},L.prototype.removeListener=function(t,r){var n,c,o,u;if(!d(r))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(o=(n=this._events[t]).length,c=-1,n===r||d(n.listener)&&n.listener===r)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,r);else if(S(n)){for(u=o;u-- >0;)if(n[u]===r||n[u].listener&&n[u].listener===r){c=u;break}if(c<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(c,1),this._events.removeListener&&this.emit("removeListener",t,r)}return this},L.prototype.removeAllListeners=function(t){var r,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(r in this._events)"removeListener"!==r&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events={},this}if(d(n=this._events[t]))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},L.prototype.listeners=function(t){return this._events&&this._events[t]?d(this._events[t])?[this._events[t]]:this._events[t].slice():[]},L.prototype.listenerCount=function(t){if(this._events){var r=this._events[t];if(d(r))return 1;if(r)return r.length}return 0},L.listenerCount=function(t,r){return t.listenerCount(r)}},48165:ne=>{"use strict";ne.exports=function(L,d){d||(d={}),"function"==typeof d&&(d={cmp:d});var t,s="boolean"==typeof d.cycles&&d.cycles,S=d.cmp&&(t=d.cmp,function(r){return function(n,c){return t({key:n,value:r[n]},{key:c,value:r[c]})}}),l=[];return function t(r){if(r&&r.toJSON&&"function"==typeof r.toJSON&&(r=r.toJSON()),void 0!==r){if("number"==typeof r)return isFinite(r)?""+r:"null";if("object"!=typeof r)return JSON.stringify(r);var n,c;if(Array.isArray(r)){for(c="[",n=0;n<r.length;n++)n&&(c+=","),c+=t(r[n])||"null";return c+"]"}if(null===r)return"null";if(-1!==l.indexOf(r)){if(s)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var o=l.push(r)-1,u=Object.keys(r).sort(S&&S(r));for(c="",n=0;n<u.length;n++){var v=u[n],m=t(r[v]);!m||(c&&(c+=","),c+=JSON.stringify(v)+":"+m)}return l.splice(o,1),"{"+c+"}"}}(L)}},81986:ne=>{var L=Object.prototype.hasOwnProperty,d=Object.prototype.toString;ne.exports=function(S,l,t){if("[object Function]"!==d.call(l))throw new TypeError("iterator must be a function");var r=S.length;if(r===+r)for(var n=0;n<r;n++)l.call(t,S[n],n,S);else for(var c in S)L.call(S,c)&&l.call(t,S[c],c,S)}},53621:ne=>{"use strict";var L="Function.prototype.bind called on incompatible ",d=Array.prototype.slice,s=Object.prototype.toString,S="[object Function]";ne.exports=function(t){var r=this;if("function"!=typeof r||s.call(r)!==S)throw new TypeError(L+r);for(var c,n=d.call(arguments,1),o=function(){if(this instanceof c){var R=r.apply(this,n.concat(d.call(arguments)));return Object(R)===R?R:this}return r.apply(t,n.concat(d.call(arguments)))},u=Math.max(0,r.length-n.length),v=[],m=0;m<u;m++)v.push("$"+m);if(c=Function("binder","return function ("+v.join(",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var E=function(){};E.prototype=r.prototype,c.prototype=new E,E.prototype=null}return c}},42325:(ne,L,d)=>{"use strict";var s=d(53621);ne.exports=Function.prototype.bind||s},67881:(ne,L,d)=>{"use strict";var s,S=SyntaxError,l=Function,t=TypeError,r=function(y){try{return l('"use strict"; return ('+y+").constructor;")()}catch{}},n=Object.getOwnPropertyDescriptor;if(n)try{n({},"")}catch{n=null}var c=function(){throw new t},o=n?function(){try{return c}catch{try{return n(arguments,"callee").get}catch{return c}}}():c,u=d(34550)(),v=Object.getPrototypeOf||function(y){return y.__proto__},m={},E=typeof Uint8Array>"u"?s:v(Uint8Array),R={"%AggregateError%":typeof AggregateError>"u"?s:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?s:ArrayBuffer,"%ArrayIteratorPrototype%":u?v([][Symbol.iterator]()):s,"%AsyncFromSyncIteratorPrototype%":s,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":typeof Atomics>"u"?s:Atomics,"%BigInt%":typeof BigInt>"u"?s:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?s:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?s:Float32Array,"%Float64Array%":typeof Float64Array>"u"?s:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?s:FinalizationRegistry,"%Function%":l,"%GeneratorFunction%":m,"%Int8Array%":typeof Int8Array>"u"?s:Int8Array,"%Int16Array%":typeof Int16Array>"u"?s:Int16Array,"%Int32Array%":typeof Int32Array>"u"?s:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?v(v([][Symbol.iterator]())):s,"%JSON%":"object"==typeof JSON?JSON:s,"%Map%":typeof Map>"u"?s:Map,"%MapIteratorPrototype%":typeof Map>"u"||!u?s:v((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?s:Promise,"%Proxy%":typeof Proxy>"u"?s:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?s:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?s:Set,"%SetIteratorPrototype%":typeof Set>"u"||!u?s:v((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?s:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?v(""[Symbol.iterator]()):s,"%Symbol%":u?Symbol:s,"%SyntaxError%":S,"%ThrowTypeError%":o,"%TypedArray%":E,"%TypeError%":t,"%Uint8Array%":typeof Uint8Array>"u"?s:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?s:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?s:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?s:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?s:WeakMap,"%WeakRef%":typeof WeakRef>"u"?s:WeakRef,"%WeakSet%":typeof WeakSet>"u"?s:WeakSet},P=function y(p){var N;if("%AsyncFunction%"===p)N=r("async function () {}");else if("%GeneratorFunction%"===p)N=r("function* () {}");else if("%AsyncGeneratorFunction%"===p)N=r("async function* () {}");else if("%AsyncGenerator%"===p){var V=y("%AsyncGeneratorFunction%");V&&(N=V.prototype)}else if("%AsyncIteratorPrototype%"===p){var Q=y("%AsyncGenerator%");Q&&(N=v(Q.prototype))}return R[p]=N,N},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"]},A=d(42325),_=d(16033),I=A.call(Function.call,Array.prototype.concat),B=A.call(Function.apply,Array.prototype.splice),K=A.call(Function.call,String.prototype.replace),q=A.call(Function.call,String.prototype.slice),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,w=function(p){var N=q(p,0,1),V=q(p,-1);if("%"===N&&"%"!==V)throw new S("invalid intrinsic syntax, expected closing `%`");if("%"===V&&"%"!==N)throw new S("invalid intrinsic syntax, expected opening `%`");var Q=[];return K(p,W,function($,ae,me,X){Q[Q.length]=me?K(X,O,"$1"):ae||$}),Q},f=function(p,N){var Q,V=p;if(_(D,V)&&(V="%"+(Q=D[V])[0]+"%"),_(R,V)){var $=R[V];if($===m&&($=P(V)),typeof $>"u"&&!N)throw new t("intrinsic "+p+" exists, but is not available. Please file an issue!");return{alias:Q,name:V,value:$}}throw new S("intrinsic "+p+" does not exist!")};ne.exports=function(p,N){if("string"!=typeof p||0===p.length)throw new t("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof N)throw new t('"allowMissing" argument must be a boolean');var V=w(p),Q=V.length>0?V[0]:"",$=f("%"+Q+"%",N),ae=$.name,me=$.value,X=!1,he=$.alias;he&&(Q=he[0],B(V,I([0,1],he)));for(var oe=1,j=!0;oe<V.length;oe+=1){var re=V[oe],J=q(re,0,1),ee=q(re,-1);if(('"'===J||"'"===J||"`"===J||'"'===ee||"'"===ee||"`"===ee)&&J!==ee)throw new S("property names with quotes must have matching quotes");if(("constructor"===re||!j)&&(X=!0),_(R,ae="%"+(Q+="."+re)+"%"))me=R[ae];else if(null!=me){if(!(re in me)){if(!N)throw new t("base intrinsic for "+p+" exists, but the property is not available.");return}if(n&&oe+1>=V.length){var x=n(me,re);me=(j=!!x)&&"get"in x&&!("originalValue"in x.get)?x.get:me[re]}else j=_(me,re),me=me[re];j&&!X&&(R[ae]=me)}}return me}},44766:(ne,L,d)=>{"use strict";d.d(L,{ZP:()=>b,J9:()=>x,_t:()=>J,wO:()=>ee,HW:()=>re});var l=function(){return l=Object.assign||function(M){for(var G,Z=1,se=arguments.length;Z<se;Z++)for(var ie in G=arguments[Z])Object.prototype.hasOwnProperty.call(G,ie)&&(M[ie]=G[ie]);return M},l.apply(this,arguments)},p=d(51724),N=new Map,V=new Map,Q=!0,$=!1;function ae(T){return T.replace(/[\s,]+/g," ").trim()}function oe(T){var M=ae(T);if(!N.has(M)){var G=(0,p.Qc)(T,{experimentalFragmentVariables:$});if(!G||"Document"!==G.kind)throw new Error("Not a valid GraphQL document.");N.set(M,function he(T){var M=new Set(T.definitions);M.forEach(function(Z){Z.loc&&delete Z.loc,Object.keys(Z).forEach(function(se){var ie=Z[se];ie&&"object"==typeof ie&&M.add(ie)})});var G=T.loc;return G&&(delete G.startToken,delete G.endToken),T}(function X(T){var M=new Set,G=[];return T.definitions.forEach(function(Z){if("FragmentDefinition"===Z.kind){var se=Z.name.value,ie=function me(T){return ae(T.source.body.substring(T.start,T.end))}(Z.loc),_e=V.get(se);_e&&!_e.has(ie)?Q&&console.warn("Warning: fragment with name "+se+" 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"):_e||V.set(se,_e=new Set),_e.add(ie),M.has(ie)||(M.add(ie),G.push(Z))}else G.push(Z)}),l(l({},T),{definitions:G})}(G)))}return N.get(M)}function j(T){for(var M=[],G=1;G<arguments.length;G++)M[G-1]=arguments[G];"string"==typeof T&&(T=[T]);var Z=T[0];return M.forEach(function(se,ie){Z+=se&&"Document"===se.kind?se.loc.source.body:se,Z+=T[ie+1]}),oe(Z)}function re(){N.clear(),V.clear()}function J(){Q=!1}function ee(){$=!0}function x(){$=!1}var T,h_gql=j,h_resetCaches=re,h_disableFragmentWarnings=J,h_enableExperimentalFragmentVariables=ee,h_disableExperimentalFragmentVariables=x;(T=j||(j={})).gql=h_gql,T.resetCaches=h_resetCaches,T.disableFragmentWarnings=h_disableFragmentWarnings,T.enableExperimentalFragmentVariables=h_enableExperimentalFragmentVariables,T.disableExperimentalFragmentVariables=h_disableExperimentalFragmentVariables,j.default=j;const b=j},34550:(ne,L,d)=>{"use strict";var s=typeof Symbol<"u"&&Symbol,S=d(24671);ne.exports=function(){return"function"==typeof s&&"function"==typeof Symbol&&"symbol"==typeof s("foo")&&"symbol"==typeof Symbol("bar")&&S()}},24671:ne=>{"use strict";ne.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var d={},s=Symbol("test"),S=Object(s);if("string"==typeof s||"[object Symbol]"!==Object.prototype.toString.call(s)||"[object Symbol]"!==Object.prototype.toString.call(S))return!1;for(s in d[s]=42,d)return!1;if("function"==typeof Object.keys&&0!==Object.keys(d).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(d).length)return!1;var t=Object.getOwnPropertySymbols(d);if(1!==t.length||t[0]!==s||!Object.prototype.propertyIsEnumerable.call(d,s))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(d,s);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},16033:(ne,L,d)=>{"use strict";var s=d(42325);ne.exports=s.call(Function.call,Object.prototype.hasOwnProperty)},17827:ne=>{ne.exports="function"==typeof Object.create?function(d,s){s&&(d.super_=s,d.prototype=Object.create(s.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}))}:function(d,s){if(s){d.super_=s;var S=function(){};S.prototype=s.prototype,d.prototype=new S,d.prototype.constructor=d}}},36185:(ne,L,d)=>{"use strict";var s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,l=d(91410)("Object.prototype.toString"),t=function(o){return!(s&&o&&"object"==typeof o&&Symbol.toStringTag in o)&&"[object Arguments]"===l(o)},r=function(o){return!!t(o)||null!==o&&"object"==typeof o&&"number"==typeof o.length&&o.length>=0&&"[object Array]"!==l(o)&&"[object Function]"===l(o.callee)},n=function(){return t(arguments)}();t.isLegacyArguments=r,ne.exports=n?t:r},14192:ne=>{"use strict";var r,L=Object.prototype.toString,d=Function.prototype.toString,s=/^\s*(?:function)?\*/,S="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,l=Object.getPrototypeOf;ne.exports=function(c){if("function"!=typeof c)return!1;if(s.test(d.call(c)))return!0;if(!S)return"[object GeneratorFunction]"===L.call(c);if(!l)return!1;if(typeof r>"u"){var u=function(){if(!S)return!1;try{return Function("return function*() {}")()}catch{}}();r=!!u&&l(u)}return l(c)===r}},87887:(ne,L,d)=>{"use strict";var s=d(81986),S=d(40014),l=d(91410),t=l("Object.prototype.toString"),n=d(34550)()&&"symbol"==typeof Symbol.toStringTag,c=S(),o=l("Array.prototype.indexOf",!0)||function(D,A){for(var _=0;_<D.length;_+=1)if(D[_]===A)return _;return-1},u=l("String.prototype.slice"),v={},m=d(86475),E=Object.getPrototypeOf;n&&m&&E&&s(c,function(P){var D=new global[P];if(!(Symbol.toStringTag in D))throw new EvalError("this engine has support for Symbol.toStringTag, but "+P+" does not have the property! Please report this.");var A=E(D),_=m(A,Symbol.toStringTag);if(!_){var I=E(A);_=m(I,Symbol.toStringTag)}v[P]=_.get}),ne.exports=function(D){if(!D||"object"!=typeof D)return!1;if(!n){var A=u(t(D),8,-1);return o(c,A)>-1}return!!m&&function(D){var A=!1;return s(v,function(_,I){if(!A)try{A=_.call(D)===I}catch{}}),A}(D)}},50617:ne=>{var L={}.toString;ne.exports=Array.isArray||function(d){return"[object Array]"==L.call(d)}},67848:(ne,L)=>{!function(d){"use strict";function s(z){return null!==z&&"[object Array]"===Object.prototype.toString.call(z)}function S(z){return null!==z&&"[object Object]"===Object.prototype.toString.call(z)}function l(z,le){if(z===le)return!0;if(Object.prototype.toString.call(z)!==Object.prototype.toString.call(le))return!1;if(!0===s(z)){if(z.length!==le.length)return!1;for(var Se=0;Se<z.length;Se++)if(!1===l(z[Se],le[Se]))return!1;return!0}if(!0===S(z)){var Ie={};for(var Me in z)if(hasOwnProperty.call(z,Me)){if(!1===l(z[Me],le[Me]))return!1;Ie[Me]=!0}for(var Ke in le)if(hasOwnProperty.call(le,Ke)&&!0!==Ie[Ke])return!1;return!0}return!1}function t(z){if(""===z||!1===z||null===z)return!0;if(s(z)&&0===z.length)return!0;if(S(z)){for(var le in z)if(z.hasOwnProperty(le))return!1;return!0}return!1}var c;c="function"==typeof String.prototype.trimLeft?function(z){return z.trimLeft()}:function(z){return z.match(/^\s*(.*)/)[1]};var o=0,v=2,I="EOF",B="UnquotedIdentifier",K="QuotedIdentifier",q="Rbracket",W="Rparen",O="Comma",w="Colon",f="Rbrace",y="Number",p="Current",N="Expref",V="Pipe",$="And",X="LT",j="NE",re="Flatten",J="Star",ee="Filter",x="Dot",h="Not",b="Lbrace",T="Lbracket",M="Lparen",G="Literal",Z={".":x,"*":J,",":O,":":w,"{":b,"}":f,"]":q,"(":M,")":W,"@":p},se={"<":!0,">":!0,"=":!0,"!":!0},ie={" ":!0,"\t":!0,"\n":!0};function _e(z){return z>="a"&&z<="z"||z>="A"&&z<="Z"||"_"===z}function Te(z){return z>="0"&&z<="9"||"-"===z}function xe(z){return z>="a"&&z<="z"||z>="A"&&z<="Z"||z>="0"&&z<="9"||"_"===z}function Oe(){}Oe.prototype={tokenize:function(z){var ve,Se,Ie,le=[];for(this._current=0;this._current<z.length;)if(_e(z[this._current]))ve=this._current,Se=this._consumeUnquotedIdentifier(z),le.push({type:B,value:Se,start:ve});else if(void 0!==Z[z[this._current]])le.push({type:Z[z[this._current]],value:z[this._current],start:this._current}),this._current++;else if(Te(z[this._current]))Ie=this._consumeNumber(z),le.push(Ie);else if("["===z[this._current])Ie=this._consumeLBracket(z),le.push(Ie);else if('"'===z[this._current])ve=this._current,Se=this._consumeQuotedIdentifier(z),le.push({type:K,value:Se,start:ve});else if("'"===z[this._current])ve=this._current,Se=this._consumeRawStringLiteral(z),le.push({type:G,value:Se,start:ve});else if("`"===z[this._current]){ve=this._current;var Me=this._consumeLiteral(z);le.push({type:G,value:Me,start:ve})}else if(void 0!==se[z[this._current]])le.push(this._consumeOperator(z));else if(void 0!==ie[z[this._current]])this._current++;else if("&"===z[this._current])ve=this._current,this._current++,"&"===z[this._current]?(this._current++,le.push({type:$,value:"&&",start:ve})):le.push({type:N,value:"&",start:ve});else{if("|"!==z[this._current]){var Ke=new Error("Unknown character:"+z[this._current]);throw Ke.name="LexerError",Ke}ve=this._current,this._current++,"|"===z[this._current]?(this._current++,le.push({type:"Or",value:"||",start:ve})):le.push({type:V,value:"|",start:ve})}return le},_consumeUnquotedIdentifier:function(z){var le=this._current;for(this._current++;this._current<z.length&&xe(z[this._current]);)this._current++;return z.slice(le,this._current)},_consumeQuotedIdentifier:function(z){var le=this._current;this._current++;for(var ve=z.length;'"'!==z[this._current]&&this._current<ve;){var Se=this._current;"\\"!==z[Se]||"\\"!==z[Se+1]&&'"'!==z[Se+1]?Se++:Se+=2,this._current=Se}return this._current++,JSON.parse(z.slice(le,this._current))},_consumeRawStringLiteral:function(z){var le=this._current;this._current++;for(var ve=z.length;"'"!==z[this._current]&&this._current<ve;){var Se=this._current;"\\"!==z[Se]||"\\"!==z[Se+1]&&"'"!==z[Se+1]?Se++:Se+=2,this._current=Se}return this._current++,z.slice(le+1,this._current-1).replace("\\'","'")},_consumeNumber:function(z){var le=this._current;this._current++;for(var ve=z.length;Te(z[this._current])&&this._current<ve;)this._current++;var Se=parseInt(z.slice(le,this._current));return{type:y,value:Se,start:le}},_consumeLBracket:function(z){var le=this._current;return this._current++,"?"===z[this._current]?(this._current++,{type:ee,value:"[?",start:le}):"]"===z[this._current]?(this._current++,{type:re,value:"[]",start:le}):{type:T,value:"[",start:le}},_consumeOperator:function(z){var le=this._current,ve=z[le];return this._current++,"!"===ve?"="===z[this._current]?(this._current++,{type:j,value:"!=",start:le}):{type:h,value:"!",start:le}:"<"===ve?"="===z[this._current]?(this._current++,{type:"LTE",value:"<=",start:le}):{type:X,value:"<",start:le}:">"===ve?"="===z[this._current]?(this._current++,{type:"GTE",value:">=",start:le}):{type:"GT",value:">",start:le}:"="===ve&&"="===z[this._current]?(this._current++,{type:"EQ",value:"==",start:le}):void 0},_consumeLiteral:function(z){this._current++;for(var Se,le=this._current,ve=z.length;"`"!==z[this._current]&&this._current<ve;){var Ie=this._current;"\\"!==z[Ie]||"\\"!==z[Ie+1]&&"`"!==z[Ie+1]?Ie++:Ie+=2,this._current=Ie}var Me=c(z.slice(le,this._current));return Me=Me.replace("\\`","`"),Se=this._looksLikeJSON(Me)?JSON.parse(Me):JSON.parse('"'+Me+'"'),this._current++,Se},_looksLikeJSON:function(z){if(""===z)return!1;if('[{"'.indexOf(z[0])>=0)return!0;if(["true","false","null"].indexOf(z)>=0)return!0;if(!("-0123456789".indexOf(z[0])>=0))return!1;try{return JSON.parse(z),!0}catch{return!1}}};var Re={};function H(){}function F(z){this.runtime=z}function U(z){this._interpreter=z,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[o]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[o]}]},contains:{_func:this._functionContains,_signature:[{types:[v,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[v]},{types:[v]}]},floor:{_func:this._functionFloor,_signature:[{types:[o]}]},length:{_func:this._functionLength,_signature:[{types:[v,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:[v]},{types:[v]}]},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:[v]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[v,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}]}}}Re[I]=0,Re[B]=0,Re[K]=0,Re[q]=0,Re[W]=0,Re[O]=0,Re[f]=0,Re[y]=0,Re[p]=0,Re[N]=0,Re[V]=1,Re.Or=2,Re[$]=3,Re.EQ=5,Re.GT=5,Re.LT=5,Re.GTE=5,Re.LTE=5,Re.NE=5,Re[re]=9,Re[J]=20,Re[ee]=21,Re[x]=40,Re[h]=45,Re[b]=50,Re[T]=55,Re[M]=60,H.prototype={parse:function(z){this._loadTokens(z),this.index=0;var le=this.expression(0);if(this._lookahead(0)!==I){var ve=this._lookaheadToken(0),Se=new Error("Unexpected token type: "+ve.type+", value: "+ve.value);throw Se.name="ParserError",Se}return le},_loadTokens:function(z){var ve=(new Oe).tokenize(z);ve.push({type:I,value:"",start:z.length}),this.tokens=ve},expression:function(z){var le=this._lookaheadToken(0);this._advance();for(var ve=this.nud(le),Se=this._lookahead(0);z<Re[Se];)this._advance(),ve=this.led(Se,ve),Se=this._lookahead(0);return ve},_lookahead:function(z){return this.tokens[this.index+z].type},_lookaheadToken:function(z){return this.tokens[this.index+z]},_advance:function(){this.index++},nud:function(z){var ve,Se;switch(z.type){case G:return{type:"Literal",value:z.value};case B:return{type:"Field",name:z.value};case K:var Ie={type:"Field",name:z.value};if(this._lookahead(0)===M)throw new Error("Quoted identifier not allowed for function names.");return Ie;case h:return{type:"NotExpression",children:[ve=this.expression(Re.Not)]};case J:return ve=null,{type:"ValueProjection",children:[{type:"Identity"},ve=this._lookahead(0)===q?{type:"Identity"}:this._parseProjectionRHS(Re.Star)]};case ee:return this.led(z.type,{type:"Identity"});case b:return this._parseMultiselectHash();case re:return{type:"Projection",children:[{type:re,children:[{type:"Identity"}]},ve=this._parseProjectionRHS(Re.Flatten)]};case T:return this._lookahead(0)===y||this._lookahead(0)===w?(ve=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},ve)):this._lookahead(0)===J&&this._lookahead(1)===q?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},ve=this._parseProjectionRHS(Re.Star)]}):this._parseMultiselectList();case p:return{type:p};case N:return{type:"ExpressionReference",children:[Se=this.expression(Re.Expref)]};case M:for(var Me=[];this._lookahead(0)!==W;)this._lookahead(0)===p?(Se={type:p},this._advance()):Se=this.expression(0),Me.push(Se);return this._match(W),Me[0];default:this._errorToken(z)}},led:function(z,le){var ve;switch(z){case x:var Se=Re.Dot;return this._lookahead(0)!==J?{type:"Subexpression",children:[le,ve=this._parseDotRHS(Se)]}:(this._advance(),{type:"ValueProjection",children:[le,ve=this._parseProjectionRHS(Se)]});case V:return ve=this.expression(Re.Pipe),{type:V,children:[le,ve]};case"Or":return{type:"OrExpression",children:[le,ve=this.expression(Re.Or)]};case $:return{type:"AndExpression",children:[le,ve=this.expression(Re.And)]};case M:for(var Ke,Ie=le.name,Me=[];this._lookahead(0)!==W;)this._lookahead(0)===p?(Ke={type:p},this._advance()):Ke=this.expression(0),this._lookahead(0)===O&&this._match(O),Me.push(Ke);return this._match(W),{type:"Function",name:Ie,children:Me};case ee:var $e=this.expression(0);return this._match(q),{type:"FilterProjection",children:[le,ve=this._lookahead(0)===re?{type:"Identity"}:this._parseProjectionRHS(Re.Filter),$e]};case re:return{type:"Projection",children:[{type:re,children:[le]},this._parseProjectionRHS(Re.Flatten)]};case"EQ":case j:case"GT":case"GTE":case X:case"LTE":return this._parseComparator(le,z);case T:var ke=this._lookaheadToken(0);return ke.type===y||ke.type===w?(ve=this._parseIndexExpression(),this._projectIfSlice(le,ve)):(this._match(J),this._match(q),{type:"Projection",children:[le,ve=this._parseProjectionRHS(Re.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(z){if(this._lookahead(0)!==z){var le=this._lookaheadToken(0),ve=new Error("Expected "+z+", got: "+le.type);throw ve.name="ParserError",ve}this._advance()},_errorToken:function(z){var le=new Error("Invalid token ("+z.type+'): "'+z.value+'"');throw le.name="ParserError",le},_parseIndexExpression:function(){if(this._lookahead(0)===w||this._lookahead(1)===w)return this._parseSliceExpression();var z={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(q),z},_projectIfSlice:function(z,le){var ve={type:"IndexExpression",children:[z,le]};return"Slice"===le.type?{type:"Projection",children:[ve,this._parseProjectionRHS(Re.Star)]}:ve},_parseSliceExpression:function(){for(var z=[null,null,null],le=0,ve=this._lookahead(0);ve!==q&&le<3;){if(ve===w)le++,this._advance();else{if(ve!==y){var Se=this._lookahead(0),Ie=new Error("Syntax error, unexpected token: "+Se.value+"("+Se.type+")");throw Ie.name="Parsererror",Ie}z[le]=this._lookaheadToken(0).value,this._advance()}ve=this._lookahead(0)}return this._match(q),{type:"Slice",children:z}},_parseComparator:function(z,le){return{type:"Comparator",name:le,children:[z,this.expression(Re[le])]}},_parseDotRHS:function(z){var le=this._lookahead(0);return[B,K,J].indexOf(le)>=0?this.expression(z):le===T?(this._match(T),this._parseMultiselectList()):le===b?(this._match(b),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(z){var le;if(Re[this._lookahead(0)]<10)le={type:"Identity"};else if(this._lookahead(0)===T)le=this.expression(z);else if(this._lookahead(0)===ee)le=this.expression(z);else{if(this._lookahead(0)!==x){var ve=this._lookaheadToken(0),Se=new Error("Sytanx error, unexpected token: "+ve.value+"("+ve.type+")");throw Se.name="ParserError",Se}this._match(x),le=this._parseDotRHS(z)}return le},_parseMultiselectList:function(){for(var z=[];this._lookahead(0)!==q;){var le=this.expression(0);if(z.push(le),this._lookahead(0)===O&&(this._match(O),this._lookahead(0)===q))throw new Error("Unexpected token Rbracket")}return this._match(q),{type:"MultiSelectList",children:z}},_parseMultiselectHash:function(){for(var ve,Se,Ie,z=[],le=[B,K];;){if(ve=this._lookaheadToken(0),le.indexOf(ve.type)<0)throw new Error("Expecting an identifier token, got: "+ve.type);if(Se=ve.value,this._advance(),this._match(w),Ie=this.expression(0),z.push({type:"KeyValuePair",name:Se,value:Ie}),this._lookahead(0)===O)this._match(O);else if(this._lookahead(0)===f){this._match(f);break}}return{type:"MultiSelectHash",children:z}}},F.prototype={search:function(z,le){return this.visit(z,le)},visit:function(z,le){var ve,Se,Ie,Me,Ke,Ze,$e,qe,ke;switch(z.type){case"Field":return null===le?null:S(le)?void 0===(Ze=le[z.name])?null:Ze:null;case"Subexpression":for(Ie=this.visit(z.children[0],le),ke=1;ke<z.children.length;ke++)if(null===(Ie=this.visit(z.children[1],Ie)))return null;return Ie;case"IndexExpression":return $e=this.visit(z.children[0],le),this.visit(z.children[1],$e);case"Index":if(!s(le))return null;var bt=z.value;return bt<0&&(bt=le.length+bt),void 0===(Ie=le[bt])&&(Ie=null),Ie;case"Slice":if(!s(le))return null;var yr=z.children.slice(0),$t=this.computeSliceParams(le.length,yr),Gt=$t[0],Wt=$t[1],Rt=$t[2];if(Ie=[],Rt>0)for(ke=Gt;ke<Wt;ke+=Rt)Ie.push(le[ke]);else for(ke=Gt;ke>Wt;ke+=Rt)Ie.push(le[ke]);return Ie;case"Projection":var St=this.visit(z.children[0],le);if(!s(St))return null;for(qe=[],ke=0;ke<St.length;ke++)null!==(Se=this.visit(z.children[1],St[ke]))&&qe.push(Se);return qe;case"ValueProjection":if(!S(St=this.visit(z.children[0],le)))return null;qe=[];var ht=function r(z){for(var le=Object.keys(z),ve=[],Se=0;Se<le.length;Se++)ve.push(z[le[Se]]);return ve}(St);for(ke=0;ke<ht.length;ke++)null!==(Se=this.visit(z.children[1],ht[ke]))&&qe.push(Se);return qe;case"FilterProjection":if(!s(St=this.visit(z.children[0],le)))return null;var Nt=[],Dt=[];for(ke=0;ke<St.length;ke++)t(ve=this.visit(z.children[2],St[ke]))||Nt.push(St[ke]);for(var Tt=0;Tt<Nt.length;Tt++)null!==(Se=this.visit(z.children[1],Nt[Tt]))&&Dt.push(Se);return Dt;case"Comparator":switch(Me=this.visit(z.children[0],le),Ke=this.visit(z.children[1],le),z.name){case"EQ":Ie=l(Me,Ke);break;case j:Ie=!l(Me,Ke);break;case"GT":Ie=Me>Ke;break;case"GTE":Ie=Me>=Ke;break;case X:Ie=Me<Ke;break;case"LTE":Ie=Me<=Ke;break;default:throw new Error("Unknown comparator: "+z.name)}return Ie;case re:var mt=this.visit(z.children[0],le);if(!s(mt))return null;var Qt=[];for(ke=0;ke<mt.length;ke++)s(Se=mt[ke])?Qt.push.apply(Qt,Se):Qt.push(Se);return Qt;case"Identity":return le;case"MultiSelectList":if(null===le)return null;for(qe=[],ke=0;ke<z.children.length;ke++)qe.push(this.visit(z.children[ke],le));return qe;case"MultiSelectHash":if(null===le)return null;var er;for(qe={},ke=0;ke<z.children.length;ke++)qe[(er=z.children[ke]).name]=this.visit(er.value,le);return qe;case"OrExpression":return t(ve=this.visit(z.children[0],le))&&(ve=this.visit(z.children[1],le)),ve;case"AndExpression":return!0===t(Me=this.visit(z.children[0],le))?Me:this.visit(z.children[1],le);case"NotExpression":return t(Me=this.visit(z.children[0],le));case"Literal":return z.value;case V:return $e=this.visit(z.children[0],le),this.visit(z.children[1],$e);case p:return le;case"Function":var Mt=[];for(ke=0;ke<z.children.length;ke++)Mt.push(this.visit(z.children[ke],le));return this.runtime.callFunction(z.name,Mt);case"ExpressionReference":var Ht=z.children[0];return Ht.jmespathType=N,Ht;default:throw new Error("Unknown node type: "+z.type)}},computeSliceParams:function(z,le){var ve=le[0],Se=le[1],Ie=le[2],Me=[null,null,null];if(null===Ie)Ie=1;else if(0===Ie){var Ke=new Error("Invalid slice, step cannot be 0");throw Ke.name="RuntimeError",Ke}var Ze=Ie<0;return ve=null===ve?Ze?z-1:0:this.capSliceRange(z,ve,Ie),Se=null===Se?Ze?-1:z:this.capSliceRange(z,Se,Ie),Me[0]=ve,Me[1]=Se,Me[2]=Ie,Me},capSliceRange:function(z,le,ve){return le<0?(le+=z)<0&&(le=ve<0?-1:0):le>=z&&(le=ve<0?z-1:z),le}},U.prototype={callFunction:function(z,le){var ve=this.functionTable[z];if(void 0===ve)throw new Error("Unknown function: "+z+"()");return this._validateArgs(z,le,ve._signature),ve._func.call(this,le)},_validateArgs:function(z,le,ve){var Se;if(ve[ve.length-1].variadic){if(le.length<ve.length)throw Se=1===ve.length?" argument":" arguments",new Error("ArgumentError: "+z+"() takes at least"+ve.length+Se+" but received "+le.length)}else if(le.length!==ve.length)throw Se=1===ve.length?" argument":" arguments",new Error("ArgumentError: "+z+"() takes "+ve.length+Se+" but received "+le.length);for(var Ie,Me,Ke,Ze=0;Ze<ve.length;Ze++){Ke=!1,Ie=ve[Ze].types,Me=this._getTypeName(le[Ze]);for(var $e=0;$e<Ie.length;$e++)if(this._typeMatches(Me,Ie[$e],le[Ze])){Ke=!0;break}if(!Ke)throw new Error("TypeError: "+z+"() expected argument "+(Ze+1)+" to be type "+Ie+" but received type "+Me+" instead.")}},_typeMatches:function(z,le,ve){if(1===le)return!0;if(9!==le&&8!==le&&3!==le)return z===le;if(3===le)return 3===z;if(3===z){var Se;8===le?Se=o:9===le&&(Se=v);for(var Ie=0;Ie<ve.length;Ie++)if(!this._typeMatches(this._getTypeName(ve[Ie]),Se,ve[Ie]))return!1;return!0}},_getTypeName:function(z){switch(Object.prototype.toString.call(z)){case"[object String]":return v;case"[object Number]":return o;case"[object Array]":return 3;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return z.jmespathType===N?6:4}},_functionStartsWith:function(z){return 0===z[0].lastIndexOf(z[1])},_functionEndsWith:function(z){var le=z[0],ve=z[1];return-1!==le.indexOf(ve,le.length-ve.length)},_functionReverse:function(z){if(this._getTypeName(z[0])===v){for(var ve=z[0],Se="",Ie=ve.length-1;Ie>=0;Ie--)Se+=ve[Ie];return Se}var Me=z[0].slice(0);return Me.reverse(),Me},_functionAbs:function(z){return Math.abs(z[0])},_functionCeil:function(z){return Math.ceil(z[0])},_functionAvg:function(z){for(var le=0,ve=z[0],Se=0;Se<ve.length;Se++)le+=ve[Se];return le/ve.length},_functionContains:function(z){return z[0].indexOf(z[1])>=0},_functionFloor:function(z){return Math.floor(z[0])},_functionLength:function(z){return S(z[0])?Object.keys(z[0]).length:z[0].length},_functionMap:function(z){for(var le=[],ve=this._interpreter,Se=z[0],Ie=z[1],Me=0;Me<Ie.length;Me++)le.push(ve.visit(Se,Ie[Me]));return le},_functionMerge:function(z){for(var le={},ve=0;ve<z.length;ve++){var Se=z[ve];for(var Ie in Se)le[Ie]=Se[Ie]}return le},_functionMax:function(z){if(z[0].length>0){if(this._getTypeName(z[0][0])===o)return Math.max.apply(Math,z[0]);for(var ve=z[0],Se=ve[0],Ie=1;Ie<ve.length;Ie++)Se.localeCompare(ve[Ie])<0&&(Se=ve[Ie]);return Se}return null},_functionMin:function(z){if(z[0].length>0){if(this._getTypeName(z[0][0])===o)return Math.min.apply(Math,z[0]);for(var ve=z[0],Se=ve[0],Ie=1;Ie<ve.length;Ie++)ve[Ie].localeCompare(Se)<0&&(Se=ve[Ie]);return Se}return null},_functionSum:function(z){for(var le=0,ve=z[0],Se=0;Se<ve.length;Se++)le+=ve[Se];return le},_functionType:function(z){switch(this._getTypeName(z[0])){case o:return"number";case v:return"string";case 3:return"array";case 4:return"object";case 5:return"boolean";case 6:return"expref";case 7:return"null"}},_functionKeys:function(z){return Object.keys(z[0])},_functionValues:function(z){for(var le=z[0],ve=Object.keys(le),Se=[],Ie=0;Ie<ve.length;Ie++)Se.push(le[ve[Ie]]);return Se},_functionJoin:function(z){return z[1].join(z[0])},_functionToArray:function(z){return 3===this._getTypeName(z[0])?z[0]:[z[0]]},_functionToString:function(z){return this._getTypeName(z[0])===v?z[0]:JSON.stringify(z[0])},_functionToNumber:function(z){var ve,le=this._getTypeName(z[0]);return le===o?z[0]:le!==v||(ve=+z[0],isNaN(ve))?null:ve},_functionNotNull:function(z){for(var le=0;le<z.length;le++)if(7!==this._getTypeName(z[le]))return z[le];return null},_functionSort:function(z){var le=z[0].slice(0);return le.sort(),le},_functionSortBy:function(z){var le=z[0].slice(0);if(0===le.length)return le;var ve=this._interpreter,Se=z[1],Ie=this._getTypeName(ve.visit(Se,le[0]));if([o,v].indexOf(Ie)<0)throw new Error("TypeError");for(var Me=this,Ke=[],Ze=0;Ze<le.length;Ze++)Ke.push([Ze,le[Ze]]);Ke.sort(function(gt,qe){var ke=ve.visit(Se,gt[1]),bt=ve.visit(Se,qe[1]);if(Me._getTypeName(ke)!==Ie)throw new Error("TypeError: expected "+Ie+", received "+Me._getTypeName(ke));if(Me._getTypeName(bt)!==Ie)throw new Error("TypeError: expected "+Ie+", received "+Me._getTypeName(bt));return ke>bt?1:ke<bt?-1:gt[0]-qe[0]});for(var $e=0;$e<Ke.length;$e++)le[$e]=Ke[$e][1];return le},_functionMaxBy:function(z){for(var Me,Ke,ve=z[0],Se=this.createKeyFunction(z[1],[o,v]),Ie=-1/0,Ze=0;Ze<ve.length;Ze++)(Ke=Se(ve[Ze]))>Ie&&(Ie=Ke,Me=ve[Ze]);return Me},_functionMinBy:function(z){for(var Me,Ke,ve=z[0],Se=this.createKeyFunction(z[1],[o,v]),Ie=1/0,Ze=0;Ze<ve.length;Ze++)(Ke=Se(ve[Ze]))<Ie&&(Ie=Ke,Me=ve[Ze]);return Me},createKeyFunction:function(z,le){var ve=this,Se=this._interpreter;return function(Me){var Ke=Se.visit(z,Me);if(le.indexOf(ve._getTypeName(Ke))<0){var Ze="TypeError: expected one of "+le+", received "+ve._getTypeName(Ke);throw new Error(Ze)}return Ke}}},d.tokenize=function ye(z){return(new Oe).tokenize(z)},d.compile=function ue(z){return(new H).parse(z)},d.search=function Ce(z,le){var ve=new H,Se=new U,Ie=new F(Se);Se._interpreter=Ie;var Me=ve.parse(le);return Ie.search(Me,z)},d.strictDeepEqual=l}(L)},12104:ne=>{var L=1e3,d=60*L,s=60*d,S=24*s;function c(o,u,v){if(!(o<u))return o<1.5*u?Math.floor(o/u)+" "+v:Math.ceil(o/u)+" "+v+"s"}ne.exports=function(o,u){u=u||{};var v=typeof o;if("string"===v&&o.length>0)return function t(o){if(!((o=String(o)).length>100)){var u=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(o);if(u){var v=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*v;case"days":case"day":case"d":return v*S;case"hours":case"hour":case"hrs":case"hr":case"h":return v*s;case"minutes":case"minute":case"mins":case"min":case"m":return v*d;case"seconds":case"second":case"secs":case"sec":case"s":return v*L;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return v;default:return}}}}(o);if("number"===v&&!1===isNaN(o))return u.long?function n(o){return c(o,S,"day")||c(o,s,"hour")||c(o,d,"minute")||c(o,L,"second")||o+" ms"}(o):function r(o){return o>=S?Math.round(o/S)+"d":o>=s?Math.round(o/s)+"h":o>=d?Math.round(o/d)+"m":o>=L?Math.round(o/L)+"s":o+"ms"}(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))}},97141:ne=>{"use strict";var L=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;function S(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}ne.exports=function l(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var r={},n=0;n<10;n++)r["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(r).map(function(u){return r[u]}).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(u){o[u]=u}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch{return!1}}()?Object.assign:function(t,r){for(var n,o,c=S(t),u=1;u<arguments.length;u++){for(var v in n=Object(arguments[u]))d.call(n,v)&&(c[v]=n[v]);if(L){o=L(n);for(var m=0;m<o.length;m++)s.call(n,o[m])&&(c[o[m]]=n[o[m]])}}return c}},96425:function(ne,L,d){var s;ne=d.nmd(ne),function(S){"object"==typeof global&&global;var n,c=2147483647,o=36,A=/^xn--/,_=/[^\x20-\x7E]/,I=/[\x2E\u3002\uFF0E\uFF61]/g,B={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,W=String.fromCharCode;function w(oe){throw RangeError(B[oe])}function f(oe,j){for(var re=oe.length,J=[];re--;)J[re]=j(oe[re]);return J}function y(oe,j){var re=oe.split("@"),J="";return re.length>1&&(J=re[0]+"@",oe=re[1]),J+f((oe=oe.replace(I,".")).split("."),j).join(".")}function p(oe){for(var ee,x,j=[],re=0,J=oe.length;re<J;)(ee=oe.charCodeAt(re++))>=55296&&ee<=56319&&re<J?56320==(64512&(x=oe.charCodeAt(re++)))?j.push(((1023&ee)<<10)+(1023&x)+65536):(j.push(ee),re--):j.push(ee);return j}function N(oe){return f(oe,function(j){var re="";return j>65535&&(re+=W((j-=65536)>>>10&1023|55296),j=56320|1023&j),re+W(j)}).join("")}function V(oe){return oe-48<10?oe-22:oe-65<26?oe-65:oe-97<26?oe-97:o}function Q(oe,j){return oe+22+75*(oe<26)-((0!=j)<<5)}function $(oe,j,re){var J=0;for(oe=re?q(oe/700):oe>>1,oe+=q(oe/j);oe>455;J+=o)oe=q(oe/35);return q(J+36*oe/(oe+38))}function ae(oe){var J,b,T,M,G,Z,se,ie,_e,Te,j=[],re=oe.length,ee=0,x=128,h=72;for((b=oe.lastIndexOf("-"))<0&&(b=0),T=0;T<b;++T)oe.charCodeAt(T)>=128&&w("not-basic"),j.push(oe.charCodeAt(T));for(M=b>0?b+1:0;M<re;){for(G=ee,Z=1,se=o;M>=re&&w("invalid-input"),((ie=V(oe.charCodeAt(M++)))>=o||ie>q((c-ee)/Z))&&w("overflow"),ee+=ie*Z,!(ie<(_e=se<=h?1:se>=h+26?26:se-h));se+=o)Z>q(c/(Te=o-_e))&&w("overflow"),Z*=Te;h=$(ee-G,J=j.length+1,0==G),q(ee/J)>c-x&&w("overflow"),x+=q(ee/J),ee%=J,j.splice(ee++,0,x)}return N(j)}function me(oe){var j,re,J,ee,x,h,b,T,M,G,Z,ie,_e,Te,xe,se=[];for(ie=(oe=p(oe)).length,j=128,re=0,x=72,h=0;h<ie;++h)(Z=oe[h])<128&&se.push(W(Z));for(J=ee=se.length,ee&&se.push("-");J<ie;){for(b=c,h=0;h<ie;++h)(Z=oe[h])>=j&&Z<b&&(b=Z);for(b-j>q((c-re)/(_e=J+1))&&w("overflow"),re+=(b-j)*_e,j=b,h=0;h<ie;++h)if((Z=oe[h])<j&&++re>c&&w("overflow"),Z==j){for(T=re,M=o;!(T<(G=M<=x?1:M>=x+26?26:M-x));M+=o)se.push(W(Q(G+(xe=T-G)%(Te=o-G),0))),T=q(xe/Te);se.push(W(Q(T,0))),x=$(re,_e,J==ee),re=0,++J}++re,++j}return se.join("")}n={version:"1.3.2",ucs2:{decode:p,encode:N},decode:ae,encode:me,toASCII:function he(oe){return y(oe,function(j){return _.test(j)?"xn--"+me(j):j})},toUnicode:function X(oe){return y(oe,function(j){return A.test(j)?ae(j.slice(4).toLowerCase()):j})}},void 0!==(s=function(){return n}.call(L,d,L,ne))&&(ne.exports=s)}()},44421:ne=>{"use strict";function L(d,s){return Object.prototype.hasOwnProperty.call(d,s)}ne.exports=function(d,s,S,l){S=S||"=";var t={};if("string"!=typeof d||0===d.length)return t;var r=/\+/g;d=d.split(s=s||"&");var n=1e3;l&&"number"==typeof l.maxKeys&&(n=l.maxKeys);var c=d.length;n>0&&c>n&&(c=n);for(var o=0;o<c;++o){var m,E,R,P,u=d[o].replace(r,"%20"),v=u.indexOf(S);v>=0?(m=u.substr(0,v),E=u.substr(v+1)):(m=u,E=""),R=decodeURIComponent(m),P=decodeURIComponent(E),L(t,R)?Array.isArray(t[R])?t[R].push(P):t[R]=[t[R],P]:t[R]=P}return t}},25264:ne=>{"use strict";var L=function(d){switch(typeof d){case"string":return d;case"boolean":return d?"true":"false";case"number":return isFinite(d)?d:"";default:return""}};ne.exports=function(d,s,S,l){return s=s||"&",S=S||"=",null===d&&(d=void 0),"object"==typeof d?Object.keys(d).map(function(t){var r=encodeURIComponent(L(t))+S;return Array.isArray(d[t])?d[t].map(function(n){return r+encodeURIComponent(L(n))}).join(s):r+encodeURIComponent(L(d[t]))}).join(s):l?encodeURIComponent(L(l))+S+encodeURIComponent(L(d)):""}},46467:(ne,L,d)=>{"use strict";L.decode=L.parse=d(44421),L.encode=L.stringify=d(25264)},58660:(ne,L,d)=>{"use strict";var s=d(97141),S=60103,l=60106;L.Fragment=60107,L.StrictMode=60108,L.Profiler=60114;var t=60109,r=60110,n=60112;L.Suspense=60113;var c=60115,o=60116;if("function"==typeof Symbol&&Symbol.for){var u=Symbol.for;S=u("react.element"),l=u("react.portal"),L.Fragment=u("react.fragment"),L.StrictMode=u("react.strict_mode"),L.Profiler=u("react.profiler"),t=u("react.provider"),r=u("react.context"),n=u("react.forward_ref"),L.Suspense=u("react.suspense"),c=u("react.memo"),o=u("react.lazy")}var v="function"==typeof Symbol&&Symbol.iterator;function E(X){for(var he="https://reactjs.org/docs/error-decoder.html?invariant="+X,oe=1;oe<arguments.length;oe++)he+="&args[]="+encodeURIComponent(arguments[oe]);return"Minified React error #"+X+"; visit "+he+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P={};function D(X,he,oe){this.props=X,this.context=he,this.refs=P,this.updater=oe||R}function A(){}function _(X,he,oe){this.props=X,this.context=he,this.refs=P,this.updater=oe||R}D.prototype.isReactComponent={},D.prototype.setState=function(X,he){if("object"!=typeof X&&"function"!=typeof X&&null!=X)throw Error(E(85));this.updater.enqueueSetState(this,X,he,"setState")},D.prototype.forceUpdate=function(X){this.updater.enqueueForceUpdate(this,X,"forceUpdate")},A.prototype=D.prototype;var I=_.prototype=new A;I.constructor=_,s(I,D.prototype),I.isPureReactComponent=!0;var B={current:null},K=Object.prototype.hasOwnProperty,q={key:!0,ref:!0,__self:!0,__source:!0};function W(X,he,oe){var j,re={},J=null,ee=null;if(null!=he)for(j in void 0!==he.ref&&(ee=he.ref),void 0!==he.key&&(J=""+he.key),he)K.call(he,j)&&!q.hasOwnProperty(j)&&(re[j]=he[j]);var x=arguments.length-2;if(1===x)re.children=oe;else if(1<x){for(var h=Array(x),b=0;b<x;b++)h[b]=arguments[b+2];re.children=h}if(X&&X.defaultProps)for(j in x=X.defaultProps)void 0===re[j]&&(re[j]=x[j]);return{$$typeof:S,type:X,key:J,ref:ee,props:re,_owner:B.current}}function w(X){return"object"==typeof X&&null!==X&&X.$$typeof===S}var y=/\/+/g;function p(X,he){return"object"==typeof X&&null!==X&&null!=X.key?function f(X){var he={"=":"=0",":":"=2"};return"$"+X.replace(/[=:]/g,function(oe){return he[oe]})}(""+X.key):he.toString(36)}function N(X,he,oe,j,re){var J=typeof X;("undefined"===J||"boolean"===J)&&(X=null);var ee=!1;if(null===X)ee=!0;else switch(J){case"string":case"number":ee=!0;break;case"object":switch(X.$$typeof){case S:case l:ee=!0}}if(ee)return re=re(ee=X),X=""===j?"."+p(ee,0):j,Array.isArray(re)?(oe="",null!=X&&(oe=X.replace(y,"$&/")+"/"),N(re,he,oe,"",function(b){return b})):null!=re&&(w(re)&&(re=function O(X,he){return{$$typeof:S,type:X.type,key:he,ref:X.ref,props:X.props,_owner:X._owner}}(re,oe+(!re.key||ee&&ee.key===re.key?"":(""+re.key).replace(y,"$&/")+"/")+X)),he.push(re)),1;if(ee=0,j=""===j?".":j+":",Array.isArray(X))for(var x=0;x<X.length;x++){var h=j+p(J=X[x],x);ee+=N(J,he,oe,h,re)}else if(h=function m(X){return null===X||"object"!=typeof X?null:"function"==typeof(X=v&&X[v]||X["@@iterator"])?X:null}(X),"function"==typeof h)for(X=h.call(X),x=0;!(J=X.next()).done;)ee+=N(J=J.value,he,oe,h=j+p(J,x++),re);else if("object"===J)throw he=""+X,Error(E(31,"[object Object]"===he?"object with keys {"+Object.keys(X).join(", ")+"}":he));return ee}function V(X,he,oe){if(null==X)return X;var j=[],re=0;return N(X,j,"","",function(J){return he.call(oe,J,re++)}),j}function Q(X){if(-1===X._status){var he=X._result;he=he(),X._status=0,X._result=he,he.then(function(oe){0===X._status&&(oe=oe.default,X._status=1,X._result=oe)},function(oe){0===X._status&&(X._status=2,X._result=oe)})}if(1===X._status)return X._result;throw X._result}var $={current:null};function ae(){var X=$.current;if(null===X)throw Error(E(321));return X}var me={ReactCurrentDispatcher:$,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:B,IsSomeRendererActing:{current:!1},assign:s};L.Children={map:V,forEach:function(X,he,oe){V(X,function(){he.apply(this,arguments)},oe)},count:function(X){var he=0;return V(X,function(){he++}),he},toArray:function(X){return V(X,function(he){return he})||[]},only:function(X){if(!w(X))throw Error(E(143));return X}},L.Component=D,L.PureComponent=_,L.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=me,L.cloneElement=function(X,he,oe){if(null==X)throw Error(E(267,X));var j=s({},X.props),re=X.key,J=X.ref,ee=X._owner;if(null!=he){if(void 0!==he.ref&&(J=he.ref,ee=B.current),void 0!==he.key&&(re=""+he.key),X.type&&X.type.defaultProps)var x=X.type.defaultProps;for(h in he)K.call(he,h)&&!q.hasOwnProperty(h)&&(j[h]=void 0===he[h]&&void 0!==x?x[h]:he[h])}var h=arguments.length-2;if(1===h)j.children=oe;else if(1<h){x=Array(h);for(var b=0;b<h;b++)x[b]=arguments[b+2];j.children=x}return{$$typeof:S,type:X.type,key:re,ref:J,props:j,_owner:ee}},L.createContext=function(X,he){return void 0===he&&(he=null),(X={$$typeof:r,_calculateChangedBits:he,_currentValue:X,_currentValue2:X,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:t,_context:X},X.Consumer=X},L.createElement=W,L.createFactory=function(X){var he=W.bind(null,X);return he.type=X,he},L.createRef=function(){return{current:null}},L.forwardRef=function(X){return{$$typeof:n,render:X}},L.isValidElement=w,L.lazy=function(X){return{$$typeof:o,_payload:{_status:-1,_result:X},_init:Q}},L.memo=function(X,he){return{$$typeof:c,type:X,compare:void 0===he?null:he}},L.useCallback=function(X,he){return ae().useCallback(X,he)},L.useContext=function(X,he){return ae().useContext(X,he)},L.useDebugValue=function(){},L.useEffect=function(X,he){return ae().useEffect(X,he)},L.useImperativeHandle=function(X,he,oe){return ae().useImperativeHandle(X,he,oe)},L.useLayoutEffect=function(X,he){return ae().useLayoutEffect(X,he)},L.useMemo=function(X,he){return ae().useMemo(X,he)},L.useReducer=function(X,he,oe){return ae().useReducer(X,he,oe)},L.useRef=function(X){return ae().useRef(X)},L.useState=function(X){return ae().useState(X)},L.version="17.0.2"},26064:(ne,L,d)=>{"use strict";ne.exports=d(58660)},54983:(ne,L,d)=>{"use strict";var s=d(96425),S=d(98198);function l(){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}L.parse=B,L.resolve=function q(O,w){return B(O,!1,!0).resolve(w)},L.resolveObject=function W(O,w){return O?B(O,!1,!0).resolveObject(w):w},L.format=function K(O){return S.isString(O)&&(O=B(O)),O instanceof l?O.format():l.prototype.format.call(O)},L.Url=l;var t=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,n=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(o),v=["%","/","?",";","#"].concat(u),m=["/","?","#"],R=/^[+a-z0-9A-Z_-]{0,63}$/,P=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,D={javascript:!0,"javascript:":!0},A={javascript:!0,"javascript:":!0},_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},I=d(46467);function B(O,w,f){if(O&&S.isObject(O)&&O instanceof l)return O;var y=new l;return y.parse(O,w,f),y}l.prototype.parse=function(O,w,f){if(!S.isString(O))throw new TypeError("Parameter 'url' must be a string, not "+typeof O);var y=O.indexOf("?"),p=-1!==y&&y<O.indexOf("#")?"?":"#",N=O.split(p);N[0]=N[0].replace(/\\/g,"/");var Q=O=N.join(p);if(Q=Q.trim(),!f&&1===O.split("#").length){var $=n.exec(Q);if($)return this.path=Q,this.href=Q,this.pathname=$[1],$[2]?(this.search=$[2],this.query=w?I.parse(this.search.substr(1)):this.search.substr(1)):w&&(this.search="",this.query={}),this}var ae=t.exec(Q);if(ae){var me=(ae=ae[0]).toLowerCase();this.protocol=me,Q=Q.substr(ae.length)}if(f||ae||Q.match(/^\/\/[^@\/]+@[^@\/]+/)){var X="//"===Q.substr(0,2);X&&(!ae||!A[ae])&&(Q=Q.substr(2),this.slashes=!0)}if(!A[ae]&&(X||ae&&!_[ae])){for(var he=-1,oe=0;oe<m.length;oe++)-1!==(j=Q.indexOf(m[oe]))&&(-1===he||j<he)&&(he=j);var re,J;for(-1!==(J=-1===he?Q.lastIndexOf("@"):Q.lastIndexOf("@",he))&&(re=Q.slice(0,J),Q=Q.slice(J+1),this.auth=decodeURIComponent(re)),he=-1,oe=0;oe<v.length;oe++){var j;-1!==(j=Q.indexOf(v[oe]))&&(-1===he||j<he)&&(he=j)}-1===he&&(he=Q.length),this.host=Q.slice(0,he),Q=Q.slice(he),this.parseHost(),this.hostname=this.hostname||"";var ee="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!ee)for(var x=this.hostname.split(/\./),h=(oe=0,x.length);oe<h;oe++){var b=x[oe];if(b&&!b.match(R)){for(var T="",M=0,G=b.length;M<G;M++)b.charCodeAt(M)>127?T+="x":T+=b[M];if(!T.match(R)){var Z=x.slice(0,oe),se=x.slice(oe+1),ie=b.match(P);ie&&(Z.push(ie[1]),se.unshift(ie[2])),se.length&&(Q="/"+se.join(".")+Q),this.hostname=Z.join(".");break}}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),ee||(this.hostname=s.toASCII(this.hostname)),this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,ee&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==Q[0]&&(Q="/"+Q))}if(!D[me])for(oe=0,h=u.length;oe<h;oe++){var xe=u[oe];if(-1!==Q.indexOf(xe)){var Oe=encodeURIComponent(xe);Oe===xe&&(Oe=escape(xe)),Q=Q.split(xe).join(Oe)}}var Re=Q.indexOf("#");-1!==Re&&(this.hash=Q.substr(Re),Q=Q.slice(0,Re));var H=Q.indexOf("?");return-1!==H?(this.search=Q.substr(H),this.query=Q.substr(H+1),w&&(this.query=I.parse(this.query)),Q=Q.slice(0,H)):w&&(this.search="",this.query={}),Q&&(this.pathname=Q),_[me]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(this.search||"")),this.href=this.format(),this},l.prototype.format=function(){var O=this.auth||"";O&&(O=(O=encodeURIComponent(O)).replace(/%3A/i,":"),O+="@");var w=this.protocol||"",f=this.pathname||"",y=this.hash||"",p=!1,N="";this.host?p=O+this.host:this.hostname&&(p=O+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(p+=":"+this.port)),this.query&&S.isObject(this.query)&&Object.keys(this.query).length&&(N=I.stringify(this.query));var V=this.search||N&&"?"+N||"";return w&&":"!==w.substr(-1)&&(w+=":"),this.slashes||(!w||_[w])&&!1!==p?(p="//"+(p||""),f&&"/"!==f.charAt(0)&&(f="/"+f)):p||(p=""),y&&"#"!==y.charAt(0)&&(y="#"+y),V&&"?"!==V.charAt(0)&&(V="?"+V),w+p+(f=f.replace(/[?#]/g,function(Q){return encodeURIComponent(Q)}))+(V=V.replace("#","%23"))+y},l.prototype.resolve=function(O){return this.resolveObject(B(O,!1,!0)).format()},l.prototype.resolveObject=function(O){if(S.isString(O)){var w=new l;w.parse(O,!1,!0),O=w}for(var f=new l,y=Object.keys(this),p=0;p<y.length;p++){var N=y[p];f[N]=this[N]}if(f.hash=O.hash,""===O.href)return f.href=f.format(),f;if(O.slashes&&!O.protocol){for(var V=Object.keys(O),Q=0;Q<V.length;Q++){var $=V[Q];"protocol"!==$&&(f[$]=O[$])}return _[f.protocol]&&f.hostname&&!f.pathname&&(f.path=f.pathname="/"),f.href=f.format(),f}if(O.protocol&&O.protocol!==f.protocol){if(!_[O.protocol]){for(var ae=Object.keys(O),me=0;me<ae.length;me++){var X=ae[me];f[X]=O[X]}return f.href=f.format(),f}if(f.protocol=O.protocol,O.host||A[O.protocol])f.pathname=O.pathname;else{for(var h=(O.pathname||"").split("/");h.length&&!(O.host=h.shift()););O.host||(O.host=""),O.hostname||(O.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),f.pathname=h.join("/")}return f.search=O.search,f.query=O.query,f.host=O.host||"",f.auth=O.auth,f.hostname=O.hostname||O.host,f.port=O.port,(f.pathname||f.search)&&(f.path=(f.pathname||"")+(f.search||"")),f.slashes=f.slashes||O.slashes,f.href=f.format(),f}var j=f.pathname&&"/"===f.pathname.charAt(0),re=O.host||O.pathname&&"/"===O.pathname.charAt(0),J=re||j||f.host&&O.pathname,ee=J,x=f.pathname&&f.pathname.split("/")||[],b=(h=O.pathname&&O.pathname.split("/")||[],f.protocol&&!_[f.protocol]);if(b&&(f.hostname="",f.port=null,f.host&&(""===x[0]?x[0]=f.host:x.unshift(f.host)),f.host="",O.protocol&&(O.hostname=null,O.port=null,O.host&&(""===h[0]?h[0]=O.host:h.unshift(O.host)),O.host=null),J=J&&(""===h[0]||""===x[0])),re)f.host=O.host||""===O.host?O.host:f.host,f.hostname=O.hostname||""===O.hostname?O.hostname:f.hostname,f.search=O.search,f.query=O.query,x=h;else if(h.length)x||(x=[]),x.pop(),x=x.concat(h),f.search=O.search,f.query=O.query;else if(!S.isNullOrUndefined(O.search))return b&&(f.hostname=f.host=x.shift(),(T=!!(f.host&&f.host.indexOf("@")>0)&&f.host.split("@"))&&(f.auth=T.shift(),f.host=f.hostname=T.shift())),f.search=O.search,f.query=O.query,(!S.isNull(f.pathname)||!S.isNull(f.search))&&(f.path=(f.pathname?f.pathname:"")+(f.search?f.search:"")),f.href=f.format(),f;if(!x.length)return f.pathname=null,f.path=f.search?"/"+f.search:null,f.href=f.format(),f;for(var M=x.slice(-1)[0],G=(f.host||O.host||x.length>1)&&("."===M||".."===M)||""===M,Z=0,se=x.length;se>=0;se--)"."===(M=x[se])?x.splice(se,1):".."===M?(x.splice(se,1),Z++):Z&&(x.splice(se,1),Z--);if(!J&&!ee)for(;Z--;Z)x.unshift("..");J&&""!==x[0]&&(!x[0]||"/"!==x[0].charAt(0))&&x.unshift(""),G&&"/"!==x.join("/").substr(-1)&&x.push("");var T,ie=""===x[0]||x[0]&&"/"===x[0].charAt(0);return b&&(f.hostname=f.host=ie?"":x.length?x.shift():"",(T=!!(f.host&&f.host.indexOf("@")>0)&&f.host.split("@"))&&(f.auth=T.shift(),f.host=f.hostname=T.shift())),(J=J||f.host&&x.length)&&!ie&&x.unshift(""),x.length?f.pathname=x.join("/"):(f.pathname=null,f.path=null),(!S.isNull(f.pathname)||!S.isNull(f.search))&&(f.path=(f.pathname?f.pathname:"")+(f.search?f.search:"")),f.auth=O.auth||f.auth,f.slashes=f.slashes||O.slashes,f.href=f.format(),f},l.prototype.parseHost=function(){var O=this.host,w=r.exec(O);w&&(":"!==(w=w[0])&&(this.port=w.substr(1)),O=O.substr(0,O.length-w.length)),O&&(this.hostname=O)}},98198:ne=>{"use strict";ne.exports={isString:function(L){return"string"==typeof L},isObject:function(L){return"object"==typeof L&&null!==L},isNull:function(L){return null===L},isNullOrUndefined:function(L){return null==L}}},75189:ne=>{ne.exports=function(d){return d&&"object"==typeof d&&"function"==typeof d.copy&&"function"==typeof d.fill&&"function"==typeof d.readUInt8}},57920:(ne,L,d)=>{"use strict";var s=d(36185),S=d(14192),l=d(77985),t=d(87887);function r(H){return H.call.bind(H)}var n=typeof BigInt<"u",c=typeof Symbol<"u",o=r(Object.prototype.toString),u=r(Number.prototype.valueOf),v=r(String.prototype.valueOf),m=r(Boolean.prototype.valueOf);if(n)var E=r(BigInt.prototype.valueOf);if(c)var R=r(Symbol.prototype.valueOf);function P(H,F){if("object"!=typeof H)return!1;try{return F(H),!0}catch{return!1}}function N(H){return"[object Map]"===o(H)}function Q(H){return"[object Set]"===o(H)}function ae(H){return"[object WeakMap]"===o(H)}function X(H){return"[object WeakSet]"===o(H)}function oe(H){return"[object ArrayBuffer]"===o(H)}function j(H){return!(typeof ArrayBuffer>"u")&&(oe.working?oe(H):H instanceof ArrayBuffer)}function re(H){return"[object DataView]"===o(H)}function J(H){return!(typeof DataView>"u")&&(re.working?re(H):H instanceof DataView)}L.isArgumentsObject=s,L.isGeneratorFunction=S,L.isTypedArray=t,L.isPromise=function D(H){return typeof Promise<"u"&&H instanceof Promise||null!==H&&"object"==typeof H&&"function"==typeof H.then&&"function"==typeof H.catch},L.isArrayBufferView=function A(H){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(H):t(H)||J(H)},L.isUint8Array=function _(H){return"Uint8Array"===l(H)},L.isUint8ClampedArray=function I(H){return"Uint8ClampedArray"===l(H)},L.isUint16Array=function B(H){return"Uint16Array"===l(H)},L.isUint32Array=function K(H){return"Uint32Array"===l(H)},L.isInt8Array=function q(H){return"Int8Array"===l(H)},L.isInt16Array=function W(H){return"Int16Array"===l(H)},L.isInt32Array=function O(H){return"Int32Array"===l(H)},L.isFloat32Array=function w(H){return"Float32Array"===l(H)},L.isFloat64Array=function f(H){return"Float64Array"===l(H)},L.isBigInt64Array=function y(H){return"BigInt64Array"===l(H)},L.isBigUint64Array=function p(H){return"BigUint64Array"===l(H)},N.working=typeof Map<"u"&&N(new Map),L.isMap=function V(H){return!(typeof Map>"u")&&(N.working?N(H):H instanceof Map)},Q.working=typeof Set<"u"&&Q(new Set),L.isSet=function $(H){return!(typeof Set>"u")&&(Q.working?Q(H):H instanceof Set)},ae.working=typeof WeakMap<"u"&&ae(new WeakMap),L.isWeakMap=function me(H){return!(typeof WeakMap>"u")&&(ae.working?ae(H):H instanceof WeakMap)},X.working=typeof WeakSet<"u"&&X(new WeakSet),L.isWeakSet=function he(H){return X(H)},oe.working=typeof ArrayBuffer<"u"&&oe(new ArrayBuffer),L.isArrayBuffer=j,re.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&re(new DataView(new ArrayBuffer(1),0,1)),L.isDataView=J;var ee=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function x(H){return"[object SharedArrayBuffer]"===o(H)}function h(H){return!(typeof ee>"u")&&(typeof x.working>"u"&&(x.working=x(new ee)),x.working?x(H):H instanceof ee)}function se(H){return P(H,u)}function ie(H){return P(H,v)}function _e(H){return P(H,m)}function Te(H){return n&&P(H,E)}function xe(H){return c&&P(H,R)}L.isSharedArrayBuffer=h,L.isAsyncFunction=function b(H){return"[object AsyncFunction]"===o(H)},L.isMapIterator=function T(H){return"[object Map Iterator]"===o(H)},L.isSetIterator=function M(H){return"[object Set Iterator]"===o(H)},L.isGeneratorObject=function G(H){return"[object Generator]"===o(H)},L.isWebAssemblyCompiledModule=function Z(H){return"[object WebAssembly.Module]"===o(H)},L.isNumberObject=se,L.isStringObject=ie,L.isBooleanObject=_e,L.isBigIntObject=Te,L.isSymbolObject=xe,L.isBoxedPrimitive=function Oe(H){return se(H)||ie(H)||_e(H)||Te(H)||xe(H)},L.isAnyArrayBuffer=function Re(H){return typeof Uint8Array<"u"&&(j(H)||h(H))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(H){Object.defineProperty(L,H,{enumerable:!1,value:function(){throw new Error(H+" is not supported in userland")}})})},89174:(ne,L,d)=>{var s=Object.getOwnPropertyDescriptors||function(J){for(var ee=Object.keys(J),x={},h=0;h<ee.length;h++)x[ee[h]]=Object.getOwnPropertyDescriptor(J,ee[h]);return x},S=/%[sdj%]/g;L.format=function(re){if(!q(re)){for(var J=[],ee=0;ee<arguments.length;ee++)J.push(n(arguments[ee]));return J.join(" ")}ee=1;for(var x=arguments,h=x.length,b=String(re).replace(S,function(M){if("%%"===M)return"%";if(ee>=h)return M;switch(M){case"%s":return String(x[ee++]);case"%d":return Number(x[ee++]);case"%j":try{return JSON.stringify(x[ee++])}catch{return"[Circular]"}default:return M}}),T=x[ee];ee<h;T=x[++ee])I(T)||!f(T)?b+=" "+T:b+=" "+n(T);return b},L.deprecate=function(re,J){if(typeof process<"u"&&!0===process.noDeprecation)return re;if(typeof process>"u")return function(){return L.deprecate(re,J).apply(this,arguments)};var ee=!1;return function x(){if(!ee){if(process.throwDeprecation)throw new Error(J);process.traceDeprecation?console.trace(J):console.error(J),ee=!0}return re.apply(this,arguments)}};var l={},t=/^$/;if(process.env.NODE_DEBUG){var r=process.env.NODE_DEBUG;r=r.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),t=new RegExp("^"+r+"$","i")}function n(re,J){var ee={seen:[],stylize:o};return arguments.length>=3&&(ee.depth=arguments[2]),arguments.length>=4&&(ee.colors=arguments[3]),_(J)?ee.showHidden=J:J&&L._extend(ee,J),O(ee.showHidden)&&(ee.showHidden=!1),O(ee.depth)&&(ee.depth=2),O(ee.colors)&&(ee.colors=!1),O(ee.customInspect)&&(ee.customInspect=!0),ee.colors&&(ee.stylize=c),v(ee,re,ee.depth)}function c(re,J){var ee=n.styles[J];return ee?"\x1b["+n.colors[ee][0]+"m"+re+"\x1b["+n.colors[ee][1]+"m":re}function o(re,J){return re}function v(re,J,ee){if(re.customInspect&&J&&N(J.inspect)&&J.inspect!==L.inspect&&(!J.constructor||J.constructor.prototype!==J)){var x=J.inspect(ee,re);return q(x)||(x=v(re,x,ee)),x}var h=function m(re,J){if(O(J))return re.stylize("undefined","undefined");if(q(J)){var ee="'"+JSON.stringify(J).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return re.stylize(ee,"string")}return K(J)?re.stylize(""+J,"number"):_(J)?re.stylize(""+J,"boolean"):I(J)?re.stylize("null","null"):void 0}(re,J);if(h)return h;var b=Object.keys(J),T=function u(re){var J={};return re.forEach(function(ee,x){J[ee]=!0}),J}(b);if(re.showHidden&&(b=Object.getOwnPropertyNames(J)),p(J)&&(b.indexOf("message")>=0||b.indexOf("description")>=0))return E(J);if(0===b.length){if(N(J))return re.stylize("[Function"+(J.name?": "+J.name:"")+"]","special");if(w(J))return re.stylize(RegExp.prototype.toString.call(J),"regexp");if(y(J))return re.stylize(Date.prototype.toString.call(J),"date");if(p(J))return E(J)}var _e,G="",Z=!1,se=["{","}"];return A(J)&&(Z=!0,se=["[","]"]),N(J)&&(G=" [Function"+(J.name?": "+J.name:"")+"]"),w(J)&&(G=" "+RegExp.prototype.toString.call(J)),y(J)&&(G=" "+Date.prototype.toUTCString.call(J)),p(J)&&(G=" "+E(J)),0!==b.length||Z&&0!=J.length?ee<0?w(J)?re.stylize(RegExp.prototype.toString.call(J),"regexp"):re.stylize("[Object]","special"):(re.seen.push(J),_e=Z?function R(re,J,ee,x,h){for(var b=[],T=0,M=J.length;T<M;++T)X(J,String(T))?b.push(P(re,J,ee,x,String(T),!0)):b.push("");return h.forEach(function(G){G.match(/^\d+$/)||b.push(P(re,J,ee,x,G,!0))}),b}(re,J,ee,T,b):b.map(function(Te){return P(re,J,ee,T,Te,Z)}),re.seen.pop(),function D(re,J,ee){var h=re.reduce(function(b,T){return T.indexOf("\n"),b+T.replace(/\u001b\[\d\d?m/g,"").length+1},0);return h>60?ee[0]+(""===J?"":J+"\n ")+" "+re.join(",\n ")+" "+ee[1]:ee[0]+J+" "+re.join(", ")+" "+ee[1]}(_e,G,se)):se[0]+G+se[1]}function E(re){return"["+Error.prototype.toString.call(re)+"]"}function P(re,J,ee,x,h,b){var T,M,G;if((G=Object.getOwnPropertyDescriptor(J,h)||{value:J[h]}).get?M=re.stylize(G.set?"[Getter/Setter]":"[Getter]","special"):G.set&&(M=re.stylize("[Setter]","special")),X(x,h)||(T="["+h+"]"),M||(re.seen.indexOf(G.value)<0?(M=I(ee)?v(re,G.value,null):v(re,G.value,ee-1)).indexOf("\n")>-1&&(M=b?M.split("\n").map(function(Z){return" "+Z}).join("\n").substr(2):"\n"+M.split("\n").map(function(Z){return" "+Z}).join("\n")):M=re.stylize("[Circular]","special")),O(T)){if(b&&h.match(/^\d+$/))return M;(T=JSON.stringify(""+h)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(T=T.substr(1,T.length-2),T=re.stylize(T,"name")):(T=T.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),T=re.stylize(T,"string"))}return T+": "+M}function A(re){return Array.isArray(re)}function _(re){return"boolean"==typeof re}function I(re){return null===re}function K(re){return"number"==typeof re}function q(re){return"string"==typeof re}function O(re){return void 0===re}function w(re){return f(re)&&"[object RegExp]"===Q(re)}function f(re){return"object"==typeof re&&null!==re}function y(re){return f(re)&&"[object Date]"===Q(re)}function p(re){return f(re)&&("[object Error]"===Q(re)||re instanceof Error)}function N(re){return"function"==typeof re}function Q(re){return Object.prototype.toString.call(re)}function $(re){return re<10?"0"+re.toString(10):re.toString(10)}L.debuglog=function(re){if(re=re.toUpperCase(),!l[re])if(t.test(re)){var J=process.pid;l[re]=function(){var ee=L.format.apply(L,arguments);console.error("%s %d: %s",re,J,ee)}}else l[re]=function(){};return l[re]},L.inspect=n,n.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]},n.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},L.types=d(57920),L.isArray=A,L.isBoolean=_,L.isNull=I,L.isNullOrUndefined=function B(re){return null==re},L.isNumber=K,L.isString=q,L.isSymbol=function W(re){return"symbol"==typeof re},L.isUndefined=O,L.isRegExp=w,L.types.isRegExp=w,L.isObject=f,L.isDate=y,L.types.isDate=y,L.isError=p,L.types.isNativeError=p,L.isFunction=N,L.isPrimitive=function V(re){return null===re||"boolean"==typeof re||"number"==typeof re||"string"==typeof re||"symbol"==typeof re||typeof re>"u"},L.isBuffer=d(75189);var ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function me(){var re=new Date,J=[$(re.getHours()),$(re.getMinutes()),$(re.getSeconds())].join(":");return[re.getDate(),ae[re.getMonth()],J].join(" ")}function X(re,J){return Object.prototype.hasOwnProperty.call(re,J)}L.log=function(){console.log("%s - %s",me(),L.format.apply(L,arguments))},L.inherits=d(17827),L._extend=function(re,J){if(!J||!f(J))return re;for(var ee=Object.keys(J),x=ee.length;x--;)re[ee[x]]=J[ee[x]];return re};var he=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function oe(re,J){if(!re){var ee=new Error("Promise was rejected with a falsy value");ee.reason=re,re=ee}return J(re)}L.promisify=function(J){if("function"!=typeof J)throw new TypeError('The "original" argument must be of type Function');if(he&&J[he]){var ee;if("function"!=typeof(ee=J[he]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ee,he,{value:ee,enumerable:!1,writable:!1,configurable:!0}),ee}function ee(){for(var x,h,b=new Promise(function(G,Z){x=G,h=Z}),T=[],M=0;M<arguments.length;M++)T.push(arguments[M]);T.push(function(G,Z){G?h(G):x(Z)});try{J.apply(this,T)}catch(G){h(G)}return b}return Object.setPrototypeOf(ee,Object.getPrototypeOf(J)),he&&Object.defineProperty(ee,he,{value:ee,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(ee,s(J))},L.promisify.custom=he,L.callbackify=function j(re){if("function"!=typeof re)throw new TypeError('The "original" argument must be of type Function');function J(){for(var ee=[],x=0;x<arguments.length;x++)ee.push(arguments[x]);var h=ee.pop();if("function"!=typeof h)throw new TypeError("The last argument must be of type Function");var b=this,T=function(){return h.apply(b,arguments)};re.apply(this,ee).then(function(M){process.nextTick(T.bind(null,null,M))},function(M){process.nextTick(oe.bind(null,M,T))})}return Object.setPrototypeOf(J,Object.getPrototypeOf(re)),Object.defineProperties(J,s(re)),J}},43762:(ne,L,d)=>{"use strict";d.r(L),d.d(L,{NIL:()=>re,parse:()=>m,stringify:()=>S.Z,v1:()=>o,v3:()=>Q,v4:()=>$.Z,v5:()=>j,validate:()=>u.Z,version:()=>ee});var l,t,s=d(79348),S=d(2385),r=0,n=0;const o=function c(x,h,b){var T=h&&b||0,M=h||new Array(16),G=(x=x||{}).node||l,Z=void 0!==x.clockseq?x.clockseq:t;if(null==G||null==Z){var se=x.random||(x.rng||s.Z)();null==G&&(G=l=[1|se[0],se[1],se[2],se[3],se[4],se[5]]),null==Z&&(Z=t=16383&(se[6]<<8|se[7]))}var ie=void 0!==x.msecs?x.msecs:Date.now(),_e=void 0!==x.nsecs?x.nsecs:n+1,Te=ie-r+(_e-n)/1e4;if(Te<0&&void 0===x.clockseq&&(Z=Z+1&16383),(Te<0||ie>r)&&void 0===x.nsecs&&(_e=0),_e>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");r=ie,n=_e,t=Z;var xe=(1e4*(268435455&(ie+=122192928e5))+_e)%4294967296;M[T++]=xe>>>24&255,M[T++]=xe>>>16&255,M[T++]=xe>>>8&255,M[T++]=255&xe;var Oe=ie/4294967296*1e4&268435455;M[T++]=Oe>>>8&255,M[T++]=255&Oe,M[T++]=Oe>>>24&15|16,M[T++]=Oe>>>16&255,M[T++]=Z>>>8|128,M[T++]=255&Z;for(var Re=0;Re<6;++Re)M[T+Re]=G[Re];return h||(0,S.Z)(M)};var u=d(18003);const m=function v(x){if(!(0,u.Z)(x))throw TypeError("Invalid UUID");var h,b=new Uint8Array(16);return b[0]=(h=parseInt(x.slice(0,8),16))>>>24,b[1]=h>>>16&255,b[2]=h>>>8&255,b[3]=255&h,b[4]=(h=parseInt(x.slice(9,13),16))>>>8,b[5]=255&h,b[6]=(h=parseInt(x.slice(14,18),16))>>>8,b[7]=255&h,b[8]=(h=parseInt(x.slice(19,23),16))>>>8,b[9]=255&h,b[10]=(h=parseInt(x.slice(24,36),16))/1099511627776&255,b[11]=h/4294967296&255,b[12]=h>>>24&255,b[13]=h>>>16&255,b[14]=h>>>8&255,b[15]=255&h,b};function D(x,h,b){function T(M,G,Z,se){if("string"==typeof M&&(M=function E(x){x=unescape(encodeURIComponent(x));for(var h=[],b=0;b<x.length;++b)h.push(x.charCodeAt(b));return h}(M)),"string"==typeof G&&(G=m(G)),16!==G.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var ie=new Uint8Array(16+M.length);if(ie.set(G),ie.set(M,G.length),(ie=b(ie))[6]=15&ie[6]|h,ie[8]=63&ie[8]|128,Z){se=se||0;for(var _e=0;_e<16;++_e)Z[se+_e]=ie[_e];return Z}return(0,S.Z)(ie)}try{T.name=x}catch{}return T.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",T.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",T}function I(x){return 14+(x+64>>>9<<4)+1}function q(x,h){var b=(65535&x)+(65535&h);return(x>>16)+(h>>16)+(b>>16)<<16|65535&b}function O(x,h,b,T,M,G){return q(function W(x,h){return x<<h|x>>>32-h}(q(q(h,x),q(T,G)),M),b)}function w(x,h,b,T,M,G,Z){return O(h&b|~h&T,x,h,M,G,Z)}function f(x,h,b,T,M,G,Z){return O(h&T|b&~T,x,h,M,G,Z)}function y(x,h,b,T,M,G,Z){return O(h^b^T,x,h,M,G,Z)}function p(x,h,b,T,M,G,Z){return O(b^(h|~T),x,h,M,G,Z)}const Q=D("v3",48,function A(x){if("string"==typeof x){var h=unescape(encodeURIComponent(x));x=new Uint8Array(h.length);for(var b=0;b<h.length;++b)x[b]=h.charCodeAt(b)}return function _(x){for(var h=[],b=32*x.length,T="0123456789abcdef",M=0;M<b;M+=8){var G=x[M>>5]>>>M%32&255,Z=parseInt(T.charAt(G>>>4&15)+T.charAt(15&G),16);h.push(Z)}return h}(function B(x,h){x[h>>5]|=128<<h%32,x[I(h)-1]=h;for(var b=1732584193,T=-271733879,M=-1732584194,G=271733878,Z=0;Z<x.length;Z+=16){var se=b,ie=T,_e=M,Te=G;b=w(b,T,M,G,x[Z],7,-680876936),G=w(G,b,T,M,x[Z+1],12,-389564586),M=w(M,G,b,T,x[Z+2],17,606105819),T=w(T,M,G,b,x[Z+3],22,-1044525330),b=w(b,T,M,G,x[Z+4],7,-176418897),G=w(G,b,T,M,x[Z+5],12,1200080426),M=w(M,G,b,T,x[Z+6],17,-1473231341),T=w(T,M,G,b,x[Z+7],22,-45705983),b=w(b,T,M,G,x[Z+8],7,1770035416),G=w(G,b,T,M,x[Z+9],12,-1958414417),M=w(M,G,b,T,x[Z+10],17,-42063),T=w(T,M,G,b,x[Z+11],22,-1990404162),b=w(b,T,M,G,x[Z+12],7,1804603682),G=w(G,b,T,M,x[Z+13],12,-40341101),M=w(M,G,b,T,x[Z+14],17,-1502002290),b=f(b,T=w(T,M,G,b,x[Z+15],22,1236535329),M,G,x[Z+1],5,-165796510),G=f(G,b,T,M,x[Z+6],9,-1069501632),M=f(M,G,b,T,x[Z+11],14,643717713),T=f(T,M,G,b,x[Z],20,-373897302),b=f(b,T,M,G,x[Z+5],5,-701558691),G=f(G,b,T,M,x[Z+10],9,38016083),M=f(M,G,b,T,x[Z+15],14,-660478335),T=f(T,M,G,b,x[Z+4],20,-405537848),b=f(b,T,M,G,x[Z+9],5,568446438),G=f(G,b,T,M,x[Z+14],9,-1019803690),M=f(M,G,b,T,x[Z+3],14,-187363961),T=f(T,M,G,b,x[Z+8],20,1163531501),b=f(b,T,M,G,x[Z+13],5,-1444681467),G=f(G,b,T,M,x[Z+2],9,-51403784),M=f(M,G,b,T,x[Z+7],14,1735328473),b=y(b,T=f(T,M,G,b,x[Z+12],20,-1926607734),M,G,x[Z+5],4,-378558),G=y(G,b,T,M,x[Z+8],11,-2022574463),M=y(M,G,b,T,x[Z+11],16,1839030562),T=y(T,M,G,b,x[Z+14],23,-35309556),b=y(b,T,M,G,x[Z+1],4,-1530992060),G=y(G,b,T,M,x[Z+4],11,1272893353),M=y(M,G,b,T,x[Z+7],16,-155497632),T=y(T,M,G,b,x[Z+10],23,-1094730640),b=y(b,T,M,G,x[Z+13],4,681279174),G=y(G,b,T,M,x[Z],11,-358537222),M=y(M,G,b,T,x[Z+3],16,-722521979),T=y(T,M,G,b,x[Z+6],23,76029189),b=y(b,T,M,G,x[Z+9],4,-640364487),G=y(G,b,T,M,x[Z+12],11,-421815835),M=y(M,G,b,T,x[Z+15],16,530742520),b=p(b,T=y(T,M,G,b,x[Z+2],23,-995338651),M,G,x[Z],6,-198630844),G=p(G,b,T,M,x[Z+7],10,1126891415),M=p(M,G,b,T,x[Z+14],15,-1416354905),T=p(T,M,G,b,x[Z+5],21,-57434055),b=p(b,T,M,G,x[Z+12],6,1700485571),G=p(G,b,T,M,x[Z+3],10,-1894986606),M=p(M,G,b,T,x[Z+10],15,-1051523),T=p(T,M,G,b,x[Z+1],21,-2054922799),b=p(b,T,M,G,x[Z+8],6,1873313359),G=p(G,b,T,M,x[Z+15],10,-30611744),M=p(M,G,b,T,x[Z+6],15,-1560198380),T=p(T,M,G,b,x[Z+13],21,1309151649),b=p(b,T,M,G,x[Z+4],6,-145523070),G=p(G,b,T,M,x[Z+11],10,-1120210379),M=p(M,G,b,T,x[Z+2],15,718787259),T=p(T,M,G,b,x[Z+9],21,-343485551),b=q(b,se),T=q(T,ie),M=q(M,_e),G=q(G,Te)}return[b,T,M,G]}(function K(x){if(0===x.length)return[];for(var h=8*x.length,b=new Uint32Array(I(h)),T=0;T<h;T+=8)b[T>>5]|=(255&x[T/8])<<T%32;return b}(x),8*x.length))});var $=d(67024);function ae(x,h,b,T){switch(x){case 0:return h&b^~h&T;case 1:case 3:return h^b^T;case 2:return h&b^h&T^b&T}}function me(x,h){return x<<h|x>>>32-h}const j=D("v5",80,function X(x){var h=[1518500249,1859775393,2400959708,3395469782],b=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof x){var T=unescape(encodeURIComponent(x));x=[];for(var M=0;M<T.length;++M)x.push(T.charCodeAt(M))}else Array.isArray(x)||(x=Array.prototype.slice.call(x));x.push(128);for(var Z=Math.ceil((x.length/4+2)/16),se=new Array(Z),ie=0;ie<Z;++ie){for(var _e=new Uint32Array(16),Te=0;Te<16;++Te)_e[Te]=x[64*ie+4*Te]<<24|x[64*ie+4*Te+1]<<16|x[64*ie+4*Te+2]<<8|x[64*ie+4*Te+3];se[ie]=_e}se[Z-1][14]=8*(x.length-1)/Math.pow(2,32),se[Z-1][14]=Math.floor(se[Z-1][14]),se[Z-1][15]=8*(x.length-1)&4294967295;for(var xe=0;xe<Z;++xe){for(var Oe=new Uint32Array(80),Re=0;Re<16;++Re)Oe[Re]=se[xe][Re];for(var H=16;H<80;++H)Oe[H]=me(Oe[H-3]^Oe[H-8]^Oe[H-14]^Oe[H-16],1);for(var F=b[0],U=b[1],ue=b[2],ye=b[3],Ce=b[4],z=0;z<80;++z){var le=Math.floor(z/20),ve=me(F,5)+ae(le,U,ue,ye)+Ce+h[le]+Oe[z]>>>0;Ce=ye,ye=ue,ue=me(U,30)>>>0,U=F,F=ve}b[0]=b[0]+F>>>0,b[1]=b[1]+U>>>0,b[2]=b[2]+ue>>>0,b[3]=b[3]+ye>>>0,b[4]=b[4]+Ce>>>0}return[b[0]>>24&255,b[0]>>16&255,b[0]>>8&255,255&b[0],b[1]>>24&255,b[1]>>16&255,b[1]>>8&255,255&b[1],b[2]>>24&255,b[2]>>16&255,b[2]>>8&255,255&b[2],b[3]>>24&255,b[3]>>16&255,b[3]>>8&255,255&b[3],b[4]>>24&255,b[4]>>16&255,b[4]>>8&255,255&b[4]]}),re="00000000-0000-0000-0000-000000000000",ee=function J(x){if(!(0,u.Z)(x))throw TypeError("Invalid UUID");return parseInt(x.substr(14,1),16)}},77985:(ne,L,d)=>{"use strict";var s=d(81986),S=d(40014),l=d(91410),t=l("Object.prototype.toString"),n=d(34550)()&&"symbol"==typeof Symbol.toStringTag,c=S(),o=l("String.prototype.slice"),u={},v=d(86475),m=Object.getPrototypeOf;n&&v&&m&&s(c,function(P){if("function"==typeof global[P]){var D=new global[P];if(!(Symbol.toStringTag in D))throw new EvalError("this engine has support for Symbol.toStringTag, but "+P+" does not have the property! Please report this.");var A=m(D),_=v(A,Symbol.toStringTag);if(!_){var I=m(A);_=v(I,Symbol.toStringTag)}u[P]=_.get}});var R=d(87887);ne.exports=function(D){return!!R(D)&&(n?function(D){var A=!1;return s(u,function(_,I){if(!A)try{var B=_.call(D);B===I&&(A=B)}catch{}}),A}(D):o(t(D),8,-1))}},31468:(ne,L,d)=>{ne.exports=d(86235).Observable},86235:(ne,L)=>{"use strict";function s(O,w){if(!(O instanceof w))throw new TypeError("Cannot call a class as a function")}function S(O,w){for(var f=0;f<w.length;f++){var y=w[f];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(O,y.key,y)}}function l(O,w,f){return w&&S(O.prototype,w),f&&S(O,f),O}L.Observable=void 0;var t=function(){return"function"==typeof Symbol},r=function(O){return t()&&Boolean(Symbol[O])},n=function(O){return r(O)?Symbol[O]:"@@"+O};t()&&!r("observable")&&(Symbol.observable=Symbol("observable"));var c=n("iterator"),o=n("observable"),u=n("species");function v(O,w){var f=O[w];if(null!=f){if("function"!=typeof f)throw new TypeError(f+" is not a function");return f}}function m(O){var w=O.constructor;return void 0!==w&&null===(w=w[u])&&(w=void 0),void 0!==w?w:W}function R(O){R.log?R.log(O):setTimeout(function(){throw O})}function P(O){Promise.resolve().then(function(){try{O()}catch(w){R(w)}})}function D(O){var w=O._cleanup;if(void 0!==w&&(O._cleanup=void 0,w))try{if("function"==typeof w)w();else{var f=v(w,"unsubscribe");f&&f.call(w)}}catch(y){R(y)}}function A(O){O._observer=void 0,O._queue=void 0,O._state="closed"}function I(O,w,f){O._state="running";var y=O._observer;try{var p=v(y,w);switch(w){case"next":p&&p.call(y,f);break;case"error":if(A(O),!p)throw f;p.call(y,f);break;case"complete":A(O),p&&p.call(y)}}catch(N){R(N)}"closed"===O._state?D(O):"running"===O._state&&(O._state="ready")}function B(O,w,f){if("closed"!==O._state){if("buffering"===O._state)return void O._queue.push({type:w,value:f});if("ready"!==O._state)return O._state="buffering",O._queue=[{type:w,value:f}],void P(function(){return function _(O){var w=O._queue;if(w){O._queue=void 0,O._state="ready";for(var f=0;f<w.length&&(I(O,w[f].type,w[f].value),"closed"!==O._state);++f);}}(O)});I(O,w,f)}}var K=function(){function O(w,f){s(this,O),this._cleanup=void 0,this._observer=w,this._queue=void 0,this._state="initializing";var y=new q(this);try{this._cleanup=f.call(void 0,y)}catch(p){y.error(p)}"initializing"===this._state&&(this._state="ready")}return l(O,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(A(this),D(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),O}(),q=function(){function O(w){s(this,O),this._subscription=w}return l(O,[{key:"next",value:function(f){B(this._subscription,"next",f)}},{key:"error",value:function(f){B(this._subscription,"error",f)}},{key:"complete",value:function(){B(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),O}(),W=function(){function O(w){if(s(this,O),!(this instanceof O))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof w)throw new TypeError("Observable initializer must be a function");this._subscriber=w}return l(O,[{key:"subscribe",value:function(f){return("object"!=typeof f||null===f)&&(f={next:f,error:arguments[1],complete:arguments[2]}),new K(f,this._subscriber)}},{key:"forEach",value:function(f){var y=this;return new Promise(function(p,N){if("function"==typeof f)var Q=y.subscribe({next:function($){try{f($,V)}catch(ae){N(ae),Q.unsubscribe()}},error:N,complete:p});else N(new TypeError(f+" is not a function"));function V(){Q.unsubscribe(),p()}})}},{key:"map",value:function(f){var y=this;if("function"!=typeof f)throw new TypeError(f+" is not a function");return new(m(this))(function(N){return y.subscribe({next:function(V){try{V=f(V)}catch(Q){return N.error(Q)}N.next(V)},error:function(V){N.error(V)},complete:function(){N.complete()}})})}},{key:"filter",value:function(f){var y=this;if("function"!=typeof f)throw new TypeError(f+" is not a function");return new(m(this))(function(N){return y.subscribe({next:function(V){try{if(!f(V))return}catch(Q){return N.error(Q)}N.next(V)},error:function(V){N.error(V)},complete:function(){N.complete()}})})}},{key:"reduce",value:function(f){var y=this;if("function"!=typeof f)throw new TypeError(f+" is not a function");var p=m(this),N=arguments.length>1,V=!1,Q=arguments[1],$=Q;return new p(function(ae){return y.subscribe({next:function(me){var X=!V;if(V=!0,!X||N)try{$=f($,me)}catch(he){return ae.error(he)}else $=me},error:function(me){ae.error(me)},complete:function(){if(!V&&!N)return ae.error(new TypeError("Cannot reduce an empty sequence"));ae.next($),ae.complete()}})})}},{key:"concat",value:function(){for(var f=this,y=arguments.length,p=new Array(y),N=0;N<y;N++)p[N]=arguments[N];var V=m(this);return new V(function(Q){var $,ae=0;return function me(X){$=X.subscribe({next:function(he){Q.next(he)},error:function(he){Q.error(he)},complete:function(){ae===p.length?($=void 0,Q.complete()):me(V.from(p[ae++]))}})}(f),function(){$&&($.unsubscribe(),$=void 0)}})}},{key:"flatMap",value:function(f){var y=this;if("function"!=typeof f)throw new TypeError(f+" is not a function");var p=m(this);return new p(function(N){var V=[],Q=y.subscribe({next:function(ae){if(f)try{ae=f(ae)}catch(X){return N.error(X)}var me=p.from(ae).subscribe({next:function(X){N.next(X)},error:function(X){N.error(X)},complete:function(){var X=V.indexOf(me);X>=0&&V.splice(X,1),$()}});V.push(me)},error:function(ae){N.error(ae)},complete:function(){$()}});function $(){Q.closed&&0===V.length&&N.complete()}return function(){V.forEach(function(ae){return ae.unsubscribe()}),Q.unsubscribe()}})}},{key:o,value:function(){return this}}],[{key:"from",value:function(f){var y="function"==typeof this?this:O;if(null==f)throw new TypeError(f+" is not an object");var p=v(f,o);if(p){var N=p.call(f);if(Object(N)!==N)throw new TypeError(N+" is not an object");return function E(O){return O instanceof W}(N)&&N.constructor===y?N:new y(function(V){return N.subscribe(V)})}if(r("iterator")&&(p=v(f,c)))return new y(function(V){P(function(){if(!V.closed){var Q=!0,$=!1,ae=void 0;try{for(var X,me=p.call(f)[Symbol.iterator]();!(Q=(X=me.next()).done);Q=!0)if(V.next(X.value),V.closed)return}catch(oe){$=!0,ae=oe}finally{try{!Q&&null!=me.return&&me.return()}finally{if($)throw ae}}V.complete()}})});if(Array.isArray(f))return new y(function(V){P(function(){if(!V.closed){for(var Q=0;Q<f.length;++Q)if(V.next(f[Q]),V.closed)return;V.complete()}})});throw new TypeError(f+" is not observable")}},{key:"of",value:function(){for(var f=arguments.length,y=new Array(f),p=0;p<f;p++)y[p]=arguments[p];var N="function"==typeof this?this:O;return new N(function(V){P(function(){if(!V.closed){for(var Q=0;Q<y.length;++Q)if(V.next(y[Q]),V.closed)return;V.complete()}})})}},{key:u,get:function(){return this}}]),O}();L.Observable=W,t()&&Object.defineProperty(W,Symbol("extensions"),{value:{symbol:o,hostReportError:R},configurable:!0})},9376:(ne,L,d)=>{"use strict";d.d(L,{Jh:()=>u,ZT:()=>S,_T:()=>t,mG:()=>o,pi:()=>l,pr:()=>D});var s=function(f,y){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,N){p.__proto__=N}||function(p,N){for(var V in N)N.hasOwnProperty(V)&&(p[V]=N[V])})(f,y)};function S(f,y){function p(){this.constructor=f}s(f,y),f.prototype=null===y?Object.create(y):(p.prototype=y.prototype,new p)}var l=function(){return l=Object.assign||function(y){for(var p,N=1,V=arguments.length;N<V;N++)for(var Q in p=arguments[N])Object.prototype.hasOwnProperty.call(p,Q)&&(y[Q]=p[Q]);return y},l.apply(this,arguments)};function t(f,y){var p={};for(var N in f)Object.prototype.hasOwnProperty.call(f,N)&&y.indexOf(N)<0&&(p[N]=f[N]);if(null!=f&&"function"==typeof Object.getOwnPropertySymbols){var V=0;for(N=Object.getOwnPropertySymbols(f);V<N.length;V++)y.indexOf(N[V])<0&&Object.prototype.propertyIsEnumerable.call(f,N[V])&&(p[N[V]]=f[N[V]])}return p}function o(f,y,p,N){return new(p||(p=Promise))(function(Q,$){function ae(he){try{X(N.next(he))}catch(oe){$(oe)}}function me(he){try{X(N.throw(he))}catch(oe){$(oe)}}function X(he){he.done?Q(he.value):function V(Q){return Q instanceof p?Q:new p(function($){$(Q)})}(he.value).then(ae,me)}X((N=N.apply(f,y||[])).next())})}function u(f,y){var N,V,Q,$,p={label:0,sent:function(){if(1&Q[0])throw Q[1];return Q[1]},trys:[],ops:[]};return $={next:ae(0),throw:ae(1),return:ae(2)},"function"==typeof Symbol&&($[Symbol.iterator]=function(){return this}),$;function ae(X){return function(he){return function me(X){if(N)throw new TypeError("Generator is already executing.");for(;p;)try{if(N=1,V&&(Q=2&X[0]?V.return:X[0]?V.throw||((Q=V.return)&&Q.call(V),0):V.next)&&!(Q=Q.call(V,X[1])).done)return Q;switch(V=0,Q&&(X=[2&X[0],Q.value]),X[0]){case 0:case 1:Q=X;break;case 4:return p.label++,{value:X[1],done:!1};case 5:p.label++,V=X[1],X=[0];continue;case 7:X=p.ops.pop(),p.trys.pop();continue;default:if(!(Q=(Q=p.trys).length>0&&Q[Q.length-1])&&(6===X[0]||2===X[0])){p=0;continue}if(3===X[0]&&(!Q||X[1]>Q[0]&&X[1]<Q[3])){p.label=X[1];break}if(6===X[0]&&p.label<Q[1]){p.label=Q[1],Q=X;break}if(Q&&p.label<Q[2]){p.label=Q[2],p.ops.push(X);break}Q[2]&&p.ops.pop(),p.trys.pop();continue}X=y.call(f,p)}catch(he){X=[6,he],V=0}finally{N=Q=0}if(5&X[0])throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}([X,he])}}}function D(){for(var f=0,y=0,p=arguments.length;y<p;y++)f+=arguments[y].length;var N=Array(f),V=0;for(y=0;y<p;y++)for(var Q=arguments[y],$=0,ae=Q.length;$<ae;$++,V++)N[V]=Q[$];return N}},94659:()=>{},40014:ne=>{"use strict";var L=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"];ne.exports=function(){for(var s=[],S=0;S<L.length;S++)"function"==typeof global[L[S]]&&(s[s.length]=L[S]);return s}},86475:(ne,L,d)=>{"use strict";var S=d(67881)("%Object.getOwnPropertyDescriptor%");if(S)try{S([],"length")}catch{S=null}ne.exports=S},89790:(ne,L,d)=>{"use strict";d.d(L,{O:()=>K,_:()=>B});var s=d(67650),S=d(63952),l=d(74051),t=d(83346);function r(q){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(O){return typeof O}:function(O){return O&&"function"==typeof Symbol&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O})(q)}function c(q,W){for(var O=0;O<W.length;O++){var w=W[O];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(q,w.key,w)}}function m(q,W){return!W||"object"!==r(W)&&"function"!=typeof W?E(q):W}function E(q){if(void 0===q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q}function R(q){var W="function"==typeof Map?new Map:void 0;return R=function(w){if(null===w||!function A(q){return-1!==Function.toString.call(q).indexOf("[native code]")}(w))return w;if("function"!=typeof w)throw new TypeError("Super expression must either be null or a function");if(typeof W<"u"){if(W.has(w))return W.get(w);W.set(w,f)}function f(){return P(w,arguments,I(this).constructor)}return f.prototype=Object.create(w.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),_(f,w)},R(q)}function P(q,W,O){return(P=D()?Reflect.construct:function(f,y,p){var N=[null];N.push.apply(N,y);var Q=new(Function.bind.apply(f,N));return p&&_(Q,p.prototype),Q}).apply(null,arguments)}function D(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _(q,W){return(_=Object.setPrototypeOf||function(w,f){return w.__proto__=f,w})(q,W)}function I(q){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)})(q)}var B=function(q){!function u(q,W){if("function"!=typeof W&&null!==W)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(W&&W.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),W&&_(q,W)}(O,q);var W=function v(q){var W=D();return function(){var f,w=I(q);if(W){var y=I(this).constructor;f=Reflect.construct(w,arguments,y)}else f=w.apply(this,arguments);return m(this,f)}}(O);function O(w,f,y,p,N,V,Q){var $,ae,me,X,he;(function n(q,W){if(!(q instanceof W))throw new TypeError("Cannot call a class as a function")})(this,O),he=W.call(this,w);var re,oe=Array.isArray(f)?0!==f.length?f:void 0:f?[f]:void 0,j=y;!j&&oe&&(j=null===(re=oe[0].loc)||void 0===re?void 0:re.source);var ee,J=p;!J&&oe&&(J=oe.reduce(function(b,T){return T.loc&&b.push(T.loc.start),b},[])),J&&0===J.length&&(J=void 0),p&&y?ee=p.map(function(b){return(0,l.k)(y,b)}):oe&&(ee=oe.reduce(function(b,T){return T.loc&&b.push((0,l.k)(T.loc.source,T.loc.start)),b},[]));var x=Q;if(null==x&&null!=V){var h=V.extensions;(0,s.Z)(h)&&(x=h)}return Object.defineProperties(E(he),{name:{value:"GraphQLError"},message:{value:w,enumerable:!0,writable:!0},locations:{value:null!==($=ee)&&void 0!==$?$:void 0,enumerable:null!=ee},path:{value:N??void 0,enumerable:null!=N},nodes:{value:oe??void 0},source:{value:null!==(ae=j)&&void 0!==ae?ae:void 0},positions:{value:null!==(me=J)&&void 0!==me?me:void 0},originalError:{value:V},extensions:{value:null!==(X=x)&&void 0!==X?X:void 0,enumerable:null!=x}}),null!=V&&V.stack?(Object.defineProperty(E(he),"stack",{value:V.stack,writable:!0,configurable:!0}),m(he)):(Error.captureStackTrace?Error.captureStackTrace(E(he),O):Object.defineProperty(E(he),"stack",{value:Error().stack,writable:!0,configurable:!0}),he)}return function o(q,W,O){W&&c(q.prototype,W),O&&c(q,O)}(O,[{key:"toString",value:function(){return K(this)}},{key:S.YF,get:function(){return"Object"}}]),O}(R(Error));function K(q){var W=q.message;if(q.nodes)for(var O=0,w=q.nodes;O<w.length;O++){var f=w[O];f.loc&&(W+="\n\n"+(0,t.Q)(f.loc))}else if(q.source&&q.locations)for(var y=0,p=q.locations;y<p.length;y++)W+="\n\n"+(0,t.z)(q.source,p[y]);return W}},73153:(ne,L,d)=>{"use strict";d.d(L,{h:()=>S});var s=d(89790);function S(l,t,r){return new s._("Syntax Error: ".concat(r),void 0,l,[t])}},72660:(ne,L,d)=>{"use strict";d.r(L),d.d(L,{BREAK:()=>c.$_,BreakingChangeType:()=>dt,DEFAULT_DEPRECATION_REASON:()=>yn,DangerousChangeType:()=>Zt,DirectiveLocation:()=>ze.B,ExecutableDefinitionsRule:()=>si,FieldsOnCorrectTypeRule:()=>vi,FragmentsOnCompositeTypesRule:()=>hi,GraphQLBoolean:()=>xt,GraphQLDeprecatedDirective:()=>Qr,GraphQLDirective:()=>kt,GraphQLEnumType:()=>Lt,GraphQLError:()=>n._,GraphQLFloat:()=>Sr,GraphQLID:()=>cn,GraphQLIncludeDirective:()=>vn,GraphQLInputObjectType:()=>zt,GraphQLInt:()=>_t,GraphQLInterfaceType:()=>Ut,GraphQLList:()=>qe,GraphQLNonNull:()=>ke,GraphQLObjectType:()=>mt,GraphQLScalarType:()=>Tt,GraphQLSchema:()=>hr,GraphQLSkipDirective:()=>mn,GraphQLSpecifiedByDirective:()=>gn,GraphQLString:()=>ft,GraphQLUnionType:()=>Bt,Kind:()=>j.h,KnownArgumentNamesRule:()=>wi,KnownDirectivesRule:()=>Nn,KnownFragmentNamesRule:()=>yi,KnownTypeNamesRule:()=>Pn,Lexer:()=>qn.h,Location:()=>wn.Ye,LoneAnonymousOperationRule:()=>ci,LoneSchemaDefinitionRule:()=>Ui,NoDeprecatedCustomRule:()=>Ta,NoFragmentCyclesRule:()=>bi,NoSchemaIntrospectionCustomRule:()=>gs,NoUndefinedVariablesRule:()=>Si,NoUnusedFragmentsRule:()=>gi,NoUnusedVariablesRule:()=>_i,OverlappingFieldsCanBeMergedRule:()=>Li,PossibleFragmentSpreadsRule:()=>Ei,PossibleTypeExtensionsRule:()=>Wi,ProvidedRequiredArgumentsRule:()=>Ci,ScalarLeafsRule:()=>di,SchemaMetaFieldDef:()=>Ar,SingleFieldSubscriptionsRule:()=>fi,Source:()=>zn.H,Token:()=>wn.WU,TokenKind:()=>Mr.T,TypeInfo:()=>In,TypeKind:()=>ut,TypeMetaFieldDef:()=>wr,TypeNameMetaFieldDef:()=>Ir,UniqueArgumentNamesRule:()=>Ln,UniqueDirectiveNamesRule:()=>Gi,UniqueDirectivesPerLocationRule:()=>Mn,UniqueEnumValueNamesRule:()=>Vi,UniqueFieldDefinitionNamesRule:()=>Ki,UniqueFragmentNamesRule:()=>mi,UniqueInputFieldNamesRule:()=>Bn,UniqueOperationNamesRule:()=>ui,UniqueOperationTypesRule:()=>Bi,UniqueTypeNamesRule:()=>ji,UniqueVariableNamesRule:()=>Ti,ValidationContext:()=>qi,ValuesOfCorrectTypeRule:()=>Ri,VariablesAreInputTypesRule:()=>pi,VariablesInAllowedPositionRule:()=>Ni,__Directive:()=>fn,__DirectiveLocation:()=>ln,__EnumValue:()=>pn,__Field:()=>hn,__InputValue:()=>Or,__Schema:()=>Gr,__Type:()=>Ct,__TypeKind:()=>dn,assertAbstractType:()=>gt,assertCompositeType:()=>Ze,assertDirective:()=>so,assertEnumType:()=>Re,assertInputObjectType:()=>F,assertInputType:()=>le,assertInterfaceType:()=>_e,assertLeafType:()=>Me,assertListType:()=>ue,assertNamedType:()=>St,assertNonNullType:()=>Ce,assertNullableType:()=>Gt,assertObjectType:()=>se,assertOutputType:()=>Se,assertScalarType:()=>G,assertSchema:()=>bn,assertType:()=>T,assertUnionType:()=>xe,assertValidName:()=>D,assertValidSchema:()=>Sn,assertWrappingType:()=>yr,astFromValue:()=>Vt,buildASTSchema:()=>Da,buildClientSchema:()=>ws,buildSchema:()=>xs,coerceInputValue:()=>Xi,concatAST:()=>zs,createSourceEventStream:()=>ba,defaultFieldResolver:()=>ha,defaultTypeResolver:()=>la,doTypesOverlap:()=>lr,execute:()=>Gn,executeSync:()=>ea,extendSchema:()=>Rs,findBreakingChanges:()=>Xs,findDangerousChanges:()=>$s,findDeprecatedUsages:()=>ou,formatError:()=>Es,getDescription:()=>sr,getDirectiveValues:()=>Cr,getIntrospectionQuery:()=>_a,getLocation:()=>ps.k,getNamedType:()=>ht,getNullableType:()=>Wt,getOperationAST:()=>su.getOperationAST,getOperationRootType:()=>Vn,getVisitFn:()=>c.CK,graphql:()=>ls,graphqlSync:()=>hs,introspectionFromSchema:()=>As,introspectionTypes:()=>Rr,isAbstractType:()=>$e,isCompositeType:()=>Ke,isDefinitionNode:()=>To,isDirective:()=>Wr,isEnumType:()=>Oe,isEqualType:()=>nr,isExecutableDefinitionNode:()=>Dn,isInputObjectType:()=>H,isInputType:()=>z,isInterfaceType:()=>ie,isIntrospectionType:()=>ir,isLeafType:()=>Ie,isListType:()=>U,isNamedType:()=>Rt,isNonNullType:()=>ye,isNullableType:()=>$t,isObjectType:()=>Z,isOutputType:()=>ve,isRequiredArgument:()=>wt,isRequiredInputField:()=>fr,isScalarType:()=>M,isSchema:()=>ni,isSelectionNode:()=>So,isSpecifiedDirective:()=>En,isSpecifiedScalarType:()=>Kr,isType:()=>b,isTypeDefinitionNode:()=>dr,isTypeExtensionNode:()=>Hr,isTypeNode:()=>Oo,isTypeSubTypeOf:()=>jt,isTypeSystemDefinitionNode:()=>xn,isTypeSystemExtensionNode:()=>Cn,isUnionType:()=>Te,isValidNameError:()=>A,isValueNode:()=>_o,isWrappingType:()=>bt,lexicographicSortSchema:()=>Ps,locatedError:()=>R,parse:()=>t.Qc,parseType:()=>t.gZ,parseValue:()=>t.H2,print:()=>re.print,printError:()=>n.O,printIntrospectionSchema:()=>Ms,printLocation:()=>da.Q,printSchema:()=>Ns,printSourceLocation:()=>da.z,printType:()=>Pa,responsePathAsArray:()=>At,separateOperations:()=>qs,specifiedDirectives:()=>qt,specifiedRules:()=>Qi,specifiedScalarTypes:()=>_r,stripIgnoredCharacters:()=>Zs,subscribe:()=>ms,syntaxError:()=>bs.h,typeFromAST:()=>Ot,validate:()=>jn,validateSchema:()=>Tn,valueFromAST:()=>Kt,valueFromASTUntyped:()=>ee,version:()=>s,versionInfo:()=>S,visit:()=>c.Vn,visitInParallel:()=>c.j1,visitWithTypeInfo:()=>Rn});var s="15.5.1",S=Object.freeze({major:15,minor:5,patch:1,preReleaseTag:null});function l(e){return"function"==typeof e?.then}var t=d(51724),r=d(60488),n=d(89790),c=d(86729);const u=Array.prototype.find?function(e,a){return Array.prototype.find.call(e,a)}:function(e,a){for(var i=0;i<e.length;i++){var g=e[i];if(a(g))return g}},m=Object.values||function(e){return Object.keys(e).map(function(a){return e[a]})};var E=d(95897);function R(e,a,i){var g,C=e instanceof Error?e:new Error("Unexpected error value: "+(0,E.Z)(e));return Array.isArray(C.path)?C:new n._(C.message,null!==(g=C.nodes)&&void 0!==g?g:a,C.source,C.positions,i,C)}var P=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function D(e){var a=A(e);if(a)throw a;return e}function A(e){return"string"==typeof e||(0,r.Z)(0,"Expected name to be a string."),e.length>1&&"_"===e[0]&&"_"===e[1]?new n._('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.')):P.test(e)?void 0:new n._('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}const I=Object.entries||function(e){return Object.keys(e).map(function(a){return[a,e[a]]})};var B=d(63952);function K(e,a){return e.reduce(function(i,g){return i[a(g)]=g,i},Object.create(null))}function q(e,a){for(var i=Object.create(null),g=0,C=I(e);g<C.length;g++){var k=C[g],Y=k[0];i[Y]=a(k[1],Y)}return i}function W(e){if(null===Object.getPrototypeOf(e))return e;for(var a=Object.create(null),i=0,g=I(e);i<g.length;i++){var C=g[i];a[C[0]]=C[1]}return a}function O(e,a,i){return e.reduce(function(g,C){return g[a(C)]=i(C),g},Object.create(null))}var w=d(44104);function y(e,a){var i="string"==typeof e?[e,a]:[void 0,e],g=i[0],k=" Did you mean ";g&&(k+=g+" ");var Y=i[1].map(function(pe){return'"'.concat(pe,'"')});switch(Y.length){case 0:return"";case 1:return k+Y[0]+"?";case 2:return k+Y[0]+" or "+Y[1]+"?"}var te=Y.slice(0,5),ce=te.pop();return k+te.join(", ")+", or "+ce+"?"}var p=d(67650);function N(e){return e}var V=d(44461);function Q(e,a){for(var i=0,g=0;i<e.length&&g<a.length;){var C=e.charCodeAt(i),k=a.charCodeAt(g);if(me(C)&&me(k)){var Y=0;do{++i,Y=10*Y+C-$,C=e.charCodeAt(i)}while(me(C)&&Y>0);var te=0;do{++g,te=10*te+k-$,k=a.charCodeAt(g)}while(me(k)&&te>0);if(Y<te)return-1;if(Y>te)return 1}else{if(C<k)return-1;if(C>k)return 1;++i,++g}}return e.length-a.length}var $=48;function me(e){return!isNaN(e)&&$<=e&&e<=57}function X(e,a){for(var i=Object.create(null),g=new he(e),C=Math.floor(.4*e.length)+1,k=0;k<a.length;k++){var Y=a[k],te=g.measure(Y,C);void 0!==te&&(i[Y]=te)}return Object.keys(i).sort(function(ce,pe){var de=i[ce]-i[pe];return 0!==de?de:Q(ce,pe)})}var he=function(){function e(i){this._input=i,this._inputLowerCase=i.toLowerCase(),this._inputArray=oe(this._inputLowerCase),this._rows=[new Array(i.length+1).fill(0),new Array(i.length+1).fill(0),new Array(i.length+1).fill(0)]}return e.prototype.measure=function(g,C){if(this._input===g)return 0;var k=g.toLowerCase();if(this._inputLowerCase===k)return 1;var Y=oe(k),te=this._inputArray;if(Y.length<te.length){var ce=Y;Y=te,te=ce}var pe=Y.length,de=te.length;if(!(pe-de>C)){for(var ge=this._rows,Ee=0;Ee<=de;Ee++)ge[0][Ee]=Ee;for(var we=1;we<=pe;we++){for(var De=ge[(we-1)%3],Pe=ge[we%3],Ue=Pe[0]=we,Be=1;Be<=de;Be++){var Je=Math.min(De[Be]+1,Pe[Be-1]+1,De[Be-1]+(Y[we-1]===te[Be-1]?0:1));we>1&&Be>1&&Y[we-1]===te[Be-2]&&Y[we-2]===te[Be-1]&&(Je=Math.min(Je,ge[(we-2)%3][Be-2]+1)),Je<Ue&&(Ue=Je),Pe[Be]=Je}if(Ue>C)return}var et=ge[pe%3][de];return et<=C?et:void 0}},e}();function oe(e){for(var a=e.length,i=new Array(a),g=0;g<a;++g)i[g]=e.charCodeAt(g);return i}var j=d(87948),re=d(71352),J=d(34248);function ee(e,a){switch(e.kind){case j.h.NULL:return null;case j.h.INT:return parseInt(e.value,10);case j.h.FLOAT:return parseFloat(e.value);case j.h.STRING:case j.h.ENUM:case j.h.BOOLEAN:return e.value;case j.h.LIST:return e.values.map(function(i){return ee(i,a)});case j.h.OBJECT:return O(e.fields,function(i){return i.name.value},function(i){return ee(i.value,a)});case j.h.VARIABLE:return a?.[e.name.value]}(0,J.Z)(0,"Unexpected value node: "+(0,E.Z)(e))}function x(e,a){for(var i=0;i<a.length;i++){var g=a[i];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(e,g.key,g)}}function h(e,a,i){return a&&x(e.prototype,a),i&&x(e,i),e}function b(e){return M(e)||Z(e)||ie(e)||Te(e)||Oe(e)||H(e)||U(e)||ye(e)}function T(e){if(!b(e))throw new Error("Expected ".concat((0,E.Z)(e)," to be a GraphQL type."));return e}function M(e){return(0,w.Z)(e,Tt)}function G(e){if(!M(e))throw new Error("Expected ".concat((0,E.Z)(e)," to be a GraphQL Scalar type."));return e}function Z(e){return(0,w.Z)(e,mt)}function se(e){if(!Z(e))throw new Error("Expected ".concat((0,E.Z)(e)," to be a GraphQL Object type."));return e}function ie(e){return(0,w.Z)(e,Ut)}function _e(e){if(!ie(e))throw new Error("Expected ".concat((0,E.Z)(e)," to be a GraphQL Interface type."));return e}function Te(e){return(0,w.Z)(e,Bt)}function xe(e){if(!Te(e))throw new Error("Expected ".concat((0,E.Z)(e)," to be a GraphQL Union type."));return e}function Oe(e){return(0,w.Z)(e,Lt)}function Re(e){if(!Oe(e))throw new Error("Expected ".concat((0,E.Z)(e)," to be a GraphQL Enum type."));return e}function H(e){return(0,w.Z)(e,zt)}function F(e){if(!H(e))throw new Error("Expected ".concat((0,E.Z)(e)," to be a GraphQL Input Object type."));return e}function U(e){return(0,w.Z)(e,qe)}function ue(e){if(!U(e))throw new Error("Expected ".concat((0,E.Z)(e)," to be a GraphQL List type."));return e}function ye(e){return(0,w.Z)(e,ke)}function Ce(e){if(!ye(e))throw new Error("Expected ".concat((0,E.Z)(e)," to be a GraphQL Non-Null type."));return e}function z(e){return M(e)||Oe(e)||H(e)||bt(e)&&z(e.ofType)}function le(e){if(!z(e))throw new Error("Expected ".concat((0,E.Z)(e)," to be a GraphQL input type."));return e}function ve(e){return M(e)||Z(e)||ie(e)||Te(e)||Oe(e)||bt(e)&&ve(e.ofType)}function Se(e){if(!ve(e))throw new Error("Expected ".concat((0,E.Z)(e)," to be a GraphQL output type."));return e}function Ie(e){return M(e)||Oe(e)}function Me(e){if(!Ie(e))throw new Error("Expected ".concat((0,E.Z)(e)," to be a GraphQL leaf type."));return e}function Ke(e){return Z(e)||ie(e)||Te(e)}function Ze(e){if(!Ke(e))throw new Error("Expected ".concat((0,E.Z)(e)," to be a GraphQL composite type."));return e}function $e(e){return ie(e)||Te(e)}function gt(e){if(!$e(e))throw new Error("Expected ".concat((0,E.Z)(e)," to be a GraphQL abstract type."));return e}function qe(e){if(!(this instanceof qe))return new qe(e);this.ofType=T(e)}function ke(e){if(!(this instanceof ke))return new ke(e);this.ofType=Gt(e)}function bt(e){return U(e)||ye(e)}function yr(e){if(!bt(e))throw new Error("Expected ".concat((0,E.Z)(e)," to be a GraphQL wrapping type."));return e}function $t(e){return b(e)&&!ye(e)}function Gt(e){if(!$t(e))throw new Error("Expected ".concat((0,E.Z)(e)," to be a GraphQL nullable type."));return e}function Wt(e){if(e)return ye(e)?e.ofType:e}function Rt(e){return M(e)||Z(e)||ie(e)||Te(e)||Oe(e)||H(e)}function St(e){if(!Rt(e))throw new Error("Expected ".concat((0,E.Z)(e)," to be a GraphQL named type."));return e}function ht(e){if(e){for(var a=e;bt(a);)a=a.ofType;return a}}function Nt(e){return"function"==typeof e?e():e}function Dt(e){return e&&e.length>0?e:void 0}qe.prototype.toString=function(){return"["+String(this.ofType)+"]"},qe.prototype.toJSON=function(){return this.toString()},Object.defineProperty(qe.prototype,B.YF,{get:function(){return"GraphQLList"}}),(0,V.Z)(qe),ke.prototype.toString=function(){return String(this.ofType)+"!"},ke.prototype.toJSON=function(){return this.toString()},Object.defineProperty(ke.prototype,B.YF,{get:function(){return"GraphQLNonNull"}}),(0,V.Z)(ke);var Tt=function(){function e(i){var g,C,k,Y=null!==(g=i.parseValue)&&void 0!==g?g:N;this.name=i.name,this.description=i.description,this.specifiedByUrl=i.specifiedByUrl,this.serialize=null!==(C=i.serialize)&&void 0!==C?C:N,this.parseValue=Y,this.parseLiteral=null!==(k=i.parseLiteral)&&void 0!==k?k:function(te,ce){return Y(ee(te,ce))},this.extensions=i.extensions&&W(i.extensions),this.astNode=i.astNode,this.extensionASTNodes=Dt(i.extensionASTNodes),"string"==typeof i.name||(0,r.Z)(0,"Must provide name."),null==i.specifiedByUrl||"string"==typeof i.specifiedByUrl||(0,r.Z)(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat((0,E.Z)(i.specifiedByUrl),".")),null==i.serialize||"function"==typeof i.serialize||(0,r.Z)(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),i.parseLiteral&&("function"==typeof i.parseValue&&"function"==typeof i.parseLiteral||(0,r.Z)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var a=e.prototype;return a.toConfig=function(){var g;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(g=this.extensionASTNodes)&&void 0!==g?g:[]}},a.toString=function(){return this.name},a.toJSON=function(){return this.toString()},h(e,[{key:B.YF,get:function(){return"GraphQLScalarType"}}]),e}();(0,V.Z)(Tt);var mt=function(){function e(i){this.name=i.name,this.description=i.description,this.isTypeOf=i.isTypeOf,this.extensions=i.extensions&&W(i.extensions),this.astNode=i.astNode,this.extensionASTNodes=Dt(i.extensionASTNodes),this._fields=er.bind(void 0,i),this._interfaces=Qt.bind(void 0,i),"string"==typeof i.name||(0,r.Z)(0,"Must provide name."),null==i.isTypeOf||"function"==typeof i.isTypeOf||(0,r.Z)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,E.Z)(i.isTypeOf),"."))}var a=e.prototype;return a.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},a.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},a.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ht(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},a.toString=function(){return this.name},a.toJSON=function(){return this.toString()},h(e,[{key:B.YF,get:function(){return"GraphQLObjectType"}}]),e}();function Qt(e){var a,i=null!==(a=Nt(e.interfaces))&&void 0!==a?a:[];return Array.isArray(i)||(0,r.Z)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),i}function er(e){var a=Nt(e.fields);return Mt(a)||(0,r.Z)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),q(a,function(i,g){var C;Mt(i)||(0,r.Z)(0,"".concat(e.name,".").concat(g," field config must be an object.")),!("isDeprecated"in i)||(0,r.Z)(0,"".concat(e.name,".").concat(g,' should provide "deprecationReason" instead of "isDeprecated".')),null==i.resolve||"function"==typeof i.resolve||(0,r.Z)(0,"".concat(e.name,".").concat(g," field resolver must be a function if ")+"provided, but got: ".concat((0,E.Z)(i.resolve),"."));var k=null!==(C=i.args)&&void 0!==C?C:{};Mt(k)||(0,r.Z)(0,"".concat(e.name,".").concat(g," args must be an object with argument names as keys."));var Y=I(k).map(function(te){var pe=te[1];return{name:te[0],description:pe.description,type:pe.type,defaultValue:pe.defaultValue,deprecationReason:pe.deprecationReason,extensions:pe.extensions&&W(pe.extensions),astNode:pe.astNode}});return{name:g,description:i.description,type:i.type,args:Y,resolve:i.resolve,subscribe:i.subscribe,isDeprecated:null!=i.deprecationReason,deprecationReason:i.deprecationReason,extensions:i.extensions&&W(i.extensions),astNode:i.astNode}})}function Mt(e){return(0,p.Z)(e)&&!Array.isArray(e)}function Ht(e){return q(e,function(a){return{description:a.description,type:a.type,args:gr(a.args),resolve:a.resolve,subscribe:a.subscribe,deprecationReason:a.deprecationReason,extensions:a.extensions,astNode:a.astNode}})}function gr(e){return O(e,function(a){return a.name},function(a){return{description:a.description,type:a.type,defaultValue:a.defaultValue,deprecationReason:a.deprecationReason,extensions:a.extensions,astNode:a.astNode}})}function wt(e){return ye(e.type)&&void 0===e.defaultValue}(0,V.Z)(mt);var Ut=function(){function e(i){this.name=i.name,this.description=i.description,this.resolveType=i.resolveType,this.extensions=i.extensions&&W(i.extensions),this.astNode=i.astNode,this.extensionASTNodes=Dt(i.extensionASTNodes),this._fields=er.bind(void 0,i),this._interfaces=Qt.bind(void 0,i),"string"==typeof i.name||(0,r.Z)(0,"Must provide name."),null==i.resolveType||"function"==typeof i.resolveType||(0,r.Z)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,E.Z)(i.resolveType),"."))}var a=e.prototype;return a.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},a.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},a.toConfig=function(){var g;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ht(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(g=this.extensionASTNodes)&&void 0!==g?g:[]}},a.toString=function(){return this.name},a.toJSON=function(){return this.toString()},h(e,[{key:B.YF,get:function(){return"GraphQLInterfaceType"}}]),e}();(0,V.Z)(Ut);var Bt=function(){function e(i){this.name=i.name,this.description=i.description,this.resolveType=i.resolveType,this.extensions=i.extensions&&W(i.extensions),this.astNode=i.astNode,this.extensionASTNodes=Dt(i.extensionASTNodes),this._types=Er.bind(void 0,i),"string"==typeof i.name||(0,r.Z)(0,"Must provide name."),null==i.resolveType||"function"==typeof i.resolveType||(0,r.Z)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,E.Z)(i.resolveType),"."))}var a=e.prototype;return a.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},a.toConfig=function(){var g;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(g=this.extensionASTNodes)&&void 0!==g?g:[]}},a.toString=function(){return this.name},a.toJSON=function(){return this.toString()},h(e,[{key:B.YF,get:function(){return"GraphQLUnionType"}}]),e}();function Er(e){var a=Nt(e.types);return Array.isArray(a)||(0,r.Z)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),a}(0,V.Z)(Bt);var Lt=function(){function e(i){this.name=i.name,this.description=i.description,this.extensions=i.extensions&&W(i.extensions),this.astNode=i.astNode,this.extensionASTNodes=Dt(i.extensionASTNodes),this._values=function jr(e,a){return Mt(a)||(0,r.Z)(0,"".concat(e," values must be an object with value names as keys.")),I(a).map(function(i){var g=i[0],C=i[1];return Mt(C)||(0,r.Z)(0,"".concat(e,".").concat(g,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,E.Z)(C),".")),!("isDeprecated"in C)||(0,r.Z)(0,"".concat(e,".").concat(g,' should provide "deprecationReason" instead of "isDeprecated".')),{name:g,description:C.description,value:void 0!==C.value?C.value:g,isDeprecated:null!=C.deprecationReason,deprecationReason:C.deprecationReason,extensions:C.extensions&&W(C.extensions),astNode:C.astNode}})}(this.name,i.values),this._valueLookup=new Map(this._values.map(function(g){return[g.value,g]})),this._nameLookup=K(this._values,function(g){return g.name}),"string"==typeof i.name||(0,r.Z)(0,"Must provide name.")}var a=e.prototype;return a.getValues=function(){return this._values},a.getValue=function(g){return this._nameLookup[g]},a.serialize=function(g){var C=this._valueLookup.get(g);if(void 0===C)throw new n._('Enum "'.concat(this.name,'" cannot represent value: ').concat((0,E.Z)(g)));return C.name},a.parseValue=function(g){if("string"!=typeof g){var C=(0,E.Z)(g);throw new n._('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(C,".")+cr(this,C))}var k=this.getValue(g);if(null==k)throw new n._('Value "'.concat(g,'" does not exist in "').concat(this.name,'" enum.')+cr(this,g));return k.value},a.parseLiteral=function(g,C){if(g.kind!==j.h.ENUM){var k=(0,re.print)(g);throw new n._('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(k,".")+cr(this,k),g)}var Y=this.getValue(g.value);if(null==Y){var te=(0,re.print)(g);throw new n._('Value "'.concat(te,'" does not exist in "').concat(this.name,'" enum.')+cr(this,te),g)}return Y.value},a.toConfig=function(){var g,C=O(this.getValues(),function(k){return k.name},function(k){return{description:k.description,value:k.value,deprecationReason:k.deprecationReason,extensions:k.extensions,astNode:k.astNode}});return{name:this.name,description:this.description,values:C,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(g=this.extensionASTNodes)&&void 0!==g?g:[]}},a.toString=function(){return this.name},a.toJSON=function(){return this.toString()},h(e,[{key:B.YF,get:function(){return"GraphQLEnumType"}}]),e}();function cr(e,a){return y("the enum value",X(a,e.getValues().map(function(C){return C.name})))}(0,V.Z)(Lt);var zt=function(){function e(i){this.name=i.name,this.description=i.description,this.extensions=i.extensions&&W(i.extensions),this.astNode=i.astNode,this.extensionASTNodes=Dt(i.extensionASTNodes),this._fields=an.bind(void 0,i),"string"==typeof i.name||(0,r.Z)(0,"Must provide name.")}var a=e.prototype;return a.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},a.toConfig=function(){var g,C=q(this.getFields(),function(k){return{description:k.description,type:k.type,defaultValue:k.defaultValue,extensions:k.extensions,astNode:k.astNode}});return{name:this.name,description:this.description,fields:C,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(g=this.extensionASTNodes)&&void 0!==g?g:[]}},a.toString=function(){return this.name},a.toJSON=function(){return this.toString()},h(e,[{key:B.YF,get:function(){return"GraphQLInputObjectType"}}]),e}();function an(e){var a=Nt(e.fields);return Mt(a)||(0,r.Z)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),q(a,function(i,g){return!("resolve"in i)||(0,r.Z)(0,"".concat(e.name,".").concat(g," field has a resolve property, but Input Types cannot define resolvers.")),{name:g,description:i.description,type:i.type,defaultValue:i.defaultValue,deprecationReason:i.deprecationReason,extensions:i.extensions&&W(i.extensions),astNode:i.astNode}})}function fr(e){return ye(e.type)&&void 0===e.defaultValue}function nr(e,a){return e===a||!!(ye(e)&&ye(a)||U(e)&&U(a))&&nr(e.ofType,a.ofType)}function jt(e,a,i){return a===i||(ye(i)?!!ye(a)&&jt(e,a.ofType,i.ofType):ye(a)?jt(e,a.ofType,i):U(i)?!!U(a)&&jt(e,a.ofType,i.ofType):!U(a)&&$e(i)&&(ie(a)||Z(a))&&e.isSubType(i,a))}function lr(e,a,i){return a===i||($e(a)?$e(i)?e.getPossibleTypes(a).some(function(g){return e.isSubType(i,g)}):e.isSubType(a,i):!!$e(i)&&e.isSubType(i,a))}(0,V.Z)(zt);const Tr=Array.from||function(e,a,i){if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var g=e[B.Xr];if("function"==typeof g){for(var Y,C=g.call(e),k=[],te=0;!(Y=C.next()).done;++te)if(k.push(a.call(i,Y.value,te)),te>9999999)throw new TypeError("Near-infinite iteration.");return k}var ce=e.length;if("number"==typeof ce&&ce>=0&&ce%1==0){for(var pe=[],de=0;de<ce;++de)Object.prototype.hasOwnProperty.call(e,de)&&pe.push(a.call(i,e[de],de));return pe}return[]};var ze=d(52194);const fe=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)};function be(e){return(be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(e)}function Ae(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(de){return de};if(null==e||"object"!==be(e))return null;if(Array.isArray(e))return e.map(a);var i=e[B.Xr];if("function"==typeof i){for(var k,g=i.call(e),C=[],Y=0;!(k=g.next()).done;++Y)C.push(a(k.value,Y));return C}var te=e.length;if("number"==typeof te&&te>=0&&te%1==0){for(var ce=[],pe=0;pe<te;++pe){if(!Object.prototype.hasOwnProperty.call(e,pe))return null;ce.push(a(e[String(pe)],pe))}return ce}return null}const je=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};var We=2147483647,Xe=-2147483648,_t=new Tt({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:function Ye(e){var a=tr(e);if("boolean"==typeof a)return a?1:0;var i=a;if("string"==typeof a&&""!==a&&(i=Number(a)),!je(i))throw new n._("Int cannot represent non-integer value: ".concat((0,E.Z)(a)));if(i>We||i<Xe)throw new n._("Int cannot represent non 32-bit signed integer value: "+(0,E.Z)(a));return i},parseValue:function yt(e){if(!je(e))throw new n._("Int cannot represent non-integer value: ".concat((0,E.Z)(e)));if(e>We||e<Xe)throw new n._("Int cannot represent non 32-bit signed integer value: ".concat(e));return e},parseLiteral:function(a){if(a.kind!==j.h.INT)throw new n._("Int cannot represent non-integer value: ".concat((0,re.print)(a)),a);var i=parseInt(a.value,10);if(i>We||i<Xe)throw new n._("Int cannot represent non 32-bit signed integer value: ".concat(a.value),a);return i}}),Sr=new Tt({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function sn(e){var a=tr(e);if("boolean"==typeof a)return a?1:0;var i=a;if("string"==typeof a&&""!==a&&(i=Number(a)),!fe(i))throw new n._("Float cannot represent non numeric value: ".concat((0,E.Z)(a)));return i},parseValue:function Vr(e){if(!fe(e))throw new n._("Float cannot represent non numeric value: ".concat((0,E.Z)(e)));return e},parseLiteral:function(a){if(a.kind!==j.h.FLOAT&&a.kind!==j.h.INT)throw new n._("Float cannot represent non numeric value: ".concat((0,re.print)(a)),a);return parseFloat(a.value)}});function tr(e){if((0,p.Z)(e)){if("function"==typeof e.valueOf){var a=e.valueOf();if(!(0,p.Z)(a))return a}if("function"==typeof e.toJSON)return e.toJSON()}return e}var ft=new Tt({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function un(e){var a=tr(e);if("string"==typeof a)return a;if("boolean"==typeof a)return a?"true":"false";if(fe(a))return a.toString();throw new n._("String cannot represent value: ".concat((0,E.Z)(e)))},parseValue:function to(e){if("string"!=typeof e)throw new n._("String cannot represent a non string value: ".concat((0,E.Z)(e)));return e},parseLiteral:function(a){if(a.kind!==j.h.STRING)throw new n._("String cannot represent a non string value: ".concat((0,re.print)(a)),a);return a.value}}),xt=new Tt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function ro(e){var a=tr(e);if("boolean"==typeof a)return a;if(fe(a))return 0!==a;throw new n._("Boolean cannot represent a non boolean value: ".concat((0,E.Z)(a)))},parseValue:function no(e){if("boolean"!=typeof e)throw new n._("Boolean cannot represent a non boolean value: ".concat((0,E.Z)(e)));return e},parseLiteral:function(a){if(a.kind!==j.h.BOOLEAN)throw new n._("Boolean cannot represent a non boolean value: ".concat((0,re.print)(a)),a);return a.value}}),cn=new Tt({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function io(e){var a=tr(e);if("string"==typeof a)return a;if(je(a))return String(a);throw new n._("ID cannot represent value: ".concat((0,E.Z)(e)))},parseValue:function ao(e){if("string"==typeof e)return e;if(je(e))return e.toString();throw new n._("ID cannot represent value: ".concat((0,E.Z)(e)))},parseLiteral:function(a){if(a.kind!==j.h.STRING&&a.kind!==j.h.INT)throw new n._("ID cannot represent a non-string and non-integer value: "+(0,re.print)(a),a);return a.value}}),_r=Object.freeze([ft,_t,Sr,xt,cn]);function Kr(e){return _r.some(function(a){return e.name===a.name})}function Vt(e,a){if(ye(a)){var i=Vt(e,a.ofType);return i?.kind===j.h.NULL?null:i}if(null===e)return{kind:j.h.NULL};if(void 0===e)return null;if(U(a)){var g=a.ofType,C=Ae(e);if(null!=C){for(var k=[],Y=0;Y<C.length;Y++){var ce=Vt(C[Y],g);null!=ce&&k.push(ce)}return{kind:j.h.LIST,values:k}}return Vt(e,g)}if(H(a)){if(!(0,p.Z)(e))return null;for(var pe=[],de=0,ge=m(a.getFields());de<ge.length;de++){var Ee=ge[de],we=Vt(e[Ee.name],Ee.type);we&&pe.push({kind:j.h.OBJECT_FIELD,name:{kind:j.h.NAME,value:Ee.name},value:we})}return{kind:j.h.OBJECT,fields:pe}}if(Ie(a)){var De=a.serialize(e);if(null==De)return null;if("boolean"==typeof De)return{kind:j.h.BOOLEAN,value:De};if("number"==typeof De&&fe(De)){var Pe=String(De);return ei.test(Pe)?{kind:j.h.INT,value:Pe}:{kind:j.h.FLOAT,value:Pe}}if("string"==typeof De)return Oe(a)?{kind:j.h.ENUM,value:De}:a===cn&&ei.test(De)?{kind:j.h.INT,value:De}:{kind:j.h.STRING,value:De};throw new TypeError("Cannot convert value to AST: ".concat((0,E.Z)(De),"."))}(0,J.Z)(0,"Unexpected input type: "+(0,E.Z)(a))}var ei=/^-?(?:0|[1-9][0-9]*)$/,Gr=new mt({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:ft,resolve:function(i){return i.description}},types:{description:"A list of all types supported by this server.",type:new ke(new qe(new ke(Ct))),resolve:function(i){return m(i.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new ke(Ct),resolve:function(i){return i.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Ct,resolve:function(i){return i.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Ct,resolve:function(i){return i.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new ke(new qe(new ke(fn))),resolve:function(i){return i.getDirectives()}}}}}),fn=new mt({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:new ke(ft),resolve:function(i){return i.name}},description:{type:ft,resolve:function(i){return i.description}},isRepeatable:{type:new ke(xt),resolve:function(i){return i.isRepeatable}},locations:{type:new ke(new qe(new ke(ln))),resolve:function(i){return i.locations}},args:{type:new ke(new qe(new ke(Or))),resolve:function(i){return i.args}}}}}),ln=new Lt({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:ze.B.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:ze.B.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:ze.B.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:ze.B.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:ze.B.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:ze.B.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:ze.B.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:ze.B.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:ze.B.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:ze.B.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:ze.B.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:ze.B.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:ze.B.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:ze.B.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:ze.B.UNION,description:"Location adjacent to a union definition."},ENUM:{value:ze.B.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:ze.B.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:ze.B.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:ze.B.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Ct=new mt({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new ke(dn),resolve:function(i){return M(i)?ut.SCALAR:Z(i)?ut.OBJECT:ie(i)?ut.INTERFACE:Te(i)?ut.UNION:Oe(i)?ut.ENUM:H(i)?ut.INPUT_OBJECT:U(i)?ut.LIST:ye(i)?ut.NON_NULL:void(0,J.Z)(0,'Unexpected type: "'.concat((0,E.Z)(i),'".'))}},name:{type:ft,resolve:function(i){return void 0!==i.name?i.name:void 0}},description:{type:ft,resolve:function(i){return void 0!==i.description?i.description:void 0}},specifiedByUrl:{type:ft,resolve:function(i){return void 0!==i.specifiedByUrl?i.specifiedByUrl:void 0}},fields:{type:new qe(new ke(hn)),args:{includeDeprecated:{type:xt,defaultValue:!1}},resolve:function(i,g){var C=g.includeDeprecated;if(Z(i)||ie(i)){var k=m(i.getFields());return C?k:k.filter(function(Y){return null==Y.deprecationReason})}}},interfaces:{type:new qe(new ke(Ct)),resolve:function(i){if(Z(i)||ie(i))return i.getInterfaces()}},possibleTypes:{type:new qe(new ke(Ct)),resolve:function(i,g,C,k){var Y=k.schema;if($e(i))return Y.getPossibleTypes(i)}},enumValues:{type:new qe(new ke(pn)),args:{includeDeprecated:{type:xt,defaultValue:!1}},resolve:function(i,g){var C=g.includeDeprecated;if(Oe(i)){var k=i.getValues();return C?k:k.filter(function(Y){return null==Y.deprecationReason})}}},inputFields:{type:new qe(new ke(Or)),args:{includeDeprecated:{type:xt,defaultValue:!1}},resolve:function(i,g){var C=g.includeDeprecated;if(H(i)){var k=m(i.getFields());return C?k:k.filter(function(Y){return null==Y.deprecationReason})}}},ofType:{type:Ct,resolve:function(i){return void 0!==i.ofType?i.ofType:void 0}}}}}),hn=new mt({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new ke(ft),resolve:function(i){return i.name}},description:{type:ft,resolve:function(i){return i.description}},args:{type:new ke(new qe(new ke(Or))),args:{includeDeprecated:{type:xt,defaultValue:!1}},resolve:function(i,g){return g.includeDeprecated?i.args:i.args.filter(function(k){return null==k.deprecationReason})}},type:{type:new ke(Ct),resolve:function(i){return i.type}},isDeprecated:{type:new ke(xt),resolve:function(i){return null!=i.deprecationReason}},deprecationReason:{type:ft,resolve:function(i){return i.deprecationReason}}}}}),Or=new mt({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new ke(ft),resolve:function(i){return i.name}},description:{type:ft,resolve:function(i){return i.description}},type:{type:new ke(Ct),resolve:function(i){return i.type}},defaultValue:{type:ft,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(i){var k=Vt(i.defaultValue,i.type);return k?(0,re.print)(k):null}},isDeprecated:{type:new ke(xt),resolve:function(i){return null!=i.deprecationReason}},deprecationReason:{type:ft,resolve:function(i){return i.deprecationReason}}}}}),pn=new mt({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new ke(ft),resolve:function(i){return i.name}},description:{type:ft,resolve:function(i){return i.description}},isDeprecated:{type:new ke(xt),resolve:function(i){return null!=i.deprecationReason}},deprecationReason:{type:ft,resolve:function(i){return i.deprecationReason}}}}}),ut=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),dn=new Lt({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ut.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ut.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ut.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ut.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ut.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ut.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ut.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ut.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Ar={name:"__schema",type:new ke(Gr),description:"Access the current type schema of this server.",args:[],resolve:function(a,i,g,C){return C.schema},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},wr={name:"__type",type:Ct,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new ke(ft),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(a,i,g,C){return C.schema.getType(i.name)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Ir={name:"__typename",type:new ke(ft),description:"The name of the current Object type at runtime.",args:[],resolve:function(a,i,g,C){return C.parentType.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Rr=Object.freeze([Gr,fn,ln,Ct,hn,Or,pn,dn]);function ir(e){return Rr.some(function(a){return e.name===a.name})}function ti(e,a){for(var i=0;i<a.length;i++){var g=a[i];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(e,g.key,g)}}function Wr(e){return(0,w.Z)(e,kt)}function so(e){if(!Wr(e))throw new Error("Expected ".concat((0,E.Z)(e)," to be a GraphQL directive."));return e}var kt=function(){function e(i){var g,C;this.name=i.name,this.description=i.description,this.locations=i.locations,this.isRepeatable=null!==(g=i.isRepeatable)&&void 0!==g&&g,this.extensions=i.extensions&&W(i.extensions),this.astNode=i.astNode,i.name||(0,r.Z)(0,"Directive must be named."),Array.isArray(i.locations)||(0,r.Z)(0,"@".concat(i.name," locations must be an Array."));var k=null!==(C=i.args)&&void 0!==C?C:{};(0,p.Z)(k)&&!Array.isArray(k)||(0,r.Z)(0,"@".concat(i.name," args must be an object with argument names as keys.")),this.args=I(k).map(function(Y){var ce=Y[1];return{name:Y[0],description:ce.description,type:ce.type,defaultValue:ce.defaultValue,deprecationReason:ce.deprecationReason,extensions:ce.extensions&&W(ce.extensions),astNode:ce.astNode}})}var a=e.prototype;return a.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:gr(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},a.toString=function(){return"@"+this.name},a.toJSON=function(){return this.toString()},function oo(e,a,i){a&&ti(e.prototype,a),i&&ti(e,i)}(e,[{key:B.YF,get:function(){return"GraphQLDirective"}}]),e}();(0,V.Z)(kt);var vn=new kt({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[ze.B.FIELD,ze.B.FRAGMENT_SPREAD,ze.B.INLINE_FRAGMENT],args:{if:{type:new ke(xt),description:"Included when true."}}}),mn=new kt({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[ze.B.FIELD,ze.B.FRAGMENT_SPREAD,ze.B.INLINE_FRAGMENT],args:{if:{type:new ke(xt),description:"Skipped when true."}}}),yn="No longer supported",Qr=new kt({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[ze.B.FIELD_DEFINITION,ze.B.ARGUMENT_DEFINITION,ze.B.INPUT_FIELD_DEFINITION,ze.B.ENUM_VALUE],args:{reason:{type:ft,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:yn}}}),gn=new kt({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[ze.B.SCALAR],args:{url:{type:new ke(ft),description:"The URL that specifies the behaviour of this scalar."}}}),qt=Object.freeze([vn,mn,Qr,gn]);function En(e){return qt.some(function(a){return a.name===e.name})}function ri(e,a){for(var i=0;i<a.length;i++){var g=a[i];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(e,g.key,g)}}function ni(e){return(0,w.Z)(e,hr)}function bn(e){if(!ni(e))throw new Error("Expected ".concat((0,E.Z)(e)," to be a GraphQL schema."));return e}var hr=function(){function e(i){var g;this.__validationErrors=!0===i.assumeValid?[]:void 0,(0,p.Z)(i)||(0,r.Z)(0,"Must provide configuration object."),!i.types||Array.isArray(i.types)||(0,r.Z)(0,'"types" must be Array if provided but got: '.concat((0,E.Z)(i.types),".")),!i.directives||Array.isArray(i.directives)||(0,r.Z)(0,'"directives" must be Array if provided but got: '+"".concat((0,E.Z)(i.directives),".")),this.description=i.description,this.extensions=i.extensions&&W(i.extensions),this.astNode=i.astNode,this.extensionASTNodes=i.extensionASTNodes,this._queryType=i.query,this._mutationType=i.mutation,this._subscriptionType=i.subscription,this._directives=null!==(g=i.directives)&&void 0!==g?g:qt;var C=new Set(i.types);if(null!=i.types)for(var k=0,Y=i.types;k<Y.length;k++){var te=Y[k];C.delete(te),Ft(te,C)}null!=this._queryType&&Ft(this._queryType,C),null!=this._mutationType&&Ft(this._mutationType,C),null!=this._subscriptionType&&Ft(this._subscriptionType,C);for(var ce=0,pe=this._directives;ce<pe.length;ce++){var de=pe[ce];if(Wr(de))for(var ge=0,Ee=de.args;ge<Ee.length;ge++)Ft(Ee[ge].type,C)}Ft(Gr,C),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var De=0,Pe=Tr(C);De<Pe.length;De++){var Ue=Pe[De];if(null!=Ue){var Be=Ue.name;if(Be||(0,r.Z)(0,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[Be])throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(Be,'".'));if(this._typeMap[Be]=Ue,ie(Ue))for(var Ge=0,Je=Ue.getInterfaces();Ge<Je.length;Ge++){var tt=Je[Ge];if(ie(tt)){var et=this._implementationsMap[tt.name];void 0===et&&(et=this._implementationsMap[tt.name]={objects:[],interfaces:[]}),et.interfaces.push(Ue)}}else if(Z(Ue))for(var ct=0,lt=Ue.getInterfaces();ct<lt.length;ct++){var Et=lt[ct];if(ie(Et)){var It=this._implementationsMap[Et.name];void 0===It&&(It=this._implementationsMap[Et.name]={objects:[],interfaces:[]}),It.objects.push(Ue)}}}}}var a=e.prototype;return a.getQueryType=function(){return this._queryType},a.getMutationType=function(){return this._mutationType},a.getSubscriptionType=function(){return this._subscriptionType},a.getTypeMap=function(){return this._typeMap},a.getType=function(g){return this.getTypeMap()[g]},a.getPossibleTypes=function(g){return Te(g)?g.getTypes():this.getImplementations(g).objects},a.getImplementations=function(g){return this._implementationsMap[g.name]??{objects:[],interfaces:[]}},a.isPossibleType=function(g,C){return this.isSubType(g,C)},a.isSubType=function(g,C){var k=this._subTypeMap[g.name];if(void 0===k){if(k=Object.create(null),Te(g))for(var Y=0,te=g.getTypes();Y<te.length;Y++)k[te[Y].name]=!0;else{for(var pe=this.getImplementations(g),de=0,ge=pe.objects;de<ge.length;de++)k[ge[de].name]=!0;for(var we=0,De=pe.interfaces;we<De.length;we++)k[De[we].name]=!0}this._subTypeMap[g.name]=k}return void 0!==k[C.name]},a.getDirectives=function(){return this._directives},a.getDirective=function(g){return u(this.getDirectives(),function(C){return C.name===g})},a.toConfig=function(){var g;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:m(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(g=this.extensionASTNodes)&&void 0!==g?g:[],assumeValid:void 0!==this.__validationErrors}},function uo(e,a,i){a&&ri(e.prototype,a),i&&ri(e,i)}(e,[{key:B.YF,get:function(){return"GraphQLSchema"}}]),e}();function Ft(e,a){var i=ht(e);if(!a.has(i))if(a.add(i),Te(i))for(var g=0,C=i.getTypes();g<C.length;g++)Ft(C[g],a);else if(Z(i)||ie(i)){for(var Y=0,te=i.getInterfaces();Y<te.length;Y++)Ft(te[Y],a);for(var pe=0,de=m(i.getFields());pe<de.length;pe++){var ge=de[pe];Ft(ge.type,a);for(var Ee=0,we=ge.args;Ee<we.length;Ee++)Ft(we[Ee].type,a)}}else if(H(i))for(var Pe=0,Ue=m(i.getFields());Pe<Ue.length;Pe++)Ft(Ue[Pe].type,a);return a}function Tn(e){if(bn(e),e.__validationErrors)return e.__validationErrors;var a=new co(e);(function fo(e){var a=e.schema,i=a.getQueryType();if(i){if(!Z(i)){var g;e.reportError("Query root type must be Object type, it cannot be ".concat((0,E.Z)(i),"."),null!==(g=_n(a,"query"))&&void 0!==g?g:i.astNode)}}else e.reportError("Query root type must be provided.",a.astNode);var k,C=a.getMutationType();C&&!Z(C)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,E.Z)(C),"."),null!==(k=_n(a,"mutation"))&&void 0!==k?k:C.astNode);var te,Y=a.getSubscriptionType();Y&&!Z(Y)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,E.Z)(Y),"."),null!==(te=_n(a,"subscription"))&&void 0!==te?te:Y.astNode)})(a),function lo(e){for(var a=0,i=e.schema.getDirectives();a<i.length;a++){var g=i[a];if(Wr(g)){ar(e,g);for(var C=0,k=g.args;C<k.length;C++){var te,Y=k[C];ar(e,Y),z(Y.type)||e.reportError("The type of @".concat(g.name,"(").concat(Y.name,":) must be Input Type ")+"but got: ".concat((0,E.Z)(Y.type),"."),Y.astNode),wt(Y)&&null!=Y.deprecationReason&&e.reportError("Required argument @".concat(g.name,"(").concat(Y.name,":) cannot be deprecated."),[An(Y.astNode),null===(te=Y.astNode)||void 0===te?void 0:te.type])}}else e.reportError("Expected directive but got: ".concat((0,E.Z)(g),"."),g?.astNode)}}(a),function ho(e){for(var a=function Eo(e){var a=Object.create(null),i=[],g=Object.create(null);return function C(k){if(!a[k.name]){a[k.name]=!0,g[k.name]=i.length;for(var Y=m(k.getFields()),te=0;te<Y.length;te++){var ce=Y[te];if(ye(ce.type)&&H(ce.type.ofType)){var pe=ce.type.ofType,de=g[pe.name];if(i.push(ce),void 0===de)C(pe);else{var ge=i.slice(de),Ee=ge.map(function(we){return we.name}).join(".");e.reportError('Cannot reference Input Object "'.concat(pe.name,'" within itself through a series of non-null fields: "').concat(Ee,'".'),ge.map(function(we){return we.astNode}))}i.pop()}}g[k.name]=void 0}}}(e),i=e.schema.getTypeMap(),g=0,C=m(i);g<C.length;g++){var k=C[g];Rt(k)?(ir(k)||ar(e,k),Z(k)||ie(k)?(ii(e,k),ai(e,k)):Te(k)?mo(e,k):Oe(k)?yo(e,k):H(k)&&(go(e,k),a(k))):e.reportError("Expected GraphQL named type but got: ".concat((0,E.Z)(k),"."),k.astNode)}}(a);var i=a.getErrors();return e.__validationErrors=i,i}function Sn(e){var a=Tn(e);if(0!==a.length)throw new Error(a.map(function(i){return i.message}).join("\n\n"))}var co=function(){function e(i){this._errors=[],this.schema=i}var a=e.prototype;return a.reportError=function(g,C){var k=Array.isArray(C)?C.filter(Boolean):C;this.addError(new n._(g,k))},a.addError=function(g){this._errors.push(g)},a.getErrors=function(){return this._errors},e}();function _n(e,a){for(var i=On(e,function(k){return k.operationTypes}),g=0;g<i.length;g++){var C=i[g];if(C.operation===a)return C.type}}function ar(e,a){var i=A(a.name);i&&e.addError(R(i,a.astNode))}function ii(e,a){var i=m(a.getFields());0===i.length&&e.reportError("Type ".concat(a.name," must define one or more fields."),pr(a));for(var g=0;g<i.length;g++){var k,C=i[g];ar(e,C),ve(C.type)||e.reportError("The type of ".concat(a.name,".").concat(C.name," must be Output Type ")+"but got: ".concat((0,E.Z)(C.type),"."),null===(k=C.astNode)||void 0===k?void 0:k.type);for(var Y=0,te=C.args;Y<te.length;Y++){var de,ge,ce=te[Y],pe=ce.name;ar(e,ce),z(ce.type)||e.reportError("The type of ".concat(a.name,".").concat(C.name,"(").concat(pe,":) must be Input ")+"Type but got: ".concat((0,E.Z)(ce.type),"."),null===(de=ce.astNode)||void 0===de?void 0:de.type),wt(ce)&&null!=ce.deprecationReason&&e.reportError("Required argument ".concat(a.name,".").concat(C.name,"(").concat(pe,":) cannot be deprecated."),[An(ce.astNode),null===(ge=ce.astNode)||void 0===ge?void 0:ge.type])}}}function ai(e,a){for(var i=Object.create(null),g=0,C=a.getInterfaces();g<C.length;g++){var k=C[g];ie(k)?a!==k?i[k.name]?e.reportError("Type ".concat(a.name," can only implement ").concat(k.name," once."),Dr(a,k)):(i[k.name]=!0,vo(e,a,k),po(e,a,k)):e.reportError("Type ".concat(a.name," cannot implement itself because it would create a circular reference."),Dr(a,k)):e.reportError("Type ".concat((0,E.Z)(a)," must only implement Interface types, ")+"it cannot implement ".concat((0,E.Z)(k),"."),Dr(a,k))}}function po(e,a,i){for(var g=a.getFields(),C=0,k=m(i.getFields());C<k.length;C++){var Y=k[C],te=Y.name,ce=g[te];if(ce){var pe,de;jt(e.schema,ce.type,Y.type)||e.reportError("Interface field ".concat(i.name,".").concat(te," expects type ")+"".concat((0,E.Z)(Y.type)," but ").concat(a.name,".").concat(te," ")+"is type ".concat((0,E.Z)(ce.type),"."),[null===(pe=Y.astNode)||void 0===pe?void 0:pe.type,null===(de=ce.astNode)||void 0===de?void 0:de.type]);for(var ge=function(Je,tt){var Et,It,et=tt[Je],ct=et.name,lt=u(ce.args,function(Jt){return Jt.name===ct});if(!lt)return e.reportError("Interface field argument ".concat(i.name,".").concat(te,"(").concat(ct,":) expected but ").concat(a.name,".").concat(te," does not provide it."),[et.astNode,ce.astNode]),"continue";nr(et.type,lt.type)||e.reportError("Interface field argument ".concat(i.name,".").concat(te,"(").concat(ct,":) ")+"expects type ".concat((0,E.Z)(et.type)," but ")+"".concat(a.name,".").concat(te,"(").concat(ct,":) is type ")+"".concat((0,E.Z)(lt.type),"."),[null===(Et=et.astNode)||void 0===Et?void 0:Et.type,null===(It=lt.astNode)||void 0===It?void 0:It.type])},Ee=0,we=Y.args;Ee<we.length;Ee++)ge(Ee,we);for(var Pe=function(Je,tt){var et=tt[Je],ct=et.name;!u(Y.args,function(Et){return Et.name===ct})&&wt(et)&&e.reportError("Object field ".concat(a.name,".").concat(te," includes required argument ").concat(ct," that is missing from the Interface field ").concat(i.name,".").concat(te,"."),[et.astNode,Y.astNode])},Ue=0,Be=ce.args;Ue<Be.length;Ue++)Pe(Ue,Be)}else e.reportError("Interface field ".concat(i.name,".").concat(te," expected but ").concat(a.name," does not provide it."),[Y.astNode].concat(pr(a)))}}function vo(e,a,i){for(var g=a.getInterfaces(),C=0,k=i.getInterfaces();C<k.length;C++){var Y=k[C];-1===g.indexOf(Y)&&e.reportError(Y===a?"Type ".concat(a.name," cannot implement ").concat(i.name," because it would create a circular reference."):"Type ".concat(a.name," must implement ").concat(Y.name," because it is implemented by ").concat(i.name,"."),[].concat(Dr(i,Y),Dr(a,i)))}}function mo(e,a){var i=a.getTypes();0===i.length&&e.reportError("Union type ".concat(a.name," must define one or more member types."),pr(a));for(var g=Object.create(null),C=0;C<i.length;C++){var k=i[C];g[k.name]?e.reportError("Union type ".concat(a.name," can only include type ").concat(k.name," once."),oi(a,k.name)):(g[k.name]=!0,Z(k)||e.reportError("Union type ".concat(a.name," can only include Object types, ")+"it cannot include ".concat((0,E.Z)(k),"."),oi(a,String(k))))}}function yo(e,a){var i=a.getValues();0===i.length&&e.reportError("Enum type ".concat(a.name," must define one or more values."),pr(a));for(var g=0;g<i.length;g++){var C=i[g],k=C.name;ar(e,C),("true"===k||"false"===k||"null"===k)&&e.reportError("Enum type ".concat(a.name," cannot include value: ").concat(k,"."),C.astNode)}}function go(e,a){var i=m(a.getFields());0===i.length&&e.reportError("Input Object type ".concat(a.name," must define one or more fields."),pr(a));for(var g=0;g<i.length;g++){var k,Y,C=i[g];ar(e,C),z(C.type)||e.reportError("The type of ".concat(a.name,".").concat(C.name," must be Input Type ")+"but got: ".concat((0,E.Z)(C.type),"."),null===(k=C.astNode)||void 0===k?void 0:k.type),fr(C)&&null!=C.deprecationReason&&e.reportError("Required input field ".concat(a.name,".").concat(C.name," cannot be deprecated."),[An(C.astNode),null===(Y=C.astNode)||void 0===Y?void 0:Y.type])}}function pr(e){var a=e.astNode,i=e.extensionASTNodes;return a?i?[a].concat(i):[a]:i??[]}function On(e,a){for(var i=[],g=0,C=pr(e);g<C.length;g++){var k;i=i.concat(null!==(k=a(C[g]))&&void 0!==k?k:[])}return i}function Dr(e,a){return On(e,function(i){return i.interfaces}).filter(function(i){return i.name.value===a.name})}function oi(e,a){return On(e,function(i){return i.types}).filter(function(i){return i.name.value===a})}function An(e){var a;return null==e||null===(a=e.directives)||void 0===a?void 0:a.find(function(i){return i.name.value===Qr.name})}var wn=d(31279);function Ot(e,a){var i;return a.kind===j.h.LIST_TYPE?(i=Ot(e,a.type))&&new qe(i):a.kind===j.h.NON_NULL_TYPE?(i=Ot(e,a.type))&&new ke(i):a.kind===j.h.NAMED_TYPE?e.getType(a.name.value):void(0,J.Z)(0,"Unexpected type node: "+(0,E.Z)(a))}var In=function(){function e(i,g,C){this._schema=i,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=g??bo,C&&(z(C)&&this._inputTypeStack.push(C),Ke(C)&&this._parentTypeStack.push(C),ve(C)&&this._typeStack.push(C))}var a=e.prototype;return a.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},a.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},a.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},a.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},a.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},a.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},a.getDirective=function(){return this._directive},a.getArgument=function(){return this._argument},a.getEnumValue=function(){return this._enumValue},a.enter=function(g){var C=this._schema;switch(g.kind){case j.h.SELECTION_SET:var k=ht(this.getType());this._parentTypeStack.push(Ke(k)?k:void 0);break;case j.h.FIELD:var te,ce,Y=this.getParentType();Y&&(te=this._getFieldDef(C,Y,g))&&(ce=te.type),this._fieldDefStack.push(te),this._typeStack.push(ve(ce)?ce:void 0);break;case j.h.DIRECTIVE:this._directive=C.getDirective(g.name.value);break;case j.h.OPERATION_DEFINITION:var pe;switch(g.operation){case"query":pe=C.getQueryType();break;case"mutation":pe=C.getMutationType();break;case"subscription":pe=C.getSubscriptionType()}this._typeStack.push(Z(pe)?pe:void 0);break;case j.h.INLINE_FRAGMENT:case j.h.FRAGMENT_DEFINITION:var de=g.typeCondition,ge=de?Ot(C,de):ht(this.getType());this._typeStack.push(ve(ge)?ge:void 0);break;case j.h.VARIABLE_DEFINITION:var Ee=Ot(C,g.type);this._inputTypeStack.push(z(Ee)?Ee:void 0);break;case j.h.ARGUMENT:var we,De,Pe,Ue=null!==(we=this.getDirective())&&void 0!==we?we:this.getFieldDef();Ue&&(De=u(Ue.args,function(Et){return Et.name===g.name.value}))&&(Pe=De.type),this._argument=De,this._defaultValueStack.push(De?De.defaultValue:void 0),this._inputTypeStack.push(z(Pe)?Pe:void 0);break;case j.h.LIST:var Be=Wt(this.getInputType()),Ge=U(Be)?Be.ofType:Be;this._defaultValueStack.push(void 0),this._inputTypeStack.push(z(Ge)?Ge:void 0);break;case j.h.OBJECT_FIELD:var tt,et,Je=ht(this.getInputType());H(Je)&&(et=Je.getFields()[g.name.value])&&(tt=et.type),this._defaultValueStack.push(et?et.defaultValue:void 0),this._inputTypeStack.push(z(tt)?tt:void 0);break;case j.h.ENUM:var lt,ct=ht(this.getInputType());Oe(ct)&&(lt=ct.getValue(g.value)),this._enumValue=lt}},a.leave=function(g){switch(g.kind){case j.h.SELECTION_SET:this._parentTypeStack.pop();break;case j.h.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case j.h.DIRECTIVE:this._directive=null;break;case j.h.OPERATION_DEFINITION:case j.h.INLINE_FRAGMENT:case j.h.FRAGMENT_DEFINITION:this._typeStack.pop();break;case j.h.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case j.h.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case j.h.LIST:case j.h.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case j.h.ENUM:this._enumValue=null}},e}();function bo(e,a,i){var g=i.name.value;return g===Ar.name&&e.getQueryType()===a?Ar:g===wr.name&&e.getQueryType()===a?wr:g===Ir.name&&Ke(a)?Ir:Z(a)||ie(a)?a.getFields()[g]:void 0}function Rn(e,a){return{enter:function(g){e.enter(g);var C=(0,c.CK)(a,g.kind,!1);if(C){var k=C.apply(a,arguments);return void 0!==k&&(e.leave(g),(0,wn.UG)(k)&&e.enter(k)),k}},leave:function(g){var k,C=(0,c.CK)(a,g.kind,!0);return C&&(k=C.apply(a,arguments)),e.leave(g),k}}}function To(e){return Dn(e)||xn(e)||Cn(e)}function Dn(e){return e.kind===j.h.OPERATION_DEFINITION||e.kind===j.h.FRAGMENT_DEFINITION}function So(e){return e.kind===j.h.FIELD||e.kind===j.h.FRAGMENT_SPREAD||e.kind===j.h.INLINE_FRAGMENT}function _o(e){return e.kind===j.h.VARIABLE||e.kind===j.h.INT||e.kind===j.h.FLOAT||e.kind===j.h.STRING||e.kind===j.h.BOOLEAN||e.kind===j.h.NULL||e.kind===j.h.ENUM||e.kind===j.h.LIST||e.kind===j.h.OBJECT}function Oo(e){return e.kind===j.h.NAMED_TYPE||e.kind===j.h.LIST_TYPE||e.kind===j.h.NON_NULL_TYPE}function xn(e){return e.kind===j.h.SCHEMA_DEFINITION||dr(e)||e.kind===j.h.DIRECTIVE_DEFINITION}function dr(e){return e.kind===j.h.SCALAR_TYPE_DEFINITION||e.kind===j.h.OBJECT_TYPE_DEFINITION||e.kind===j.h.INTERFACE_TYPE_DEFINITION||e.kind===j.h.UNION_TYPE_DEFINITION||e.kind===j.h.ENUM_TYPE_DEFINITION||e.kind===j.h.INPUT_OBJECT_TYPE_DEFINITION}function Cn(e){return e.kind===j.h.SCHEMA_EXTENSION||Hr(e)}function Hr(e){return e.kind===j.h.SCALAR_TYPE_EXTENSION||e.kind===j.h.OBJECT_TYPE_EXTENSION||e.kind===j.h.INTERFACE_TYPE_EXTENSION||e.kind===j.h.UNION_TYPE_EXTENSION||e.kind===j.h.ENUM_TYPE_EXTENSION||e.kind===j.h.INPUT_OBJECT_TYPE_EXTENSION}function si(e){return{Document:function(i){for(var g=0,C=i.definitions;g<C.length;g++){var k=C[g];Dn(k)||e.reportError(new n._("The ".concat(k.kind===j.h.SCHEMA_DEFINITION||k.kind===j.h.SCHEMA_EXTENSION?"schema":'"'+k.name.value+'"'," definition is not executable."),k))}return!1}}}function ui(e){var a=Object.create(null);return{OperationDefinition:function(g){var C=g.name;return C&&(a[C.value]?e.reportError(new n._('There can be only one operation named "'.concat(C.value,'".'),[a[C.value],C])):a[C.value]=C),!1},FragmentDefinition:function(){return!1}}}function ci(e){var a=0;return{Document:function(g){a=g.definitions.filter(function(C){return C.kind===j.h.OPERATION_DEFINITION}).length},OperationDefinition:function(g){!g.name&&a>1&&e.reportError(new n._("This anonymous operation must be the only defined operation.",g))}}}function fi(e){return{OperationDefinition:function(i){"subscription"===i.operation&&1!==i.selectionSet.selections.length&&e.reportError(new n._(i.name?'Subscription "'.concat(i.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",i.selectionSet.selections.slice(1)))}}}function Pn(e){for(var a=e.getSchema(),i=a?a.getTypeMap():Object.create(null),g=Object.create(null),C=0,k=e.getDocument().definitions;C<k.length;C++){var Y=k[C];dr(Y)&&(g[Y.name.value]=!0)}var te=Object.keys(i).concat(Object.keys(g));return{NamedType:function(pe,de,ge,Ee,we){var De=pe.name.value;if(!i[De]&&!g[De]){var Pe,Ue=null!==(Pe=we[2])&&void 0!==Pe?Pe:ge,Be=null!=Ue&&function wo(e){return!Array.isArray(e)&&(xn(e)||Cn(e))}(Ue);if(Be&&function Ao(e){return-1!==li.indexOf(e)}(De))return;var Ge=X(De,Be?li.concat(te):te);e.reportError(new n._('Unknown type "'.concat(De,'".')+y(Ge),pe))}}}}var li=[].concat(_r,Rr).map(function(e){return e.name});function hi(e){return{InlineFragment:function(i){var g=i.typeCondition;if(g){var C=Ot(e.getSchema(),g);if(C&&!Ke(C)){var k=(0,re.print)(g);e.reportError(new n._('Fragment cannot condition on non composite type "'.concat(k,'".'),g))}}},FragmentDefinition:function(i){var g=Ot(e.getSchema(),i.typeCondition);if(g&&!Ke(g)){var C=(0,re.print)(i.typeCondition);e.reportError(new n._('Fragment "'.concat(i.name.value,'" cannot condition on non composite type "').concat(C,'".'),i.typeCondition))}}}}function pi(e){return{VariableDefinition:function(i){var g=Ot(e.getSchema(),i.type);if(g&&!z(g)){var C=i.variable.name.value,k=(0,re.print)(i.type);e.reportError(new n._('Variable "$'.concat(C,'" cannot be non-input type "').concat(k,'".'),i.type))}}}}function di(e){return{Field:function(i){var g=e.getType(),C=i.selectionSet;if(g)if(Ie(ht(g))){if(C){var k=i.name.value,Y=(0,E.Z)(g);e.reportError(new n._('Field "'.concat(k,'" must not have a selection since type "').concat(Y,'" has no subfields.'),C))}}else if(!C){var te=i.name.value,ce=(0,E.Z)(g);e.reportError(new n._('Field "'.concat(te,'" of type "').concat(ce,'" must have a selection of subfields. Did you mean "').concat(te,' { ... }"?'),i))}}}}function vi(e){return{Field:function(i){var g=e.getParentType();if(g&&!e.getFieldDef()){var k=e.getSchema(),Y=i.name.value,te=y("to use an inline fragment on",function Io(e,a,i){if(!$e(a))return[];for(var g=new Set,C=Object.create(null),k=0,Y=e.getPossibleTypes(a);k<Y.length;k++){var te=Y[k];if(te.getFields()[i]){g.add(te),C[te.name]=1;for(var ce=0,pe=te.getInterfaces();ce<pe.length;ce++){var de,ge=pe[ce];!ge.getFields()[i]||(g.add(ge),C[ge.name]=(null!==(de=C[ge.name])&&void 0!==de?de:0)+1)}}}return Tr(g).sort(function(Ee,we){var De=C[we.name]-C[Ee.name];return 0!==De?De:ie(Ee)&&e.isSubType(Ee,we)?-1:ie(we)&&e.isSubType(we,Ee)?1:Q(Ee.name,we.name)}).map(function(Ee){return Ee.name})}(k,g,Y));""===te&&(te=y(function Ro(e,a){return Z(e)||ie(e)?X(a,Object.keys(e.getFields())):[]}(g,Y))),e.reportError(new n._('Cannot query field "'.concat(Y,'" on type "').concat(g.name,'".')+te,i))}}}}function mi(e){var a=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(g){var C=g.name.value;return a[C]?e.reportError(new n._('There can be only one fragment named "'.concat(C,'".'),[a[C],g.name])):a[C]=g.name,!1}}}function yi(e){return{FragmentSpread:function(i){var g=i.name.value;e.getFragment(g)||e.reportError(new n._('Unknown fragment "'.concat(g,'".'),i.name))}}}function gi(e){var a=[],i=[];return{OperationDefinition:function(C){return a.push(C),!1},FragmentDefinition:function(C){return i.push(C),!1},Document:{leave:function(){for(var C=Object.create(null),k=0;k<a.length;k++)for(var te=0,ce=e.getRecursivelyReferencedFragments(a[k]);te<ce.length;te++)C[ce[te].name.value]=!0;for(var de=0;de<i.length;de++){var ge=i[de],Ee=ge.name.value;!0!==C[Ee]&&e.reportError(new n._('Fragment "'.concat(Ee,'" is never used.'),ge))}}}}}function Ei(e){return{InlineFragment:function(i){var g=e.getType(),C=e.getParentType();if(Ke(g)&&Ke(C)&&!lr(e.getSchema(),g,C)){var k=(0,E.Z)(C),Y=(0,E.Z)(g);e.reportError(new n._('Fragment cannot be spread here as objects of type "'.concat(k,'" can never be of type "').concat(Y,'".'),i))}},FragmentSpread:function(i){var g=i.name.value,C=function Do(e,a){var i=e.getFragment(a);if(i){var g=Ot(e.getSchema(),i.typeCondition);if(Ke(g))return g}}(e,g),k=e.getParentType();if(C&&k&&!lr(e.getSchema(),C,k)){var Y=(0,E.Z)(k),te=(0,E.Z)(C);e.reportError(new n._('Fragment "'.concat(g,'" cannot be spread here as objects of type "').concat(Y,'" can never be of type "').concat(te,'".'),i))}}}}function bi(e){var a=Object.create(null),i=[],g=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(Y){return C(Y),!1}};function C(k){if(!a[k.name.value]){var Y=k.name.value;a[Y]=!0;var te=e.getFragmentSpreads(k.selectionSet);if(0!==te.length){g[Y]=i.length;for(var ce=0;ce<te.length;ce++){var pe=te[ce],de=pe.name.value,ge=g[de];if(i.push(pe),void 0===ge){var Ee=e.getFragment(de);Ee&&C(Ee)}else{var we=i.slice(ge),De=we.slice(0,-1).map(function(Pe){return'"'+Pe.name.value+'"'}).join(", ");e.reportError(new n._('Cannot spread fragment "'.concat(de,'" within itself')+(""!==De?" via ".concat(De,"."):"."),we))}i.pop()}g[Y]=void 0}}}}function Ti(e){var a=Object.create(null);return{OperationDefinition:function(){a=Object.create(null)},VariableDefinition:function(g){var C=g.variable.name.value;a[C]?e.reportError(new n._('There can be only one variable named "$'.concat(C,'".'),[a[C],g.variable.name])):a[C]=g.variable.name}}}function Si(e){var a=Object.create(null);return{OperationDefinition:{enter:function(){a=Object.create(null)},leave:function(g){for(var C=e.getRecursiveVariableUsages(g),k=0;k<C.length;k++){var te=C[k].node,ce=te.name.value;!0!==a[ce]&&e.reportError(new n._(g.name?'Variable "$'.concat(ce,'" is not defined by operation "').concat(g.name.value,'".'):'Variable "$'.concat(ce,'" is not defined.'),[te,g]))}}},VariableDefinition:function(g){a[g.variable.name.value]=!0}}}function _i(e){var a=[];return{OperationDefinition:{enter:function(){a=[]},leave:function(g){for(var C=Object.create(null),k=e.getRecursiveVariableUsages(g),Y=0;Y<k.length;Y++)C[k[Y].node.name.value]=!0;for(var pe=0,de=a;pe<de.length;pe++){var ge=de[pe],Ee=ge.variable.name.value;!0!==C[Ee]&&e.reportError(new n._(g.name?'Variable "$'.concat(Ee,'" is never used in operation "').concat(g.name.value,'".'):'Variable "$'.concat(Ee,'" is never used.'),ge))}}},VariableDefinition:function(g){a.push(g)}}}function Nn(e){for(var a=Object.create(null),i=e.getSchema(),g=i?i.getDirectives():qt,C=0;C<g.length;C++){var k=g[C];a[k.name]=k.locations}for(var Y=e.getDocument().definitions,te=0;te<Y.length;te++){var ce=Y[te];ce.kind===j.h.DIRECTIVE_DEFINITION&&(a[ce.name.value]=ce.locations.map(function(pe){return pe.value}))}return{Directive:function(de,ge,Ee,we,De){var Pe=de.name.value,Ue=a[Pe];if(Ue){var Be=function xo(e){var a=e[e.length-1];switch(!Array.isArray(a)||(0,J.Z)(0),a.kind){case j.h.OPERATION_DEFINITION:return function Co(e){switch(e){case"query":return ze.B.QUERY;case"mutation":return ze.B.MUTATION;case"subscription":return ze.B.SUBSCRIPTION}(0,J.Z)(0,"Unexpected operation: "+(0,E.Z)(e))}(a.operation);case j.h.FIELD:return ze.B.FIELD;case j.h.FRAGMENT_SPREAD:return ze.B.FRAGMENT_SPREAD;case j.h.INLINE_FRAGMENT:return ze.B.INLINE_FRAGMENT;case j.h.FRAGMENT_DEFINITION:return ze.B.FRAGMENT_DEFINITION;case j.h.VARIABLE_DEFINITION:return ze.B.VARIABLE_DEFINITION;case j.h.SCHEMA_DEFINITION:case j.h.SCHEMA_EXTENSION:return ze.B.SCHEMA;case j.h.SCALAR_TYPE_DEFINITION:case j.h.SCALAR_TYPE_EXTENSION:return ze.B.SCALAR;case j.h.OBJECT_TYPE_DEFINITION:case j.h.OBJECT_TYPE_EXTENSION:return ze.B.OBJECT;case j.h.FIELD_DEFINITION:return ze.B.FIELD_DEFINITION;case j.h.INTERFACE_TYPE_DEFINITION:case j.h.INTERFACE_TYPE_EXTENSION:return ze.B.INTERFACE;case j.h.UNION_TYPE_DEFINITION:case j.h.UNION_TYPE_EXTENSION:return ze.B.UNION;case j.h.ENUM_TYPE_DEFINITION:case j.h.ENUM_TYPE_EXTENSION:return ze.B.ENUM;case j.h.ENUM_VALUE_DEFINITION:return ze.B.ENUM_VALUE;case j.h.INPUT_OBJECT_TYPE_DEFINITION:case j.h.INPUT_OBJECT_TYPE_EXTENSION:return ze.B.INPUT_OBJECT;case j.h.INPUT_VALUE_DEFINITION:return e[e.length-3].kind===j.h.INPUT_OBJECT_TYPE_DEFINITION?ze.B.INPUT_FIELD_DEFINITION:ze.B.ARGUMENT_DEFINITION}}(De);Be&&-1===Ue.indexOf(Be)&&e.reportError(new n._('Directive "@'.concat(Pe,'" may not be used on ').concat(Be,"."),de))}else e.reportError(new n._('Unknown directive "@'.concat(Pe,'".'),de))}}}function Mn(e){for(var a=Object.create(null),i=e.getSchema(),g=i?i.getDirectives():qt,C=0;C<g.length;C++){var k=g[C];a[k.name]=!k.isRepeatable}for(var Y=e.getDocument().definitions,te=0;te<Y.length;te++){var ce=Y[te];ce.kind===j.h.DIRECTIVE_DEFINITION&&(a[ce.name.value]=!ce.repeatable)}var pe=Object.create(null),de=Object.create(null);return{enter:function(Ee){if(null!=Ee.directives){var we;if(Ee.kind===j.h.SCHEMA_DEFINITION||Ee.kind===j.h.SCHEMA_EXTENSION)we=pe;else if(dr(Ee)||Hr(Ee)){var De=Ee.name.value;void 0===(we=de[De])&&(de[De]=we=Object.create(null))}else we=Object.create(null);for(var Pe=0,Ue=Ee.directives;Pe<Ue.length;Pe++){var Be=Ue[Pe],Ge=Be.name.value;a[Ge]&&(we[Ge]?e.reportError(new n._('The directive "@'.concat(Ge,'" can only be used once at this location.'),[we[Ge],Be])):we[Ge]=Be)}}}}}function Oi(e,a){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(e);a&&(g=g.filter(function(C){return Object.getOwnPropertyDescriptor(e,C).enumerable})),i.push.apply(i,g)}return i}function Ai(e){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?Oi(Object(i),!0).forEach(function(g){Po(e,g,i[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Oi(Object(i)).forEach(function(g){Object.defineProperty(e,g,Object.getOwnPropertyDescriptor(i,g))})}return e}function Po(e,a,i){return a in e?Object.defineProperty(e,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[a]=i,e}function wi(e){return Ai(Ai({},Ii(e)),{},{Argument:function(i){var g=e.getArgument(),C=e.getFieldDef(),k=e.getParentType();if(!g&&C&&k){var Y=i.name.value,ce=X(Y,C.args.map(function(pe){return pe.name}));e.reportError(new n._('Unknown argument "'.concat(Y,'" on field "').concat(k.name,".").concat(C.name,'".')+y(ce),i))}}})}function Ii(e){for(var a=Object.create(null),i=e.getSchema(),g=i?i.getDirectives():qt,C=0;C<g.length;C++){var k=g[C];a[k.name]=k.args.map(function(ge){return ge.name})}for(var Y=e.getDocument().definitions,te=0;te<Y.length;te++){var ce=Y[te];if(ce.kind===j.h.DIRECTIVE_DEFINITION){var pe,de=null!==(pe=ce.arguments)&&void 0!==pe?pe:[];a[ce.name.value]=de.map(function(ge){return ge.name.value})}}return{Directive:function(Ee){var we=Ee.name.value,De=a[we];if(Ee.arguments&&De)for(var Pe=0,Ue=Ee.arguments;Pe<Ue.length;Pe++){var Be=Ue[Pe],Ge=Be.name.value;if(-1===De.indexOf(Ge)){var Je=X(Ge,De);e.reportError(new n._('Unknown argument "'.concat(Ge,'" on directive "@').concat(we,'".')+y(Je),Be))}}return!1}}}function Ln(e){var a=Object.create(null);return{Field:function(){a=Object.create(null)},Directive:function(){a=Object.create(null)},Argument:function(g){var C=g.name.value;return a[C]?e.reportError(new n._('There can be only one argument named "'.concat(C,'".'),[a[C],g.name])):a[C]=g.name,!1}}}function Ri(e){return{ListValue:function(i){if(!U(Wt(e.getParentInputType())))return or(e,i),!1},ObjectValue:function(i){var g=ht(e.getInputType());if(!H(g))return or(e,i),!1;for(var C=K(i.fields,function(de){return de.name.value}),k=0,Y=m(g.getFields());k<Y.length;k++){var te=Y[k];if(!C[te.name]&&fr(te)){var pe=(0,E.Z)(te.type);e.reportError(new n._('Field "'.concat(g.name,".").concat(te.name,'" of required type "').concat(pe,'" was not provided.'),i))}}},ObjectField:function(i){var g=ht(e.getParentInputType());if(!e.getInputType()&&H(g)){var k=X(i.name.value,Object.keys(g.getFields()));e.reportError(new n._('Field "'.concat(i.name.value,'" is not defined by type "').concat(g.name,'".')+y(k),i))}},NullValue:function(i){var g=e.getInputType();ye(g)&&e.reportError(new n._('Expected value of type "'.concat((0,E.Z)(g),'", found ').concat((0,re.print)(i),"."),i))},EnumValue:function(i){return or(e,i)},IntValue:function(i){return or(e,i)},FloatValue:function(i){return or(e,i)},StringValue:function(i){return or(e,i)},BooleanValue:function(i){return or(e,i)}}}function or(e,a){var i=e.getInputType();if(i){var g=ht(i);if(!Ie(g)){var C=(0,E.Z)(i);return void e.reportError(new n._('Expected value of type "'.concat(C,'", found ').concat((0,re.print)(a),"."),a))}try{if(void 0===g.parseLiteral(a,void 0)){var Y=(0,E.Z)(i);e.reportError(new n._('Expected value of type "'.concat(Y,'", found ').concat((0,re.print)(a),"."),a))}}catch(ce){var te=(0,E.Z)(i);e.reportError(ce instanceof n._?ce:new n._('Expected value of type "'.concat(te,'", found ').concat((0,re.print)(a),"; ")+ce.message,a,void 0,void 0,void 0,ce))}}}function Di(e,a){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(e);a&&(g=g.filter(function(C){return Object.getOwnPropertyDescriptor(e,C).enumerable})),i.push.apply(i,g)}return i}function xi(e){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?Di(Object(i),!0).forEach(function(g){No(e,g,i[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Di(Object(i)).forEach(function(g){Object.defineProperty(e,g,Object.getOwnPropertyDescriptor(i,g))})}return e}function No(e,a,i){return a in e?Object.defineProperty(e,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[a]=i,e}function Ci(e){return xi(xi({},Pi(e)),{},{Field:{leave:function(i){var g,C=e.getFieldDef();if(!C)return!1;for(var Y=K(null!==(g=i.arguments)&&void 0!==g?g:[],function(Ee){return Ee.name.value}),te=0,ce=C.args;te<ce.length;te++){var pe=ce[te];if(!Y[pe.name]&&wt(pe)){var ge=(0,E.Z)(pe.type);e.reportError(new n._('Field "'.concat(C.name,'" argument "').concat(pe.name,'" of type "').concat(ge,'" is required, but it was not provided.'),i))}}}}})}function Pi(e){for(var a=Object.create(null),i=e.getSchema(),g=i?i.getDirectives():qt,C=0;C<g.length;C++){var k=g[C];a[k.name]=K(k.args.filter(wt),function(ge){return ge.name})}for(var Y=e.getDocument().definitions,te=0;te<Y.length;te++){var ce=Y[te];if(ce.kind===j.h.DIRECTIVE_DEFINITION){var pe,de=null!==(pe=ce.arguments)&&void 0!==pe?pe:[];a[ce.name.value]=K(de.filter(Mo),function(ge){return ge.name.value})}}return{Directive:{leave:function(Ee){var we=Ee.name.value,De=a[we];if(De)for(var Pe,Be=K(null!==(Pe=Ee.arguments)&&void 0!==Pe?Pe:[],function(lt){return lt.name.value}),Ge=0,Je=Object.keys(De);Ge<Je.length;Ge++){var tt=Je[Ge];if(!Be[tt]){var et=De[tt].type,ct=b(et)?(0,E.Z)(et):(0,re.print)(et);e.reportError(new n._('Directive "@'.concat(we,'" argument "').concat(tt,'" of type "').concat(ct,'" is required, but it was not provided.'),Ee))}}}}}}function Mo(e){return e.type.kind===j.h.NON_NULL_TYPE&&null==e.defaultValue}function Ni(e){var a=Object.create(null);return{OperationDefinition:{enter:function(){a=Object.create(null)},leave:function(g){for(var C=e.getRecursiveVariableUsages(g),k=0;k<C.length;k++){var Y=C[k],te=Y.node,ce=Y.type,pe=Y.defaultValue,de=te.name.value,ge=a[de];if(ge&&ce){var Ee=e.getSchema(),we=Ot(Ee,ge.type);if(we&&!Lo(Ee,we,ge.defaultValue,ce,pe)){var De=(0,E.Z)(we),Pe=(0,E.Z)(ce);e.reportError(new n._('Variable "$'.concat(de,'" of type "').concat(De,'" used in position expecting type "').concat(Pe,'".'),[ge,te]))}}}}},VariableDefinition:function(g){a[g.variable.name.value]=g}}}function Lo(e,a,i,g,C){return ye(g)&&!ye(a)?(null!=i&&i.kind!==j.h.NULL||void 0!==C)&&jt(e,a,g.ofType):jt(e,a,g)}function Mi(e){return Array.isArray(e)?e.map(function(a){var g=a[1];return'subfields "'.concat(a[0],'" conflict because ')+Mi(g)}).join(" and "):e}function Li(e){var a=new Ko,i=new Map;return{SelectionSet:function(C){for(var k=function ko(e,a,i,g,C){var k=[],Y=Zr(e,a,g,C),te=Y[0],ce=Y[1];if(function Uo(e,a,i,g,C){for(var k=0,Y=I(C);k<Y.length;k++){var te=Y[k],ce=te[0],pe=te[1];if(pe.length>1)for(var de=0;de<pe.length;de++)for(var ge=de+1;ge<pe.length;ge++){var Ee=ki(e,i,g,!1,ce,pe[de],pe[ge]);Ee&&a.push(Ee)}}}(e,k,a,i,te),0!==ce.length)for(var pe=0;pe<ce.length;pe++){zr(e,k,a,i,!1,te,ce[pe]);for(var de=pe+1;de<ce.length;de++)qr(e,k,a,i,!1,ce[pe],ce[de])}return k}(e,i,a,e.getParentType(),C),Y=0;Y<k.length;Y++){var te=k[Y],ce=te[0],pe=ce[0],ge=te[1],Ee=te[2],we=Mi(ce[1]);e.reportError(new n._('Fields "'.concat(pe,'" conflict because ').concat(we,". Use different aliases on the fields to fetch both if this was intentional."),ge.concat(Ee)))}}}}function zr(e,a,i,g,C,k,Y){var te=e.getFragment(Y);if(te){var ce=Un(e,i,te),pe=ce[0],de=ce[1];if(k!==pe){kn(e,a,i,g,C,k,pe);for(var ge=0;ge<de.length;ge++)zr(e,a,i,g,C,k,de[ge])}}}function qr(e,a,i,g,C,k,Y){if(k!==Y&&!g.has(k,Y,C)){g.add(k,Y,C);var te=e.getFragment(k),ce=e.getFragment(Y);if(te&&ce){var pe=Un(e,i,te),de=pe[0],ge=pe[1],Ee=Un(e,i,ce),De=Ee[1];kn(e,a,i,g,C,de,Ee[0]);for(var Pe=0;Pe<De.length;Pe++)qr(e,a,i,g,C,k,De[Pe]);for(var Ue=0;Ue<ge.length;Ue++)qr(e,a,i,g,C,ge[Ue],Y)}}}function kn(e,a,i,g,C,k,Y){for(var te=0,ce=Object.keys(k);te<ce.length;te++){var pe=ce[te],de=Y[pe];if(de)for(var ge=k[pe],Ee=0;Ee<ge.length;Ee++)for(var we=0;we<de.length;we++){var De=ki(e,i,g,C,pe,ge[Ee],de[we]);De&&a.push(De)}}}function ki(e,a,i,g,C,k,Y){var te=k[0],ce=k[1],pe=k[2],de=Y[0],ge=Y[1],Ee=Y[2],we=g||te!==de&&Z(te)&&Z(de);if(!we){var De,Pe,Ue=ce.name.value,Be=ge.name.value;if(Ue!==Be)return[[C,'"'.concat(Ue,'" and "').concat(Be,'" are different fields')],[ce],[ge]];if(!function Bo(e,a){return e.length===a.length&&e.every(function(i){var g=u(a,function(C){return C.name.value===i.name.value});return!!g&&function jo(e,a){return(0,re.print)(e)===(0,re.print)(a)}(i.value,g.value)})}(null!==(De=ce.arguments)&&void 0!==De?De:[],null!==(Pe=ge.arguments)&&void 0!==Pe?Pe:[]))return[[C,"they have differing arguments"],[ce],[ge]]}var tt=pe?.type,et=Ee?.type;if(tt&&et&&Fn(tt,et))return[[C,'they return conflicting types "'.concat((0,E.Z)(tt),'" and "').concat((0,E.Z)(et),'"')],[ce],[ge]];var ct=ce.selectionSet,lt=ge.selectionSet;if(ct&<){var Et=function Fo(e,a,i,g,C,k,Y,te){var ce=[],pe=Zr(e,a,C,k),de=pe[0],ge=pe[1],Ee=Zr(e,a,Y,te),we=Ee[0],De=Ee[1];if(kn(e,ce,a,i,g,de,we),0!==De.length)for(var Pe=0;Pe<De.length;Pe++)zr(e,ce,a,i,g,de,De[Pe]);if(0!==ge.length)for(var Ue=0;Ue<ge.length;Ue++)zr(e,ce,a,i,g,we,ge[Ue]);for(var Be=0;Be<ge.length;Be++)for(var Ge=0;Ge<De.length;Ge++)qr(e,ce,a,i,g,ge[Be],De[Ge]);return ce}(e,a,i,we,ht(tt),ct,ht(et),lt);return function Vo(e,a,i,g){if(e.length>0)return[[a,e.map(function(C){return C[0]})],e.reduce(function(C,k){return C.concat(k[1])},[i]),e.reduce(function(C,k){return C.concat(k[2])},[g])]}(Et,C,ce,ge)}}function Fn(e,a){return U(e)?!U(a)||Fn(e.ofType,a.ofType):!!U(a)||(ye(e)?!ye(a)||Fn(e.ofType,a.ofType):!!ye(a)||!(!Ie(e)&&!Ie(a))&&e!==a)}function Zr(e,a,i,g){var C=a.get(g);if(!C){var k=Object.create(null),Y=Object.create(null);Fi(e,i,g,k,Y),C=[k,Object.keys(Y)],a.set(g,C)}return C}function Un(e,a,i){var g=a.get(i.selectionSet);if(g)return g;var C=Ot(e.getSchema(),i.typeCondition);return Zr(e,a,C,i.selectionSet)}function Fi(e,a,i,g,C){for(var k=0,Y=i.selections;k<Y.length;k++){var te=Y[k];switch(te.kind){case j.h.FIELD:var ce=te.name.value,pe=void 0;(Z(a)||ie(a))&&(pe=a.getFields()[ce]);var de=te.alias?te.alias.value:ce;g[de]||(g[de]=[]),g[de].push([a,te,pe]);break;case j.h.FRAGMENT_SPREAD:C[te.name.value]=!0;break;case j.h.INLINE_FRAGMENT:var ge=te.typeCondition,Ee=ge?Ot(e.getSchema(),ge):a;Fi(e,Ee,te.selectionSet,g,C)}}}var rr,Ko=function(){function e(){this._data=Object.create(null)}var a=e.prototype;return a.has=function(g,C,k){var Y=this._data[g],te=Y&&Y[C];return void 0!==te&&(!1!==k||!1===te)},a.add=function(g,C,k){this._pairSetAdd(g,C,k),this._pairSetAdd(C,g,k)},a._pairSetAdd=function(g,C,k){var Y=this._data[g];Y||(this._data[g]=Y=Object.create(null)),Y[C]=k},e}();function Bn(e){var a=[],i=Object.create(null);return{ObjectValue:{enter:function(){a.push(i),i=Object.create(null)},leave:function(){i=a.pop()}},ObjectField:function(C){var k=C.name.value;i[k]?e.reportError(new n._('There can be only one input field named "'.concat(k,'".'),[i[k],C.name])):i[k]=C.name}}}function Ui(e){var a,i,g,C=e.getSchema(),k=null!==(a=null!==(i=null!==(g=C?.astNode)&&void 0!==g?g:C?.getQueryType())&&void 0!==i?i:C?.getMutationType())&&void 0!==a?a:C?.getSubscriptionType(),Y=0;return{SchemaDefinition:function(ce){k?e.reportError(new n._("Cannot define a new schema within a schema extension.",ce)):(Y>0&&e.reportError(new n._("Must provide only one schema definition.",ce)),++Y)}}}function Bi(e){var a=e.getSchema(),i=Object.create(null),g=a?{query:a.getQueryType(),mutation:a.getMutationType(),subscription:a.getSubscriptionType()}:{};return{SchemaDefinition:C,SchemaExtension:C};function C(k){for(var Y,te=null!==(Y=k.operationTypes)&&void 0!==Y?Y:[],ce=0;ce<te.length;ce++){var pe=te[ce],de=pe.operation,ge=i[de];g[de]?e.reportError(new n._("Type for ".concat(de," already defined in the schema. It cannot be redefined."),pe)):ge?e.reportError(new n._("There can be only one ".concat(de," type in schema."),[ge,pe])):i[de]=pe}return!1}}function ji(e){var a=Object.create(null),i=e.getSchema();return{ScalarTypeDefinition:g,ObjectTypeDefinition:g,InterfaceTypeDefinition:g,UnionTypeDefinition:g,EnumTypeDefinition:g,InputObjectTypeDefinition:g};function g(C){var k=C.name.value;if(null==i||!i.getType(k))return a[k]?e.reportError(new n._('There can be only one type named "'.concat(k,'".'),[a[k],C.name])):a[k]=C.name,!1;e.reportError(new n._('Type "'.concat(k,'" already exists in the schema. It cannot also be defined in this type definition.'),C.name))}}function Vi(e){var a=e.getSchema(),i=a?a.getTypeMap():Object.create(null),g=Object.create(null);return{EnumTypeDefinition:C,EnumTypeExtension:C};function C(k){var Y,te=k.name.value;g[te]||(g[te]=Object.create(null));for(var ce=null!==(Y=k.values)&&void 0!==Y?Y:[],pe=g[te],de=0;de<ce.length;de++){var ge=ce[de],Ee=ge.name.value,we=i[te];Oe(we)&&we.getValue(Ee)?e.reportError(new n._('Enum value "'.concat(te,".").concat(Ee,'" already exists in the schema. It cannot also be defined in this type extension.'),ge.name)):pe[Ee]?e.reportError(new n._('Enum value "'.concat(te,".").concat(Ee,'" can only be defined once.'),[pe[Ee],ge.name])):pe[Ee]=ge.name}return!1}}function Ki(e){var a=e.getSchema(),i=a?a.getTypeMap():Object.create(null),g=Object.create(null);return{InputObjectTypeDefinition:C,InputObjectTypeExtension:C,InterfaceTypeDefinition:C,InterfaceTypeExtension:C,ObjectTypeDefinition:C,ObjectTypeExtension:C};function C(k){var Y,te=k.name.value;g[te]||(g[te]=Object.create(null));for(var ce=null!==(Y=k.fields)&&void 0!==Y?Y:[],pe=g[te],de=0;de<ce.length;de++){var ge=ce[de],Ee=ge.name.value;Go(i[te],Ee)?e.reportError(new n._('Field "'.concat(te,".").concat(Ee,'" already exists in the schema. It cannot also be defined in this type extension.'),ge.name)):pe[Ee]?e.reportError(new n._('Field "'.concat(te,".").concat(Ee,'" can only be defined once.'),[pe[Ee],ge.name])):pe[Ee]=ge.name}return!1}}function Go(e,a){return!!(Z(e)||ie(e)||H(e))&&null!=e.getFields()[a]}function Gi(e){var a=Object.create(null),i=e.getSchema();return{DirectiveDefinition:function(C){var k=C.name.value;if(null==i||!i.getDirective(k))return a[k]?e.reportError(new n._('There can be only one directive named "@'.concat(k,'".'),[a[k],C.name])):a[k]=C.name,!1;e.reportError(new n._('Directive "@'.concat(k,'" already exists in the schema. It cannot be redefined.'),C.name))}}}function vr(e,a,i){return a in e?Object.defineProperty(e,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[a]=i,e}function Wi(e){for(var a=e.getSchema(),i=Object.create(null),g=0,C=e.getDocument().definitions;g<C.length;g++){var k=C[g];dr(k)&&(i[k.name.value]=k)}return{ScalarTypeExtension:Y,ObjectTypeExtension:Y,InterfaceTypeExtension:Y,UnionTypeExtension:Y,EnumTypeExtension:Y,InputObjectTypeExtension:Y};function Y(te){var ge,ce=te.name.value,pe=i[ce],de=a?.getType(ce);if(pe?ge=Wo[pe.kind]:de&&(ge=function Qo(e){return M(e)?j.h.SCALAR_TYPE_EXTENSION:Z(e)?j.h.OBJECT_TYPE_EXTENSION:ie(e)?j.h.INTERFACE_TYPE_EXTENSION:Te(e)?j.h.UNION_TYPE_EXTENSION:Oe(e)?j.h.ENUM_TYPE_EXTENSION:H(e)?j.h.INPUT_OBJECT_TYPE_EXTENSION:void(0,J.Z)(0,"Unexpected type: "+(0,E.Z)(e))}(de)),ge){if(ge!==te.kind){var Ee=function Ho(e){switch(e){case j.h.SCALAR_TYPE_EXTENSION:return"scalar";case j.h.OBJECT_TYPE_EXTENSION:return"object";case j.h.INTERFACE_TYPE_EXTENSION:return"interface";case j.h.UNION_TYPE_EXTENSION:return"union";case j.h.ENUM_TYPE_EXTENSION:return"enum";case j.h.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}(0,J.Z)(0,"Unexpected kind: "+(0,E.Z)(e))}(te.kind);e.reportError(new n._("Cannot extend non-".concat(Ee,' type "').concat(ce,'".'),pe?[pe,te]:te))}}else{var we=Object.keys(i);a&&(we=we.concat(Object.keys(a.getTypeMap())));var De=X(ce,we);e.reportError(new n._('Cannot extend type "'.concat(ce,'" because it is not defined.')+y(De),te.name))}}}var Wo=(vr(rr={},j.h.SCALAR_TYPE_DEFINITION,j.h.SCALAR_TYPE_EXTENSION),vr(rr,j.h.OBJECT_TYPE_DEFINITION,j.h.OBJECT_TYPE_EXTENSION),vr(rr,j.h.INTERFACE_TYPE_DEFINITION,j.h.INTERFACE_TYPE_EXTENSION),vr(rr,j.h.UNION_TYPE_DEFINITION,j.h.UNION_TYPE_EXTENSION),vr(rr,j.h.ENUM_TYPE_DEFINITION,j.h.ENUM_TYPE_EXTENSION),vr(rr,j.h.INPUT_OBJECT_TYPE_DEFINITION,j.h.INPUT_OBJECT_TYPE_EXTENSION),rr),Qi=Object.freeze([si,ui,ci,fi,Pn,hi,pi,di,vi,mi,yi,gi,Ei,bi,Ti,Si,_i,Nn,Mn,wi,Ln,Ri,Ci,Ni,Li,Bn]),zo=Object.freeze([Ui,Bi,ji,Vi,Ki,Gi,Pn,Nn,Mn,Wi,Ii,Ln,Bn,Pi]);function Hi(e,a){e.prototype=Object.create(a.prototype),e.prototype.constructor=e,e.__proto__=a}var zi=function(){function e(i,g){this._ast=i,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=g}var a=e.prototype;return a.reportError=function(g){this._onError(g)},a.getDocument=function(){return this._ast},a.getFragment=function(g){var C=this._fragments;return C||(this._fragments=C=this.getDocument().definitions.reduce(function(k,Y){return Y.kind===j.h.FRAGMENT_DEFINITION&&(k[Y.name.value]=Y),k},Object.create(null))),C[g]},a.getFragmentSpreads=function(g){var C=this._fragmentSpreads.get(g);if(!C){C=[];for(var k=[g];0!==k.length;)for(var te=0,ce=k.pop().selections;te<ce.length;te++){var pe=ce[te];pe.kind===j.h.FRAGMENT_SPREAD?C.push(pe):pe.selectionSet&&k.push(pe.selectionSet)}this._fragmentSpreads.set(g,C)}return C},a.getRecursivelyReferencedFragments=function(g){var C=this._recursivelyReferencedFragments.get(g);if(!C){C=[];for(var k=Object.create(null),Y=[g.selectionSet];0!==Y.length;)for(var te=Y.pop(),ce=0,pe=this.getFragmentSpreads(te);ce<pe.length;ce++){var ge=pe[ce].name.value;if(!0!==k[ge]){k[ge]=!0;var Ee=this.getFragment(ge);Ee&&(C.push(Ee),Y.push(Ee.selectionSet))}}this._recursivelyReferencedFragments.set(g,C)}return C},e}(),qo=function(e){function a(g,C,k){var Y;return(Y=e.call(this,g,k)||this)._schema=C,Y}return Hi(a,e),a.prototype.getSchema=function(){return this._schema},a}(zi),qi=function(e){function a(g,C,k,Y){var te;return(te=e.call(this,C,Y)||this)._schema=g,te._typeInfo=k,te._variableUsages=new Map,te._recursiveVariableUsages=new Map,te}Hi(a,e);var i=a.prototype;return i.getSchema=function(){return this._schema},i.getVariableUsages=function(C){var k=this._variableUsages.get(C);if(!k){var Y=[],te=new In(this._schema);(0,c.Vn)(C,Rn(te,{VariableDefinition:function(){return!1},Variable:function(pe){Y.push({node:pe,type:te.getInputType(),defaultValue:te.getDefaultValue()})}})),this._variableUsages.set(C,k=Y)}return k},i.getRecursiveVariableUsages=function(C){var k=this._recursiveVariableUsages.get(C);if(!k){k=this.getVariableUsages(C);for(var Y=0,te=this.getRecursivelyReferencedFragments(C);Y<te.length;Y++)k=k.concat(this.getVariableUsages(te[Y]));this._recursiveVariableUsages.set(C,k)}return k},i.getType=function(){return this._typeInfo.getType()},i.getParentType=function(){return this._typeInfo.getParentType()},i.getInputType=function(){return this._typeInfo.getInputType()},i.getParentInputType=function(){return this._typeInfo.getParentInputType()},i.getFieldDef=function(){return this._typeInfo.getFieldDef()},i.getDirective=function(){return this._typeInfo.getDirective()},i.getArgument=function(){return this._typeInfo.getArgument()},i.getEnumValue=function(){return this._typeInfo.getEnumValue()},a}(zi);function jn(e,a){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Qi,g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new In(e),C=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{maxErrors:void 0};a||(0,r.Z)(0,"Must provide document."),Sn(e);var k=Object.freeze({}),Y=[],te=new qi(e,a,g,function(pe){if(null!=C.maxErrors&&Y.length>=C.maxErrors)throw Y.push(new n._("Too many validation errors, error limit reached. Validation aborted.")),k;Y.push(pe)}),ce=(0,c.j1)(i.map(function(pe){return pe(te)}));try{(0,c.Vn)(a,Rn(g,ce))}catch(pe){if(pe!==k)throw pe}return Y}function Zi(e,a){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:zo,g=[],C=new qo(e,a,function(Y){g.push(Y)}),k=i.map(function(Y){return Y(C)});return(0,c.Vn)(e,(0,c.j1)(k)),g}function mr(e,a,i){return{prev:e,key:a,typename:i}}function At(e){for(var a=[],i=e;i;)a.push(i.key),i=i.prev;return a.reverse()}function Vn(e,a){if("query"===a.operation){var i=e.getQueryType();if(!i)throw new n._("Schema does not define the required query root type.",a);return i}if("mutation"===a.operation){var g=e.getMutationType();if(!g)throw new n._("Schema is not configured for mutations.",a);return g}if("subscription"===a.operation){var C=e.getSubscriptionType();if(!C)throw new n._("Schema is not configured for subscriptions.",a);return C}throw new n._("Can only have query, mutation and subscription operations.",a)}function Yi(e){return e.map(function(a){return"number"==typeof a?"["+a.toString()+"]":"."+a}).join("")}function Kt(e,a,i){if(e){if(e.kind===j.h.VARIABLE){var g=e.name.value;if(null==i||void 0===i[g])return;var C=i[g];return null===C&&ye(a)?void 0:C}if(ye(a))return e.kind===j.h.NULL?void 0:Kt(e,a.ofType,i);if(e.kind===j.h.NULL)return null;if(U(a)){var k=a.ofType;if(e.kind===j.h.LIST){for(var Y=[],te=0,ce=e.values;te<ce.length;te++){var pe=ce[te];if(Ji(pe,i)){if(ye(k))return;Y.push(null)}else{var de=Kt(pe,k,i);if(void 0===de)return;Y.push(de)}}return Y}var ge=Kt(e,k,i);return void 0===ge?void 0:[ge]}if(H(a)){if(e.kind!==j.h.OBJECT)return;for(var Ee=Object.create(null),we=K(e.fields,function(tt){return tt.name.value}),De=0,Pe=m(a.getFields());De<Pe.length;De++){var Ue=Pe[De],Be=we[Ue.name];if(Be&&!Ji(Be.value,i)){var Ge=Kt(Be.value,Ue.type,i);if(void 0===Ge)return;Ee[Ue.name]=Ge}else if(void 0!==Ue.defaultValue)Ee[Ue.name]=Ue.defaultValue;else if(ye(Ue.type))return}return Ee}if(Ie(a)){var Je;try{Je=a.parseLiteral(e,i)}catch{return}return void 0===Je?void 0:Je}(0,J.Z)(0,"Unexpected input type: "+(0,E.Z)(a))}}function Ji(e,a){return e.kind===j.h.VARIABLE&&(null==a||void 0===a[e.name.value])}function Xi(e,a){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:es;return xr(e,a,i)}function es(e,a,i){var g="Invalid value "+(0,E.Z)(a);throw e.length>0&&(g+=' at "value'.concat(Yi(e),'"')),i.message=g+": "+i.message,i}function xr(e,a,i,g){if(ye(a))return null!=e?xr(e,a.ofType,i,g):void i(At(g),e,new n._('Expected non-nullable type "'.concat((0,E.Z)(a),'" not to be null.')));if(null==e)return null;if(U(a)){var C=a.ofType;return Ae(e,function(Ge,Je){var tt=mr(g,Je,void 0);return xr(Ge,C,i,tt)})??[xr(e,C,i,g)]}if(H(a)){if(!(0,p.Z)(e))return void i(At(g),e,new n._('Expected type "'.concat(a.name,'" to be an object.')));for(var Y={},te=a.getFields(),ce=0,pe=m(te);ce<pe.length;ce++){var de=pe[ce],ge=e[de.name];if(void 0!==ge)Y[de.name]=xr(ge,de.type,i,mr(g,de.name,a.name));else if(void 0!==de.defaultValue)Y[de.name]=de.defaultValue;else if(ye(de.type)){var Ee=(0,E.Z)(de.type);i(At(g),e,new n._('Field "'.concat(de.name,'" of required type "').concat(Ee,'" was not provided.')))}}for(var we=0,De=Object.keys(e);we<De.length;we++){var Pe=De[we];if(!te[Pe]){var Ue=X(Pe,Object.keys(a.getFields()));i(At(g),e,new n._('Field "'.concat(Pe,'" is not defined by type "').concat(a.name,'".')+y(Ue)))}}return Y}if(Ie(a)){var Be;try{Be=a.parseValue(e)}catch(Ge){return void i(At(g),e,Ge instanceof n._?Ge:new n._('Expected type "'.concat(a.name,'". ')+Ge.message,void 0,void 0,void 0,void 0,Ge))}return void 0===Be&&i(At(g),e,new n._('Expected type "'.concat(a.name,'".'))),Be}(0,J.Z)(0,"Unexpected input type: "+(0,E.Z)(a))}function Kn(e,a,i){for(var g,C={},Y=K(null!==(g=a.arguments)&&void 0!==g?g:[],function(Be){return Be.name.value}),te=0,ce=e.args;te<ce.length;te++){var pe=ce[te],de=pe.name,ge=pe.type,Ee=Y[de];if(Ee){var we=Ee.value,De=we.kind===j.h.NULL;if(we.kind===j.h.VARIABLE){var Pe=we.name.value;if(null==i||!$i(i,Pe)){if(void 0!==pe.defaultValue)C[de]=pe.defaultValue;else if(ye(ge))throw new n._('Argument "'.concat(de,'" of required type "').concat((0,E.Z)(ge),'" ')+'was provided the variable "$'.concat(Pe,'" which was not provided a runtime value.'),we);continue}De=null==i[Pe]}if(De&&ye(ge))throw new n._('Argument "'.concat(de,'" of non-null type "').concat((0,E.Z)(ge),'" ')+"must not be null.",we);var Ue=Kt(we,ge,i);if(void 0===Ue)throw new n._('Argument "'.concat(de,'" has invalid value ').concat((0,re.print)(we),"."),we);C[de]=Ue}else if(void 0!==pe.defaultValue)C[de]=pe.defaultValue;else if(ye(ge))throw new n._('Argument "'.concat(de,'" of required type "').concat((0,E.Z)(ge),'" ')+"was not provided.",a)}return C}function Cr(e,a,i){var g=a.directives&&u(a.directives,function(C){return C.name.value===e.name});if(g)return Kn(e,g,i)}function $i(e,a){return Object.prototype.hasOwnProperty.call(e,a)}function Gn(e,a,i,g,C,k,Y,te){return Wn(1===arguments.length?e:{schema:e,document:a,rootValue:i,contextValue:g,variableValues:C,operationName:k,fieldResolver:Y,typeResolver:te})}function ea(e){var a=Wn(e);if(l(a))throw new Error("GraphQL execution failed to complete synchronously.");return a}function Wn(e){var a=e.schema,i=e.document,g=e.rootValue,C=e.contextValue,k=e.variableValues,Y=e.operationName,te=e.fieldResolver,ce=e.typeResolver;ra(a,i,k);var pe=na(a,i,g,C,k,Y,te,ce);if(Array.isArray(pe))return{errors:pe};var de=function ns(e,a,i){var g=Vn(e.schema,a),C=Pr(e,g,a.selectionSet,Object.create(null),Object.create(null)),k=void 0;try{var Y="mutation"===a.operation?function is(e,a,i,g,C){return function Xo(e,a,i){return e.reduce(function(g,C){return l(g)?g.then(function(k){return a(k,C)}):a(g,C)},i)}(Object.keys(C),function(k,Y){var te=C[Y],ce=mr(g,Y,a.name),pe=oa(e,a,i,te,ce);return void 0===pe?k:l(pe)?pe.then(function(de){return k[Y]=de,k}):(k[Y]=pe,k)},Object.create(null))}(e,g,i,k,C):ia(e,g,i,k,C);return l(Y)?Y.then(void 0,function(te){return e.errors.push(te),Promise.resolve(null)}):Y}catch(te){return e.errors.push(te),null}}(pe,pe.operation,g);return ta(pe,de)}function ta(e,a){return l(a)?a.then(function(i){return ta(e,i)}):0===e.errors.length?{data:a}:{errors:e.errors,data:a}}function ra(e,a,i){a||(0,r.Z)(0,"Must provide document."),Sn(e),null==i||(0,p.Z)(i)||(0,r.Z)(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function na(e,a,i,g,C,k,Y,te){for(var ce,pe,de,ge=Object.create(null),Ee=0,we=a.definitions;Ee<we.length;Ee++){var De=we[Ee];switch(De.kind){case j.h.OPERATION_DEFINITION:if(null==k){if(void 0!==de)return[new n._("Must provide operation name if query contains multiple operations.")];de=De}else(null===(ce=De.name)||void 0===ce?void 0:ce.value)===k&&(de=De);break;case j.h.FRAGMENT_DEFINITION:ge[De.name.value]=De}}if(!de)return null!=k?[new n._('Unknown operation named "'.concat(k,'".'))]:[new n._("Must provide an operation.")];var Ue=function ts(e,a,i,g){var C=[],k=g?.maxErrors;try{var Y=function rs(e,a,i,g){for(var C={},k=function(pe){var de=a[pe],ge=de.variable.name.value,Ee=Ot(e,de.type);if(!z(Ee)){var we=(0,re.print)(de.type);return g(new n._('Variable "$'.concat(ge,'" expected value of type "').concat(we,'" which cannot be used as an input type.'),de.type)),"continue"}if(!$i(i,ge)){if(de.defaultValue)C[ge]=Kt(de.defaultValue,Ee);else if(ye(Ee)){var De=(0,E.Z)(Ee);g(new n._('Variable "$'.concat(ge,'" of required type "').concat(De,'" was not provided.'),de))}return"continue"}var Pe=i[ge];if(null===Pe&&ye(Ee)){var Ue=(0,E.Z)(Ee);return g(new n._('Variable "$'.concat(ge,'" of non-null type "').concat(Ue,'" must not be null.'),de)),"continue"}C[ge]=Xi(Pe,Ee,function(Be,Ge,Je){var tt='Variable "$'.concat(ge,'" got invalid value ')+(0,E.Z)(Ge);Be.length>0&&(tt+=' at "'.concat(ge).concat(Yi(Be),'"')),g(new n._(tt+"; "+Je.message,de,void 0,void 0,void 0,Je.originalError))})},Y=0;Y<a.length;Y++)k(Y);return C}(e,a,i,function(te){if(null!=k&&C.length>=k)throw new n._("Too many errors processing variables, error limit reached. Execution aborted.");C.push(te)});if(0===C.length)return{coerced:Y}}catch(te){C.push(te)}return{errors:C}}(e,null!==(pe=de.variableDefinitions)&&void 0!==pe?pe:[],C??{},{maxErrors:50});return Ue.errors?Ue.errors:{schema:e,fragments:ge,rootValue:i,contextValue:g,operation:de,variableValues:Ue.coerced,fieldResolver:Y??ha,typeResolver:te??la,errors:[]}}function ia(e,a,i,g,C){for(var k=Object.create(null),Y=!1,te=0,ce=Object.keys(C);te<ce.length;te++){var pe=ce[te],Ee=oa(e,a,i,C[pe],mr(g,pe,a.name));void 0!==Ee&&(k[pe]=Ee,l(Ee)&&(Y=!0))}return Y?function $o(e){var a=Object.keys(e),i=a.map(function(g){return e[g]});return Promise.all(i).then(function(g){return g.reduce(function(C,k,Y){return C[a[Y]]=k,C},Object.create(null))})}(k):k}function Pr(e,a,i,g,C){for(var k=0,Y=i.selections;k<Y.length;k++){var te=Y[k];switch(te.kind){case j.h.FIELD:if(!Qn(e,te))continue;var ce=as(te);g[ce]||(g[ce]=[]),g[ce].push(te);break;case j.h.INLINE_FRAGMENT:if(!Qn(e,te)||!aa(e,te,a))continue;Pr(e,a,te.selectionSet,g,C);break;case j.h.FRAGMENT_SPREAD:var pe=te.name.value;if(C[pe]||!Qn(e,te))continue;C[pe]=!0;var de=e.fragments[pe];if(!de||!aa(e,de,a))continue;Pr(e,a,de.selectionSet,g,C)}}return g}function Qn(e,a){return!0!==Cr(mn,a,e.variableValues)?.if&&!1!==Cr(vn,a,e.variableValues)?.if}function aa(e,a,i){var g=a.typeCondition;if(!g)return!0;var C=Ot(e.schema,g);return C===i||!!$e(C)&&e.schema.isSubType(C,i)}function as(e){return e.alias?e.alias.value:e.name.value}function oa(e,a,i,g,C){var k,ce=pa(e.schema,a,g[0].name.value);if(ce){var pe=ce.type,de=null!==(k=ce.resolve)&&void 0!==k?k:e.fieldResolver,ge=sa(e,ce,g,a,C);try{var Pe,De=de(i,Kn(ce,g[0],e.variableValues),e.contextValue,ge);return Pe=l(De)?De.then(function(Be){return Nr(e,pe,g,ge,C,Be)}):Nr(e,pe,g,ge,C,De),l(Pe)?Pe.then(void 0,function(Be){return Yr(R(Be,g,At(C)),pe,e)}):Pe}catch(Be){return Yr(R(Be,g,At(C)),pe,e)}}}function sa(e,a,i,g,C){return{fieldName:a.name,fieldNodes:i,returnType:a.type,parentType:g,path:C,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Yr(e,a,i){if(ye(a))throw e;return i.errors.push(e),null}function Nr(e,a,i,g,C,k){if(k instanceof Error)throw k;if(ye(a)){var Y=Nr(e,a.ofType,i,g,C,k);if(null===Y)throw new Error("Cannot return null for non-nullable field ".concat(g.parentType.name,".").concat(g.fieldName,"."));return Y}return null==k?null:U(a)?function os(e,a,i,g,C,k){var Y=a.ofType,te=!1,ce=Ae(k,function(pe,de){var ge=mr(C,de,void 0);try{var Ee;return Ee=l(pe)?pe.then(function(De){return Nr(e,Y,i,g,ge,De)}):Nr(e,Y,i,g,ge,pe),l(Ee)?(te=!0,Ee.then(void 0,function(De){return Yr(R(De,i,At(ge)),Y,e)})):Ee}catch(De){return Yr(R(De,i,At(ge)),Y,e)}});if(null==ce)throw new n._('Expected Iterable, but did not find one for field "'.concat(g.parentType.name,".").concat(g.fieldName,'".'));return te?Promise.all(ce):ce}(e,a,i,g,C,k):Ie(a)?function ss(e,a){var i=e.serialize(a);if(void 0===i)throw new Error('Expected a value of type "'.concat((0,E.Z)(e),'" but ')+"received: ".concat((0,E.Z)(a)));return i}(a,k):$e(a)?function us(e,a,i,g,C,k){var Y,pe=(null!==(Y=a.resolveType)&&void 0!==Y?Y:e.typeResolver)(k,e.contextValue,g,a);return l(pe)?pe.then(function(de){return Hn(e,ua(de,e,a,i,g,k),i,g,C,k)}):Hn(e,ua(pe,e,a,i,g,k),i,g,C,k)}(e,a,i,g,C,k):Z(a)?Hn(e,a,i,g,C,k):void(0,J.Z)(0,"Cannot complete value of unexpected output type: "+(0,E.Z)(a))}function ua(e,a,i,g,C,k){if(null==e)throw new n._('Abstract type "'.concat(i.name,'" must resolve to an Object type at runtime for field "').concat(C.parentType.name,".").concat(C.fieldName,'". Either the "').concat(i.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),g);var Y=Rt(e)?e.name:e;if("string"!=typeof Y)throw new n._('Abstract type "'.concat(i.name,'" must resolve to an Object type at runtime for field "').concat(C.parentType.name,".").concat(C.fieldName,'" with ')+"value ".concat((0,E.Z)(k),', received "').concat((0,E.Z)(e),'".'));var te=a.schema.getType(Y);if(null==te)throw new n._('Abstract type "'.concat(i.name,'" was resolve to a type "').concat(Y,'" that does not exist inside schema.'),g);if(!Z(te))throw new n._('Abstract type "'.concat(i.name,'" was resolve to a non-object type "').concat(Y,'".'),g);if(!a.schema.isSubType(i,te))throw new n._('Runtime Object type "'.concat(te.name,'" is not a possible type for "').concat(i.name,'".'),g);return te}function Hn(e,a,i,g,C,k){if(a.isTypeOf){var Y=a.isTypeOf(k,e.contextValue,g);if(l(Y))return Y.then(function(te){if(!te)throw ca(a,k,i);return fa(e,a,i,C,k)});if(!Y)throw ca(a,k,i)}return fa(e,a,i,C,k)}function ca(e,a,i){return new n._('Expected value of type "'.concat(e.name,'" but got: ').concat((0,E.Z)(a),"."),i)}function fa(e,a,i,g,C){return ia(e,a,C,g,cs(e,a,i))}var cs=function Jo(e){var a;return function(g,C,k){a||(a=new WeakMap);var te,Y=a.get(g);if(Y){if(te=Y.get(C)){var ce=te.get(k);if(void 0!==ce)return ce}}else a.set(g,Y=new WeakMap);te||Y.set(C,te=new WeakMap);var pe=e(g,C,k);return te.set(k,pe),pe}}(function fs(e,a,i){for(var g=Object.create(null),C=Object.create(null),k=0;k<i.length;k++){var Y=i[k];Y.selectionSet&&(g=Pr(e,a,Y.selectionSet,g,C))}return g}),la=function(a,i,g,C){if((0,p.Z)(a)&&"string"==typeof a.__typename)return a.__typename;for(var k=g.schema.getPossibleTypes(C),Y=[],te=0;te<k.length;te++){var ce=k[te];if(ce.isTypeOf){var pe=ce.isTypeOf(a,i,g);if(l(pe))Y[te]=pe;else if(pe)return ce.name}}return Y.length?Promise.all(Y).then(function(de){for(var ge=0;ge<de.length;ge++)if(de[ge])return k[ge].name}):void 0},ha=function(a,i,g,C){if((0,p.Z)(a)||"function"==typeof a){var k=a[C.fieldName];return"function"==typeof k?a[C.fieldName](i,g,C):k}};function pa(e,a,i){return i===Ar.name&&e.getQueryType()===a?Ar:i===wr.name&&e.getQueryType()===a?wr:i===Ir.name?Ir:a.getFields()[i]}function ls(e,a,i,g,C,k,Y,te){var ce=arguments;return new Promise(function(pe){return pe(Jr(1===ce.length?e:{schema:e,source:a,rootValue:i,contextValue:g,variableValues:C,operationName:k,fieldResolver:Y,typeResolver:te}))})}function hs(e,a,i,g,C,k,Y,te){var ce=Jr(1===arguments.length?e:{schema:e,source:a,rootValue:i,contextValue:g,variableValues:C,operationName:k,fieldResolver:Y,typeResolver:te});if(l(ce))throw new Error("GraphQL execution failed to complete synchronously.");return ce}function Jr(e){var de,a=e.schema,i=e.source,g=e.rootValue,C=e.contextValue,k=e.variableValues,Y=e.operationName,te=e.fieldResolver,ce=e.typeResolver,pe=Tn(a);if(pe.length>0)return{errors:pe};try{de=(0,t.Qc)(i)}catch(Ee){return{errors:[Ee]}}var ge=jn(a,de);return ge.length>0?{errors:ge}:Gn({schema:a,document:de,rootValue:g,contextValue:C,variableValues:k,operationName:Y,fieldResolver:te,typeResolver:ce})}var zn=d(99921),ps=d(74051),da=d(83346),qn=d(90550),Mr=d(92495);function va(e){return"function"==typeof e?.[B.PA]}function ma(e,a){return new Promise(function(i){return i(a(e))})}function ya(e){return{value:e,done:!1}}function ms(e,a,i,g,C,k,Y,te){return Ea(1===arguments.length?e:{schema:e,document:a,rootValue:i,contextValue:g,variableValues:C,operationName:k,fieldResolver:Y,subscribeFieldResolver:te})}function ga(e){if(e instanceof n._)return{errors:[e]};throw e}function Ea(e){var a=e.schema,i=e.document,C=e.contextValue,k=e.variableValues,Y=e.operationName,te=e.fieldResolver,pe=ba(a,i,e.rootValue,C,k,Y,e.subscribeFieldResolver),de=function(Ee){return Gn({schema:a,document:i,rootValue:Ee,contextValue:C,variableValues:k,operationName:Y,fieldResolver:te})};return pe.then(function(ge){return va(ge)?function vs(e,a,i){var k,Y,ce,C=e[B.PA].call(e);function te(de){return de.done?de:ma(de.value,a).then(ya,Y)}if("function"==typeof C.return&&(k=C.return,Y=function(ge){var Ee=function(){return Promise.reject(ge)};return k.call(C).then(Ee,Ee)}),i){var pe=i;ce=function(ge){return ma(ge,pe).then(ya,Y)}}return function ds(e,a,i){return a in e?Object.defineProperty(e,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[a]=i,e}({next:function(){return C.next().then(te,ce)},return:function(){return k?k.call(C).then(te,ce):Promise.resolve({value:void 0,done:!0})},throw:function(ge){return"function"==typeof C.throw?C.throw(ge).then(te,ce):Promise.reject(ge).catch(Y)}},B.PA,function(){return this})}(ge,de,ga):ge})}function ba(e,a,i,g,C,k,Y){return ra(e,a,C),new Promise(function(te){var ce=na(e,a,i,g,C,k,Y);te(Array.isArray(ce)?{errors:ce}:function ys(e){var a=e.schema,i=e.operation,g=e.variableValues,C=e.rootValue,k=Vn(a,i),Y=Pr(e,k,i.selectionSet,Object.create(null),Object.create(null)),ce=Object.keys(Y)[0],pe=Y[ce],ge=pe[0].name.value,Ee=pa(a,k,ge);if(!Ee)throw new n._('The subscription field "'.concat(ge,'" is not defined.'),pe);var we=mr(void 0,ce,k.name),De=sa(e,Ee,pe,k,we);return new Promise(function(Pe){var Ue,Be=Kn(Ee,pe[0],g);Pe((null!==(Ue=Ee.subscribe)&&void 0!==Ue?Ue:e.fieldResolver)(C,Be,e.contextValue,De))}).then(function(Pe){if(Pe instanceof Error)throw R(Pe,pe,At(we));if(!va(Pe))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat((0,E.Z)(Pe),"."));return Pe},function(Pe){throw R(Pe,pe,At(we))})}(ce))}).catch(ga)}function Ta(e){return{Field:function(i){var g=e.getFieldDef(),C=g?.deprecationReason;if(g&&null!=C){var k=e.getParentType();null!=k||(0,J.Z)(0),e.reportError(new n._("The field ".concat(k.name,".").concat(g.name," is deprecated. ").concat(C),i))}},Argument:function(i){var g=e.getArgument(),C=g?.deprecationReason;if(g&&null!=C){var k=e.getDirective();if(null!=k)e.reportError(new n._('Directive "@'.concat(k.name,'" argument "').concat(g.name,'" is deprecated. ').concat(C),i));else{var Y=e.getParentType(),te=e.getFieldDef();null!=Y&&null!=te||(0,J.Z)(0),e.reportError(new n._('Field "'.concat(Y.name,".").concat(te.name,'" argument "').concat(g.name,'" is deprecated. ').concat(C),i))}}},ObjectField:function(i){var g=ht(e.getParentInputType());if(H(g)){var C=g.getFields()[i.name.value],k=C?.deprecationReason;null!=k&&e.reportError(new n._("The input field ".concat(g.name,".").concat(C.name," is deprecated. ").concat(k),i))}},EnumValue:function(i){var g=e.getEnumValue(),C=g?.deprecationReason;if(g&&null!=C){var k=ht(e.getInputType());null!=k||(0,J.Z)(0),e.reportError(new n._('The enum value "'.concat(k.name,".").concat(g.name,'" is deprecated. ').concat(C),i))}}}}function gs(e){return{Field:function(i){var g=ht(e.getType());g&&ir(g)&&e.reportError(new n._('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(i.name.value,'".'),i))}}}function Es(e){var a;e||(0,r.Z)(0,"Received null or undefined error.");var i=null!==(a=e.message)&&void 0!==a?a:"An unknown error occurred.",g=e.locations,C=e.path,k=e.extensions;return k?{message:i,locations:g,path:C,extensions:k}:{message:i,locations:g,path:C}}var bs=d(73153);function Sa(e,a){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(e);a&&(g=g.filter(function(C){return Object.getOwnPropertyDescriptor(e,C).enumerable})),i.push.apply(i,g)}return i}function Ss(e,a,i){return a in e?Object.defineProperty(e,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[a]=i,e}function _a(e){var a=function Ts(e){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?Sa(Object(i),!0).forEach(function(g){Ss(e,g,i[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Sa(Object(i)).forEach(function(g){Object.defineProperty(e,g,Object.getOwnPropertyDescriptor(i,g))})}return e}({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1},e),i=a.descriptions?"description":"",g=a.specifiedByUrl?"specifiedByUrl":"",C=a.directiveIsRepeatable?"isRepeatable":"";function Y(te){return a.inputValueDeprecation?te:""}return"\n query IntrospectionQuery {\n __schema {\n ".concat(a.schemaDescription?i:"","\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ").concat(i,"\n ").concat(C,"\n locations\n args").concat(Y("(includeDeprecated: true)")," {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(i,"\n ").concat(g,"\n fields(includeDeprecated: true) {\n name\n ").concat(i,"\n args").concat(Y("(includeDeprecated: true)")," {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields").concat(Y("(includeDeprecated: true)")," {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(i,"\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(i,"\n type { ...TypeRef }\n defaultValue\n ").concat(Y("isDeprecated"),"\n ").concat(Y("deprecationReason"),"\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n ")}function Oa(e,a){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(e);a&&(g=g.filter(function(C){return Object.getOwnPropertyDescriptor(e,C).enumerable})),i.push.apply(i,g)}return i}function Os(e,a,i){return a in e?Object.defineProperty(e,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[a]=i,e}function As(e,a){var i=function _s(e){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?Oa(Object(i),!0).forEach(function(g){Os(e,g,i[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Oa(Object(i)).forEach(function(g){Object.defineProperty(e,g,Object.getOwnPropertyDescriptor(i,g))})}return e}({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},a),C=ea({schema:e,document:(0,t.Qc)(_a(i))});return!C.errors&&C.data||(0,J.Z)(0),C.data}function ws(e,a){(0,p.Z)(e)&&(0,p.Z)(e.__schema)||(0,r.Z)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat((0,E.Z)(e),"."));for(var i=e.__schema,g=O(i.types,function(Fe){return Fe.name},function(Fe){return function Pe(Fe){if(null!=Fe&&null!=Fe.name&&null!=Fe.kind)switch(Fe.kind){case ut.SCALAR:return function Ue(Fe){return new Tt({name:Fe.name,description:Fe.description,specifiedByUrl:Fe.specifiedByUrl})}(Fe);case ut.OBJECT:return function Ge(Fe){return new mt({name:Fe.name,description:Fe.description,interfaces:function(){return Be(Fe)},fields:function(){return lt(Fe)}})}(Fe);case ut.INTERFACE:return function Je(Fe){return new Ut({name:Fe.name,description:Fe.description,interfaces:function(){return Be(Fe)},fields:function(){return lt(Fe)}})}(Fe);case ut.UNION:return function tt(Fe){if(!Fe.possibleTypes){var rt=(0,E.Z)(Fe);throw new Error("Introspection result missing possibleTypes: ".concat(rt,"."))}return new Bt({name:Fe.name,description:Fe.description,types:function(){return Fe.possibleTypes.map(we)}})}(Fe);case ut.ENUM:return function et(Fe){if(!Fe.enumValues){var rt=(0,E.Z)(Fe);throw new Error("Introspection result missing enumValues: ".concat(rt,"."))}return new Lt({name:Fe.name,description:Fe.description,values:O(Fe.enumValues,function(vt){return vt.name},function(vt){return{description:vt.description,deprecationReason:vt.deprecationReason}})})}(Fe);case ut.INPUT_OBJECT:return function ct(Fe){if(!Fe.inputFields){var rt=(0,E.Z)(Fe);throw new Error("Introspection result missing inputFields: ".concat(rt,"."))}return new zt({name:Fe.name,description:Fe.description,fields:function(){return It(Fe.inputFields)}})}(Fe)}var rt=(0,E.Z)(Fe);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(rt,"."))}(Fe)}),C=0,k=[].concat(_r,Rr);C<k.length;C++){var Y=k[C];g[Y.name]&&(g[Y.name]=Y)}var te=i.queryType?we(i.queryType):null,ce=i.mutationType?we(i.mutationType):null,pe=i.subscriptionType?we(i.subscriptionType):null,de=i.directives?i.directives.map(function Xt(Fe){if(!Fe.args){var rt=(0,E.Z)(Fe);throw new Error("Introspection result missing directive args: ".concat(rt,"."))}if(!Fe.locations){var vt=(0,E.Z)(Fe);throw new Error("Introspection result missing directive locations: ".concat(vt,"."))}return new kt({name:Fe.name,description:Fe.description,isRepeatable:Fe.isRepeatable,locations:Fe.locations.slice(),args:It(Fe.args)})}):[];return new hr({description:i.description,query:te,mutation:ce,subscription:pe,types:m(g),directives:de,assumeValid:a?.assumeValid});function ge(Fe){if(Fe.kind===ut.LIST){var rt=Fe.ofType;if(!rt)throw new Error("Decorated type deeper than introspection query.");return new qe(ge(rt))}if(Fe.kind===ut.NON_NULL){var vt=Fe.ofType;if(!vt)throw new Error("Decorated type deeper than introspection query.");return new ke(Gt(ge(vt)))}return Ee(Fe)}function Ee(Fe){var rt=Fe.name;if(!rt)throw new Error("Unknown type reference: ".concat((0,E.Z)(Fe),"."));var vt=g[rt];if(!vt)throw new Error("Invalid or incomplete schema, unknown type: ".concat(rt,". Ensure that a full introspection query is used in order to build a client schema."));return vt}function we(Fe){return se(Ee(Fe))}function De(Fe){return _e(Ee(Fe))}function Be(Fe){if(null===Fe.interfaces&&Fe.kind===ut.INTERFACE)return[];if(!Fe.interfaces){var rt=(0,E.Z)(Fe);throw new Error("Introspection result missing interfaces: ".concat(rt,"."))}return Fe.interfaces.map(De)}function lt(Fe){if(!Fe.fields)throw new Error("Introspection result missing fields: ".concat((0,E.Z)(Fe),"."));return O(Fe.fields,function(rt){return rt.name},Et)}function Et(Fe){var rt=ge(Fe.type);if(!ve(rt)){var vt=(0,E.Z)(rt);throw new Error("Introspection must provide output type for fields, but received: ".concat(vt,"."))}if(!Fe.args){var ur=(0,E.Z)(Fe);throw new Error("Introspection result missing field args: ".concat(ur,"."))}return{description:Fe.description,deprecationReason:Fe.deprecationReason,type:rt,args:It(Fe.args)}}function It(Fe){return O(Fe,function(rt){return rt.name},Jt)}function Jt(Fe){var rt=ge(Fe.type);if(!z(rt)){var vt=(0,E.Z)(rt);throw new Error("Introspection must provide input type for arguments, but received: ".concat(vt,"."))}var ur=null!=Fe.defaultValue?Kt((0,t.H2)(Fe.defaultValue),rt):void 0;return{description:Fe.description,type:rt,defaultValue:ur,deprecationReason:Fe.deprecationReason}}}var Xr=d(33951);function Aa(e,a){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(e);a&&(g=g.filter(function(C){return Object.getOwnPropertyDescriptor(e,C).enumerable})),i.push.apply(i,g)}return i}function it(e){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?Aa(Object(i),!0).forEach(function(g){Is(e,g,i[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Aa(Object(i)).forEach(function(g){Object.defineProperty(e,g,Object.getOwnPropertyDescriptor(i,g))})}return e}function Is(e,a,i){return a in e?Object.defineProperty(e,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[a]=i,e}function Rs(e,a,i){bn(e),null!=a&&a.kind===j.h.DOCUMENT||(0,r.Z)(0,"Must provide valid Document AST."),!0!==i?.assumeValid&&!0!==i?.assumeValidSDL&&function Yo(e,a){var i=Zi(e,a);if(0!==i.length)throw new Error(i.map(function(g){return g.message}).join("\n\n"))}(a,e);var g=e.toConfig(),C=wa(g,a,i);return g===C?e:new hr(C)}function wa(e,a,i){for(var g,C,k,Y,de,te=[],ce=Object.create(null),pe=[],ge=[],Ee=0,we=a.definitions;Ee<we.length;Ee++){var De=we[Ee];if(De.kind===j.h.SCHEMA_DEFINITION)de=De;else if(De.kind===j.h.SCHEMA_EXTENSION)ge.push(De);else if(dr(De))te.push(De);else if(Hr(De)){var Pe=De.name.value,Ue=ce[Pe];ce[Pe]=Ue?Ue.concat([De]):[De]}else De.kind===j.h.DIRECTIVE_DEFINITION&&pe.push(De)}if(0===Object.keys(ce).length&&0===te.length&&0===pe.length&&0===ge.length&&null==de)return e;for(var Be=Object.create(null),Ge=0,Je=e.types;Ge<Je.length;Ge++){var tt=Je[Ge];Be[tt.name]=ir(Le=tt)||Kr(Le)?Le:M(Le)?function uu(Le){for(var He,Ve=Le.toConfig(),Qe=null!==(He=ce[Ve.name])&&void 0!==He?He:[],nt=Ve.specifiedByUrl,at=0;at<Qe.length;at++){var ot;nt=null!==(ot=Ra(Qe[at]))&&void 0!==ot?ot:nt}return new Tt(it(it({},Ve),{},{specifiedByUrl:nt,extensionASTNodes:Ve.extensionASTNodes.concat(Qe)}))}(Le):Z(Le)?function cu(Le){var He,Ve=Le.toConfig(),Qe=null!==(He=ce[Ve.name])&&void 0!==He?He:[];return new mt(it(it({},Ve),{},{interfaces:function(){return[].concat(Le.getInterfaces().map(Xt),nn(Qe))},fields:function(){return it(it({},q(Ve.fields,Qa)),rn(Qe))},extensionASTNodes:Ve.extensionASTNodes.concat(Qe)}))}(Le):ie(Le)?function fu(Le){var He,Ve=Le.toConfig(),Qe=null!==(He=ce[Ve.name])&&void 0!==He?He:[];return new Ut(it(it({},Ve),{},{interfaces:function(){return[].concat(Le.getInterfaces().map(Xt),nn(Qe))},fields:function(){return it(it({},q(Ve.fields,Qa)),rn(Qe))},extensionASTNodes:Ve.extensionASTNodes.concat(Qe)}))}(Le):Te(Le)?function lu(Le){var He,Ve=Le.toConfig(),Qe=null!==(He=ce[Ve.name])&&void 0!==He?He:[];return new Bt(it(it({},Ve),{},{types:function(){return[].concat(Le.getTypes().map(Xt),Ja(Qe))},extensionASTNodes:Ve.extensionASTNodes.concat(Qe)}))}(Le):Oe(Le)?function ur(Le){var He,Ve=Le.toConfig(),Qe=null!==(He=ce[Le.name])&&void 0!==He?He:[];return new Lt(it(it({},Ve),{},{values:it(it({},Ve.values),Ya(Qe)),extensionASTNodes:Ve.extensionASTNodes.concat(Qe)}))}(Le):H(Le)?function vt(Le){var He,Ve=Le.toConfig(),Qe=null!==(He=ce[Ve.name])&&void 0!==He?He:[];return new zt(it(it({},Ve),{},{fields:function(){return it(it({},q(Ve.fields,function(at){return it(it({},at),{},{type:Jt(at.type)})})),Za(Qe))},extensionASTNodes:Ve.extensionASTNodes.concat(Qe)}))}(Le):void(0,J.Z)(0,"Unexpected type: "+(0,E.Z)(Le))}for(var Le,et=0;et<te.length;et++){var ct,lt=te[et],Et=lt.name.value;Be[Et]=null!==(ct=Ia[Et])&&void 0!==ct?ct:pu(lt)}var It=it(it({query:e.query&&Xt(e.query),mutation:e.mutation&&Xt(e.mutation),subscription:e.subscription&&Xt(e.subscription)},de&&za([de])),za(ge));return it(it({description:null===(g=de)||void 0===g||null===(C=g.description)||void 0===C?void 0:C.value},It),{},{types:m(Be),directives:[].concat(e.directives.map(function Fe(Le){var He=Le.toConfig();return new kt(it(it({},He),{},{args:q(He.args,Ha)}))}),pe.map(function hu(Le){var He=Le.locations.map(function(Ve){return Ve.value});return new kt({name:Le.name.value,description:sr(Le,i),locations:He,isRepeatable:Le.repeatable,args:qa(Le.arguments),astNode:Le})})),extensions:void 0,astNode:null!==(k=de)&&void 0!==k?k:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(ge),assumeValid:null!==(Y=i?.assumeValid)&&void 0!==Y&&Y});function Jt(Le){return U(Le)?new qe(Jt(Le.ofType)):ye(Le)?new ke(Jt(Le.ofType)):Xt(Le)}function Xt(Le){return Be[Le.name]}function Qa(Le){return it(it({},Le),{},{type:Jt(Le.type),args:q(Le.args,Ha)})}function Ha(Le){return it(it({},Le),{},{type:Jt(Le.type)})}function za(Le){for(var He={},Ve=0;Ve<Le.length;Ve++)for(var Qe,at=null!==(Qe=Le[Ve].operationTypes)&&void 0!==Qe?Qe:[],ot=0;ot<at.length;ot++){var st=at[ot];He[st.operation]=tn(st.type)}return He}function tn(Le){var He,Ve=Le.name.value,Qe=null!==(He=Ia[Ve])&&void 0!==He?He:Be[Ve];if(void 0===Qe)throw new Error('Unknown type: "'.concat(Ve,'".'));return Qe}function Fr(Le){return Le.kind===j.h.LIST_TYPE?new qe(Fr(Le.type)):Le.kind===j.h.NON_NULL_TYPE?new ke(Fr(Le.type)):tn(Le)}function rn(Le){for(var He=Object.create(null),Ve=0;Ve<Le.length;Ve++)for(var Qe,at=null!==(Qe=Le[Ve].fields)&&void 0!==Qe?Qe:[],ot=0;ot<at.length;ot++){var st=at[ot];He[st.name.value]={type:Fr(st.type),description:sr(st,i),args:qa(st.arguments),deprecationReason:$r(st),astNode:st}}return He}function qa(Le){for(var He=Le??[],Ve=Object.create(null),Qe=0;Qe<He.length;Qe++){var nt=He[Qe],at=Fr(nt.type);Ve[nt.name.value]={type:at,description:sr(nt,i),defaultValue:Kt(nt.defaultValue,at),deprecationReason:$r(nt),astNode:nt}}return Ve}function Za(Le){for(var He=Object.create(null),Ve=0;Ve<Le.length;Ve++)for(var Qe,at=null!==(Qe=Le[Ve].fields)&&void 0!==Qe?Qe:[],ot=0;ot<at.length;ot++){var st=at[ot],Ur=Fr(st.type);He[st.name.value]={type:Ur,description:sr(st,i),defaultValue:Kt(st.defaultValue,Ur),deprecationReason:$r(st),astNode:st}}return He}function Ya(Le){for(var He=Object.create(null),Ve=0;Ve<Le.length;Ve++)for(var Qe,at=null!==(Qe=Le[Ve].values)&&void 0!==Qe?Qe:[],ot=0;ot<at.length;ot++){var st=at[ot];He[st.name.value]={description:sr(st,i),deprecationReason:$r(st),astNode:st}}return He}function nn(Le){for(var He=[],Ve=0;Ve<Le.length;Ve++)for(var Qe,at=null!==(Qe=Le[Ve].interfaces)&&void 0!==Qe?Qe:[],ot=0;ot<at.length;ot++)He.push(tn(at[ot]));return He}function Ja(Le){for(var He=[],Ve=0;Ve<Le.length;Ve++)for(var Qe,at=null!==(Qe=Le[Ve].types)&&void 0!==Qe?Qe:[],ot=0;ot<at.length;ot++)He.push(tn(at[ot]));return He}function pu(Le){var He,Ve=Le.name.value,Qe=sr(Le,i),nt=null!==(He=ce[Ve])&&void 0!==He?He:[];switch(Le.kind){case j.h.OBJECT_TYPE_DEFINITION:var at=nt,ot=[Le].concat(at);return new mt({name:Ve,description:Qe,interfaces:function(){return nn(ot)},fields:function(){return rn(ot)},astNode:Le,extensionASTNodes:at});case j.h.INTERFACE_TYPE_DEFINITION:var st=nt,Ur=[Le].concat(st);return new Ut({name:Ve,description:Qe,interfaces:function(){return nn(Ur)},fields:function(){return rn(Ur)},astNode:Le,extensionASTNodes:st});case j.h.ENUM_TYPE_DEFINITION:var Xa=nt,du=[Le].concat(Xa);return new Lt({name:Ve,description:Qe,values:Ya(du),astNode:Le,extensionASTNodes:Xa});case j.h.UNION_TYPE_DEFINITION:var $a=nt,vu=[Le].concat($a);return new Bt({name:Ve,description:Qe,types:function(){return Ja(vu)},astNode:Le,extensionASTNodes:$a});case j.h.SCALAR_TYPE_DEFINITION:var mu=nt;return new Tt({name:Ve,description:Qe,specifiedByUrl:Ra(Le),astNode:Le,extensionASTNodes:mu});case j.h.INPUT_OBJECT_TYPE_DEFINITION:var eo=nt,yu=[Le].concat(eo);return new zt({name:Ve,description:Qe,fields:function(){return Za(yu)},astNode:Le,extensionASTNodes:eo})}(0,J.Z)(0,"Unexpected type definition node: "+(0,E.Z)(Le))}}var Ia=K(_r.concat(Rr),function(e){return e.name});function $r(e){return Cr(Qr,e)?.reason}function Ra(e){return Cr(gn,e)?.url}function sr(e,a){if(e.description)return e.description.value;if(!0===a?.commentDescriptions){var i=function Ds(e){var a=e.loc;if(a){for(var i=[],g=a.startToken.prev;null!=g&&g.kind===Mr.T.COMMENT&&g.next&&g.prev&&g.line+1===g.next.line&&g.line!==g.prev.line;){var C=String(g.value);i.push(C),g=g.prev}return i.length>0?i.reverse().join("\n"):void 0}}(e);if(void 0!==i)return(0,Xr.W7)("\n"+i)}}function Da(e,a){null!=e&&e.kind===j.h.DOCUMENT||(0,r.Z)(0,"Must provide valid Document AST."),!0!==a?.assumeValid&&!0!==a?.assumeValidSDL&&function Zo(e){var a=Zi(e);if(0!==a.length)throw new Error(a.map(function(i){return i.message}).join("\n\n"))}(e);var g=wa({description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},e,a);if(null==g.astNode)for(var C=0,k=g.types;C<k.length;C++){var Y=k[C];switch(Y.name){case"Query":g.query=Y;break;case"Mutation":g.mutation=Y;break;case"Subscription":g.subscription=Y}}for(var te=g.directives,ce=function(ge){var Ee=qt[ge];te.every(function(we){return we.name!==Ee.name})&&te.push(Ee)},pe=0;pe<qt.length;pe++)ce(pe);return new hr(g)}function xs(e,a){return Da((0,t.Qc)(e,{noLocation:a?.noLocation,allowLegacySDLEmptyFields:a?.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:a?.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:a?.experimentalFragmentVariables}),{commentDescriptions:a?.commentDescriptions,assumeValidSDL:a?.assumeValidSDL,assumeValid:a?.assumeValid})}function xa(e,a){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(e);a&&(g=g.filter(function(C){return Object.getOwnPropertyDescriptor(e,C).enumerable})),i.push.apply(i,g)}return i}function pt(e){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?xa(Object(i),!0).forEach(function(g){Cs(e,g,i[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):xa(Object(i)).forEach(function(g){Object.defineProperty(e,g,Object.getOwnPropertyDescriptor(i,g))})}return e}function Cs(e,a,i){return a in e?Object.defineProperty(e,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[a]=i,e}function Ps(e){var a=e.toConfig(),i=O(Zn(a.types),function(Ee){return Ee.name},function ge(Ee){if(M(Ee)||ir(Ee))return Ee;if(Z(Ee)){var we=Ee.toConfig();return new mt(pt(pt({},we),{},{interfaces:function(){return de(we.interfaces)},fields:function(){return ce(we.fields)}}))}if(ie(Ee)){var De=Ee.toConfig();return new Ut(pt(pt({},De),{},{interfaces:function(){return de(De.interfaces)},fields:function(){return ce(De.fields)}}))}if(Te(Ee)){var Pe=Ee.toConfig();return new Bt(pt(pt({},Pe),{},{types:function(){return de(Pe.types)}}))}if(Oe(Ee)){var Ue=Ee.toConfig();return new Lt(pt(pt({},Ue),{},{values:en(Ue.values)}))}if(H(Ee)){var Be=Ee.toConfig();return new zt(pt(pt({},Be),{},{fields:function(){return function pe(Ee){return en(Ee,function(we){return pt(pt({},we),{},{type:g(we.type)})})}(Be.fields)}}))}(0,J.Z)(0,"Unexpected type: "+(0,E.Z)(Ee))});return new hr(pt(pt({},a),{},{types:m(i),directives:Zn(a.directives).map(function Y(Ee){var we=Ee.toConfig();return new kt(pt(pt({},we),{},{locations:Yn(we.locations,function(De){return De}),args:te(we.args)}))}),query:k(a.query),mutation:k(a.mutation),subscription:k(a.subscription)}));function g(Ee){return U(Ee)?new qe(g(Ee.ofType)):ye(Ee)?new ke(g(Ee.ofType)):C(Ee)}function C(Ee){return i[Ee.name]}function k(Ee){return Ee&&C(Ee)}function te(Ee){return en(Ee,function(we){return pt(pt({},we),{},{type:g(we.type)})})}function ce(Ee){return en(Ee,function(we){return pt(pt({},we),{},{type:g(we.type),args:te(we.args)})})}function de(Ee){return Zn(Ee).map(C)}}function en(e,a){for(var i=Object.create(null),g=Yn(Object.keys(e),function(te){return te}),C=0;C<g.length;C++){var k=g[C],Y=e[k];i[k]=a?a(Y):Y}return i}function Zn(e){return Yn(e,function(a){return a.name})}function Yn(e,a){return e.slice().sort(function(i,g){return Q(a(i),a(g))})}function Ns(e,a){return Ca(e,function(i){return!En(i)},Ls,a)}function Ms(e,a){return Ca(e,En,ir,a)}function Ls(e){return!Kr(e)&&!ir(e)}function Ca(e,a,i,g){var C=e.getDirectives().filter(a),k=m(e.getTypeMap()).filter(i);return[ks(e)].concat(C.map(function(Y){return function Ws(e,a){return Pt(a,e)+"directive @"+e.name+La(a,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(Y,g)}),k.map(function(Y){return Pa(Y,g)})).filter(Boolean).join("\n\n")+"\n"}function ks(e){if(null!=e.description||!function Fs(e){var a=e.getQueryType();if(a&&"Query"!==a.name)return!1;var i=e.getMutationType();if(i&&"Mutation"!==i.name)return!1;var g=e.getSubscriptionType();return!(g&&"Subscription"!==g.name)}(e)){var a=[],i=e.getQueryType();i&&a.push(" query: ".concat(i.name));var g=e.getMutationType();g&&a.push(" mutation: ".concat(g.name));var C=e.getSubscriptionType();return C&&a.push(" subscription: ".concat(C.name)),Pt({},e)+"schema {\n".concat(a.join("\n"),"\n}")}}function Pa(e,a){return M(e)?function Us(e,a){return Pt(a,e)+"scalar ".concat(e.name)+function Qs(e){if(null==e.specifiedByUrl)return"";var i=Vt(e.specifiedByUrl,ft);return i||(0,J.Z)(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+(0,re.print)(i)+")"}(e)}(e,a):Z(e)?function Bs(e,a){return Pt(a,e)+"type ".concat(e.name)+Na(e)+Ma(a,e)}(e,a):ie(e)?function js(e,a){return Pt(a,e)+"interface ".concat(e.name)+Na(e)+Ma(a,e)}(e,a):Te(e)?function Vs(e,a){var i=e.getTypes(),g=i.length?" = "+i.join(" | "):"";return Pt(a,e)+"union "+e.name+g}(e,a):Oe(e)?function Ks(e,a){var i=e.getValues().map(function(g,C){return Pt(a,g," ",!C)+" "+g.name+$n(g.deprecationReason)});return Pt(a,e)+"enum ".concat(e.name)+Jn(i)}(e,a):H(e)?function Gs(e,a){var i=m(e.getFields()).map(function(g,C){return Pt(a,g," ",!C)+" "+Xn(g)});return Pt(a,e)+"input ".concat(e.name)+Jn(i)}(e,a):void(0,J.Z)(0,"Unexpected type: "+(0,E.Z)(e))}function Na(e){var a=e.getInterfaces();return a.length?" implements "+a.map(function(i){return i.name}).join(" & "):""}function Ma(e,a){return Jn(m(a.getFields()).map(function(g,C){return Pt(e,g," ",!C)+" "+g.name+La(e,g.args," ")+": "+String(g.type)+$n(g.deprecationReason)}))}function Jn(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function La(e,a){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return 0===a.length?"":a.every(function(g){return!g.description})?"("+a.map(Xn).join(", ")+")":"(\n"+a.map(function(g,C){return Pt(e,g," "+i,!C)+" "+i+Xn(g)}).join("\n")+"\n"+i+")"}function Xn(e){var a=Vt(e.defaultValue,e.type),i=e.name+": "+String(e.type);return a&&(i+=" = ".concat((0,re.print)(a))),i+$n(e.deprecationReason)}function $n(e){if(null==e)return"";var a=Vt(e,ft);return a&&e!==yn?" @deprecated(reason: "+(0,re.print)(a)+")":" @deprecated"}function Pt(e,a){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",g=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],C=a.description;if(null==C)return"";if(!0===e?.commentDescriptions)return Hs(C,i,g);var k=C.length>70,Y=(0,Xr.LZ)(C,"",k),te=i&&!g?"\n"+i:i;return te+Y.replace(/\n/g,"\n"+i)+"\n"}function Hs(e,a,i){return(a&&!i?"\n":"")+e.split("\n").map(function(k){return a+(""!==k?"# "+k:"#")}).join("\n")+"\n"}function zs(e){for(var a=[],i=0;i<e.length;i++)a=a.concat(e[i].definitions);return{kind:"Document",definitions:a}}function qs(e){for(var a=[],i=Object.create(null),g=0,C=e.definitions;g<C.length;g++){var k=C[g];switch(k.kind){case j.h.OPERATION_DEFINITION:a.push(k);break;case j.h.FRAGMENT_DEFINITION:i[k.name.value]=Fa(k.selectionSet)}}for(var Y=Object.create(null),te=function(de){for(var ge=a[de],Ee=new Set,we=0,De=Fa(ge.selectionSet);we<De.length;we++)ka(Ee,i,De[we]);Y[ge.name?ge.name.value:""]={kind:j.h.DOCUMENT,definitions:e.definitions.filter(function(Be){return Be===ge||Be.kind===j.h.FRAGMENT_DEFINITION&&Ee.has(Be.name.value)})}},ce=0;ce<a.length;ce++)te(ce);return Y}function ka(e,a,i){if(!e.has(i)){e.add(i);var g=a[i];if(void 0!==g)for(var C=0;C<g.length;C++)ka(e,a,g[C])}}function Fa(e){var a=[];return(0,c.Vn)(e,{FragmentSpread:function(g){a.push(g.name.value)}}),a}function Zs(e){for(var a=(0,zn.T)(e)?e:new zn.H(e),i=a.body,g=new qn.h(a),C="",k=!1;g.advance().kind!==Mr.T.EOF;){var Y=g.token,te=Y.kind,ce=!(0,qn.u)(Y.kind);k&&(ce||Y.kind===Mr.T.SPREAD)&&(C+=" ");var pe=i.slice(Y.start,Y.end);C+=te===Mr.T.BLOCK_STRING?Ys(pe):pe,k=ce}return C}function Ys(e){var a=e.slice(3,-3),i=(0,Xr.W7)(a);(0,Xr.Z2)(i)>0&&(i="\n"+i);var g=i[i.length-1];return('"'===g&&'\\"""'!==i.slice(-4)||"\\"===g)&&(i+="\n"),'"""'+i+'"""'}function Ua(e,a){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(e);a&&(g=g.filter(function(C){return Object.getOwnPropertyDescriptor(e,C).enumerable})),i.push.apply(i,g)}return i}function Ba(e){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?Ua(Object(i),!0).forEach(function(g){Js(e,g,i[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ua(Object(i)).forEach(function(g){Object.defineProperty(e,g,Object.getOwnPropertyDescriptor(i,g))})}return e}function Js(e,a,i){return a in e?Object.defineProperty(e,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[a]=i,e}var dt=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",IMPLEMENTED_INTERFACE_REMOVED:"IMPLEMENTED_INTERFACE_REMOVED",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_REPEATABLE_REMOVED:"DIRECTIVE_REPEATABLE_REMOVED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"}),Zt=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",IMPLEMENTED_INTERFACE_ADDED:"IMPLEMENTED_INTERFACE_ADDED",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});function Xs(e,a){return ja(e,a).filter(function(g){return g.type in dt})}function $s(e,a){return ja(e,a).filter(function(g){return g.type in Zt})}function ja(e,a){return[].concat(function tu(e,a){for(var i=[],g=Yt(m(e.getTypeMap()),m(a.getTypeMap())),C=0,k=g.removed;C<k.length;C++){var Y=k[C];i.push({type:dt.TYPE_REMOVED,description:Kr(Y)?"Standard scalar ".concat(Y.name," was removed because it is not referenced anymore."):"".concat(Y.name," was removed.")})}for(var te=0,ce=g.persisted;te<ce.length;te++){var pe=ce[te],de=pe[0],ge=pe[1];Oe(de)&&Oe(ge)?i.push.apply(i,iu(de,ge)):Te(de)&&Te(ge)?i.push.apply(i,nu(de,ge)):H(de)&&H(ge)?i.push.apply(i,ru(de,ge)):Z(de)&&Z(ge)||ie(de)&&ie(ge)?i.push.apply(i,Ka(de,ge).concat(Va(de,ge))):de.constructor!==ge.constructor&&i.push({type:dt.TYPE_CHANGED_KIND,description:"".concat(de.name," changed from ")+"".concat(Ga(de)," to ").concat(Ga(ge),".")})}return i}(e,a),function eu(e,a){for(var i=[],g=Yt(e.getDirectives(),a.getDirectives()),C=0,k=g.removed;C<k.length;C++)i.push({type:dt.DIRECTIVE_REMOVED,description:"".concat(k[C].name," was removed.")});for(var te=0,ce=g.persisted;te<ce.length;te++){for(var pe=ce[te],de=pe[0],ge=pe[1],Ee=Yt(de.args,ge.args),we=0,De=Ee.added;we<De.length;we++){var Pe=De[we];wt(Pe)&&i.push({type:dt.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(Pe.name," on directive ").concat(de.name," was added.")})}for(var Ue=0,Be=Ee.removed;Ue<Be.length;Ue++)i.push({type:dt.DIRECTIVE_ARG_REMOVED,description:"".concat(Be[Ue].name," was removed from ").concat(de.name,".")});de.isRepeatable&&!ge.isRepeatable&&i.push({type:dt.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(de.name,".")});for(var Je=0,tt=de.locations;Je<tt.length;Je++){var et=tt[Je];-1===ge.locations.indexOf(et)&&i.push({type:dt.DIRECTIVE_LOCATION_REMOVED,description:"".concat(et," was removed from ").concat(de.name,".")})}}return i}(e,a))}function ru(e,a){for(var i=[],g=Yt(m(e.getFields()),m(a.getFields())),C=0,k=g.added;C<k.length;C++){var Y=k[C];fr(Y)?i.push({type:dt.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(Y.name," on input type ").concat(e.name," was added.")}):i.push({type:Zt.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(Y.name," on input type ").concat(e.name," was added.")})}for(var te=0,ce=g.removed;te<ce.length;te++){var pe=ce[te];i.push({type:dt.FIELD_REMOVED,description:"".concat(e.name,".").concat(pe.name," was removed.")})}for(var de=0,ge=g.persisted;de<ge.length;de++){var Ee=ge[de],we=Ee[0],De=Ee[1];kr(we.type,De.type)||i.push({type:dt.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(we.name," changed type from ")+"".concat(String(we.type)," to ").concat(String(De.type),".")})}return i}function nu(e,a){for(var i=[],g=Yt(e.getTypes(),a.getTypes()),C=0,k=g.added;C<k.length;C++)i.push({type:Zt.TYPE_ADDED_TO_UNION,description:"".concat(k[C].name," was added to union type ").concat(e.name,".")});for(var te=0,ce=g.removed;te<ce.length;te++)i.push({type:dt.TYPE_REMOVED_FROM_UNION,description:"".concat(ce[te].name," was removed from union type ").concat(e.name,".")});return i}function iu(e,a){for(var i=[],g=Yt(e.getValues(),a.getValues()),C=0,k=g.added;C<k.length;C++)i.push({type:Zt.VALUE_ADDED_TO_ENUM,description:"".concat(k[C].name," was added to enum type ").concat(e.name,".")});for(var te=0,ce=g.removed;te<ce.length;te++)i.push({type:dt.VALUE_REMOVED_FROM_ENUM,description:"".concat(ce[te].name," was removed from enum type ").concat(e.name,".")});return i}function Va(e,a){for(var i=[],g=Yt(e.getInterfaces(),a.getInterfaces()),C=0,k=g.added;C<k.length;C++)i.push({type:Zt.IMPLEMENTED_INTERFACE_ADDED,description:"".concat(k[C].name," added to interfaces implemented by ").concat(e.name,".")});for(var te=0,ce=g.removed;te<ce.length;te++){var pe=ce[te];i.push({type:dt.IMPLEMENTED_INTERFACE_REMOVED,description:"".concat(e.name," no longer implements interface ").concat(pe.name,".")})}return i}function Ka(e,a){for(var i=[],g=Yt(m(e.getFields()),m(a.getFields())),C=0,k=g.removed;C<k.length;C++){var Y=k[C];i.push({type:dt.FIELD_REMOVED,description:"".concat(e.name,".").concat(Y.name," was removed.")})}for(var te=0,ce=g.persisted;te<ce.length;te++){var pe=ce[te],de=pe[0],ge=pe[1];i.push.apply(i,au(e,de,ge)),Lr(de.type,ge.type)||i.push({type:dt.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(de.name," changed type from ")+"".concat(String(de.type)," to ").concat(String(ge.type),".")})}return i}function au(e,a,i){for(var g=[],C=Yt(a.args,i.args),k=0,Y=C.removed;k<Y.length;k++){var te=Y[k];g.push({type:dt.ARG_REMOVED,description:"".concat(e.name,".").concat(a.name," arg ").concat(te.name," was removed.")})}for(var ce=0,pe=C.persisted;ce<pe.length;ce++){var de=pe[ce],ge=de[0],Ee=de[1];if(kr(ge.type,Ee.type)){if(void 0!==ge.defaultValue)if(void 0===Ee.defaultValue)g.push({type:Zt.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(a.name," arg ").concat(ge.name," defaultValue was removed.")});else{var De=Wa(ge.defaultValue,ge.type),Pe=Wa(Ee.defaultValue,Ee.type);De!==Pe&&g.push({type:Zt.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(a.name," arg ").concat(ge.name," has changed defaultValue from ").concat(De," to ").concat(Pe,".")})}}else g.push({type:dt.ARG_CHANGED_KIND,description:"".concat(e.name,".").concat(a.name," arg ").concat(ge.name," has changed type from ")+"".concat(String(ge.type)," to ").concat(String(Ee.type),".")})}for(var Ue=0,Be=C.added;Ue<Be.length;Ue++){var Ge=Be[Ue];wt(Ge)?g.push({type:dt.REQUIRED_ARG_ADDED,description:"A required arg ".concat(Ge.name," on ").concat(e.name,".").concat(a.name," was added.")}):g.push({type:Zt.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(Ge.name," on ").concat(e.name,".").concat(a.name," was added.")})}return g}function Lr(e,a){return U(e)?U(a)&&Lr(e.ofType,a.ofType)||ye(a)&&Lr(e,a.ofType):ye(e)?ye(a)&&Lr(e.ofType,a.ofType):Rt(a)&&e.name===a.name||ye(a)&&Lr(e,a.ofType)}function kr(e,a){return U(e)?U(a)&&kr(e.ofType,a.ofType):ye(e)?ye(a)&&kr(e.ofType,a.ofType)||!ye(a)&&kr(e.ofType,a):Rt(a)&&e.name===a.name}function Ga(e){return M(e)?"a Scalar type":Z(e)?"an Object type":ie(e)?"an Interface type":Te(e)?"a Union type":Oe(e)?"an Enum type":H(e)?"an Input type":void(0,J.Z)(0,"Unexpected type: "+(0,E.Z)(e))}function Wa(e,a){var i=Vt(e,a);null!=i||(0,J.Z)(0);var g=(0,c.Vn)(i,{ObjectValue:function(k){var Y=[].concat(k.fields);return Y.sort(function(te,ce){return Q(te.name.value,ce.name.value)}),Ba(Ba({},k),{},{fields:Y})}});return(0,re.print)(g)}function Yt(e,a){for(var i=[],g=[],C=[],k=K(e,function(Ee){return Ee.name}),Y=K(a,function(Ee){return Ee.name}),te=0;te<e.length;te++){var ce=e[te],pe=Y[ce.name];void 0===pe?g.push(ce):C.push([ce,pe])}for(var de=0;de<a.length;de++){var ge=a[de];void 0===k[ge.name]&&i.push(ge)}return{added:i,persisted:C,removed:g}}function ou(e,a){return jn(e,a,[Ta])}var su=d(69251)},60488:(ne,L,d)=>{"use strict";function s(S,l){if(!Boolean(S))throw new Error(l)}d.d(L,{Z:()=>s})},44104:(ne,L,d)=>{"use strict";d.d(L,{Z:()=>S});const S=function(t,r){return t instanceof r}},67650:(ne,L,d)=>{"use strict";function s(l){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(l)}function S(l){return"object"==s(l)&&null!==l}d.d(L,{Z:()=>S})},52194:(ne,L,d)=>{"use strict";d.d(L,{B:()=>s});var s=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"})},90550:(ne,L,d)=>{"use strict";d.d(L,{h:()=>r,u:()=>n});var s=d(73153),S=d(31279),l=d(92495),t=d(33951),r=function(){function B(q){var W=new S.WU(l.T.SOF,0,0,0,0,null);this.source=q,this.lastToken=W,this.token=W,this.line=1,this.lineStart=0}var K=B.prototype;return K.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},K.lookahead=function(){var W=this.token;if(W.kind!==l.T.EOF)do{var O;W=null!==(O=W.next)&&void 0!==O?O:W.next=o(this,W)}while(W.kind===l.T.COMMENT);return W},B}();function n(B){return B===l.T.BANG||B===l.T.DOLLAR||B===l.T.AMP||B===l.T.PAREN_L||B===l.T.PAREN_R||B===l.T.SPREAD||B===l.T.COLON||B===l.T.EQUALS||B===l.T.AT||B===l.T.BRACKET_L||B===l.T.BRACKET_R||B===l.T.BRACE_L||B===l.T.PIPE||B===l.T.BRACE_R}function c(B){return isNaN(B)?l.T.EOF:B<127?JSON.stringify(String.fromCharCode(B)):'"\\u'.concat(("00"+B.toString(16).toUpperCase()).slice(-4),'"')}function o(B,K){for(var q=B.source,W=q.body,O=W.length,w=K.end;w<O;){var f=W.charCodeAt(w),y=B.line,p=1+w-B.lineStart;switch(f){case 65279:case 9:case 32:case 44:++w;continue;case 10:++w,++B.line,B.lineStart=w;continue;case 13:10===W.charCodeAt(w+1)?w+=2:++w,++B.line,B.lineStart=w;continue;case 33:return new S.WU(l.T.BANG,w,w+1,y,p,K);case 35:return v(q,w,y,p,K);case 36:return new S.WU(l.T.DOLLAR,w,w+1,y,p,K);case 38:return new S.WU(l.T.AMP,w,w+1,y,p,K);case 40:return new S.WU(l.T.PAREN_L,w,w+1,y,p,K);case 41:return new S.WU(l.T.PAREN_R,w,w+1,y,p,K);case 46:if(46===W.charCodeAt(w+1)&&46===W.charCodeAt(w+2))return new S.WU(l.T.SPREAD,w,w+3,y,p,K);break;case 58:return new S.WU(l.T.COLON,w,w+1,y,p,K);case 61:return new S.WU(l.T.EQUALS,w,w+1,y,p,K);case 64:return new S.WU(l.T.AT,w,w+1,y,p,K);case 91:return new S.WU(l.T.BRACKET_L,w,w+1,y,p,K);case 93:return new S.WU(l.T.BRACKET_R,w,w+1,y,p,K);case 123:return new S.WU(l.T.BRACE_L,w,w+1,y,p,K);case 124:return new S.WU(l.T.PIPE,w,w+1,y,p,K);case 125:return new S.WU(l.T.BRACE_R,w,w+1,y,p,K);case 34:return 34===W.charCodeAt(w+1)&&34===W.charCodeAt(w+2)?P(q,w,y,p,K,B):R(q,w,y,p,K);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return m(q,w,f,y,p,K);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return _(q,w,y,p,K)}throw(0,s.h)(q,w,u(f))}return new S.WU(l.T.EOF,O,O,B.line,1+w-B.lineStart,K)}function u(B){return B<32&&9!==B&&10!==B&&13!==B?"Cannot contain the invalid character ".concat(c(B),"."):39===B?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(c(B),".")}function v(B,K,q,W,O){var f,w=B.body,y=K;do{f=w.charCodeAt(++y)}while(!isNaN(f)&&(f>31||9===f));return new S.WU(l.T.COMMENT,K,y,q,W,O,w.slice(K+1,y))}function m(B,K,q,W,O,w){var f=B.body,y=q,p=K,N=!1;if(45===y&&(y=f.charCodeAt(++p)),48===y){if((y=f.charCodeAt(++p))>=48&&y<=57)throw(0,s.h)(B,p,"Invalid number, unexpected digit after 0: ".concat(c(y),"."))}else p=E(B,p,y),y=f.charCodeAt(p);if(46===y&&(N=!0,y=f.charCodeAt(++p),p=E(B,p,y),y=f.charCodeAt(p)),(69===y||101===y)&&(N=!0,(43===(y=f.charCodeAt(++p))||45===y)&&(y=f.charCodeAt(++p)),p=E(B,p,y),y=f.charCodeAt(p)),46===y||function I(B){return 95===B||B>=65&&B<=90||B>=97&&B<=122}(y))throw(0,s.h)(B,p,"Invalid number, expected digit but got: ".concat(c(y),"."));return new S.WU(N?l.T.FLOAT:l.T.INT,K,p,W,O,w,f.slice(K,p))}function E(B,K,q){var W=B.body,O=K,w=q;if(w>=48&&w<=57){do{w=W.charCodeAt(++O)}while(w>=48&&w<=57);return O}throw(0,s.h)(B,O,"Invalid number, expected digit but got: ".concat(c(w),"."))}function R(B,K,q,W,O){for(var w=B.body,f=K+1,y=f,p=0,N="";f<w.length&&!isNaN(p=w.charCodeAt(f))&&10!==p&&13!==p;){if(34===p)return N+=w.slice(y,f),new S.WU(l.T.STRING,K,f+1,q,W,O,N);if(p<32&&9!==p)throw(0,s.h)(B,f,"Invalid character within String: ".concat(c(p),"."));if(++f,92===p){switch(N+=w.slice(y,f-1),p=w.charCodeAt(f)){case 34:N+='"';break;case 47:N+="/";break;case 92:N+="\\";break;case 98:N+="\b";break;case 102:N+="\f";break;case 110:N+="\n";break;case 114:N+="\r";break;case 116:N+="\t";break;case 117:var V=D(w.charCodeAt(f+1),w.charCodeAt(f+2),w.charCodeAt(f+3),w.charCodeAt(f+4));if(V<0){var Q=w.slice(f+1,f+5);throw(0,s.h)(B,f,"Invalid character escape sequence: \\u".concat(Q,"."))}N+=String.fromCharCode(V),f+=4;break;default:throw(0,s.h)(B,f,"Invalid character escape sequence: \\".concat(String.fromCharCode(p),"."))}y=++f}}throw(0,s.h)(B,f,"Unterminated string.")}function P(B,K,q,W,O,w){for(var f=B.body,y=K+3,p=y,N=0,V="";y<f.length&&!isNaN(N=f.charCodeAt(y));){if(34===N&&34===f.charCodeAt(y+1)&&34===f.charCodeAt(y+2))return V+=f.slice(p,y),new S.WU(l.T.BLOCK_STRING,K,y+3,q,W,O,(0,t.W7)(V));if(N<32&&9!==N&&10!==N&&13!==N)throw(0,s.h)(B,y,"Invalid character within String: ".concat(c(N),"."));10===N?(++y,++w.line,w.lineStart=y):13===N?(10===f.charCodeAt(y+1)?y+=2:++y,++w.line,w.lineStart=y):92===N&&34===f.charCodeAt(y+1)&&34===f.charCodeAt(y+2)&&34===f.charCodeAt(y+3)?(V+=f.slice(p,y)+'"""',p=y+=4):++y}throw(0,s.h)(B,y,"Unterminated string.")}function D(B,K,q,W){return A(B)<<12|A(K)<<8|A(q)<<4|A(W)}function A(B){return B>=48&&B<=57?B-48:B>=65&&B<=70?B-55:B>=97&&B<=102?B-87:-1}function _(B,K,q,W,O){for(var w=B.body,f=w.length,y=K+1,p=0;y!==f&&!isNaN(p=w.charCodeAt(y))&&(95===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122);)++y;return new S.WU(l.T.NAME,K,y,q,W,O,w.slice(K,y))}},74051:(ne,L,d)=>{"use strict";function s(S,l){for(var c,t=/\r\n|[\n\r]/g,r=1,n=l+1;(c=t.exec(S.body))&&c.index<l;)r+=1,n=l+1-(c.index+c[0].length);return{line:r,column:n}}d.d(L,{k:()=>s})},51724:(ne,L,d)=>{"use strict";d.d(L,{H2:()=>u,Qc:()=>o,gZ:()=>v});var s=d(73153),S=d(87948),l=d(31279),t=d(92495),r=d(99921),n=d(52194),c=d(90550);function o(P,D){return new m(P,D).parseDocument()}function u(P,D){var A=new m(P,D);A.expectToken(t.T.SOF);var _=A.parseValueLiteral(!1);return A.expectToken(t.T.EOF),_}function v(P,D){var A=new m(P,D);A.expectToken(t.T.SOF);var _=A.parseTypeReference();return A.expectToken(t.T.EOF),_}var m=function(){function P(A,_){var I=(0,r.T)(A)?A:new r.H(A);this._lexer=new c.h(I),this._options=_}var D=P.prototype;return D.parseName=function(){var _=this.expectToken(t.T.NAME);return{kind:S.h.NAME,value:_.value,loc:this.loc(_)}},D.parseDocument=function(){var _=this._lexer.token;return{kind:S.h.DOCUMENT,definitions:this.many(t.T.SOF,this.parseDefinition,t.T.EOF),loc:this.loc(_)}},D.parseDefinition=function(){if(this.peek(t.T.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(t.T.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},D.parseOperationDefinition=function(){var _=this._lexer.token;if(this.peek(t.T.BRACE_L))return{kind:S.h.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(_)};var B,I=this.parseOperationType();return this.peek(t.T.NAME)&&(B=this.parseName()),{kind:S.h.OPERATION_DEFINITION,operation:I,name:B,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(_)}},D.parseOperationType=function(){var _=this.expectToken(t.T.NAME);switch(_.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(_)},D.parseVariableDefinitions=function(){return this.optionalMany(t.T.PAREN_L,this.parseVariableDefinition,t.T.PAREN_R)},D.parseVariableDefinition=function(){var _=this._lexer.token;return{kind:S.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(t.T.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(t.T.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(_)}},D.parseVariable=function(){var _=this._lexer.token;return this.expectToken(t.T.DOLLAR),{kind:S.h.VARIABLE,name:this.parseName(),loc:this.loc(_)}},D.parseSelectionSet=function(){var _=this._lexer.token;return{kind:S.h.SELECTION_SET,selections:this.many(t.T.BRACE_L,this.parseSelection,t.T.BRACE_R),loc:this.loc(_)}},D.parseSelection=function(){return this.peek(t.T.SPREAD)?this.parseFragment():this.parseField()},D.parseField=function(){var B,K,_=this._lexer.token,I=this.parseName();return this.expectOptionalToken(t.T.COLON)?(B=I,K=this.parseName()):K=I,{kind:S.h.FIELD,alias:B,name:K,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(t.T.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(_)}},D.parseArguments=function(_){return this.optionalMany(t.T.PAREN_L,_?this.parseConstArgument:this.parseArgument,t.T.PAREN_R)},D.parseArgument=function(){var _=this._lexer.token,I=this.parseName();return this.expectToken(t.T.COLON),{kind:S.h.ARGUMENT,name:I,value:this.parseValueLiteral(!1),loc:this.loc(_)}},D.parseConstArgument=function(){var _=this._lexer.token;return{kind:S.h.ARGUMENT,name:this.parseName(),value:(this.expectToken(t.T.COLON),this.parseValueLiteral(!0)),loc:this.loc(_)}},D.parseFragment=function(){var _=this._lexer.token;this.expectToken(t.T.SPREAD);var I=this.expectOptionalKeyword("on");return!I&&this.peek(t.T.NAME)?{kind:S.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(_)}:{kind:S.h.INLINE_FRAGMENT,typeCondition:I?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(_)}},D.parseFragmentDefinition=function(){var _,I=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(_=this._options)||void 0===_?void 0:_.experimentalFragmentVariables)?{kind:S.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(I)}:{kind:S.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(I)}},D.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},D.parseValueLiteral=function(_){var I=this._lexer.token;switch(I.kind){case t.T.BRACKET_L:return this.parseList(_);case t.T.BRACE_L:return this.parseObject(_);case t.T.INT:return this._lexer.advance(),{kind:S.h.INT,value:I.value,loc:this.loc(I)};case t.T.FLOAT:return this._lexer.advance(),{kind:S.h.FLOAT,value:I.value,loc:this.loc(I)};case t.T.STRING:case t.T.BLOCK_STRING:return this.parseStringLiteral();case t.T.NAME:switch(this._lexer.advance(),I.value){case"true":return{kind:S.h.BOOLEAN,value:!0,loc:this.loc(I)};case"false":return{kind:S.h.BOOLEAN,value:!1,loc:this.loc(I)};case"null":return{kind:S.h.NULL,loc:this.loc(I)};default:return{kind:S.h.ENUM,value:I.value,loc:this.loc(I)}}case t.T.DOLLAR:if(!_)return this.parseVariable()}throw this.unexpected()},D.parseStringLiteral=function(){var _=this._lexer.token;return this._lexer.advance(),{kind:S.h.STRING,value:_.value,block:_.kind===t.T.BLOCK_STRING,loc:this.loc(_)}},D.parseList=function(_){var I=this,B=this._lexer.token;return{kind:S.h.LIST,values:this.any(t.T.BRACKET_L,function(){return I.parseValueLiteral(_)},t.T.BRACKET_R),loc:this.loc(B)}},D.parseObject=function(_){var I=this,B=this._lexer.token;return{kind:S.h.OBJECT,fields:this.any(t.T.BRACE_L,function(){return I.parseObjectField(_)},t.T.BRACE_R),loc:this.loc(B)}},D.parseObjectField=function(_){var I=this._lexer.token,B=this.parseName();return this.expectToken(t.T.COLON),{kind:S.h.OBJECT_FIELD,name:B,value:this.parseValueLiteral(_),loc:this.loc(I)}},D.parseDirectives=function(_){for(var I=[];this.peek(t.T.AT);)I.push(this.parseDirective(_));return I},D.parseDirective=function(_){var I=this._lexer.token;return this.expectToken(t.T.AT),{kind:S.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(_),loc:this.loc(I)}},D.parseTypeReference=function(){var I,_=this._lexer.token;return this.expectOptionalToken(t.T.BRACKET_L)?(I=this.parseTypeReference(),this.expectToken(t.T.BRACKET_R),I={kind:S.h.LIST_TYPE,type:I,loc:this.loc(_)}):I=this.parseNamedType(),this.expectOptionalToken(t.T.BANG)?{kind:S.h.NON_NULL_TYPE,type:I,loc:this.loc(_)}:I},D.parseNamedType=function(){var _=this._lexer.token;return{kind:S.h.NAMED_TYPE,name:this.parseName(),loc:this.loc(_)}},D.parseTypeSystemDefinition=function(){var _=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(_.kind===t.T.NAME)switch(_.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(_)},D.peekDescription=function(){return this.peek(t.T.STRING)||this.peek(t.T.BLOCK_STRING)},D.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},D.parseSchemaDefinition=function(){var _=this._lexer.token,I=this.parseDescription();this.expectKeyword("schema");var B=this.parseDirectives(!0),K=this.many(t.T.BRACE_L,this.parseOperationTypeDefinition,t.T.BRACE_R);return{kind:S.h.SCHEMA_DEFINITION,description:I,directives:B,operationTypes:K,loc:this.loc(_)}},D.parseOperationTypeDefinition=function(){var _=this._lexer.token,I=this.parseOperationType();this.expectToken(t.T.COLON);var B=this.parseNamedType();return{kind:S.h.OPERATION_TYPE_DEFINITION,operation:I,type:B,loc:this.loc(_)}},D.parseScalarTypeDefinition=function(){var _=this._lexer.token,I=this.parseDescription();this.expectKeyword("scalar");var B=this.parseName(),K=this.parseDirectives(!0);return{kind:S.h.SCALAR_TYPE_DEFINITION,description:I,name:B,directives:K,loc:this.loc(_)}},D.parseObjectTypeDefinition=function(){var _=this._lexer.token,I=this.parseDescription();this.expectKeyword("type");var B=this.parseName(),K=this.parseImplementsInterfaces(),q=this.parseDirectives(!0),W=this.parseFieldsDefinition();return{kind:S.h.OBJECT_TYPE_DEFINITION,description:I,name:B,interfaces:K,directives:q,fields:W,loc:this.loc(_)}},D.parseImplementsInterfaces=function(){var _;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(_=this._options)||void 0===_?void 0:_.allowLegacySDLImplementsInterfaces)){var I=[];this.expectOptionalToken(t.T.AMP);do{I.push(this.parseNamedType())}while(this.expectOptionalToken(t.T.AMP)||this.peek(t.T.NAME));return I}return this.delimitedMany(t.T.AMP,this.parseNamedType)},D.parseFieldsDefinition=function(){var _;return!0===(null===(_=this._options)||void 0===_?void 0:_.allowLegacySDLEmptyFields)&&this.peek(t.T.BRACE_L)&&this._lexer.lookahead().kind===t.T.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(t.T.BRACE_L,this.parseFieldDefinition,t.T.BRACE_R)},D.parseFieldDefinition=function(){var _=this._lexer.token,I=this.parseDescription(),B=this.parseName(),K=this.parseArgumentDefs();this.expectToken(t.T.COLON);var q=this.parseTypeReference(),W=this.parseDirectives(!0);return{kind:S.h.FIELD_DEFINITION,description:I,name:B,arguments:K,type:q,directives:W,loc:this.loc(_)}},D.parseArgumentDefs=function(){return this.optionalMany(t.T.PAREN_L,this.parseInputValueDef,t.T.PAREN_R)},D.parseInputValueDef=function(){var _=this._lexer.token,I=this.parseDescription(),B=this.parseName();this.expectToken(t.T.COLON);var q,K=this.parseTypeReference();this.expectOptionalToken(t.T.EQUALS)&&(q=this.parseValueLiteral(!0));var W=this.parseDirectives(!0);return{kind:S.h.INPUT_VALUE_DEFINITION,description:I,name:B,type:K,defaultValue:q,directives:W,loc:this.loc(_)}},D.parseInterfaceTypeDefinition=function(){var _=this._lexer.token,I=this.parseDescription();this.expectKeyword("interface");var B=this.parseName(),K=this.parseImplementsInterfaces(),q=this.parseDirectives(!0),W=this.parseFieldsDefinition();return{kind:S.h.INTERFACE_TYPE_DEFINITION,description:I,name:B,interfaces:K,directives:q,fields:W,loc:this.loc(_)}},D.parseUnionTypeDefinition=function(){var _=this._lexer.token,I=this.parseDescription();this.expectKeyword("union");var B=this.parseName(),K=this.parseDirectives(!0),q=this.parseUnionMemberTypes();return{kind:S.h.UNION_TYPE_DEFINITION,description:I,name:B,directives:K,types:q,loc:this.loc(_)}},D.parseUnionMemberTypes=function(){return this.expectOptionalToken(t.T.EQUALS)?this.delimitedMany(t.T.PIPE,this.parseNamedType):[]},D.parseEnumTypeDefinition=function(){var _=this._lexer.token,I=this.parseDescription();this.expectKeyword("enum");var B=this.parseName(),K=this.parseDirectives(!0),q=this.parseEnumValuesDefinition();return{kind:S.h.ENUM_TYPE_DEFINITION,description:I,name:B,directives:K,values:q,loc:this.loc(_)}},D.parseEnumValuesDefinition=function(){return this.optionalMany(t.T.BRACE_L,this.parseEnumValueDefinition,t.T.BRACE_R)},D.parseEnumValueDefinition=function(){var _=this._lexer.token,I=this.parseDescription(),B=this.parseName(),K=this.parseDirectives(!0);return{kind:S.h.ENUM_VALUE_DEFINITION,description:I,name:B,directives:K,loc:this.loc(_)}},D.parseInputObjectTypeDefinition=function(){var _=this._lexer.token,I=this.parseDescription();this.expectKeyword("input");var B=this.parseName(),K=this.parseDirectives(!0),q=this.parseInputFieldsDefinition();return{kind:S.h.INPUT_OBJECT_TYPE_DEFINITION,description:I,name:B,directives:K,fields:q,loc:this.loc(_)}},D.parseInputFieldsDefinition=function(){return this.optionalMany(t.T.BRACE_L,this.parseInputValueDef,t.T.BRACE_R)},D.parseTypeSystemExtension=function(){var _=this._lexer.lookahead();if(_.kind===t.T.NAME)switch(_.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(_)},D.parseSchemaExtension=function(){var _=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var I=this.parseDirectives(!0),B=this.optionalMany(t.T.BRACE_L,this.parseOperationTypeDefinition,t.T.BRACE_R);if(0===I.length&&0===B.length)throw this.unexpected();return{kind:S.h.SCHEMA_EXTENSION,directives:I,operationTypes:B,loc:this.loc(_)}},D.parseScalarTypeExtension=function(){var _=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var I=this.parseName(),B=this.parseDirectives(!0);if(0===B.length)throw this.unexpected();return{kind:S.h.SCALAR_TYPE_EXTENSION,name:I,directives:B,loc:this.loc(_)}},D.parseObjectTypeExtension=function(){var _=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var I=this.parseName(),B=this.parseImplementsInterfaces(),K=this.parseDirectives(!0),q=this.parseFieldsDefinition();if(0===B.length&&0===K.length&&0===q.length)throw this.unexpected();return{kind:S.h.OBJECT_TYPE_EXTENSION,name:I,interfaces:B,directives:K,fields:q,loc:this.loc(_)}},D.parseInterfaceTypeExtension=function(){var _=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var I=this.parseName(),B=this.parseImplementsInterfaces(),K=this.parseDirectives(!0),q=this.parseFieldsDefinition();if(0===B.length&&0===K.length&&0===q.length)throw this.unexpected();return{kind:S.h.INTERFACE_TYPE_EXTENSION,name:I,interfaces:B,directives:K,fields:q,loc:this.loc(_)}},D.parseUnionTypeExtension=function(){var _=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var I=this.parseName(),B=this.parseDirectives(!0),K=this.parseUnionMemberTypes();if(0===B.length&&0===K.length)throw this.unexpected();return{kind:S.h.UNION_TYPE_EXTENSION,name:I,directives:B,types:K,loc:this.loc(_)}},D.parseEnumTypeExtension=function(){var _=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var I=this.parseName(),B=this.parseDirectives(!0),K=this.parseEnumValuesDefinition();if(0===B.length&&0===K.length)throw this.unexpected();return{kind:S.h.ENUM_TYPE_EXTENSION,name:I,directives:B,values:K,loc:this.loc(_)}},D.parseInputObjectTypeExtension=function(){var _=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var I=this.parseName(),B=this.parseDirectives(!0),K=this.parseInputFieldsDefinition();if(0===B.length&&0===K.length)throw this.unexpected();return{kind:S.h.INPUT_OBJECT_TYPE_EXTENSION,name:I,directives:B,fields:K,loc:this.loc(_)}},D.parseDirectiveDefinition=function(){var _=this._lexer.token,I=this.parseDescription();this.expectKeyword("directive"),this.expectToken(t.T.AT);var B=this.parseName(),K=this.parseArgumentDefs(),q=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var W=this.parseDirectiveLocations();return{kind:S.h.DIRECTIVE_DEFINITION,description:I,name:B,arguments:K,repeatable:q,locations:W,loc:this.loc(_)}},D.parseDirectiveLocations=function(){return this.delimitedMany(t.T.PIPE,this.parseDirectiveLocation)},D.parseDirectiveLocation=function(){var _=this._lexer.token,I=this.parseName();if(void 0!==n.B[I.value])return I;throw this.unexpected(_)},D.loc=function(_){var I;if(!0!==(null===(I=this._options)||void 0===I?void 0:I.noLocation))return new l.Ye(_,this._lexer.lastToken,this._lexer.source)},D.peek=function(_){return this._lexer.token.kind===_},D.expectToken=function(_){var I=this._lexer.token;if(I.kind===_)return this._lexer.advance(),I;throw(0,s.h)(this._lexer.source,I.start,"Expected ".concat(R(_),", found ").concat(E(I),"."))},D.expectOptionalToken=function(_){var I=this._lexer.token;if(I.kind===_)return this._lexer.advance(),I},D.expectKeyword=function(_){var I=this._lexer.token;if(I.kind!==t.T.NAME||I.value!==_)throw(0,s.h)(this._lexer.source,I.start,'Expected "'.concat(_,'", found ').concat(E(I),"."));this._lexer.advance()},D.expectOptionalKeyword=function(_){var I=this._lexer.token;return I.kind===t.T.NAME&&I.value===_&&(this._lexer.advance(),!0)},D.unexpected=function(_){var I=_??this._lexer.token;return(0,s.h)(this._lexer.source,I.start,"Unexpected ".concat(E(I),"."))},D.any=function(_,I,B){this.expectToken(_);for(var K=[];!this.expectOptionalToken(B);)K.push(I.call(this));return K},D.optionalMany=function(_,I,B){if(this.expectOptionalToken(_)){var K=[];do{K.push(I.call(this))}while(!this.expectOptionalToken(B));return K}return[]},D.many=function(_,I,B){this.expectToken(_);var K=[];do{K.push(I.call(this))}while(!this.expectOptionalToken(B));return K},D.delimitedMany=function(_,I){this.expectOptionalToken(_);var B=[];do{B.push(I.call(this))}while(this.expectOptionalToken(_));return B},P}();function E(P){var D=P.value;return R(P.kind)+(null!=D?' "'.concat(D,'"'):"")}function R(P){return(0,c.u)(P)?'"'.concat(P,'"'):P}},83346:(ne,L,d)=>{"use strict";d.d(L,{Q:()=>S,z:()=>l});var s=d(74051);function S(c){return l(c.source,(0,s.k)(c.source,c.start))}function l(c,o){var u=c.locationOffset.column-1,v=r(u)+c.body,m=o.line-1,R=o.line+(c.locationOffset.line-1),D=o.column+(1===o.line?u:0),A="".concat(c.name,":").concat(R,":").concat(D,"\n"),_=v.split(/\r\n|[\n\r]/g),I=_[m];if(I.length>120){for(var B=Math.floor(D/80),K=D%80,q=[],W=0;W<I.length;W+=80)q.push(I.slice(W,W+80));return A+t([["".concat(R),q[0]]].concat(q.slice(1,B+1).map(function(O){return["",O]}),[[" ",r(K-1)+"^"],["",q[B+1]]]))}return A+t([["".concat(R-1),_[m-1]],["".concat(R),I],["",r(D-1)+"^"],["".concat(R+1),_[m+1]]])}function t(c){var o=c.filter(function(v){return void 0!==v[1]}),u=Math.max.apply(Math,o.map(function(v){return v[0].length}));return o.map(function(v){var E=v[1];return function n(c,o){return r(c-o.length)+o}(u,v[0])+(E?" | "+E:" |")}).join("\n")}function r(c){return Array(c+1).join(" ")}},99921:(ne,L,d)=>{"use strict";d.d(L,{H:()=>c,T:()=>o});var s=d(63952),S=d(95897),l=d(60488),t=d(44104);function r(u,v){for(var m=0;m<v.length;m++){var E=v[m];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(u,E.key,E)}}var c=function(){function u(v){var m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof v||(0,l.Z)(0,"Body must be a string. Received: ".concat((0,S.Z)(v),".")),this.body=v,this.name=m,this.locationOffset=E,this.locationOffset.line>0||(0,l.Z)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,l.Z)(0,"column in locationOffset is 1-indexed and must be positive.")}return function n(u,v,m){v&&r(u.prototype,v),m&&r(u,m)}(u,[{key:s.YF,get:function(){return"Source"}}]),u}();function o(u){return(0,t.Z)(u,c)}},92495:(ne,L,d)=>{"use strict";d.d(L,{T:()=>s});var s=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"})},63952:(ne,L,d)=>{"use strict";d.d(L,{PA:()=>S,Xr:()=>s,YF:()=>l});var s="function"==typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:"@@iterator",S="function"==typeof Symbol&&null!=Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator",l="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag"},44226:ne=>{"use strict";ne.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"}}')},46933:ne=>{"use strict";ne.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":{}}}}')},13428:ne=>{"use strict";ne.exports=JSON.parse('{"o":{"ListIdentityPools":{"input_token":"NextToken","limit_key":"MaxResults","output_token":"NextToken","result_key":"IdentityPools"}}}')},1406:ne=>{"use strict";ne.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"},"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"}}')},42369:ne=>{"use strict";ne.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":{}}}}}')},14819:ne=>{"use strict";ne.exports={o:{}}},50261:ne=>{"use strict";ne.exports=JSON.parse('{"rules":{"*/*":{"endpoint":"{service}.{region}.amazonaws.com"},"cn-*/*":{"endpoint":"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":{"endpoint":"{service}.{region}.c2s.ic.gov"},"us-isob-*/*":{"endpoint":"{service}.{region}.sc2s.sgov.gov"},"*/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","*/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"}},"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"}}}')}}]);
|
|
1
|
+
(self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[243],{60162:(ce,k,p)=>{"use strict";p.d(k,{Jh:()=>i,ZT:()=>w,_T:()=>r,mG:()=>e,pi:()=>d,pr:()=>I});var t=function(L,g){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,c){R.__proto__=c}||function(R,c){for(var _ in c)c.hasOwnProperty(_)&&(R[_]=c[_])})(L,g)};function w(L,g){function R(){this.constructor=L}t(L,g),L.prototype=null===g?Object.create(g):(R.prototype=g.prototype,new R)}var d=function(){return d=Object.assign||function(g){for(var R,c=1,_=arguments.length;c<_;c++)for(var l in R=arguments[c])Object.prototype.hasOwnProperty.call(R,l)&&(g[l]=R[l]);return g},d.apply(this,arguments)};function r(L,g){var R={};for(var c in L)Object.prototype.hasOwnProperty.call(L,c)&&g.indexOf(c)<0&&(R[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[_])&&(R[c[_]]=L[c[_]])}return R}function e(L,g,R,c){return new(R||(R=Promise))(function(_,l){function T(z){try{U(c.next(z))}catch(ae){l(ae)}}function B(z){try{U(c.throw(z))}catch(ae){l(ae)}}function U(z){z.done?_(z.value):new R(function(ae){ae(z.value)}).then(T,B)}U((c=c.apply(L,g||[])).next())})}function i(L,g){var c,_,l,T,R={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return T={next:B(0),throw:B(1),return:B(2)},"function"==typeof Symbol&&(T[Symbol.iterator]=function(){return this}),T;function B(z){return function(ae){return function U(z){if(c)throw new TypeError("Generator is already executing.");for(;R;)try{if(c=1,_&&(l=2&z[0]?_.return:z[0]?_.throw||((l=_.return)&&l.call(_),0):_.next)&&!(l=l.call(_,z[1])).done)return l;switch(_=0,l&&(z=[2&z[0],l.value]),z[0]){case 0:case 1:l=z;break;case 4:return R.label++,{value:z[1],done:!1};case 5:R.label++,_=z[1],z=[0];continue;case 7:z=R.ops.pop(),R.trys.pop();continue;default:if(!(l=(l=R.trys).length>0&&l[l.length-1])&&(6===z[0]||2===z[0])){R=0;continue}if(3===z[0]&&(!l||z[1]>l[0]&&z[1]<l[3])){R.label=z[1];break}if(6===z[0]&&R.label<l[1]){R.label=l[1],l=z;break}if(l&&R.label<l[2]){R.label=l[2],R.ops.push(z);break}l[2]&&R.ops.pop(),R.trys.pop();continue}z=g.call(L,R)}catch(ae){z=[6,ae],_=0}finally{c=l=0}if(5&z[0])throw z[1];return{value:z[0]?z[1]:void 0,done:!0}}([z,ae])}}}function I(){for(var L=0,g=0,R=arguments.length;g<R;g++)L+=arguments[g].length;var c=Array(L),_=0;for(g=0;g<R;g++)for(var l=arguments[g],T=0,B=l.length;T<B;T++,_++)c[_]=l[T];return c}},91205:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{__assign:()=>d,__asyncDelegator:()=>D,__asyncGenerator:()=>C,__asyncValues:()=>W,__await:()=>P,__awaiter:()=>e,__classPrivateFieldGet:()=>g,__classPrivateFieldSet:()=>R,__createBinding:()=>s,__decorate:()=>n,__exportStar:()=>h,__extends:()=>w,__generator:()=>i,__importDefault:()=>L,__importStar:()=>H,__makeTemplateObject:()=>Q,__metadata:()=>u,__param:()=>a,__read:()=>m,__rest:()=>r,__spread:()=>I,__spreadArrays:()=>M,__values:()=>y});var t=function(c,_){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,T){l.__proto__=T}||function(l,T){for(var B in T)T.hasOwnProperty(B)&&(l[B]=T[B])})(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,T=1,B=arguments.length;T<B;T++)for(var U in l=arguments[T])Object.prototype.hasOwnProperty.call(l,U)&&(_[U]=l[U]);return _},d.apply(this,arguments)};function r(c,_){var l={};for(var T in c)Object.prototype.hasOwnProperty.call(c,T)&&_.indexOf(T)<0&&(l[T]=c[T]);if(null!=c&&"function"==typeof Object.getOwnPropertySymbols){var B=0;for(T=Object.getOwnPropertySymbols(c);B<T.length;B++)_.indexOf(T[B])<0&&Object.prototype.propertyIsEnumerable.call(c,T[B])&&(l[T[B]]=c[T[B]])}return l}function n(c,_,l,T){var z,B=arguments.length,U=B<3?_:null===T?T=Object.getOwnPropertyDescriptor(_,l):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)U=Reflect.decorate(c,_,l,T);else for(var ae=c.length-1;ae>=0;ae--)(z=c[ae])&&(U=(B<3?z(U):B>3?z(_,l,U):z(_,l))||U);return B>3&&U&&Object.defineProperty(_,l,U),U}function a(c,_){return function(l,T){_(l,T,c)}}function u(c,_){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(c,_)}function e(c,_,l,T){return new(l||(l=Promise))(function(U,z){function ae(he){try{X(T.next(he))}catch(oe){z(oe)}}function pe(he){try{X(T.throw(he))}catch(oe){z(oe)}}function X(he){he.done?U(he.value):function B(U){return U instanceof l?U:new l(function(z){z(U)})}(he.value).then(ae,pe)}X((T=T.apply(c,_||[])).next())})}function i(c,_){var T,B,U,z,l={label:0,sent:function(){if(1&U[0])throw U[1];return U[1]},trys:[],ops:[]};return z={next:ae(0),throw:ae(1),return:ae(2)},"function"==typeof Symbol&&(z[Symbol.iterator]=function(){return this}),z;function ae(X){return function(he){return function pe(X){if(T)throw new TypeError("Generator is already executing.");for(;l;)try{if(T=1,B&&(U=2&X[0]?B.return:X[0]?B.throw||((U=B.return)&&U.call(B),0):B.next)&&!(U=U.call(B,X[1])).done)return U;switch(B=0,U&&(X=[2&X[0],U.value]),X[0]){case 0:case 1:U=X;break;case 4:return l.label++,{value:X[1],done:!1};case 5:l.label++,B=X[1],X=[0];continue;case 7:X=l.ops.pop(),l.trys.pop();continue;default:if(!(U=(U=l.trys).length>0&&U[U.length-1])&&(6===X[0]||2===X[0])){l=0;continue}if(3===X[0]&&(!U||X[1]>U[0]&&X[1]<U[3])){l.label=X[1];break}if(6===X[0]&&l.label<U[1]){l.label=U[1],U=X;break}if(U&&l.label<U[2]){l.label=U[2],l.ops.push(X);break}U[2]&&l.ops.pop(),l.trys.pop();continue}X=_.call(c,l)}catch(he){X=[6,he],B=0}finally{T=U=0}if(5&X[0])throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}([X,he])}}}function s(c,_,l,T){void 0===T&&(T=l),c[T]=_[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[_],T=0;if(l)return l.call(c);if(c&&"number"==typeof c.length)return{next:function(){return c&&T>=c.length&&(c=void 0),{value:c&&c[T++],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 B,z,T=l.call(c),U=[];try{for(;(void 0===_||_-- >0)&&!(B=T.next()).done;)U.push(B.value)}catch(ae){z={error:ae}}finally{try{B&&!B.done&&(l=T.return)&&l.call(T)}finally{if(z)throw z.error}}return U}function I(){for(var c=[],_=0;_<arguments.length;_++)c=c.concat(m(arguments[_]));return c}function M(){for(var c=0,_=0,l=arguments.length;_<l;_++)c+=arguments[_].length;var T=Array(c),B=0;for(_=0;_<l;_++)for(var U=arguments[_],z=0,ae=U.length;z<ae;z++,B++)T[B]=U[z];return T}function P(c){return this instanceof P?(this.v=c,this):new P(c)}function C(c,_,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var B,T=l.apply(c,_||[]),U=[];return B={},z("next"),z("throw"),z("return"),B[Symbol.asyncIterator]=function(){return this},B;function z(K){T[K]&&(B[K]=function(Y){return new Promise(function(ne,$){U.push([K,Y,ne,$])>1||ae(K,Y)})})}function ae(K,Y){try{!function pe(K){K.value instanceof P?Promise.resolve(K.value.v).then(X,he):oe(U[0][2],K)}(T[K](Y))}catch(ne){oe(U[0][3],ne)}}function X(K){ae("next",K)}function he(K){ae("throw",K)}function oe(K,Y){K(Y),U.shift(),U.length&&ae(U[0][0],U[0][1])}}function D(c){var _,l;return _={},T("next"),T("throw",function(B){throw B}),T("return"),_[Symbol.iterator]=function(){return this},_;function T(B,U){_[B]=c[B]?function(z){return(l=!l)?{value:P(c[B](z)),done:"return"===B}:U?U(z):z}:U}}function W(c){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l,_=c[Symbol.asyncIterator];return _?_.call(c):(c=y(c),l={},T("next"),T("throw"),T("return"),l[Symbol.asyncIterator]=function(){return this},l);function T(U){l[U]=c[U]&&function(z){return new Promise(function(ae,pe){!function B(U,z,ae,pe){Promise.resolve(pe).then(function(X){U({value:X,done:ae})},z)}(ae,pe,(z=c[U](z)).done,z.value)})}}}function Q(c,_){return Object.defineProperty?Object.defineProperty(c,"raw",{value:_}):c.raw=_,c}function H(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 R(c,_,l){if(!_.has(c))throw new TypeError("attempted to set private field on non-instance");return _.set(c,l),l}},5163:(ce,k,p)=>{"use strict";p.d(k,{Jh:()=>i,ZT:()=>w,_T:()=>r,ev:()=>P,mG:()=>e,pi:()=>d});var t=function(T,B){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,z){U.__proto__=z}||function(U,z){for(var ae in z)Object.prototype.hasOwnProperty.call(z,ae)&&(U[ae]=z[ae])})(T,B)};function w(T,B){if("function"!=typeof B&&null!==B)throw new TypeError("Class extends value "+String(B)+" is not a constructor or null");function U(){this.constructor=T}t(T,B),T.prototype=null===B?Object.create(B):(U.prototype=B.prototype,new U)}var d=function(){return d=Object.assign||function(B){for(var U,z=1,ae=arguments.length;z<ae;z++)for(var pe in U=arguments[z])Object.prototype.hasOwnProperty.call(U,pe)&&(B[pe]=U[pe]);return B},d.apply(this,arguments)};function r(T,B){var U={};for(var z in T)Object.prototype.hasOwnProperty.call(T,z)&&B.indexOf(z)<0&&(U[z]=T[z]);if(null!=T&&"function"==typeof Object.getOwnPropertySymbols){var ae=0;for(z=Object.getOwnPropertySymbols(T);ae<z.length;ae++)B.indexOf(z[ae])<0&&Object.prototype.propertyIsEnumerable.call(T,z[ae])&&(U[z[ae]]=T[z[ae]])}return U}function e(T,B,U,z){return new(U||(U=Promise))(function(pe,X){function he(Y){try{K(z.next(Y))}catch(ne){X(ne)}}function oe(Y){try{K(z.throw(Y))}catch(ne){X(ne)}}function K(Y){Y.done?pe(Y.value):function ae(pe){return pe instanceof U?pe:new U(function(X){X(pe)})}(Y.value).then(he,oe)}K((z=z.apply(T,B||[])).next())})}function i(T,B){var z,ae,pe,X,U={label:0,sent:function(){if(1&pe[0])throw pe[1];return pe[1]},trys:[],ops:[]};return X={next:he(0),throw:he(1),return:he(2)},"function"==typeof Symbol&&(X[Symbol.iterator]=function(){return this}),X;function he(K){return function(Y){return function oe(K){if(z)throw new TypeError("Generator is already executing.");for(;U;)try{if(z=1,ae&&(pe=2&K[0]?ae.return:K[0]?ae.throw||((pe=ae.return)&&pe.call(ae),0):ae.next)&&!(pe=pe.call(ae,K[1])).done)return pe;switch(ae=0,pe&&(K=[2&K[0],pe.value]),K[0]){case 0:case 1:pe=K;break;case 4:return U.label++,{value:K[1],done:!1};case 5:U.label++,ae=K[1],K=[0];continue;case 7:K=U.ops.pop(),U.trys.pop();continue;default:if(!(pe=(pe=U.trys).length>0&&pe[pe.length-1])&&(6===K[0]||2===K[0])){U=0;continue}if(3===K[0]&&(!pe||K[1]>pe[0]&&K[1]<pe[3])){U.label=K[1];break}if(6===K[0]&&U.label<pe[1]){U.label=pe[1],pe=K;break}if(pe&&U.label<pe[2]){U.label=pe[2],U.ops.push(K);break}pe[2]&&U.ops.pop(),U.trys.pop();continue}K=B.call(T,U)}catch(Y){K=[6,Y],ae=0}finally{z=pe=0}if(5&K[0])throw K[1];return{value:K[0]?K[1]:void 0,done:!0}}([K,Y])}}}function P(T,B,U){if(U||2===arguments.length)for(var pe,z=0,ae=B.length;z<ae;z++)(pe||!(z in B))&&(pe||(pe=Array.prototype.slice.call(B,0,z)),pe[z]=B[z]);return T.concat(pe||Array.prototype.slice.call(B))}},97985:(ce,k,p)=>{"use strict";p.d(k,{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,a){this.performTransaction(n,a)},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,a){return void 0===a&&(a=!!n.optimistic),this.read({rootId:n.id||"ROOT_QUERY",query:n.query,variables:n.variables,returnPartialData:n.returnPartialData,optimistic:a})},r.prototype.readFragment=function(n,a){return void 0===a&&(a=!!n.optimistic),this.read({query:this.getFragmentDoc(n.fragment,n.fragmentName),variables:n.variables,rootId:n.id,returnPartialData:n.returnPartialData,optimistic:a})},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:(ce,k,p)=>{"use strict";var t;p.d(k,{C:()=>t}),t||(t={})},46206:(ce,k,p)=>{"use strict";p.d(k,{y:()=>t});var t=function w(d,r,n,a,u){this.message=d,this.path=r,this.query=n,this.clientOnly=a,this.variables=u}},67136:(ce,k,p)=>{"use strict";p.d(k,{$O:()=>a,E_:()=>u,RC:()=>e,RI:()=>r,ig:()=>s,j:()=>i});var t=p(7882),w=p(31220),d=p(52647),r=Object.prototype.hasOwnProperty,a=/^[_a-z][_0-9a-z]*/i;function u(h){var y=h.match(a);return y?y[0]:h}function e(h,y,m){return!(!y||"object"!=typeof y)&&(Array.isArray(y)?y.every(function(I){return e(h,I,m)}):h.selections.every(function(I){if((0,t.My)(I)&&(0,w.LZ)(I,m)){var M=(0,t.u2)(I);return r.call(y,M)&&(!I.selectionSet||e(I.selectionSet,y[M],m))}return!0}))}function i(h){return null!==h&&"object"==typeof h&&!(0,t.Yk)(h)&&!Array.isArray(h)}function s(){return new d.w0}},45670:(ce,k,p)=>{"use strict";p.d(k,{h:()=>ne});var $,A,t=p(60162),w=p(86438),d=p(97985),r=p(46206),n=p(7882),a=p(64323),u=p(73567),e=p(57993),i=p(77260),s=p(31220),h=p(52647),y=p(52485),P=p(18770),C=p(67136),D=Object.create(null),W=function(){return D},Q=Object.create(null),H=function(){function $(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,q){return(0,n.Yk)(N)?x.get(N.__ref,q):N&&N[q]},this.canRead=function(N){return(0,n.Yk)(N)?x.has(N.__ref):"object"==typeof N},this.toReference=function(N,q){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 ue=(0,n.kQ)(ee);return q&&x.merge(ee,N),ue}}}return $.prototype.toObject=function(){return(0,t.pi)({},this.data)},$.prototype.has=function(A){return void 0!==this.lookup(A,!0)},$.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 R?this.parent.get(A,b):void 0},$.prototype.lookup=function(A,b){return b&&this.group.depend(A,"__exists"),C.RI.call(this.data,A)?this.data[A]:this instanceof R?this.parent.lookup(A,b):this.policies.rootTypenamesById[A]?Object.create(null):void 0},$.prototype.merge=function(A,b){var x=this,N=this.lookup(A),q=new h.w0(c).merge(N,b);if(this.data[A]=q,q!==N&&(delete this.refs[A],this.group.caching)){var ee=Object.create(null);N||(ee.__exists=1),Object.keys(b).forEach(function(ue){if(!N||N[ue]!==q[ue]){ee[ue]=1;var _e=(0,C.E_)(ue);_e!==ue&&!x.policies.hasKeyArgs(q.__typename,_e)&&(ee[_e]=1),void 0===q[ue]&&!(x instanceof R)&&delete q[ue]}}),Object.keys(ee).forEach(function(ue){return x.group.dirty(A,ue)})}},$.prototype.modify=function(A,b){var x=this,N=this.lookup(A);if(N){var q=Object.create(null),ee=!1,ue=!0,_e={DELETE:D,INVALIDATE:Q,isReference:n.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(me,Re){return x.policies.readField("string"==typeof me?{fieldName:me,from:Re||(0,n.kQ)(A)}:me,{store:x})}};if(Object.keys(N).forEach(function(me){var Re=(0,C.E_)(me),De=N[me];if(void 0!==De){var Me="function"==typeof b?b:b[me]||b[Re];if(Me){var ie=Me===W?D:Me(De,(0,t.pi)((0,t.pi)({},_e),{fieldName:Re,storeFieldName:me,storage:x.getStorage(A,me)}));ie===Q?x.group.dirty(A,me):(ie===D&&(ie=void 0),ie!==De&&(q[me]=ie,ee=!0,De=ie))}void 0!==De&&(ue=!1)}}),ee)return this.merge(A,q),ue&&(this instanceof R?this.data[A]=void 0:delete this.data[A],this.group.dirty(A,"__exists")),!0}return!1},$.prototype.delete=function(A,b,x){var N,q=this.lookup(A);if(q){var ee=this.getFieldValue(q,"__typename"),ue=b&&x?this.policies.getStoreFieldName({typename:ee,fieldName:b,args:x}):b;return this.modify(A,ue?((N={})[ue]=W,N):W)}return!1},$.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 R&&(b=this.parent.evict(A)||b),(A.fieldName||b)&&this.group.dirty(A.id,A.fieldName||"__exists")),b},$.prototype.clear=function(){this.replace(null)},$.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},$.prototype.replace=function(A){var b=this;if(Object.keys(this.data).forEach(function(q){A&&C.RI.call(A,q)||b.delete(q)}),A){var x=A.__META,N=(0,t._T)(A,["__META"]);Object.keys(N).forEach(function(q){b.merge(q,N[q])}),x&&x.extraRootIds.forEach(this.retain,this)}},$.prototype.retain=function(A){return this.rootIds[A]=(this.rootIds[A]||0)+1},$.prototype.release=function(A){if(this.rootIds[A]>0){var b=--this.rootIds[A];return b||delete this.rootIds[A],b}return 0},$.prototype.getRootIdSet=function(A){return void 0===A&&(A=new Set),Object.keys(this.rootIds).forEach(A.add,A),this instanceof R?this.parent.getRootIdSet(A):Object.keys(this.policies.rootTypenamesById).forEach(A.add,A),A},$.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 q=this;q instanceof R;)q=q.parent;N.forEach(function(ee){return q.delete(ee)})}return N},$.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(q){return null!==q&&"object"==typeof q};x.forEach(function(q){(0,n.Yk)(q)?b[q.__ref]=!0:N(q)&&Object.values(q).filter(N).forEach(x.add,x)})}return this.refs[A]},$.prototype.makeCacheKey=function(){for(var A=[],b=0;b<arguments.length;b++)A[b]=arguments[b];return this.group.keyMaker.lookupArray(A)},$}(),L=function(){function $(A){this.caching=A,this.d=null,this.keyMaker=new w.Gl(P.m),this.d=A?(0,w.dP)():null}return $.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))}},$.prototype.dirty=function(A,b){this.d&&this.d.dirty(g(A,b))},$}();function g($,A){return A+"#"+$}A=function(b){function x(N){var ee=N.resultCaching,ue=void 0===ee||ee,_e=N.seed,me=b.call(this,N.policies,new L(ue))||this;return me.storageTrie=new w.Gl(P.m),me.sharedLayerGroup=new L(ue),_e&&me.replace(_e),me}return(0,t.ZT)(x,b),x.prototype.addLayer=function(N,q){return new R(N,this,q,this.sharedLayerGroup)},x.prototype.removeLayer=function(){return this},x.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},x}($=H||(H={})),$.Root=A;var R=function($){function A(b,x,N,q){var ee=$.call(this,x.policies,q)||this;return ee.id=b,ee.parent=x,ee.replay=N,ee.group=q,N(ee),ee}return(0,t.ZT)(A,$),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(q){x.data[q]!==N.lookup(q)&&x.delete(q)}),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),$.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}(H);function c($,A,b){var x=$[b],N=A[b];return(0,y.D)(x,N)?x:N}function _($){return!!($ instanceof H&&$.group.caching)}function l($,A){return new r.y($.message,A.path.slice(),A.query,A.clientOnly,A.variables)}var T=function(){function $(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,q){if(_(q.store))return q.store.makeCacheKey(x,(0,n.Yk)(N)?N.__ref:N,q.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=(0,w.re)(function(x){return b.execSubSelectedArrayImpl(x)},{makeCacheKey:function(x){var N=x.field,q=x.array,ee=x.context;if(_(ee.store))return ee.store.makeCacheKey(N,q,ee.varString)}}),this.config=(0,t.pi)({addTypename:!0},A)}return $.prototype.diffQueryAgainstStore=function(A){var b=A.store,x=A.query,N=A.rootId,q=void 0===N?"ROOT_QUERY":N,ee=A.variables,ue=A.returnPartialData,_e=void 0===ue||ue,me=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)(q),context:{store:b,query:x,policies:me,variables:ee,varString:JSON.stringify(ee),fragmentMap:(0,i.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}},$.prototype.isFresh=function(A,b,x,N){if(_(N.store)&&this.knownResults.get(A)===x){var q=this.executeSelectionSet.peek(x,b,N);if(q&&A===q.result)return!0}return!1},$.prototype.execSelectionSetImpl=function(A){var b=this,x=A.selectionSet,N=A.objectOrReference,q=A.context;if((0,n.Yk)(N)&&!q.policies.rootTypenamesById[N.__ref]&&!q.store.has(N.__ref))return{result:{},missing:[l(new u.ej(4),q)]};var ee=q.variables,ue=q.policies,me=[],Re={result:null},De=q.store.getFieldValue(N,"__typename");function Me(){return Re.missing||(Re.missing=[])}function ie(v){var O;return v.missing&&(O=Me()).push.apply(O,v.missing),v.result}this.config.addTypename&&"string"==typeof De&&!ue.rootIdsByTypename[De]&&me.push({__typename:De});var V=new Set(x.selections);return V.forEach(function(v){var O;if((0,s.LZ)(v,ee))if((0,n.My)(v)){var F=ue.readField({fieldName:v.name.value,field:v,variables:q.variables,from:N},q),re=(0,n.u2)(v);q.path.push(re);var ve=q.clientOnly;q.clientOnly=ve||!(!v.directives||!v.directives.some(function(Te){return"client"===Te.name.value})),void 0===F?a.Gw.added(v)||Me().push(l(new u.ej(5),q)):Array.isArray(F)?F=ie(b.executeSubSelectedArray({field:v,array:F,context:q})):v.selectionSet&&null!=F&&(F=ie(b.executeSelectionSet({selectionSet:v.selectionSet,objectOrReference:F,context:q}))),void 0!==F&&me.push(((O={})[re]=F,O)),q.clientOnly=ve,(0,u.kG)(q.path.pop()===re)}else{var xe=(0,i.hi)(v,q.fragmentMap);xe&&ue.fragmentMatches(xe,De)&&xe.selectionSet.selections.forEach(V.add,V)}}),Re.result=(0,h.bw)(me),this.knownResults.set(Re.result,x),Re},$.prototype.execSubSelectedArrayImpl=function(A){var ee,b=this,x=A.field,N=A.array,q=A.context;function ue(_e,me){return _e.missing&&(ee=ee||[]).push.apply(ee,_e.missing),(0,u.kG)(q.path.pop()===me),_e.result}return x.selectionSet&&(N=N.filter(q.store.canRead)),{result:N=N.map(function(_e,me){return null===_e?null:(q.path.push(me),Array.isArray(_e)?ue(b.executeSubSelectedArray({field:x,array:_e,context:q}),me):x.selectionSet?ue(b.executeSelectionSet({selectionSet:x.selectionSet,objectOrReference:_e,context:q}),me):((0,u.kG)(q.path.pop()===me),_e))}),missing:ee}},$}(),U=function(){function $(A,b){this.cache=A,this.reader=b}return $.prototype.writeToStore=function(A){var b=A.query,x=A.result,N=A.dataId,q=A.store,ee=A.variables,ue=(0,e.$H)(b),_e=(0,C.ig)();ee=(0,t.pi)((0,t.pi)({},(0,e.O4)(ue)),ee);var me=this.processSelectionSet({result:x||Object.create(null),dataId:N,selectionSet:ue.selectionSet,mergeTree:{map:new Map},context:{store:q,written:Object.create(null),merge:function(Re,De){return _e.merge(Re,De)},variables:ee,varString:JSON.stringify(ee),fragmentMap:(0,i.F)((0,e.kU)(b))}});if(!(0,n.Yk)(me))throw new u.ej(7);return q.retain(me.__ref),me},$.prototype.processSelectionSet=function(A){var b=this,x=A.dataId,N=A.result,q=A.selectionSet,ee=A.context,ue=A.mergeTree,_e=this.cache.policies,me=_e.identify(N,q,ee.fragmentMap),De=me[1];if("string"==typeof(x=x||me[0])){var Me=ee.written[x]||(ee.written[x]=[]),ie=(0,n.kQ)(x);if(Me.indexOf(q)>=0||(Me.push(q),this.reader&&this.reader.isFresh(N,ie,q,ee)))return ie}var V=Object.create(null);De&&(V=ee.merge(V,De));var v=x&&_e.rootTypenamesById[x]||(0,n.qw)(N,q,ee.fragmentMap)||x&&ee.store.get(x,"__typename");"string"==typeof v&&(V.__typename=v);var O=new Set(q.selections);if(O.forEach(function(Te){var te;if((0,s.LZ)(Te,ee.variables))if((0,n.My)(Te)){var de=(0,n.u2)(Te),ye=N[de];if(typeof ye<"u"){var Oe=_e.getStoreFieldName({typename:v,fieldName:Te.name.value,field:Te,variables:ee.variables}),Ie=ae(ue,Oe),Ue=b.processFieldValue(ye,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}:pe(ue,Oe),V=ee.merge(V,((te={})[Oe]=Ue,te))}else if(_e.usingPossibleTypes&&!(0,s.FS)(["defer","client"],Te))throw new u.ej(8)}else{var nt=(0,i.hi)(Te,ee.fragmentMap);nt&&_e.fragmentMatches(nt,v,N,ee.variables)&&nt.selectionSet.selections.forEach(O.add,O)}}),"string"==typeof x){var F=(0,n.kQ)(x);return ue.map.size&&(V=this.applyMerges(ue,F,V,ee)),ee.store.merge(x,V),F}return V},$.prototype.processFieldValue=function(A,b,x,N){var q=this;return b.selectionSet&&null!==A?Array.isArray(A)?A.map(function(ee,ue){var _e=q.processFieldValue(ee,b,x,ae(N,ue));return pe(N,ue),_e}):this.processSelectionSet({result:A,selectionSet:b.selectionSet,context:x,mergeTree:N}):A},$.prototype.applyMerges=function(A,b,x,N,q){var ee,ue=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,me=x;_e&&!q&&(q=[(0,n.Yk)(_e)?_e.__ref:_e]);var Re,De=function(Me,ie){return Array.isArray(Me)?"number"==typeof ie?Me[ie]:void 0:N.store.getFieldValue(Me,String(ie))};A.map.forEach(function(Me,ie){q&&q.push(ie);var V=De(_e,ie),v=De(me,ie),O=ue.applyMerges(Me,V,v,N,q);O!==v&&(Re=Re||new Map).set(ie,O),q&&(0,u.kG)(q.pop()===ie)}),Re&&(x=Array.isArray(me)?me.slice(0):(0,t.pi)({},me),Re.forEach(function(Me,ie){x[ie]=Me}))}return A.info?this.cache.policies.runMergeFunction(b,x,A.info,N,q&&(ee=N.store).getStorage.apply(ee,q)):x},$}(),z=[];function ae($,A){var b=$.map;return b.has(A)||b.set(A,z.pop()||{map:new Map}),b.get(A)}function pe($,A){var b=$.map,x=b.get(A);x&&!x.info&&!x.map.size&&(z.push(x),b.delete(A))}var oe=p(62068),K=p(7236),Y={dataIdFromObject:K.u,addTypename:!0,resultCaching:!0,typePolicies:{}},ne=function($){function A(b){void 0===b&&(b={});var x=$.call(this)||this;return x.watches=new Set,x.typenameDocumentCache=new Map,x.makeVar=oe.QS,x.txCount=0,x.maybeBroadcastWatch=(0,w.re)(function(N,q){return x.broadcastWatch.call(x,N,!!q)},{makeCacheKey:function(N){var q=N.optimistic?x.optimisticData:x.data;if(_(q))return q.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 K.r({cache:x,dataIdFromObject:x.config.dataIdFromObject,possibleTypes:x.config.possibleTypes,typePolicies:x.config.typePolicies}),x.data=new H.Root({policies:x.policies,resultCaching:x.config.resultCaching}),x.optimisticData=x.data,x.storeWriter=new U(x,x.storeReader=new T({cache:x,addTypename:x.addTypename})),x}return(0,t.ZT)(A,$),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(q){if(q instanceof r.y)return null;throw q}},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,oe._v)(this),this.watches.add(b),b.immediate&&this.maybeBroadcastWatch(b),function(){x.watches.delete(b)&&!x.watches.size&&(0,oe.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,q=function(ue){var me=N.data,Re=N.optimisticData;++N.txCount,ue&&(N.data=N.optimisticData=ue);try{b(N)}finally{--N.txCount,N.data=me,N.optimisticData=Re}},ee=!1;"string"==typeof x?(this.optimisticData=this.optimisticData.addLayer(x,q),ee=!0):null===x?q(this.data):q(),this.broadcastWatches(ee)},A.prototype.transformDocument=function(b){if(this.addTypename){var x=this.typenameDocumentCache.get(b);return x||(x=(0,a.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:(ce,k,p)=>{"use strict";p.d(k,{r:()=>M,u:()=>s});var t=p(60162),w=p(86438),d=p(73567),r=p(7882),n=p(18770),a=p(77260),u=p(67136),e=p(62068);function i(L){return void 0!==L.args?L.args:L.field?(0,r.NC)(L.field,L.variables):null}var s=function(L,g){var R=L.__typename,c=L.id,_=L._id;if("string"==typeof R&&(g&&(g.keyObject=void 0!==c?{id:c}:void 0!==_?{_id:_}:void 0),void 0===c&&(c=_),void 0!==c))return R+":"+("number"==typeof c||"string"==typeof c?c:JSON.stringify(c))},h=function(){},y=function(L,g){return g.fieldName},m=function(L,g,R){return(0,R.mergeObjects)(L,g)},I=function(L,g){return g},M=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:s},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,R,c){var _=R&&c?(0,r.qw)(g,R,c):g.__typename;if(_===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var T,l={typename:_,selectionSet:R,fragmentMap:c},B=_&&this.getTypePolicy(_),U=B&&B.keyFn||this.config.dataIdFromObject;U;){var z=U(g,l);if(!Array.isArray(z)){T=z;break}U=W(z)}return T=T?String(T):void 0,l.keyObject?[T,l.keyObject]:[T]},L.prototype.addTypePolicies=function(g){var R=this;Object.keys(g).forEach(function(c){var _=g[c],l=_.queryType,T=_.mutationType,B=_.subscriptionType,U=(0,t._T)(_,["queryType","mutationType","subscriptionType"]);l&&R.setRootTypename("Query",c),T&&R.setRootTypename("Mutation",c),B&&R.setRootTypename("Subscription",c),u.RI.call(R.toBeAdded,c)?R.toBeAdded[c].push(U):R.toBeAdded[c]=[U]})},L.prototype.updateTypePolicy=function(g,R){var c=this,_=this.getTypePolicy(g),l=R.keyFields,T=R.fields;function B(U,z){U.merge="function"==typeof z?z:!0===z?m:!1===z?I:U.merge}B(_,R.merge),_.keyFn=!1===l?h:Array.isArray(l)?W(l):"function"==typeof l?l:_.keyFn,T&&Object.keys(T).forEach(function(U){var z=c.getFieldPolicy(g,U,!0),ae=T[U];if("function"==typeof ae)z.read=ae;else{var pe=ae.keyArgs,X=ae.read,he=ae.merge;z.keyFn=!1===pe?y:Array.isArray(pe)?D(pe):"function"==typeof pe?pe:z.keyFn,"function"==typeof X&&(z.read=X),B(z,he)}z.read&&z.merge&&(z.keyFn=z.keyFn||y)})},L.prototype.setRootTypename=function(g,R){void 0===R&&(R=g);var c="ROOT_"+g.toUpperCase(),_=this.rootTypenamesById[c];R!==_&&((0,d.kG)(!_||_===g,1),_&&delete this.rootIdsByTypename[_],this.rootIdsByTypename[R]=c,this.rootTypenamesById[c]=R)},L.prototype.addPossibleTypes=function(g){var R=this;this.usingPossibleTypes=!0,Object.keys(g).forEach(function(c){R.getSupertypeSet(c,!0),g[c].forEach(function(_){R.getSupertypeSet(_,!0).add(c);var l=_.match(u.$O);(!l||l[0]!==_)&&R.fuzzySubtypes.set(_,new RegExp(_))})})},L.prototype.getTypePolicy=function(g){var R=this;if(!u.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(T){var B=R.getTypePolicy(T),U=B.fields,z=(0,t._T)(B,["fields"]);Object.assign(c,z),Object.assign(c.fields,U)})}var l=this.toBeAdded[g];return l&&l.length&&l.splice(0).forEach(function(T){R.updateTypePolicy(g,T)}),this.typePolicies[g]},L.prototype.getFieldPolicy=function(g,R,c){if(g){var _=this.getTypePolicy(g).fields;return _[R]||c&&(_[R]=Object.create(null))}},L.prototype.getSupertypeSet=function(g,R){var c=this.supertypeMap.get(g);return!c&&R&&this.supertypeMap.set(g,c=new Set),c},L.prototype.fragmentMatches=function(g,R,c,_){var l=this;if(!g.typeCondition)return!0;if(!R)return!1;var T=g.typeCondition.name.value;if(R===T)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(T))for(var B=this.getSupertypeSet(R,!0),U=[B],z=function(oe){var K=l.getSupertypeSet(oe,!1);K&&K.size&&U.indexOf(K)<0&&U.push(K)},ae=!(!c||!this.fuzzySubtypes.size),X=0;X<U.length;++X){var he=U[X];if(he.has(T))return B.has(T)||B.add(T),!0;he.forEach(z),ae&&X===U.length-1&&(0,u.RC)(g.selectionSet,c,_)&&(ae=!1,this.fuzzySubtypes.forEach(function(oe,K){var Y=R.match(oe);Y&&Y[0]===R&&z(K)}))}return!1},L.prototype.hasKeyArgs=function(g,R){var c=this.getFieldPolicy(g,R,!1);return!(!c||!c.keyFn)},L.prototype.getStoreFieldName=function(g){var l,R=g.typename,c=g.fieldName,_=this.getFieldPolicy(R,c,!1),T=_&&_.keyFn;if(T&&R)for(var B={typename:R,fieldName:c,field:g.field||null,variables:g.variables},U=i(g);T;){var z=T(U,B);if(!Array.isArray(z)){l=z||c;break}T=D(z)}return void 0===l&&(l=g.field?(0,r.vf)(g.field,g.variables):(0,r.PT)(c,i(g))),!1===l?c:c===(0,u.E_)(l)?l:c+":"+l},L.prototype.readField=function(g,R){var c=g.from;if(c&&(g.field||g.fieldName)){if(void 0===g.typename){var l=R.store.getFieldValue(c,"__typename");l&&(g.typename=l)}var T=this.getStoreFieldName(g),B=(0,u.E_)(T),U=R.store.getFieldValue(c,T),z=this.getFieldPolicy(g.typename,B,!1),ae=z&&z.read;if(ae){var pe=P(this,c,g,R,R.store.getStorage((0,r.Yk)(c)?c.__ref:c,T));return e.ab.withValue(this.cache,ae,[U,pe])}return U}},L.prototype.getMergeFunction=function(g,R,c){var _=this.getFieldPolicy(g,R,!1),l=_&&_.merge;return!l&&c&&(l=(_=this.getTypePolicy(c))&&_.merge),l},L.prototype.runMergeFunction=function(g,R,c,_,l){var T=c.field,B=c.typename,U=c.merge;return U===m?C(_.store.getFieldValue)(g,R):U===I?R:U(g,R,P(this,void 0,{typename:B,fieldName:T.name.value,field:T,variables:_.variables},_,l||Object.create(null)))},L}();function P(L,g,R,c,_){var l=L.getStoreFieldName(R),T=(0,u.E_)(l),B=R.variables||c.variables,U=c.store,z=U.getFieldValue,ae=U.toReference,pe=U.canRead;return{args:i(R),field:R.field||null,fieldName:T,storeFieldName:l,variables:B,isReference:r.Yk,toReference:ae,storage:_,cache:L.cache,canRead:pe,readField:function(X,he){var oe="string"==typeof X?{fieldName:X,from:he}:(0,t.pi)({},X);return void 0===oe.from&&(oe.from=g),void 0===oe.variables&&(oe.variables=B),L.readField(oe,c)},mergeObjects:C(z)}}function C(L){return function(R,c){if(Array.isArray(R)||Array.isArray(c))throw new d.ej(2);if(R&&"object"==typeof R&&c&&"object"==typeof c){var _=L(R,"__typename"),l=L(c,"__typename");return _&&l&&_!==l||!(0,u.j)(R)||!(0,u.j)(c)?c:(0,t.pi)((0,t.pi)({},R),c)}return c}}function D(L){return function(g,R){return g?R.fieldName+":"+JSON.stringify(H(g,L,!1)):R.fieldName}}function W(L){var g=new w.Gl(n.m);return function(R,c){var _;if(c.selectionSet&&c.fragmentMap){var l=g.lookupArray([c.selectionSet,c.fragmentMap]);_=l.aliasMap||(l.aliasMap=Q(c.selectionSet,c.fragmentMap))}var T=c.keyObject=H(R,L,!0,_);return c.typename+":"+JSON.stringify(T)}}function Q(L,g){var R=Object.create(null),c=new Set([L]);return c.forEach(function(_){_.selections.forEach(function(l){if((0,r.My)(l)){if(l.alias){var T=l.alias.value,B=l.name.value;B!==T&&((R.aliases||(R.aliases=Object.create(null)))[B]=T)}l.selectionSet&&((R.subsets||(R.subsets=Object.create(null)))[l.name.value]=Q(l.selectionSet,g))}else{var ae=(0,a.hi)(l,g);ae&&c.add(ae.selectionSet)}})}),R}function H(L,g,R,c){var l,_=Object.create(null);return g.forEach(function(T){if(Array.isArray(T)){if("string"==typeof l){var B=c&&c.subsets;_[l]=H(L[l],T,R,B&&B[l])}}else{var z=c&&c.aliases,ae=z&&z[T]||T;u.RI.call(L,ae)?_[l=T]=L[ae]:((0,d.kG)(!R,3),l=void 0)}}),_}},62068:(ce,k,p)=>{"use strict";p.d(k,{QS:()=>e,_v:()=>u,ab:()=>d,li:()=>a});var t=p(86438),d=new(p(91971).g7),r=new WeakMap;function n(s){var h=r.get(s);return h||r.set(s,h={vars:new Set,dep:(0,t.dP)()}),h}function a(s){n(s).vars.forEach(function(h){return h.forgetCache(s)})}function u(s){n(s).vars.forEach(function(h){return h.attachCache(s)})}function e(s){var h=new Set,y=new Set,m=function(M){if(arguments.length>0){if(s!==M){s=M,h.forEach(function(D){n(D).dep.dirty(m),i(D)});var P=Array.from(y);y.clear(),P.forEach(function(D){return D(s)})}}else{var C=d.getValue();C&&(I(C),n(C).dep(m))}return s};m.onNextChange=function(M){return y.add(M),function(){y.delete(M)}};var I=m.attachCache=function(M){return h.add(M),n(M).vars.add(m),m};return m.forgetCache=function(M){return h.delete(M)},m}function i(s){s.broadcastWatches&&s.broadcastWatches()}},59799:()=>{},97307:(ce,k,p)=>{"use strict";p.d(k,{f:()=>$,J:()=>ne});var t=p(60162),w=p(73567),d=p(69924),r=p(6322),n=p(31882),u=p(73575),e=p(52485),i=p(18770);function s(A){return A.errors&&A.errors.length>0||!1}var h=p(61952),y=p(57993),m=p(64323),I=p(31220),M=p(20316),P=p.n(M),C=p(73418),D=p(42903);function W(A){return A&&"function"==typeof A.then}var Q=function(A){function b(x){var N=A.call(this,function(q){return N.addObserver(q),function(){return N.removeObserver(q)}})||this;return N.observers=new Set,N.addCount=0,N.promise=new Promise(function(q,ee){N.resolve=q,N.reject=ee}),N.handlers={next:function(q){null!==N.sub&&(N.latest=["next",q],(0,C.p)(N.observers,"next",q))},error:function(q){var ee=N.sub;null!==ee&&(ee&&Promise.resolve().then(function(){return ee.unsubscribe()}),N.sub=null,N.latest=["error",q],N.reject(q),(0,C.p)(N.observers,"error",q))},complete:function(){if(null!==N.sub){var q=N.sources.shift();q?W(q)?q.then(function(ee){return N.sub=ee.subscribe(N.handlers)}):N.sub=q.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(q){N.reject(q),N.sources=[],N.handlers.complete()},N.promise.catch(function(q){}),"function"==typeof x&&(x=[new(P())(x)]),W(x)?x.then(function(q){return N.start(q)},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],q=x[N];q&&q.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,q=!1,ee=function(){q||(q=!0,N.observers.delete(ue),x())},ue={next:ee,error:ee,complete:ee},_e=this.addCount;this.addObserver(ue),this.addCount=_e},b}(P());function H(A,b,x){return new(P())(function(N){var q=N.next,ee=N.error,ue=N.complete,_e=0,me=!1,Re={then:function(V){return new Promise(function(v){return v(V())})}};function De(V,v){return V?function(O){++_e;var F=function(){return V(O)};Re=Re.then(F,F).then(function(re){--_e,q&&q.call(N,re),me&&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,q),error:De(x,ee),complete:function(){me=!0,_e||ue&&ue.call(N)}},ie=A.subscribe(Me);return function(){return ie.unsubscribe()}})}(0,D.D)(Q);var L=p(68104),g=p(27351),R=p(87972),c=p(74270),_=p(52647),l=p(77260),T=p(7882),B=p(62068),U=function(){function A(b){var N=b.client,q=b.resolvers,ee=b.fragmentMatcher;this.cache=b.cache,N&&(this.client=N),q&&this.addResolvers(q),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,q=b.context,ee=b.variables,ue=b.onlyRunForcedResolvers,_e=void 0!==ue&&ue;return(0,t.mG)(this,void 0,void 0,function(){return(0,t.Jh)(this,function(me){return x?[2,this.resolveDocument(x,N.data,q,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,I.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(q){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(q){return"always"===q.name.value&&"BooleanValue"===q.value.kind&&!0===q.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,q,ee,ue){return void 0===N&&(N={}),void 0===q&&(q={}),void 0===ee&&(ee=function(){return!0}),void 0===ue&&(ue=!1),(0,t.mG)(this,void 0,void 0,function(){var _e,me,Re,De,Me,ie,V,v,O;return(0,t.Jh)(this,function(F){return _e=(0,y.p$)(b),me=(0,y.kU)(b),Re=(0,l.F)(me),Me=(De=_e.operation)?De.charAt(0).toUpperCase()+De.slice(1):"Query",V=(ie=this).cache,v=ie.client,O={fragmentMap:Re,context:(0,t.pi)((0,t.pi)({},N),{cache:V,client:v}),variables:q,fragmentMatcher:ee,defaultOperationType:Me,exportedVariables:{},onlyRunForcedResolvers:ue},[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 q,ee,ue,_e,Re=this;return(0,t.Jh)(this,function(De){return q=N.fragmentMap,ee=N.context,ue=N.variables,_e=[x],[2,Promise.all(b.selections.map(function(Me){return(0,t.mG)(Re,void 0,void 0,function(){var ie;return(0,t.Jh)(this,function(v){return(0,I.LZ)(Me,ue)?(0,T.My)(Me)?[2,this.resolveField(Me,x,N).then(function(O){var F;typeof O<"u"&&_e.push(((F={})[(0,T.u2)(Me)]=O,F))})]:((0,T.Ao)(Me)?ie=Me:(0,w.kG)(ie=q[Me.name.value],11),ie&&ie.typeCondition&&N.fragmentMatcher(x,ie.typeCondition.name.value,ee)?[2,this.resolveSelectionSet(ie.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 q,ee,ue,_e,me,Re,De,Me,ie,V=this;return(0,t.Jh)(this,function(v){return q=N.variables,ee=b.name.value,ue=(0,T.u2)(b),_e=ee!==ue,me=x[ue]||x[ee],Re=Promise.resolve(me),(!N.onlyRunForcedResolvers||this.shouldForceResolvers(b))&&(De=x.__typename||N.defaultOperationType,(Me=this.resolvers&&this.resolvers[De])&&(ie=Me[_e?ee:ue])&&(Re=Promise.resolve(B.ab.withValue(this.cache,ie,[x,(0,T.NC)(b,q),N.context,{field:b,fragmentMap:N.fragmentMap}])))),[2,Re.then(function(O){return void 0===O&&(O=me),b.directives&&b.directives.forEach(function(F){"export"===F.name.value&&F.arguments&&F.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)?V.resolveSubSelectedArray(b,O,N):b.selectionSet?V.resolveSelectionSet(b.selectionSet,O,N):void 0:O})]})})},A.prototype.resolveSubSelectedArray=function(b,x,N){var q=this;return Promise.all(x.map(function(ee){return null===ee?null:Array.isArray(ee)?q.resolveSubSelectedArray(b,ee,N):b.selectionSet?q.resolveSelectionSet(b.selectionSet,ee,N):void 0}))},A}(),z=new(i.m?WeakMap:Map);function ae(A,b){var x=A[b];"function"==typeof x&&(A[b]=function(){return z.set(A,(z.get(A)+1)%1e15),x.apply(this,arguments)})}function pe(A){A.notifyTimeout&&(clearTimeout(A.notifyTimeout),A.notifyTimeout=void 0)}var X=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,z.has(b)||(z.set(b,0),ae(b,"evict"),ae(b,"modify"),ae(b,"reset"))}return A.prototype.init=function(b){var x=b.networkStatus||R.I.loading;return this.variables&&this.networkStatus!==R.I.loading&&!(0,e.D)(this.variables,b.variables)&&(x=R.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(){pe(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;pe(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,R.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(q){return x.setDiff(q)}}))},A.prototype.shouldWrite=function(b,x){var N=this.lastWrite;return!(N&&N.dmCount===z.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 q=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&&(he(b,x.errorPolicy)?this.cache.performTransaction(function(ee){if(q.shouldWrite(b,x.variables))ee.writeQuery({query:q.document,data:b.data,variables:x.variables}),q.lastWrite={result:b,variables:x.variables,dmCount:z.get(q.cache)};else if(q.diff&&q.diff.complete)return void(b.data=q.diff.result);var ue=ee.diff({query:q.document,variables:x.variables,returnPartialData:!0,optimistic:!0});q.stopped||q.updateWatch(x.variables),q.diff=ue,ue.complete&&(b.data=ue.result)}):this.lastWrite=void 0)},A.prototype.markReady=function(){return this.networkError=null,this.networkStatus=R.I.ready},A.prototype.markError=function(b){return this.networkStatus=R.I.error,this.lastWrite=void 0,this.reset(),b.graphQLErrors&&(this.graphQLErrors=b.graphQLErrors),b.networkError&&(this.networkError=b.networkError),b},A}();function he(A,b){void 0===b&&(b="none");var x="ignore"===b||"all"===b,N=!s(A);return!N&&x&&A.data&&(N=!0),N}var oe=Object.prototype.hasOwnProperty,K=function(){function A(b){var x=b.cache,N=b.link,q=b.queryDeduplication,ee=void 0!==q&&q,ue=b.onBroadcast,_e=b.ssrMode,me=void 0!==_e&&_e,Re=b.clientAwareness,De=void 0===Re?{}:Re,Me=b.localState,ie=b.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(i.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 U({cache:x}),this.ssrMode=me,this.assumeImmutableResults=!!ie,(this.onBroadcast=ue)&&(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,q=b.optimisticResponse,ee=b.updateQueries,ue=b.refetchQueries,_e=void 0===ue?[]:ue,me=b.awaitRefetchQueries,Re=void 0!==me&&me,De=b.update,Me=b.errorPolicy,ie=void 0===Me?"none":Me,V=b.fetchPolicy,v=b.context,O=void 0===v?{}:v;return(0,t.mG)(this,void 0,void 0,function(){var F,re,ve;return(0,t.Jh)(this,function(xe){switch(xe.label){case 0:return(0,w.kG)(x,13),(0,w.kG)(!V||"no-cache"===V,14),F=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[F]={mutation:x,variables:N,loading:!0,error:null}),q&&this.markMutationOptimistic(q,{mutationId:F,document:x,variables:N,errorPolicy:ie,updateQueries:ee,update:De}),this.broadcastQueries(),ve=this,[2,new Promise(function(Te,te){var de,ye;ve.getObservableFromLink(x,(0,t.pi)((0,t.pi)({},O),{optimisticResponse:q}),N,!1).subscribe({next:function(Oe){if(s(Oe)&&"none"===ie)ye=new L.c({graphQLErrors:Oe.errors});else{if(re&&(re.loading=!1,re.error=null),"no-cache"!==V)try{ve.markMutationResult({mutationId:F,result:Oe,document:x,variables:N,errorPolicy:ie,updateQueries:ee,update:De})}catch(Ie){return void(ye=new L.c({networkError:Ie}))}de=Oe}},error:function(Oe){re&&(re.loading=!1,re.error=Oe),q&&ve.cache.removeOptimistic(F),ve.broadcastQueries(),te(new L.c({networkError:Oe}))},complete:function(){if(ye&&re&&(re.loading=!1,re.error=ye),q&&ve.cache.removeOptimistic(F),ve.broadcastQueries(),ye)te(ye);else{"function"==typeof _e&&(_e=_e(de));var Oe=[];(0,h.O)(_e)&&_e.forEach(function(Ie){if("string"==typeof Ie)ve.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(ve.query(Ue))}}),Promise.all(Re?Oe:[]).then(function(){"ignore"===ie&&de&&s(de)&&delete de.errors,Te(de)},te)}}})})]}})})},A.prototype.markMutationResult=function(b,x){var N=this;if(void 0===x&&(x=this.cache),he(b.result,b.errorPolicy)){var q=[{result:b.result.data,dataId:"ROOT_MUTATION",query:b.document,variables:b.variables}],ee=b.updateQueries;ee&&this.queries.forEach(function(ue,_e){var me=ue.observableQuery,Re=me&&me.queryName;if(Re&&oe.call(ee,Re)){var De=ee[Re],Me=N.queries.get(_e),ie=Me.document,V=Me.variables,v=x.diff({query:ie,variables:V,returnPartialData:!0,optimistic:!1}),O=v.result;if(v.complete&&O){var re=De(O,{mutationResult:b.result,queryName:ie&&(0,y.rY)(ie)||void 0,queryVariables:V});re&&q.push({result:re,dataId:"ROOT_QUERY",query:ie,variables:V})}}}),x.performTransaction(function(ue){q.forEach(function(me){return ue.write(me)});var _e=b.update;_e&&_e(ue,b.result)},null)}},A.prototype.markMutationOptimistic=function(b,x){var N=this,q="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:q}}),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),q=(0,m.Fo)(this.cache.transformForLink(N)),ee=this.localState.clientQuery(N),ue=q&&this.localState.serverQuery(q),_e={document:N,hasClientExports:(0,I.mj)(N),hasForcedResolvers:this.localState.shouldForceResolvers(N),clientQuery:ee,serverQuery:ue,defaultVars:(0,y.O4)((0,y.$H)(N))},me=function(Re){Re&&!x.has(Re)&&x.set(Re,_e)};me(b),me(N),me(ee),me(ue)}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 X(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=R.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(q,ee){var ue=q.observableQuery;if(ue&&ue.hasObservers()){var _e=ue.options.fetchPolicy;ue.resetLastResults(),"cache-only"!==_e&&(b||"standby"!==_e)&&N.push(ue.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,q=b.fetchPolicy,ee=b.errorPolicy,ue=b.variables,_e=b.context,me=void 0===_e?{}:_e;N=this.transform(N).document,ue=this.getVariables(N,ue);var Re=function(Me){return x.getObservableFromLink(N,me,Me,!1).map(function(ie){if("no-cache"!==q&&(he(ie,ee)&&x.cache.write({query:N,result:ie.data,dataId:"ROOT_SUBSCRIPTION",variables:Me}),x.broadcastQueries()),s(ie))throw new L.c({graphQLErrors:ie.errors});return ie})};if(this.transform(N).hasClientExports){var De=this.localState.addExportedVariables(N,ue,me).then(Re);return new(P())(function(Me){var ie=null;return De.then(function(V){return ie=V.subscribe(Me)},Me.error),function(){return ie&&ie.unsubscribe()}})}return Re(ue)},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,q){var ue,ee=this;void 0===q&&(q=null!==(ue=x?.queryDeduplication)&&void 0!==ue?ue:this.queryDeduplication);var _e,me=this.transform(b).serverQuery;if(me){var De=this.inFlightLinkObservables,Me=this.link,ie={query:me,variables:N,operationName:(0,y.rY)(me)||void 0,context:this.prepareContext((0,t.pi)((0,t.pi)({},x),{forceFetch:!q}))};if(x=ie.context,q){var V=De.get(me)||new Map;De.set(me,V);var v=JSON.stringify(N);if(!(_e=V.get(v))){var O=new Q([(0,r.h)(Me,ie)]);V.set(v,_e=O),O.cleanup(function(){V.delete(v)&&V.size<1&&De.delete(me)})}}else _e=new Q([(0,r.h)(Me,ie)])}else _e=new Q([P().of({data:{}})]),x=this.prepareContext(x);var F=this.transform(b).clientQuery;return F&&(_e=H(_e,function(re){return ee.localState.runResolvers({document:F,remoteResult:re,context:x,variables:N})})),_e},A.prototype.getResultsFromLink=function(b,x,N){var q=b.lastRequestId=this.generateRequestId();return H(this.getObservableFromLink(b.document,N.context,N.variables),function(ee){var ue=(0,h.O)(ee.errors);if(q>=b.lastRequestId){if(ue&&"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||R.I.ready};return ue&&"ignore"!==N.errorPolicy&&(_e.errors=ee.errors),_e},function(ee){var ue=(0,L.M)(ee)?ee:new L.c({networkError:ee});throw q>=b.lastRequestId&&b.markError(ue),ue})},A.prototype.fetchQueryObservable=function(b,x,N){var q=this;void 0===N&&(N=R.I.loading);var ee=this.transform(x.query).document,ue=this.getVariables(ee,x.variables),_e=this.getQuery(b),me=_e.networkStatus,Re=x.fetchPolicy,De=void 0===Re?"cache-first":Re,Me=x.errorPolicy,ie=void 0===Me?"none":Me,V=x.returnPartialData,v=void 0!==V&&V,O=x.notifyOnNetworkStatusChange,F=void 0!==O&&O,re=x.context,ve=void 0===re?{}:re;("cache-first"===De||"cache-and-network"===De||"network-only"===De||"no-cache"===De)&&F&&"number"==typeof me&&me!==N&&(0,R.O)(N)&&("cache-first"!==De&&(De="cache-and-network"),v=!0);var Te=Object.assign({},x,{query:ee,variables:ue,fetchPolicy:De,errorPolicy:ie,returnPartialData:v,notifyOnNetworkStatusChange:F,context:ve}),te=function(ye){return Te.variables=ye,q.fetchQueryByPolicy(_e,Te,N)};this.fetchCancelFns.set(b,function(ye){Promise.resolve().then(function(){return de.cancel(ye)})});var de=new Q(this.transform(Te.query).hasClientExports?this.localState.addExportedVariables(Te.query,Te.variables,Te.context).then(te):te(Te.variables));return de.cleanup(function(){q.fetchCancelFns.delete(b);var ye=x.nextFetchPolicy;ye&&(x.nextFetchPolicy=void 0,x.fetchPolicy="function"==typeof ye?ye.call(x,x.fetchPolicy||"cache-first"):ye)}),de},A.prototype.fetchQueryByPolicy=function(b,x,N){var q=this,ee=x.query,ue=x.variables,_e=x.fetchPolicy,me=x.errorPolicy,Re=x.returnPartialData,De=x.context;b.init({document:ee,variables:ue,networkStatus:N});var Me=function(){return b.getDiff(ue)},ie=function(O,F){void 0===F&&(F=b.networkStatus||R.I.loading);var re=O.result,ve=function(xe){return P().of((0,t.pi)({data:xe,loading:(0,R.O)(F),networkStatus:F},O.complete?null:{partial:!0}))};return q.transform(ee).hasForcedResolvers?q.localState.runResolvers({document:ee,remoteResult:{data:re},context:De,variables:ue,onlyRunForcedResolvers:!0}).then(function(xe){return ve(xe.data)}):ve(re)},V=function(O){return q.getResultsFromLink(b,O,{variables:ue,context:De,fetchPolicy:_e,errorPolicy:me})};switch(_e){default:case"cache-first":return(v=Me()).complete?[ie(v,b.markReady())]:Re?[ie(v),V(!0)]:[V(!0)];case"cache-and-network":var v;return(v=Me()).complete||Re?[ie(v),V(!0)]:[V(!0)];case"cache-only":return[ie(Me(),b.markReady())];case"network-only":return[V(!0)];case"no-cache":return[V(!1)];case"standby":return[]}},A.prototype.getQuery=function(b){return b&&!this.queries.has(b)&&this.queries.set(b,new X(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 ne(A,b){return(0,n.o)(A,b,b.variables&&{variables:(0,t.pi)((0,t.pi)({},A.variables),b.variables)})}var $=function(){function A(b){var x=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var N=b.uri,ue=b.cache,_e=b.ssrMode,me=void 0!==_e&&_e,Re=b.ssrForceFetchDelay,De=void 0===Re?0:Re,Me=b.connectToDevTools,ie=void 0===Me?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:Me,V=b.queryDeduplication,v=void 0===V||V,O=b.defaultOptions,F=b.assumeImmutableResults,re=void 0!==F&&F,ve=b.resolvers,xe=b.typeDefs,Te=b.fragmentMatcher,te=b.name,de=b.version,ye=b.link;if(ye||(ye=N?new u.u({uri:N,credentials:b.credentials,headers:b.headers}):d.i.empty()),!ue)throw new w.ej(9);this.link=ye,this.cache=ue,this.disableNetworkFetches=me||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),ie&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),this.version="3.3.20",this.localState=new U({cache:ue,client:this,resolvers:ve,fragmentMatcher:Te}),this.queryManager=new K({cache:this.cache,link:this.link,queryDeduplication:v,ssrMode:me,clientAwareness:{name:te,version:de},localState:this.localState,assumeImmutableResults:re,onBroadcast:ie?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=ne(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=ne(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=ne(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:(ce,k,p)=>{"use strict";p.d(k,{u:()=>C});var t=p(60162),w=p(73567),d=p(52485),r=p(87972),n=Object.prototype.toString;function a(W){return u(W)}function u(W,Q){switch(n.call(W)){case"[object Array]":if((Q=Q||new Map).has(W))return Q.get(W);var H=W.slice(0);return Q.set(W,H),H.forEach(function(g,R){H[R]=u(g,Q)}),H;case"[object Object]":if((Q=Q||new Map).has(W))return Q.get(W);var L=Object.create(Object.getPrototypeOf(W));return Q.set(W,L),Object.keys(W).forEach(function(g){L[g]=u(W[g],Q)}),L;default:return W}}var e=p(73418),i=p(57993),s=p(61952),h=p(20316),y=p.n(h),m=p(42903),I=p(31882),M=function(){function W(Q,H,L,g){this.observer=Q,this.options=H,this.fetch=L,this.shouldFetch=g}return W.prototype.reobserve=function(Q,H){Q?this.updateOptions(Q):this.updatePolling();var L=this.fetch(this.options,H);return this.concast&&this.concast.removeObserver(this.observer,!0),L.addObserver(this.observer),(this.concast=L).promise},W.prototype.updateOptions=function(Q){return Object.assign(this.options,(0,I.o)(Q)),this.updatePolling(),this},W.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())},W.prototype.updatePolling=function(){var Q=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(){Q.pollingInfo&&(Q.shouldFetch&&Q.shouldFetch()?Q.reobserve({fetchPolicy:"network-only",nextFetchPolicy:Q.options.fetchPolicy||"cache-first"},r.I.poll).then(_,_):_())},_=function(){var l=Q.pollingInfo;l&&(clearTimeout(l.timeout),l.timeout=setTimeout(c,l.interval))};_()}}else L&&(clearTimeout(L.timeout),delete this.pollingInfo)},W}(),C=function(W){function Q(H){var L=H.queryManager,g=H.queryInfo,R=H.options,c=W.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=R,c.queryId=L.generateQueryId();var _=(0,i.$H)(R.query);return c.queryName=_&&_.name&&_.name.value,c.queryManager=L,c.queryInfo=g,c}return(0,t.ZT)(Q,W),Object.defineProperty(Q.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),Q.prototype.result=function(){var H=this;return new Promise(function(L,g){var R={next:function(_){L(_),H.observers.delete(R),H.observers.size||H.queryManager.removeQuery(H.queryId),setTimeout(function(){c.unsubscribe()},0)},error:g},c=H.subscribe(R)})},Q.prototype.getCurrentResult=function(H){void 0===H&&(H=!0);var L=this.lastResult,g=this.queryInfo.networkStatus||L&&L.networkStatus||r.I.ready,R=(0,t.pi)((0,t.pi)({},L),{loading:(0,r.O)(g),networkStatus:g});if(this.isTornDown)return R;var c=this.options.fetchPolicy,_=void 0===c?"cache-first":c;if("no-cache"===_||"network-only"===_)delete R.partial;else if(!R.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var l=this.queryInfo.getDiff();R.data=l.complete||this.options.returnPartialData?l.result:void 0,l.complete?(R.networkStatus===r.I.loading&&("cache-first"===_||"cache-only"===_)&&(R.networkStatus=r.I.ready,R.loading=!1),delete R.partial):R.partial=!0}return H&&this.updateLastResult(R),R},Q.prototype.isDifferentFromLastResult=function(H){return!(0,d.D)(this.lastResultSnapshot,H)},Q.prototype.getLastResult=function(){return this.lastResult},Q.prototype.getLastError=function(){return this.lastError},Q.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},Q.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},Q.prototype.refetch=function(H){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"),H&&!(0,d.D)(this.options.variables,H)&&(L.variables=this.options.variables=(0,t.pi)((0,t.pi)({},this.options.variables),H)),this.newReobserver(!1).reobserve(L,r.I.refetch)},Q.prototype.fetchMore=function(H){var L=this,g=(0,t.pi)((0,t.pi)({},H.query?H:(0,t.pi)((0,t.pi)((0,t.pi)({},this.options),H),{variables:(0,t.pi)((0,t.pi)({},this.options.variables),H.variables)})),{fetchPolicy:"no-cache"}),R=this.queryManager.generateQueryId();return g.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=r.I.fetchMore,this.observe()),this.queryManager.fetchQuery(R,g,r.I.fetchMore).then(function(c){var _=c.data,l=H.updateQuery;return l?L.updateQuery(function(T){return l(T,{fetchMoreResult:_,variables:g.variables})}):L.queryManager.cache.writeQuery({query:g.query,variables:g.variables,data:_}),c}).finally(function(){L.queryManager.stopQuery(R),L.reobserve()})},Q.prototype.subscribeToMore=function(H){var L=this,g=this.queryManager.startGraphQLSubscription({query:H.document,variables:H.variables,context:H.context}).subscribe({next:function(R){var c=H.updateQuery;c&&L.updateQuery(function(_,l){return c(_,{subscriptionData:R,variables:l.variables})})},error:function(R){H.onError&&H.onError(R)}});return this.subscriptions.add(g),function(){L.subscriptions.delete(g)&&g.unsubscribe()}},Q.prototype.setOptions=function(H){return this.reobserve(H)},Q.prototype.setVariables=function(H){if((0,d.D)(this.variables,H))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=H,!this.observers.size)return Promise.resolve();var L=this.options.fetchPolicy,g=void 0===L?"cache-first":L,R={fetchPolicy:g,variables:H};return"cache-first"!==g&&"no-cache"!==g&&"network-only"!==g&&(R.fetchPolicy="cache-and-network",R.nextFetchPolicy=g),this.reobserve(R,r.I.setVariables)},Q.prototype.updateQuery=function(H){var L,g=this.queryManager,c=H(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())},Q.prototype.startPolling=function(H){this.getReobserver().updateOptions({pollInterval:H})},Q.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},Q.prototype.updateLastResult=function(H){var L=this.lastResult;return this.lastResult=H,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?H:a(H),(0,s.O)(H.errors)||delete this.lastError,L},Q.prototype.onSubscribe=function(H){var L=this;if(H===this.observer)return function(){};try{var g=H._subscription._observer;g&&!g.error&&(g.error=D)}catch{}var R=!this.observers.size;return this.observers.add(H),this.lastError?H.error&&H.error(this.lastError):this.lastResult&&H.next&&H.next(this.lastResult),R&&this.reobserve().catch(function(c){}),function(){L.observers.delete(H)&&!L.observers.size&&L.tearDownQuery()}},Q.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},Q.prototype.newReobserver=function(H){var L=this,R=this.queryManager,c=this.queryId;return R.setObservableQuery(this),new M(this.observer,H?this.options:(0,t.pi)({},this.options),function(_,l){return R.setObservableQuery(L),R.fetchQueryObservable(c,_,l)},!R.ssrMode&&function(){return!(0,r.O)(L.queryInfo.networkStatus)})},Q.prototype.reobserve=function(H,L){return this.isTornDown=!1,this.getReobserver().reobserve(H,L)},Q.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},Q.prototype.hasObservers=function(){return this.observers.size>0},Q.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.subscriptions.forEach(function(H){return H.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},Q}(y());function D(W){}(0,m.D)(C)},29783:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{ApolloCache:()=>e.R,ApolloClient:()=>t.f,ApolloError:()=>a.c,Cache:()=>u.C,HttpLink:()=>C.uG,InMemoryCache:()=>i.h,MissingFieldError:()=>s.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:()=>D.Q,fromPromise:()=>Q.p,gql:()=>_.ZP,isApolloError:()=>a.M,isReference:()=>R.Yk,makeReference:()=>R.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:()=>H.P,toPromise:()=>W.V});var t=p(97307),w=p(27351),d=p(87972),r=p(57930),P={};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&&(P[l]=()=>r[l]);p.d(k,P);var a=p(68104),u=p(53774),e=p(97985),i=p(45670),s=p(46206),h=p(7236),y=p(62068),m=p(59799);P={};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&&(P[l]=()=>m[l]);p.d(k,P);var M=p(27975);P={};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&&(P[l]=()=>M[l]);p.d(k,P);var C=p(43730),D=p(35313),W=p(79212),Q=p(82781),H=p(3772),L=p(20316),g=p.n(L),R=p(7882),c=p(73567),_=p(19636);(0,c.U6)("log")},87972:(ce,k,p)=>{"use strict";p.d(k,{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:(ce,k,p)=>{"use strict";p.d(k,{M:()=>d,c:()=>n});var t=p(60162),w=p(61952);function d(a){return a.hasOwnProperty("graphQLErrors")}var n=function(a){function u(e){var i=e.graphQLErrors,s=e.networkError,h=e.errorMessage,y=e.extraInfo,m=a.call(this,h)||this;return m.graphQLErrors=i||[],m.networkError=s||null,m.message=h||function(a){var u="";return(0,w.O)(a.graphQLErrors)&&a.graphQLErrors.forEach(function(e){u+=(e?e.message:"Error message not found.")+"\n"}),a.networkError&&(u+=a.networkError.message+"\n"),u=u.replace(/\n$/,"")}(m),m.extraInfo=y,m.__proto__=u.prototype,m}return(0,t.ZT)(u,a),u}(Error)},98e3:(ce,k,p)=>{"use strict";p.r(k);var t=p(29783),d={};for(const r in t)"default"!==r&&(d[r]=()=>t[r]);p.d(k,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(k,d)},13047:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{setContext:()=>n});var t=p(60162),w=p(69924),d=p(20316),r=p.n(d);function n(a){return new w.i(function(u,e){var i=(0,t._T)(u,[]);return new(r())(function(s){var h;return Promise.resolve(i).then(function(y){return a(y,u.getContext())}).then(u.setContext).then(function(){h=e(u).subscribe({next:s.next.bind(s),error:s.error.bind(s),complete:s.complete.bind(s)})}).catch(s.error.bind(s)),function(){h&&h.unsubscribe()}})})}},69924:(ce,k,p)=>{"use strict";p.d(k,{i:()=>m});var I,t=p(60162),w=p(73567),d=p(20316),r=p.n(d),a=p(57993);function i(I,M){return M?M(I):r().of()}function s(I){return"function"==typeof I?new m(I):I}function h(I){return I.request.length<=1}I=Error,(0,t.ZT)(function M(P,C){var D=I.call(this,P)||this;return D.link=C,D},I);var m=function(){function I(M){M&&(this.request=M)}return I.empty=function(){return new I(function(){return r().of()})},I.from=function(M){return 0===M.length?I.empty():M.map(s).reduce(function(P,C){return P.concat(C)})},I.split=function(M,P,C){var D=s(P),W=s(C||new I(i));return h(D)&&h(W)?new I(function(Q){return M(Q)?D.request(Q)||r().of():W.request(Q)||r().of()}):new I(function(Q,H){return M(Q)?D.request(Q,H)||r().of():W.request(Q,H)||r().of()})},I.execute=function(M,P){return M.request(function n(I,M){var P=(0,t.pi)({},I);return Object.defineProperty(M,"setContext",{enumerable:!1,value:function(W){P=(0,t.pi)((0,t.pi)({},P),"function"==typeof W?W(P):W)}}),Object.defineProperty(M,"getContext",{enumerable:!1,value:function(){return(0,t.pi)({},P)}}),M}(P.context,function u(I){var M={variables:I.variables||{},extensions:I.extensions||{},operationName:I.operationName,query:I.query};return M.operationName||(M.operationName="string"!=typeof M.query?(0,a.rY)(M.query)||void 0:""),M}(function e(I){for(var M=["query","operationName","variables","extensions","context"],P=0,C=Object.keys(I);P<C.length;P++)if(M.indexOf(C[P])<0)throw new w.ej(26);return I}(P))))||r().of()},I.concat=function(M,P){var C=s(M);if(h(C))return C;var D=s(P);return h(D)?new I(function(W){return C.request(W,function(Q){return D.request(Q)||r().of()})||r().of()}):new I(function(W,Q){return C.request(W,function(H){return D.request(H,Q)||r().of()})||r().of()})},I.prototype.split=function(M,P,C){return this.concat(I.split(M,P,C||new I(i)))},I.prototype.concat=function(M){return I.concat(this,M)},I.prototype.request=function(M,P){throw new w.ej(21)},I.prototype.onError=function(M,P){if(P&&P.error)return P.error(M),!1;throw M},I.prototype.setOnError=function(M){return this.onError=M,this},I}()},26165:(ce,k,p)=>{"use strict";p.d(k,{z:()=>w});var w=p(69924).i.concat},39191:(ce,k,p)=>{"use strict";p.d(k,{c:()=>w});var w=p(69924).i.empty},6322:(ce,k,p)=>{"use strict";p.d(k,{h:()=>w});var w=p(69924).i.execute},45169:(ce,k,p)=>{"use strict";p.d(k,{D:()=>w});var w=p(69924).i.from},27975:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{ApolloLink:()=>a.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),a=p(69924),u=p(38030),i={};for(const s in u)["default","empty","from","split","concat","execute","ApolloLink"].indexOf(s)<0&&(i[s]=()=>u[s]);p.d(k,i)},34521:(ce,k,p)=>{"use strict";p.d(k,{V:()=>w});var w=p(69924).i.split},38030:()=>{},73575:(ce,k,p)=>{"use strict";p.d(k,{u:()=>r});var t=p(60162),w=p(69924),d=p(60782),r=function(n){function a(u){void 0===u&&(u={});var e=n.call(this,(0,d.L)(u).request)||this;return e.options=u,e}return(0,t.ZT)(a,n),a}(w.i)},598:(ce,k,p)=>{"use strict";p.d(k,{U:()=>w});var t=p(73567),w=function(d){if(!d&&typeof fetch>"u")throw new t.ej(22)}},60782:(ce,k,p)=>{"use strict";p.d(k,{L:()=>I});var t=p(60162),w=p(74270),d=p(69924),r=p(20316),n=p.n(r),a=p(43553),u=p(59317),e=p(39752),i=p(598),s=p(82827),h=p(33648),y=p(26110),m=p(35313),I=function(M){void 0===M&&(M={});var P=M.uri,C=void 0===P?"/graphql":P,D=M.fetch,W=M.includeExtensions,Q=M.useGETForQueries,H=M.includeUnusedVariables,L=void 0!==H&&H,g=(0,t._T)(M,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);(0,i.U)(D),D||(D=fetch);var R={http:{includeExtensions:W},options:g.fetchOptions,credentials:g.credentials,headers:g.headers};return new d.i(function(c){var _=(0,u.r)(c,C),l=c.getContext(),T={};if(l.clientAwareness){var B=l.clientAwareness,U=B.name,z=B.version;U&&(T["apollographql-client-name"]=U),z&&(T["apollographql-client-version"]=z)}var Y,ae=(0,t.pi)((0,t.pi)({},T),l.headers),X=(0,s.E)(c,s.S,R,{http:l.http,options:l.fetchOptions,credentials:l.credentials,headers:ae}),he=X.options,oe=X.body;if(oe.variables&&!L){var K=new Set(Object.keys(oe.variables));(0,w.Vn)(c.query,{Variable:function(ee,ue,_e){_e&&"VariableDefinition"!==_e.kind&&K.delete(ee.name.value)}}),K.size&&(oe.variables=(0,t.pi)({},oe.variables),K.forEach(function(ee){delete oe.variables[ee]}))}if(!he.signal){var ne=(0,h.$)();(Y=ne.controller)&&(he.signal=ne.signal)}if(Q&&!c.query.definitions.some(function(ee){return"OperationDefinition"===ee.kind&&"mutation"===ee.operation})&&(he.method="GET"),"GET"===he.method){var x=(0,y.H)(_,oe),N=x.newURI,q=x.parseError;if(q)return(0,m.Q)(q);_=N}else try{he.body=(0,a.g)(oe,"Payload")}catch(ee){return(0,m.Q)(ee)}return new(n())(function(ee){return D(_,he).then(function(ue){return c.setContext({response:ue}),ue}).then((0,e.d)(c)).then(function(ue){return ee.next(ue),ee.complete(),ue}).catch(function(ue){"AbortError"!==ue.name&&(ue.result&&ue.result.errors&&ue.result.data&&ee.next(ue.result),ee.error(ue))}),function(){Y&&Y.abort()}})})}},33648:(ce,k,p)=>{"use strict";p.d(k,{$:()=>t});var t=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var w=new AbortController;return{controller:w,signal:w.signal}}},43730:(ce,k,p)=>{"use strict";p.d(k,{$g:()=>n.$,E4:()=>d.E,Hg:()=>i.H,LQ:()=>u.L,SC:()=>d.S,U2:()=>r.U,dO:()=>t.d,gE:()=>w.g,rg:()=>a.r,uG:()=>e.u});var t=p(39752),w=p(43553),d=p(82827),r=p(598),n=p(33648),a=p(59317),u=p(60782),e=p(73575),i=p(26110)},39752:(ce,k,p)=>{"use strict";p.d(k,{d:()=>d});var t=p(3772),w=Object.prototype.hasOwnProperty;function d(r){return function(n){return n.text().then(function(a){try{return JSON.parse(a)}catch(e){var u=e;throw u.name="ServerParseError",u.response=n,u.statusCode=n.status,u.bodyText=a,u}}).then(function(a){return n.status>=300&&(0,t.P)(n,a,"Response not successful: Received status code "+n.status),!Array.isArray(a)&&!w.call(a,"data")&&!w.call(a,"errors")&&(0,t.P)(n,a,"Server response was missing for query '"+(Array.isArray(r)?r.map(function(u){return u.operationName}):r.operationName)+"'."),a})}}},26110:(ce,k,p)=>{"use strict";p.d(k,{H:()=>w});var t=p(43553);function w(d,r){var n=[],a=function(I,M){n.push(I+"="+encodeURIComponent(M))};if("query"in r&&a("query",r.query),r.operationName&&a("operationName",r.operationName),r.variables){var u=void 0;try{u=(0,t.g)(r.variables,"Variables map")}catch(I){return{parseError:I}}a("variables",u)}if(r.extensions){var e=void 0;try{e=(0,t.g)(r.extensions,"Extensions map")}catch(I){return{parseError:I}}a("extensions",e)}var i="",s=d,h=d.indexOf("#");-1!==h&&(i=d.substr(h),s=d.substr(0,h));var y=-1===s.indexOf("?")?"?":"&";return{newURI:s+y+n.join("&")+i}}},82827:(ce,k,p)=>{"use strict";p.d(k,{E:()=>u,S:()=>a});var t=p(60162),w=p(8511),a={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},u=function(e,i){for(var s=[],h=2;h<arguments.length;h++)s[h-2]=arguments[h];var y=(0,t.pi)((0,t.pi)({},i.options),{headers:i.headers,credentials:i.credentials}),m=i.http||{};s.forEach(function(W){y=(0,t.pi)((0,t.pi)((0,t.pi)({},y),W.options),{headers:(0,t.pi)((0,t.pi)({},y.headers),W.headers)}),W.credentials&&(y.credentials=W.credentials),m=(0,t.pi)((0,t.pi)({},m),W.http)});var I=e.operationName,M=e.extensions,P=e.variables,C=e.query,D={operationName:I,variables:P};return m.includeExtensions&&(D.extensions=M),m.includeQuery&&(D.query=(0,w.print)(C)),{options:y,body:D}}},59317:(ce,k,p)=>{"use strict";p.d(k,{r:()=>t});var t=function(w,d){return w.getContext().uri||("function"==typeof d?d(w):d||"/graphql")}},43553:(ce,k,p)=>{"use strict";p.d(k,{g:()=>w});var t=p(73567),w=function(d,r){var n;try{n=JSON.stringify(d)}catch(u){var a=new t.ej(23);throw a.parseError=u,a}return n}},35313:(ce,k,p)=>{"use strict";p.d(k,{Q:()=>d});var t=p(20316),w=p.n(t);function d(r){return new(w())(function(n){n.error(r)})}},82781:(ce,k,p)=>{"use strict";p.d(k,{p:()=>d});var t=p(20316),w=p.n(t);function d(r){return new(w())(function(n){r.then(function(a){n.next(a),n.complete()}).catch(n.error.bind(n))})}},3772:(ce,k,p)=>{"use strict";p.d(k,{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:(ce,k,p)=>{"use strict";function w(d){var r=!1;return new Promise(function(n,a){d.subscribe({next:function(u){r||(r=!0,n(u))},error:a})})}p.d(k,{V:()=>w}),p(73567)},17757:(ce,k,p)=>{"use strict";var t=p(10757),w=60103,d=60106;k.Fragment=60107,k.StrictMode=60108,k.Profiler=60114;var r=60109,n=60110,a=60112;k.Suspense=60113;var u=60115,e=60116;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;w=i("react.element"),d=i("react.portal"),k.Fragment=i("react.fragment"),k.StrictMode=i("react.strict_mode"),k.Profiler=i("react.profiler"),r=i("react.provider"),n=i("react.context"),a=i("react.forward_ref"),k.Suspense=i("react.suspense"),u=i("react.memo"),e=i("react.lazy")}var s="function"==typeof Symbol&&Symbol.iterator;function y(X){for(var he="https://reactjs.org/docs/error-decoder.html?invariant="+X,oe=1;oe<arguments.length;oe++)he+="&args[]="+encodeURIComponent(arguments[oe]);return"Minified React error #"+X+"; visit "+he+" 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(){}},I={};function M(X,he,oe){this.props=X,this.context=he,this.refs=I,this.updater=oe||m}function P(){}function C(X,he,oe){this.props=X,this.context=he,this.refs=I,this.updater=oe||m}M.prototype.isReactComponent={},M.prototype.setState=function(X,he){if("object"!=typeof X&&"function"!=typeof X&&null!=X)throw Error(y(85));this.updater.enqueueSetState(this,X,he,"setState")},M.prototype.forceUpdate=function(X){this.updater.enqueueForceUpdate(this,X,"forceUpdate")},P.prototype=M.prototype;var D=C.prototype=new P;D.constructor=C,t(D,M.prototype),D.isPureReactComponent=!0;var W={current:null},Q=Object.prototype.hasOwnProperty,H={key:!0,ref:!0,__self:!0,__source:!0};function L(X,he,oe){var K,Y={},ne=null,$=null;if(null!=he)for(K in void 0!==he.ref&&($=he.ref),void 0!==he.key&&(ne=""+he.key),he)Q.call(he,K)&&!H.hasOwnProperty(K)&&(Y[K]=he[K]);var A=arguments.length-2;if(1===A)Y.children=oe;else if(1<A){for(var b=Array(A),x=0;x<A;x++)b[x]=arguments[x+2];Y.children=b}if(X&&X.defaultProps)for(K in A=X.defaultProps)void 0===Y[K]&&(Y[K]=A[K]);return{$$typeof:w,type:X,key:ne,ref:$,props:Y,_owner:W.current}}function R(X){return"object"==typeof X&&null!==X&&X.$$typeof===w}var _=/\/+/g;function l(X,he){return"object"==typeof X&&null!==X&&null!=X.key?function c(X){var he={"=":"=0",":":"=2"};return"$"+X.replace(/[=:]/g,function(oe){return he[oe]})}(""+X.key):he.toString(36)}function T(X,he,oe,K,Y){var ne=typeof X;("undefined"===ne||"boolean"===ne)&&(X=null);var $=!1;if(null===X)$=!0;else switch(ne){case"string":case"number":$=!0;break;case"object":switch(X.$$typeof){case w:case d:$=!0}}if($)return Y=Y($=X),X=""===K?"."+l($,0):K,Array.isArray(Y)?(oe="",null!=X&&(oe=X.replace(_,"$&/")+"/"),T(Y,he,oe,"",function(x){return x})):null!=Y&&(R(Y)&&(Y=function g(X,he){return{$$typeof:w,type:X.type,key:he,ref:X.ref,props:X.props,_owner:X._owner}}(Y,oe+(!Y.key||$&&$.key===Y.key?"":(""+Y.key).replace(_,"$&/")+"/")+X)),he.push(Y)),1;if($=0,K=""===K?".":K+":",Array.isArray(X))for(var A=0;A<X.length;A++){var b=K+l(ne=X[A],A);$+=T(ne,he,oe,b,Y)}else if(b=function h(X){return null===X||"object"!=typeof X?null:"function"==typeof(X=s&&X[s]||X["@@iterator"])?X:null}(X),"function"==typeof b)for(X=b.call(X),A=0;!(ne=X.next()).done;)$+=T(ne=ne.value,he,oe,b=K+l(ne,A++),Y);else if("object"===ne)throw he=""+X,Error(y(31,"[object Object]"===he?"object with keys {"+Object.keys(X).join(", ")+"}":he));return $}function B(X,he,oe){if(null==X)return X;var K=[],Y=0;return T(X,K,"","",function(ne){return he.call(oe,ne,Y++)}),K}function U(X){if(-1===X._status){var he=X._result;he=he(),X._status=0,X._result=he,he.then(function(oe){0===X._status&&(oe=oe.default,X._status=1,X._result=oe)},function(oe){0===X._status&&(X._status=2,X._result=oe)})}if(1===X._status)return X._result;throw X._result}var z={current:null};function ae(){var X=z.current;if(null===X)throw Error(y(321));return X}var pe={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:W,IsSomeRendererActing:{current:!1},assign:t};k.Children={map:B,forEach:function(X,he,oe){B(X,function(){he.apply(this,arguments)},oe)},count:function(X){var he=0;return B(X,function(){he++}),he},toArray:function(X){return B(X,function(he){return he})||[]},only:function(X){if(!R(X))throw Error(y(143));return X}},k.Component=M,k.PureComponent=C,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pe,k.cloneElement=function(X,he,oe){if(null==X)throw Error(y(267,X));var K=t({},X.props),Y=X.key,ne=X.ref,$=X._owner;if(null!=he){if(void 0!==he.ref&&(ne=he.ref,$=W.current),void 0!==he.key&&(Y=""+he.key),X.type&&X.type.defaultProps)var A=X.type.defaultProps;for(b in he)Q.call(he,b)&&!H.hasOwnProperty(b)&&(K[b]=void 0===he[b]&&void 0!==A?A[b]:he[b])}var b=arguments.length-2;if(1===b)K.children=oe;else if(1<b){A=Array(b);for(var x=0;x<b;x++)A[x]=arguments[x+2];K.children=A}return{$$typeof:w,type:X.type,key:Y,ref:ne,props:K,_owner:$}},k.createContext=function(X,he){return void 0===he&&(he=null),(X={$$typeof:n,_calculateChangedBits:he,_currentValue:X,_currentValue2:X,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:r,_context:X},X.Consumer=X},k.createElement=L,k.createFactory=function(X){var he=L.bind(null,X);return he.type=X,he},k.createRef=function(){return{current:null}},k.forwardRef=function(X){return{$$typeof:a,render:X}},k.isValidElement=R,k.lazy=function(X){return{$$typeof:e,_payload:{_status:-1,_result:X},_init:U}},k.memo=function(X,he){return{$$typeof:u,type:X,compare:void 0===he?null:he}},k.useCallback=function(X,he){return ae().useCallback(X,he)},k.useContext=function(X,he){return ae().useContext(X,he)},k.useDebugValue=function(){},k.useEffect=function(X,he){return ae().useEffect(X,he)},k.useImperativeHandle=function(X,he,oe){return ae().useImperativeHandle(X,he,oe)},k.useLayoutEffect=function(X,he){return ae().useLayoutEffect(X,he)},k.useMemo=function(X,he){return ae().useMemo(X,he)},k.useReducer=function(X,he,oe){return ae().useReducer(X,he,oe)},k.useRef=function(X){return ae().useRef(X)},k.useState=function(X){return ae().useState(X)},k.version="17.0.2"},90222:(ce,k,p)=>{"use strict";ce.exports=p(17757)},73567:(ce,k,p)=>{"use strict";p.d(k,{ej:()=>z,kG:()=>ae,U6:()=>oe});var t=function($,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])})($,A)},T="Invariant Violation",B=Object.setPrototypeOf,U=void 0===B?function($,A){return $.__proto__=A,$}:B,z=function($){function A(b){void 0===b&&(b=T);var x=$.call(this,"number"==typeof b?T+": "+b+" (see https://github.com/apollographql/invariant-packages)":b)||this;return x.framesToPop=1,x.name=T,U(x,A.prototype),x}return function w($,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=$}t($,A),$.prototype=null===A?Object.create(A):(b.prototype=A.prototype,new b)}(A,$),A}(Error);function ae($,A){if(!$)throw new z(A)}var $,pe=["log","warn","error","silent"],X=pe.indexOf("log");function he($){return function(){if(pe.indexOf($)>=X)return console[$].apply(console,arguments)}}function oe($){var A=pe[X];return X=Math.max(0,pe.indexOf($)),A}($=ae||(ae={})).log=he("log"),$.warn=he("warn"),$.error=he("error"),"object"==typeof process&&"object"==typeof process.env&&process},59736:(ce,k,p)=>{"use strict";p.d(k,{a:()=>r});var t=p(90222),w=p(73567),d=p(41966),r=function(n){var a=(0,d.K)();return t.createElement(a.Consumer,null,function(u){return(0,w.kG)(u&&u.client,27),n.children(u.client)})}},41966:(ce,k,p)=>{"use strict";p.d(k,{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:(ce,k,p)=>{"use strict";p.d(k,{e:()=>r});var t=p(90222),w=p(73567),d=p(41966),r=function(n){var a=n.client,u=n.children,e=(0,d.K)();return t.createElement(e.Consumer,null,function(i){return void 0===i&&(i={}),a&&i.client!==a&&(i=Object.assign({},i,{client:a})),(0,w.kG)(i.client,28),t.createElement(e.Provider,{value:i},u)})}},63446:(ce,k,p)=>{"use strict";p.d(k,{xJ:()=>r,td:()=>I,Db:()=>C,aM:()=>D,lY:()=>H,mU:()=>Q});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),a=p(52485),u=p(68104),e=p(87972),i=p(46964),s=function(){function L(g,R){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=g||{},this.context=R||{}}return L.prototype.getOptions=function(){return this.options},L.prototype.setOptions=function(g,R){void 0===R&&(R=!1),R&&!(0,a.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 R=!1;return g!==this.client&&(R=!0,this.client=g,this.cleanup()),{client:this.client,isNew:R}},L.prototype.verifyDocumentType=function(g,R){var c=(0,i.E2)(g);(0,i.mw)(R),(0,i.mw)(c.type),(0,w.kG)(c.type===R,30)},L}(),h=function(L){function g(R){var l=R.onNewData,T=L.call(this,R.options,R.context)||this;return T.runLazy=!1,T.previous=Object.create(null),T.runLazyQuery=function(B){T.cleanup(),T.runLazy=!0,T.lazyOptions=B,T.onNewData()},T.getQueryResult=function(){var B=T.observableQueryFields(),U=T.getOptions();if(U.skip)B=(0,n.pi)((0,n.pi)({},B),{data:void 0,error:void 0,loading:!1,networkStatus:e.I.ready,called:!0});else if(T.currentObservable){var z=T.currentObservable.getCurrentResult(),ae=z.data,pe=z.loading,X=z.partial,he=z.networkStatus,oe=z.errors,K=z.error;if(oe&&oe.length>0&&(K=new u.c({graphQLErrors:oe})),B=(0,n.pi)((0,n.pi)({},B),{data:ae,loading:pe,networkStatus:he,error:K,called:!0}),!pe)if(K)Object.assign(B,{data:(T.currentObservable.getLastResult()||{}).data});else{var Y=T.currentObservable.options.fetchPolicy;if(U.partialRefetch&&X&&(!ae||0===Object.keys(ae).length)&&"cache-only"!==Y)return Object.assign(B,{loading:!0,networkStatus:e.I.loading}),B.refetch(),B}}B.client=T.client,T.setOptions(U,!0);var $=T.previous.result;return T.previous.loading=$&&$.loading||!1,B.previousData=$&&($.data||$.previousData),T.previous.result=B,T.currentObservable&&T.currentObservable.resetQueryStoreErrors(),B},T.obsRefetch=function(B){var U;return null===(U=T.currentObservable)||void 0===U?void 0:U.refetch(B)},T.obsFetchMore=function(B){return T.currentObservable.fetchMore(B)},T.obsUpdateQuery=function(B){return T.currentObservable.updateQuery(B)},T.obsStartPolling=function(B){var U;null===(U=T.currentObservable)||void 0===U||U.startPolling(B)},T.obsStopPolling=function(){var B;null===(B=T.currentObservable)||void 0===B||B.stopPolling()},T.obsSubscribeToMore=function(B){return T.currentObservable.subscribeToMore(B)},T.onNewData=l,T}return(0,n.ZT)(g,L),g.prototype.execute=function(){this.refreshClient();var R=this.getOptions(),c=R.skip,_=R.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 R=this,c=this.getOptions();return!c.skip&&!1!==c.ssr&&new Promise(function(_){return R.startQuerySubscription(_)})},g.prototype.afterExecute=function(R){var c=(void 0===R?{}:R).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 R=L.prototype.getOptions.call(this);return this.lazyOptions&&(R.variables=(0,n.pi)((0,n.pi)({},R.variables),this.lazyOptions.variables),R.context=(0,n.pi)((0,n.pi)({},R.context),this.lazyOptions.context)),this.runLazy&&delete R.skip,R},g.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},g.prototype.getExecuteResult=function(){var R=this.getQueryResult();return this.startQuerySubscription(),R},g.prototype.getExecuteSsrResult=function(){var R=this.getOptions(),_=R.skip,l=!1===R.ssr,T=this.refreshClient().client.disableNetworkFetches,B=(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()||T))return this.previous.result=B,B;if(this.ssrInitiated()){var U=this.getQueryResult()||B;return U.loading&&!_&&this.context.renderPromises.addQueryPromise(this,function(){return null}),U}},g.prototype.prepareObservableQueryOptions=function(){var R=this.getOptions();this.verifyDocumentType(R.query,i.n_.Query);var c=R.displayName||"Query";return this.ssrInitiated()&&("network-only"===R.fetchPolicy||"cache-and-network"===R.fetchPolicy)&&(R.fetchPolicy="cache-first"),(0,n.pi)((0,n.pi)({},R),{displayName:c,context:R.context})},g.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var R=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=(0,n.pi)((0,n.pi)({},R),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery((0,n.pi)({},R)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,R)}},g.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var R=(0,n.pi)((0,n.pi)({},this.prepareObservableQueryOptions()),{children:null});(0,a.D)(R,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=R,this.currentObservable.setOptions(R).catch(function(){}))}}else this.initializeObservableQuery()},g.prototype.startQuerySubscription=function(R){var c=this;void 0===R&&(R=this.onNewData),!this.currentSubscription&&!this.getOptions().skip&&(this.currentSubscription=this.currentObservable.subscribe({next:function(_){var U=c.previous.result;U&&U.loading===_.loading&&U.networkStatus===_.networkStatus&&(0,a.D)(U.data,_.data)||R()},error:function(_){if(c.resubscribeToQuery(),!_.hasOwnProperty("graphQLErrors"))throw _;var l=c.previous.result;(l&&l.loading||!(0,a.D)(_,c.previous.error))&&(c.previous.error=_,R())}}))},g.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var R=this.currentObservable;if(R){var c=R.getLastError(),_=R.getLastResult();R.resetLastResults(),this.startQuerySubscription(),Object.assign(R,{lastError:c,lastResult:_})}},g.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var R=this.previous.result,c=R.data,l=R.error;if(!R.loading){var T=this.getOptions(),U=T.variables,z=T.onCompleted,ae=T.onError,pe=T.skip;if(this.previousOptions&&!this.previous.loading&&(0,a.D)(this.previousOptions.query,T.query)&&(0,a.D)(this.previousOptions.variables,U))return;!z||l||pe?ae&&l&&ae(l):z(c)}}},g.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},g.prototype.removeObservable=function(R){this.currentObservable&&(this.currentObservable.tearDownQuery(),R&&delete this.currentObservable)},g.prototype.observableQueryFields=function(){var R;return{variables:null===(R=this.currentObservable)||void 0===R?void 0:R.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}},g}(s);function m(L,g,R){void 0===R&&(R=!1);var c=(0,t.useContext)((0,d.K)()),_=(0,t.useReducer)(function(he){return he+1},0),l=_[0],T=_[1],B=g?(0,n.pi)((0,n.pi)({},g),{query:L}):{query:L},U=(0,t.useRef)(),z=U.current||(U.current=new h({options:B,context:c,onNewData:function(){z.ssrInitiated()?T():Promise.resolve().then(function(){return U.current&&T()})}}));z.setOptions(B),z.context=c;var pe=function y(L,g){var R=(0,t.useRef)();return(!R.current||!(0,a.D)(g,R.current.key))&&(R.current={key:g,value:L()}),R.current.value}(function(){return R?z.executeLazy():z.execute()},{options:(0,n.pi)((0,n.pi)({},B),{onError:void 0,onCompleted:void 0}),context:c,tick:l}),X=R?pe[1]:pe;return(0,t.useEffect)(function(){return function(){return z.cleanup()}},[]),(0,t.useEffect)(function(){return z.afterExecute({lazy:R})},[X.loading,X.networkStatus,X.error,X.data]),pe}function I(L,g){return m(L,g,!0)}var M=p(97307),P=function(L){function g(R){var c=R.options,l=R.result,T=R.setResult,B=L.call(this,c,R.context)||this;return B.runMutation=function(U){void 0===U&&(U={}),B.onMutationStart();var z=B.generateNewMutationId();return B.mutate(U).then(function(ae){return B.onMutationCompleted(ae,z),ae}).catch(function(ae){var pe=B.getOptions().onError;if(B.onMutationError(ae,z),pe)return pe(ae),{data:void 0,errors:ae};throw ae})},B.verifyDocumentType(c.mutation,i.n_.Mutation),B.result=l,B.setResult=T,B.mostRecentMutationId=0,B}return(0,n.ZT)(g,L),g.prototype.execute=function(R){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,i.n_.Mutation),[this.runMutation,(0,n.pi)((0,n.pi)({},R),{client:this.refreshClient().client})]},g.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},g.prototype.cleanup=function(){},g.prototype.mutate=function(R){return this.refreshClient().client.mutate((0,M.J)(this.getOptions(),R))},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(R,c){var _=this.getOptions(),l=_.onCompleted,T=_.ignoreResults,B=R.data,U=R.errors,z=U&&U.length>0?new u.c({graphQLErrors:U}):void 0;this.isMostRecentMutation(c)&&!T&&this.updateResult({called:!0,loading:!1,data:B,error:z}),l&&l(B)},g.prototype.onMutationError=function(R,c){this.isMostRecentMutation(c)&&this.updateResult({loading:!1,error:R,data:void 0,called:!0})},g.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},g.prototype.isMostRecentMutation=function(R){return this.mostRecentMutationId===R},g.prototype.updateResult=function(R){if(this.isMounted&&(!this.previousResult||!(0,a.D)(this.previousResult,R)))return this.setResult(R),this.previousResult=R,R},g}(s);function C(L,g){var R=(0,t.useContext)((0,d.K)()),c=(0,t.useState)({called:!1,loading:!1}),_=c[0],l=c[1],T=g?(0,n.pi)((0,n.pi)({},g),{mutation:L}):{mutation:L},B=(0,t.useRef)(),z=function U(){return B.current||(B.current=new P({options:T,context:R,result:_,setResult:l})),B.current}();return z.setOptions(T),z.context=R,(0,t.useEffect)(function(){return z.afterExecute()}),z.execute(_)}function D(L,g){return m(L,g,!1)}var W=function(L){function g(R){var c=R.options,l=R.setResult,T=L.call(this,c,R.context)||this;return T.currentObservable={},T.setResult=l,T.initialize(c),T}return(0,n.ZT)(g,L),g.prototype.execute=function(R){if(!0===this.getOptions().skip)return this.cleanup(),{loading:!1,error:void 0,data:void 0,variables:this.getOptions().variables};var c=R;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,a.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(R){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:R.subscription,variables:R.variables,fetchPolicy:R.fetchPolicy,context:R.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(R){this.isMounted&&this.setResult(R)},g.prototype.updateCurrentData=function(R){var c=this.getOptions().onSubscriptionData;this.updateResult({data:R.data,loading:!1,error:void 0}),c&&c({client:this.refreshClient().client,subscriptionData:R})},g.prototype.updateError=function(R){this.updateResult({error:R,loading:!1})},g.prototype.completeSubscription=function(){var R=this;Promise.resolve().then(function(){var c=R.getOptions().onSubscriptionComplete;c&&c(),R.endSubscription()})},g.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},g}(s);function Q(L,g){var R=(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],T=_[1],B=(0,t.useRef)(),z=function U(){return B.current||(B.current=new W({options:c,context:R,setResult:T})),B.current}();return z.setOptions(c,!0),z.context=R,(0,t.useEffect)(function(){return z.afterExecute()}),(0,t.useEffect)(function(){return z.cleanup.bind(z)},[]),z.execute(l)}function H(L){var g=L(),R=(0,t.useState)(g)[1];return(0,t.useEffect)(function(){var c=L();if(g===c)return L.onNextChange(R);R(c)},[g]),g}},14663:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{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),a=p(78690),e={};for(const i in a)["default","ApolloProvider","ApolloConsumer","getApolloContext","resetApolloContext","DocumentType","operationName","parser","useApolloClient","useLazyQuery","useMutation","useQuery","useReactiveVar","useSubscription"].indexOf(i)<0&&(e[i]=()=>a[i]);p.d(k,e)},46964:(ce,k,p)=>{"use strict";p.d(k,{E2:()=>n,mw:()=>r,n_:()=>w});var t=p(73567),w=(()=>{return(a=w||(w={}))[a.Query=0]="Query",a[a.Mutation=1]="Mutation",a[a.Subscription=2]="Subscription",w;var a})(),d=new Map;function r(a){var u;switch(a){case w.Query:u="Query";break;case w.Mutation:u="Mutation";break;case w.Subscription:u="Subscription"}return u}function n(a){var i,u=d.get(a);if(u)return u;(0,t.kG)(!!a&&!!a.kind,34);var h=a.definitions.filter(function(D){return"FragmentDefinition"===D.kind}),y=a.definitions.filter(function(D){return"OperationDefinition"===D.kind&&"query"===D.operation}),m=a.definitions.filter(function(D){return"OperationDefinition"===D.kind&&"mutation"===D.operation}),I=a.definitions.filter(function(D){return"OperationDefinition"===D.kind&&"subscription"===D.operation});(0,t.kG)(!h.length||y.length||m.length||I.length,35),(0,t.kG)(y.length+m.length+I.length<=1,36),i=y.length?w.Query:w.Mutation,!y.length&&!m.length&&(i=w.Subscription);var M=y.length?y:m.length?m:I;(0,t.kG)(1===M.length,37);var P=M[0],C={name:P.name&&"Name"===P.name.kind?P.name.value:"data",type:i,variables:P.variableDefinitions||[]};return d.set(a,C),C}},78690:()=>{},61952:(ce,k,p)=>{"use strict";function t(w){return Array.isArray(w)&&w.length>0}p.d(k,{O:()=>t})},18770:(ce,k,p)=>{"use strict";p.d(k,{m:()=>t});var t="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product)},31882:(ce,k,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(a){var u=n[a];void 0!==u&&(r[a]=u)})}),r}p.d(k,{o:()=>t})},52647:(ce,k,p)=>{"use strict";p.d(k,{Ee:()=>d,bw:()=>r,w0:()=>u});var t=p(60162),w=Object.prototype.hasOwnProperty;function d(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r(e)}function r(e){var i=e[0]||{},s=e.length;if(s>1)for(var h=new u,y=1;y<s;++y)i=h.merge(i,e[y]);return i}function n(e){return null!==e&&"object"==typeof e}var a=function(e,i,s){return this.merge(e[s],i[s])},u=function(){function e(i){void 0===i&&(i=a),this.reconciler=i,this.isObject=n,this.pastCopies=new Set}return e.prototype.merge=function(i,s){for(var h=this,y=[],m=2;m<arguments.length;m++)y[m-2]=arguments[m];return n(s)&&n(i)?(Object.keys(s).forEach(function(I){if(w.call(i,I)){var M=i[I];if(s[I]!==M){var P=h.reconciler.apply(h,(0,t.pr)([i,s,I],y));P!==M&&((i=h.shallowCopyForMerge(i))[I]=P)}}else(i=h.shallowCopyForMerge(i))[I]=s[I]}),i):s},e.prototype.shallowCopyForMerge=function(i){return n(i)&&!this.pastCopies.has(i)&&(i=Array.isArray(i)?i.slice(0):(0,t.pi)({__proto__:Object.getPrototypeOf(i)},i),this.pastCopies.add(i)),i},e}()},31220:(ce,k,p)=>{"use strict";p.d(k,{FS:()=>n,LZ:()=>d,mj:()=>a});var t=p(74270),w=p(73567);function d(i,s){var h=i.directives;return!h||!h.length||function e(i){var s=[];return i&&i.length&&i.forEach(function(h){if(function u(i){var s=i.name.value;return"skip"===s||"include"===s}(h)){var y=h.arguments;(0,w.kG)(y&&1===y.length,39);var I=y[0];(0,w.kG)(I.name&&"if"===I.name.value,40);var M=I.value;(0,w.kG)(M&&("Variable"===M.kind||"BooleanValue"===M.kind),41),s.push({directive:h,ifArgument:I})}}),s}(h).every(function(y){var m=y.directive,I=y.ifArgument,M=!1;return"Variable"===I.value.kind?(0,w.kG)(void 0!==(M=s&&s[I.value.name.value]),38):M=I.value.value,"skip"===m.name.value?!M:M})}function n(i,s){return function r(i){var s=[];return(0,t.Vn)(i,{Directive:function(h){s.push(h.name.value)}}),s}(s).some(function(h){return i.indexOf(h)>-1})}function a(i){return i&&n(["client"],i)&&n(["export"],i)}},77260:(ce,k,p)=>{"use strict";p.d(k,{F:()=>r,Yk:()=>d,hi:()=>n});var t=p(60162),w=p(73567);function d(a,u){var e=u,i=[];return a.definitions.forEach(function(h){if("OperationDefinition"===h.kind)throw new w.ej(42);"FragmentDefinition"===h.kind&&i.push(h)}),typeof e>"u"&&((0,w.kG)(1===i.length,43),e=i[0].name.value),(0,t.pi)((0,t.pi)({},a),{definitions:(0,t.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:e}}]}}],a.definitions)})}function r(a){void 0===a&&(a=[]);var u={};return a.forEach(function(e){u[e.name.value]=e}),u}function n(a,u){switch(a.kind){case"InlineFragment":return a;case"FragmentSpread":var e=u&&u[a.name.value];return(0,w.kG)(e,44),e;default:return null}}},57993:(ce,k,p)=>{"use strict";p.d(k,{$H:()=>r,A$:()=>d,O4:()=>s,iW:()=>u,kU:()=>a,p$:()=>i,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 a(h){return h.definitions.filter(function(y){return"FragmentDefinition"===y.kind})}function u(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 i(h){d(h);for(var y,m=0,I=h.definitions;m<I.length;m++){var M=I[m];if("OperationDefinition"===M.kind){var P=M.operation;if("query"===P||"mutation"===P||"subscription"===P)return M}"FragmentDefinition"===M.kind&&!y&&(y=M)}if(y)return y;throw new t.ej(52)}function s(h){var y=Object.create(null),m=h&&h.variableDefinitions;return m&&m.length&&m.forEach(function(I){I.defaultValue&&(0,w.vb)(y,I.variable.name,I.defaultValue)}),y}},7882:(ce,k,p)=>{"use strict";p.d(k,{Ao:()=>R,My:()=>g,NC:()=>Q,PT:()=>W,Yk:()=>a,kQ:()=>n,qw:()=>L,u2:()=>H,vb:()=>P,vf:()=>C});var t=p(67495),w=p.n(t),d=p(73567),r=p(77260);function n(c){return{__ref:String(c)}}function a(c){return Boolean(c&&"object"==typeof c&&"string"==typeof c.__ref)}function P(c,_,l,T){if(function i(c){return"IntValue"===c.kind}(l)||function s(c){return"FloatValue"===c.kind}(l))c[_.value]=Number(l.value);else if(function e(c){return"BooleanValue"===c.kind}(l)||function u(c){return"StringValue"===c.kind}(l))c[_.value]=l.value;else if(function y(c){return"ObjectValue"===c.kind}(l)){var B={};l.fields.map(function(z){return P(B,z.name,z.value,T)}),c[_.value]=B}else if(function h(c){return"Variable"===c.kind}(l))c[_.value]=(T||{})[l.name.value];else if(function m(c){return"ListValue"===c.kind}(l))c[_.value]=l.values.map(function(z){var ae={};return P(ae,_,z,T),ae[_.value]});else if(function I(c){return"EnumValue"===c.kind}(l))c[_.value]=l.value;else{if(!function M(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(B){l[B.name.value]={},B.arguments&&B.arguments.forEach(function(U){return P(l[B.name.value],U.name,U.value,_)})}));var T=null;return c.arguments&&c.arguments.length&&(T={},c.arguments.forEach(function(B){return P(T,B.name,B.value,_)})),W(c.name.value,T,l)}var D=["connection","include","skip","client","rest","export"];function W(c,_,l){if(_&&l&&l.connection&&l.connection.key){if(l.connection.filter&&l.connection.filter.length>0){var T=l.connection.filter?l.connection.filter:[];T.sort();var B={};return T.forEach(function(ae){B[ae]=_[ae]}),l.connection.key+"("+JSON.stringify(B)+")"}return l.connection.key}var U=c;if(_){var z=w()(_);U+="("+z+")"}return l&&Object.keys(l).forEach(function(ae){-1===D.indexOf(ae)&&(l[ae]&&Object.keys(l[ae]).length?U+="@"+ae+"("+JSON.stringify(l[ae])+")":U+="@"+ae)}),U}function Q(c,_){if(c.arguments&&c.arguments.length){var l={};return c.arguments.forEach(function(T){return P(l,T.name,T.value,_)}),l}return null}function H(c){return c.alias?c.alias.value:c.name.value}function L(c,_,l){if("string"==typeof c.__typename)return c.__typename;for(var T=0,B=_.selections;T<B.length;T++){var U=B[T];if(g(U)){if("__typename"===U.name.value)return c[H(U)]}else{var z=L(c,(0,r.hi)(U,l).selectionSet,l);if("string"==typeof z)return z}}}function g(c){return"Field"===c.kind}function R(c){return"InlineFragment"===c.kind}},64323:(ce,k,p)=>{"use strict";p.d(k,{Gw:()=>m,aL:()=>L,ob:()=>g,Fo:()=>M});var t=p(60162),w=p(74270),r=(p(73567),p(57993));function n(R,c,_){var l=0;return R.forEach(function(T,B){c.call(this,T,B,R)&&(R[l++]=T)},_),R.length=l,R}var a=p(7882),u=p(77260),e={kind:"Field",name:{kind:"Name",value:"__typename"}};function i(R,c){return R.selectionSet.selections.every(function(_){return"FragmentSpread"===_.kind&&i(c[_.name.value],c)})}function s(R){return i((0,r.$H)(R)||(0,r.pD)(R),(0,u.F)((0,r.kU)(R)))?null:R}function h(R){return function(_){return R.some(function(l){return l.name&&l.name===_.name.value||l.test&&l.test(_)})}}function y(R,c){var _=Object.create(null),l=[],T=Object.create(null),B=[],U=s((0,w.Vn)(c,{Variable:{enter:function(z,ae,pe){"VariableDefinition"!==pe.kind&&(_[z.name.value]=!0)}},Field:{enter:function(z){if(R&&z.directives&&R.some(function(pe){return pe.remove})&&z.directives&&z.directives.some(h(R)))return z.arguments&&z.arguments.forEach(function(pe){"Variable"===pe.value.kind&&l.push({name:pe.value.name.value})}),z.selectionSet&&H(z.selectionSet).forEach(function(pe){B.push({name:pe.name.value})}),null}},FragmentSpread:{enter:function(z){T[z.name.value]=!0}},Directive:{enter:function(z){if(h(R)(z))return null}}}));return U&&n(l,function(z){return!!z.name&&!_[z.name]}).length&&(U=function W(R,c){var _=function D(R){return function(_){return R.some(function(l){return _.value&&"Variable"===_.value.kind&&_.value.name&&(l.name===_.value.name.value||l.test&&l.test(_))})}}(R);return s((0,w.Vn)(c,{OperationDefinition:{enter:function(l){return(0,t.pi)((0,t.pi)({},l),{variableDefinitions:l.variableDefinitions?l.variableDefinitions.filter(function(T){return!R.some(function(B){return B.name===T.variable.name.value})}):[]})}},Field:{enter:function(l){var T=R.some(function(U){return U.remove});if(T){var B=0;if(l.arguments&&l.arguments.forEach(function(U){_(U)&&(B+=1)}),1===B)return null}}},Argument:{enter:function(l){if(_(l))return null}}}))}(l,U)),U&&n(B,function(z){return!!z.name&&!T[z.name]}).length&&(U=function Q(R,c){function _(l){if(R.some(function(T){return T.name===l.name.value}))return null}return s((0,w.Vn)(c,{FragmentSpread:{enter:_},FragmentDefinition:{enter:_}}))}(B,U)),U}function m(R){return(0,w.Vn)((0,r.A$)(R),{SelectionSet:{enter:function(c,_,l){if(!l||"OperationDefinition"!==l.kind){var T=c.selections;if(T&&!T.some(function(z){return(0,a.My)(z)&&("__typename"===z.name.value||0===z.name.value.lastIndexOf("__",0))})){var U=l;if(!((0,a.My)(U)&&U.directives&&U.directives.some(function(z){return"export"===z.name.value})))return(0,t.pi)((0,t.pi)({},c),{selections:(0,t.pr)(T,[e])})}}}}})}m.added=function(R){return R===e};var I={test:function(R){var c="connection"===R.name.value;return c&&(!R.arguments||R.arguments.some(function(_){return"key"===_.name.value})),c}};function M(R){return y([I],(0,r.A$)(R))}function H(R){var c=[];return R.selections.forEach(function(_){((0,a.My)(_)||(0,a.Ao)(_))&&_.selectionSet?H(_.selectionSet).forEach(function(l){return c.push(l)}):"FragmentSpread"===_.kind&&c.push(_)}),c}function L(R){return"query"===(0,r.p$)(R).operation?R:(0,w.Vn)(R,{OperationDefinition:{enter:function(T){return(0,t.pi)((0,t.pi)({},T),{operation:"query"})}}})}function g(R){(0,r.A$)(R);var c=y([{test:function(_){return"client"===_.name.value},remove:!0}],R);return c&&(c=(0,w.Vn)(c,{FragmentDefinition:{enter:function(_){if(_.selectionSet&&_.selectionSet.selections.every(function(T){return(0,a.My)(T)&&"__typename"===T.name.value}))return null}}})),c}},73418:(ce,k,p)=>{"use strict";function t(w,d,r){var n=[];w.forEach(function(a){return a[d]&&n.push(a)}),n.forEach(function(a){return a[d](r)})}p.d(k,{p:()=>t})},42903:(ce,k,p)=>{"use strict";p.d(k,{D:()=>d});var t=p(20316),w=p.n(t);function d(r){function n(a){Object.defineProperty(r,a,{value:w()})}return"function"==typeof Symbol&&Symbol.species&&n(Symbol.species),n("@@species"),r}},13146:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.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,a=r.byteLength;if(this.bytesHashed+=a,8*this.bytesHashed>t.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;a>0;)this.buffer[this.bufferLength++]=r[n++],a--,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),a=this.bufferLength;if(n.setUint8(this.bufferLength++,128),a%t.BLOCK_SIZE>=t.BLOCK_SIZE-8){for(var u=this.bufferLength;u<t.BLOCK_SIZE;u++)n.setUint8(u,0);this.hashBuffer(),this.bufferLength=0}for(u=this.bufferLength;u<t.BLOCK_SIZE-8;u++)n.setUint8(u,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(u=0;u<8;u++)e[4*u]=this.state[u]>>>24&255,e[4*u+1]=this.state[u]>>>16&255,e[4*u+2]=this.state[u]>>>8&255,e[4*u+3]=this.state[u]>>>0&255;return e},d.prototype.hashBuffer=function(){for(var n=this.buffer,a=this.state,u=a[0],e=a[1],i=a[2],s=a[3],h=a[4],y=a[5],m=a[6],I=a[7],M=0;M<t.BLOCK_SIZE;M++){if(M<16)this.temp[M]=(255&n[4*M])<<24|(255&n[4*M+1])<<16|(255&n[4*M+2])<<8|255&n[4*M+3];else{var P=this.temp[M-2];this.temp[M]=(((P>>>17|P<<15)^(P>>>19|P<<13)^P>>>10)+this.temp[M-7]|0)+((((P=this.temp[M-15])>>>7|P<<25)^(P>>>18|P<<14)^P>>>3)+this.temp[M-16]|0)}var W=(((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&y^~h&m)|0)+(I+(t.KEY[M]+this.temp[M]|0)|0)|0,Q=((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+(u&e^u&i^e&i)|0;I=m,m=y,y=h,h=s+W|0,s=i,i=e,e=u,u=W+Q|0}a[0]+=u,a[1]+=e,a[2]+=i,a[3]+=s,a[4]+=h,a[5]+=y,a[6]+=m,a[7]+=I},d}();k.RawSha256=w},19749:(ce,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.MAX_HASHABLE_LENGTH=k.INIT=k.KEY=k.DIGEST_LENGTH=k.BLOCK_SIZE=void 0,k.BLOCK_SIZE=64,k.DIGEST_LENGTH=32,k.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]),k.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],k.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},4084:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),(0,p(91205).__exportStar)(p(71482),k)},71482:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.Sha256=void 0;var t=p(91205),w=p(19749),d=p(13146),r=p(51627),n=function(){function u(e){if(this.hash=new d.RawSha256,e){this.outer=new d.RawSha256;var i=function a(u){var e=(0,r.convertToBuffer)(u);if(e.byteLength>w.BLOCK_SIZE){var i=new d.RawSha256;i.update(e),e=i.digest()}var s=new Uint8Array(w.BLOCK_SIZE);return s.set(e),s}(e),s=new Uint8Array(w.BLOCK_SIZE);s.set(i);for(var h=0;h<w.BLOCK_SIZE;h++)i[h]^=54,s[h]^=92;for(this.hash.update(i),this.outer.update(s),h=0;h<i.byteLength;h++)i[h]=0}}return u.prototype.update=function(e){if(!(0,r.isEmptyData)(e)&&!this.error)try{this.hash.update((0,r.convertToBuffer)(e))}catch(i){this.error=i}},u.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()},u.prototype.digest=function(){return(0,t.__awaiter)(this,void 0,void 0,function(){return(0,t.__generator)(this,function(e){return[2,this.digestSync()]})})},u}();k.Sha256=n},15917:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.convertToBuffer=void 0;var t=p(66102),w=typeof Buffer<"u"&&Buffer.from?function(r){return Buffer.from(r,"utf8")}:t.fromUtf8;k.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:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.uint32ArrayFrom=k.numToUint8=k.isEmptyData=k.convertToBuffer=void 0;var t=p(15917);Object.defineProperty(k,"convertToBuffer",{enumerable:!0,get:function(){return t.convertToBuffer}});var w=p(50288);Object.defineProperty(k,"isEmptyData",{enumerable:!0,get:function(){return w.isEmptyData}});var d=p(10920);Object.defineProperty(k,"numToUint8",{enumerable:!0,get:function(){return d.numToUint8}});var r=p(45980);Object.defineProperty(k,"uint32ArrayFrom",{enumerable:!0,get:function(){return r.uint32ArrayFrom}})},50288:(ce,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.isEmptyData=void 0,k.isEmptyData=function p(t){return"string"==typeof t?0===t.length:0===t.byteLength}},10920:(ce,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.numToUint8=void 0,k.numToUint8=function p(t){return new Uint8Array([(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t])}},45980:(ce,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.uint32ArrayFrom=void 0,k.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:(ce,k,p)=>{"use strict";p.d(k,{N:()=>a});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 a(u){for(var e="",i=0;i<u.byteLength;i++)e+=t[u[i]];return e}},66102:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{fromUtf8:()=>n,toUtf8:()=>a});var n=function(u){return"function"==typeof TextEncoder?function d(u){return(new TextEncoder).encode(u)}(u):function(u){for(var e=[],i=0,s=u.length;i<s;i++){var h=u.charCodeAt(i);if(h<128)e.push(h);else if(h<2048)e.push(h>>6|192,63&h|128);else if(i+1<u.length&&55296==(64512&h)&&56320==(64512&u.charCodeAt(i+1))){var y=65536+((1023&h)<<10)+(1023&u.charCodeAt(++i));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)}(u)},a=function(u){return"function"==typeof TextDecoder?function r(u){return new TextDecoder("utf-8").decode(u)}(u):function(u){for(var e="",i=0,s=u.length;i<s;i++){var h=u[i];if(h<128)e+=String.fromCharCode(h);else if(192<=h&&h<224){var y=u[++i];e+=String.fromCharCode((31&h)<<6|63&y)}else if(240<=h&&h<365){var I="%"+[h,u[++i],u[++i],u[++i]].map(function(M){return M.toString(16)}).join("%");e+=decodeURIComponent(I)}else e+=String.fromCharCode((15&h)<<12|(63&u[++i])<<6|63&u[++i])}return e}(u)}},91971:(ce,k,p)=>{"use strict";p.d(k,{g7:()=>u});var t=null,w={},d=1,n="@wry/context:Slot",a=Array,u=a[n]||function(){var M=function(){function M(){this.id=["slot",d++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return M.prototype.hasValue=function(){for(var P=t;P;P=P.parent)if(this.id in P.slots){var C=P.slots[this.id];if(C===w)break;return P!==t&&(t.slots[this.id]=C),!0}return t&&(t.slots[this.id]=w),!1},M.prototype.getValue=function(){if(this.hasValue())return t.slots[this.id]},M.prototype.withValue=function(P,C,D,W){var Q,H=((Q={__proto__:null})[this.id]=P,Q),L=t;t={parent:L,slots:H};try{return C.apply(W,D)}finally{t=L}},M.bind=function(P){var C=t;return function(){var D=t;try{return t=C,P.apply(this,arguments)}finally{t=D}}},M.noContext=function(P,C,D){if(!t)return P.apply(D,C);var W=t;try{return t=null,P.apply(D,C)}finally{t=W}},M}();try{Object.defineProperty(a,n,{value:a[n]=M,enumerable:!1,writable:!1,configurable:!1})}finally{return M}}()},52485:(ce,k,p)=>{"use strict";p.d(k,{D:()=>a});var t=Object.prototype,w=t.toString,d=t.hasOwnProperty,r=Function.prototype.toString,n=new Map;function a(m,I){try{return u(m,I)}finally{n.clear()}}function u(m,I){if(m===I)return!0;var M=w.call(m);if(M!==w.call(I))return!1;switch(M){case"[object Array]":if(m.length!==I.length)return!1;case"[object Object]":if(y(m,I))return!0;var C=e(m),D=e(I),W=C.length;if(W!==D.length)return!1;for(var Q=0;Q<W;++Q)if(!d.call(I,C[Q]))return!1;for(Q=0;Q<W;++Q){var H=C[Q];if(!u(m[H],I[H]))return!1}return!0;case"[object Error]":return m.name===I.name&&m.message===I.message;case"[object Number]":if(m!=m)return I!=I;case"[object Boolean]":case"[object Date]":return+m==+I;case"[object RegExp]":case"[object String]":return m==""+I;case"[object Map]":case"[object Set]":if(m.size!==I.size)return!1;if(y(m,I))return!0;for(var L=m.entries(),g="[object Map]"===M;;){var R=L.next();if(R.done)break;var c=R.value,_=c[0],l=c[1];if(!I.has(_)||g&&!u(l,I.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),I=new Uint8Array(I);case"[object DataView]":var T=m.byteLength;if(T===I.byteLength)for(;T--&&m[T]===I[T];);return-1===T;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var B=r.call(m);return B===r.call(I)&&!function h(m,I){var M=m.length-I.length;return M>=0&&m.indexOf(I,M)===M}(B,s)}return!1}function e(m){return Object.keys(m).filter(i,m)}function i(m){return void 0!==this[m]}var s="{ [native code] }";function y(m,I){var M=n.get(m);if(M){if(M.has(I))return!0}else n.set(m,M=new Set);return M.add(I),!1}},91269:(ce,k,p)=>{"use strict";p.d(k,{B:()=>n});var t=function(){return Object.create(null)},w=Array.prototype,d=w.forEach,r=w.slice,n=function(){function u(e,i){void 0===e&&(e=!0),void 0===i&&(i=t),this.weakness=e,this.makeData=i}return u.prototype.lookup=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return this.lookupArray(e)},u.prototype.lookupArray=function(e){var i=this;return d.call(e,function(s){return i=i.getChildTrie(s)}),i.data||(i.data=this.makeData(r.call(e)))},u.prototype.getChildTrie=function(e){var i=this.weakness&&function a(u){switch(typeof u){case"object":if(null===u)break;case"function":return!0}return!1}(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),s=i.get(e);return s||i.set(e,s=new u(this.weakness,this.makeData)),s},u}()},14962:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{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 J,t=p(74270),w=function(J,se){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])})(J,se)},_="Invariant Violation",l=Object.setPrototypeOf,T=void 0===l?function(J,se){return J.__proto__=se,J}:l,B=function(J){function se(fe){void 0===fe&&(fe=_);var Ee=J.call(this,"number"==typeof fe?_+": "+fe+" (see https://github.com/apollographql/invariant-packages)":fe)||this;return Ee.framesToPop=1,Ee.name=_,T(Ee,se.prototype),Ee}return function d(J,se){function fe(){this.constructor=J}w(J,se),J.prototype=null===se?Object.create(se):(fe.prototype=se.prototype,new fe)}(se,J),se}(Error);function U(J,se){if(!J)throw new B(se)}function z(J){return function(){return console[J].apply(console,arguments)}}(J=U||(U={})).warn=z("warn"),J.error=z("error");var ae={env:{}};if("object"==typeof process)ae=process;else try{Function("stub","process = stub")(ae)}catch{}var K=function(){return K=Object.assign||function(se){for(var fe,Ee=1,we=arguments.length;Ee<we;Ee++)for(var Se in fe=arguments[Ee])Object.prototype.hasOwnProperty.call(fe,Se)&&(se[Se]=fe[Se]);return se},K.apply(this,arguments)};function _e(){for(var J=0,se=0,fe=arguments.length;se<fe;se++)J+=arguments[se].length;var Ee=Array(J),we=0;for(se=0;se<fe;se++)for(var Se=arguments[se],Fe=0,Be=Se.length;Fe<Be;Fe++,we++)Ee[we]=Se[Fe];return Ee}var O=p(67495),F=p.n(O),re=Object.prototype,ve=re.toString,xe=re.hasOwnProperty,Te=new Map;function te(J,se){try{return de(J,se)}finally{Te.clear()}}function de(J,se){if(J===se)return!0;var fe=ve.call(J);if(fe!==ve.call(se))return!1;switch(fe){case"[object Array]":if(J.length!==se.length)return!1;case"[object Object]":if(ye(J,se))return!0;var we=Object.keys(J),Se=Object.keys(se),Fe=we.length;if(Fe!==Se.length)return!1;for(var Be=0;Be<Fe;++Be)if(!xe.call(se,we[Be]))return!1;for(Be=0;Be<Fe;++Be){var Ge=we[Be];if(!de(J[Ge],se[Ge]))return!1}return!0;case"[object Error]":return J.name===se.name&&J.message===se.message;case"[object Number]":if(J!=J)return se!=se;case"[object Boolean]":case"[object Date]":return+J==+se;case"[object RegExp]":case"[object String]":return J==""+se;case"[object Map]":case"[object Set]":if(J.size!==se.size)return!1;if(ye(J,se))return!0;for(var Ne=J.entries(),et="[object Map]"===fe;;){var dt=Ne.next();if(dt.done)break;var $e=dt.value,lt=$e[0],xt=$e[1];if(!se.has(lt)||et&&!de(xt,se.get(lt)))return!1}return!0}return!1}function ye(J,se){var fe=Te.get(J);if(fe){if(fe.has(se))return!0}else Te.set(J,fe=new Set);return fe.add(se),!1}function Ie(J){return["StringValue","BooleanValue","EnumValue"].indexOf(J.kind)>-1}function Ue(J){return["IntValue","FloatValue"].indexOf(J.kind)>-1}function yt(J,se,fe,Ee){if(function nt(J){return"IntValue"===J.kind}(fe)||function ht(J){return"FloatValue"===J.kind}(fe))J[se.value]=Number(fe.value);else if(function ze(J){return"BooleanValue"===J.kind}(fe)||function qe(J){return"StringValue"===J.kind}(fe))J[se.value]=fe.value;else if(function Ke(J){return"ObjectValue"===J.kind}(fe)){var we={};fe.fields.map(function(Fe){return yt(we,Fe.name,Fe.value,Ee)}),J[se.value]=we}else if(function at(J){return"Variable"===J.kind}(fe))J[se.value]=(Ee||{})[fe.name.value];else if(function ct(J){return"ListValue"===J.kind}(fe))J[se.value]=fe.values.map(function(Fe){var Be={};return yt(Be,se,Fe,Ee),Be[se.value]});else if(function jt(J){return"EnumValue"===J.kind}(fe))J[se.value]=fe.value;else{if(!function pt(J){return"NullValue"===J.kind}(fe))throw new B(17);J[se.value]=null}}function Rt(J,se){var fe=null;J.directives&&(fe={},J.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,se)})}));var Ee=null;return J.arguments&&J.arguments.length&&(Ee={},J.arguments.forEach(function(we){return yt(Ee,we.name,we.value,se)})),ft(J.name.value,Ee,fe)}var St=["connection","include","skip","client","rest","export"];function ft(J,se,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=se,Se={};return Ee.forEach(function(Ge){Se[Ge]=we[Ge]}),fe.connection.key+"("+JSON.stringify(Se)+")"}return fe.connection.key}var Fe=J;if(se){var Be=F()(se);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(J,se){if(J.arguments&&J.arguments.length){var fe={};return J.arguments.forEach(function(Ee){return yt(fe,Ee.name,Ee.value,se)}),fe}return null}function Ft(J){return J.alias?J.alias.value:J.name.value}function wt(J){return"Field"===J.kind}function Ct(J){return"InlineFragment"===J.kind}function It(J){return J&&"id"===J.type&&"boolean"==typeof J.generated}function Lt(J,se){return void 0===se&&(se=!1),K({type:"id",generated:se},"string"==typeof J?{id:J,typename:void 0}:J)}function Vt(J){return null!=J&&"object"==typeof J&&"json"===J.type}function Wt(J){throw new B(18)}function Et(J,se){switch(void 0===se&&(se=Wt),J.kind){case"Variable":return se(J);case"NullValue":return null;case"IntValue":return parseInt(J.value,10);case"FloatValue":return parseFloat(J.value);case"ListValue":return J.values.map(function(Fe){return Et(Fe,se)});case"ObjectValue":for(var fe={},Ee=0,we=J.fields;Ee<we.length;Ee++){var Se=we[Ee];fe[Se.name.value]=Et(Se.value,se)}return fe;default:return J.value}}function Jt(J,se){if(J.directives&&J.directives.length){var fe={};return J.directives.forEach(function(Ee){fe[Ee.name.value]=Tt(Ee,se)}),fe}return null}function Vr(J,se){return void 0===se&&(se={}),Qt(J.directives).every(function(fe){var Ee=fe.directive,we=fe.ifArgument,Se=!1;return"Variable"===we.value.kind?U(void 0!==(Se=se[we.value.name.value]),13):Se=we.value.value,"skip"===Ee.name.value?!Se:Se})}function mt(J){var se=[];return(0,t.Vn)(J,{Directive:function(fe){se.push(fe.name.value)}}),se}function Nt(J,se){return mt(se).some(function(fe){return J.indexOf(fe)>-1})}function Wr(J){return J&&Nt(["client"],J)&&Nt(["export"],J)}function _t(J){var se=J.name.value;return"skip"===se||"include"===se}function Qt(J){return J?J.filter(_t).map(function(se){var fe=se.arguments;U(fe&&1===fe.length,14);var we=fe[0];U(we.name&&"if"===we.name.value,15);var Se=we.value;return U(Se&&("Variable"===Se.kind||"BooleanValue"===Se.kind),16),{directive:se,ifArgument:we}}):[]}function Or(J,se){var fe=se,Ee=[];return J.definitions.forEach(function(Se){if("OperationDefinition"===Se.kind)throw new B(11);"FragmentDefinition"===Se.kind&&Ee.push(Se)}),typeof fe>"u"&&(U(1===Ee.length,12),fe=Ee[0].name.value),K(K({},J),{definitions:_e([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:fe}}]}}],J.definitions)})}function $t(J){for(var se=[],fe=1;fe<arguments.length;fe++)se[fe-1]=arguments[fe];return se.forEach(function(Ee){typeof Ee>"u"||null===Ee||Object.keys(Ee).forEach(function(we){J[we]=Ee[we]})}),J}function Ar(J){Ot(J);var se=J.definitions.filter(function(fe){return"OperationDefinition"===fe.kind&&"mutation"===fe.operation})[0];return U(se,1),se}function Ot(J){return U(J&&"Document"===J.kind,2),U(J.definitions.filter(function(fe){return"FragmentDefinition"!==fe.kind}).map(function(fe){if("OperationDefinition"!==fe.kind)throw new B(3);return fe}).length<=1,4),J}function Kt(J){return Ot(J),J.definitions.filter(function(se){return"OperationDefinition"===se.kind})[0]}function Qr(J){var se=Kt(J);return U(se,5),se}function Kr(J){return J.definitions.filter(function(se){return"OperationDefinition"===se.kind&&se.name}).map(function(se){return se.name.value})[0]||null}function xr(J){return J.definitions.filter(function(se){return"FragmentDefinition"===se.kind})}function qr(J){var se=Kt(J);return U(se&&"query"===se.operation,6),se}function sr(J){U("Document"===J.kind,7),U(J.definitions.length<=1,8);var se=J.definitions[0];return U("FragmentDefinition"===se.kind,9),se}function Xt(J){Ot(J);for(var se,fe=0,Ee=J.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&&!se&&(se=we)}if(se)return se;throw new B(10)}function Tr(J){void 0===J&&(J=[]);var se={};return J.forEach(function(fe){se[fe.name.value]=fe}),se}function ur(J){if(J&&J.variableDefinitions&&J.variableDefinitions.length){var se=J.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([{}],se))}return{}}function zr(J){var se=new Set;if(J.variableDefinitions)for(var fe=0,Ee=J.variableDefinitions;fe<Ee.length;fe++)se.add(Ee[fe].variable.name.value);return se}function cr(J,se,fe){var Ee=0;return J.forEach(function(we,Se){se.call(this,we,Se,J)&&(J[Ee++]=we)},fe),J.length=Ee,J}var Cr={kind:"Field",name:{kind:"Name",value:"__typename"}};function Zt(J,se){return J.selectionSet.selections.every(function(fe){return"FragmentSpread"===fe.kind&&Zt(se[fe.name.value],se)})}function qt(J){return Zt(Kt(J)||sr(J),Tr(xr(J)))?null:J}function er(J){return function(fe){return J.some(function(Ee){return Ee.name&&Ee.name===fe.name.value||Ee.test&&Ee.test(fe)})}}function tr(J,se){var fe=Object.create(null),Ee=[],we=Object.create(null),Se=[],Fe=qt((0,t.Vn)(se,{Variable:{enter:function(Be,Ge,Ne){"VariableDefinition"!==Ne.kind&&(fe[Be.name.value]=!0)}},Field:{enter:function(Be){if(J&&Be.directives&&J.some(function(Ne){return Ne.remove})&&Be.directives&&Be.directives.some(er(J)))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(J)(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(J){return(0,t.Vn)(Ot(J),{SelectionSet:{enter:function(se,fe,Ee){if(!Ee||"OperationDefinition"!==Ee.kind){var we=se.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 K(K({},se),{selections:_e(we,[Cr])})}}}}})}var rr={test:function(J){var se="connection"===J.name.value;return se&&(!J.arguments||J.arguments.some(function(fe){return"key"===fe.name.value})),se}};function Pt(J){return tr([rr],Ot(J))}function Rr(J,se,fe){return void 0===fe&&(fe=!0),se&&se.selections&&se.selections.some(function(Ee){return Ir(J,Ee,fe)})}function Ir(J,se,fe){return void 0===fe&&(fe=!0),!wt(se)||!!se.directives&&(se.directives.some(er(J))||fe&&Rr(J,se.selectionSet,fe))}function Hr(J,se){var fe;return Ot(se),qt((0,t.Vn)(se,{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(J,Ne)});return Rr(J,Ee,!1)&&(fe=Be),K(K({},Ee),{selections:Ge})}return null}}}}))}function Yr(J,se){var fe=function Gr(J){return function(fe){return J.some(function(Ee){return fe.value&&"Variable"===fe.value.kind&&fe.value.name&&(Ee.name===fe.value.name.value||Ee.test&&Ee.test(fe))})}}(J);return qt((0,t.Vn)(se,{OperationDefinition:{enter:function(Ee){return K(K({},Ee),{variableDefinitions:Ee.variableDefinitions.filter(function(we){return!J.some(function(Se){return Se.name===we.variable.name.value})})})}},Field:{enter:function(Ee){if(J.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(J,se){function fe(Ee){if(J.some(function(we){return we.name===Ee.name.value}))return null}return qt((0,t.Vn)(se,{FragmentSpread:{enter:fe},FragmentDefinition:{enter:fe}}))}function Ht(J){var se=[];return J.selections.forEach(function(fe){(wt(fe)||Ct(fe))&&fe.selectionSet?Ht(fe.selectionSet).forEach(function(Ee){return se.push(Ee)}):"FragmentSpread"===fe.kind&&se.push(fe)}),se}function Jr(J){return"query"===Xt(J).operation?J:(0,t.Vn)(J,{OperationDefinition:{enter:function(we){return K(K({},we),{operation:"query"})}}})}function fr(J){Ot(J);var se=tr([{test:function(fe){return"client"===fe.name.value},remove:!0}],J);return se&&(se=(0,t.Vn)(se,{FragmentDefinition:{enter:function(fe){if(fe.selectionSet&&fe.selectionSet.selections.every(function(we){return wt(we)&&"__typename"===we.name.value}))return null}}})),se}var $r="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),Xr=Object.prototype.toString;function Zr(J){return lr(J,new Map)}function lr(J,se){switch(Xr.call(J)){case"[object Array]":if(se.has(J))return se.get(J);var fe=J.slice(0);return se.set(J,fe),fe.forEach(function(we,Se){fe[Se]=lr(we,se)}),fe;case"[object Object]":if(se.has(J))return se.get(J);var Ee=Object.create(Object.getPrototypeOf(J));return se.set(J,Ee),Object.keys(J).forEach(function(we){Ee[we]=lr(J[we],se)}),Ee;default:return J}}function hr(){return typeof process<"u"?"production":"development"}function Bt(J){return hr()===J}function Pr(){return!0===Bt("production")}function Dt(){return!0===Bt("development")}function st(){return!0===Bt("test")}function pr(J){try{return J()}catch(se){console.error&&console.error(se)}}function Dr(J){return J.errors&&J.errors.length}function Mr(J){return Object.freeze(J),Object.getOwnPropertyNames(J).forEach(function(se){null!==J[se]&&("object"==typeof J[se]||"function"==typeof J[se])&&!Object.isFrozen(J[se])&&Mr(J[se])}),J}function kr(J){return!Dt()&&!st()||"function"==typeof Symbol&&"string"==typeof Symbol("")?J:Mr(J)}var en=Object.prototype.hasOwnProperty;function Fr(){for(var J=[],se=0;se<arguments.length;se++)J[se]=arguments[se];return At(J)}function At(J){var se=J[0]||{},fe=J.length;if(fe>1){var Ee=[];se=dr(se,Ee);for(var we=1;we<fe;++we)se=Mt(se,J[we],Ee)}return se}function nr(J){return null!==J&&"object"==typeof J}function Mt(J,se,fe){return nr(se)&&nr(J)?(Object.isExtensible&&!Object.isExtensible(J)&&(J=dr(J,fe)),Object.keys(se).forEach(function(Ee){var we=se[Ee];if(en.call(J,Ee)){var Se=J[Ee];we!==Se&&(J[Ee]=Mt(dr(Se,fe),we,fe))}else J[Ee]=we}),J):se}function dr(J,se){return null!==J&&"object"==typeof J&&se.indexOf(J)<0&&(J=Array.isArray(J)?J.slice(0):K({__proto__:Object.getPrototypeOf(J)},J),se.push(J)),J}var it=Object.create({});function tn(J,se){void 0===se&&(se="warn"),!Pr()&&!it[J]&&(st()||(it[J]=!0),"error"===se?console.error(J):console.warn(J))}function vr(J){return JSON.parse(JSON.stringify(J))}},38920:function(ce,k,p){"use strict";var D,t=this&&this.__extends||(D=function(W,Q){return(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,L){H.__proto__=L}||function(H,L){for(var g in L)L.hasOwnProperty(g)&&(H[g]=L[g])})(W,Q)},function(W,Q){function H(){this.constructor=W}D(W,Q),W.prototype=null===Q?Object.create(Q):(H.prototype=Q.prototype,new H)}),w=this&&this.__assign||function(){return w=Object.assign||function(D){for(var W,Q=1,H=arguments.length;Q<H;Q++)for(var L in W=arguments[Q])Object.prototype.hasOwnProperty.call(W,L)&&(D[L]=W[L]);return D},w.apply(this,arguments)},d=this&&this.__awaiter||function(D,W,Q,H){return new(Q||(Q=Promise))(function(g,R){function c(T){try{l(H.next(T))}catch(B){R(B)}}function _(T){try{l(H.throw(T))}catch(B){R(B)}}function l(T){T.done?g(T.value):function L(g){return g instanceof Q?g:new Q(function(R){R(g)})}(T.value).then(c,_)}l((H=H.apply(D,W||[])).next())})},r=this&&this.__generator||function(D,W){var H,L,g,R,Q={label:0,sent:function(){if(1&g[0])throw g[1];return g[1]},trys:[],ops:[]};return R={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(R[Symbol.iterator]=function(){return this}),R;function c(l){return function(T){return function _(l){if(H)throw new TypeError("Generator is already executing.");for(;Q;)try{if(H=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 Q.label++,{value:l[1],done:!1};case 5:Q.label++,L=l[1],l=[0];continue;case 7:l=Q.ops.pop(),Q.trys.pop();continue;default:if(!(g=(g=Q.trys).length>0&&g[g.length-1])&&(6===l[0]||2===l[0])){Q=0;continue}if(3===l[0]&&(!g||l[1]>g[0]&&l[1]<g[3])){Q.label=l[1];break}if(6===l[0]&&Q.label<g[1]){Q.label=g[1],g=l;break}if(g&&Q.label<g[2]){Q.label=g[2],Q.ops.push(l);break}g[2]&&Q.ops.pop(),Q.trys.pop();continue}l=W.call(D,Q)}catch(T){l=[6,T],L=0}finally{H=g=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,T])}}};Object.defineProperty(k,"__esModule",{value:!0});var y,n=p(8711),a=p(8511),u=p(85754),e=p(90258),i=p(85526),s=p(7535);k.USER_AGENT_HEADER="x-amz-user-agent",k.USER_AGENT="aws-amplify/"+s.version+(i.userAgent&&" ")+i.userAgent,function(D){D.NONE="NONE",D.API_KEY="API_KEY",D.AWS_IAM="AWS_IAM",D.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",D.OPENID_CONNECT="OPENID_CONNECT",D.AWS_LAMBDA="AWS_LAMBDA"}(y=k.AUTH_TYPE||(k.AUTH_TYPE={}));var m=function(D){function W(Q){var H=D.call(this)||this;return H.link=k.authLink(Q),H}return t(W,D),W.prototype.request=function(Q,H){return this.link.request(Q,H)},W}(n.ApolloLink);k.AuthLink=m;var I=function(D,W,Q){var H=void 0===D?{header:"",value:""}:D,L=H.header,g=H.value;return d(void 0,void 0,void 0,function(){var R,c,l,T,B;return r(this,function(U){switch(U.label){case 0:return R=W.getContext(),c=w(w({},R.headers),((T={})[k.USER_AGENT_HEADER]=k.USER_AGENT,T)),L&&g?"function"!=typeof g?[3,2]:[4,g.call(void 0)]:[3,5];case 1:return l=U.sent(),[3,4];case 2:return[4,g];case 3:l=U.sent(),U.label=4;case 4:c=w(((B={})[L]=l,B),c),U.label=5;case 5:return W.setContext(w(w({},R),{headers:c})),[2,Q(W)]}})})};k.authLink=function(D){var W=D.url,Q=D.region,H=D.auth,L=(void 0===H?{}:H).type,g=D.auth;return new n.ApolloLink(function(R,c){return new n.Observable(function(_){var l,T;switch(L){case y.NONE:T=I(void 0,R,c);break;case y.AWS_IAM:var B=g.credentials;T=function(D,W,Q){var H=D.credentials,L=D.region,g=D.url;return d(void 0,void 0,void 0,function(){var R,c,_,l,T,B,U,z,ae,pe,X,he,oe;return r(this,function(K){switch(K.label){case 0:return R="appsync",c=W.getContext(),(_="function"==typeof H?H.call():H||{})&&"function"==typeof _.getPromise?[4,_.getPromise()]:[3,2];case 1:K.sent(),K.label=2;case 2:return[4,_];case 3:return l=K.sent(),T=l.accessKeyId,B=l.secretAccessKey,U=l.sessionToken,z=e.parse(g),ae=z.host,pe=z.path,X=w(w({},P(W,{})),{service:R,region:L,url:g,host:ae,path:pe}),he=u.Signer.sign(X,{access_key:T,secret_key:B,session_token:U}).headers,W.setContext(w(w({},c),{headers:w(w(w({},c.headers),he),(oe={},oe[k.USER_AGENT_HEADER]=k.USER_AGENT,oe))})),[2,Q(W)]}})})}({credentials:void 0===B?{}:B,region:Q,url:W},R,c);break;case y.API_KEY:var z=g.apiKey;T=I({header:"X-Api-Key",value:void 0===z?"":z},R,c);break;case y.AMAZON_COGNITO_USER_POOLS:case y.OPENID_CONNECT:var pe=g.jwtToken;T=I({header:"Authorization",value:void 0===pe?"":pe},R,c);break;case y.AWS_LAMBDA:var he=g.token;T=I({header:"Authorization",value:void 0===he?"":he},R,c);break;default:throw new Error("Invalid AUTH_TYPE: "+g.type)}return T.then(function(Y){l=Y.subscribe({next:_.next.bind(_),error:_.error.bind(_),complete:_.complete.bind(_)})}),function(){l&&l.unsubscribe()}})})};var P=function(D,W){var L=D.query,g={operationName:D.operationName,variables:C(D.variables),query:a.print(L)};return w(w({body:JSON.stringify(g),method:"POST"},W),{headers:w({accept:"*/*","content-type":"application/json; charset=UTF-8"},W.headers)})},C=function(D){return Object.keys(D).filter(function(W){return!W.startsWith("@@")}).reduce(function(W,Q){return W[Q]=D[Q],W},{})}},63178:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var t=p(38920);k.AuthLink=t.AuthLink,k.AUTH_TYPE=t.AUTH_TYPE,k.USER_AGENT_HEADER=t.USER_AGENT_HEADER,k.USER_AGENT=t.USER_AGENT,k.createAuthLink=function(d){return new t.AuthLink({url:d.url,region:d.region,auth:d.auth})};var w=p(85754);k.Signer=w.Signer},85526:(ce,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.userAgent=""},85754:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),function t(w){for(var d in w)k.hasOwnProperty(d)||(k[d]=w[d])}(p(85181))},85181:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__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,D,W){void 0===W&&(W="");var Q=new w(C);Q.update(D);var H=Q.digestSync();return"hex"===W?d(H):H},n=function(C){var D=C||"",W=new w;return W.update(D),d(W.digestSync())},a=function(C){return C&&0!==Object.keys(C).length?Object.keys(C).map(function(D){return{key:D.toLowerCase(),value:C[D]?C[D].trim().replace(/\s+/g," "):""}}).sort(function(D,W){return D.key<W.key?-1:1}).map(function(D){return D.key+":"+D.value}).join("\n")+"\n":""},u=function(C){return Object.keys(C).map(function(D){return D.toLowerCase()}).sort().join(";")},M=function(C,D,W){void 0===W&&(W=null),C.headers=C.headers||{};var H=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),L=H.substr(0,8),g="AWS4-HMAC-SHA256",R=t.parse(C.url);C.headers.host=R.host,C.headers["x-amz-date"]=H,D.session_token&&(C.headers["X-Amz-Security-Token"]=D.session_token);var c=function(C){var D=t.parse(C.url);return[C.method||"/",D.path,D.query,a(C.headers),u(C.headers),n(C.body)].join("\n")}(C);W=W||function(C){var H=(t.parse(C.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===H[1]&&(H=H.reverse()),{service:C.service||H[0],region:C.region||H[1]}}(C);var _=function(C,D,W){return[C,D,W,"aws4_request"].join("/")}(L,W.region,W.service),l=function(C,D,W,Q){return[C,W,Q,n(D)].join("\n")}(g,c,H,_),T=function(C,D,W){void 0===C&&(C="");var H=r("AWS4"+C,D),L=r(H,W.region),g=r(L,W.service);return r(g,"aws4_request")}(D.secret_key,L,W),B=function(C,D){return r(C,D,"hex")}(T,l),U=function(C,D,W,Q,H){return void 0===D&&(D=""),["AWS4-HMAC-SHA256 Credential="+D+"/"+W,"SignedHeaders="+Q,"Signature="+H].join(", ")}(0,D.access_key,_,u(C.headers),B);return C.headers.Authorization=U,C},P=function(){function C(){}return C.sign=M,C}();k.Signer=P,k.default=P},85641:function(ce,k,p){"use strict";var t=this&&this.__rest||function(e,i){var s={};for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&i.indexOf(h)<0&&(s[h]=e[h]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var y=0;for(h=Object.getOwnPropertySymbols(e);y<h.length;y++)i.indexOf(h[y])<0&&Object.prototype.propertyIsEnumerable.call(e,h[y])&&(s[h[y]]=e[h[y]])}return s};Object.defineProperty(k,"__esModule",{value:!0});var w=p(59427);k.CONTROL_EVENTS_KEY=w.CONTROL_EVENTS_KEY;var d=p(98e3),r=p(14962),n=p(34535),a=p(94402);k.createSubscriptionHandshakeLink=function u(e,i){var s,h;return"string"==typeof e?(s=i||d.createHttpLink({uri:e}),h=d.ApolloLink.from([new n.NonTerminatingLink("controlMessages",{link:new d.ApolloLink(function(m,I){return new d.Observable(function(M){var P,C=m.variables,D=w.CONTROL_EVENTS_KEY,W=C[D],Q=t(C,["symbol"==typeof D?D:D+""]);return typeof W<"u"&&(m.variables=Q),M.next(((P={})[w.CONTROL_EVENTS_KEY]=W,P)),function(){}})})}),new n.NonTerminatingLink("subsInfo",{link:s}),new w.SubscriptionHandshakeLink("subsInfo")])):(s=i||d.createHttpLink({uri:e.url}),h=new a.AppSyncRealTimeSubscriptionHandshakeLink(e)),d.ApolloLink.split(function(m){var M=r.getMainDefinition(m.query);return"OperationDefinition"===M.kind&&"subscription"===M.operation},h,s)}},34535:function(ce,k,p){"use strict";var e,t=this&&this.__extends||(e=function(i,s){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])})(i,s)},function(i,s){function h(){this.constructor=i}e(i,s),i.prototype=null===s?Object.create(s):(h.prototype=s.prototype,new h)}),w=this&&this.__assign||function(){return w=Object.assign||function(e){for(var i,s=1,h=arguments.length;s<h;s++)for(var y in i=arguments[s])Object.prototype.hasOwnProperty.call(i,y)&&(e[y]=i[y]);return e},w.apply(this,arguments)},d=this&&this.__awaiter||function(e,i,s,h){return new(s||(s=Promise))(function(m,I){function M(D){try{C(h.next(D))}catch(W){I(W)}}function P(D){try{C(h.throw(D))}catch(W){I(W)}}function C(D){D.done?m(D.value):function y(m){return m instanceof s?m:new s(function(I){I(m)})}(D.value).then(M,P)}C((h=h.apply(e,i||[])).next())})},r=this&&this.__generator||function(e,i){var h,y,m,I,s={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return I={next:M(0),throw:M(1),return:M(2)},"function"==typeof Symbol&&(I[Symbol.iterator]=function(){return this}),I;function M(C){return function(D){return function P(C){if(h)throw new TypeError("Generator is already executing.");for(;s;)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 s.label++,{value:C[1],done:!1};case 5:s.label++,y=C[1],C=[0];continue;case 7:C=s.ops.pop(),s.trys.pop();continue;default:if(!(m=(m=s.trys).length>0&&m[m.length-1])&&(6===C[0]||2===C[0])){s=0;continue}if(3===C[0]&&(!m||C[1]>m[0]&&C[1]<m[3])){s.label=C[1];break}if(6===C[0]&&s.label<m[1]){s.label=m[1],m=C;break}if(m&&s.label<m[2]){s.label=m[2],s.ops.push(C);break}m[2]&&s.ops.pop(),s.trys.pop();continue}C=i.call(e,s)}catch(D){C=[6,D],y=0}finally{h=m=0}if(5&C[0])throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}([C,D])}}};Object.defineProperty(k,"__esModule",{value:!0});var n=p(98e3),a=p(13047),u=function(e){function i(s,h){var y=h.link,m=e.call(this)||this;return m.contextKey=s,m.link=y,m}return t(i,e),i.prototype.request=function(s,h){var y=this;return a.setContext(function(m,I){return d(y,void 0,void 0,function(){var M,P,C=this;return r(this,function(D){switch(D.label){case 0:return[4,new Promise(function(W,Q){C.link.request(s).subscribe({next:W,error:Q})})];case 1:return M=D.sent(),[2,w(w({},I),(P={},P[this.contextKey]=M,P))]}})})}).request(s,h)},i}(n.ApolloLink);k.NonTerminatingLink=u},94402:function(ce,k,p){"use strict";var H,t=this&&this.__extends||(H=function(L,g){return(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,c){R.__proto__=c}||function(R,c){for(var _ in c)c.hasOwnProperty(_)&&(R[_]=c[_])})(L,g)},function(L,g){function R(){this.constructor=L}H(L,g),L.prototype=null===g?Object.create(g):(R.prototype=g.prototype,new R)}),w=this&&this.__assign||function(){return w=Object.assign||function(H){for(var L,g=1,R=arguments.length;g<R;g++)for(var c in L=arguments[g])Object.prototype.hasOwnProperty.call(L,c)&&(H[c]=L[c]);return H},w.apply(this,arguments)},d=this&&this.__awaiter||function(H,L,g,R){return new(g||(g=Promise))(function(_,l){function T(z){try{U(R.next(z))}catch(ae){l(ae)}}function B(z){try{U(R.throw(z))}catch(ae){l(ae)}}function U(z){z.done?_(z.value):function c(_){return _ instanceof g?_:new g(function(l){l(_)})}(z.value).then(T,B)}U((R=R.apply(H,L||[])).next())})},r=this&&this.__generator||function(H,L){var R,c,_,l,g={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return l={next:T(0),throw:T(1),return:T(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function T(U){return function(z){return function B(U){if(R)throw new TypeError("Generator is already executing.");for(;g;)try{if(R=1,c&&(_=2&U[0]?c.return:U[0]?c.throw||((_=c.return)&&_.call(c),0):c.next)&&!(_=_.call(c,U[1])).done)return _;switch(c=0,_&&(U=[2&U[0],_.value]),U[0]){case 0:case 1:_=U;break;case 4:return g.label++,{value:U[1],done:!1};case 5:g.label++,c=U[1],U=[0];continue;case 7:U=g.ops.pop(),g.trys.pop();continue;default:if(!(_=(_=g.trys).length>0&&_[_.length-1])&&(6===U[0]||2===U[0])){g=0;continue}if(3===U[0]&&(!_||U[1]>_[0]&&U[1]<_[3])){g.label=U[1];break}if(6===U[0]&&g.label<_[1]){g.label=_[1],_=U;break}if(_&&g.label<_[2]){g.label=_[2],g.ops.push(U);break}_[2]&&g.ops.pop(),g.trys.pop();continue}U=L.call(H,g)}catch(z){U=[6,z],c=0}finally{R=_=0}if(5&U[0])throw U[1];return{value:U[0]?U[1]:void 0,done:!0}}([U,z])}}};Object.defineProperty(k,"__esModule",{value:!0});var n=p(98e3),a=p(97389),u=p(63178),e=p(56150),i=p(90258),s=p(49927),h=p(24573),y=p(14913),m=a.rootLogger.extend("subscriptions");k.CONTROL_EVENTS_KEY="@@controlEvents";var I=[400,401,403],P={accept:"application/json, text/javascript","content-encoding":"amz-1.0","content-type":"application/json; charset=UTF-8"},W=3e5,Q=function(H){function L(g){var R=g.url,c=g.region,_=g.auth,l=H.call(this)||this;return l.socketStatus=h.SOCKET_STATUS.CLOSED,l.keepAliveTimeout=W,l.subscriptionObserverMap=new Map,l.promiseArray=[],l.url=R,l.region=c,l.auth=_,l}return t(L,H),L.prototype.request=function(g){var R,c=this,_=g.query,l=g.variables,T=g.getContext(),B=T.controlMessages,U=k.CONTROL_EVENTS_KEY,z=(void 0===B?(R={},R[k.CONTROL_EVENTS_KEY]=void 0,R):B)[U],ae=T.headers;return new n.Observable(function(pe){if(c.url){var X=s.v4(),he={appSyncGraphqlEndpoint:c.url,authenticationType:c.auth.type,query:e.print(_),region:c.region,graphql_headers:function(){return ae},variables:l,apiKey:c.auth.type===u.AUTH_TYPE.API_KEY?c.auth.apiKey:"",credentials:c.auth.type===u.AUTH_TYPE.AWS_IAM?c.auth.credentials:null,jwtToken:c.auth.type===u.AUTH_TYPE.AMAZON_COGNITO_USER_POOLS||c.auth.type===u.AUTH_TYPE.OPENID_CONNECT?c.auth.jwtToken:null};return c._startSubscriptionWithAWSAppSyncRealTime({options:he,observer:pe,subscriptionId:X}),function(){return d(c,void 0,void 0,function(){return r(this,function(K){try{if(this._verifySubscriptionAlreadyStarted(X),this.subscriptionObserverMap.get(X).subscriptionState!==h.SUBSCRIPTION_STATUS.CONNECTED)throw new Error("Subscription has failed, starting to remove subscription.");this._sendUnsubscriptionMessage(X)}catch{return this._removeSubscriptionObserver(X),[2]}return[2]})})}}pe.error({errors:[w({},new e.GraphQLError("Subscribe only available for AWS AppSync endpoint"))]}),pe.complete()}).filter(function(pe){var X=pe.extensions,he=(void 0===X?{}:X).controlMsgType;return!0===z||!(typeof(void 0===he?void 0:he)<"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,T){var B=c.subscriptionObserverMap.get(g);c.subscriptionObserverMap.set(g,{observer:B.observer,subscriptionState:B.subscriptionState,variables:B.variables,query:B.query,subscriptionReadyCallback:l,subscriptionFailedCallback:T})})]:[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 R=g.options,c=g.observer,_=g.subscriptionId;return d(this,void 0,void 0,function(){var l,T,B,U,z,ae,pe,X,he,oe,K,Y,ne,$,A,b,x,N,q,ee,_e,me,Me,ie=this;return r(this,function(V){switch(V.label){case 0:return l=R.appSyncGraphqlEndpoint,T=R.authenticationType,z=R.apiKey,ae=R.region,X=void 0===(pe=R.graphql_headers)?function(){return{}}:pe,he=R.credentials,oe=R.jwtToken,Y={query:B=R.query,variables:U=R.variables},this.subscriptionObserverMap.set(_,{observer:c,query:B,variables:U,subscriptionState:K=h.SUBSCRIPTION_STATUS.PENDING,startAckTimeoutId:null}),ne=JSON.stringify(Y),A=[{}],[4,this._awsRealTimeHeaderBasedAuth({apiKey:z,appSyncGraphqlEndpoint:l,authenticationType:T,payload:ne,canonicalUri:"",region:ae,credentials:he,jwtToken:oe})];case 1:return b=[w.apply(void 0,A.concat([V.sent()]))],[4,X()];case 2:$=w.apply(void 0,[w.apply(void 0,b.concat([V.sent()])),(Me={},Me[u.USER_AGENT_HEADER]=u.USER_AGENT,Me)]),x={id:_,payload:{data:ne,extensions:{authorization:w({},$)}},type:h.MESSAGE_TYPES.GQL_START},N=JSON.stringify(x),V.label=3;case 3:return V.trys.push([3,5,,6]),[4,this._initializeWebSocketConnection({apiKey:z,appSyncGraphqlEndpoint:l,authenticationType:T,region:ae,credentials:he,jwtToken:oe})];case 4:return V.sent(),[3,6];case 5:return q=V.sent(),c.error({errors:[w({},new e.GraphQLError("Connection failed: "+(void 0===(ee=q.message)?"":ee)))]}),c.complete(),"function"==typeof(_e=(this.subscriptionObserverMap.get(_)||{}).subscriptionFailedCallback)&&_e(),[2];case 6:return me=this.subscriptionObserverMap.get(_),this.subscriptionObserverMap.set(_,{observer:c,subscriptionState:K,variables:U,query:B,subscriptionReadyCallback:me.subscriptionReadyCallback,subscriptionFailedCallback:me.subscriptionFailedCallback,startAckTimeoutId:setTimeout(function(){ie._timeoutStartSubscriptionAck.call(ie,_)},15e3)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send(N),[2]}})})},L.prototype._initializeWebSocketConnection=function(g){var R=this,c=g.appSyncGraphqlEndpoint,_=g.authenticationType,l=g.apiKey,T=g.region,B=g.credentials,U=g.jwtToken;if(this.socketStatus!==h.SOCKET_STATUS.READY)return new Promise(function(z,ae){return d(R,void 0,void 0,function(){var pe,X,he,oe,K,Y,ne,A;return r(this,function(b){switch(b.label){case 0:if(this.promiseArray.push({res:z,rej:ae}),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,pe=L._discoverAppSyncRealTimeEndpoint(this.url),X="{}",K=(oe=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:_,payload:X,canonicalUri:"/connect",apiKey:l,appSyncGraphqlEndpoint:c,region:T,credentials:B,jwtToken:U})];case 2:return he=K.apply(oe,[b.sent()]),Y=Buffer.from(he).toString("base64"),ne=Buffer.from(X).toString("base64"),[4,this._initializeRetryableHandshake({awsRealTimeUrl:pe+"?header="+Y+"&payload="+ne})];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 R=g.authenticationType,c=g.payload,_=g.canonicalUri,l=g.appSyncGraphqlEndpoint,T=g.apiKey,B=g.region,U=g.credentials,z=g.jwtToken;return d(this,void 0,void 0,function(){var ae,pe,X;return r(this,function(oe){switch(oe.label){case 0:return ae={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(pe=ae[R])?(m("Authentication type "+R+" not supported"),[2,{}]):(X=i.parse(l).host,[4,pe({payload:c,canonicalUri:_,appSyncGraphqlEndpoint:l,apiKey:T,region:B,host:X,credentials:U,jwtToken:z})]);case 1:return[2,oe.sent()]}})})},L.prototype._awsRealTimeOPENIDHeader=function(g){var R=g.host,c=g.jwtToken;return d(this,void 0,void 0,function(){var _,l;return r(this,function(T){switch(T.label){case 0:return _={},"function"!=typeof c?[3,2]:[4,c.call(void 0)];case 1:return l=T.sent(),[3,4];case 2:return[4,c];case 3:l=T.sent(),T.label=4;case 4:return[2,(_.Authorization=l,_.host=R,_)]}})})},L.prototype._awsRealTimeApiKeyHeader=function(g){var R=g.apiKey,c=g.host;return d(this,void 0,void 0,function(){var _,l;return r(this,function(T){return _=new Date,l=_.toISOString().replace(/[:\-]|\.\d{3}/g,""),[2,{host:c,"x-amz-date":l,"x-api-key":R}]})})},L.prototype._awsRealTimeIAMHeader=function(g){var R=g.payload,c=g.canonicalUri,_=g.appSyncGraphqlEndpoint,l=g.region,T=g.credentials;return d(this,void 0,void 0,function(){var B,U,z,he,oe;return r(this,function(Y){switch(Y.label){case 0:return B={region:l,service:"appsync"},(U="function"==typeof T?T.call():T||{})&&"function"==typeof U.getPromise?[4,U.getPromise()]:[3,2];case 1:Y.sent(),Y.label=2;case 2:if(!U)throw new Error("No credentials");return[4,U];case 3:return z=Y.sent(),he={access_key:z.accessKeyId,secret_key:z.secretAccessKey,session_token:z.sessionToken},oe={url:""+_+c,body:R,method:"POST",headers:w({},P)},[2,u.Signer.sign(oe,he,B).headers]}})})},L.prototype._initializeRetryableHandshake=function(g){var R=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:R}])];case 1:return c.sent(),[2]}})})},L.prototype._initializeHandshake=function(g){var R=g.awsRealTimeUrl;return d(this,void 0,void 0,function(){var c,_,T=this;return r(this,function(B){switch(B.label){case 0:m("Initializing handshake "+R),B.label=1;case 1:return B.trys.push([1,4,,5]),[4,new Promise(function(U,z){var ae=L.createWebSocket(R,"graphql-ws");ae.onerror=function(){m("WebSocket connection error")},ae.onclose=function(){z(new Error("Connection handshake error"))},ae.onopen=function(){return T.awsRealTimeSocket=ae,U()}})];case 2:return B.sent(),[4,new Promise(function(U,z){var ae=!1;T.awsRealTimeSocket.onerror=function(he){m("WebSocket closed "+JSON.stringify(he))},T.awsRealTimeSocket.onclose=function(he){m("WebSocket closed "+he.reason),z(new Error(JSON.stringify(he)))},T.awsRealTimeSocket.onmessage=function(he){m("subscription message from AWS AppSyncRealTime: "+he.data+" ");var oe=JSON.parse(he.data),K=oe.type,Y=oe.payload,ne=(void 0===Y?{}:Y).connectionTimeoutMs;if(K===h.MESSAGE_TYPES.GQL_CONNECTION_ACK)return ae=!0,T.keepAliveTimeout=void 0===ne?W:ne,T.awsRealTimeSocket.onmessage=T._handleIncomingSubscriptionMessage.bind(T),T.awsRealTimeSocket.onerror=function(me){m(me),T._errorDisconnect(h.CONTROL_MSG.CONNECTION_CLOSED)},T.awsRealTimeSocket.onclose=function(me){m("WebSocket closed "+me.reason),T._errorDisconnect(h.CONTROL_MSG.CONNECTION_CLOSED)},void U("Cool, connected to AWS AppSyncRealTime");if(K===h.MESSAGE_TYPES.GQL_CONNECTION_ERROR){var A=oe.payload,b=(void 0===A?{}:A).errors,x=(void 0===b?[]:b)[0],N=void 0===x?{}:x,q=N.errorType,ue=N.errorCode;z({errorType:void 0===q?"":q,errorCode:void 0===ue?0:ue})}},T.awsRealTimeSocket.send(JSON.stringify({type:h.MESSAGE_TYPES.GQL_CONNECTION_INIT})),setTimeout(function X(){ae||z(new Error("Connection timeout: ack from AWSRealTime was not received on 15000 ms"))}.bind(T),15e3)})];case 3:return B.sent(),[3,5];case 4:throw c=B.sent(),_=c.errorType,I.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 R=JSON.parse(g.data),c=R.id,_=void 0===c?"":c,l=R.payload,T=R.type,B=this.subscriptionObserverMap.get(_)||{},U=B.observer,z=void 0===U?null:U,ae=B.query,pe=void 0===ae?"":ae,X=B.variables,he=void 0===X?{}:X,oe=B.startAckTimeoutId,K=void 0===oe?0:oe,Y=B.subscriptionReadyCallback,ne=void 0===Y?null:Y,$=B.subscriptionFailedCallback,A=void 0===$?null:$;if(m({id:_,observer:z,query:pe,variables:he}),T===h.MESSAGE_TYPES.GQL_DATA&&l&&l.data)z?z.next(l):m("observer not found for id: "+_);else{if(T===h.MESSAGE_TYPES.GQL_START_ACK)return m("subscription ready for "+JSON.stringify({query:pe,variables:he})),"function"==typeof ne&&ne(),clearTimeout(K),z?z.next({data:l,extensions:{controlMsgType:"CONNECTED"}}):m("observer not found for id: "+_),void this.subscriptionObserverMap.set(_,{observer:z,query:pe,variables:he,startAckTimeoutId:null,subscriptionState:h.SUBSCRIPTION_STATUS.CONNECTED,subscriptionReadyCallback:ne,subscriptionFailedCallback:A});if(T===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));T===h.MESSAGE_TYPES.GQL_ERROR&&(this.subscriptionObserverMap.set(_,{observer:z,query:pe,variables:he,startAckTimeoutId:K,subscriptionReadyCallback:ne,subscriptionFailedCallback:A,subscriptionState:h.SUBSCRIPTION_STATUS.FAILED}),z.error({errors:[w({},new e.GraphQLError("Connection failed: "+JSON.stringify(l)))]}),clearTimeout(K),z.complete(),"function"==typeof A&&A())}},L.prototype._errorDisconnect=function(g){m("Disconnect error: "+g),this.subscriptionObserverMap.forEach(function(R){var c=R.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 R=this.subscriptionObserverMap.get(g)||{},c=R.observer,_=R.query,l=R.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,R){return new WebSocket(g,R)},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);k.AppSyncRealTimeSubscriptionHandshakeLink=Q},59427:function(ce,k,p){"use strict";var m,t=this&&this.__extends||(m=function(I,M){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,C){P.__proto__=C}||function(P,C){for(var D in C)C.hasOwnProperty(D)&&(P[D]=C[D])})(I,M)},function(I,M){function P(){this.constructor=I}m(I,M),I.prototype=null===M?Object.create(M):(P.prototype=M.prototype,new P)}),w=this&&this.__assign||function(){return w=Object.assign||function(m){for(var I,M=1,P=arguments.length;M<P;M++)for(var C in I=arguments[M])Object.prototype.hasOwnProperty.call(I,C)&&(m[C]=I[C]);return m},w.apply(this,arguments)},d=this&&this.__awaiter||function(m,I,M,P){return new(M||(M=Promise))(function(D,W){function Q(g){try{L(P.next(g))}catch(R){W(R)}}function H(g){try{L(P.throw(g))}catch(R){W(R)}}function L(g){g.done?D(g.value):function C(D){return D instanceof M?D:new M(function(W){W(D)})}(g.value).then(Q,H)}L((P=P.apply(m,I||[])).next())})},r=this&&this.__generator||function(m,I){var P,C,D,W,M={label:0,sent:function(){if(1&D[0])throw D[1];return D[1]},trys:[],ops:[]};return W={next:Q(0),throw:Q(1),return:Q(2)},"function"==typeof Symbol&&(W[Symbol.iterator]=function(){return this}),W;function Q(L){return function(g){return function H(L){if(P)throw new TypeError("Generator is already executing.");for(;M;)try{if(P=1,C&&(D=2&L[0]?C.return:L[0]?C.throw||((D=C.return)&&D.call(C),0):C.next)&&!(D=D.call(C,L[1])).done)return D;switch(C=0,D&&(L=[2&L[0],D.value]),L[0]){case 0:case 1:D=L;break;case 4:return M.label++,{value:L[1],done:!1};case 5:M.label++,C=L[1],L=[0];continue;case 7:L=M.ops.pop(),M.trys.pop();continue;default:if(!(D=(D=M.trys).length>0&&D[D.length-1])&&(6===L[0]||2===L[0])){M=0;continue}if(3===L[0]&&(!D||L[1]>D[0]&&L[1]<D[3])){M.label=L[1];break}if(6===L[0]&&M.label<D[1]){M.label=D[1],D=L;break}if(D&&M.label<D[2]){M.label=D[2],M.ops.push(L);break}D[2]&&M.ops.pop(),M.trys.pop();continue}L=I.call(m,M)}catch(g){L=[6,g],C=0}finally{P=D=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,I){var M={};for(var P in m)Object.prototype.hasOwnProperty.call(m,P)&&I.indexOf(P)<0&&(M[P]=m[P]);if(null!=m&&"function"==typeof Object.getOwnPropertySymbols){var C=0;for(P=Object.getOwnPropertySymbols(m);C<P.length;C++)I.indexOf(P[C])<0&&Object.prototype.propertyIsEnumerable.call(m,P[C])&&(M[P[C]]=m[P[C]])}return M};Object.defineProperty(k,"__esModule",{value:!0});var a=p(98e3),u=p(97389),e=p(22709),i=p(14962),s=u.rootLogger.extend("subscriptions"),h=s.extend("mqtt");k.CONTROL_EVENTS_KEY="@@controlEvents";var y=function(m){function I(M){var P=m.call(this)||this;return P.topicObservers=new Map,P.clientObservers=new Map,P.onMessage=function(C,D,W){var Q=JSON.parse(D),H=P.topicObservers.get(C),L=W.reduce(function(g,R){return g[R]=g[R]||null,g},Q.data||{});s("Message received",{data:L,topic:C,observers:H}),H.forEach(function(g){try{g.next(w(w({},Q),{data:L}))}catch(R){s(R)}})},P.subsInfoContextKey=M,P}return t(I,m),I.prototype.request=function(M){var P,C=this,D=M.getContext(),Q=D[this.subsInfoContextKey],H=D.controlMessages,L=k.CONTROL_EVENTS_KEY,g=(void 0===H?(P={},P[k.CONTROL_EVENTS_KEY]=void 0,P):H)[L],R=Q.extensions,c=(void 0===R?{subscription:{newSubscriptions:{},mqttConnections:[]}}:R).subscription,_=c.newSubscriptions,l=c.mqttConnections,T=Q.errors,B=void 0===T?[]:T;if(B&&B.length)return new a.Observable(function(pe){return pe.error(new a.ApolloError({errorMessage:"Error during subscription handshake",extraInfo:{errors:B},graphQLErrors:B})),function(){}});var U=Object.keys(_).map(function(pe){return _[pe].topic}),z=new Set(U.filter(function(pe){return C.topicObservers.has(pe)})),ae=new Set(U.filter(function(pe){return!z.has(pe)}));return new a.Observable(function(pe){z.forEach(function(he){C.topicObservers.get(he).add(pe);var oe=Array.from(C.topicObservers.get(he)).find(function(){return!0}),K=Array.from(C.clientObservers).find(function(Y){return Y[1].observers.has(oe)})[0];C.clientObservers.get(K).observers.add(pe)});var X=l.filter(function(he){return he.topics.some(function(oe){return ae.has(oe)})}).map(function(he){var oe=he.topics,K=n(he,["topics"]);return w(w({},K),{topics:oe.filter(function(Y){return ae.has(Y)})})});return C.connectNewClients(X,pe,M),function(){Array.from(C.clientObservers).filter(function(oe){return oe[1].observers.has(pe)}).forEach(function(oe){return C.clientObservers.get(oe[0]).observers.delete(pe)}),C.clientObservers.forEach(function(oe){var Y=oe.client;0===oe.observers.size&&(Y.isConnected()&&Y.disconnect(),C.clientObservers.delete(Y.clientId))}),C.clientObservers=new Map(Array.from(C.clientObservers).filter(function(oe){return oe[1].observers.size>0})),C.topicObservers.forEach(function(oe){return oe.delete(pe)}),C.topicObservers=new Map(Array.from(C.topicObservers).filter(function(oe){return oe[1].size>0}))}}).filter(function(pe){var X=pe.extensions,he=(void 0===X?{}:X).controlMsgType;return!0===g||!(typeof(void 0===he?void 0:he)<"u")})},I.prototype.connectNewClients=function(M,P,C){return d(this,void 0,void 0,function(){var W,Q,H,L=this;return r(this,function(g){return W=i.getMainDefinition(C.query).selectionSet.selections.map(function(R){return R.name.value}),Q=Promise.all(M.map(function(R){return L.connectNewClient(R,P,W)})),H=W.reduce(function(R,c){return R[c]=R[c]||null,R},{}),P.next({data:H,extensions:{controlMsgType:"CONNECTED",controlMsgInfo:{connectionInfo:M}}}),[2,Q]})})},I.prototype.connectNewClient=function(M,P,C){return d(this,void 0,void 0,function(){var D,W,Q,H,L=this;return r(this,function(g){switch(g.label){case 0:return Q=M.topics,(H=new e.Client(W=M.url,D=M.client)).trace=h.bind(null,D),H.onConnectionLost=function(R){var c=R.errorCode,_=n(R,["errorCode"]);0!==c&&Q.forEach(function(l){L.topicObservers.has(l)&&L.topicObservers.get(l).forEach(function(T){return T.error(w(w({},_),{permanent:!0}))})}),Q.forEach(function(l){return L.topicObservers.delete(l)})},H.onMessageArrived=function(R){return L.onMessage(R.destinationName,R.payloadString,C)},[4,new Promise(function(R,c){H.connect({useSSL:0===W.indexOf("wss://"),mqttVersion:3,onSuccess:function(){return R(H)},onFailure:c})})];case 1:return g.sent(),[4,this.subscribeToTopics(H,Q,P)];case 2:return g.sent(),[2,H]}})})},I.prototype.subscribeToTopics=function(M,P,C){var D=this;return Promise.all(P.map(function(W){return D.subscribeToTopic(M,W,C)}))},I.prototype.subscribeToTopic=function(M,P,C){var D=this;return new Promise(function(W,Q){M.subscribe(P,{onSuccess:function(){D.topicObservers.has(P)||D.topicObservers.set(P,new Set),D.clientObservers.has(M.clientId)||D.clientObservers.set(M.clientId,{client:M,observers:new Set}),D.topicObservers.get(P).add(C),D.clientObservers.get(M.clientId).observers.add(C),W(P)},onFailure:Q})})},I}(a.ApolloLink);k.SubscriptionHandshakeLink=y},24573:(ce,k)=>{"use strict";var r;Object.defineProperty(k,"__esModule",{value:!0}),(r=k.SUBSCRIPTION_STATUS||(k.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"}(k.SOCKET_STATUS||(k.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"}(k.MESSAGE_TYPES||(k.MESSAGE_TYPES={})),function(r){r.CONNECTION_CLOSED="Connection closed",r.TIMEOUT_DISCONNECT="Timeout disconnect",r.SUBSCRIPTION_ACK="Subscription ack"}(k.CONTROL_MSG||(k.CONTROL_MSG={}))},97389:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var t=p(97982);k.rootLogger=t.default},97982:function(ce,k,p){"use strict";var t=this&&this.__spreadArrays||function(){for(var n=0,a=0,u=arguments.length;a<u;a++)n+=arguments[a].length;var e=Array(n),i=0;for(a=0;a<u;a++)for(var s=arguments[a],h=0,y=s.length;h<y;h++,i++)e[i]=s[h];return e};Object.defineProperty(k,"__esModule",{value:!0});var w=p(83483),d=w.default("aws-appsync"),r=function(n){void 0===n&&(n="");var a=n?t(this.namespace.split(":"),[n]).join(":"):this.namespace,u=w.default(a);return u.extend=r.bind(u),u};d.extend=r.bind(d),k.default=d},14913:function(ce,k,p){"use strict";var h,t=this&&this.__extends||(h=function(y,m){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,M){I.__proto__=M}||function(I,M){for(var P in M)M.hasOwnProperty(P)&&(I[P]=M[P])})(y,m)},function(y,m){function I(){this.constructor=y}h(y,m),y.prototype=null===m?Object.create(m):(I.prototype=m.prototype,new I)}),w=this&&this.__awaiter||function(h,y,m,I){return new(m||(m=Promise))(function(P,C){function D(H){try{Q(I.next(H))}catch(L){C(L)}}function W(H){try{Q(I.throw(H))}catch(L){C(L)}}function Q(H){H.done?P(H.value):function M(P){return P instanceof m?P:new m(function(C){C(P)})}(H.value).then(D,W)}Q((I=I.apply(h,y||[])).next())})},d=this&&this.__generator||function(h,y){var I,M,P,C,m={label:0,sent:function(){if(1&P[0])throw P[1];return P[1]},trys:[],ops:[]};return C={next:D(0),throw:D(1),return:D(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function D(Q){return function(H){return function W(Q){if(I)throw new TypeError("Generator is already executing.");for(;m;)try{if(I=1,M&&(P=2&Q[0]?M.return:Q[0]?M.throw||((P=M.return)&&P.call(M),0):M.next)&&!(P=P.call(M,Q[1])).done)return P;switch(M=0,P&&(Q=[2&Q[0],P.value]),Q[0]){case 0:case 1:P=Q;break;case 4:return m.label++,{value:Q[1],done:!1};case 5:m.label++,M=Q[1],Q=[0];continue;case 7:Q=m.ops.pop(),m.trys.pop();continue;default:if(!(P=(P=m.trys).length>0&&P[P.length-1])&&(6===Q[0]||2===Q[0])){m=0;continue}if(3===Q[0]&&(!P||Q[1]>P[0]&&Q[1]<P[3])){m.label=Q[1];break}if(6===Q[0]&&m.label<P[1]){m.label=P[1],P=Q;break}if(P&&m.label<P[2]){m.label=P[2],m.ops.push(Q);break}P[2]&&m.ops.pop(),m.trys.pop();continue}Q=y.call(h,m)}catch(H){Q=[6,H],M=0}finally{I=P=0}if(5&Q[0])throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}([Q,H])}}};Object.defineProperty(k,"__esModule",{value:!0});var n=p(97389).rootLogger.extend("retry"),u=function(h){function y(m){var I=h.call(this,m)||this;return I.nonRetryable=!0,I}return t(y,h),y}(Error);function i(h,y,m,I){return void 0===I&&(I=1),w(this,void 0,void 0,function(){var M,P;return d(this,function(C){switch(C.label){case 0:n("Attempt #"+I+" 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(M=C.sent(),n("error "+M),function(h){return h&&h.nonRetryable}(M))throw n("non retryable error"),M;return P=m(I,y,M),n("retryIn ",P),!1===P?[3,6]:[4,new Promise(function(D){return setTimeout(D,P)})];case 4:return C.sent(),[4,i(h,y,m,I+1)];case 5:return[2,C.sent()];case 6:throw M;case 7:return[3,8];case 8:return[2]}})})}k.NonRetryableError=u,k.retry=i,k.jitteredExponentialRetry=function(h,y,m){return void 0===m&&(m=5e3),i(h,y,function s(h){return function(I){var M=100*Math.pow(2,I)+100*Math.random();return!(M>h)&&M}}(m))}},22709:function(ce){var p;ce.exports=(p=function(t){var _,d=t.localStorage||(_={},{setItem:function(l,T){_[l]=T},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 T in _)if(_.hasOwnProperty(T)){if(!l.hasOwnProperty(T)){var B="Unknown property, "+T+". Valid properties are:";for(var U in l)l.hasOwnProperty(U)&&(B=B+" "+U);throw new Error(B)}if(typeof _[T]!==l[T])throw new Error(i(u.INVALID_TYPE,[typeof _[T],T]))}},a=function(_,l){return function(){return _.apply(l,arguments)}},u={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"},i=function(_,l){var T=_.text;if(l)for(var B,U,z=0;z<l.length;z++)if((U=T.indexOf(B="{"+z+"}"))>0){var ae=T.substring(0,U),pe=T.substring(U+B.length);T=ae+l[z]+pe}return T},s=[0,6,77,81,73,115,100,112,3],h=[0,4,77,81,84,84,4],y=function(_,l){for(var T in this.type=_,l)l.hasOwnProperty(T)&&(this[T]=l[T])};function m(_,l){var T=l,B=_[l],U=B>>4,z=B&=15;l+=1;var ae,pe=0,X=1;do{if(l==_.length)return[null,T];pe+=(127&(ae=_[l++]))*X,X*=128}while(0!=(128&ae));var he=l+pe;if(he>_.length)return[null,T];var oe=new y(U);switch(U){case r_CONNACK:1&_[l++]&&(oe.sessionPresent=!0),oe.returnCode=_[l++];break;case r_PUBLISH:var Y=z>>1&3,ne=P(_,l),$=Q(_,l+=2,ne);l+=ne,Y>0&&(oe.messageIdentifier=P(_,l),l+=2);var A=new p.Message(_.subarray(l,he));1==(1&z)&&(A.retained=!0),8==(8&z)&&(A.duplicate=!0),A.qos=Y,A.destinationName=$,oe.payloadMessage=A;break;case r_PUBACK:case r_PUBREC:case r_PUBREL:case r_PUBCOMP:case r_UNSUBACK:oe.messageIdentifier=P(_,l);break;case r_SUBACK:oe.messageIdentifier=P(_,l),oe.returnCode=_.subarray(l+=2,he)}return[oe,he]}function I(_,l,T){return l[T++]=_>>8,l[T++]=_%256,T}function M(_,l,T,B){return W(_,T,B=I(l,T,B)),B+l}function P(_,l){return 256*_[l]+_[l+1]}function D(_){for(var l=0,T=0;T<_.length;T++){var B=_.charCodeAt(T);B>2047?(55296<=B&&B<=56319&&(T++,l++),l+=3):B>127?l+=2:l++}return l}function W(_,l,T){for(var B=T,U=0;U<_.length;U++){var z=_.charCodeAt(U);if(55296<=z&&z<=56319){var ae=_.charCodeAt(++U);if(isNaN(ae))throw new Error(i(u.MALFORMED_UNICODE,[z,ae]));z=ae-56320+(z-55296<<10)+65536}z<=127?l[B++]=z:z<=2047?(l[B++]=z>>6&31|192,l[B++]=63&z|128):z<=65535?(l[B++]=z>>12&15|224,l[B++]=z>>6&63|128,l[B++]=63&z|128):(l[B++]=z>>18&7|240,l[B++]=z>>12&63|128,l[B++]=z>>6&63|128,l[B++]=63&z|128)}return l}function Q(_,l,T){for(var U,B="",z=l;z<l+T;){var ae=_[z++];if(ae<128)U=ae;else{var pe=_[z++]-128;if(pe<0)throw new Error(i(u.MALFORMED_UTF,[ae.toString(16),pe.toString(16),""]));if(ae<224)U=64*(ae-192)+pe;else{var X=_[z++]-128;if(X<0)throw new Error(i(u.MALFORMED_UTF,[ae.toString(16),pe.toString(16),X.toString(16)]));if(ae<240)U=4096*(ae-224)+64*pe+X;else{var he=_[z++]-128;if(he<0)throw new Error(i(u.MALFORMED_UTF,[ae.toString(16),pe.toString(16),X.toString(16),he.toString(16)]));if(!(ae<248))throw new Error(i(u.MALFORMED_UTF,[ae.toString(16),pe.toString(16),X.toString(16),he.toString(16)]));U=262144*(ae-240)+4096*pe+64*X+he}}}U>65535&&(U-=65536,B+=String.fromCharCode(55296+(U>>10)),U=56320+(1023&U)),B+=String.fromCharCode(U)}return B}y.prototype.encode=function(){var U,_=(15&this.type)<<4,l=0,T=[],B=0;switch(void 0!==this.messageIdentifier&&(l+=2),this.type){case r_CONNECT:switch(this.mqttVersion){case 3:l+=s.length+3;break;case 4:l+=h.length+3}l+=D(this.clientId)+2,void 0!==this.willMessage&&(l+=D(this.willMessage.destinationName)+2,(U=this.willMessage.payloadBytes)instanceof Uint8Array||(U=new Uint8Array(ae)),l+=U.byteLength+2),void 0!==this.userName&&(l+=D(this.userName)+2),void 0!==this.password&&(l+=D(this.password)+2);break;case r_SUBSCRIBE:_|=2;for(var z=0;z<this.topics.length;z++)T[z]=D(this.topics[z]),l+=T[z]+2;l+=this.requestedQos.length;break;case r_UNSUBSCRIBE:for(_|=2,z=0;z<this.topics.length;z++)T[z]=D(this.topics[z]),l+=T[z]+2;break;case r_PUBREL:_|=2;break;case r_PUBLISH:this.payloadMessage.duplicate&&(_|=8),_=_|=this.payloadMessage.qos<<1,this.payloadMessage.retained&&(_|=1),l+=(B=D(this.payloadMessage.destinationName))+2;var ae=this.payloadMessage.payloadBytes;l+=ae.byteLength,ae instanceof ArrayBuffer?ae=new Uint8Array(ae):ae instanceof Uint8Array||(ae=new Uint8Array(ae.buffer))}var pe=function C(_){var l=new Array(1),T=0;do{var B=_%128;(_>>=7)>0&&(B|=128),l[T++]=B}while(_>0&&T<4);return l}(l),X=pe.length+1,he=new ArrayBuffer(l+X),oe=new Uint8Array(he);if(oe[0]=_,oe.set(pe,1),this.type==r_PUBLISH)X=M(this.payloadMessage.destinationName,B,oe,X);else if(this.type==r_CONNECT){switch(this.mqttVersion){case 3:oe.set(s,X),X+=s.length;break;case 4:oe.set(h,X),X+=h.length}var K=0;this.cleanSession&&(K=2),void 0!==this.willMessage&&(K|=4,K|=this.willMessage.qos<<3,this.willMessage.retained&&(K|=32)),void 0!==this.userName&&(K|=128),void 0!==this.password&&(K|=64),oe[X++]=K,X=I(this.keepAliveInterval,oe,X)}switch(void 0!==this.messageIdentifier&&(X=I(this.messageIdentifier,oe,X)),this.type){case r_CONNECT:X=M(this.clientId,D(this.clientId),oe,X),void 0!==this.willMessage&&(X=M(this.willMessage.destinationName,D(this.willMessage.destinationName),oe,X),X=I(U.byteLength,oe,X),oe.set(U,X),X+=U.byteLength),void 0!==this.userName&&(X=M(this.userName,D(this.userName),oe,X)),void 0!==this.password&&(X=M(this.password,D(this.password),oe,X));break;case r_PUBLISH:oe.set(ae,X);break;case r_SUBSCRIBE:for(z=0;z<this.topics.length;z++)X=M(this.topics[z],T[z],oe,X),oe[X++]=this.requestedQos[z];break;case r_UNSUBSCRIBE:for(z=0;z<this.topics.length;z++)X=M(this.topics[z],T[z],oe,X)}return he};var H=function(_,l){this._client=_,this._keepAliveInterval=1e3*l,this.isReset=!1;var T=new y(r_PINGREQ).encode(),B=function(z){return function(){return U.apply(z)}},U=function(){this.isReset?(this.isReset=!1,this._client._trace("Pinger.doPing","send PINGREQ"),this._client.socket.send(T),this.timeout=setTimeout(B(this),this._keepAliveInterval)):(this._client._trace("Pinger.doPing","Timed out"),this._client._disconnected(u.PING_TIMEOUT.code,i(u.PING_TIMEOUT)))};this.reset=function(){this.isReset=!0,clearTimeout(this.timeout),this._keepAliveInterval>0&&(this.timeout=setTimeout(B(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},L=function(_,l,T,B){var z,ae,pe;l||(l=30),this.timeout=setTimeout((z=T,ae=_,pe=B,function(){return z.apply(ae,pe)}),1e3*l),this.cancel=function(){clearTimeout(this.timeout)}},g=function(_,l,T,B,U){if(!("WebSocket"in t)||null===t.WebSocket)throw new Error(i(u.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in t)||null===t.ArrayBuffer)throw new Error(i(u.UNSUPPORTED,["ArrayBuffer"]));for(var z in this._trace("Paho.Client",_,l,T,B,U),this.host=l,this.port=T,this.path=B,this.uri=_,this.clientId=U,this._wsuri=null,this._localKey=l+":"+T+("/mqtt"!=B?":"+B:"")+":"+U+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,d)(0===z.indexOf("Sent:"+this._localKey)||0===z.indexOf("Received:"+this._localKey))&&this.restore(z)};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(i(u.INVALID_STATE,["already connected"]));if(this.socket)throw new Error(i(u.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(i(u.INVALID_STATE,["not connected"]));var T=new y(r_SUBSCRIBE);T.topics=[_],T.requestedQos=void 0!==l.qos?[l.qos]:[0],l.onSuccess&&(T.onSuccess=function(B){l.onSuccess({invocationContext:l.invocationContext,grantedQos:B})}),l.onFailure&&(T.onFailure=function(B){l.onFailure({invocationContext:l.invocationContext,errorCode:B,errorMessage:i(B)})}),l.timeout&&(T.timeOut=new L(this,l.timeout,l.onFailure,[{invocationContext:l.invocationContext,errorCode:u.SUBSCRIBE_TIMEOUT.code,errorMessage:i(u.SUBSCRIBE_TIMEOUT)}])),this._requires_ack(T),this._schedule_message(T)},g.prototype.unsubscribe=function(_,l){if(this._trace("Client.unsubscribe",_,l),!this.connected)throw new Error(i(u.INVALID_STATE,["not connected"]));var T=new y(r_UNSUBSCRIBE);T.topics=[_],l.onSuccess&&(T.callback=function(){l.onSuccess({invocationContext:l.invocationContext})}),l.timeout&&(T.timeOut=new L(this,l.timeout,l.onFailure,[{invocationContext:l.invocationContext,errorCode:u.UNSUBSCRIBE_TIMEOUT.code,errorMessage:i(u.UNSUBSCRIBE_TIMEOUT)}])),this._requires_ack(T),this._schedule_message(T)},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(i(u.INVALID_STATE,["not connected"]));if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw new Error(i(u.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(i(u.INVALID_STATE,["not connecting or connected"]));var _=new y(r_DISCONNECT);this._notify_msg_sent[_]=a(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=a(this._on_socket_open,this),this.socket.onmessage=a(this._on_socket_message,this),this.socket.onerror=a(this._on_socket_error,this),this.socket.onclose=a(this._on_socket_close,this),this.sendPinger=new H(this,this.connectOptions.keepAliveInterval),this.receivePinger=new H(this,this.connectOptions.keepAliveInterval),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._connectTimeout=new L(this,this.connectOptions.timeout,this._disconnected,[u.CONNECT_TIMEOUT.code,i(u.CONNECT_TIMEOUT)])},g.prototype._schedule_message=function(_){this._msg_queue.unshift(_),this.connected&&this._process_queue()},g.prototype.store=function(_,l){var T={type:l.type,messageIdentifier:l.messageIdentifier,version:1};if(l.type!==r_PUBLISH)throw Error(i(u.INVALID_STORED_DATA,[_+this._localKey+l.messageIdentifier,T]));l.pubRecReceived&&(T.pubRecReceived=!0),T.payloadMessage={};for(var B="",U=l.payloadMessage.payloadBytes,z=0;z<U.length;z++)U[z]<=15?B=B+"0"+U[z].toString(16):B+=U[z].toString(16);T.payloadMessage.payloadHex=B,T.payloadMessage.qos=l.payloadMessage.qos,T.payloadMessage.destinationName=l.payloadMessage.destinationName,l.payloadMessage.duplicate&&(T.payloadMessage.duplicate=!0),l.payloadMessage.retained&&(T.payloadMessage.retained=!0),0===_.indexOf("Sent:")&&(void 0===l.sequence&&(l.sequence=++this._sequence),T.sequence=l.sequence),d.setItem(_+this._localKey+l.messageIdentifier,JSON.stringify(T))},g.prototype.restore=function(_){var l=d.getItem(_),T=JSON.parse(l),B=new y(T.type,T);if(T.type!==r_PUBLISH)throw Error(i(u.INVALID_STORED_DATA,[_,l]));for(var U=T.payloadMessage.payloadHex,z=new ArrayBuffer(U.length/2),ae=new Uint8Array(z),pe=0;U.length>=2;){var X=parseInt(U.substring(0,2),16);U=U.substring(2,U.length),ae[pe++]=X}var he=new p.Message(ae);he.qos=T.payloadMessage.qos,he.destinationName=T.payloadMessage.destinationName,T.payloadMessage.duplicate&&(he.duplicate=!0),T.payloadMessage.retained&&(he.retained=!0),B.payloadMessage=he,0===_.indexOf("Sent:"+this._localKey)?(B.payloadMessage.duplicate=!0,this._sentMessages[B.messageIdentifier]=B):0===_.indexOf("Received:"+this._localKey)&&(this._receivedMessages[B.messageIdentifier]=B)},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),T=0;T<l.length;T+=1)this._handleMessage(l[T])},g.prototype._deframeMessages=function(_){var l=new Uint8Array(_),T=[];if(this.receiveBuffer){var B=new Uint8Array(this.receiveBuffer.length+l.length);B.set(this.receiveBuffer),B.set(l,this.receiveBuffer.length),l=B,delete this.receiveBuffer}try{for(var U=0;U<l.length;){var z=m(l,U),ae=z[0];if(U=z[1],null===ae)break;T.push(ae)}U<l.length&&(this.receiveBuffer=l.subarray(U))}catch(X){var pe="undefined"==X.hasOwnProperty("stack")?X.stack.toString():"No Error Stack Available";return void this._disconnected(u.INTERNAL_ERROR.code,i(u.INTERNAL_ERROR,[X.message,pe]))}return T},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+(K=this._sentMessages[l]).messageIdentifier);for(var l in this._sentMessages={},this._receivedMessages)d.removeItem("Received:"+this._localKey+(he=this._receivedMessages[l]).messageIdentifier);this._receivedMessages={}}if(0!==_.returnCode){this._disconnected(u.CONNACK_RETURNCODE.code,i(u.CONNACK_RETURNCODE,[_.returnCode,e[_.returnCode]]));break}this.connected=!0,this.connectOptions.uris&&(this.hostIndex=this.connectOptions.uris.length);var U=[];for(var T in this._sentMessages)this._sentMessages.hasOwnProperty(T)&&U.push(this._sentMessages[T]);if(this._buffered_msg_queue.length>0)for(var B=null;B=this._buffered_msg_queue.pop();)U.push(B),this.onMessageDelivered&&(this._notify_msg_sent[B]=this.onMessageDelivered(B.payloadMessage));U=U.sort(function(ne,$){return ne.sequence-$.sequence});for(var z=0,ae=U.length;z<ae;z++)if((K=U[z]).type==r_PUBLISH&&K.pubRecReceived){var pe=new y(r_PUBREL,{messageIdentifier:K.messageIdentifier});this._schedule_message(pe)}else this._schedule_message(K);this.connectOptions.onSuccess&&this.connectOptions.onSuccess({invocationContext:this.connectOptions.invocationContext});var X=!1;this._reconnecting&&(X=!0,this._reconnectInterval=1,this._reconnecting=!1),this._connected(X,this._wsuri),this._process_queue();break;case r_PUBLISH:this._receivePublish(_);break;case r_PUBACK:(K=this._sentMessages[_.messageIdentifier])&&(delete this._sentMessages[_.messageIdentifier],d.removeItem("Sent:"+this._localKey+_.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(K.payloadMessage));break;case r_PUBREC:(K=this._sentMessages[_.messageIdentifier])&&(K.pubRecReceived=!0,pe=new y(r_PUBREL,{messageIdentifier:_.messageIdentifier}),this.store("Sent:",K),this._schedule_message(pe));break;case r_PUBREL:var he=this._receivedMessages[_.messageIdentifier];d.removeItem("Received:"+this._localKey+_.messageIdentifier),he&&(this._receiveMessage(he),delete this._receivedMessages[_.messageIdentifier]);var oe=new y(r_PUBCOMP,{messageIdentifier:_.messageIdentifier});this._schedule_message(oe);break;case r_PUBCOMP:var K=this._sentMessages[_.messageIdentifier];delete this._sentMessages[_.messageIdentifier],d.removeItem("Sent:"+this._localKey+_.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(K.payloadMessage);break;case r_SUBACK:(K=this._sentMessages[_.messageIdentifier])&&(K.timeOut&&K.timeOut.cancel(),128===_.returnCode[0]?K.onFailure&&K.onFailure(_.returnCode):K.onSuccess&&K.onSuccess(_.returnCode),delete this._sentMessages[_.messageIdentifier]);break;case r_UNSUBACK:(K=this._sentMessages[_.messageIdentifier])&&(K.timeOut&&K.timeOut.cancel(),K.callback&&K.callback(),delete this._sentMessages[_.messageIdentifier]);break;case r_PINGRESP:this.sendPinger.reset();break;default:this._disconnected(u.INVALID_MQTT_MESSAGE_TYPE.code,i(u.INVALID_MQTT_MESSAGE_TYPE,[_.type]))}}catch(ne){var Y="undefined"==ne.hasOwnProperty("stack")?ne.stack.toString():"No Error Stack Available";return void this._disconnected(u.INTERNAL_ERROR.code,i(u.INTERNAL_ERROR,[ne.message,Y]))}},g.prototype._on_socket_error=function(_){this._reconnecting||this._disconnected(u.SOCKET_ERROR.code,i(u.SOCKET_ERROR,[_.data]))},g.prototype._on_socket_close=function(){this._reconnecting||this._disconnected(u.SOCKET_CLOSE.code,i(u.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 T=new y(r_PUBREC,{messageIdentifier:_.messageIdentifier});this._schedule_message(T);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===_&&(_=u.OK.code,l=i(u.OK)),this.connected){if(this.connected=!1,this.onConnectionLost&&this.onConnectionLost({errorCode:_,errorMessage:l,reconnect:this.connectOptions.reconnect,uri:this._wsuri}),_!==u.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 T=_.join("");this.traceFunction({severity:"Debug",message:T})}if(null!==this._traceBuffer){l=0;for(var B=arguments.length;l<B;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 T={};for(var B in _)_.hasOwnProperty(B)&&(T[B]=B==l?"******":_[B]);return T};var c=function(_){var l;if(!("string"==typeof _||_ instanceof ArrayBuffer||ArrayBuffer.isView(_)&&!(_ instanceof DataView)))throw i(u.INVALID_ARGUMENT,[_,"newPayload"]);l=_;var T,B=0,U=!1,z=!1;Object.defineProperties(this,{payloadString:{enumerable:!0,get:function(){return"string"==typeof l?l:Q(l,0,l.length)}},payloadBytes:{enumerable:!0,get:function(){if("string"==typeof l){var ae=new ArrayBuffer(D(l)),pe=new Uint8Array(ae);return W(l,pe,0),pe}return l}},destinationName:{enumerable:!0,get:function(){return T},set:function(ae){if("string"!=typeof ae)throw new Error(i(u.INVALID_ARGUMENT,[ae,"newDestinationName"]));T=ae}},qos:{enumerable:!0,get:function(){return B},set:function(ae){if(0!==ae&&1!==ae&&2!==ae)throw new Error("Invalid argument:"+ae);B=ae}},retained:{enumerable:!0,get:function(){return U},set:function(ae){if("boolean"!=typeof ae)throw new Error(i(u.INVALID_ARGUMENT,[ae,"newRetained"]));U=ae}},topic:{enumerable:!0,get:function(){return T},set:function(ae){T=ae}},duplicate:{enumerable:!0,get:function(){return z},set:function(ae){z=ae}}})};return{Client:function(_,l,T,B){var U;if("string"!=typeof _)throw new Error(i(u.INVALID_TYPE,[typeof _,"host"]));if(2==arguments.length){B=l;var z=(U=_).match(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/);if(!z)throw new Error(i(u.INVALID_ARGUMENT,[_,"host"]));_=z[4]||z[2],l=parseInt(z[7]),T=z[8]}else{if(3==arguments.length&&(B=T,T="/mqtt"),"number"!=typeof l||l<0)throw new Error(i(u.INVALID_TYPE,[typeof l,"port"]));if("string"!=typeof T)throw new Error(i(u.INVALID_TYPE,[typeof T,"path"]));var ae=-1!==_.indexOf(":")&&"["!==_.slice(0,1)&&"]"!==_.slice(-1);U="ws://"+(ae?"["+_+"]":_)+":"+l+T}for(var pe=0,X=0;X<B.length;X++){var he=B.charCodeAt(X);55296<=he&&he<=56319&&X++,pe++}if("string"!=typeof B||pe>65535)throw new Error(i(u.INVALID_ARGUMENT,[B,"clientId"]));var oe=new g(U,_,l,T,B);Object.defineProperties(this,{host:{get:function(){return _},set:function(){throw new Error(i(u.UNSUPPORTED_OPERATION))}},port:{get:function(){return l},set:function(){throw new Error(i(u.UNSUPPORTED_OPERATION))}},path:{get:function(){return T},set:function(){throw new Error(i(u.UNSUPPORTED_OPERATION))}},uri:{get:function(){return U},set:function(){throw new Error(i(u.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return oe.clientId},set:function(){throw new Error(i(u.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return oe.onConnected},set:function(K){if("function"!=typeof K)throw new Error(i(u.INVALID_TYPE,[typeof K,"onConnected"]));oe.onConnected=K}},disconnectedPublishing:{get:function(){return oe.disconnectedPublishing},set:function(K){oe.disconnectedPublishing=K}},disconnectedBufferSize:{get:function(){return oe.disconnectedBufferSize},set:function(K){oe.disconnectedBufferSize=K}},onConnectionLost:{get:function(){return oe.onConnectionLost},set:function(K){if("function"!=typeof K)throw new Error(i(u.INVALID_TYPE,[typeof K,"onConnectionLost"]));oe.onConnectionLost=K}},onMessageDelivered:{get:function(){return oe.onMessageDelivered},set:function(K){if("function"!=typeof K)throw new Error(i(u.INVALID_TYPE,[typeof K,"onMessageDelivered"]));oe.onMessageDelivered=K}},onMessageArrived:{get:function(){return oe.onMessageArrived},set:function(K){if("function"!=typeof K)throw new Error(i(u.INVALID_TYPE,[typeof K,"onMessageArrived"]));oe.onMessageArrived=K}},trace:{get:function(){return oe.traceFunction},set:function(K){if("function"!=typeof K)throw new Error(i(u.INVALID_TYPE,[typeof K,"onTrace"]));oe.traceFunction=K}}}),this.connect=function(K){if(n(K=K||{},{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===K.keepAliveInterval&&(K.keepAliveInterval=60),K.mqttVersion>4||K.mqttVersion<3)throw new Error(i(u.INVALID_ARGUMENT,[K.mqttVersion,"connectOptions.mqttVersion"]));if(void 0===K.mqttVersion?(K.mqttVersionExplicit=!1,K.mqttVersion=4):K.mqttVersionExplicit=!0,void 0!==K.password&&void 0===K.userName)throw new Error(i(u.INVALID_ARGUMENT,[K.password,"connectOptions.password"]));if(K.willMessage){if(!(K.willMessage instanceof c))throw new Error(i(u.INVALID_TYPE,[K.willMessage,"connectOptions.willMessage"]));if(K.willMessage.stringPayload=null,typeof K.willMessage.destinationName>"u")throw new Error(i(u.INVALID_TYPE,[typeof K.willMessage.destinationName,"connectOptions.willMessage.destinationName"]))}if(typeof K.cleanSession>"u"&&(K.cleanSession=!0),K.hosts){if(!(K.hosts instanceof Array))throw new Error(i(u.INVALID_ARGUMENT,[K.hosts,"connectOptions.hosts"]));if(K.hosts.length<1)throw new Error(i(u.INVALID_ARGUMENT,[K.hosts,"connectOptions.hosts"]));for(var Y=!1,ne=0;ne<K.hosts.length;ne++){if("string"!=typeof K.hosts[ne])throw new Error(i(u.INVALID_TYPE,[typeof K.hosts[ne],"connectOptions.hosts["+ne+"]"]));if(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/.test(K.hosts[ne])){if(0===ne)Y=!0;else if(!Y)throw new Error(i(u.INVALID_ARGUMENT,[K.hosts[ne],"connectOptions.hosts["+ne+"]"]))}else if(Y)throw new Error(i(u.INVALID_ARGUMENT,[K.hosts[ne],"connectOptions.hosts["+ne+"]"]))}if(Y)K.uris=K.hosts;else{if(!K.ports)throw new Error(i(u.INVALID_ARGUMENT,[K.ports,"connectOptions.ports"]));if(!(K.ports instanceof Array))throw new Error(i(u.INVALID_ARGUMENT,[K.ports,"connectOptions.ports"]));if(K.hosts.length!==K.ports.length)throw new Error(i(u.INVALID_ARGUMENT,[K.ports,"connectOptions.ports"]));for(K.uris=[],ne=0;ne<K.hosts.length;ne++){if("number"!=typeof K.ports[ne]||K.ports[ne]<0)throw new Error(i(u.INVALID_TYPE,[typeof K.ports[ne],"connectOptions.ports["+ne+"]"]));var $=K.hosts[ne],A=K.ports[ne],b=-1!==$.indexOf(":");K.uris.push(U="ws://"+(b?"["+$+"]":$)+":"+A+T)}}}oe.connect(K)},this.subscribe=function(K,Y){if("string"!=typeof K)throw new Error("Invalid argument:"+K);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(i(u.INVALID_ARGUMENT,[Y.qos,"subscribeOptions.qos"]));oe.subscribe(K,Y)},this.unsubscribe=function(K,Y){if("string"!=typeof K)throw new Error("Invalid argument:"+K);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.");oe.unsubscribe(K,Y)},this.send=function(K,Y,ne,$){var A;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(K instanceof c)&&"string"!=typeof K)throw new Error("Invalid argument:"+typeof K);if(typeof(A=K).destinationName>"u")throw new Error(i(u.INVALID_ARGUMENT,[A.destinationName,"Message.destinationName"]));oe.send(A)}else(A=new c(Y)).destinationName=K,arguments.length>=3&&(A.qos=ne),arguments.length>=4&&(A.retained=$),oe.send(A)},this.publish=function(K,Y,ne,$){var A;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(K instanceof c)&&"string"!=typeof K)throw new Error("Invalid argument:"+typeof K);if(typeof(A=K).destinationName>"u")throw new Error(i(u.INVALID_ARGUMENT,[A.destinationName,"Message.destinationName"]));oe.send(A)}else(A=new c(Y)).destinationName=K,arguments.length>=3&&(A.qos=ne),arguments.length>=4&&(A.retained=$),oe.send(A)},this.disconnect=function(){oe.disconnect()},this.getTraceLog=function(){return oe.getTraceLog()},this.startTrace=function(){oe.startTrace()},this.stopTrace=function(){oe.stopTrace()},this.isConnected=function(){return oe.connected}},Message:c}}(typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{}),p)},78987:(ce,k,p)=>{p(85487);var t=p(67047);typeof window<"u"&&(window.AWS=t),ce.exports=t,typeof self<"u"&&(self.AWS=t)},73967:(ce,k,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}),ce.exports=t.CognitoIdentity},42423:(ce,k,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}),ce.exports=t.STS},92747:ce=>{function k(p,t){if(!k.services.hasOwnProperty(p))throw new Error("InvalidService: Failed to load api for "+p);return k.services[p][t]}k.services={},ce.exports=k},51317:(ce,k,p)=>{var t=p(2815),w=p(85194),d=p(67901),r=p(68598);ce.exports={createHash:function(a){if("md5"===(a=a.toLowerCase()))return new w;if("sha256"===a)return new r;if("sha1"===a)return new d;throw new Error("Hash algorithm "+a+" is not supported in the browser SDK")},createHmac:function(a,u){if("md5"===(a=a.toLowerCase()))return new t(w,u);if("sha256"===a)return new t(r,u);if("sha1"===a)return new t(d,u);throw new Error("HMAC algorithm "+a+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},55125:(ce,k,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]"];ce.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:(ce,k,p)=>{var t=p(55125);function w(r,n){this.hash=new r,this.outer=new r;var a=function d(r,n){var a=t.convertToBuffer(n);if(a.byteLength>r.BLOCK_SIZE){var u=new r;u.update(a),a=u.digest()}var e=new Uint8Array(r.BLOCK_SIZE);return e.set(a),e}(r,n),u=new Uint8Array(r.BLOCK_SIZE);u.set(a);for(var e=0;e<r.BLOCK_SIZE;e++)a[e]^=54,u[e]^=92;for(this.hash.update(a),this.outer.update(u),e=0;e<a.byteLength;e++)a[e]=0}ce.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:(ce,k,p)=>{var t=p(55125),w=p(71899).lW;function a(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function u(y,m,I,M,P,C){return((m=(m+y&4294967295)+(M+C&4294967295)&4294967295)<<P|m>>>32-P)+I&4294967295}function e(y,m,I,M,P,C,D){return u(m&I|~m&M,y,m,P,C,D)}function i(y,m,I,M,P,C,D){return u(m&M|I&~M,y,m,P,C,D)}function s(y,m,I,M,P,C,D){return u(m^I^M,y,m,P,C,D)}function h(y,m,I,M,P,C,D){return u(I^(m|~M),y,m,P,C,D)}ce.exports=a,a.BLOCK_SIZE=64,a.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),I=0,M=m.byteLength;for(this.bytesHashed+=M;M>0;)this.buffer.setUint8(this.bufferLength++,m[I++]),M--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},a.prototype.digest=function(y){if(!this.finished){var m=this,I=m.buffer,M=m.bufferLength,C=8*m.bytesHashed;if(I.setUint8(this.bufferLength++,128),M%64>=56){for(var D=this.bufferLength;D<64;D++)I.setUint8(D,0);this.hashBuffer(),this.bufferLength=0}for(D=this.bufferLength;D<56;D++)I.setUint8(D,0);I.setUint32(56,C>>>0,!0),I.setUint32(60,Math.floor(C/4294967296),!0),this.hashBuffer(),this.finished=!0}var W=new DataView(new ArrayBuffer(16));for(D=0;D<4;D++)W.setUint32(4*D,this.state[D],!0);var Q=new w(W.buffer,W.byteOffset,W.byteLength);return y?Q.toString(y):Q},a.prototype.hashBuffer=function(){var m=this.buffer,I=this.state,M=I[0],P=I[1],C=I[2],D=I[3];M=e(M,P,C,D,m.getUint32(0,!0),7,3614090360),D=e(D,M,P,C,m.getUint32(4,!0),12,3905402710),C=e(C,D,M,P,m.getUint32(8,!0),17,606105819),P=e(P,C,D,M,m.getUint32(12,!0),22,3250441966),M=e(M,P,C,D,m.getUint32(16,!0),7,4118548399),D=e(D,M,P,C,m.getUint32(20,!0),12,1200080426),C=e(C,D,M,P,m.getUint32(24,!0),17,2821735955),P=e(P,C,D,M,m.getUint32(28,!0),22,4249261313),M=e(M,P,C,D,m.getUint32(32,!0),7,1770035416),D=e(D,M,P,C,m.getUint32(36,!0),12,2336552879),C=e(C,D,M,P,m.getUint32(40,!0),17,4294925233),P=e(P,C,D,M,m.getUint32(44,!0),22,2304563134),M=e(M,P,C,D,m.getUint32(48,!0),7,1804603682),D=e(D,M,P,C,m.getUint32(52,!0),12,4254626195),C=e(C,D,M,P,m.getUint32(56,!0),17,2792965006),M=i(M,P=e(P,C,D,M,m.getUint32(60,!0),22,1236535329),C,D,m.getUint32(4,!0),5,4129170786),D=i(D,M,P,C,m.getUint32(24,!0),9,3225465664),C=i(C,D,M,P,m.getUint32(44,!0),14,643717713),P=i(P,C,D,M,m.getUint32(0,!0),20,3921069994),M=i(M,P,C,D,m.getUint32(20,!0),5,3593408605),D=i(D,M,P,C,m.getUint32(40,!0),9,38016083),C=i(C,D,M,P,m.getUint32(60,!0),14,3634488961),P=i(P,C,D,M,m.getUint32(16,!0),20,3889429448),M=i(M,P,C,D,m.getUint32(36,!0),5,568446438),D=i(D,M,P,C,m.getUint32(56,!0),9,3275163606),C=i(C,D,M,P,m.getUint32(12,!0),14,4107603335),P=i(P,C,D,M,m.getUint32(32,!0),20,1163531501),M=i(M,P,C,D,m.getUint32(52,!0),5,2850285829),D=i(D,M,P,C,m.getUint32(8,!0),9,4243563512),C=i(C,D,M,P,m.getUint32(28,!0),14,1735328473),M=s(M,P=i(P,C,D,M,m.getUint32(48,!0),20,2368359562),C,D,m.getUint32(20,!0),4,4294588738),D=s(D,M,P,C,m.getUint32(32,!0),11,2272392833),C=s(C,D,M,P,m.getUint32(44,!0),16,1839030562),P=s(P,C,D,M,m.getUint32(56,!0),23,4259657740),M=s(M,P,C,D,m.getUint32(4,!0),4,2763975236),D=s(D,M,P,C,m.getUint32(16,!0),11,1272893353),C=s(C,D,M,P,m.getUint32(28,!0),16,4139469664),P=s(P,C,D,M,m.getUint32(40,!0),23,3200236656),M=s(M,P,C,D,m.getUint32(52,!0),4,681279174),D=s(D,M,P,C,m.getUint32(0,!0),11,3936430074),C=s(C,D,M,P,m.getUint32(12,!0),16,3572445317),P=s(P,C,D,M,m.getUint32(24,!0),23,76029189),M=s(M,P,C,D,m.getUint32(36,!0),4,3654602809),D=s(D,M,P,C,m.getUint32(48,!0),11,3873151461),C=s(C,D,M,P,m.getUint32(60,!0),16,530742520),M=h(M,P=s(P,C,D,M,m.getUint32(8,!0),23,3299628645),C,D,m.getUint32(0,!0),6,4096336452),D=h(D,M,P,C,m.getUint32(28,!0),10,1126891415),C=h(C,D,M,P,m.getUint32(56,!0),15,2878612391),P=h(P,C,D,M,m.getUint32(20,!0),21,4237533241),M=h(M,P,C,D,m.getUint32(48,!0),6,1700485571),D=h(D,M,P,C,m.getUint32(12,!0),10,2399980690),C=h(C,D,M,P,m.getUint32(40,!0),15,4293915773),P=h(P,C,D,M,m.getUint32(4,!0),21,2240044497),M=h(M,P,C,D,m.getUint32(32,!0),6,1873313359),D=h(D,M,P,C,m.getUint32(60,!0),10,4264355552),C=h(C,D,M,P,m.getUint32(24,!0),15,2734768916),P=h(P,C,D,M,m.getUint32(52,!0),21,1309151649),M=h(M,P,C,D,m.getUint32(16,!0),6,4149444226),D=h(D,M,P,C,m.getUint32(44,!0),10,3174756917),C=h(C,D,M,P,m.getUint32(8,!0),15,718787259),P=h(P,C,D,M,m.getUint32(36,!0),21,3951481745),I[0]=M+I[0]&4294967295,I[1]=P+I[1]&4294967295,I[2]=C+I[2]&4294967295,I[3]=D+I[3]&4294967295}},67901:(ce,k,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),ce.exports=e,e.BLOCK_SIZE=64,e.prototype.update=function(i){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(w.isEmptyData(i))return this;var s=(i=w.convertToBuffer(i)).length;this.totalLength+=8*s;for(var h=0;h<s;h++)this.write(i[h]);return this},e.prototype.write=function(s){this.block[this.offset]|=(255&s)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},e.prototype.digest=function(i){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 s=24;s>=0;s-=8)this.write(this.totalLength>>s);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),i?h.toString(i):h},e.prototype.processBlock=function(){for(var s=16;s<80;s++){var h=this.block[s-3]^this.block[s-8]^this.block[s-14]^this.block[s-16];this.block[s]=h<<1|h>>>31}var C,D,y=this.h0,m=this.h1,I=this.h2,M=this.h3,P=this.h4;for(s=0;s<80;s++){s<20?(C=M^m&(I^M),D=1518500249):s<40?(C=m^I^M,D=1859775393):s<60?(C=m&I|M&(m|I),D=2400959708):(C=m^I^M,D=3395469782);var W=(y<<5|y>>>27)+C+P+D+(0|this.block[s]);P=M,M=I,I=m<<30|m>>>2,m=y,y=W}for(this.h0=this.h0+y|0,this.h1=this.h1+m|0,this.h2=this.h2+I|0,this.h3=this.h3+M|0,this.h4=this.h4+P|0,this.offset=0,s=0;s<16;s++)this.block[s]=0}},68598:(ce,k,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]),u=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}ce.exports=e,e.BLOCK_SIZE=64,e.prototype.update=function(i){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(w.isEmptyData(i))return this;var s=0,h=(i=w.convertToBuffer(i)).byteLength;if(this.bytesHashed+=h,8*this.bytesHashed>u)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;h>0;)this.buffer[this.bufferLength++]=i[s++],h--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},e.prototype.digest=function(i){if(!this.finished){var s=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(s/4294967296),!0),h.setUint32(60,s),this.hashBuffer(),this.finished=!0}var I=new t(32);for(m=0;m<8;m++)I[4*m]=this.state[m]>>>24&255,I[4*m+1]=this.state[m]>>>16&255,I[4*m+2]=this.state[m]>>>8&255,I[4*m+3]=this.state[m]>>>0&255;return i?I.toString(i):I},e.prototype.hashBuffer=function(){for(var s=this.buffer,h=this.state,y=h[0],m=h[1],I=h[2],M=h[3],P=h[4],C=h[5],D=h[6],W=h[7],Q=0;Q<64;Q++){if(Q<16)this.temp[Q]=(255&s[4*Q])<<24|(255&s[4*Q+1])<<16|(255&s[4*Q+2])<<8|255&s[4*Q+3];else{var H=this.temp[Q-2];this.temp[Q]=(((H>>>17|H<<15)^(H>>>19|H<<13)^H>>>10)+this.temp[Q-7]|0)+((((H=this.temp[Q-15])>>>7|H<<25)^(H>>>18|H<<14)^H>>>3)+this.temp[Q-16]|0)}var R=(((P>>>6|P<<26)^(P>>>11|P<<21)^(P>>>25|P<<7))+(P&C^~P&D)|0)+(W+(n[Q]+this.temp[Q]|0)|0)|0,c=((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+(y&m^y&I^m&I)|0;W=D,D=C,C=P,P=M+R|0,M=I,I=m,m=y,y=R+c|0}h[0]+=y,h[1]+=m,h[2]+=I,h[3]+=M,h[4]+=P,h[5]+=C,h[6]+=D,h[7]+=W}},85487:(ce,k,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(ce.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:(ce,k,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,a){this.set(n,r[n],a)})},getCredentials:function(r){var n=this;function a(s){r(s,s?null:n.credentials)}function u(s,h){return new t.util.error(h||new Error,{code:"CredentialsError",message:s,name:"CredentialsError"})}n.credentials?"function"==typeof n.credentials.get?function e(){n.credentials.get(function(s){s&&(s=u("Could not load credentials from "+n.credentials.constructor.name,s)),a(s)})}():function i(){var s=null;(!n.credentials.accessKeyId||!n.credentials.secretAccessKey)&&(s=u("Missing credentials")),a(s)}():n.credentialProvider?n.credentialProvider.resolve(function(s,h){s&&(s=u("Could not load credentials from any providers",s)),n.credentials=h,a(s)}):a(u("No credentials to load"))},update:function(r,n){n=n||!1,r=this.extractCredentials(r),t.util.each.call(this,r,function(a,u){(n||Object.prototype.hasOwnProperty.call(this.keys,a)||t.Service.hasService(a))&&this.set(a,u)})},loadFromPath:function(r){this.clear();var n=JSON.parse(t.util.readFileSync(r)),a=new t.FileSystemCredentials(r),u=new t.CredentialProviderChain;return u.providers.unshift(a),u.resolve(function(e,i){if(e)throw e;n.credentials=i}),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,a){void 0===n?(void 0===a&&(a=this.keys[r]),this[r]="function"==typeof a?a.call(this):a):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:(ce,k,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)}}ce.exports=function d(r,n){var a;if((r=r||{})[n.clientConfig]&&(a=w(r[n.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+n.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+r[n.clientConfig]+'".'}))||!t.util.isNode())return a;if(Object.prototype.hasOwnProperty.call(process.env,n.env)&&(a=w(process.env[n.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+n.env+' environmental variable. Expect "legacy" or "regional". Got "'+process.env[n.env]+'".'})))return a;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)&&(a=w(e[n.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+n.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+e[n.sharedConfig]+'".'})),a}},67047:(ce,k,p)=>{var t={util:p(97340)};({}).toString(),ce.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:(ce,k,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(u){t.util.arrayEach(n.refreshCallbacks,function(e){r?e(u):t.util.defer(function(){e(u)})}),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:(ce,k,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 a=t.util.merge({params:n,credentials:r.masterCredentials||t.config.credentials},r.stsConfig||{});this.service=new w(a)},refresh:function(r){this.coalesceRefresh(r||t.util.fn.callback)},load:function(r){var n=this,a=n.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(u,e){var i={};u?r(u):(e&&(i.TokenCode=e),n.service[a](i,function(s,h){s||n.service.credentialsFrom(h,n),r(s)}))})},getTokenCode:function(r){var n=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(a,u){if(a){var e=a;return a instanceof Error&&(e=a.message),void r(t.util.error(new Error("Error fetching MFA token: "+e),{code:n.errorCode}))}r(null,u)}):r(null)}})},39125:(ce,k,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,a){t.Credentials.call(this),this.expired=!0,this.params=n,this.data=null,this._identityId=null,this._clientConfig=t.util.copy(a||{}),this.loadCachedId();var u=this;Object.defineProperty(this,"identityId",{get:function(){return u.loadCachedId(),u._identityId||u.params.IdentityId},set:function(e){u._identityId=e}})},refresh:function(n){this.coalesceRefresh(n||t.util.fn.callback)},load:function(n){var a=this;a.createClients(),a.data=null,a._identityId=null,a.getId(function(u){u?(a.clearIdOnNotAuthorized(u),n(u)):a.params.RoleArn?a.getCredentialsFromSTS(n):a.getCredentialsForIdentity(n)})},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var n=this.params.IdentityPoolId,a=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+n+a],delete this.storage[this.localStorageKey.providers+n+a]},clearIdOnNotAuthorized:function(n){"NotAuthorizedException"==n.code&&this.clearCachedId()},getId:function(n){var a=this;if("string"==typeof a.params.IdentityId)return n(null,a.params.IdentityId);a.cognito.getId(function(u,e){!u&&e.IdentityId?(a.params.IdentityId=e.IdentityId,n(null,e.IdentityId)):n(u)})},loadCredentials:function(n,a){!n||!a||(a.expired=!1,a.accessKeyId=n.Credentials.AccessKeyId,a.secretAccessKey=n.Credentials.SecretKey,a.sessionToken=n.Credentials.SessionToken,a.expireTime=n.Credentials.Expiration)},getCredentialsForIdentity:function(n){var a=this;a.cognito.getCredentialsForIdentity(function(u,e){u?a.clearIdOnNotAuthorized(u):(a.cacheId(e),a.data=e,a.loadCredentials(a.data,a)),n(u)})},getCredentialsFromSTS:function(n){var a=this;a.cognito.getOpenIdToken(function(u,e){u?(a.clearIdOnNotAuthorized(u),n(u)):(a.cacheId(e),a.params.WebIdentityToken=e.Token,a.webIdentityCredentials.refresh(function(i){i||(a.data=a.webIdentityCredentials.data,a.sts.credentialsFrom(a.data,a)),n(i)}))})},loadCachedId:function(){var n=this;if(t.util.isBrowser()&&!n.params.IdentityId){var a=n.getStorage("id");if(a&&n.params.Logins){var u=Object.keys(n.params.Logins);0!==(n.getStorage("providers")||"").split(",").filter(function(s){return-1!==u.indexOf(s)}).length&&(n.params.IdentityId=a)}else a&&(n.params.IdentityId=a)}},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,a){try{this.storage[this.localStorageKey[n]+this.params.IdentityPoolId+(this.params.LoginId||"")]=a}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:(ce,k,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(i,s){if(!i&&s||n===a.length)return t.util.arrayEach(r.resolveCallbacks,function(y){y(i,s)}),void(r.resolveCallbacks.length=0);var h=a[n++];(s="function"==typeof h?h.call():h).get?s.get(function(y){e(y,y?null:s)}):e(null,s)};var n=0,a=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:(ce,k,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(a,u){a||n.service.credentialsFrom(u,n),r(a)})},createClients:function(){this.service=this.service||new w({params:this.params})}})},17706:(ce,k,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(u,e){u||n.service.credentialsFrom(e,n),r(u)})})},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:(ce,k,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(a,u){n.data=null,a||(n.data=u,n.service.credentialsFrom(u,n)),r(a)})},createClients:function(){if(!this.service){var d=t.util.merge({},this._clientConfig);d.params=this.params,this.service=new w(d)}}})},66017:(ce,k,p)=>{var t=p(67047),w=p(97340),d=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function r(P){var C=P.service,D=C.api||{},Q={};return C.config.region&&(Q.region=C.config.region),D.serviceId&&(Q.serviceId=D.serviceId),C.config.credentials.accessKeyId&&(Q.accessKeyId=C.config.credentials.accessKeyId),Q}function n(P,C,D){!D||null==C||"structure"===D.type&&D.required&&D.required.length>0&&w.arrayEach(D.required,function(W){var Q=D.members[W];!0===Q.endpointDiscoveryId?P[Q.isLocationName?Q.name:W]=String(C[W]):n(P,C[W],Q)})}function a(P,C){var D={};return n(D,P.params,C),D}function u(P){var C=P.service,D=C.api,W=D.operations?D.operations[P.operation]:void 0,H=a(P,W?W.input:void 0),L=r(P);Object.keys(H).length>0&&(L=w.update(L,H),W&&(L.operation=W.name));var g=t.endpointCache.get(L);if(!g||1!==g.length||""!==g[0].Address)if(g&&g.length>0)P.httpRequest.updateEndpoint(g[0].Address);else{var R=C.makeRequest(D.endpointOperation,{Operation:W.name,Identifiers:H});s(R),R.removeListener("validate",t.EventListeners.Core.VALIDATE_PARAMETERS),R.removeListener("retry",t.EventListeners.Core.RETRY_CHECK),t.endpointCache.put(L,[{Address:"",CachePeriodInMinutes:1}]),R.send(function(c,_){_&&_.Endpoints?t.endpointCache.put(L,_.Endpoints):c&&t.endpointCache.put(L,[{Address:"",CachePeriodInMinutes:1}])})}}var e={};function i(P,C){var D=P.service,W=D.api,Q=W.operations?W.operations[P.operation]:void 0,L=a(P,Q?Q.input:void 0),g=r(P);Object.keys(L).length>0&&(g=w.update(g,L),Q&&(g.operation=Q.name));var R=t.EndpointCache.getKeyString(g),c=t.endpointCache.get(R);if(c&&1===c.length&&""===c[0].Address)return e[R]||(e[R]=[]),void e[R].push({request:P,callback:C});if(c&&c.length>0)P.httpRequest.updateEndpoint(c[0].Address),C();else{var _=D.makeRequest(W.endpointOperation,{Operation:Q.name,Identifiers:L});_.removeListener("validate",t.EventListeners.Core.VALIDATE_PARAMETERS),s(_),t.endpointCache.put(R,[{Address:"",CachePeriodInMinutes:60}]),_.send(function(l,T){l?(P.response.error=w.error(l,{retryable:!1}),t.endpointCache.remove(g),e[R]&&(w.arrayEach(e[R],function(U){U.request.response.error=w.error(l,{retryable:!1}),U.callback()}),delete e[R])):T&&(t.endpointCache.put(R,T.Endpoints),P.httpRequest.updateEndpoint(T.Endpoints[0].Address),e[R])&&(w.arrayEach(e[R],function(z){z.request.httpRequest.updateEndpoint(T.Endpoints[0].Address),z.callback()}),delete e[R]),C()})}}function s(P){var D=P.service.api.apiVersion;D&&!P.httpRequest.headers["x-amz-api-version"]&&(P.httpRequest.headers["x-amz-api-version"]=D)}function h(P){var C=P.error;if(C&&("InvalidEndpointException"===C.code||421===P.httpResponse.statusCode)){var W=P.request,Q=W.service.api.operations||{},L=a(W,Q[W.operation]?Q[W.operation].input:void 0),g=r(W);Object.keys(L).length>0&&(g=w.update(g,L),Q[W.operation]&&(g.operation=Q[W.operation].name)),t.endpointCache.remove(g)}}function m(P){return["false","0"].indexOf(P)>=0}ce.exports={discoverEndpoint:function M(P,C){var D=P.service||{};if(function y(P){if(P._originalConfig&&P._originalConfig.endpoint&&!0===P._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[P.serviceIdentifier]||{}).endpoint||P._originalConfig&&P._originalConfig.endpoint)}(D)||P.isPresigned())return C();var Q=(D.api.operations||{})[P.operation],H=Q?Q.endpointDiscoveryRequired:"NULL",L=function I(P){var C=P.service||{};if(void 0!==C.config.endpointDiscoveryEnabled)return C.config.endpointDiscoveryEnabled;if(!w.isBrowser()){for(var D=0;D<d.length;D++){var W=d[D];if(Object.prototype.hasOwnProperty.call(process.env,W)){if(""===process.env[W]||void 0===process.env[W])throw w.error(new Error,{code:"ConfigurationException",message:"environmental variable "+W+" cannot be set to nothing"});return!m(process.env[W])}}var Q={};try{Q=t.util.iniLoader?t.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[t.util.sharedConfigFileEnv]}):{}}catch{}var H=Q[process.env.AWS_PROFILE||t.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(H,"endpoint_discovery_enabled")){if(void 0===H.endpoint_discovery_enabled)throw w.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!m(H.endpoint_discovery_enabled)}}}(P),g=D.api.hasRequiredEndpointDiscovery;switch((L||g)&&P.httpRequest.appendToUserAgent("endpoint-discovery"),H){case"OPTIONAL":(L||g)&&(u(P),P.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",h)),C();break;case"REQUIRED":if(!1===L){P.response.error=w.error(new Error,{code:"ConfigurationException",message:"Endpoint Discovery is disabled but "+D.api.className+"."+P.operation+"() requires it. Please check your configurations."}),C();break}P.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",h),i(P,C);break;default:C()}},requiredDiscoverEndpoint:i,optionalDiscoverEndpoint:u,marshallCustomIdentifiers:a,getCacheKey:r,invalidateCachedEndpoint:h}},56458:(ce,k,p)=>{var t=p(14413).eventMessageChunker,w=p(94260).parseEvent;ce.exports={createEventStream:function d(r,n,a){for(var u=t(r),e=[],i=0;i<u.length;i++)e.push(w(n,u[i],a));return e}}},14413:ce=>{ce.exports={eventMessageChunker:function k(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:(ce,k,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 a=0;a<8;a++)n[a]^=255;for(a=7;a>-1&&(n[a]++,0===n[a]);a--);}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 a=new Uint8Array(8),u=7,e=Math.abs(Math.round(n));u>-1&&e>0;u--,e/=256)a[u]=e;return n<0&&r(a),new d(a)},d.prototype.valueOf=function(){var n=this.bytes.slice(0),a=128&n[0];return a&&r(n),parseInt(n.toString("hex"),16)*(a?-1:1)},d.prototype.toString=function(){return String(this.valueOf())},ce.exports={Int64:d}},94260:(ce,k,p)=>{var t=p(84923).parseMessage;ce.exports={parseEvent:function w(r,n,a){var u=t(n),e=u.headers[":message-type"];if(e){if("error"===e.value)throw function d(r){var n=r.headers[":error-code"],a=r.headers[":error-message"],u=new Error(a.value||a);return u.code=u.name=n.value||n,u}(u);if("event"!==e.value)return}var i=u.headers[":event-type"],s=a.members[i.value];if(s){var h={},y=s.eventPayloadMemberName;if(y){var m=s.members[y];h[y]="binary"===m.type?u.body:r.parse(u.body.toString(),m)}for(var I=s.eventHeaderMemberNames,M=0;M<I.length;M++){var P=I[M];u.headers[P]&&(h[P]=s.members[P].toType(u.headers[P].value))}var C={};return C[i.value]=h,C}}}},84923:(ce,k,p)=>{var t=p(41034).Int64,w=p(85357).splitMessage,d="boolean";function y(I){for(var M={},P=0;P<I.length;){var C=I.readUInt8(P++),D=I.slice(P,P+C).toString();switch(P+=C,I.readUInt8(P++)){case 0:M[D]={type:d,value:!0};break;case 1:M[D]={type:d,value:!1};break;case 2:M[D]={type:"byte",value:I.readInt8(P++)};break;case 3:M[D]={type:"short",value:I.readInt16BE(P)},P+=2;break;case 4:M[D]={type:"integer",value:I.readInt32BE(P)},P+=4;break;case 5:M[D]={type:"long",value:new t(I.slice(P,P+8))},P+=8;break;case 6:var W=I.readUInt16BE(P);M[D]={type:"binary",value:I.slice(P+=2,P+W)},P+=W;break;case 7:var Q=I.readUInt16BE(P);M[D]={type:"string",value:I.slice(P+=2,P+Q).toString()},P+=Q;break;case 8:M[D]={type:"timestamp",value:new Date(new t(I.slice(P,P+8)).valueOf())},P+=8;break;case 9:var H=I.slice(P,P+16).toString("hex");P+=16,M[D]={type:"uuid",value:H.substr(0,8)+"-"+H.substr(8,4)+"-"+H.substr(12,4)+"-"+H.substr(16,4)+"-"+H.substr(20)};break;default:throw new Error("Unrecognized header type tag")}}return M}ce.exports={parseMessage:function m(I){var M=w(I);return{headers:y(M.headers),body:M.body}}}},85357:(ce,k,p)=>{var t=p(67047).util,w=t.buffer.toBuffer;ce.exports={splitMessage:function u(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 i=e.readUInt32BE(8);if(i!==t.crypto.crc32(e.slice(0,8)))throw new Error("The prelude checksum specified in the message ("+i+") does not match the calculated CRC32 checksum.");var s=e.readUInt32BE(e.length-4);if(s!==t.crypto.crc32(e.slice(0,e.length-4)))throw new Error("The message checksum did not match the expected value of "+s);var y=12+e.readUInt32BE(4);return{headers:e.slice(12,y),body:e.slice(y,e.length-4)}}}},52669:(ce,k,p)=>{var t=p(67047),w=p(51076),d=p(66017).discoverEndpoint;t.EventListeners={Core:{}},t.EventListeners={Core:(new w).addNamedListeners(function(n,a){a("VALIDATE_CREDENTIALS","validate",function(i,s){if(!i.service.api.signatureVersion&&!i.service.config.signatureVersion)return s();i.service.config.getCredentials(function(h){h&&(i.response.error=t.util.error(h,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),s()})}),n("VALIDATE_REGION","validate",function(i){if(!i.service.isGlobalEndpoint){var s=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);i.service.config.region?s.test(i.service.config.region)||(i.response.error=t.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):i.response.error=t.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}}),n("BUILD_IDEMPOTENCY_TOKENS","validate",function(i){if(i.service.api.operations){var s=i.service.api.operations[i.operation];if(s){var h=s.idempotentMembers;if(h.length){for(var y=t.util.copy(i.params),m=0,I=h.length;m<I;m++)y[h[m]]||(y[h[m]]=t.util.uuid.v4());i.params=y}}}}),n("VALIDATE_PARAMETERS","validate",function(i){if(i.service.api.operations){var s=i.service.api.operations[i.operation].input;new t.ParamValidator(i.service.config.paramValidation).validate(s,i.params)}}),n("COMPUTE_CHECKSUM","afterBuild",function(i){if(i.service.api.operations){var s=i.service.api.operations[i.operation];if(s){var h=i.httpRequest.body,y=h&&(t.util.Buffer.isBuffer(h)||"string"==typeof h),m=i.httpRequest.headers;if(s.httpChecksumRequired&&i.service.config.computeChecksums&&y&&!m["Content-MD5"]){var I=t.util.crypto.md5(h,"base64");m["Content-MD5"]=I}}}}),a("COMPUTE_SHA256","afterBuild",function(i,s){if(i.haltHandlersOnError(),i.service.api.operations){var h=i.service.api.operations[i.operation],y=h?h.authtype:"";if(!i.service.api.signatureVersion&&!y&&!i.service.config.signatureVersion)return s();if(i.service.getSignerClass(i)===t.Signers.V4){var m=i.httpRequest.body||"";if(y.indexOf("unsigned-body")>=0)return i.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",s();t.util.computeSha256(m,function(I,M){I?s(I):(i.httpRequest.headers["X-Amz-Content-Sha256"]=M,s())})}else s()}}),n("SET_CONTENT_LENGTH","afterBuild",function(i){var s=function r(n){if(!n.service.api.operations)return"";var a=n.service.api.operations[n.operation];return a?a.authtype:""}(i),h=t.util.getRequestPayloadShape(i);if(void 0===i.httpRequest.headers["Content-Length"])try{var y=t.util.string.byteLength(i.httpRequest.body);i.httpRequest.headers["Content-Length"]=y}catch(m){if(h&&h.isStreaming){if(h.requiresLength)throw m;if(s.indexOf("unsigned-body")>=0)return void(i.httpRequest.headers["Transfer-Encoding"]="chunked");throw m}throw m}}),n("SET_HTTP_HOST","afterBuild",function(i){i.httpRequest.headers.Host=i.httpRequest.endpoint.host}),n("SET_TRACE_ID","afterBuild",function(i){var s="X-Amzn-Trace-Id";if(t.util.isNode()&&!Object.hasOwnProperty.call(i.httpRequest.headers,s)){var m=process.env.AWS_LAMBDA_FUNCTION_NAME,I=process.env._X_AMZN_TRACE_ID;"string"==typeof m&&m.length>0&&"string"==typeof I&&I.length>0&&(i.httpRequest.headers[s]=I)}}),n("RESTART","restart",function(){var i=this.response.error;!i||!i.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)}),a("DISCOVER_ENDPOINT","sign",d,!0),a("SIGN","sign",function(i,s){var h=i.service,m=(i.service.api.operations||{})[i.operation];if(!(h.api.signatureVersion||m&&m.authtype||h.config.signatureVersion))return s();h.config.getCredentials(function(M,P){if(M)return i.response.error=M,s();try{var C=h.getSkewCorrectedDate(),W=new(h.getSignerClass(i))(i.httpRequest,h.getSigningName(i),{signatureCache:h.config.signatureCache,operation:m,signatureVersion:h.api.signatureVersion});W.setServiceClientId(h._clientId),delete i.httpRequest.headers.Authorization,delete i.httpRequest.headers.Date,delete i.httpRequest.headers["X-Amz-Date"],W.addAuthorization(P,C),i.signedAt=C}catch(Q){i.response.error=Q}s()})}),n("VALIDATE_RESPONSE","validateResponse",function(i){this.service.successfulResponse(i,this)?(i.data={},i.error=null):(i.data=null,i.error=t.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))}),n("ERROR","error",function(i,s){var h=s.request.service.api.errorCodeMapping;if(h&&i&&i.code){var y=h[i.code];y&&(s.error.code=y.code)}},!0),a("SEND","send",function(i,s){function h(P){i.httpResponse.stream=P;var C=i.request.httpRequest.stream,D=i.request.service,H=D.api.operations[i.request.operation]||{};P.on("headers",function(g,R,c){if(i.request.emit("httpHeaders",[g,R,i,c]),!i.httpResponse.streaming)if(2===t.HttpClient.streamsApiVersion){if(H.hasEventOutput&&D.successfulResponse(i))return i.request.emit("httpDone"),void s();P.on("readable",function(){var l=P.read();null!==l&&i.request.emit("httpData",[l,i])})}else P.on("data",function(l){i.request.emit("httpData",[l,i])})}),P.on("end",function(){if(!C||!C.didCallback){if(2===t.HttpClient.streamsApiVersion&&H.hasEventOutput&&D.successfulResponse(i))return;i.request.emit("httpDone"),s()}})}function m(P){"RequestAbortedError"!==P.code&&(P=t.util.error(P,{code:"TimeoutError"===P.code?P.code:"NetworkingError",region:i.request.httpRequest.region,hostname:i.request.httpRequest.endpoint.hostname,retryable:!0})),i.error=P,i.request.emit("httpError",[i.error,i],function(){s()})}function I(){var P=t.HttpClient.getInstance(),C=i.request.service.config.httpOptions||{};try{!function y(P){P.on("sendProgress",function(D){i.request.emit("httpUploadProgress",[D,i])}),P.on("receiveProgress",function(D){i.request.emit("httpDownloadProgress",[D,i])})}(P.handleRequest(i.request.httpRequest,C,h,m))}catch(W){m(W)}}i.httpResponse._abortCallback=s,i.error=null,i.data=null,(i.request.service.getSkewCorrectedDate()-this.signedAt)/1e3>=600?this.emit("sign",[this],function(P){P?s(P):I()}):I()}),n("HTTP_HEADERS","httpHeaders",function(i,s,h,y){h.httpResponse.statusCode=i,h.httpResponse.statusMessage=y,h.httpResponse.headers=s,h.httpResponse.body=t.util.buffer.toBuffer(""),h.httpResponse.buffers=[],h.httpResponse.numBytes=0;var m=s.date||s.Date,I=h.request.service;if(m){var M=Date.parse(m);I.config.correctClockSkew&&I.isClockSkewed(M)&&I.applyClockOffset(M)}}),n("HTTP_DATA","httpData",function(i,s){i&&(t.util.isNode()&&(s.httpResponse.numBytes+=i.length,s.request.emit("httpDownloadProgress",[{loaded:s.httpResponse.numBytes,total:s.httpResponse.headers["content-length"]},s])),s.httpResponse.buffers.push(t.util.buffer.toBuffer(i)))}),n("HTTP_DONE","httpDone",function(i){if(i.httpResponse.buffers&&i.httpResponse.buffers.length>0){var s=t.util.buffer.concat(i.httpResponse.buffers);i.httpResponse.body=s}delete i.httpResponse.numBytes,delete i.httpResponse.buffers}),n("FINALIZE_ERROR","retry",function(i){i.httpResponse.statusCode&&(i.error.statusCode=i.httpResponse.statusCode,void 0===i.error.retryable&&(i.error.retryable=this.service.retryableError(i.error,this)))}),n("INVALIDATE_CREDENTIALS","retry",function(i){if(i.error)switch(i.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":i.error.retryable=!0,i.request.service.config.credentials.expired=!0}}),n("EXPIRED_SIGNATURE","retry",function(i){var s=i.error;!s||"string"==typeof s.code&&"string"==typeof s.message&&s.code.match(/Signature/)&&s.message.match(/expired/)&&(i.error.retryable=!0)}),n("CLOCK_SKEWED","retry",function(i){!i.error||this.service.clockSkewError(i.error)&&this.service.config.correctClockSkew&&(i.error.retryable=!0)}),n("REDIRECT","retry",function(i){i.error&&i.error.statusCode>=300&&i.error.statusCode<400&&i.httpResponse.headers.location&&(this.httpRequest.endpoint=new t.Endpoint(i.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,i.error.redirect=!0,i.error.retryable=!0)}),n("RETRY_CHECK","retry",function(i){i.error&&(i.error.redirect&&i.redirectCount<i.maxRedirects?i.error.retryDelay=0:i.retryCount<i.maxRetries&&(i.error.retryDelay=this.service.retryDelays(i.retryCount,i.error)||0))}),a("RESET_RETRY_STATE","afterRetry",function(i,s){var h,y=!1;i.error&&(h=i.error.retryDelay||0,i.error.retryable&&i.retryCount<i.maxRetries?(i.retryCount++,y=!0):i.error.redirect&&i.redirectCount<i.maxRedirects&&(i.redirectCount++,y=!0)),y&&h>=0?(i.error=null,setTimeout(s,h)):s()})}),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(u){"NetworkingError"===u.code&&function e(s){return"ENOTFOUND"===s.errno||"number"==typeof s.errno&&"function"==typeof t.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(t.util.getSystemErrorName(s.errno)>=0)}(u)&&(this.response.error=t.util.error(new Error("Inaccessible host: `"+u.hostname+"' at port `"+u.port+"'. This service may not be available in the `"+u.region+"' region."),{code:"UnknownEndpoint",region:u.region,hostname:u.hostname,retryable:!0,originalError:u}))})}),Logger:(new w).addNamedListeners(function(n){n("LOG_REQUEST","complete",function(u){var e=u.request,i=e.service.config.logger;if(i){var y=function h(){var I=(u.request.service.getSkewCorrectedDate().getTime()-e.startTime.getTime())/1e3,M=!!i.isTTY,P=u.httpResponse.statusCode,C=e.params;e.service.api.operations&&e.service.api.operations[e.operation]&&e.service.api.operations[e.operation].input&&(C=s(e.service.api.operations[e.operation].input,e.params));var W=p(14999).inspect(C,!0,null),Q="";return M&&(Q+="\x1b[33m"),Q+="[AWS "+e.service.serviceIdentifier+" "+P,Q+=" "+I.toString()+"s "+u.retryCount+" retries]",M&&(Q+="\x1b[0;1m"),Q+=" "+t.util.string.lowerFirst(e.operation),Q+="("+W+")",M&&(Q+="\x1b[0m"),Q}();"function"==typeof i.log?i.log(y):"function"==typeof i.write&&i.write(y+"\n")}function s(m,I){if(!I)return I;if(m.isSensitive)return"***SensitiveInformation***";switch(m.type){case"structure":var M={};return t.util.each(I,function(D,W){M[D]=Object.prototype.hasOwnProperty.call(m.members,D)?s(m.members[D],W):W}),M;case"list":var P=[];return t.util.arrayEach(I,function(D,W){P.push(s(m.member,D))}),P;case"map":var C={};return t.util.each(I,function(D,W){C[D]=s(m.value,W)}),C;default:return I}}})}),Json:(new w).addNamedListeners(function(n){var a=p(88383);n("BUILD","build",a.buildRequest),n("EXTRACT_DATA","extractData",a.extractData),n("EXTRACT_ERROR","extractError",a.extractError)}),Rest:(new w).addNamedListeners(function(n){var a=p(98784);n("BUILD","build",a.buildRequest),n("EXTRACT_DATA","extractData",a.extractData),n("EXTRACT_ERROR","extractError",a.extractError)}),RestJson:(new w).addNamedListeners(function(n){var a=p(43825);n("BUILD","build",a.buildRequest),n("EXTRACT_DATA","extractData",a.extractData),n("EXTRACT_ERROR","extractError",a.extractError)}),RestXml:(new w).addNamedListeners(function(n){var a=p(10164);n("BUILD","build",a.buildRequest),n("EXTRACT_DATA","extractData",a.extractData),n("EXTRACT_ERROR","extractError",a.extractError)}),Query:(new w).addNamedListeners(function(n){var a=p(20340);n("BUILD","build",a.buildRequest),n("EXTRACT_DATA","extractData",a.extractData),n("EXTRACT_ERROR","extractError",a.extractError)})}},41798:(ce,k,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:(ce,k,p)=>{var t=p(67047),w=p(8520).EventEmitter;p(41798),t.XHRClient=t.util.inherit({handleRequest:function(r,n,a,u){var e=this,i=r.endpoint,s=new w,h=i.protocol+"//"+i.hostname;80!==i.port&&443!==i.port&&(h+=":"+i.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&&(s.statusCode=y.status,s.headers=e.parseHeaders(y.getAllResponseHeaders()),s.emit("headers",s.statusCode,s.headers,y.statusText),m=!0),this.readyState===this.DONE&&e.finishRequest(y,s)},!1),y.upload.addEventListener("progress",function(I){s.emit("sendProgress",I)}),y.addEventListener("progress",function(I){s.emit("receiveProgress",I)},!1),y.addEventListener("timeout",function(){u(t.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),y.addEventListener("error",function(){u(t.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),y.addEventListener("abort",function(){u(t.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),a(s),y.open(r.method,h,!1!==n.xhrAsync),t.util.each(r.headers,function(I,M){"Content-Length"!==I&&"User-Agent"!==I&&"Host"!==I&&y.setRequestHeader(I,M)}),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(I){if(!r.body||"object"!=typeof r.body.buffer)throw I;y.send(r.body.buffer)}return s},parseHeaders:function(r){var n={};return t.util.arrayEach(r.split(/\r?\n/),function(a){var u=a.split(":",1)[0],e=a.substring(u.length+2);u.length>0&&(n[u.toLowerCase()]=e)}),n},finishRequest:function(r,n){var a;if("arraybuffer"===r.responseType&&r.response){var u=r.response;a=new t.util.Buffer(u.byteLength);for(var e=new Uint8Array(u),i=0;i<a.length;++i)a[i]=e[i]}try{!a&&"string"==typeof r.responseText&&(a=new t.util.Buffer(r.responseText))}catch{}a&&n.emit("data",a),n.emit("end")}}),t.HttpClient.prototype=t.XHRClient.prototype,t.HttpClient.streamsApiVersion=1},43786:(ce,k,p)=>{var t=p(97340);function w(){}function d(e,i){if(i&&null!=e)switch(i.type){case"structure":return function r(e,i){if(i.isDocument)return e;var s={};return t.each(e,function(h,y){var m=i.members[h];if(m){if("body"!==m.location)return;var I=m.isLocationName?m.name:h,M=d(y,m);void 0!==M&&(s[I]=M)}}),s}(e,i);case"map":return function a(e,i){var s={};return t.each(e,function(h,y){var m=d(y,i.value);void 0!==m&&(s[h]=m)}),s}(e,i);case"list":return function n(e,i){var s=[];return t.arrayEach(e,function(h){var y=d(h,i.member);void 0!==y&&s.push(y)}),s}(e,i);default:return function u(e,i){return i.toWireFormat(e)}(e,i)}}w.prototype.build=function(e,i){return JSON.stringify(d(e,i))},ce.exports=w},42234:(ce,k,p)=>{var t=p(97340);function w(){}function d(e,i){if(i&&void 0!==e)switch(i.type){case"structure":return function r(e,i){if(null!=e){if(i.isDocument)return e;var s={};return t.each(i.members,function(y,m){var I=m.isLocationName?m.name:y;if(Object.prototype.hasOwnProperty.call(e,I)){var P=d(e[I],m);void 0!==P&&(s[y]=P)}}),s}}(e,i);case"map":return function a(e,i){if(null!=e){var s={};return t.each(e,function(h,y){var m=d(y,i.value);s[h]=void 0===m?null:m}),s}}(e,i);case"list":return function n(e,i){if(null!=e){var s=[];return t.arrayEach(e,function(h){var y=d(h,i.member);s.push(void 0===y?null:y)}),s}}(e,i);default:return function u(e,i){return i.toType(e)}(e,i)}}w.prototype.parse=function(e,i){return d(JSON.parse(e),i)},ce.exports=w},50989:(ce,k,p)=>{var t=p(12085),w=p(89823),d=p(36925),r=p(49832),n=p(6974),a=p(6839),u=p(97340),e=u.property,i=u.memoizedProperty;ce.exports=function s(h,y){var m=this;h=h||{},(y=y||{}).api=this,h.metadata=h.metadata||{};var I=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),I&&a[I]&&e(this,"xmlNoDefaultLists",a[I].xmlNoDefaultLists,!1),i(this,"className",function(){var P=h.metadata.serviceAbbreviation||h.metadata.serviceFullName;return P?("ElasticLoadBalancing"===(P=P.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(P="ELB"),P):null}),e(this,"operations",new t(h.operations,y,function(P,C){return new w(P,C,y)},u.string.lowerFirst,function M(P,C){!0===C.endpointoperation&&e(m,"endpointOperation",u.string.lowerFirst(P)),C.endpointdiscovery&&!m.hasRequiredEndpointDiscovery&&e(m,"hasRequiredEndpointDiscovery",!0===C.endpointdiscovery.required)})),e(this,"shapes",new t(h.shapes,y,function(P,C){return d.create(C,y)})),e(this,"paginators",new t(h.paginators,y,function(P,C){return new r(P,C,y)})),e(this,"waiters",new t(h.waiters,y,function(P,C){return new n(P,C,y)},u.string.lowerFirst)),y.documentation&&(e(this,"documentation",h.documentation),e(this,"documentationUrl",h.documentationUrl)),e(this,"errorCodeMapping",h.awsQueryCompatible)}},12085:(ce,k,p)=>{var t=p(97340).memoizedProperty;function w(r,n,a,u){t(this,u(r),function(){return a(r,n)})}ce.exports=function d(r,n,a,u,e){for(var s in u=u||String,r)Object.prototype.hasOwnProperty.call(r,s)&&(w.call(this,s,r[s],a,u),e&&e(s,r[s]))}},89823:(ce,k,p)=>{var t=p(36925),w=p(97340),d=w.property,r=w.memoizedProperty;ce.exports=function n(u,e,i){var s=this;i=i||{},d(this,"name",e.name||u),d(this,"api",i.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,i):new t.create({type:"structure"},i)}),r(this,"output",function(){return e.output?t.create(e.output,i):new t.create({type:"structure"},i)}),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],i));return y}),r(this,"paginator",function(){return i.api.paginators[u]}),i.documentation&&(d(this,"documentation",e.documentation),d(this,"documentationUrl",e.documentationUrl)),r(this,"idempotentMembers",function(){var y=[],m=s.input,I=m.members;if(!m.members)return y;for(var M in I)!I.hasOwnProperty(M)||!0===I[M].isIdempotent&&y.push(M);return y}),r(this,"hasEventOutput",function(){return function a(u){var e=u.members,i=u.payload;if(!u.members)return!1;if(i)return e[i].isEventStream;for(var h in e)if(!e.hasOwnProperty(h)&&!0===e[h].isEventStream)return!0;return!1}(s.output)})}},49832:(ce,k,p)=>{var t=p(97340).property;ce.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:(ce,k,p)=>{var t=p(97340),w=t.property;ce.exports=function d(r,n,a){a=a||{},w(this,"name",r),w(this,"api",a.api,!1),n.operation&&w(this,"operation",t.string.lowerFirst(n.operation));var u=this;["type","description","delay","maxAttempts","acceptors"].forEach(function(i){var s=n[i];s&&w(u,i,s)})}},36925:(ce,k,p)=>{var t=p(12085),w=p(97340);function d(C,D,W){null!=W&&w.property.apply(this,arguments)}function r(C,D){C.constructor.prototype[D]||w.memoizedProperty.apply(this,arguments)}function n(C,D,W){D=D||{},d(this,"shape",C.shape),d(this,"api",D.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||W),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),D.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(Q){return Q??""},this.toType=function(Q){return Q}}function a(C){n.apply(this,arguments),d(this,"isComposite",!0),C.flattened&&d(this,"flattened",C.flattened||!1)}function u(C,D){var W=this,Q=null,H=!this.isShape;a.apply(this,arguments),H&&(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,D,function(L,g){return n.create(g,D,L)})),r(this,"memberNames",function(){return C.xmlOrder||Object.keys(C.members)}),C.event&&(r(this,"eventPayloadMemberName",function(){for(var L=W.members,g=W.memberNames,R=0,c=g.length;R<c;R++)if(L[g[R]].isEventPayload)return g[R]}),r(this,"eventHeaderMemberNames",function(){for(var L=W.members,g=W.memberNames,R=[],c=0,_=g.length;c<_;c++)L[g[c]].isEventHeader&&R.push(g[c]);return R}))),C.required&&(d(this,"required",C.required),d(this,"isRequired",function(L){if(!Q){Q={};for(var g=0;g<C.required.length;g++)Q[C.required[g]]=!0}return Q[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,D){var W=this,Q=!this.isShape;if(a.apply(this,arguments),Q&&d(this,"defaultValue",function(){return[]}),C.member&&r(this,"member",function(){return n.create(C.member,D)}),this.flattened){var H=this.name;r(this,"name",function(){return W.member.name||H})}}function i(C,D){var W=!this.isShape;a.apply(this,arguments),W&&(d(this,"defaultValue",function(){return{}}),d(this,"key",n.create({type:"string"},D)),d(this,"value",n.create({type:"string"},D))),C.key&&r(this,"key",function(){return n.create(C.key,D)}),C.value&&r(this,"value",function(){return n.create(C.value,D)})}function h(){n.apply(this,arguments);var C=["rest-xml","query","ec2"];this.toType=function(D){return D=this.api&&C.indexOf(this.api.protocol)>-1?D||"":D,this.isJsonValue?JSON.parse(D):D&&"function"==typeof D.toString?D.toString():D},this.toWireFormat=function(D){return this.isJsonValue?JSON.stringify(D):D}}function I(){n.apply(this,arguments),this.toType=function(C){var D=w.base64.decode(C);if(this.isSensitive&&w.isNode()&&"function"==typeof w.Buffer.alloc){var W=w.Buffer.alloc(D.length,D);D.fill(0),D=W}return D},this.toWireFormat=w.base64.encode}function M(){I.apply(this,arguments)}function P(){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:u,list:e,map:i,boolean:P,timestamp:function s(C){var D=this;if(n.apply(this,arguments),C.timestampFormat)d(this,"timestampFormat",C.timestampFormat);else if(D.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(W){return null==W?null:"function"==typeof W.toUTCString?W:"string"==typeof W||"number"==typeof W?w.date.parseTimestamp(W):null},this.toWireFormat=function(W){return w.date.format(W,D.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:M,binary:I},n.resolve=function(D,W){if(D.shape){var Q=W.api.shapes[D.shape];if(!Q)throw new Error("Cannot find shape reference: "+D.shape);return Q}return null},n.create=function(D,W,Q){if(D.isShape)return D;var H=n.resolve(D,W);if(H){var L=Object.keys(D);W.documentation||(L=L.filter(function(c){return!c.match(/documentation/)}));var g=function(){H.constructor.call(this,D,W,Q)};return g.prototype=H,new g}D.type||(D.type=D.members?"structure":D.member?"list":D.key?"map":"string");var R=D.type;if(n.normalizedTypes[D.type]&&(D.type=n.normalizedTypes[D.type]),n.types[D.type])return new n.types[D.type](D,W,Q);throw new Error("Unrecognized shape type: "+R)},n.shapes={StructureShape:u,ListShape:e,MapShape:i,StringShape:h,BooleanShape:P,Base64Shape:M},ce.exports=n},52515:(ce,k,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 a=this.errors.join("\n* ");throw a="There were "+this.errors.length+" validation errors:\n* "+a,t.util.error(new Error(a),{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 a,u=0;d.required&&u<d.required.length;u++)null==r[a=d.required[u]]&&this.fail("MissingRequiredParameter","Missing required key '"+a+"' in "+n);for(a in r)if(Object.prototype.hasOwnProperty.call(r,a)){var i=r[a],s=d.members[a];if(void 0!==s){var h=[n,a].join(".");this.validateMember(s,i,h)}else null!=i&&this.fail("UnexpectedParameter","Unexpected key '"+a+"' 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 a=0;a<r.length;a++)this.validateMember(d.member,r[a],n+"["+a+"]")}},validateMap:function(d,r,n){if(this.validateType(r,n,["object"],"map")){var a=0;for(var u in r)!Object.prototype.hasOwnProperty.call(r,u)||(this.validateMember(d.key,u,n+"[key='"+u+"']"),this.validateMember(d.value,r[u],n+"['"+u+"']"),a++);this.validateRange(d,a,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 a=["string"];d.isJsonValue&&(a=a.concat(["number","object","boolean"])),null!==r&&this.validateType(r,n,a)&&(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,a){this.validation.min&&void 0!==d.min&&r<d.min&&this.fail("MinRangeError","Expected "+a+" >= "+d.min+", but found "+r+" for "+n),this.validation.max&&void 0!==d.max&&r>d.max&&this.fail("MaxRangeError","Expected "+a+" <= "+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,a){if(null==d)return!1;for(var u=!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;!a&&!u&&(n=n.slice()),n[e]=t.util.typeName(n[e])}u=!0}var i=a;i||(i=n.join(", ").replace(/,([^,]+)$/,", or$1"));var s=i.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+r+" to be a"+s+" "+i),!1},validateNumber:function(d,r,n){if(null!=r){if("string"==typeof r){var a=parseFloat(r);a.toString()===r&&(r=a)}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 a=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(d)for(var u=0;u<a.length;u++)if(t.util.isType(d,a[u])||t.util.typeName(d.constructor)===a[u])return;this.fail("InvalidParameterType","Expected "+r+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},5673:(ce,k,p)=>{var t=p(97340),w=p(67047);ce.exports={populateHostPrefix:function d(e){if(!e.service.config.hostPrefixEnabled)return e;var s=e.service.api.operations[e.operation];if(function r(e){var i=e.service.api,s=i.operations[e.operation],h=i.endpointOperation&&i.endpointOperation===t.string.lowerFirst(s.name);return"NULL"!==s.endpointDiscoveryRequired||!0===h}(e))return e;if(s.endpoint&&s.endpoint.hostPrefix){var y=function n(e,i,s){return t.each(s.members,function(h,y){if(!0===y.hostLabel){if("string"!=typeof i[h]||""===i[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,i[h])}}),e}(s.endpoint.hostPrefix,e.params,s.input);(function a(e,i){e.host&&(e.host=i+e.host),e.hostname&&(e.hostname=i+e.hostname)})(e.httpRequest.endpoint,y),function u(e){var i=e.split("."),s=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;t.arrayEach(i,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(!s.test(h))throw w.util.error(new Error,{code:"ValidationError",message:h+" is not hostname compatible."})})}(e.httpRequest.endpoint.hostname)}return e}}},88383:(ce,k,p)=>{var t=p(97340),w=p(43786),d=p(42234),r=p(5673).populateHostPrefix;ce.exports={buildRequest:function n(e){var i=e.httpRequest,s=e.service.api,h=s.targetPrefix+"."+s.operations[e.operation].name,y=s.jsonVersion||"1.0",m=s.operations[e.operation].input,I=new w;1===y&&(y="1.0"),i.body=I.build(e.params||{},m),i.headers["Content-Type"]="application/x-amz-json-"+y,i.headers["X-Amz-Target"]=h,r(e)},extractError:function a(e){var i={},s=e.httpResponse;if(i.code=s.headers["x-amzn-errortype"]||"UnknownError","string"==typeof i.code&&(i.code=i.code.split(":")[0]),s.body.length>0)try{var h=JSON.parse(s.body.toString()),y=h.__type||h.code||h.Code;y&&(i.code=y.split("#").pop()),i.message="RequestEntityTooLarge"===i.code?"Request body must be less than 1 MB":h.message||h.Message||null}catch{i.statusCode=s.statusCode,i.message=s.statusMessage}else i.statusCode=s.statusCode,i.message=s.statusCode.toString();e.error=t.error(new Error,i)},extractData:function u(e){var i=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(i);else{var h=e.request.service.api.operations[e.request.operation].output||{},y=new d;e.data=y.parse(i,h)}}}},20340:(ce,k,p)=>{var t=p(67047),w=p(97340),d=p(1105),r=p(36925),n=p(5673).populateHostPrefix;ce.exports={buildRequest:function a(i){var s=i.service.api.operations[i.operation],h=i.httpRequest;h.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",h.params={Version:i.service.api.apiVersion,Action:s.name},(new d).serialize(i.params,s.input,function(m,I){h.params[m]=I}),h.body=w.queryParamsToString(h.params),n(i)},extractError:function u(i){var s,h=i.httpResponse.body.toString();if(h.match("<UnknownOperationException"))s={Code:"UnknownOperation",Message:"Unknown operation "+i.request.operation};else try{s=(new t.XML.Parser).parse(h)}catch{s={Code:i.httpResponse.statusCode,Message:i.httpResponse.statusMessage}}s.requestId&&!i.requestId&&(i.requestId=s.requestId),s.Errors&&(s=s.Errors),s.Error&&(s=s.Error),i.error=w.error(new Error,s.Code?{code:s.Code,message:s.Message}:{code:i.httpResponse.statusCode,message:null})},extractData:function e(i){var s=i.request,y=s.service.api.operations[s.operation].output||{},m=y;if(m.resultWrapper){var I=r.create({type:"structure"});I.members[m.resultWrapper]=y,I.memberNames=[m.resultWrapper],w.property(y,"name",y.resultWrapper),y=I}var M=new t.XML.Parser;if(y&&y.members&&!y.members._XAMZRequestId){var P=r.create({type:"string"},{api:{protocol:"query"}},"requestId");y.members._XAMZRequestId=P}var C=M.parse(i.httpResponse.body.toString(),y);i.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]),i.data=C}}},98784:(ce,k,p)=>{var t=p(97340),w=p(5673).populateHostPrefix;function r(s,h,y,m){var I=[s,h].join("/");I=I.replace(/\/+/g,"/");var M={},P=!1;if(t.each(y.members,function(D,W){var Q=m[D];if(null!=Q)if("uri"===W.location){var H=new RegExp("\\{"+W.name+"(\\+)?\\}");I=I.replace(H,function(L,g){return(g?t.uriEscapePath:t.uriEscape)(String(Q))})}else"querystring"===W.location&&(P=!0,"list"===W.type?M[W.name]=Q.map(function(L){return t.uriEscape(W.member.toWireFormat(L).toString())}):"map"===W.type?t.each(Q,function(L,g){M[L]=Array.isArray(g)?g.map(function(R){return t.uriEscape(String(R))}):t.uriEscape(String(g))}):M[W.name]=t.uriEscape(W.toWireFormat(Q).toString()))}),P){I+=I.indexOf("?")>=0?"&":"?";var C=[];t.arrayEach(Object.keys(M).sort(),function(D){Array.isArray(M[D])||(M[D]=[M[D]]);for(var W=0;W<M[D].length;W++)C.push(t.uriEscape(String(D))+"="+M[D][W])}),I+=C.join("&")}return I}ce.exports={buildRequest:function u(s){(function d(s){s.httpRequest.method=s.service.api.operations[s.operation].httpMethod})(s),function n(s){var h=s.service.api.operations[s.operation],m=r(s.httpRequest.endpoint.path,h.httpPath,h.input,s.params);s.httpRequest.path=m}(s),function a(s){t.each(s.service.api.operations[s.operation].input.members,function(y,m){var I=s.params[y];null!=I&&("headers"===m.location&&"map"===m.type?t.each(I,function(M,P){s.httpRequest.headers[m.name+M]=P}):"header"===m.location&&(I=m.toWireFormat(I).toString(),m.isJsonValue&&(I=t.base64.encode(I)),s.httpRequest.headers[m.name]=I))})}(s),w(s)},extractError:function e(){},extractData:function i(s){var h=s.request,y={},m=s.httpResponse,M=h.service.api.operations[h.operation].output,P={};t.each(m.headers,function(C,D){P[C.toLowerCase()]=D}),t.each(M.members,function(C,D){var W=(D.name||C).toLowerCase();if("headers"===D.location&&"map"===D.type){y[C]={};var H=new RegExp("^"+(D.isLocationName?D.name:"")+"(.+)","i");t.each(m.headers,function(g,R){var c=g.match(H);null!==c&&(y[C][c[1]]=R)})}else if("header"===D.location){if(void 0!==P[W]){var L=D.isJsonValue?t.base64.decode(P[W]):P[W];y[C]=D.toType(L)}}else"statusCode"===D.location&&(y[C]=parseInt(m.statusCode,10))}),s.data=y},generateURI:r}},43825:(ce,k,p)=>{var t=p(97340),w=p(98784),d=p(88383),r=p(43786),n=p(42234);function u(h,y){h.httpRequest.headers["Content-Type"]||(h.httpRequest.headers["Content-Type"]=y?"binary/octet-stream":"application/json")}ce.exports={buildRequest:function e(h){w.buildRequest(h),["GET","HEAD","DELETE"].indexOf(h.httpRequest.method)<0&&function a(h){var y=new r,m=h.service.api.operations[h.operation].input;if(m.payload){var I,M=m.members[m.payload];I=h.params[m.payload],"structure"===M.type?(h.httpRequest.body=y.build(I||{},M),u(h)):void 0!==I&&(h.httpRequest.body=I,("binary"===M.type||M.isStreaming)&&u(h,!0))}else h.httpRequest.body=y.build(h.params,m),u(h)}(h)},extractError:function i(h){d.extractError(h)},extractData:function s(h){w.extractData(h);var y=h.request,I=y.service.api.operations[y.operation].output||{};if(I.payload){var C=I.members[I.payload],D=h.httpResponse.body;if(C.isEventStream)M=new n,h.data[payload]=t.createEventStream(2===AWS.HttpClient.streamsApiVersion?h.httpResponse.stream:D,M,C);else if("structure"===C.type||"list"===C.type){var M=new n;h.data[I.payload]=M.parse(D,C)}else h.data[I.payload]="binary"===C.type||C.isStreaming?D:C.toType(D)}else{var W=h.data;d.extractData(h),h.data=t.merge(W,h.data)}}}},10164:(ce,k,p)=>{var t=p(67047),w=p(97340),d=p(98784);ce.exports={buildRequest:function n(e){d.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&function r(e){var i=e.service.api.operations[e.operation].input,s=new t.XML.Builder,h=e.params,y=i.payload;if(y){var m=i.members[y];if(void 0===(h=h[y]))return;e.httpRequest.body="structure"===m.type?s.toXML(h,m,m.name,!0):h}else e.httpRequest.body=s.toXML(h,i,i.name||i.shape||w.string.upperFirst(e.operation)+"Request")}(e)},extractError:function a(e){var i;d.extractError(e);try{i=(new t.XML.Parser).parse(e.httpResponse.body.toString())}catch{i={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}i.Errors&&(i=i.Errors),i.Error&&(i=i.Error),e.error=w.error(new Error,i.Code?{code:i.Code,message:i.Message}:{code:e.httpResponse.statusCode,message:null})},extractData:function u(e){d.extractData(e);var i,s=e.request,h=e.httpResponse.body,m=s.service.api.operations[s.operation].output,M=m.payload;if(M){var P=m.members[M];P.isEventStream?(i=new t.XML.Parser,e.data[M]=w.createEventStream(2===t.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,i,P)):"structure"===P.type?(i=new t.XML.Parser,e.data[M]=i.parse(h.toString(),P)):e.data[M]="binary"===P.type||P.isStreaming?h:P.toType(h)}else if(h.length>0){var C=(i=new t.XML.Parser).parse(h.toString(),m);w.update(e.data,C)}}}},1105:(ce,k,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,i,s,h){t.each(s.members,function(y,m){var I=i[y];if(null!=I){var M=d(m);u(M=e?e+"."+M:M,I,m,h)}})}function u(e,i,s,h){null!=i&&("structure"===s.type?r(e,i,s,h):"list"===s.type?function a(e,i,s,h){var y=s.member||{};0!==i.length?t.arrayEach(i,function(m,I){var M="."+(I+1);if("ec2"===s.api.protocol)M+="";else if(s.flattened){if(y.name){var P=e.split(".");P.pop(),P.push(d(y)),e=P.join(".")}}else M="."+(y.name?y.name:"member")+M;u(e+M,m,y,h)}):h.call(this,e,null)}(e,i,s,h):"map"===s.type?function n(e,i,s,h){var y=1;t.each(i,function(m,I){var P=(s.flattened?".":".entry.")+y+++".",D=P+(s.value.name||"value");u(e+(P+(s.key.name||"key")),m,s.key,h),u(e+D,I,s.value,h)})}(e,i,s,h):h(e,s.toWireFormat(i).toString()))}w.prototype.serialize=function(e,i,s){r("",e,i,s)},ce.exports=w},5066:ce=>{ce.exports={now:function(){return typeof performance<"u"&&"function"==typeof performance.now?performance.now():Date.now()}}},81610:ce=>{ce.exports={isFipsRegion:function k(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:(ce,k,p)=>{var t=p(97340),w=p(85595);function n(e,i){t.each(i,function(s,h){"globalEndpoint"!==s&&null==e.config[s]&&(e.config[s]=h)})}ce.exports={configureEndpoint:function a(e){for(var i=function r(e){var i=e.config.region,s=function d(e){if(!e)return null;var i=e.split("-");return i.length<3?null:i.slice(0,i.length-2).join("-")+"-*"}(i),h=e.api.endpointPrefix;return[[i,h],[s,h],[i,"*"],[s,"*"],["*",h],["*","*"]].map(function(y){return y[0]&&y[1]?y.join("/"):null})}(e),s=e.config.useFipsEndpoint,h=e.config.useDualstackEndpoint,y=0;y<i.length;y++){var m=i[y];if(m){var I=s?h?w.dualstackFipsRules:w.fipsRules:h?w.dualstackRules:w.rules;if(Object.prototype.hasOwnProperty.call(I,m)){var M=I[m];return"string"==typeof M&&(M=w.patterns[M]),e.isGlobalEndpoint=!!M.globalEndpoint,M.signingRegion&&(e.signingRegion=M.signingRegion),M.signatureVersion||(M.signatureVersion="v4"),void n(e,M)}}}},getEndpointSuffix:function u(e){for(var i={"^(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(i),y=0;y<h.length;y++){var m=RegExp(h[y]),I=i[h[y]];if(m.test(e))return I}return"amazonaws.com"}}},70752:(ce,k,p)=>{var t=p(67047),w=p(97759),d=t.util.inherit,r=t.util.domain,n=p(57920),a={success:1,error:1,complete:1},e=new w;e.setupStates=function(){var i=function(s,h){var y=this;y._haltHandlersOnError=!1,y.emit(y._asm.currentState,function(m){if(m)if(function u(i){return Object.prototype.hasOwnProperty.call(a,i._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",i),this.addState("build","afterBuild","restart",i),this.addState("afterBuild","sign","restart",i),this.addState("sign","send","retry",i),this.addState("retry","afterRetry","afterRetry",i),this.addState("afterRetry","sign","error",i),this.addState("send","validateResponse","retry",i),this.addState("validateResponse","extractData","extractError",i),this.addState("extractError","extractData","retry",i),this.addState("extractData","success","retry",i),this.addState("restart","build","error",i),this.addState("success","complete","complete",i),this.addState("error","complete","complete",i),this.addState("complete",null,null,i)},e.setupStates(),t.Request=d({constructor:function(s,h,y){var m=s.endpoint,I=s.config.region,M=s.config.customUserAgent;s.signingRegion?I=s.signingRegion:s.isGlobalEndpoint&&(I="us-east-1"),this.domain=r&&r.active,this.service=s,this.operation=h,this.params=y||{},this.httpRequest=new t.HttpRequest(m,I),this.httpRequest.appendToUserAgent(M),this.startTime=s.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(s){return s&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",function(h){s.call(h,h.error,h.data)})),this.runTo(),this.response},build:function(s){return this.runTo("send",s)},runTo:function(s,h){return this._asm.runTo(s,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(s){s=t.util.fn.makeAsync(s,3),this.on("complete",function h(y){s.call(y,y.error,y.data,function(m){!1!==m&&(y.hasNextPage()?y.nextPage().on("complete",h).send():s.call(y,null,null,t.util.fn.noop))})}).send()},eachItem:function(s){var h=this;this.eachPage(function y(m,I){if(m)return s(m,null);if(null===I)return s(null,null);var P=h.service.paginationConfig(h.operation).resultKey;Array.isArray(P)&&(P=P[0]);var C=n.search(I,P),D=!0;return t.util.arrayEach(C,function(W){if(!1===(D=s(null,W)))return t.util.abort}),D})},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var s=t.util.stream,h=this,y=null;return 2===t.HttpClient.streamsApiVersion?(y=new s.PassThrough,process.nextTick(function(){h.send()})):((y=new s.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(I,M,P){if(I<300){h.removeListener("httpData",t.EventListeners.Core.HTTP_DATA),h.removeListener("httpError",t.EventListeners.Core.HTTP_ERROR),h.on("httpError",function(R){P.error=R,P.error.retryable=!1});var D,C=!1;if("HEAD"!==h.httpRequest.method&&(D=parseInt(M["content-length"],10)),void 0!==D&&!isNaN(D)&&D>=0){C=!0;var W=0}var Q=function(){C&&W!==D?y.emit("error",t.util.error(new Error("Stream content length mismatch. Received "+W+" of "+D+" bytes."),{code:"StreamContentLengthMismatch"})):2===t.HttpClient.streamsApiVersion?y.end():y.emit("end")},H=P.httpResponse.createUnbufferedStream();if(2===t.HttpClient.streamsApiVersion)if(C){var L=new s.PassThrough;L._write=function(g){return g&&g.length&&(W+=g.length),s.PassThrough.prototype._write.apply(this,arguments)},L.on("end",Q),y.on("error",function(g){C=!1,H.unpipe(L),L.emit("end"),L.end()}),H.pipe(L).pipe(y,{end:!1})}else H.pipe(y);else C&&H.on("data",function(g){g&&g.length&&(W+=g.length)}),H.on("data",function(g){y.emit("data",g)}),H.on("end",Q);H.on("error",function(g){C=!1,y.emit("error",g)})}}),y},emitEvent:function(s,h,y){"function"==typeof h&&(y=h,h=null),y||(y=function(){}),h||(h=this.eventParameters(s,this.response)),t.SequentialExecutor.prototype.emit.call(this,s,h,function(I){I&&(this.response.error=I),y.call(this,I)})},eventParameters:function(s){switch(s){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(s,h){return!h&&"function"==typeof s&&(h=s,s=null),(new t.Signers.Presign).sign(this.toGet(),s,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(s){s.httpRequest.method="GET",s.httpRequest.path=s.service.endpoint.path+"?"+s.httpRequest.body,s.httpRequest.body="",delete s.httpRequest.headers["Content-Length"],delete s.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),t.Request.addPromisesToClass=function(s){this.prototype.promise=function(){var y=this;return this.httpRequest.appendToUserAgent("promise"),new s(function(m,I){y.on("complete",function(M){M.error?I(M.error):m(Object.defineProperty(M.data||{},"$response",{value:M}))}),y.runTo()})}},t.Request.deletePromisesFromClass=function(){delete this.prototype.promise},t.util.addPromises(t.Request),t.util.mixin(t.Request,t.SequentialExecutor)},42857:(ce,k,p)=>{var t=p(67047),w=t.util.inherit,d=p(57920);function r(n){var a=n.request._waiter,e=!1,i="retry";a.config.acceptors.forEach(function(s){if(!e){var h=a.matchers[s.matcher];h&&h(n,s.expected,s.argument)&&(e=!0,i=s.state)}}),!e&&n.error&&(i="failure"),"success"===i?a.setSuccess(n):a.setError(n,"retry"===i)}t.ResourceWaiter=w({constructor:function(a,u){this.service=a,this.state=u,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(n,a,u){try{var e=d.search(n.data,u)}catch{return!1}return d.strictDeepEqual(e,a)},pathAll:function(n,a,u){try{var e=d.search(n.data,u)}catch{return!1}Array.isArray(e)||(e=[e]);var i=e.length;if(!i)return!1;for(var s=0;s<i;s++)if(!d.strictDeepEqual(e[s],a))return!1;return!0},pathAny:function(n,a,u){try{var e=d.search(n.data,u)}catch{return!1}Array.isArray(e)||(e=[e]);for(var i=e.length,s=0;s<i;s++)if(d.strictDeepEqual(e[s],a))return!0;return!1},status:function(n,a){var u=n.httpResponse.statusCode;return"number"==typeof u&&u===a},error:function(n,a){return"string"==typeof a&&n.error?a===n.error.code:a===!!n.error}},listeners:(new t.SequentialExecutor).addNamedListeners(function(n){n("RETRY_CHECK","retry",function(a){a.error&&"ResourceNotReady"===a.error.code&&(a.error.retryDelay=1e3*(a.request._waiter.config.delay||0))}),n("CHECK_OUTPUT","extractData",r),n("CHECK_ERROR","extractError",r)}),wait:function(a,u){"function"==typeof a&&(u=a,a=void 0),a&&a.$waiter&&("number"==typeof(a=t.util.copy(a)).$waiter.delay&&(this.config.delay=a.$waiter.delay),"number"==typeof a.$waiter.maxAttempts&&(this.config.maxAttempts=a.$waiter.maxAttempts),delete a.$waiter);var e=this.service.makeRequest(this.config.operation,a);return e._waiter=this,e.response.maxRetries=this.config.maxAttempts,e.addListeners(this.listeners),u&&e.send(u),e},setSuccess:function(a){a.error=null,a.data=a.data||{},a.request.removeAllListeners("extractData")},setError:function(a,u){a.data=null,a.error=t.util.error(a.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:u})},loadWaiterConfig:function(a){if(!this.service.api.waiters[a])throw new t.util.error(new Error,{code:"StateNotFoundError",message:"State "+a+" not found."});this.config=t.util.copy(this.service.api.waiters[a])}})},70470:(ce,k,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 a,u=this.request.service,e=this.request.operation;try{a=u.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 i=t.util.copy(this.request.params);if(this.nextPageTokens){var s=a.inputToken;"string"==typeof s&&(s=[s]);for(var h=0;h<s.length;h++)i[s[h]]=this.nextPageTokens[h];return u.makeRequest(this.request.operation,i,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 a=n.outputToken;return"string"==typeof a&&(a=[a]),t.util.arrayEach.call(this,a,function(u){var e=d.search(this.data,u);e&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(e))}),this.nextPageTokens}})},51076:(ce,k,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 a=n.length,u=-1,e=0;e<a;++e)n[e]===r&&(u=e);u>-1&&n.splice(u,1)}return this},removeAllListeners:function(d){return d?delete this._events[d]:this._events={},this},emit:function(d,r,n){n||(n=function(){});var a=this.listeners(d),u=a.length;return this.callListeners(a,r,n),u>0},callListeners:function(d,r,n,a){var u=this,e=a||null;function i(h){if(h&&(e=t.util.error(e||new Error,h),u._haltHandlersOnError))return n.call(u,e);u.callListeners(d,r,n,e)}for(;d.length>0;){var s=d.shift();if(s._isAsync)return void s.apply(u,r.concat([i]));try{s.apply(u,r)}catch(h){e=t.util.error(e||new Error,h)}if(e&&u._haltHandlersOnError)return void n.call(u,e)}n.call(u,e)},addListeners:function(d){var r=this;return d._events&&(d=d._events),t.util.each(d,function(n,a){"function"==typeof a&&(a=[a]),t.util.arrayEach(a,function(u){r.on(n,u)})}),r},addNamedListener:function(d,r,n,a){return this[d]=n,this.addListener(r,n,a),this},addNamedAsyncListener:function(d,r,n,a){return n._isAsync=!0,this.addNamedListener(d,r,n,a)},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,ce.exports=t.SequentialExecutor},71794:(ce,k,p)=>{var t=p(67047),w=p(50989),d=p(31160),r=t.util.inherit,n=0,a=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 i=e.region;a.isFipsRegion(i)&&(e.region=a.getRealRegion(i),e.useFipsEndpoint=!0),a.isGlobalRegion(i)&&(e.region=a.getRealRegion(i))}"boolean"==typeof e.useDualstack&&"boolean"!=typeof e.useDualstackEndpoint&&(e.useDualstackEndpoint=e.useDualstack)}var s=this.loadServiceClass(e||{});if(s){var h=t.util.copy(e),y=new s(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 i=t.config[this.serviceIdentifier];if(this.config=new t.Config(t.config),i&&this.config.update(i,!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 s=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(y){process.nextTick(function(){s.eventHandler(y)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(y){process.nextTick(function(){s.eventHandler(y)})})}},validateService:function(){},loadServiceClass:function(e){var i=e;if(t.util.isEmpty(this.api)){if(i.apiConfig)return t.Service.defineServiceApi(this.constructor,i.apiConfig);if(this.constructor.services){(i=new t.Config(t.config)).update(e,!0);var s=i.apiVersions[this.constructor.serviceIdentifier];return this.getLatestServiceClass(s=s||i.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 i=Object.keys(this.constructor.services).sort(),s=null,h=i.length-1;h>=0;h--)if("*"!==i[h][i[h].length-1]&&(s=i[h]),i[h].substr(0,10)<=e)return s;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,i,s){if("function"==typeof i&&(s=i,i=null),i=i||{},this.config.params){var h=this.api.operations[e];h&&(i=t.util.copy(i),t.util.each(this.config.params,function(m,I){h.input.members[m]&&null==i[m]&&(i[m]=I)}))}var y=new t.Request(this,e,i);return this.addAllRequestListeners(y),this.attachMonitoringEmitter(y),s&&y.send(s),y},makeUnauthenticatedRequest:function(e,i,s){"function"==typeof i&&(s=i,i={});var h=this.makeRequest(e,i).toUnauthenticated();return s?h.send(s):h},waitFor:function(e,i,s){return new t.ResourceWaiter(this,e).wait(i,s)},addAllRequestListeners:function(e){for(var i=[t.events,t.EventListeners.Core,this.serviceInterface(),t.EventListeners.CorePost],s=0;s<i.length;s++)i[s]&&e.addListeners(i[s]);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 i=e.service.api.operations[e.operation],s={Type:"ApiCall",Api:i?i.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&&(s.FinalHttpStatusCode=h.httpResponse.statusCode),h.error){var y=h.error;h.httpResponse.statusCode>299?(y.code&&(s.FinalAwsException=y.code),y.message&&(s.FinalAwsExceptionMessage=y.message)):((y.code||y.name)&&(s.FinalSdkException=y.code||y.name),y.message&&(s.FinalSdkExceptionMessage=y.message))}return s},apiAttemptEvent:function(e){var i=e.service.api.operations[e.operation],s={Type:"ApiCallAttempt",Api:i?i.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&&(s.HttpStatusCode=h.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(s.AccessKey=e.service.config.credentials.accessKeyId),h.httpResponse.headers&&(e.httpRequest.headers["x-amz-security-token"]&&(s.SessionToken=e.httpRequest.headers["x-amz-security-token"]),h.httpResponse.headers["x-amzn-requestid"]&&(s.XAmznRequestId=h.httpResponse.headers["x-amzn-requestid"]),h.httpResponse.headers["x-amz-request-id"]&&(s.XAmzRequestId=h.httpResponse.headers["x-amz-request-id"]),h.httpResponse.headers["x-amz-id-2"]&&(s.XAmzId2=h.httpResponse.headers["x-amz-id-2"])),s},attemptFailEvent:function(e){var i=this.apiAttemptEvent(e),s=e.response,h=s.error;return s.httpResponse.statusCode>299?(h.code&&(i.AwsException=h.code),h.message&&(i.AwsExceptionMessage=h.message)):((h.code||h.name)&&(i.SdkException=h.code||h.name),h.message&&(i.SdkExceptionMessage=h.message)),i},attachMonitoringEmitter:function(e){var i,s,h,y,I,M,m=0,P=this;e.on("validate",function(){y=t.util.realClock.now(),M=Date.now()},!0),e.on("sign",function(){s=t.util.realClock.now(),i=Date.now(),I=e.httpRequest.region,m++},!0),e.on("validateResponse",function(){h=Math.round(t.util.realClock.now()-s)}),e.addNamedListener("API_CALL_ATTEMPT","success",function(){var W=P.apiAttemptEvent(e);W.Timestamp=i,W.AttemptLatency=h>=0?h:0,W.Region=I,P.emit("apiCallAttempt",[W])}),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var W=P.attemptFailEvent(e);W.Timestamp=i,h=h||Math.round(t.util.realClock.now()-s),W.AttemptLatency=h>=0?h:0,W.Region=I,P.emit("apiCallAttempt",[W])}),e.addNamedListener("API_CALL","complete",function(){var W=P.apiCallEvent(e);if(W.AttemptCount=m,!(W.AttemptCount<=0)){W.Timestamp=M;var Q=Math.round(t.util.realClock.now()-y);W.Latency=Q>=0?Q:0;var H=e.response;H.error&&H.error.retryable&&"number"==typeof H.retryCount&&"number"==typeof H.maxRetries&&H.retryCount>=H.maxRetries&&(W.MaxRetriesExceeded=1),P.emit("apiCall",[W])}})},setupRequestListeners:function(e){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(e){var s=null,h="";return e&&(h=(s=(e.service.api.operations||{})[e.operation]||null)?s.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,i){return t.util.calculateRetryDelay(e,this.config.retryDelayOptions,i)},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 i=e;return(i=(i=i.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,i){var s=this.api.operations[e].paginator;if(!s){if(i){var h=new Error;throw t.util.error(h,"No pagination configuration for "+e)}return null}return s}}),t.util.update(t.Service,{defineMethods:function(e){t.util.each(e.prototype.api.operations,function(s){e.prototype[s]||(e.prototype[s]="none"===e.prototype.api.operations[s].authtype?function(y,m){return this.makeUnauthenticatedRequest(s,y,m)}:function(y,m){return this.makeRequest(s,y,m)})})},defineService:function(e,i,s){t.Service._serviceMap[e]=!0,Array.isArray(i)||(s=i,i=[]);var h=r(t.Service,s||{});if("string"==typeof e?(t.Service.addVersions(h,i),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,M=(0,t.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new m(M),M.enabled&&(t.Service._clientSideMonitoring=!0)}return t.SequentialExecutor.call(h.prototype),t.Service.addDefaultMonitoringListeners(h.prototype),h},addVersions:function(e,i){Array.isArray(i)||(i=[i]),e.services=e.services||{};for(var s=0;s<i.length;s++)void 0===e.services[i[s]]&&(e.services[i[s]]=null);e.apiVersions=Object.keys(e.services).sort()},defineServiceApi:function(e,i,s){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 i){if(s)y(s);else try{y(t.apiLoader(e.serviceIdentifier,i))}catch(m){throw t.util.error(m,{message:"Could not find API configuration "+e.serviceIdentifier+"-"+i})}Object.prototype.hasOwnProperty.call(e.services,i)||(e.apiVersions=e.apiVersions.concat(i).sort()),e.services[i]=h}else y(i);return t.Service.defineMethods(h),h},hasService:function(u){return Object.prototype.hasOwnProperty.call(t.Service._serviceMap,u)},addDefaultMonitoringListeners:function(e){e.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",function(s){var h=Object.getPrototypeOf(e);h._events&&h.emit("apiCallAttempt",[s])}),e.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",function(s){var h=Object.getPrototypeOf(e);h._events&&h.emit("apiCall",[s])})},_serviceMap:{}}),t.util.mixin(t.Service,t.SequentialExecutor),ce.exports=t.Service},28018:(ce,k,p)=>{var t=p(67047),w=p(89953);t.util.update(t.STS.prototype,{credentialsFrom:function(a,u){return a?(u||(u=new t.TemporaryCredentials),u.expired=!1,u.accessKeyId=a.Credentials.AccessKeyId,u.secretAccessKey=a.Credentials.SecretAccessKey,u.sessionToken=a.Credentials.SessionToken,u.expireTime=a.Credentials.Expiration,u):null},assumeRoleWithWebIdentity:function(a,u){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",a,u)},assumeRoleWithSAML:function(a,u){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",a,u)},setupRequestListeners:function(a){a.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(a){var u=a.service,e=u.config;if(e.stsRegionalEndpoints=w(u._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===e.stsRegionalEndpoints&&u.isGlobalEndpoint){if(!e.region)throw t.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var i=e.endpoint.indexOf(".amazonaws.com"),s=e.endpoint.substring(0,i)+"."+e.region+e.endpoint.substring(i);a.httpRequest.updateEndpoint(s),a.httpRequest.region=e.region}}})},61883:(ce,k,p)=>{var t=p(67047),d="presigned-expires";function r(a){var u=a.httpRequest.headers[d],e=a.service.getSignerClass(a);if(delete a.httpRequest.headers["User-Agent"],delete a.httpRequest.headers["X-Amz-User-Agent"],e===t.Signers.V4){if(u>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});a.httpRequest.headers[d]=u}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 s=a.service?a.service.getSkewCorrectedDate():t.util.date.getDate();a.httpRequest.headers[d]=parseInt(t.util.date.unixTimestamp(s)+u,10).toString()}}function n(a){var u=a.httpRequest.endpoint,e=t.util.urlParse(a.httpRequest.path),i={};e.search&&(i=t.util.queryStringParse(e.search.substr(1)));var s=a.httpRequest.headers.Authorization.split(" ");if("AWS"===s[0])s=s[1].split(":"),i.Signature=s.pop(),i.AWSAccessKeyId=s.join(":"),t.util.each(a.httpRequest.headers,function(m,I){m===d&&(m="Expires"),0===m.indexOf("x-amz-meta-")&&(delete i[m],m=m.toLowerCase()),i[m]=I}),delete a.httpRequest.headers[d],delete i.Authorization,delete i.Host;else if("AWS4-HMAC-SHA256"===s[0]){s.shift();var y=s.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];i["X-Amz-Signature"]=y,delete i.Expires}u.pathname=e.pathname,u.search=t.util.queryParamsToString(i)}t.Signers.Presign=(0,t.util.inherit)({sign:function(u,e,i){if(u.httpRequest.headers[d]=e||3600,u.on("build",r),u.on("sign",n),u.removeListener("afterBuild",t.EventListeners.Core.SET_CONTENT_LENGTH),u.removeListener("afterBuild",t.EventListeners.Core.COMPUTE_SHA256),u.emit("beforePresign",[u]),!i){if(u.build(),u.response.error)throw u.response.error;return t.util.urlFormat(u.httpRequest.endpoint)}u.build(function(){this.response.error?i(this.response.error):i(null,t.util.urlFormat(u.httpRequest.endpoint))})}}),ce.exports=t.Signers.Presign},37950:(ce,k,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:(ce,k,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 a=this.sign(r.secretAccessKey,this.stringToSign());this.request.headers.Authorization="AWS "+r.accessKeyId+":"+a},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 a=this.canonicalizedAmzHeaders();return a&&n.push(a),n.push(this.canonicalizedResource()),n.join("\n")},canonicalizedAmzHeaders:function(){var r=[];t.util.each(this.request.headers,function(a){a.match(/^x-amz-/i)&&r.push(a)}),r.sort(function(a,u){return a.toLowerCase()<u.toLowerCase()?-1:1});var n=[];return t.util.arrayEach.call(this,r,function(a){n.push(a.toLowerCase()+":"+String(this.request.headers[a]))}),n.join("\n")},canonicalizedResource:function(){var r=this.request,n=r.path.split("?"),u=n[1],e="";if(r.virtualHostedBucket&&(e+="/"+r.virtualHostedBucket),e+=n[0],u){var i=[];t.util.arrayEach.call(this,u.split("&"),function(s){var h=s.split("=")[0],y=s.split("=")[1];if(this.subResources[h]||this.responseHeaders[h]){var m={name:h};void 0!==y&&(m.value=this.subResources[h]?y:decodeURIComponent(y)),i.push(m)}}),i.sort(function(s,h){return s.name<h.name?-1:1}),i.length&&(u=[],t.util.arrayEach(i,function(s){u.push(void 0===s.value?s.name:s.name+"="+s.value)}),e+="?"+u.join("&"))}return e},sign:function(r,n){return t.util.crypto.hmac(r,n,"base64","sha1")}}),ce.exports=t.Signers.S3},44748:(ce,k,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 a=this.request;a.params.Timestamp=t.util.date.iso8601(n),a.params.SignatureVersion="2",a.params.SignatureMethod="HmacSHA256",a.params.AWSAccessKeyId=r.accessKeyId,r.sessionToken&&(a.params.SecurityToken=r.sessionToken),delete a.params.Signature,a.params.Signature=this.signature(r),a.body=t.util.queryParamsToString(a.params),a.headers["Content-Length"]=a.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")}}),ce.exports=t.Signers.V2},90165:(ce,k,p)=>{var t=p(67047);t.Signers.V3=(0,t.util.inherit)(t.Signers.RequestSigner,{addAuthorization:function(r,n){var a=t.util.date.rfc822(n);this.request.headers["X-Amz-Date"]=a,r.sessionToken&&(this.request.headers["x-amz-security-token"]=r.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(r,a)},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(a){r.push(a.toLowerCase())}),r.sort().join(";")},canonicalHeaders:function(){var r=this.request.headers,n=[];return t.util.arrayEach(this.headersToSign(),function(u){n.push(u.toLowerCase().trim()+":"+String(r[u]).trim())}),n.sort().join("\n")+"\n"},headersToSign:function(){var r=[];return t.util.each(this.request.headers,function(a){("Host"===a||"Content-Encoding"===a||a.match(/^X-Amz/i))&&r.push(a)}),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"))}}),ce.exports=t.Signers.V3},51509:(ce,k,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"]}}),ce.exports=t.Signers.V3Https},37220:(ce,k,p)=>{var t=p(67047),w=p(14411),r="presigned-expires";t.Signers.V4=(0,t.util.inherit)(t.Signers.RequestSigner,{constructor:function(a,u,e){t.Signers.RequestSigner.call(this,a),this.serviceName=u,this.signatureCache="boolean"!=typeof(e=e||{}).signatureCache||e.signatureCache,this.operation=e.operation,this.signatureVersion=e.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(a,u){var e=t.util.date.iso8601(u).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(a,e):this.addHeaders(a,e),this.request.headers.Authorization=this.authorization(a,e)},addHeaders:function(a,u){this.request.headers["X-Amz-Date"]=u,a.sessionToken&&(this.request.headers["x-amz-security-token"]=a.sessionToken)},updateForPresigned:function(a,u){var e=this.credentialString(u),i={"X-Amz-Date":u,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":a.accessKeyId+"/"+e,"X-Amz-Expires":this.request.headers[r],"X-Amz-SignedHeaders":this.signedHeaders()};a.sessionToken&&(i["X-Amz-Security-Token"]=a.sessionToken),this.request.headers["Content-Type"]&&(i["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(i["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(i["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-")?i[m]=y:0===m.indexOf("x-amz-")&&(i[h]=y)}});var s=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=s+t.util.queryParamsToString(i)},authorization:function(a,u){var e=[],i=this.credentialString(u);return e.push(this.algorithm+" Credential="+a.accessKeyId+"/"+i),e.push("SignedHeaders="+this.signedHeaders()),e.push("Signature="+this.signature(a,u)),e.join(", ")},signature:function(a,u){var e=w.getSigningKey(a,u.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return t.util.crypto.hmac(e,this.stringToSign(u),"hex")},stringToSign:function(a){var u=[];return u.push("AWS4-HMAC-SHA256"),u.push(a),u.push(this.credentialString(a)),u.push(this.hexEncodedHash(this.canonicalString())),u.join("\n")},canonicalString:function(){var a=[],u=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(u=t.util.uriEscapePath(u)),a.push(this.request.method),a.push(u),a.push(this.request.search()),a.push(this.canonicalHeaders()+"\n"),a.push(this.signedHeaders()),a.push(this.hexEncodedBodyHash()),a.join("\n")},canonicalHeaders:function(){var a=[];t.util.each.call(this,this.request.headers,function(e,i){a.push([e,i])}),a.sort(function(e,i){return e[0].toLowerCase()<i[0].toLowerCase()?-1:1});var u=[];return t.util.arrayEach.call(this,a,function(e){var i=e[0].toLowerCase();if(this.isSignableHeader(i)){var s=e[1];if(typeof s>"u"||null===s||"function"!=typeof s.toString)throw t.util.error(new Error("Header "+i+" contains invalid value"),{code:"InvalidHeader"});u.push(i+":"+this.canonicalHeaderValues(s.toString()))}}),u.join("\n")},canonicalHeaderValues:function(a){return a.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},signedHeaders:function(){var a=[];return t.util.each.call(this,this.request.headers,function(u){u=u.toLowerCase(),this.isSignableHeader(u)&&a.push(u)}),a.sort().join(";")},credentialString:function(a){return w.createScope(a.substr(0,8),this.request.region,this.serviceName)},hexEncodedHash:function(a){return t.util.crypto.sha256(a,"hex")},hexEncodedBodyHash:function(){var a=this.request;return this.isPresigned()&&["s3","s3-object-lambda"].indexOf(this.serviceName)>-1&&!a.body?"UNSIGNED-PAYLOAD":a.headers["X-Amz-Content-Sha256"]?a.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(a){return 0===a.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(a)<0},isPresigned:function(){return!!this.request.headers[r]}}),ce.exports=t.Signers.V4},14411:(ce,k,p)=>{var t=p(67047),w={},d=[],n="aws4_request";ce.exports={createScope:function(u,e,i){return[u.substr(0,8),e,i,n].join("/")},getSigningKey:function(u,e,i,s,h){var m=[t.util.crypto.hmac(u.secretAccessKey,u.accessKeyId,"base64"),e,i,s].join("_");if((h=!1!==h)&&m in w)return w[m];var I=t.util.crypto.hmac("AWS4"+u.secretAccessKey,e,"buffer"),M=t.util.crypto.hmac(I,i,"buffer"),P=t.util.crypto.hmac(M,s,"buffer"),C=t.util.crypto.hmac(P,n,"buffer");return h&&(w[m]=C,d.push(m),d.length>50&&delete w[d.shift()]),C},emptyCache:function(){w={},d=[]}}},97759:ce=>{function k(p,t){this.currentState=t||null,this.states=p||{}}k.prototype.runTo=function(t,w,d,r){"function"==typeof t&&(r=d,d=w,w=t,t=null);var n=this,a=n.states[n.currentState];a.fn.call(d||n,r,function(u){if(u){if(!a.fail)return w?w.call(d,u):null;n.currentState=a.fail}else{if(!a.accept)return w?w.call(d):null;n.currentState=a.accept}if(n.currentState===t)return w?w.call(d,u):null;n.runTo(t,w,d,u)})},k.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},ce.exports=k},97340:(ce,k,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(a){return"%"+a.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(r){var n=[];return w.arrayEach(r.split("/"),function(a){n.push(w.uriEscape(a))}),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=[],a=w.uriEscape,u=Object.keys(r).sort();return w.arrayEach(u,function(e){var i=r[e],s=a(e),h=s+"=";if(Array.isArray(i)){var y=[];w.arrayEach(i,function(m){y.push(a(m))}),h=s+"="+y.sort().join("&"+s+"=")}else null!=i&&(h=s+"="+a(i));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 a=new w.Buffer(d);return void 0!==r&&"function"==typeof a.fill&&a.fill(r,void 0,void 0,n),a},toStream:function(r){w.Buffer.isBuffer(r)||(r=w.buffer.toBuffer(r));var n=new w.stream.Readable,a=0;return n._read=function(u){if(a>=r.length)return n.push(null);var e=a+u;e>r.length&&(e=r.length),n.push(r.slice(a,e)),a=e},n},concat:function(d){var a,u,r=0,n=0;for(u=0;u<d.length;u++)r+=d[u].length;for(a=w.buffer.alloc(r),u=0;u<d.length;u++)d[u].copy(a,n),n+=d[u].length;return a}},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,a={};return w.arrayEach(r.split(/\r?\n/),function(u){if("["===(u=u.split(/(^|\s)[;#]/)[0].trim())[0]&&"]"===u[u.length-1]){if("__proto__"===(n=u.substring(1,u.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 i=u.indexOf("=");if(-1!==i&&0!==i&&i!==u.length-1){var m=u.substring(0,i).trim(),I=u.substring(i+1).trim();a[n]=a[n]||{},a[n][m]=I}}}),a}},fn:{noop:function(){},callback:function(d){if(d)throw d},makeAsync:function(r,n){return n&&n<=r.length?r:function(){var a=Array.prototype.slice.call(arguments,0),u=a.pop(),e=r.apply(null,a);u(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,a=-1;"string"==typeof r&&(r=w.buffer.toBuffer(r));for(var u=0;u<r.length;u++)a=a>>>8^n[255&(a^r.readUInt8(u))];return(-1^a)>>>0},hmac:function(r,n,a,u){return a||(a="binary"),"buffer"===a&&(a=void 0),u||(u="sha256"),"string"==typeof n&&(n=w.buffer.toBuffer(n)),w.crypto.lib.createHmac(u,r).update(n).digest(a)},md5:function(r,n,a){return w.crypto.hash("md5",r,n,a)},sha256:function(r,n,a){return w.crypto.hash("sha256",r,n,a)},hash:function(d,r,n,a){var u=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),i=w.Buffer.isBuffer(r);if(w.isBrowser()&&typeof ArrayBuffer<"u"&&r&&r.buffer instanceof ArrayBuffer&&(i=!0),a&&"object"==typeof r&&"function"==typeof r.on&&!i)r.on("data",function(I){u.update(I)}),r.on("error",function(I){a(I)}),r.on("end",function(){a(null,u.digest(n))});else{if(!(a&&e&&!i&&typeof FileReader<"u")){w.isBrowser()&&"object"==typeof r&&!i&&(r=new w.Buffer(new Uint8Array(r)));var m=u.update(r).digest(n);return a&&a(null,m),m}var s=0,y=new FileReader;y.onerror=function(){a(new Error("Failed to read data."))},y.onload=function(){var I=new w.Buffer(new Uint8Array(y.result));u.update(I),s+=I.length,y._continueReading()},y._continueReading=function(){if(s>=r.size)a(null,u.digest(n));else{var I=s+524288;I>r.size&&(I=r.size),y.readAsArrayBuffer(e.call(r,s,I))}},y._continueReading()}},toHex:function(r){for(var n=[],a=0;a<r.length;a++)n.push(("0"+r.charCodeAt(a).toString(16)).substr(-2,2));return n.join("")},createHash:function(r){return w.crypto.lib.createHash(r)}},abort:{},each:function(r,n){for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)&&n.call(this,a,r[a])===w.abort)break},arrayEach:function(r,n){for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)&&n.call(this,r[a],parseInt(a,10))===w.abort)break},update:function(r,n){return w.each(n,function(u,e){r[u]=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 a in r)n[a]=r[a];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(),a=n.match(/^\s*function (.+)\(/);return a?a[1]:n},error:function(r,n){var a=null;return"string"==typeof r.message&&""!==r.message&&("string"==typeof n||n&&n.message)&&((a=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,a&&(r.originalError=a),r},inherit:function(r,n){var a=null;if(void 0===n)n=r,r=Object,a={};else{var u=function(){};u.prototype=r.prototype,a=new u}return n.constructor===Object&&(n.constructor=function(){if(r!==Object)return r.apply(this,arguments)}),n.constructor.prototype=a,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 a in arguments[n].prototype){var u=arguments[n].prototype[a];"constructor"!==a&&(r.prototype[a]=u)}return r},hideProperties:function(r,n){"function"==typeof Object.defineProperty&&w.arrayEach(n,function(a){Object.defineProperty(r,a,{enumerable:!1,writable:!0,configurable:!0})})},property:function(r,n,a,u,e){var i={configurable:!0,enumerable:void 0===u||u};"function"!=typeof a||e?(i.value=a,i.writable=!0):i.get=a,Object.defineProperty(r,n,i)},memoizedProperty:function(r,n,a,u){var e=null;w.property(r,n,function(){return null===e&&(e=a()),e},u)},hoistPayloadMember:function(r){var n=r.request,u=n.service.api.operations[n.operation],e=u.output;e.payload&&!u.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 a=w.stream.Stream,u=p(47310);if("function"==typeof a&&r instanceof a){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=u.createReadStream(r.path,e)}}w.crypto.sha256(r,"hex",function(i,s){i?n(i):n(null,s)})},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 a=!1;void 0===n&&t&&t.config&&(n=t.config.getPromisesDependency()),void 0===n&&typeof Promise<"u"&&(n=Promise),"function"!=typeof n&&(a=!0),Array.isArray(r)||(r=[r]);for(var u=0;u<r.length;u++){var e=r[u];a?e.deletePromisesFromClass&&e.deletePromisesFromClass():e.addPromisesToClass&&e.addPromisesToClass(n)}},promisifyMethod:function(r,n){return function(){var u=this,e=Array.prototype.slice.call(arguments);return new n(function(i,s){e.push(function(h,y){h?s(h):i(y)}),u[r].apply(u,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,a){n||(n={});var u=n.customBackoff||null;if("function"==typeof u)return u(r,a);var e="number"==typeof n.base?n.base:100;return Math.random()*(Math.pow(2,r)*e)},handleRequestWithRetries:function(r,n,a){n||(n={});var u=t.HttpClient.getInstance(),e=n.httpOptions||{},i=0,s=function(y){var m=n.maxRetries||0;if(y&&"TimeoutError"===y.code&&(y.retryable=!0),y&&y.retryable&&i<m){var I=w.calculateRetryDelay(i,n.retryDelayOptions,y);if(I>=0)return i++,void setTimeout(h,I+(y.retryAfter||0))}a(y)},h=function(){var y="";u.handleRequest(r,e,function(m){m.on("data",function(I){y+=I.toString()}),m.on("end",function(){var I=m.statusCode;if(I<300)a(null,y);else{var M=1e3*parseInt(m.headers["retry-after"],10)||0,P=w.error(new Error,{statusCode:I,retryable:I>=500||429===I});M&&P.retryable&&(P.retryAfter=M),s(P)}})},s)};t.util.defer(h)},uuid:{v4:function(){return p(33239).v4()}},convertPayloadToString:function(r){var n=r.request,u=n.service.api.operations[n.operation].output||{};u.payload&&r.data[u.payload]&&(r.data[u.payload]=r.data[u.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 a=(n||{})[r.operation];if(a&&a.input&&a.input.payload)return a.input.members[a.input.payload]}},getProfilesFromSharedConfig:function(r,n){var a={},u={};process.env[w.configOptInEnv]&&(u=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 i=0,s=Object.keys(u);i<s.length;i++)a[s[i]]=h(a[s[i]]||{},u[s[i]]);for(i=0,s=Object.keys(e);i<s.length;i++)a[s[i]]=h(a[s[i]]||{},e[s[i]]);return a;function h(y,m){for(var I=0,M=Object.keys(m);I<M.length;I++)y[M[I]]=m[M[I]];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"};ce.exports=w},18771:(ce,k,p)=>{var t=p(97340),w=p(36925);function d(){}function r(h,y){for(var m=h.getElementsByTagName(y),I=0,M=m.length;I<M;I++)if(m[I].parentNode===h)return m[I]}function n(h,y){switch(y||(y={}),y.type){case"structure":return a(h,y);case"map":return function u(h,y){for(var m={},I=y.key.name||"key",M=y.value.name||"value",P=y.flattened?y.name:"entry",C=h.firstElementChild;C;){if(C.nodeName===P){var D=r(C,I).textContent,W=r(C,M);m[D]=n(W,y.value)}C=C.nextElementSibling}return m}(h,y);case"list":return function e(h,y){for(var m=[],I=y.flattened?y.name:y.member.name||"member",M=h.firstElementChild;M;)M.nodeName===I&&m.push(n(M,y.member)),M=M.nextElementSibling;return m}(h,y);case void 0:case null:return function s(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 I=m.nodeName;Object.prototype.hasOwnProperty.call(y.members,I)?y.members[I].type="list":y.members[I]={name:I},m=m.nextElementSibling}return a(h,y)}(h);default:return function i(h,y){if(h.getAttribute){var m=h.getAttribute("encoding");"base64"===m&&(y=new w.create({type:m}))}var I=h.textContent;return""===I&&(I=null),"function"==typeof y.toType?y.toType(I):I}(h,y)}}function a(h,y){var m={};return null===h||t.each(y.members,function(I,M){if(M.isXmlAttribute)Object.prototype.hasOwnProperty.call(h.attributes,M.name)&&(m[I]=n({textContent:h.attributes[M.name].value},M));else{var C=M.flattened?h:r(h,M.name);C?m[I]=n(C,M):!M.flattened&&"list"===M.type&&!y.api.xmlNoDefaultLists&&(m[I]=M.defaultValue)}}),m}d.prototype.parse=function(h,y){if(""===h.replace(/^\s+/,""))return{};var m,I;try{if(window.DOMParser){try{m=(new DOMParser).parseFromString(h,"text/xml")}catch(Q){throw t.error(new Error("Parse error in document"),{originalError:Q,code:"XMLParserError",retryable:!0})}if(null===m.documentElement)throw t.error(new Error("Cannot parse empty document."),{code:"XMLParserError",retryable:!0});var P=m.getElementsByTagName("parsererror")[0];if(P&&(P.parentNode===m||"body"===P.parentNode.nodeName||P.parentNode.parentNode===m||"body"===P.parentNode.parentNode.nodeName)){var C=P.getElementsByTagName("div")[0]||P;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(Q){I=Q}if(m&&m.documentElement&&!I){var D=n(m.documentElement,y),W=r(m.documentElement,"ResponseMetadata");return W&&(D.ResponseMetadata=n(W,{})),D}if(I)throw t.error(I||new Error,{code:"XMLParserError",retryable:!0});return{}},ce.exports=d},83457:(ce,k,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 a(h,y,m){t.arrayEach(m.memberNames,function(I){var M=m.members[I];if("body"===M.location){var P=y[I],C=M.name;if(null!=P)if(M.isXmlAttribute)h.addAttribute(C,P);else if(M.flattened)n(h,P,M);else{var D=new w(C);h.addChildNode(D),s(D,M),n(D,P,M)}}})}(h,y,m);case"map":return function u(h,y,m){var I=m.key.name||"key",M=m.value.name||"value";t.each(y,function(P,C){var D=new w(m.flattened?m.name:"entry");h.addChildNode(D);var W=new w(I),Q=new w(M);D.addChildNode(W),D.addChildNode(Q),n(W,P,m.key),n(Q,C,m.value)})}(h,y,m);case"list":return function e(h,y,m){t.arrayEach(y,m.flattened?function(I){var P=new w(m.member.name||m.name);h.addChildNode(P),n(P,I,m.member)}:function(I){var P=new w(m.member.name||"member");h.addChildNode(P),n(P,I,m.member)})}(h,y,m);default:return function i(h,y,m){h.addChildNode(new d(m.toWireFormat(y)))}(h,y,m)}}function s(h,y,m){var I,M="xmlns";y.xmlNamespaceUri?(I=y.xmlNamespaceUri,y.xmlNamespacePrefix&&(M+=":"+y.xmlNamespacePrefix)):m&&y.api.xmlNamespaceUri&&(I=y.api.xmlNamespaceUri),I&&h.addAttribute(M,I)}r.prototype.toXML=function(h,y,m,I){var M=new w(m);return s(M,y,!0),n(M,h,y),M.children.length>0||I?M.toString():""},ce.exports=r},12048:ce=>{ce.exports={escapeAttribute:function k(p){return p.replace(/&/g,"&").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}}},80352:ce=>{ce.exports={escapeElement:function k(p){return p.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}}},86147:(ce,k,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,a=0,u=Object.keys(n);a<u.length;a++){var e=u[a],i=n[e];typeof i<"u"&&null!==i&&(r+=" "+e+'="'+t(""+i)+'"')}return r+(d?">"+this.children.map(function(s){return s.toString()}).join("")+"</"+this.name+">":"/>")},ce.exports={XmlNode:w}},88693:(ce,k,p)=>{var t=p(80352).escapeElement;function w(d){this.value=d}w.prototype.toString=function(){return t(""+this.value)},ce.exports={XmlText:w}},71899:(ce,k,p)=>{"use strict";var w=p(66751),d=p(24895),r=p(52866);function a(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(v,O){if(a()<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,F){if(!(e.TYPED_ARRAY_SUPPORT||this instanceof e))return new e(v,O,F);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 i(this,v,O,F)}function i(v,O,F,re){if("number"==typeof O)throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&O instanceof ArrayBuffer?function M(v,O,F,re){if(F<0||O.byteLength<F)throw new RangeError("'offset' is out of bounds");if(O.byteLength<F+(re||0))throw new RangeError("'length' is out of bounds");return O=void 0===F&&void 0===re?new Uint8Array(O):void 0===re?new Uint8Array(O,F):new Uint8Array(O,F,re),e.TYPED_ARRAY_SUPPORT?(v=O).__proto__=e.prototype:v=I(v,O),v}(v,O,F,re):"string"==typeof O?function m(v,O,F){if(("string"!=typeof F||""===F)&&(F="utf8"),!e.isEncoding(F))throw new TypeError('"encoding" must be a valid string encoding');var re=0|W(O,F),ve=(v=u(v,re)).write(O,F);return ve!==re&&(v=v.slice(0,ve)),v}(v,O,F):function P(v,O){if(e.isBuffer(O)){var F=0|C(O.length);return 0===(v=u(v,F)).length||O.copy(v,0,0,F),v}if(O){if(typeof ArrayBuffer<"u"&&O.buffer instanceof ArrayBuffer||"length"in O)return"number"!=typeof O.length||function V(v){return v!=v}(O.length)?u(v,0):I(v,O);if("Buffer"===O.type&&r(O.data))return I(v,O.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(v,O)}function s(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(s(O),v=u(v,O<0?0:0|C(O)),!e.TYPED_ARRAY_SUPPORT)for(var F=0;F<O;++F)v[F]=0;return v}function I(v,O){var F=O.length<0?0:0|C(O.length);v=u(v,F);for(var re=0;re<F;re+=1)v[re]=255&O[re];return v}function C(v){if(v>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|v}function W(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 F=v.length;if(0===F)return 0;for(var re=!1;;)switch(O){case"ascii":case"latin1":case"binary":return F;case"utf8":case"utf-8":case void 0:return me(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*F;case"hex":return F>>>1;case"base64":return Me(v).length;default:if(re)return me(v).length;O=(""+O).toLowerCase(),re=!0}}function Q(v,O,F){var re=!1;if((void 0===O||O<0)&&(O=0),O>this.length||((void 0===F||F>this.length)&&(F=this.length),F<=0)||(F>>>=0)<=(O>>>=0))return"";for(v||(v="utf8");;)switch(v){case"hex":return oe(this,O,F);case"utf8":case"utf-8":return z(this,O,F);case"ascii":return X(this,O,F);case"latin1":case"binary":return he(this,O,F);case"base64":return U(this,O,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,O,F);default:if(re)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),re=!0}}function H(v,O,F){var re=v[O];v[O]=v[F],v[F]=re}function L(v,O,F,re,ve){if(0===v.length)return-1;if("string"==typeof F?(re=F,F=0):F>2147483647?F=2147483647:F<-2147483648&&(F=-2147483648),F=+F,isNaN(F)&&(F=ve?0:v.length-1),F<0&&(F=v.length+F),F>=v.length){if(ve)return-1;F=v.length-1}else if(F<0){if(!ve)return-1;F=0}if("string"==typeof O&&(O=e.from(O,re)),e.isBuffer(O))return 0===O.length?-1:g(v,O,F,re,ve);if("number"==typeof O)return O&=255,e.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?ve?Uint8Array.prototype.indexOf.call(v,O,F):Uint8Array.prototype.lastIndexOf.call(v,O,F):g(v,[O],F,re,ve);throw new TypeError("val must be string, number or Buffer")}function g(v,O,F,re,ve){var ye,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,F/=2}function de(qe,ze){return 1===xe?qe[ze]:qe.readUInt16BE(ze*xe)}if(ve){var Oe=-1;for(ye=F;ye<Te;ye++)if(de(v,ye)===de(O,-1===Oe?0:ye-Oe)){if(-1===Oe&&(Oe=ye),ye-Oe+1===te)return Oe*xe}else-1!==Oe&&(ye-=ye-Oe),Oe=-1}else for(F+te>Te&&(F=Te-te),ye=F;ye>=0;ye--){for(var Ie=!0,Ue=0;Ue<te;Ue++)if(de(v,ye+Ue)!==de(O,Ue)){Ie=!1;break}if(Ie)return ye}return-1}function R(v,O,F,re){F=Number(F)||0;var ve=v.length-F;re?(re=Number(re))>ve&&(re=ve):re=ve;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[F+Te]=te}return Te}function c(v,O,F,re){return ie(me(O,v.length-F),v,F,re)}function _(v,O,F,re){return ie(function Re(v){for(var O=[],F=0;F<v.length;++F)O.push(255&v.charCodeAt(F));return O}(O),v,F,re)}function l(v,O,F,re){return _(v,O,F,re)}function T(v,O,F,re){return ie(Me(O),v,F,re)}function B(v,O,F,re){return ie(function De(v,O){for(var F,re,xe=[],Te=0;Te<v.length&&!((O-=2)<0);++Te)re=(F=v.charCodeAt(Te))>>8,xe.push(F%256),xe.push(re);return xe}(O,v.length-F),v,F,re)}function U(v,O,F){return w.fromByteArray(0===O&&F===v.length?v:v.slice(O,F))}function z(v,O,F){F=Math.min(v.length,F);for(var re=[],ve=O;ve<F;){var de,ye,Oe,Ie,xe=v[ve],Te=null,te=xe>239?4:xe>223?3:xe>191?2:1;if(ve+te<=F)switch(te){case 1:xe<128&&(Te=xe);break;case 2:128==(192&(de=v[ve+1]))&&(Ie=(31&xe)<<6|63&de)>127&&(Te=Ie);break;case 3:ye=v[ve+2],128==(192&(de=v[ve+1]))&&128==(192&ye)&&(Ie=(15&xe)<<12|(63&de)<<6|63&ye)>2047&&(Ie<55296||Ie>57343)&&(Te=Ie);break;case 4:ye=v[ve+2],Oe=v[ve+3],128==(192&(de=v[ve+1]))&&128==(192&ye)&&128==(192&Oe)&&(Ie=(15&xe)<<18|(63&de)<<12|(63&ye)<<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),ve+=te}return function pe(v){var O=v.length;if(O<=4096)return String.fromCharCode.apply(String,v);for(var F="",re=0;re<O;)F+=String.fromCharCode.apply(String,v.slice(re,re+=4096));return F}(re)}function X(v,O,F){var re="";F=Math.min(v.length,F);for(var ve=O;ve<F;++ve)re+=String.fromCharCode(127&v[ve]);return re}function he(v,O,F){var re="";F=Math.min(v.length,F);for(var ve=O;ve<F;++ve)re+=String.fromCharCode(v[ve]);return re}function oe(v,O,F){var re=v.length;(!O||O<0)&&(O=0),(!F||F<0||F>re)&&(F=re);for(var ve="",xe=O;xe<F;++xe)ve+=_e(v[xe]);return ve}function K(v,O,F){for(var re=v.slice(O,F),ve="",xe=0;xe<re.length;xe+=2)ve+=String.fromCharCode(re[xe]+256*re[xe+1]);return ve}function Y(v,O,F){if(v%1!=0||v<0)throw new RangeError("offset is not uint");if(v+O>F)throw new RangeError("Trying to access beyond buffer length")}function ne(v,O,F,re,ve,xe){if(!e.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(O>ve||O<xe)throw new RangeError('"value" argument is out of bounds');if(F+re>v.length)throw new RangeError("Index out of range")}function $(v,O,F,re){O<0&&(O=65535+O+1);for(var ve=0,xe=Math.min(v.length-F,2);ve<xe;++ve)v[F+ve]=(O&255<<8*(re?ve:1-ve))>>>8*(re?ve:1-ve)}function A(v,O,F,re){O<0&&(O=4294967295+O+1);for(var ve=0,xe=Math.min(v.length-F,4);ve<xe;++ve)v[F+ve]=O>>>8*(re?ve:3-ve)&255}function b(v,O,F,re,ve,xe){if(F+re>v.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("Index out of range")}function x(v,O,F,re,ve){return ve||b(v,0,F,4),d.write(v,O,F,re,23,4),F+4}function N(v,O,F,re,ve){return ve||b(v,0,F,8),d.write(v,O,F,re,52,8),F+8}k.lW=e,k.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}}(),a(),e.poolSize=8192,e._augment=function(v){return v.__proto__=e.prototype,v},e.from=function(v,O,F){return i(null,v,O,F)},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,F){return function h(v,O,F,re){return s(O),O<=0?u(v,O):void 0!==F?"string"==typeof re?u(v,O).fill(F,re):u(v,O).fill(F):u(v,O)}(null,v,O,F)},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,F){if(!e.isBuffer(O)||!e.isBuffer(F))throw new TypeError("Arguments must be Buffers");if(O===F)return 0;for(var re=O.length,ve=F.length,xe=0,Te=Math.min(re,ve);xe<Te;++xe)if(O[xe]!==F[xe]){re=O[xe],ve=F[xe];break}return re<ve?-1:ve<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,F){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===F)for(F=0,re=0;re<O.length;++re)F+=O[re].length;var ve=e.allocUnsafe(F),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(ve,xe),xe+=Te.length}return ve},e.byteLength=W,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 F=0;F<O;F+=2)H(this,F,F+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 F=0;F<O;F+=4)H(this,F,F+3),H(this,F+1,F+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 F=0;F<O;F+=8)H(this,F,F+7),H(this,F+1,F+6),H(this,F+2,F+5),H(this,F+3,F+4);return this},e.prototype.toString=function(){var O=0|this.length;return 0===O?"":0===arguments.length?z(this,0,O):Q.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="",F=k.h2;return this.length>0&&(O=this.toString("hex",0,F).match(/.{2}/g).join(" "),this.length>F&&(O+=" ... ")),"<Buffer "+O+">"},e.prototype.compare=function(O,F,re,ve,xe){if(!e.isBuffer(O))throw new TypeError("Argument must be a Buffer");if(void 0===F&&(F=0),void 0===re&&(re=O?O.length:0),void 0===ve&&(ve=0),void 0===xe&&(xe=this.length),F<0||re>O.length||ve<0||xe>this.length)throw new RangeError("out of range index");if(ve>=xe&&F>=re)return 0;if(ve>=xe)return-1;if(F>=re)return 1;if(this===O)return 0;for(var Te=(xe>>>=0)-(ve>>>=0),te=(re>>>=0)-(F>>>=0),de=Math.min(Te,te),ye=this.slice(ve,xe),Oe=O.slice(F,re),Ie=0;Ie<de;++Ie)if(ye[Ie]!==Oe[Ie]){Te=ye[Ie],te=Oe[Ie];break}return Te<te?-1:te<Te?1:0},e.prototype.includes=function(O,F,re){return-1!==this.indexOf(O,F,re)},e.prototype.indexOf=function(O,F,re){return L(this,O,F,re,!0)},e.prototype.lastIndexOf=function(O,F,re){return L(this,O,F,re,!1)},e.prototype.write=function(O,F,re,ve){if(void 0===F)ve="utf8",re=this.length,F=0;else if(void 0===re&&"string"==typeof F)ve=F,re=this.length,F=0;else{if(!isFinite(F))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");F|=0,isFinite(re)?(re|=0,void 0===ve&&(ve="utf8")):(ve=re,re=void 0)}var xe=this.length-F;if((void 0===re||re>xe)&&(re=xe),O.length>0&&(re<0||F<0)||F>this.length)throw new RangeError("Attempt to write outside buffer bounds");ve||(ve="utf8");for(var Te=!1;;)switch(ve){case"hex":return R(this,O,F,re);case"utf8":case"utf-8":return c(this,O,F,re);case"ascii":return _(this,O,F,re);case"latin1":case"binary":return l(this,O,F,re);case"base64":return T(this,O,F,re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,O,F,re);default:if(Te)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),Te=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},e.prototype.slice=function(O,F){var ve,re=this.length;if((O=~~O)<0?(O+=re)<0&&(O=0):O>re&&(O=re),(F=void 0===F?re:~~F)<0?(F+=re)<0&&(F=0):F>re&&(F=re),F<O&&(F=O),e.TYPED_ARRAY_SUPPORT)(ve=this.subarray(O,F)).__proto__=e.prototype;else{var xe=F-O;ve=new e(xe,void 0);for(var Te=0;Te<xe;++Te)ve[Te]=this[Te+O]}return ve},e.prototype.readUIntLE=function(O,F,re){O|=0,F|=0,re||Y(O,F,this.length);for(var ve=this[O],xe=1,Te=0;++Te<F&&(xe*=256);)ve+=this[O+Te]*xe;return ve},e.prototype.readUIntBE=function(O,F,re){O|=0,F|=0,re||Y(O,F,this.length);for(var ve=this[O+--F],xe=1;F>0&&(xe*=256);)ve+=this[O+--F]*xe;return ve},e.prototype.readUInt8=function(O,F){return F||Y(O,1,this.length),this[O]},e.prototype.readUInt16LE=function(O,F){return F||Y(O,2,this.length),this[O]|this[O+1]<<8},e.prototype.readUInt16BE=function(O,F){return F||Y(O,2,this.length),this[O]<<8|this[O+1]},e.prototype.readUInt32LE=function(O,F){return F||Y(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+16777216*this[O+3]},e.prototype.readUInt32BE=function(O,F){return F||Y(O,4,this.length),16777216*this[O]+(this[O+1]<<16|this[O+2]<<8|this[O+3])},e.prototype.readIntLE=function(O,F,re){O|=0,F|=0,re||Y(O,F,this.length);for(var ve=this[O],xe=1,Te=0;++Te<F&&(xe*=256);)ve+=this[O+Te]*xe;return ve>=(xe*=128)&&(ve-=Math.pow(2,8*F)),ve},e.prototype.readIntBE=function(O,F,re){O|=0,F|=0,re||Y(O,F,this.length);for(var ve=F,xe=1,Te=this[O+--ve];ve>0&&(xe*=256);)Te+=this[O+--ve]*xe;return Te>=(xe*=128)&&(Te-=Math.pow(2,8*F)),Te},e.prototype.readInt8=function(O,F){return F||Y(O,1,this.length),128&this[O]?-1*(255-this[O]+1):this[O]},e.prototype.readInt16LE=function(O,F){F||Y(O,2,this.length);var re=this[O]|this[O+1]<<8;return 32768&re?4294901760|re:re},e.prototype.readInt16BE=function(O,F){F||Y(O,2,this.length);var re=this[O+1]|this[O]<<8;return 32768&re?4294901760|re:re},e.prototype.readInt32LE=function(O,F){return F||Y(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},e.prototype.readInt32BE=function(O,F){return F||Y(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},e.prototype.readFloatLE=function(O,F){return F||Y(O,4,this.length),d.read(this,O,!0,23,4)},e.prototype.readFloatBE=function(O,F){return F||Y(O,4,this.length),d.read(this,O,!1,23,4)},e.prototype.readDoubleLE=function(O,F){return F||Y(O,8,this.length),d.read(this,O,!0,52,8)},e.prototype.readDoubleBE=function(O,F){return F||Y(O,8,this.length),d.read(this,O,!1,52,8)},e.prototype.writeUIntLE=function(O,F,re,ve){O=+O,F|=0,re|=0,ve||ne(this,O,F,re,Math.pow(2,8*re)-1,0);var Te=1,te=0;for(this[F]=255&O;++te<re&&(Te*=256);)this[F+te]=O/Te&255;return F+re},e.prototype.writeUIntBE=function(O,F,re,ve){O=+O,F|=0,re|=0,ve||ne(this,O,F,re,Math.pow(2,8*re)-1,0);var Te=re-1,te=1;for(this[F+Te]=255&O;--Te>=0&&(te*=256);)this[F+Te]=O/te&255;return F+re},e.prototype.writeUInt8=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,1,255,0),e.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),this[F]=255&O,F+1},e.prototype.writeUInt16LE=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[F]=255&O,this[F+1]=O>>>8):$(this,O,F,!0),F+2},e.prototype.writeUInt16BE=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[F]=O>>>8,this[F+1]=255&O):$(this,O,F,!1),F+2},e.prototype.writeUInt32LE=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[F+3]=O>>>24,this[F+2]=O>>>16,this[F+1]=O>>>8,this[F]=255&O):A(this,O,F,!0),F+4},e.prototype.writeUInt32BE=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[F]=O>>>24,this[F+1]=O>>>16,this[F+2]=O>>>8,this[F+3]=255&O):A(this,O,F,!1),F+4},e.prototype.writeIntLE=function(O,F,re,ve){if(O=+O,F|=0,!ve){var xe=Math.pow(2,8*re-1);ne(this,O,F,re,xe-1,-xe)}var Te=0,te=1,de=0;for(this[F]=255&O;++Te<re&&(te*=256);)O<0&&0===de&&0!==this[F+Te-1]&&(de=1),this[F+Te]=(O/te>>0)-de&255;return F+re},e.prototype.writeIntBE=function(O,F,re,ve){if(O=+O,F|=0,!ve){var xe=Math.pow(2,8*re-1);ne(this,O,F,re,xe-1,-xe)}var Te=re-1,te=1,de=0;for(this[F+Te]=255&O;--Te>=0&&(te*=256);)O<0&&0===de&&0!==this[F+Te+1]&&(de=1),this[F+Te]=(O/te>>0)-de&255;return F+re},e.prototype.writeInt8=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,1,127,-128),e.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),O<0&&(O=255+O+1),this[F]=255&O,F+1},e.prototype.writeInt16LE=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[F]=255&O,this[F+1]=O>>>8):$(this,O,F,!0),F+2},e.prototype.writeInt16BE=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[F]=O>>>8,this[F+1]=255&O):$(this,O,F,!1),F+2},e.prototype.writeInt32LE=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[F]=255&O,this[F+1]=O>>>8,this[F+2]=O>>>16,this[F+3]=O>>>24):A(this,O,F,!0),F+4},e.prototype.writeInt32BE=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),e.TYPED_ARRAY_SUPPORT?(this[F]=O>>>24,this[F+1]=O>>>16,this[F+2]=O>>>8,this[F+3]=255&O):A(this,O,F,!1),F+4},e.prototype.writeFloatLE=function(O,F,re){return x(this,O,F,!0,re)},e.prototype.writeFloatBE=function(O,F,re){return x(this,O,F,!1,re)},e.prototype.writeDoubleLE=function(O,F,re){return N(this,O,F,!0,re)},e.prototype.writeDoubleBE=function(O,F,re){return N(this,O,F,!1,re)},e.prototype.copy=function(O,F,re,ve){if(re||(re=0),!ve&&0!==ve&&(ve=this.length),F>=O.length&&(F=O.length),F||(F=0),ve>0&&ve<re&&(ve=re),ve===re||0===O.length||0===this.length)return 0;if(F<0)throw new RangeError("targetStart out of bounds");if(re<0||re>=this.length)throw new RangeError("sourceStart out of bounds");if(ve<0)throw new RangeError("sourceEnd out of bounds");ve>this.length&&(ve=this.length),O.length-F<ve-re&&(ve=O.length-F+re);var Te,xe=ve-re;if(this===O&&re<F&&F<ve)for(Te=xe-1;Te>=0;--Te)O[Te+F]=this[Te+re];else if(xe<1e3||!e.TYPED_ARRAY_SUPPORT)for(Te=0;Te<xe;++Te)O[Te+F]=this[Te+re];else Uint8Array.prototype.set.call(O,this.subarray(re,re+xe),F);return xe},e.prototype.fill=function(O,F,re,ve){if("string"==typeof O){if("string"==typeof F?(ve=F,F=0,re=this.length):"string"==typeof re&&(ve=re,re=this.length),1===O.length){var xe=O.charCodeAt(0);xe<256&&(O=xe)}if(void 0!==ve&&"string"!=typeof ve)throw new TypeError("encoding must be a string");if("string"==typeof ve&&!e.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve)}else"number"==typeof O&&(O&=255);if(F<0||this.length<F||this.length<re)throw new RangeError("Out of range index");if(re<=F)return this;var Te;if(F>>>=0,re=void 0===re?this.length:re>>>0,O||(O=0),"number"==typeof O)for(Te=F;Te<re;++Te)this[Te]=O;else{var te=e.isBuffer(O)?O:me(new e(O,ve).toString()),de=te.length;for(Te=0;Te<re-F;++Te)this[Te+F]=te[Te%de]}return this};var q=/[^+\/0-9A-Za-z-_]/g;function _e(v){return v<16?"0"+v.toString(16):v.toString(16)}function me(v,O){O=O||1/0;for(var F,re=v.length,ve=null,xe=[],Te=0;Te<re;++Te){if((F=v.charCodeAt(Te))>55295&&F<57344){if(!ve){if(F>56319){(O-=3)>-1&&xe.push(239,191,189);continue}if(Te+1===re){(O-=3)>-1&&xe.push(239,191,189);continue}ve=F;continue}if(F<56320){(O-=3)>-1&&xe.push(239,191,189),ve=F;continue}F=65536+(ve-55296<<10|F-56320)}else ve&&(O-=3)>-1&&xe.push(239,191,189);if(ve=null,F<128){if((O-=1)<0)break;xe.push(F)}else if(F<2048){if((O-=2)<0)break;xe.push(F>>6|192,63&F|128)}else if(F<65536){if((O-=3)<0)break;xe.push(F>>12|224,F>>6&63|128,63&F|128)}else{if(!(F<1114112))throw new Error("Invalid code point");if((O-=4)<0)break;xe.push(F>>18|240,F>>12&63|128,F>>6&63|128,63&F|128)}}return xe}function Me(v){return w.toByteArray(function ee(v){if((v=function ue(v){return v.trim?v.trim():v.replace(/^\s+|\s+$/g,"")}(v).replace(q,"")).length<2)return"";for(;v.length%4!=0;)v+="=";return v}(v))}function ie(v,O,F,re){for(var ve=0;ve<re&&!(ve+F>=O.length||ve>=v.length);++ve)O[ve+F]=v[ve];return ve}},24895:(ce,k)=>{k.read=function(p,t,w,d,r){var n,a,u=8*r-d-1,e=(1<<u)-1,i=e>>1,s=-7,h=w?r-1:0,y=w?-1:1,m=p[t+h];for(h+=y,n=m&(1<<-s)-1,m>>=-s,s+=u;s>0;n=256*n+p[t+h],h+=y,s-=8);for(a=n&(1<<-s)-1,n>>=-s,s+=d;s>0;a=256*a+p[t+h],h+=y,s-=8);if(0===n)n=1-i;else{if(n===e)return a?NaN:1/0*(m?-1:1);a+=Math.pow(2,d),n-=i}return(m?-1:1)*a*Math.pow(2,n-d)},k.write=function(p,t,w,d,r,n){var a,u,e,i=8*n-r-1,s=(1<<i)-1,h=s>>1,y=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,m=d?0:n-1,I=d?1:-1,M=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=s):(a=Math.floor(Math.log(t)/Math.LN2),t*(e=Math.pow(2,-a))<1&&(a--,e*=2),(t+=a+h>=1?y/e:y*Math.pow(2,1-h))*e>=2&&(a++,e/=2),a+h>=s?(u=0,a=s):a+h>=1?(u=(t*e-1)*Math.pow(2,r),a+=h):(u=t*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;p[w+m]=255&u,m+=I,u/=256,r-=8);for(a=a<<r|u,i+=r;i>0;p[w+m]=255&a,m+=I,a/=256,i-=8);p[w+m-I]|=128*M}},8520:ce=>{function k(){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}ce.exports=k,k.EventEmitter=k,k.prototype._events=void 0,k.prototype._maxListeners=void 0,k.defaultMaxListeners=10,k.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},k.prototype.emit=function(r){var n,a,u,e,i,s;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(a=this._events[r]))return!1;if(p(a))switch(arguments.length){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:e=Array.prototype.slice.call(arguments,1),a.apply(this,e)}else if(w(a))for(e=Array.prototype.slice.call(arguments,1),u=(s=a.slice()).length,i=0;i<u;i++)s[i].apply(this,e);return!0},k.prototype.on=k.prototype.addListener=function(r,n){var a;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&&(a=d(this._maxListeners)?k.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[r].length>a&&(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},k.prototype.once=function(r,n){if(!p(n))throw TypeError("listener must be a function");var a=!1;function u(){this.removeListener(r,u),a||(a=!0,n.apply(this,arguments))}return u.listener=n,this.on(r,u),this},k.prototype.removeListener=function(r,n){var a,u,e,i;if(!p(n))throw TypeError("listener must be a function");if(!this._events||!this._events[r])return this;if(e=(a=this._events[r]).length,u=-1,a===n||p(a.listener)&&a.listener===n)delete this._events[r],this._events.removeListener&&this.emit("removeListener",r,n);else if(w(a)){for(i=e;i-- >0;)if(a[i]===n||a[i].listener&&a[i].listener===n){u=i;break}if(u<0)return this;1===a.length?(a.length=0,delete this._events[r]):a.splice(u,1),this._events.removeListener&&this.emit("removeListener",r,n)}return this},k.prototype.removeAllListeners=function(r){var n,a;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(a=this._events[r]))this.removeListener(r,a);else if(a)for(;a.length;)this.removeListener(r,a[a.length-1]);return delete this._events[r],this},k.prototype.listeners=function(r){return this._events&&this._events[r]?p(this._events[r])?[this._events[r]]:this._events[r].slice():[]},k.prototype.listenerCount=function(r){if(this._events){var n=this._events[r];if(p(n))return 1;if(n)return n.length}return 0},k.listenerCount=function(r,n){return r.listenerCount(n)}},7372:function(ce,k,p){var t;ce=p.nmd(ce),function(w){"object"==typeof global&&global;var a,u=2147483647,e=36,P=/^xn--/,C=/[^\x20-\x7E]/,D=/[\x2E\u3002\uFF0E\uFF61]/g,W={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},H=Math.floor,L=String.fromCharCode;function R(oe){throw RangeError(W[oe])}function c(oe,K){for(var Y=oe.length,ne=[];Y--;)ne[Y]=K(oe[Y]);return ne}function _(oe,K){var Y=oe.split("@"),ne="";return Y.length>1&&(ne=Y[0]+"@",oe=Y[1]),ne+c((oe=oe.replace(D,".")).split("."),K).join(".")}function l(oe){for(var $,A,K=[],Y=0,ne=oe.length;Y<ne;)($=oe.charCodeAt(Y++))>=55296&&$<=56319&&Y<ne?56320==(64512&(A=oe.charCodeAt(Y++)))?K.push(((1023&$)<<10)+(1023&A)+65536):(K.push($),Y--):K.push($);return K}function T(oe){return c(oe,function(K){var Y="";return K>65535&&(Y+=L((K-=65536)>>>10&1023|55296),K=56320|1023&K),Y+L(K)}).join("")}function B(oe){return oe-48<10?oe-22:oe-65<26?oe-65:oe-97<26?oe-97:e}function U(oe,K){return oe+22+75*(oe<26)-((0!=K)<<5)}function z(oe,K,Y){var ne=0;for(oe=Y?H(oe/700):oe>>1,oe+=H(oe/K);oe>455;ne+=e)oe=H(oe/35);return H(ne+36*oe/(oe+38))}function ae(oe){var ne,x,N,q,ee,ue,_e,me,Re,De,K=[],Y=oe.length,$=0,A=128,b=72;for((x=oe.lastIndexOf("-"))<0&&(x=0),N=0;N<x;++N)oe.charCodeAt(N)>=128&&R("not-basic"),K.push(oe.charCodeAt(N));for(q=x>0?x+1:0;q<Y;){for(ee=$,ue=1,_e=e;q>=Y&&R("invalid-input"),((me=B(oe.charCodeAt(q++)))>=e||me>H((u-$)/ue))&&R("overflow"),$+=me*ue,!(me<(Re=_e<=b?1:_e>=b+26?26:_e-b));_e+=e)ue>H(u/(De=e-Re))&&R("overflow"),ue*=De;b=z($-ee,ne=K.length+1,0==ee),H($/ne)>u-A&&R("overflow"),A+=H($/ne),$%=ne,K.splice($++,0,A)}return T(K)}function pe(oe){var K,Y,ne,$,A,b,x,N,q,ee,ue,me,Re,De,Me,_e=[];for(me=(oe=l(oe)).length,K=128,Y=0,A=72,b=0;b<me;++b)(ue=oe[b])<128&&_e.push(L(ue));for(ne=$=_e.length,$&&_e.push("-");ne<me;){for(x=u,b=0;b<me;++b)(ue=oe[b])>=K&&ue<x&&(x=ue);for(x-K>H((u-Y)/(Re=ne+1))&&R("overflow"),Y+=(x-K)*Re,K=x,b=0;b<me;++b)if((ue=oe[b])<K&&++Y>u&&R("overflow"),ue==K){for(N=Y,q=e;!(N<(ee=q<=A?1:q>=A+26?26:q-A));q+=e)_e.push(L(U(ee+(Me=N-ee)%(De=e-ee),0))),N=H(Me/De);_e.push(L(U(N,0))),A=z(Y,Re,ne==$),Y=0,++ne}++Y,++K}return _e.join("")}a={version:"1.3.2",ucs2:{decode:l,encode:T},decode:ae,encode:pe,toASCII:function he(oe){return _(oe,function(K){return C.test(K)?"xn--"+pe(K):K})},toUnicode:function X(oe){return _(oe,function(K){return P.test(K)?ae(K.slice(4).toLowerCase()):K})}},void 0!==(t=function(){return a}.call(k,p,k,ce))&&(ce.exports=t)}()},1008:(ce,k,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}k.parse=C,k.resolve=function W(c,_){return C(c,!1,!0).resolve(_)},k.resolveObject=function Q(c,_){return c?C(c,!1,!0).resolveObject(_):_},k.format=function D(c){return H(c)&&(c=C(c)),c instanceof w?c.format():w.prototype.format.call(c)},k.Url=w;var d=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,a=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(a),e=["%","/","?",";","#"].concat(u),i=["/","?","#"],h=/^[a-z0-9A-Z_-]{0,63}$/,y=/^([a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},I={javascript:!0,"javascript:":!0},M={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},P=p(31625);function C(c,_,l){if(c&&L(c)&&c instanceof w)return c;var T=new w;return T.parse(c,_,l),T}function H(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(!H(c))throw new TypeError("Parameter 'url' must be a string, not "+typeof c);var T=c;T=T.trim();var B=d.exec(T);if(B){var U=(B=B[0]).toLowerCase();this.protocol=U,T=T.substr(B.length)}if(l||B||T.match(/^\/\/[^@\/]+@[^@\/]+/)){var z="//"===T.substr(0,2);z&&(!B||!I[B])&&(T=T.substr(2),this.slashes=!0)}if(!I[B]&&(z||B&&!M[B])){for(var ae=-1,pe=0;pe<i.length;pe++)-1!==(X=T.indexOf(i[pe]))&&(-1===ae||X<ae)&&(ae=X);var he,oe;for(-1!==(oe=-1===ae?T.lastIndexOf("@"):T.lastIndexOf("@",ae))&&(he=T.slice(0,oe),T=T.slice(oe+1),this.auth=decodeURIComponent(he)),ae=-1,pe=0;pe<e.length;pe++){var X;-1!==(X=T.indexOf(e[pe]))&&(-1===ae||X<ae)&&(ae=X)}-1===ae&&(ae=T.length),this.host=T.slice(0,ae),T=T.slice(ae),this.parseHost(),this.hostname=this.hostname||"";var K="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!K)for(var Y=this.hostname.split(/\./),ne=(pe=0,Y.length);pe<ne;pe++){var $=Y[pe];if($&&!$.match(h)){for(var A="",b=0,x=$.length;b<x;b++)$.charCodeAt(b)>127?A+="x":A+=$[b];if(!A.match(h)){var N=Y.slice(0,pe),q=Y.slice(pe+1),ee=$.match(y);ee&&(N.push(ee[1]),q.unshift(ee[2])),q.length&&(T="/"+q.join(".")+T),this.hostname=N.join(".");break}}}if(this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),!K){var ue=this.hostname.split("."),_e=[];for(pe=0;pe<ue.length;++pe)_e.push((me=ue[pe]).match(/[^A-Za-z0-9_-]/)?"xn--"+t.encode(me):me);this.hostname=_e.join(".")}this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,K&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==T[0]&&(T="/"+T))}if(!m[U])for(pe=0,ne=u.length;pe<ne;pe++){var Me=u[pe],ie=encodeURIComponent(Me);ie===Me&&(ie=escape(Me)),T=T.split(Me).join(ie)}var V=T.indexOf("#");-1!==V&&(this.hash=T.substr(V),T=T.slice(0,V));var me,v=T.indexOf("?");return-1!==v?(this.search=T.substr(v),this.query=T.substr(v+1),_&&(this.query=P.parse(this.query)),T=T.slice(0,v)):_&&(this.search="",this.query={}),T&&(this.pathname=T),M[U]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(me=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||"",T=this.hash||"",B=!1,U="";this.host?B=c+this.host:this.hostname&&(B=c+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(B+=":"+this.port)),this.query&&L(this.query)&&Object.keys(this.query).length&&(U=P.stringify(this.query));var z=this.search||U&&"?"+U||"";return _&&":"!==_.substr(-1)&&(_+=":"),this.slashes||(!_||M[_])&&!1!==B?(B="//"+(B||""),l&&"/"!==l.charAt(0)&&(l="/"+l)):B||(B=""),T&&"#"!==T.charAt(0)&&(T="#"+T),z&&"?"!==z.charAt(0)&&(z="?"+z),_+B+(l=l.replace(/[?#]/g,function(ae){return encodeURIComponent(ae)}))+(z=z.replace("#","%23"))+T},w.prototype.resolve=function(c){return this.resolveObject(C(c,!1,!0)).format()},w.prototype.resolveObject=function(c){if(H(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])}),M[l.protocol]&&l.hostname&&!l.pathname&&(l.path=l.pathname="/"),l.href=l.format(),l;if(c.protocol&&c.protocol!==l.protocol){if(!M[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||I[c.protocol])l.pathname=c.pathname;else{for(var he=(c.pathname||"").split("/");he.length&&!(c.host=he.shift()););c.host||(c.host=""),c.hostname||(c.hostname=""),""!==he[0]&&he.unshift(""),he.length<2&&he.unshift(""),l.pathname=he.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 U=l.pathname&&"/"===l.pathname.charAt(0),z=c.host||c.pathname&&"/"===c.pathname.charAt(0),ae=z||U||l.host&&c.pathname,pe=ae,X=l.pathname&&l.pathname.split("/")||[],oe=(he=c.pathname&&c.pathname.split("/")||[],l.protocol&&!M[l.protocol]);if(oe&&(l.hostname="",l.port=null,l.host&&(""===X[0]?X[0]=l.host:X.unshift(l.host)),l.host="",c.protocol&&(c.hostname=null,c.port=null,c.host&&(""===he[0]?he[0]=c.host:he.unshift(c.host)),c.host=null),ae=ae&&(""===he[0]||""===X[0])),z)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,X=he;else if(he.length)X||(X=[]),X.pop(),X=X.concat(he),l.search=c.search,l.query=c.query;else if(!function R(c){return null==c}(c.search))return oe&&(l.hostname=l.host=X.shift(),(K=!!(l.host&&l.host.indexOf("@")>0)&&l.host.split("@"))&&(l.auth=K.shift(),l.host=l.hostname=K.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(!X.length)return l.pathname=null,l.path=l.search?"/"+l.search:null,l.href=l.format(),l;for(var Y=X.slice(-1)[0],ne=(l.host||c.host)&&("."===Y||".."===Y)||""===Y,$=0,A=X.length;A>=0;A--)"."==(Y=X[A])?X.splice(A,1):".."===Y?(X.splice(A,1),$++):$&&(X.splice(A,1),$--);if(!ae&&!pe)for(;$--;$)X.unshift("..");ae&&""!==X[0]&&(!X[0]||"/"!==X[0].charAt(0))&&X.unshift(""),ne&&"/"!==X.join("/").substr(-1)&&X.push("");var K,b=""===X[0]||X[0]&&"/"===X[0].charAt(0);return oe&&(l.hostname=l.host=b?"":X.length?X.shift():"",(K=!!(l.host&&l.host.indexOf("@")>0)&&l.host.split("@"))&&(l.auth=K.shift(),l.host=l.hostname=K.shift())),(ae=ae||l.host&&X.length)&&!b&&X.unshift(""),X.length?l.pathname=X.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:(ce,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;for(var p=[],t=0;t<256;++t)p[t]=(t+256).toString(16).substr(1);k.default=function w(r,n){var a=n||0;return[p[r[a++]],p[r[a++]],p[r[a++]],p[r[a++]],"-",p[r[a++]],p[r[a++]],"-",p[r[a++]],p[r[a++]],"-",p[r[a++]],p[r[a++]],"-",p[r[a++]],p[r[a++]],p[r[a++]],p[r[a++]],p[r[a++]],p[r[a++]]].join("")}},33239:(ce,k,p)=>{"use strict";Object.defineProperty(k,"v4",{enumerable:!0,get:function(){return r.default}});a(p(98223)),a(p(17678));var r=a(p(7811));a(p(5731));function a(u){return u&&u.__esModule?u:{default:u}}},52353:(ce,k)=>{"use strict";function r(y,m){var I=(65535&y)+(65535&m);return(y>>16)+(m>>16)+(I>>16)<<16|65535&I}function a(y,m,I,M,P,C){return r(function n(y,m){return y<<m|y>>>32-m}(r(r(m,y),r(M,C)),P),I)}function u(y,m,I,M,P,C,D){return a(m&I|~m&M,y,m,P,C,D)}function e(y,m,I,M,P,C,D){return a(m&M|I&~M,y,m,P,C,D)}function i(y,m,I,M,P,C,D){return a(m^I^M,y,m,P,C,D)}function s(y,m,I,M,P,C,D){return a(I^(m|~M),y,m,P,C,D)}Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0,k.default=function p(y){if("string"==typeof y){var m=unescape(encodeURIComponent(y));y=new Array(m.length);for(var I=0;I<m.length;I++)y[I]=m.charCodeAt(I)}return function t(y){var m,I,D,M=[],P=32*y.length,C="0123456789abcdef";for(m=0;m<P;m+=8)I=y[m>>5]>>>m%32&255,D=parseInt(C.charAt(I>>>4&15)+C.charAt(15&I),16),M.push(D);return M}(function w(y,m){y[m>>5]|=128<<m%32,y[14+(m+64>>>9<<4)]=m;var I,M,P,C,D,W=1732584193,Q=-271733879,H=-1732584194,L=271733878;for(I=0;I<y.length;I+=16)M=W,P=Q,C=H,D=L,W=u(W,Q,H,L,y[I],7,-680876936),L=u(L,W,Q,H,y[I+1],12,-389564586),H=u(H,L,W,Q,y[I+2],17,606105819),Q=u(Q,H,L,W,y[I+3],22,-1044525330),W=u(W,Q,H,L,y[I+4],7,-176418897),L=u(L,W,Q,H,y[I+5],12,1200080426),H=u(H,L,W,Q,y[I+6],17,-1473231341),Q=u(Q,H,L,W,y[I+7],22,-45705983),W=u(W,Q,H,L,y[I+8],7,1770035416),L=u(L,W,Q,H,y[I+9],12,-1958414417),H=u(H,L,W,Q,y[I+10],17,-42063),Q=u(Q,H,L,W,y[I+11],22,-1990404162),W=u(W,Q,H,L,y[I+12],7,1804603682),L=u(L,W,Q,H,y[I+13],12,-40341101),H=u(H,L,W,Q,y[I+14],17,-1502002290),W=e(W,Q=u(Q,H,L,W,y[I+15],22,1236535329),H,L,y[I+1],5,-165796510),L=e(L,W,Q,H,y[I+6],9,-1069501632),H=e(H,L,W,Q,y[I+11],14,643717713),Q=e(Q,H,L,W,y[I],20,-373897302),W=e(W,Q,H,L,y[I+5],5,-701558691),L=e(L,W,Q,H,y[I+10],9,38016083),H=e(H,L,W,Q,y[I+15],14,-660478335),Q=e(Q,H,L,W,y[I+4],20,-405537848),W=e(W,Q,H,L,y[I+9],5,568446438),L=e(L,W,Q,H,y[I+14],9,-1019803690),H=e(H,L,W,Q,y[I+3],14,-187363961),Q=e(Q,H,L,W,y[I+8],20,1163531501),W=e(W,Q,H,L,y[I+13],5,-1444681467),L=e(L,W,Q,H,y[I+2],9,-51403784),H=e(H,L,W,Q,y[I+7],14,1735328473),W=i(W,Q=e(Q,H,L,W,y[I+12],20,-1926607734),H,L,y[I+5],4,-378558),L=i(L,W,Q,H,y[I+8],11,-2022574463),H=i(H,L,W,Q,y[I+11],16,1839030562),Q=i(Q,H,L,W,y[I+14],23,-35309556),W=i(W,Q,H,L,y[I+1],4,-1530992060),L=i(L,W,Q,H,y[I+4],11,1272893353),H=i(H,L,W,Q,y[I+7],16,-155497632),Q=i(Q,H,L,W,y[I+10],23,-1094730640),W=i(W,Q,H,L,y[I+13],4,681279174),L=i(L,W,Q,H,y[I],11,-358537222),H=i(H,L,W,Q,y[I+3],16,-722521979),Q=i(Q,H,L,W,y[I+6],23,76029189),W=i(W,Q,H,L,y[I+9],4,-640364487),L=i(L,W,Q,H,y[I+12],11,-421815835),H=i(H,L,W,Q,y[I+15],16,530742520),W=s(W,Q=i(Q,H,L,W,y[I+2],23,-995338651),H,L,y[I],6,-198630844),L=s(L,W,Q,H,y[I+7],10,1126891415),H=s(H,L,W,Q,y[I+14],15,-1416354905),Q=s(Q,H,L,W,y[I+5],21,-57434055),W=s(W,Q,H,L,y[I+12],6,1700485571),L=s(L,W,Q,H,y[I+3],10,-1894986606),H=s(H,L,W,Q,y[I+10],15,-1051523),Q=s(Q,H,L,W,y[I+1],21,-2054922799),W=s(W,Q,H,L,y[I+8],6,1873313359),L=s(L,W,Q,H,y[I+15],10,-30611744),H=s(H,L,W,Q,y[I+6],15,-1560198380),Q=s(Q,H,L,W,y[I+13],21,1309151649),W=s(W,Q,H,L,y[I+4],6,-145523070),L=s(L,W,Q,H,y[I+11],10,-1120210379),H=s(H,L,W,Q,y[I+2],15,718787259),Q=s(Q,H,L,W,y[I+9],21,-343485551),W=r(W,M),Q=r(Q,P),H=r(H,C),L=r(L,D);return[W,Q,H,L]}(function d(y){var m,I=[];for(I[(y.length>>2)-1]=void 0,m=0;m<I.length;m+=1)I[m]=0;var M=8*y.length;for(m=0;m<M;m+=8)I[m>>5]|=(255&y[m/8])<<m%32;return I}(y),8*y.length))}},71785:(ce,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.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:(ce,k)=>{"use strict";function p(r,n,a,u){switch(r){case 0:return n&a^~n&u;case 1:case 3:return n^a^u;case 2:return n&a^n&u^a&u}}function t(r,n){return r<<n|r>>>32-n}Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0,k.default=function w(r){var n=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof r){var u=unescape(encodeURIComponent(r));r=new Array(u.length);for(var e=0;e<u.length;e++)r[e]=u.charCodeAt(e)}r.push(128);var s=Math.ceil((r.length/4+2)/16),h=new Array(s);for(e=0;e<s;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[s-1][14]=8*(r.length-1)/Math.pow(2,32),h[s-1][14]=Math.floor(h[s-1][14]),h[s-1][15]=8*(r.length-1)&4294967295,e=0;e<s;e++){for(var m=new Array(80),I=0;I<16;I++)m[I]=h[e][I];for(I=16;I<80;I++)m[I]=t(m[I-3]^m[I-8]^m[I-14]^m[I-16],1);var M=a[0],P=a[1],C=a[2],D=a[3],W=a[4];for(I=0;I<80;I++){var Q=Math.floor(I/20),H=t(M,5)+p(Q,P,C,D)+W+n[Q]+m[I]>>>0;W=D,D=C,C=t(P,30)>>>0,P=M,M=H}a[0]=a[0]+M>>>0,a[1]=a[1]+P>>>0,a[2]=a[2]+C>>>0,a[3]=a[3]+D>>>0,a[4]=a[4]+W>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,255&a[0],a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,255&a[1],a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,255&a[2],a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,255&a[3],a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,255&a[4]]}},98223:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var t=d(p(71785)),w=d(p(44561));function d(s){return s&&s.__esModule?s:{default:s}}var r,n,a=0,u=0;k.default=function e(s,h,y){var m=h&&y||0,I=h||[],M=(s=s||{}).node||r,P=void 0!==s.clockseq?s.clockseq:n;if(null==M||null==P){var C=s.random||(s.rng||t.default)();null==M&&(M=r=[1|C[0],C[1],C[2],C[3],C[4],C[5]]),null==P&&(P=n=16383&(C[6]<<8|C[7]))}var D=void 0!==s.msecs?s.msecs:(new Date).getTime(),W=void 0!==s.nsecs?s.nsecs:u+1,Q=D-a+(W-u)/1e4;if(Q<0&&void 0===s.clockseq&&(P=P+1&16383),(Q<0||D>a)&&void 0===s.nsecs&&(W=0),W>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=D,u=W,n=P;var H=(1e4*(268435455&(D+=122192928e5))+W)%4294967296;I[m++]=H>>>24&255,I[m++]=H>>>16&255,I[m++]=H>>>8&255,I[m++]=255&H;var L=D/4294967296*1e4&268435455;I[m++]=L>>>8&255,I[m++]=255&L,I[m++]=L>>>24&15|16,I[m++]=L>>>16&255,I[m++]=P>>>8|128,I[m++]=255&P;for(var g=0;g<6;++g)I[m+g]=M[g];return h||(0,w.default)(I)}},17678:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var t=d(p(76441)),w=d(p(52353));function d(a){return a&&a.__esModule?a:{default:a}}var n=(0,t.default)("v3",48,w.default);k.default=n},76441:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=function u(e,i,s){var h=function(y,m,I,M){var P=I&&M||0;if("string"==typeof y&&(y=function r(e){e=unescape(encodeURIComponent(e));for(var i=new Array(e.length),s=0;s<e.length;s++)i[s]=e.charCodeAt(s);return i}(y)),"string"==typeof m&&(m=function d(e){var i=[];return e.replace(/[a-fA-F0-9]{2}/g,function(s){i.push(parseInt(s,16))}),i}(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=s(m.concat(y));if(C[6]=15&C[6]|i,C[8]=63&C[8]|128,I)for(var D=0;D<16;++D)I[P+D]=C[D];return I||(0,t.default)(C)};try{h.name=e}catch{}return h.DNS=n,h.URL=a,h},k.URL=k.DNS=void 0;var t=function w(e){return e&&e.__esModule?e:{default:e}}(p(44561));const n="6ba7b810-9dad-11d1-80b4-00c04fd430c8";k.DNS=n;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";k.URL=a},7811:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var t=d(p(71785)),w=d(p(44561));function d(a){return a&&a.__esModule?a:{default:a}}k.default=function r(a,u,e){var i=u&&e||0;"string"==typeof a&&(u="binary"===a?new Array(16):null,a=null);var s=(a=a||{}).random||(a.rng||t.default)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,u)for(var h=0;h<16;++h)u[i+h]=s[h];return u||(0,w.default)(s)}},5731:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var t=d(p(76441)),w=d(p(70168));function d(a){return a&&a.__esModule?a:{default:a}}var n=(0,t.default)("v5",80,w.default);k.default=n},56516:(ce,k,p)=>{"use strict";var w=p(49145),r=function(){function n(a){void 0===a&&(a=1e3),this.maxSize=a,this.cache=new w.LRUCache(a)}return Object.defineProperty(n.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),n.prototype.put=function(a,u){var e="string"!=typeof a?n.getKeyString(a):a,i=this.populateValue(u);this.cache.put(e,i)},n.prototype.get=function(a){var u="string"!=typeof a?n.getKeyString(a):a,e=Date.now(),i=this.cache.get(u);if(i){for(var s=i.length-1;s>=0;s--)i[s].Expire<e&&i.splice(s,1);if(0===i.length)return void this.cache.remove(u)}return i},n.getKeyString=function(a){for(var u=[],e=Object.keys(a).sort(),i=0;i<e.length;i++){var s=e[i];void 0!==a[s]&&u.push(a[s])}return u.join(" ")},n.prototype.populateValue=function(a){var u=Date.now();return a.map(function(e){return{Address:e.Address||"",Expire:u+60*(e.CachePeriodInMinutes||1)*1e3}})},n.prototype.empty=function(){this.cache.empty()},n.prototype.remove=function(a){var u="string"!=typeof a?n.getKeyString(a):a;this.cache.remove(u)},n}();k.$=r},49145:(ce,k)=>{"use strict";Object.defineProperty(k,"__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 u=new p(d,r);this.nodeMap[d]=u,this.prependToList(u)},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}();k.LRUCache=t},66751:(ce,k)=>{"use strict";k.byteLength=function u(m){var I=a(m),P=I[1];return 3*(I[0]+P)/4-P},k.toByteArray=function i(m){var I,H,M=a(m),P=M[0],C=M[1],D=new w(function e(m,I,M){return 3*(I+M)/4-M}(0,P,C)),W=0,Q=C>0?P-4:P;for(H=0;H<Q;H+=4)I=t[m.charCodeAt(H)]<<18|t[m.charCodeAt(H+1)]<<12|t[m.charCodeAt(H+2)]<<6|t[m.charCodeAt(H+3)],D[W++]=I>>16&255,D[W++]=I>>8&255,D[W++]=255&I;return 2===C&&(I=t[m.charCodeAt(H)]<<2|t[m.charCodeAt(H+1)]>>4,D[W++]=255&I),1===C&&(I=t[m.charCodeAt(H)]<<10|t[m.charCodeAt(H+1)]<<4|t[m.charCodeAt(H+2)]>>2,D[W++]=I>>8&255,D[W++]=255&I),D},k.fromByteArray=function y(m){for(var I,M=m.length,P=M%3,C=[],D=16383,W=0,Q=M-P;W<Q;W+=D)C.push(h(m,W,W+D>Q?Q:W+D));return 1===P?C.push(p[(I=m[M-1])>>2]+p[I<<4&63]+"=="):2===P&&C.push(p[(I=(m[M-2]<<8)+m[M-1])>>10]+p[I>>4&63]+p[I<<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 a(m){var I=m.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=m.indexOf("=");return-1===M&&(M=I),[M,M===I?0:4-M%4]}function s(m){return p[m>>18&63]+p[m>>12&63]+p[m>>6&63]+p[63&m]}function h(m,I,M){for(var C=[],D=I;D<M;D+=3)C.push(s((m[D]<<16&16711680)+(m[D+1]<<8&65280)+(255&m[D+2])));return C.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63},75877:(ce,k,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;k.lW=e,k.h2=50;var n=2147483647;function u(ie){if(ie>n)throw new RangeError('The value "'+ie+'" is invalid for option "size"');var V=new Uint8Array(ie);return Object.setPrototypeOf(V,e.prototype),V}function e(ie,V,v){if("number"==typeof ie){if("string"==typeof V)throw new TypeError('The "string" argument must be of type string. Received type number');return y(ie)}return i(ie,V,v)}function i(ie,V,v){if("string"==typeof ie)return function m(ie,V){if(("string"!=typeof V||""===V)&&(V="utf8"),!e.isEncoding(V))throw new TypeError("Unknown encoding: "+V);var v=0|Q(ie,V),O=u(v),F=O.write(ie,V);return F!==v&&(O=O.slice(0,F)),O}(ie,V);if(ArrayBuffer.isView(ie))return function M(ie){if(Re(ie,Uint8Array)){var V=new Uint8Array(ie);return P(V.buffer,V.byteOffset,V.byteLength)}return I(ie)}(ie);if(null==ie)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ie);if(Re(ie,ArrayBuffer)||ie&&Re(ie.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Re(ie,SharedArrayBuffer)||ie&&Re(ie.buffer,SharedArrayBuffer)))return P(ie,V,v);if("number"==typeof ie)throw new TypeError('The "value" argument must not be of type number. Received type number');var O=ie.valueOf&&ie.valueOf();if(null!=O&&O!==ie)return e.from(O,V,v);var F=function C(ie){if(e.isBuffer(ie)){var V=0|D(ie.length),v=u(V);return 0===v.length||ie.copy(v,0,0,V),v}return void 0!==ie.length?"number"!=typeof ie.length||De(ie.length)?u(0):I(ie):"Buffer"===ie.type&&Array.isArray(ie.data)?I(ie.data):void 0}(ie);if(F)return F;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof ie[Symbol.toPrimitive])return e.from(ie[Symbol.toPrimitive]("string"),V,v);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ie)}function s(ie){if("number"!=typeof ie)throw new TypeError('"size" argument must be of type number');if(ie<0)throw new RangeError('The value "'+ie+'" is invalid for option "size"')}function y(ie){return s(ie),u(ie<0?0:0|D(ie))}function I(ie){for(var V=ie.length<0?0:0|D(ie.length),v=u(V),O=0;O<V;O+=1)v[O]=255&ie[O];return v}function P(ie,V,v){if(V<0||ie.byteLength<V)throw new RangeError('"offset" is outside of buffer bounds');if(ie.byteLength<V+(v||0))throw new RangeError('"length" is outside of buffer bounds');var O;return O=void 0===V&&void 0===v?new Uint8Array(ie):void 0===v?new Uint8Array(ie,V):new Uint8Array(ie,V,v),Object.setPrototypeOf(O,e.prototype),O}function D(ie){if(ie>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return 0|ie}function Q(ie,V){if(e.isBuffer(ie))return ie.length;if(ArrayBuffer.isView(ie)||Re(ie,ArrayBuffer))return ie.byteLength;if("string"!=typeof ie)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ie);var v=ie.length,O=arguments.length>2&&!0===arguments[2];if(!O&&0===v)return 0;for(var F=!1;;)switch(V){case"ascii":case"latin1":case"binary":return v;case"utf8":case"utf-8":return q(ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*v;case"hex":return v>>>1;case"base64":return _e(ie).length;default:if(F)return O?-1:q(ie).length;V=(""+V).toLowerCase(),F=!0}}function H(ie,V,v){var O=!1;if((void 0===V||V<0)&&(V=0),V>this.length||((void 0===v||v>this.length)&&(v=this.length),v<=0)||(v>>>=0)<=(V>>>=0))return"";for(ie||(ie="utf8");;)switch(ie){case"hex":return oe(this,V,v);case"utf8":case"utf-8":return z(this,V,v);case"ascii":return X(this,V,v);case"latin1":case"binary":return he(this,V,v);case"base64":return U(this,V,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,V,v);default:if(O)throw new TypeError("Unknown encoding: "+ie);ie=(ie+"").toLowerCase(),O=!0}}function L(ie,V,v){var O=ie[V];ie[V]=ie[v],ie[v]=O}function g(ie,V,v,O,F){if(0===ie.length)return-1;if("string"==typeof v?(O=v,v=0):v>2147483647?v=2147483647:v<-2147483648&&(v=-2147483648),De(v=+v)&&(v=F?0:ie.length-1),v<0&&(v=ie.length+v),v>=ie.length){if(F)return-1;v=ie.length-1}else if(v<0){if(!F)return-1;v=0}if("string"==typeof V&&(V=e.from(V,O)),e.isBuffer(V))return 0===V.length?-1:R(ie,V,v,O,F);if("number"==typeof V)return V&=255,"function"==typeof Uint8Array.prototype.indexOf?F?Uint8Array.prototype.indexOf.call(ie,V,v):Uint8Array.prototype.lastIndexOf.call(ie,V,v):R(ie,[V],v,O,F);throw new TypeError("val must be string, number or Buffer")}function R(ie,V,v,O,F){var te,re=1,ve=ie.length,xe=V.length;if(void 0!==O&&("ucs2"===(O=String(O).toLowerCase())||"ucs-2"===O||"utf16le"===O||"utf-16le"===O)){if(ie.length<2||V.length<2)return-1;re=2,ve/=2,xe/=2,v/=2}function Te(Ie,Ue){return 1===re?Ie[Ue]:Ie.readUInt16BE(Ue*re)}if(F){var de=-1;for(te=v;te<ve;te++)if(Te(ie,te)===Te(V,-1===de?0:te-de)){if(-1===de&&(de=te),te-de+1===xe)return de*re}else-1!==de&&(te-=te-de),de=-1}else for(v+xe>ve&&(v=ve-xe),te=v;te>=0;te--){for(var ye=!0,Oe=0;Oe<xe;Oe++)if(Te(ie,te+Oe)!==Te(V,Oe)){ye=!1;break}if(ye)return te}return-1}function c(ie,V,v,O){v=Number(v)||0;var F=ie.length-v;O?(O=Number(O))>F&&(O=F):O=F;var re=V.length;O>re/2&&(O=re/2);for(var ve=0;ve<O;++ve){var xe=parseInt(V.substr(2*ve,2),16);if(De(xe))return ve;ie[v+ve]=xe}return ve}function _(ie,V,v,O){return me(q(V,ie.length-v),ie,v,O)}function l(ie,V,v,O){return me(function ee(ie){for(var V=[],v=0;v<ie.length;++v)V.push(255&ie.charCodeAt(v));return V}(V),ie,v,O)}function T(ie,V,v,O){return me(_e(V),ie,v,O)}function B(ie,V,v,O){return me(function ue(ie,V){for(var v,O,re=[],ve=0;ve<ie.length&&!((V-=2)<0);++ve)O=(v=ie.charCodeAt(ve))>>8,re.push(v%256),re.push(O);return re}(V,ie.length-v),ie,v,O)}function U(ie,V,v){return w.fromByteArray(0===V&&v===ie.length?ie:ie.slice(V,v))}function z(ie,V,v){v=Math.min(ie.length,v);for(var O=[],F=V;F<v;){var Te,te,de,ye,re=ie[F],ve=null,xe=re>239?4:re>223?3:re>191?2:1;if(F+xe<=v)switch(xe){case 1:re<128&&(ve=re);break;case 2:128==(192&(Te=ie[F+1]))&&(ye=(31&re)<<6|63&Te)>127&&(ve=ye);break;case 3:te=ie[F+2],128==(192&(Te=ie[F+1]))&&128==(192&te)&&(ye=(15&re)<<12|(63&Te)<<6|63&te)>2047&&(ye<55296||ye>57343)&&(ve=ye);break;case 4:te=ie[F+2],de=ie[F+3],128==(192&(Te=ie[F+1]))&&128==(192&te)&&128==(192&de)&&(ye=(15&re)<<18|(63&Te)<<12|(63&te)<<6|63&de)>65535&&ye<1114112&&(ve=ye)}null===ve?(ve=65533,xe=1):ve>65535&&(O.push((ve-=65536)>>>10&1023|55296),ve=56320|1023&ve),O.push(ve),F+=xe}return function pe(ie){var V=ie.length;if(V<=4096)return String.fromCharCode.apply(String,ie);for(var v="",O=0;O<V;)v+=String.fromCharCode.apply(String,ie.slice(O,O+=4096));return v}(O)}function X(ie,V,v){var O="";v=Math.min(ie.length,v);for(var F=V;F<v;++F)O+=String.fromCharCode(127&ie[F]);return O}function he(ie,V,v){var O="";v=Math.min(ie.length,v);for(var F=V;F<v;++F)O+=String.fromCharCode(ie[F]);return O}function oe(ie,V,v){var O=ie.length;(!V||V<0)&&(V=0),(!v||v<0||v>O)&&(v=O);for(var F="",re=V;re<v;++re)F+=Me[ie[re]];return F}function K(ie,V,v){for(var O=ie.slice(V,v),F="",re=0;re<O.length-1;re+=2)F+=String.fromCharCode(O[re]+256*O[re+1]);return F}function Y(ie,V,v){if(ie%1!=0||ie<0)throw new RangeError("offset is not uint");if(ie+V>v)throw new RangeError("Trying to access beyond buffer length")}function ne(ie,V,v,O,F,re){if(!e.isBuffer(ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(V>F||V<re)throw new RangeError('"value" argument is out of bounds');if(v+O>ie.length)throw new RangeError("Index out of range")}function $(ie,V,v,O,F,re){if(v+O>ie.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("Index out of range")}function A(ie,V,v,O,F){return V=+V,v>>>=0,F||$(ie,0,v,4),d.write(ie,V,v,O,23,4),v+4}function b(ie,V,v,O,F){return V=+V,v>>>=0,F||$(ie,0,v,8),d.write(ie,V,v,O,52,8),v+8}!(e.TYPED_ARRAY_SUPPORT=function a(){try{var ie=new Uint8Array(1),V={foo:function(){return 42}};return Object.setPrototypeOf(V,Uint8Array.prototype),Object.setPrototypeOf(ie,V),42===ie.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(ie,V,v){return i(ie,V,v)},Object.setPrototypeOf(e.prototype,Uint8Array.prototype),Object.setPrototypeOf(e,Uint8Array),e.alloc=function(ie,V,v){return function h(ie,V,v){return s(ie),ie<=0?u(ie):void 0!==V?"string"==typeof v?u(ie).fill(V,v):u(ie).fill(V):u(ie)}(ie,V,v)},e.allocUnsafe=function(ie){return y(ie)},e.allocUnsafeSlow=function(ie){return y(ie)},e.isBuffer=function(V){return null!=V&&!0===V._isBuffer&&V!==e.prototype},e.compare=function(V,v){if(Re(V,Uint8Array)&&(V=e.from(V,V.offset,V.byteLength)),Re(v,Uint8Array)&&(v=e.from(v,v.offset,v.byteLength)),!e.isBuffer(V)||!e.isBuffer(v))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(V===v)return 0;for(var O=V.length,F=v.length,re=0,ve=Math.min(O,F);re<ve;++re)if(V[re]!==v[re]){O=V[re],F=v[re];break}return O<F?-1:F<O?1:0},e.isEncoding=function(V){switch(String(V).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(V,v){if(!Array.isArray(V))throw new TypeError('"list" argument must be an Array of Buffers');if(0===V.length)return e.alloc(0);var O;if(void 0===v)for(v=0,O=0;O<V.length;++O)v+=V[O].length;var F=e.allocUnsafe(v),re=0;for(O=0;O<V.length;++O){var ve=V[O];if(Re(ve,Uint8Array))re+ve.length>F.length?e.from(ve).copy(F,re):Uint8Array.prototype.set.call(F,ve,re);else{if(!e.isBuffer(ve))throw new TypeError('"list" argument must be an Array of Buffers');ve.copy(F,re)}re+=ve.length}return F},e.byteLength=Q,e.prototype._isBuffer=!0,e.prototype.swap16=function(){var V=this.length;if(V%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var v=0;v<V;v+=2)L(this,v,v+1);return this},e.prototype.swap32=function(){var V=this.length;if(V%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var v=0;v<V;v+=4)L(this,v,v+3),L(this,v+1,v+2);return this},e.prototype.swap64=function(){var V=this.length;if(V%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var v=0;v<V;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 V=this.length;return 0===V?"":0===arguments.length?z(this,0,V):H.apply(this,arguments)},e.prototype.equals=function(V){if(!e.isBuffer(V))throw new TypeError("Argument must be a Buffer");return this===V||0===e.compare(this,V)},e.prototype.inspect=function(){var V="",v=k.h2;return V=this.toString("hex",0,v).replace(/(.{2})/g,"$1 ").trim(),this.length>v&&(V+=" ... "),"<Buffer "+V+">"},r&&(e.prototype[r]=e.prototype.inspect),e.prototype.compare=function(V,v,O,F,re){if(Re(V,Uint8Array)&&(V=e.from(V,V.offset,V.byteLength)),!e.isBuffer(V))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof V);if(void 0===v&&(v=0),void 0===O&&(O=V?V.length:0),void 0===F&&(F=0),void 0===re&&(re=this.length),v<0||O>V.length||F<0||re>this.length)throw new RangeError("out of range index");if(F>=re&&v>=O)return 0;if(F>=re)return-1;if(v>=O)return 1;if(this===V)return 0;for(var ve=(re>>>=0)-(F>>>=0),xe=(O>>>=0)-(v>>>=0),Te=Math.min(ve,xe),te=this.slice(F,re),de=V.slice(v,O),ye=0;ye<Te;++ye)if(te[ye]!==de[ye]){ve=te[ye],xe=de[ye];break}return ve<xe?-1:xe<ve?1:0},e.prototype.includes=function(V,v,O){return-1!==this.indexOf(V,v,O)},e.prototype.indexOf=function(V,v,O){return g(this,V,v,O,!0)},e.prototype.lastIndexOf=function(V,v,O){return g(this,V,v,O,!1)},e.prototype.write=function(V,v,O,F){if(void 0===v)F="utf8",O=this.length,v=0;else if(void 0===O&&"string"==typeof v)F=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===F&&(F="utf8")):(F=O,O=void 0)}var re=this.length-v;if((void 0===O||O>re)&&(O=re),V.length>0&&(O<0||v<0)||v>this.length)throw new RangeError("Attempt to write outside buffer bounds");F||(F="utf8");for(var ve=!1;;)switch(F){case"hex":return c(this,V,v,O);case"utf8":case"utf-8":return _(this,V,v,O);case"ascii":case"latin1":case"binary":return l(this,V,v,O);case"base64":return T(this,V,v,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,V,v,O);default:if(ve)throw new TypeError("Unknown encoding: "+F);F=(""+F).toLowerCase(),ve=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},e.prototype.slice=function(V,v){var O=this.length;(V=~~V)<0?(V+=O)<0&&(V=0):V>O&&(V=O),(v=void 0===v?O:~~v)<0?(v+=O)<0&&(v=0):v>O&&(v=O),v<V&&(v=V);var F=this.subarray(V,v);return Object.setPrototypeOf(F,e.prototype),F},e.prototype.readUintLE=e.prototype.readUIntLE=function(V,v,O){V>>>=0,v>>>=0,O||Y(V,v,this.length);for(var F=this[V],re=1,ve=0;++ve<v&&(re*=256);)F+=this[V+ve]*re;return F},e.prototype.readUintBE=e.prototype.readUIntBE=function(V,v,O){V>>>=0,v>>>=0,O||Y(V,v,this.length);for(var F=this[V+--v],re=1;v>0&&(re*=256);)F+=this[V+--v]*re;return F},e.prototype.readUint8=e.prototype.readUInt8=function(V,v){return V>>>=0,v||Y(V,1,this.length),this[V]},e.prototype.readUint16LE=e.prototype.readUInt16LE=function(V,v){return V>>>=0,v||Y(V,2,this.length),this[V]|this[V+1]<<8},e.prototype.readUint16BE=e.prototype.readUInt16BE=function(V,v){return V>>>=0,v||Y(V,2,this.length),this[V]<<8|this[V+1]},e.prototype.readUint32LE=e.prototype.readUInt32LE=function(V,v){return V>>>=0,v||Y(V,4,this.length),(this[V]|this[V+1]<<8|this[V+2]<<16)+16777216*this[V+3]},e.prototype.readUint32BE=e.prototype.readUInt32BE=function(V,v){return V>>>=0,v||Y(V,4,this.length),16777216*this[V]+(this[V+1]<<16|this[V+2]<<8|this[V+3])},e.prototype.readIntLE=function(V,v,O){V>>>=0,v>>>=0,O||Y(V,v,this.length);for(var F=this[V],re=1,ve=0;++ve<v&&(re*=256);)F+=this[V+ve]*re;return F>=(re*=128)&&(F-=Math.pow(2,8*v)),F},e.prototype.readIntBE=function(V,v,O){V>>>=0,v>>>=0,O||Y(V,v,this.length);for(var F=v,re=1,ve=this[V+--F];F>0&&(re*=256);)ve+=this[V+--F]*re;return ve>=(re*=128)&&(ve-=Math.pow(2,8*v)),ve},e.prototype.readInt8=function(V,v){return V>>>=0,v||Y(V,1,this.length),128&this[V]?-1*(255-this[V]+1):this[V]},e.prototype.readInt16LE=function(V,v){V>>>=0,v||Y(V,2,this.length);var O=this[V]|this[V+1]<<8;return 32768&O?4294901760|O:O},e.prototype.readInt16BE=function(V,v){V>>>=0,v||Y(V,2,this.length);var O=this[V+1]|this[V]<<8;return 32768&O?4294901760|O:O},e.prototype.readInt32LE=function(V,v){return V>>>=0,v||Y(V,4,this.length),this[V]|this[V+1]<<8|this[V+2]<<16|this[V+3]<<24},e.prototype.readInt32BE=function(V,v){return V>>>=0,v||Y(V,4,this.length),this[V]<<24|this[V+1]<<16|this[V+2]<<8|this[V+3]},e.prototype.readFloatLE=function(V,v){return V>>>=0,v||Y(V,4,this.length),d.read(this,V,!0,23,4)},e.prototype.readFloatBE=function(V,v){return V>>>=0,v||Y(V,4,this.length),d.read(this,V,!1,23,4)},e.prototype.readDoubleLE=function(V,v){return V>>>=0,v||Y(V,8,this.length),d.read(this,V,!0,52,8)},e.prototype.readDoubleBE=function(V,v){return V>>>=0,v||Y(V,8,this.length),d.read(this,V,!1,52,8)},e.prototype.writeUintLE=e.prototype.writeUIntLE=function(V,v,O,F){V=+V,v>>>=0,O>>>=0,F||ne(this,V,v,O,Math.pow(2,8*O)-1,0);var ve=1,xe=0;for(this[v]=255&V;++xe<O&&(ve*=256);)this[v+xe]=V/ve&255;return v+O},e.prototype.writeUintBE=e.prototype.writeUIntBE=function(V,v,O,F){V=+V,v>>>=0,O>>>=0,F||ne(this,V,v,O,Math.pow(2,8*O)-1,0);var ve=O-1,xe=1;for(this[v+ve]=255&V;--ve>=0&&(xe*=256);)this[v+ve]=V/xe&255;return v+O},e.prototype.writeUint8=e.prototype.writeUInt8=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,1,255,0),this[v]=255&V,v+1},e.prototype.writeUint16LE=e.prototype.writeUInt16LE=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,2,65535,0),this[v]=255&V,this[v+1]=V>>>8,v+2},e.prototype.writeUint16BE=e.prototype.writeUInt16BE=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,2,65535,0),this[v]=V>>>8,this[v+1]=255&V,v+2},e.prototype.writeUint32LE=e.prototype.writeUInt32LE=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,4,4294967295,0),this[v+3]=V>>>24,this[v+2]=V>>>16,this[v+1]=V>>>8,this[v]=255&V,v+4},e.prototype.writeUint32BE=e.prototype.writeUInt32BE=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,4,4294967295,0),this[v]=V>>>24,this[v+1]=V>>>16,this[v+2]=V>>>8,this[v+3]=255&V,v+4},e.prototype.writeIntLE=function(V,v,O,F){if(V=+V,v>>>=0,!F){var re=Math.pow(2,8*O-1);ne(this,V,v,O,re-1,-re)}var ve=0,xe=1,Te=0;for(this[v]=255&V;++ve<O&&(xe*=256);)V<0&&0===Te&&0!==this[v+ve-1]&&(Te=1),this[v+ve]=(V/xe>>0)-Te&255;return v+O},e.prototype.writeIntBE=function(V,v,O,F){if(V=+V,v>>>=0,!F){var re=Math.pow(2,8*O-1);ne(this,V,v,O,re-1,-re)}var ve=O-1,xe=1,Te=0;for(this[v+ve]=255&V;--ve>=0&&(xe*=256);)V<0&&0===Te&&0!==this[v+ve+1]&&(Te=1),this[v+ve]=(V/xe>>0)-Te&255;return v+O},e.prototype.writeInt8=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,1,127,-128),V<0&&(V=255+V+1),this[v]=255&V,v+1},e.prototype.writeInt16LE=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,2,32767,-32768),this[v]=255&V,this[v+1]=V>>>8,v+2},e.prototype.writeInt16BE=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,2,32767,-32768),this[v]=V>>>8,this[v+1]=255&V,v+2},e.prototype.writeInt32LE=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,4,2147483647,-2147483648),this[v]=255&V,this[v+1]=V>>>8,this[v+2]=V>>>16,this[v+3]=V>>>24,v+4},e.prototype.writeInt32BE=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,4,2147483647,-2147483648),V<0&&(V=4294967295+V+1),this[v]=V>>>24,this[v+1]=V>>>16,this[v+2]=V>>>8,this[v+3]=255&V,v+4},e.prototype.writeFloatLE=function(V,v,O){return A(this,V,v,!0,O)},e.prototype.writeFloatBE=function(V,v,O){return A(this,V,v,!1,O)},e.prototype.writeDoubleLE=function(V,v,O){return b(this,V,v,!0,O)},e.prototype.writeDoubleBE=function(V,v,O){return b(this,V,v,!1,O)},e.prototype.copy=function(V,v,O,F){if(!e.isBuffer(V))throw new TypeError("argument should be a Buffer");if(O||(O=0),!F&&0!==F&&(F=this.length),v>=V.length&&(v=V.length),v||(v=0),F>0&&F<O&&(F=O),F===O||0===V.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(F<0)throw new RangeError("sourceEnd out of bounds");F>this.length&&(F=this.length),V.length-v<F-O&&(F=V.length-v+O);var re=F-O;return this===V&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(v,O,F):Uint8Array.prototype.set.call(V,this.subarray(O,F),v),re},e.prototype.fill=function(V,v,O,F){if("string"==typeof V){if("string"==typeof v?(F=v,v=0,O=this.length):"string"==typeof O&&(F=O,O=this.length),void 0!==F&&"string"!=typeof F)throw new TypeError("encoding must be a string");if("string"==typeof F&&!e.isEncoding(F))throw new TypeError("Unknown encoding: "+F);if(1===V.length){var re=V.charCodeAt(0);("utf8"===F&&re<128||"latin1"===F)&&(V=re)}}else"number"==typeof V?V&=255:"boolean"==typeof V&&(V=Number(V));if(v<0||this.length<v||this.length<O)throw new RangeError("Out of range index");if(O<=v)return this;var ve;if(v>>>=0,O=void 0===O?this.length:O>>>0,V||(V=0),"number"==typeof V)for(ve=v;ve<O;++ve)this[ve]=V;else{var xe=e.isBuffer(V)?V:e.from(V,F),Te=xe.length;if(0===Te)throw new TypeError('The value "'+V+'" is invalid for argument "value"');for(ve=0;ve<O-v;++ve)this[ve+v]=xe[ve%Te]}return this};var x=/[^+/0-9A-Za-z-_]/g;function q(ie,V){V=V||1/0;for(var v,O=ie.length,F=null,re=[],ve=0;ve<O;++ve){if((v=ie.charCodeAt(ve))>55295&&v<57344){if(!F){if(v>56319){(V-=3)>-1&&re.push(239,191,189);continue}if(ve+1===O){(V-=3)>-1&&re.push(239,191,189);continue}F=v;continue}if(v<56320){(V-=3)>-1&&re.push(239,191,189),F=v;continue}v=65536+(F-55296<<10|v-56320)}else F&&(V-=3)>-1&&re.push(239,191,189);if(F=null,v<128){if((V-=1)<0)break;re.push(v)}else if(v<2048){if((V-=2)<0)break;re.push(v>>6|192,63&v|128)}else if(v<65536){if((V-=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((V-=4)<0)break;re.push(v>>18|240,v>>12&63|128,v>>6&63|128,63&v|128)}}return re}function _e(ie){return w.toByteArray(function N(ie){if((ie=(ie=ie.split("=")[0]).trim().replace(x,"")).length<2)return"";for(;ie.length%4!=0;)ie+="=";return ie}(ie))}function me(ie,V,v,O){for(var F=0;F<O&&!(F+v>=V.length||F>=ie.length);++F)V[F+v]=ie[F];return F}function Re(ie,V){return ie instanceof V||null!=ie&&null!=ie.constructor&&null!=ie.constructor.name&&ie.constructor.name===V.name}function De(ie){return ie!=ie}var Me=function(){for(var ie="0123456789abcdef",V=new Array(256),v=0;v<16;++v)for(var O=16*v,F=0;F<16;++F)V[O+F]=ie[v]+ie[F];return V}()},63859:(ce,k,p)=>{"use strict";var t=p(66204),w=p(86535),d=w(t("String.prototype.indexOf"));ce.exports=function(n,a){var u=t(n,!!a);return"function"==typeof u&&d(n,".prototype.")>-1?w(u):u}},86535:(ce,k,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),a=w("%Object.getOwnPropertyDescriptor%",!0),u=w("%Object.defineProperty%",!0),e=w("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}ce.exports=function(h){var y=n(t,r,arguments);if(a&&u){var m=a(y,"length");m.configurable&&u(y,"length",{value:1+e(0,h.length-(arguments.length-1))})}return y};var i=function(){return n(t,d,arguments)};u?u(ce.exports,"apply",{value:i}):ce.exports.apply=i},41280:ce=>{var k=1e3,p=60*k,t=60*p,w=24*t;function u(e,i,s){if(!(e<i))return e<1.5*i?Math.floor(e/i)+" "+s:Math.ceil(e/i)+" "+s+"s"}ce.exports=function(e,i){i=i||{};var s=typeof e;if("string"===s&&e.length>0)return function r(e){if(!((e=String(e)).length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(i){var s=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*w;case"hours":case"hour":case"hrs":case"hr":case"h":return s*t;case"minutes":case"minute":case"mins":case"min":case"m":return s*p;case"seconds":case"second":case"secs":case"sec":case"s":return s*k;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===s&&!1===isNaN(e))return i.long?function a(e){return u(e,w,"day")||u(e,t,"hour")||u(e,p,"minute")||u(e,k,"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>=k?Math.round(e/k)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},83483:(ce,k,p)=>{function n(){var u;try{u=k.storage.debug}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=process.env.DEBUG),u}(k=ce.exports=p(23419)).log=function d(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},k.formatArgs=function w(u){var e=this.useColors;if(u[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+u[0]+(e?"%c ":" ")+"+"+k.humanize(this.diff),e){var i="color: "+this.color;u.splice(1,0,i,"color: inherit");var s=0,h=0;u[0].replace(/%[a-zA-Z%]/g,function(y){"%%"!==y&&(s++,"%c"===y&&(h=s))}),u.splice(h,0,i)}},k.save=function r(u){try{null==u?k.storage.removeItem("debug"):k.storage.debug=u}catch{}},k.load=n,k.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+)/)},k.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:function a(){try{return window.localStorage}catch{}}(),k.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],k.formatters.j=function(u){try{return JSON.stringify(u)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},k.enable(n())},23419:(ce,k,p)=>{var t;function d(e){function i(){if(i.enabled){var s=i,h=+new Date,y=h-(t||h);s.diff=y,s.prev=t,s.curr=h,t=h;for(var m=new Array(arguments.length),I=0;I<m.length;I++)m[I]=arguments[I];m[0]=k.coerce(m[0]),"string"!=typeof m[0]&&m.unshift("%O");var M=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,function(C,D){if("%%"===C)return C;M++;var W=k.formatters[D];return"function"==typeof W&&(C=W.call(s,m[M]),m.splice(M,1),M--),C}),k.formatArgs.call(s,m);var P=i.log||k.log||console.log.bind(console);P.apply(s,m)}}return i.namespace=e,i.enabled=k.enabled(e),i.useColors=k.useColors(),i.color=function w(e){var s,i=0;for(s in e)i=(i<<5)-i+e.charCodeAt(s),i|=0;return k.colors[Math.abs(i)%k.colors.length]}(e),"function"==typeof k.init&&k.init(i),i}(k=ce.exports=d.debug=d.default=d).coerce=function u(e){return e instanceof Error?e.stack||e.message:e},k.disable=function n(){k.enable("")},k.enable=function r(e){k.save(e),k.names=[],k.skips=[];for(var i=("string"==typeof e?e:"").split(/[\s,]+/),s=i.length,h=0;h<s;h++)!i[h]||("-"===(e=i[h].replace(/\*/g,".*?"))[0]?k.skips.push(new RegExp("^"+e.substr(1)+"$")):k.names.push(new RegExp("^"+e+"$")))},k.enabled=function a(e){var i,s;for(i=0,s=k.skips.length;i<s;i++)if(k.skips[i].test(e))return!1;for(i=0,s=k.names.length;i<s;i++)if(k.names[i].test(e))return!0;return!1},k.humanize=p(41280),k.names=[],k.skips=[],k.formatters={}},67495:ce=>{"use strict";ce.exports=function(k,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(a,u){return r({key:a,value:n[a]},{key:u,value:n[u]})}}),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 a,u;if(Array.isArray(n)){for(u="[",a=0;a<n.length;a++)a&&(u+=","),u+=r(n[a])||"null";return u+"]"}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,i=Object.keys(n).sort(w&&w(n));for(u="",a=0;a<i.length;a++){var s=i[a],h=r(n[s]);!h||(u&&(u+=","),u+=JSON.stringify(s)+":"+h)}return d.splice(e,1),"{"+u+"}"}}(k)}},72441:(ce,k,p)=>{"use strict";var t=p(61404),w=Object.prototype.toString,d=Object.prototype.hasOwnProperty,r=function(i,s,h){for(var y=0,m=i.length;y<m;y++)d.call(i,y)&&(null==h?s(i[y],y,i):s.call(h,i[y],y,i))},n=function(i,s,h){for(var y=0,m=i.length;y<m;y++)null==h?s(i.charAt(y),y,i):s.call(h,i.charAt(y),y,i)},a=function(i,s,h){for(var y in i)d.call(i,y)&&(null==h?s(i[y],y,i):s.call(h,i[y],y,i))};ce.exports=function(i,s,h){if(!t(s))throw new TypeError("iterator must be a function");var y;arguments.length>=3&&(y=h),"[object Array]"===w.call(i)?r(i,s,y):"string"==typeof i?n(i,s,y):a(i,s,y)}},61404:ce=>{"use strict";var t,w,k=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=k.call(y);return d.test(m)}catch{return!1}},a=Object.prototype.toString,i="function"==typeof Symbol&&!!Symbol.toStringTag,s="object"==typeof document&&typeof document.all>"u"&&void 0!==document.all?document.all:{};ce.exports=p?function(y){if(y===s)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===s)return!0;if(!y||"function"!=typeof y&&"object"!=typeof y)return!1;if("function"==typeof y&&!y.prototype)return!0;if(i)return function(y){try{return!r(y)&&(k.call(y),!0)}catch{return!1}}(y);if(r(y))return!1;var m=a.call(y);return"[object Function]"===m||"[object GeneratorFunction]"===m}},20031:ce=>{"use strict";var k="Function.prototype.bind called on incompatible ",p=Array.prototype.slice,t=Object.prototype.toString,w="[object Function]";ce.exports=function(r){var n=this;if("function"!=typeof n||t.call(n)!==w)throw new TypeError(k+n);for(var u,a=p.call(arguments,1),e=function(){if(this instanceof u){var m=n.apply(this,a.concat(p.call(arguments)));return Object(m)===m?m:this}return n.apply(r,a.concat(p.call(arguments)))},i=Math.max(0,n.length-a.length),s=[],h=0;h<i;h++)s.push("$"+h);if(u=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(e),n.prototype){var y=function(){};y.prototype=n.prototype,u.prototype=new y,y.prototype=null}return u}},76026:(ce,k,p)=>{"use strict";var t=p(20031);ce.exports=Function.prototype.bind||t},66204:(ce,k,p)=>{"use strict";var t,w=SyntaxError,d=Function,r=TypeError,n=function(l){try{return d('"use strict"; return ('+l+").constructor;")()}catch{}},a=Object.getOwnPropertyDescriptor;if(a)try{a({},"")}catch{a=null}var u=function(){throw new r},e=a?function(){try{return u}catch{try{return a(arguments,"callee").get}catch{return u}}}():u,i=p(55237)(),s=Object.getPrototypeOf||function(l){return l.__proto__},h={},y=typeof Uint8Array>"u"?t:s(Uint8Array),m={"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":i?s([][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%":i?s(s([][Symbol.iterator]())):t,"%JSON%":"object"==typeof JSON?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!i?t:s((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"||!i?t:s((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":i?s(""[Symbol.iterator]()):t,"%Symbol%":i?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},I=function l(T){var B;if("%AsyncFunction%"===T)B=n("async function () {}");else if("%GeneratorFunction%"===T)B=n("function* () {}");else if("%AsyncGeneratorFunction%"===T)B=n("async function* () {}");else if("%AsyncGenerator%"===T){var U=l("%AsyncGeneratorFunction%");U&&(B=U.prototype)}else if("%AsyncIteratorPrototype%"===T){var z=l("%AsyncGenerator%");z&&(B=s(z.prototype))}return m[T]=B,B},M={"%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"]},P=p(76026),C=p(97790),D=P.call(Function.call,Array.prototype.concat),W=P.call(Function.apply,Array.prototype.splice),Q=P.call(Function.call,String.prototype.replace),H=P.call(Function.call,String.prototype.slice),L=P.call(Function.call,RegExp.prototype.exec),g=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,c=function(T){var B=H(T,0,1),U=H(T,-1);if("%"===B&&"%"!==U)throw new w("invalid intrinsic syntax, expected closing `%`");if("%"===U&&"%"!==B)throw new w("invalid intrinsic syntax, expected opening `%`");var z=[];return Q(T,g,function(ae,pe,X,he){z[z.length]=X?Q(he,R,"$1"):pe||ae}),z},_=function(T,B){var z,U=T;if(C(M,U)&&(U="%"+(z=M[U])[0]+"%"),C(m,U)){var ae=m[U];if(ae===h&&(ae=I(U)),typeof ae>"u"&&!B)throw new r("intrinsic "+T+" exists, but is not available. Please file an issue!");return{alias:z,name:U,value:ae}}throw new w("intrinsic "+T+" does not exist!")};ce.exports=function(T,B){if("string"!=typeof T||0===T.length)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof B)throw new r('"allowMissing" argument must be a boolean');if(null===L(/^%?[^%]*%?$/g,T))throw new w("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=c(T),z=U.length>0?U[0]:"",ae=_("%"+z+"%",B),pe=ae.name,X=ae.value,he=!1,oe=ae.alias;oe&&(z=oe[0],W(U,D([0,1],oe)));for(var K=1,Y=!0;K<U.length;K+=1){var ne=U[K],$=H(ne,0,1),A=H(ne,-1);if(('"'===$||"'"===$||"`"===$||'"'===A||"'"===A||"`"===A)&&$!==A)throw new w("property names with quotes must have matching quotes");if(("constructor"===ne||!Y)&&(he=!0),C(m,pe="%"+(z+="."+ne)+"%"))X=m[pe];else if(null!=X){if(!(ne in X)){if(!B)throw new r("base intrinsic for "+T+" exists, but the property is not available.");return}if(a&&K+1>=U.length){var b=a(X,ne);X=(Y=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:X[ne]}else Y=C(X,ne),X=X[ne];Y&&!he&&(m[pe]=X)}}return X}},19636:(ce,k,p)=>{"use strict";p.d(k,{HW:()=>m,J9:()=>P,Ps:()=>y,ZP:()=>D,_t:()=>I,wO:()=>M});var t=p(5163),w=p(71439),d=new Map,r=new Map,n=!0,a=!1;function u(W){return W.replace(/[\s,]+/g," ").trim()}function h(W){var Q=u(W);if(!d.has(Q)){var H=(0,w.Qc)(W,{experimentalFragmentVariables:a,allowLegacyFragmentVariables:a});if(!H||"Document"!==H.kind)throw new Error("Not a valid GraphQL document.");d.set(Q,function s(W){var Q=new Set(W.definitions);Q.forEach(function(L){L.loc&&delete L.loc,Object.keys(L).forEach(function(g){var R=L[g];R&&"object"==typeof R&&Q.add(R)})});var H=W.loc;return H&&(delete H.startToken,delete H.endToken),W}(function i(W){var Q=new Set,H=[];return W.definitions.forEach(function(L){if("FragmentDefinition"===L.kind){var g=L.name.value,R=function e(W){return u(W.source.body.substring(W.start,W.end))}(L.loc),c=r.get(g);c&&!c.has(R)?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(R),Q.has(R)||(Q.add(R),H.push(L))}else H.push(L)}),(0,t.pi)((0,t.pi)({},W),{definitions:H})}(H)))}return d.get(Q)}function y(W){for(var Q=[],H=1;H<arguments.length;H++)Q[H-1]=arguments[H];"string"==typeof W&&(W=[W]);var L=W[0];return Q.forEach(function(g,R){L+=g&&"Document"===g.kind?g.loc.source.body:g,L+=W[R+1]}),h(L)}function m(){d.clear(),r.clear()}function I(){n=!1}function M(){a=!0}function P(){a=!1}var W,C_gql=y,C_resetCaches=m,C_disableFragmentWarnings=I,C_enableExperimentalFragmentVariables=M,C_disableExperimentalFragmentVariables=P;(W=y||(y={})).gql=C_gql,W.resetCaches=C_resetCaches,W.disableFragmentWarnings=C_disableFragmentWarnings,W.enableExperimentalFragmentVariables=C_enableExperimentalFragmentVariables,W.disableExperimentalFragmentVariables=C_disableExperimentalFragmentVariables,y.default=y;const D=y},55237:(ce,k,p)=>{"use strict";var t=typeof Symbol<"u"&&Symbol,w=p(50693);ce.exports=function(){return"function"==typeof t&&"function"==typeof Symbol&&"symbol"==typeof t("foo")&&"symbol"==typeof Symbol("bar")&&w()}},50693:ce=>{"use strict";ce.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:(ce,k,p)=>{"use strict";var t=p(50693);ce.exports=function(){return t()&&!!Symbol.toStringTag}},97790:(ce,k,p)=>{"use strict";var t=p(76026);ce.exports=t.call(Function.call,Object.prototype.hasOwnProperty)},10107:(ce,k)=>{k.read=function(p,t,w,d,r){var n,a,u=8*r-d-1,e=(1<<u)-1,i=e>>1,s=-7,h=w?r-1:0,y=w?-1:1,m=p[t+h];for(h+=y,n=m&(1<<-s)-1,m>>=-s,s+=u;s>0;n=256*n+p[t+h],h+=y,s-=8);for(a=n&(1<<-s)-1,n>>=-s,s+=d;s>0;a=256*a+p[t+h],h+=y,s-=8);if(0===n)n=1-i;else{if(n===e)return a?NaN:1/0*(m?-1:1);a+=Math.pow(2,d),n-=i}return(m?-1:1)*a*Math.pow(2,n-d)},k.write=function(p,t,w,d,r,n){var a,u,e,i=8*n-r-1,s=(1<<i)-1,h=s>>1,y=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,m=d?0:n-1,I=d?1:-1,M=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=s):(a=Math.floor(Math.log(t)/Math.LN2),t*(e=Math.pow(2,-a))<1&&(a--,e*=2),(t+=a+h>=1?y/e:y*Math.pow(2,1-h))*e>=2&&(a++,e/=2),a+h>=s?(u=0,a=s):a+h>=1?(u=(t*e-1)*Math.pow(2,r),a+=h):(u=t*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;p[w+m]=255&u,m+=I,u/=256,r-=8);for(a=a<<r|u,i+=r;i>0;p[w+m]=255&a,m+=I,a/=256,i-=8);p[w+m-I]|=128*M}},83201:ce=>{ce.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:ce=>{"use strict";var k="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,p=Object.prototype.toString,t=function(n){return!(k&&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,ce.exports=d?t:w},27122:(ce,k,p)=>{"use strict";var u,t=Object.prototype.toString,w=Function.prototype.toString,d=/^\s*(?:function)?\*/,r=p(38411)(),n=Object.getPrototypeOf;ce.exports=function(i){if("function"!=typeof i)return!1;if(d.test(w.call(i)))return!0;if(!r)return"[object GeneratorFunction]"===t.call(i);if(!n)return!1;if(typeof u>"u"){var h=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}}();u=!!h&&n(h)}return n(i)===u}},85981:(ce,k,p)=>{"use strict";var t=p(72441),w=p(46841),d=p(63859),r=d("Object.prototype.toString"),n=p(38411)(),a=typeof globalThis>"u"?global:globalThis,u=w(),e=d("Array.prototype.indexOf",!0)||function(M,P){for(var C=0;C<M.length;C+=1)if(M[C]===P)return C;return-1},i=d("String.prototype.slice"),s={},h=p(80669),y=Object.getPrototypeOf;n&&h&&y&&t(u,function(I){var M=new a[I];if(Symbol.toStringTag in M){var P=y(M),C=h(P,Symbol.toStringTag);if(!C){var D=y(P);C=h(D,Symbol.toStringTag)}s[I]=C.get}}),ce.exports=function(M){if(!M||"object"!=typeof M)return!1;if(!n||!(Symbol.toStringTag in M)){var P=i(r(M),8,-1);return e(u,P)>-1}return!!h&&function(M){var P=!1;return t(s,function(C,D){if(!P)try{P=C.call(M)===D}catch{}}),P}(M)}},52866:ce=>{var k={}.toString;ce.exports=Array.isArray||function(p){return"[object Array]"==k.call(p)}},57920:(ce,k)=>{!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,de){if(te===de)return!0;if(Object.prototype.toString.call(te)!==Object.prototype.toString.call(de))return!1;if(!0===t(te)){if(te.length!==de.length)return!1;for(var Oe=0;Oe<te.length;Oe++)if(!1===d(te[Oe],de[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],de[Ue]))return!1;Ie[Ue]=!0}for(var qe in de)if(hasOwnProperty.call(de,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 de in te)if(te.hasOwnProperty(de))return!1;return!0}return!1}var u;u="function"==typeof String.prototype.trimLeft?function(te){return te.trimLeft()}:function(te){return te.match(/^\s*(.*)/)[1]};var e=0,s=2,D={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},W="EOF",Q="UnquotedIdentifier",H="QuotedIdentifier",L="Rbracket",g="Rparen",R="Comma",c="Colon",_="Rbrace",l="Number",T="Current",B="Expref",U="Pipe",X="GT",K="LTE",Y="NE",ne="Flatten",$="Star",A="Filter",b="Dot",x="Not",N="Lbrace",q="Lbracket",ee="Lparen",ue="Literal",_e={".":b,"*":$,",":R,":":c,"{":N,"}":_,"]":L,"(":ee,")":g,"@":T},me={"<":!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 ie(te){return te>="a"&&te<="z"||te>="A"&&te<="Z"||te>="0"&&te<="9"||"_"===te}function V(){}V.prototype={tokenize:function(te){var ye,Oe,Ie,de=[];for(this._current=0;this._current<te.length;)if(De(te[this._current]))ye=this._current,Oe=this._consumeUnquotedIdentifier(te),de.push({type:Q,value:Oe,start:ye});else if(void 0!==_e[te[this._current]])de.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),de.push(Ie);else if("["===te[this._current])Ie=this._consumeLBracket(te),de.push(Ie);else if('"'===te[this._current])ye=this._current,Oe=this._consumeQuotedIdentifier(te),de.push({type:H,value:Oe,start:ye});else if("'"===te[this._current])ye=this._current,Oe=this._consumeRawStringLiteral(te),de.push({type:ue,value:Oe,start:ye});else if("`"===te[this._current]){ye=this._current;var Ue=this._consumeLiteral(te);de.push({type:ue,value:Ue,start:ye})}else if(void 0!==me[te[this._current]])de.push(this._consumeOperator(te));else if(void 0!==Re[te[this._current]])this._current++;else if("&"===te[this._current])ye=this._current,this._current++,"&"===te[this._current]?(this._current++,de.push({type:"And",value:"&&",start:ye})):de.push({type:B,value:"&",start:ye});else{if("|"!==te[this._current]){var qe=new Error("Unknown character:"+te[this._current]);throw qe.name="LexerError",qe}ye=this._current,this._current++,"|"===te[this._current]?(this._current++,de.push({type:"Or",value:"||",start:ye})):de.push({type:U,value:"|",start:ye})}return de},_consumeUnquotedIdentifier:function(te){var de=this._current;for(this._current++;this._current<te.length&&ie(te[this._current]);)this._current++;return te.slice(de,this._current)},_consumeQuotedIdentifier:function(te){var de=this._current;this._current++;for(var ye=te.length;'"'!==te[this._current]&&this._current<ye;){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(de,this._current))},_consumeRawStringLiteral:function(te){var de=this._current;this._current++;for(var ye=te.length;"'"!==te[this._current]&&this._current<ye;){var Oe=this._current;"\\"!==te[Oe]||"\\"!==te[Oe+1]&&"'"!==te[Oe+1]?Oe++:Oe+=2,this._current=Oe}return this._current++,te.slice(de+1,this._current-1).replace("\\'","'")},_consumeNumber:function(te){var de=this._current;this._current++;for(var ye=te.length;Me(te[this._current])&&this._current<ye;)this._current++;var Oe=parseInt(te.slice(de,this._current));return{type:l,value:Oe,start:de}},_consumeLBracket:function(te){var de=this._current;return this._current++,"?"===te[this._current]?(this._current++,{type:A,value:"[?",start:de}):"]"===te[this._current]?(this._current++,{type:ne,value:"[]",start:de}):{type:q,value:"[",start:de}},_consumeOperator:function(te){var de=this._current,ye=te[de];return this._current++,"!"===ye?"="===te[this._current]?(this._current++,{type:Y,value:"!=",start:de}):{type:x,value:"!",start:de}:"<"===ye?"="===te[this._current]?(this._current++,{type:K,value:"<=",start:de}):{type:"LT",value:"<",start:de}:">"===ye?"="===te[this._current]?(this._current++,{type:"GTE",value:">=",start:de}):{type:X,value:">",start:de}:"="===ye&&"="===te[this._current]?(this._current++,{type:"EQ",value:"==",start:de}):void 0},_consumeLiteral:function(te){this._current++;for(var Oe,de=this._current,ye=te.length;"`"!==te[this._current]&&this._current<ye;){var Ie=this._current;"\\"!==te[Ie]||"\\"!==te[Ie+1]&&"`"!==te[Ie+1]?Ie++:Ie+=2,this._current=Ie}var Ue=u(te.slice(de,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 F(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:[s,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[s]},{types:[s]}]},floor:{_func:this._functionFloor,_signature:[{types:[e]}]},length:{_func:this._functionLength,_signature:[{types:[s,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:[s]},{types:[s]}]},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:[s]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[s,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[W]=0,v[Q]=0,v[H]=0,v[L]=0,v[g]=0,v[R]=0,v[_]=0,v[l]=0,v[T]=0,v[B]=0,v[U]=1,v.Or=2,v.And=3,v.EQ=5,v.GT=5,v.LT=5,v.GTE=5,v[K]=5,v.NE=5,v[ne]=9,v[$]=20,v[A]=21,v[b]=40,v[x]=45,v[N]=50,v[q]=55,v[ee]=60,O.prototype={parse:function(te){this._loadTokens(te),this.index=0;var de=this.expression(0);if(this._lookahead(0)!==W){var ye=this._lookaheadToken(0),Oe=new Error("Unexpected token type: "+ye.type+", value: "+ye.value);throw Oe.name="ParserError",Oe}return de},_loadTokens:function(te){var ye=(new V).tokenize(te);ye.push({type:W,value:"",start:te.length}),this.tokens=ye},expression:function(te){var de=this._lookaheadToken(0);this._advance();for(var ye=this.nud(de),Oe=this._lookahead(0);te<v[Oe];)this._advance(),ye=this.led(Oe,ye),Oe=this._lookahead(0);return ye},_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 ye,Oe;switch(te.type){case ue:return{type:"Literal",value:te.value};case Q:return{type:"Field",name:te.value};case H: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:[ye=this.expression(v.Not)]};case $:return ye=null,{type:"ValueProjection",children:[{type:"Identity"},ye=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 ne:return{type:"Projection",children:[{type:ne,children:[{type:"Identity"}]},ye=this._parseProjectionRHS(v.Flatten)]};case q:return this._lookahead(0)===l||this._lookahead(0)===c?(ye=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},ye)):this._lookahead(0)===$&&this._lookahead(1)===L?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},ye=this._parseProjectionRHS(v.Star)]}):this._parseMultiselectList();case T:return{type:T};case B:return{type:"ExpressionReference",children:[Oe=this.expression(v.Expref)]};case ee:for(var Ue=[];this._lookahead(0)!==g;)this._lookahead(0)===T?(Oe={type:T},this._advance()):Oe=this.expression(0),Ue.push(Oe);return this._match(g),Ue[0];default:this._errorToken(te)}},led:function(te,de){var ye;switch(te){case b:var Oe=v.Dot;return this._lookahead(0)!==$?{type:"Subexpression",children:[de,ye=this._parseDotRHS(Oe)]}:(this._advance(),{type:"ValueProjection",children:[de,ye=this._parseProjectionRHS(Oe)]});case U:return ye=this.expression(v.Pipe),{type:U,children:[de,ye]};case"Or":return{type:"OrExpression",children:[de,ye=this.expression(v.Or)]};case"And":return{type:"AndExpression",children:[de,ye=this.expression(v.And)]};case ee:for(var qe,Ie=de.name,Ue=[];this._lookahead(0)!==g;)this._lookahead(0)===T?(qe={type:T},this._advance()):qe=this.expression(0),this._lookahead(0)===R&&this._match(R),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:[de,ye=this._lookahead(0)===ne?{type:"Identity"}:this._parseProjectionRHS(v.Filter),nt]};case ne:return{type:"Projection",children:[{type:ne,children:[de]},this._parseProjectionRHS(v.Flatten)]};case"EQ":case Y:case X:case"GTE":case"LT":case K:return this._parseComparator(de,te);case q:var Ke=this._lookaheadToken(0);return Ke.type===l||Ke.type===c?(ye=this._parseIndexExpression(),this._projectIfSlice(de,ye)):(this._match($),this._match(L),{type:"Projection",children:[de,ye=this._parseProjectionRHS(v.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(te){if(this._lookahead(0)!==te){var de=this._lookaheadToken(0),ye=new Error("Expected "+te+", got: "+de.type);throw ye.name="ParserError",ye}this._advance()},_errorToken:function(te){var de=new Error("Invalid token ("+te.type+'): "'+te.value+'"');throw de.name="ParserError",de},_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,de){var ye={type:"IndexExpression",children:[te,de]};return"Slice"===de.type?{type:"Projection",children:[ye,this._parseProjectionRHS(v.Star)]}:ye},_parseSliceExpression:function(){for(var te=[null,null,null],de=0,ye=this._lookahead(0);ye!==L&&de<3;){if(ye===c)de++,this._advance();else{if(ye!==l){var Oe=this._lookahead(0),Ie=new Error("Syntax error, unexpected token: "+Oe.value+"("+Oe.type+")");throw Ie.name="Parsererror",Ie}te[de]=this._lookaheadToken(0).value,this._advance()}ye=this._lookahead(0)}return this._match(L),{type:"Slice",children:te}},_parseComparator:function(te,de){return{type:"Comparator",name:de,children:[te,this.expression(v[de])]}},_parseDotRHS:function(te){var de=this._lookahead(0);return[Q,H,$].indexOf(de)>=0?this.expression(te):de===q?(this._match(q),this._parseMultiselectList()):de===N?(this._match(N),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(te){var de;if(v[this._lookahead(0)]<10)de={type:"Identity"};else if(this._lookahead(0)===q)de=this.expression(te);else if(this._lookahead(0)===A)de=this.expression(te);else{if(this._lookahead(0)!==b){var ye=this._lookaheadToken(0),Oe=new Error("Sytanx error, unexpected token: "+ye.value+"("+ye.type+")");throw Oe.name="ParserError",Oe}this._match(b),de=this._parseDotRHS(te)}return de},_parseMultiselectList:function(){for(var te=[];this._lookahead(0)!==L;){var de=this.expression(0);if(te.push(de),this._lookahead(0)===R&&(this._match(R),this._lookahead(0)===L))throw new Error("Unexpected token Rbracket")}return this._match(L),{type:"MultiSelectList",children:te}},_parseMultiselectHash:function(){for(var ye,Oe,Ie,te=[],de=[Q,H];;){if(ye=this._lookaheadToken(0),de.indexOf(ye.type)<0)throw new Error("Expecting an identifier token, got: "+ye.type);if(Oe=ye.value,this._advance(),this._match(c),Ie=this.expression(0),te.push({type:"KeyValuePair",name:Oe,value:Ie}),this._lookahead(0)===R)this._match(R);else if(this._lookahead(0)===_){this._match(_);break}}return{type:"MultiSelectHash",children:te}}},F.prototype={search:function(te,de){return this.visit(te,de)},visit:function(te,de){var ye,Oe,Ie,Ue,qe,ze,nt,at,Ke;switch(te.type){case"Field":return null!==de&&w(de)?void 0===(ze=de[te.name])?null:ze:null;case"Subexpression":for(Ie=this.visit(te.children[0],de),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],de),this.visit(te.children[1],nt);case"Index":if(!t(de))return null;var ct=te.value;return ct<0&&(ct=de.length+ct),void 0===(Ie=de[ct])&&(Ie=null),Ie;case"Slice":if(!t(de))return null;var jt=te.children.slice(0),pt=this.computeSliceParams(de.length,jt),yt=pt[0],Rt=pt[1],St=pt[2];if(Ie=[],St>0)for(Ke=yt;Ke<Rt;Ke+=St)Ie.push(de[Ke]);else for(Ke=yt;Ke>Rt;Ke+=St)Ie.push(de[Ke]);return Ie;case"Projection":var ft=this.visit(te.children[0],de);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],de)))return null;at=[];var Tt=function n(te){for(var de=Object.keys(te),ye=[],Oe=0;Oe<de.length;Oe++)ye.push(te[de[Oe]]);return ye}(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],de)))return null;var Ft=[],wt=[];for(Ke=0;Ke<ft.length;Ke++)r(ye=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],de),qe=this.visit(te.children[1],de),te.name){case"EQ":Ie=d(Ue,qe);break;case Y:Ie=!d(Ue,qe);break;case X:Ie=Ue>qe;break;case"GTE":Ie=Ue>=qe;break;case"LT":Ie=Ue<qe;break;case K:Ie=Ue<=qe;break;default:throw new Error("Unknown comparator: "+te.name)}return Ie;case ne:var It=this.visit(te.children[0],de);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 de;case"MultiSelectList":if(null===de)return null;for(at=[],Ke=0;Ke<te.children.length;Ke++)at.push(this.visit(te.children[Ke],de));return at;case"MultiSelectHash":if(null===de)return null;var Vt;for(at={},Ke=0;Ke<te.children.length;Ke++)at[(Vt=te.children[Ke]).name]=this.visit(Vt.value,de);return at;case"OrExpression":return r(ye=this.visit(te.children[0],de))&&(ye=this.visit(te.children[1],de)),ye;case"AndExpression":return!0===r(Ue=this.visit(te.children[0],de))?Ue:this.visit(te.children[1],de);case"NotExpression":return r(Ue=this.visit(te.children[0],de));case"Literal":return te.value;case U:return nt=this.visit(te.children[0],de),this.visit(te.children[1],nt);case T:return de;case"Function":var Wt=[];for(Ke=0;Ke<te.children.length;Ke++)Wt.push(this.visit(te.children[Ke],de));return this.runtime.callFunction(te.name,Wt);case"ExpressionReference":var Et=te.children[0];return Et.jmespathType=B,Et;default:throw new Error("Unknown node type: "+te.type)}},computeSliceParams:function(te,de){var ye=de[0],Oe=de[1],Ie=de[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 ye=null===ye?ze?te-1:0:this.capSliceRange(te,ye,Ie),Oe=null===Oe?ze?-1:te:this.capSliceRange(te,Oe,Ie),Ue[0]=ye,Ue[1]=Oe,Ue[2]=Ie,Ue},capSliceRange:function(te,de,ye){return de<0?(de+=te)<0&&(de=ye<0?-1:0):de>=te&&(de=ye<0?te-1:te),de}},re.prototype={callFunction:function(te,de){var ye=this.functionTable[te];if(void 0===ye)throw new Error("Unknown function: "+te+"()");return this._validateArgs(te,de,ye._signature),ye._func.call(this,de)},_validateArgs:function(te,de,ye){var Oe;if(ye[ye.length-1].variadic){if(de.length<ye.length)throw Oe=1===ye.length?" argument":" arguments",new Error("ArgumentError: "+te+"() takes at least"+ye.length+Oe+" but received "+de.length)}else if(de.length!==ye.length)throw Oe=1===ye.length?" argument":" arguments",new Error("ArgumentError: "+te+"() takes "+ye.length+Oe+" but received "+de.length);for(var Ie,Ue,qe,ze=0;ze<ye.length;ze++){qe=!1,Ie=ye[ze].types,Ue=this._getTypeName(de[ze]);for(var nt=0;nt<Ie.length;nt++)if(this._typeMatches(Ue,Ie[nt],de[ze])){qe=!0;break}if(!qe){var ht=Ie.map(function(at){return D[at]}).join(",");throw new Error("TypeError: "+te+"() expected argument "+(ze+1)+" to be type "+ht+" but received type "+D[Ue]+" instead.")}}},_typeMatches:function(te,de,ye){if(1===de)return!0;if(9!==de&&8!==de&&3!==de)return te===de;if(3===de)return 3===te;if(3===te){var Oe;8===de?Oe=e:9===de&&(Oe=s);for(var Ie=0;Ie<ye.length;Ie++)if(!this._typeMatches(this._getTypeName(ye[Ie]),Oe,ye[Ie]))return!1;return!0}},_getTypeName:function(te){switch(Object.prototype.toString.call(te)){case"[object String]":return s;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===B?6:4}},_functionStartsWith:function(te){return 0===te[0].lastIndexOf(te[1])},_functionEndsWith:function(te){var de=te[0],ye=te[1];return-1!==de.indexOf(ye,de.length-ye.length)},_functionReverse:function(te){if(this._getTypeName(te[0])===s){for(var ye=te[0],Oe="",Ie=ye.length-1;Ie>=0;Ie--)Oe+=ye[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 de=0,ye=te[0],Oe=0;Oe<ye.length;Oe++)de+=ye[Oe];return de/ye.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 de=[],ye=this._interpreter,Oe=te[0],Ie=te[1],Ue=0;Ue<Ie.length;Ue++)de.push(ye.visit(Oe,Ie[Ue]));return de},_functionMerge:function(te){for(var de={},ye=0;ye<te.length;ye++){var Oe=te[ye];for(var Ie in Oe)de[Ie]=Oe[Ie]}return de},_functionMax:function(te){if(te[0].length>0){if(this._getTypeName(te[0][0])===e)return Math.max.apply(Math,te[0]);for(var ye=te[0],Oe=ye[0],Ie=1;Ie<ye.length;Ie++)Oe.localeCompare(ye[Ie])<0&&(Oe=ye[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 ye=te[0],Oe=ye[0],Ie=1;Ie<ye.length;Ie++)ye[Ie].localeCompare(Oe)<0&&(Oe=ye[Ie]);return Oe}return null},_functionSum:function(te){for(var de=0,ye=te[0],Oe=0;Oe<ye.length;Oe++)de+=ye[Oe];return de},_functionType:function(te){switch(this._getTypeName(te[0])){case e:return"number";case s: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 de=te[0],ye=Object.keys(de),Oe=[],Ie=0;Ie<ye.length;Ie++)Oe.push(de[ye[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])===s?te[0]:JSON.stringify(te[0])},_functionToNumber:function(te){var ye,de=this._getTypeName(te[0]);return de===e?te[0]:de!==s||(ye=+te[0],isNaN(ye))?null:ye},_functionNotNull:function(te){for(var de=0;de<te.length;de++)if(7!==this._getTypeName(te[de]))return te[de];return null},_functionSort:function(te){var de=te[0].slice(0);return de.sort(),de},_functionSortBy:function(te){var de=te[0].slice(0);if(0===de.length)return de;var ye=this._interpreter,Oe=te[1],Ie=this._getTypeName(ye.visit(Oe,de[0]));if([e,s].indexOf(Ie)<0)throw new Error("TypeError");for(var Ue=this,qe=[],ze=0;ze<de.length;ze++)qe.push([ze,de[ze]]);qe.sort(function(ht,at){var Ke=ye.visit(Oe,ht[1]),ct=ye.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++)de[nt]=qe[nt][1];return de},_functionMaxBy:function(te){for(var Ue,qe,ye=te[0],Oe=this.createKeyFunction(te[1],[e,s]),Ie=-1/0,ze=0;ze<ye.length;ze++)(qe=Oe(ye[ze]))>Ie&&(Ie=qe,Ue=ye[ze]);return Ue},_functionMinBy:function(te){for(var Ue,qe,ye=te[0],Oe=this.createKeyFunction(te[1],[e,s]),Ie=1/0,ze=0;ze<ye.length;ze++)(qe=Oe(ye[ze]))<Ie&&(Ie=qe,Ue=ye[ze]);return Ue},createKeyFunction:function(te,de){var ye=this,Oe=this._interpreter;return function(Ue){var qe=Oe.visit(te,Ue);if(de.indexOf(ye._getTypeName(qe))<0){var ze="TypeError: expected one of "+de+", received "+ye._getTypeName(qe);throw new Error(ze)}return qe}}},p.tokenize=function xe(te){return(new V).tokenize(te)},p.compile=function ve(te){return(new O).parse(te)},p.search=function Te(te,de){var ye=new O,Oe=new re,Ie=new F(Oe);Oe._interpreter=Ie;var Ue=ye.parse(de);return Ie.search(Ue,te)},p.strictDeepEqual=d}(k)},10757:ce=>{"use strict";var k=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)}ce.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={},a=0;a<10;a++)n["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(n).map(function(i){return n[i]}).join(""))return!1;var e={};return"abcdefghijklmnopqrst".split("").forEach(function(i){e[i]=i}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},e)).join("")}catch{return!1}}()?Object.assign:function(r,n){for(var a,e,u=w(r),i=1;i<arguments.length;i++){for(var s in a=Object(arguments[i]))p.call(a,s)&&(u[s]=a[s]);if(k){e=k(a);for(var h=0;h<e.length;h++)t.call(a,e[h])&&(u[e[h]]=a[e[h]])}}return u}},86438:(ce,k,p)=>{"use strict";p.d(k,{Gl:()=>t.B,dP:()=>ae,re:()=>oe});var t=p(91269),w=p(91971);function d(){}var a,r=function(){function K(Y,ne){void 0===Y&&(Y=1/0),void 0===ne&&(ne=d),this.max=Y,this.dispose=ne,this.map=new Map,this.newest=null,this.oldest=null}return K.prototype.has=function(Y){return this.map.has(Y)},K.prototype.get=function(Y){var ne=this.getNode(Y);return ne&&ne.value},K.prototype.getNode=function(Y){var ne=this.map.get(Y);if(ne&&ne!==this.newest){var $=ne.older,A=ne.newer;A&&(A.older=$),$&&($.newer=A),ne.older=this.newest,ne.older.newer=ne,ne.newer=null,this.newest=ne,ne===this.oldest&&(this.oldest=A)}return ne},K.prototype.set=function(Y,ne){var $=this.getNode(Y);return $?$.value=ne:($={key:Y,value:ne,newer:null,older:this.newest},this.newest&&(this.newest.newer=$),this.newest=$,this.oldest=this.oldest||$,this.map.set(Y,$),$.value)},K.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},K.prototype.delete=function(Y){var ne=this.map.get(Y);return!!ne&&(ne===this.newest&&(this.newest=ne.older),ne===this.oldest&&(this.oldest=ne.newer),ne.newer&&(ne.newer.older=ne.older),ne.older&&(ne.older.newer=ne.newer),this.map.delete(Y),this.dispose(ne.value,Y),!0)},K}(),n=new w.g7,u=Object.prototype.hasOwnProperty,e=void 0===(a=Array.from)?function(K){var Y=[];return K.forEach(function(ne){return Y.push(ne)}),Y}:a;function i(K){var Y=K.unsubscribe;"function"==typeof Y&&(K.unsubscribe=void 0,Y())}var s=[];function y(K,Y){if(!K)throw new Error(Y||"assertion failure")}function I(K){switch(K.length){case 0:throw new Error("unknown value");case 1:return K[0];case 2:throw K[1]}}var P=function(){function K(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,++K.count}return K.prototype.peek=function(){if(1===this.value.length&&!Q(this))return C(this),this.value[0]},K.prototype.recompute=function(Y){return y(!this.recomputing,"already recomputing"),C(this),Q(this)?function D(K,Y){return T(K),n.withValue(K,W,[K,Y]),function U(K,Y){if("function"==typeof K.subscribe)try{i(K),K.unsubscribe=K.subscribe.apply(null,Y)}catch{return K.setDirty(),!1}return!0}(K,Y)&&function H(K){K.dirty=!1,!Q(K)&&g(K)}(K),I(K.value)}(this,Y):I(this.value)},K.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,L(this),i(this))},K.prototype.dispose=function(){var Y=this;this.setDirty(),T(this),R(this,function(ne,$){ne.setDirty(),B(ne,Y)})},K.prototype.forget=function(){this.dispose()},K.prototype.dependOn=function(Y){Y.add(this),this.deps||(this.deps=s.pop()||new Set),this.deps.add(Y)},K.prototype.forgetDeps=function(){var Y=this;this.deps&&(e(this.deps).forEach(function(ne){return ne.delete(Y)}),this.deps.clear(),s.push(this.deps),this.deps=null)},K.count=0,K}();function C(K){var Y=n.getValue();if(Y)return K.parents.add(Y),Y.childValues.has(K)||Y.childValues.set(K,[]),Q(K)?c(Y,K):_(Y,K),Y}function W(K,Y){K.recomputing=!0,K.value.length=0;try{K.value[0]=K.fn.apply(null,Y)}catch(ne){K.value[1]=ne}K.recomputing=!1}function Q(K){return K.dirty||!(!K.dirtyChildren||!K.dirtyChildren.size)}function L(K){R(K,c)}function g(K){R(K,_)}function R(K,Y){var ne=K.parents.size;if(ne)for(var $=e(K.parents),A=0;A<ne;++A)Y($[A],K)}function c(K,Y){y(K.childValues.has(Y)),y(Q(Y));var ne=!Q(K);if(K.dirtyChildren){if(K.dirtyChildren.has(Y))return}else K.dirtyChildren=s.pop()||new Set;K.dirtyChildren.add(Y),ne&&L(K)}function _(K,Y){y(K.childValues.has(Y)),y(!Q(Y));var ne=K.childValues.get(Y);0===ne.length?K.childValues.set(Y,function M(K){return K.slice(0)}(Y.value)):function m(K,Y){var ne=K.length;return ne>0&&ne===Y.length&&K[ne-1]===Y[ne-1]}(ne,Y.value)||K.setDirty(),l(K,Y),!Q(K)&&g(K)}function l(K,Y){var ne=K.dirtyChildren;ne&&(ne.delete(Y),0===ne.size&&(s.length<100&&s.push(ne),K.dirtyChildren=null))}function T(K){K.childValues.size>0&&K.childValues.forEach(function(Y,ne){B(K,ne)}),K.forgetDeps(),y(null===K.dirtyChildren)}function B(K,Y){Y.parents.delete(K),K.childValues.delete(Y),l(K,Y)}var z={setDirty:!0,dispose:!0,forget:!0};function ae(K){var Y=new Map,ne=K&&K.subscribe;function $(A){var b=n.getValue();if(b){var x=Y.get(A);x||Y.set(A,x=new Set),b.dependOn(x),"function"==typeof ne&&(i(x),x.unsubscribe=ne(A))}}return $.dirty=function(b,x){var N=Y.get(b);if(N){var q=x&&u.call(z,x)?x:"setDirty";e(N).forEach(function(ee){return ee[q]()}),Y.delete(b),i(N)}},$}function pe(){var K=new t.B("function"==typeof WeakMap);return function(){return K.lookupArray(arguments)}}pe();var he=new Set;function oe(K,Y){void 0===Y&&(Y=Object.create(null));var ne=new r(Y.max||Math.pow(2,16),function(ee){return ee.dispose()}),$=Y.keyArgs,A=Y.makeCacheKey||pe(),b=function(){var ee=A.apply(null,$?$.apply(null,arguments):arguments);if(void 0===ee)return K.apply(null,arguments);var ue=ne.get(ee);ue||(ne.set(ee,ue=new P(K)),ue.subscribe=Y.subscribe,ue.forget=function(){return ne.delete(ee)});var _e=ue.recompute(Array.prototype.slice.call(arguments));return ne.set(ee,ue),he.add(ne),n.hasValue()||(he.forEach(function(me){return me.clean()}),he.clear()),_e};function x(ee){var ue=ne.get(ee);ue&&ue.setDirty()}function N(ee){var ue=ne.get(ee);if(ue)return ue.peek()}function q(ee){return ne.delete(ee)}return Object.defineProperty(b,"size",{get:function(){return ne.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=q,b.forget=function(){return q(A.apply(null,arguments))},b.makeCacheKey=A,b.getKey=$?function(){return A.apply(null,$.apply(null,arguments))}:A,Object.freeze(b)}},56473:ce=>{"use strict";function k(p,t){return Object.prototype.hasOwnProperty.call(p,t)}ce.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 a=1e3;d&&"number"==typeof d.maxKeys&&(a=d.maxKeys);var u=p.length;a>0&&u>a&&(u=a);for(var e=0;e<u;++e){var h,y,m,I,i=p[e].replace(n,"%20"),s=i.indexOf(w);s>=0?(h=i.substr(0,s),y=i.substr(s+1)):(h=i,y=""),m=decodeURIComponent(h),I=decodeURIComponent(y),k(r,m)?Array.isArray(r[m])?r[m].push(I):r[m]=[r[m],I]:r[m]=I}return r}},49851:ce=>{"use strict";var k=function(p){switch(typeof p){case"string":return p;case"boolean":return p?"true":"false";case"number":return isFinite(p)?p:"";default:return""}};ce.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(k(r))+w;return Array.isArray(p[r])?p[r].map(function(a){return n+encodeURIComponent(k(a))}).join(t):n+encodeURIComponent(k(p[r]))}).join(t):d?encodeURIComponent(k(d))+w+encodeURIComponent(k(p)):""}},31625:(ce,k,p)=>{"use strict";k.decode=k.parse=p(56473),k.encode=k.stringify=p(49851)},94448:function(ce,k,p){var t;ce=p.nmd(ce),function(w){"object"==typeof global&&global;var a,u=2147483647,e=36,P=/^xn--/,C=/[^\x20-\x7E]/,D=/[\x2E\u3002\uFF0E\uFF61]/g,W={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},H=Math.floor,L=String.fromCharCode;function R(oe){throw RangeError(W[oe])}function c(oe,K){for(var Y=oe.length,ne=[];Y--;)ne[Y]=K(oe[Y]);return ne}function _(oe,K){var Y=oe.split("@"),ne="";return Y.length>1&&(ne=Y[0]+"@",oe=Y[1]),ne+c((oe=oe.replace(D,".")).split("."),K).join(".")}function l(oe){for(var $,A,K=[],Y=0,ne=oe.length;Y<ne;)($=oe.charCodeAt(Y++))>=55296&&$<=56319&&Y<ne?56320==(64512&(A=oe.charCodeAt(Y++)))?K.push(((1023&$)<<10)+(1023&A)+65536):(K.push($),Y--):K.push($);return K}function T(oe){return c(oe,function(K){var Y="";return K>65535&&(Y+=L((K-=65536)>>>10&1023|55296),K=56320|1023&K),Y+L(K)}).join("")}function B(oe){return oe-48<10?oe-22:oe-65<26?oe-65:oe-97<26?oe-97:e}function U(oe,K){return oe+22+75*(oe<26)-((0!=K)<<5)}function z(oe,K,Y){var ne=0;for(oe=Y?H(oe/700):oe>>1,oe+=H(oe/K);oe>455;ne+=e)oe=H(oe/35);return H(ne+36*oe/(oe+38))}function ae(oe){var ne,x,N,q,ee,ue,_e,me,Re,De,K=[],Y=oe.length,$=0,A=128,b=72;for((x=oe.lastIndexOf("-"))<0&&(x=0),N=0;N<x;++N)oe.charCodeAt(N)>=128&&R("not-basic"),K.push(oe.charCodeAt(N));for(q=x>0?x+1:0;q<Y;){for(ee=$,ue=1,_e=e;q>=Y&&R("invalid-input"),((me=B(oe.charCodeAt(q++)))>=e||me>H((u-$)/ue))&&R("overflow"),$+=me*ue,!(me<(Re=_e<=b?1:_e>=b+26?26:_e-b));_e+=e)ue>H(u/(De=e-Re))&&R("overflow"),ue*=De;b=z($-ee,ne=K.length+1,0==ee),H($/ne)>u-A&&R("overflow"),A+=H($/ne),$%=ne,K.splice($++,0,A)}return T(K)}function pe(oe){var K,Y,ne,$,A,b,x,N,q,ee,ue,me,Re,De,Me,_e=[];for(me=(oe=l(oe)).length,K=128,Y=0,A=72,b=0;b<me;++b)(ue=oe[b])<128&&_e.push(L(ue));for(ne=$=_e.length,$&&_e.push("-");ne<me;){for(x=u,b=0;b<me;++b)(ue=oe[b])>=K&&ue<x&&(x=ue);for(x-K>H((u-Y)/(Re=ne+1))&&R("overflow"),Y+=(x-K)*Re,K=x,b=0;b<me;++b)if((ue=oe[b])<K&&++Y>u&&R("overflow"),ue==K){for(N=Y,q=e;!(N<(ee=q<=A?1:q>=A+26?26:q-A));q+=e)_e.push(L(U(ee+(Me=N-ee)%(De=e-ee),0))),N=H(Me/De);_e.push(L(U(N,0))),A=z(Y,Re,ne==$),Y=0,++ne}++Y,++K}return _e.join("")}a={version:"1.3.2",ucs2:{decode:l,encode:T},decode:ae,encode:pe,toASCII:function he(oe){return _(oe,function(K){return C.test(K)?"xn--"+pe(K):K})},toUnicode:function X(oe){return _(oe,function(K){return P.test(K)?ae(K.slice(4).toLowerCase()):K})}},void 0!==(t=function(){return a}.call(k,p,k,ce))&&(ce.exports=t)}()},90258:(ce,k,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}k.parse=W,k.resolve=function H(g,R){return W(g,!1,!0).resolve(R)},k.resolveObject=function L(g,R){return g?W(g,!1,!0).resolveObject(R):R},k.format=function Q(g){return w.isString(g)&&(g=W(g)),g instanceof d?g.format():d.prototype.format.call(g)},k.Url=d;var r=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,e=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),i=["'"].concat(e),s=["%","/","?",";","#"].concat(i),h=["/","?","#"],m=/^[+a-z0-9A-Z_-]{0,63}$/,I=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,M={javascript:!0,"javascript:":!0},P={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},D=p(31625);function W(g,R,c){if(g&&w.isObject(g)&&g instanceof d)return g;var _=new d;return _.parse(g,R,c),_}d.prototype.parse=function(g,R,c){if(!w.isString(g))throw new TypeError("Parameter 'url' must be a string, not "+typeof g);var _=g.indexOf("?"),l=-1!==_&&_<g.indexOf("#")?"?":"#",T=g.split(l);T[0]=T[0].replace(/\\/g,"/");var U=g=T.join(l);if(U=U.trim(),!c&&1===g.split("#").length){var z=a.exec(U);if(z)return this.path=U,this.href=U,this.pathname=z[1],z[2]?(this.search=z[2],this.query=R?D.parse(this.search.substr(1)):this.search.substr(1)):R&&(this.search="",this.query={}),this}var ae=r.exec(U);if(ae){var pe=(ae=ae[0]).toLowerCase();this.protocol=pe,U=U.substr(ae.length)}if(c||ae||U.match(/^\/\/[^@\/]+@[^@\/]+/)){var X="//"===U.substr(0,2);X&&(!ae||!P[ae])&&(U=U.substr(2),this.slashes=!0)}if(!P[ae]&&(X||ae&&!C[ae])){for(var he=-1,oe=0;oe<h.length;oe++)-1!==(K=U.indexOf(h[oe]))&&(-1===he||K<he)&&(he=K);var Y,ne;for(-1!==(ne=-1===he?U.lastIndexOf("@"):U.lastIndexOf("@",he))&&(Y=U.slice(0,ne),U=U.slice(ne+1),this.auth=decodeURIComponent(Y)),he=-1,oe=0;oe<s.length;oe++){var K;-1!==(K=U.indexOf(s[oe]))&&(-1===he||K<he)&&(he=K)}-1===he&&(he=U.length),this.host=U.slice(0,he),U=U.slice(he),this.parseHost(),this.hostname=this.hostname||"";var $="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!$)for(var A=this.hostname.split(/\./),b=(oe=0,A.length);oe<b;oe++){var x=A[oe];if(x&&!x.match(m)){for(var N="",q=0,ee=x.length;q<ee;q++)x.charCodeAt(q)>127?N+="x":N+=x[q];if(!N.match(m)){var ue=A.slice(0,oe),_e=A.slice(oe+1),me=x.match(I);me&&(ue.push(me[1]),_e.unshift(me[2])),_e.length&&(U="/"+_e.join(".")+U),this.hostname=ue.join(".");break}}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),$||(this.hostname=t.toASCII(this.hostname)),this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,$&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==U[0]&&(U="/"+U))}if(!M[pe])for(oe=0,b=i.length;oe<b;oe++){var Me=i[oe];if(-1!==U.indexOf(Me)){var ie=encodeURIComponent(Me);ie===Me&&(ie=escape(Me)),U=U.split(Me).join(ie)}}var V=U.indexOf("#");-1!==V&&(this.hash=U.substr(V),U=U.slice(0,V));var v=U.indexOf("?");return-1!==v?(this.search=U.substr(v),this.query=U.substr(v+1),R&&(this.query=D.parse(this.query)),U=U.slice(0,v)):R&&(this.search="",this.query={}),U&&(this.pathname=U),C[pe]&&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 R=this.protocol||"",c=this.pathname||"",_=this.hash||"",l=!1,T="";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&&(T=D.stringify(this.query));var B=this.search||T&&"?"+T||"";return R&&":"!==R.substr(-1)&&(R+=":"),this.slashes||(!R||C[R])&&!1!==l?(l="//"+(l||""),c&&"/"!==c.charAt(0)&&(c="/"+c)):l||(l=""),_&&"#"!==_.charAt(0)&&(_="#"+_),B&&"?"!==B.charAt(0)&&(B="?"+B),R+l+(c=c.replace(/[?#]/g,function(U){return encodeURIComponent(U)}))+(B=B.replace("#","%23"))+_},d.prototype.resolve=function(g){return this.resolveObject(W(g,!1,!0)).format()},d.prototype.resolveObject=function(g){if(w.isString(g)){var R=new d;R.parse(g,!1,!0),g=R}for(var c=new d,_=Object.keys(this),l=0;l<_.length;l++){var T=_[l];c[T]=this[T]}if(c.hash=g.hash,""===g.href)return c.href=c.format(),c;if(g.slashes&&!g.protocol){for(var B=Object.keys(g),U=0;U<B.length;U++){var z=B[U];"protocol"!==z&&(c[z]=g[z])}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 ae=Object.keys(g),pe=0;pe<ae.length;pe++){var X=ae[pe];c[X]=g[X]}return c.href=c.format(),c}if(c.protocol=g.protocol,g.host||P[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 K=c.pathname&&"/"===c.pathname.charAt(0),Y=g.host||g.pathname&&"/"===g.pathname.charAt(0),ne=Y||K||c.host&&g.pathname,$=ne,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),ne=ne&&(""===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 q=A.slice(-1)[0],ee=(c.host||g.host||A.length>1)&&("."===q||".."===q)||""===q,ue=0,_e=A.length;_e>=0;_e--)"."===(q=A[_e])?A.splice(_e,1):".."===q?(A.splice(_e,1),ue++):ue&&(A.splice(_e,1),ue--);if(!ne&&!$)for(;ue--;ue)A.unshift("..");ne&&""!==A[0]&&(!A[0]||"/"!==A[0].charAt(0))&&A.unshift(""),ee&&"/"!==A.join("/").substr(-1)&&A.push("");var N,me=""===A[0]||A[0]&&"/"===A[0].charAt(0);return x&&(c.hostname=c.host=me?"":A.length?A.shift():"",(N=!!(c.host&&c.host.indexOf("@")>0)&&c.host.split("@"))&&(c.auth=N.shift(),c.host=c.hostname=N.shift())),(ne=ne||c.host&&A.length)&&!me&&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,R=n.exec(g);R&&(":"!==(R=R[0])&&(this.port=R.substr(1)),g=g.substr(0,g.length-R.length)),g&&(this.hostname=g)}},829:ce=>{"use strict";ce.exports={isString:function(k){return"string"==typeof k},isObject:function(k){return"object"==typeof k&&null!==k},isNull:function(k){return null===k},isNullOrUndefined:function(k){return null==k}}},17403:ce=>{ce.exports=function(p){return p&&"object"==typeof p&&"function"==typeof p.copy&&"function"==typeof p.fill&&"function"==typeof p.readUInt8}},84593:(ce,k,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 a=typeof BigInt<"u",u=typeof Symbol<"u",e=n(Object.prototype.toString),i=n(Number.prototype.valueOf),s=n(String.prototype.valueOf),h=n(Boolean.prototype.valueOf);if(a)var y=n(BigInt.prototype.valueOf);if(u)var m=n(Symbol.prototype.valueOf);function I(v,O){if("object"!=typeof v)return!1;try{return O(v),!0}catch{return!1}}function T(v){return"[object Map]"===e(v)}function U(v){return"[object Set]"===e(v)}function ae(v){return"[object WeakMap]"===e(v)}function X(v){return"[object WeakSet]"===e(v)}function oe(v){return"[object ArrayBuffer]"===e(v)}function K(v){return!(typeof ArrayBuffer>"u")&&(oe.working?oe(v):v instanceof ArrayBuffer)}function Y(v){return"[object DataView]"===e(v)}function ne(v){return!(typeof DataView>"u")&&(Y.working?Y(v):v instanceof DataView)}k.isArgumentsObject=t,k.isGeneratorFunction=w,k.isTypedArray=r,k.isPromise=function M(v){return typeof Promise<"u"&&v instanceof Promise||null!==v&&"object"==typeof v&&"function"==typeof v.then&&"function"==typeof v.catch},k.isArrayBufferView=function P(v){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(v):r(v)||ne(v)},k.isUint8Array=function C(v){return"Uint8Array"===d(v)},k.isUint8ClampedArray=function D(v){return"Uint8ClampedArray"===d(v)},k.isUint16Array=function W(v){return"Uint16Array"===d(v)},k.isUint32Array=function Q(v){return"Uint32Array"===d(v)},k.isInt8Array=function H(v){return"Int8Array"===d(v)},k.isInt16Array=function L(v){return"Int16Array"===d(v)},k.isInt32Array=function g(v){return"Int32Array"===d(v)},k.isFloat32Array=function R(v){return"Float32Array"===d(v)},k.isFloat64Array=function c(v){return"Float64Array"===d(v)},k.isBigInt64Array=function _(v){return"BigInt64Array"===d(v)},k.isBigUint64Array=function l(v){return"BigUint64Array"===d(v)},T.working=typeof Map<"u"&&T(new Map),k.isMap=function B(v){return!(typeof Map>"u")&&(T.working?T(v):v instanceof Map)},U.working=typeof Set<"u"&&U(new Set),k.isSet=function z(v){return!(typeof Set>"u")&&(U.working?U(v):v instanceof Set)},ae.working=typeof WeakMap<"u"&&ae(new WeakMap),k.isWeakMap=function pe(v){return!(typeof WeakMap>"u")&&(ae.working?ae(v):v instanceof WeakMap)},X.working=typeof WeakSet<"u"&&X(new WeakSet),k.isWeakSet=function he(v){return X(v)},oe.working=typeof ArrayBuffer<"u"&&oe(new ArrayBuffer),k.isArrayBuffer=K,Y.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Y(new DataView(new ArrayBuffer(1),0,1)),k.isDataView=ne;var $=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function A(v){return"[object SharedArrayBuffer]"===e(v)}function b(v){return!(typeof $>"u")&&(typeof A.working>"u"&&(A.working=A(new $)),A.working?A(v):v instanceof $)}function _e(v){return I(v,i)}function me(v){return I(v,s)}function Re(v){return I(v,h)}function De(v){return a&&I(v,y)}function Me(v){return u&&I(v,m)}k.isSharedArrayBuffer=b,k.isAsyncFunction=function x(v){return"[object AsyncFunction]"===e(v)},k.isMapIterator=function N(v){return"[object Map Iterator]"===e(v)},k.isSetIterator=function q(v){return"[object Set Iterator]"===e(v)},k.isGeneratorObject=function ee(v){return"[object Generator]"===e(v)},k.isWebAssemblyCompiledModule=function ue(v){return"[object WebAssembly.Module]"===e(v)},k.isNumberObject=_e,k.isStringObject=me,k.isBooleanObject=Re,k.isBigIntObject=De,k.isSymbolObject=Me,k.isBoxedPrimitive=function ie(v){return _e(v)||me(v)||Re(v)||De(v)||Me(v)},k.isAnyArrayBuffer=function V(v){return typeof Uint8Array<"u"&&(K(v)||b(v))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(v){Object.defineProperty(k,v,{enumerable:!1,value:function(){throw new Error(v+" is not supported in userland")}})})},14999:(ce,k,p)=>{var t=Object.getOwnPropertyDescriptors||function(ne){for(var $=Object.keys(ne),A={},b=0;b<$.length;b++)A[$[b]]=Object.getOwnPropertyDescriptor(ne,$[b]);return A},w=/%[sdj%]/g;k.format=function(Y){if(!H(Y)){for(var ne=[],$=0;$<arguments.length;$++)ne.push(a(arguments[$]));return ne.join(" ")}$=1;for(var A=arguments,b=A.length,x=String(Y).replace(w,function(q){if("%%"===q)return"%";if($>=b)return q;switch(q){case"%s":return String(A[$++]);case"%d":return Number(A[$++]);case"%j":try{return JSON.stringify(A[$++])}catch{return"[Circular]"}default:return q}}),N=A[$];$<b;N=A[++$])D(N)||!c(N)?x+=" "+N:x+=" "+a(N);return x},k.deprecate=function(Y,ne){if(typeof process<"u"&&!0===process.noDeprecation)return Y;if(typeof process>"u")return function(){return k.deprecate(Y,ne).apply(this,arguments)};var $=!1;return function A(){if(!$){if(process.throwDeprecation)throw new Error(ne);process.traceDeprecation?console.trace(ne):console.error(ne),$=!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 a(Y,ne){var $={seen:[],stylize:e};return arguments.length>=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),C(ne)?$.showHidden=ne:ne&&k._extend($,ne),g($.showHidden)&&($.showHidden=!1),g($.depth)&&($.depth=2),g($.colors)&&($.colors=!1),g($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=u),s($,Y,$.depth)}function u(Y,ne){var $=a.styles[ne];return $?"\x1b["+a.colors[$][0]+"m"+Y+"\x1b["+a.colors[$][1]+"m":Y}function e(Y,ne){return Y}function s(Y,ne,$){if(Y.customInspect&&ne&&T(ne.inspect)&&ne.inspect!==k.inspect&&(!ne.constructor||ne.constructor.prototype!==ne)){var A=ne.inspect($,Y);return H(A)||(A=s(Y,A,$)),A}var b=function h(Y,ne){if(g(ne))return Y.stylize("undefined","undefined");if(H(ne)){var $="'"+JSON.stringify(ne).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Y.stylize($,"string")}return Q(ne)?Y.stylize(""+ne,"number"):C(ne)?Y.stylize(""+ne,"boolean"):D(ne)?Y.stylize("null","null"):void 0}(Y,ne);if(b)return b;var x=Object.keys(ne),N=function i(Y){var ne={};return Y.forEach(function($,A){ne[$]=!0}),ne}(x);if(Y.showHidden&&(x=Object.getOwnPropertyNames(ne)),l(ne)&&(x.indexOf("message")>=0||x.indexOf("description")>=0))return y(ne);if(0===x.length){if(T(ne))return Y.stylize("[Function"+(ne.name?": "+ne.name:"")+"]","special");if(R(ne))return Y.stylize(RegExp.prototype.toString.call(ne),"regexp");if(_(ne))return Y.stylize(Date.prototype.toString.call(ne),"date");if(l(ne))return y(ne)}var Re,ee="",ue=!1,_e=["{","}"];return P(ne)&&(ue=!0,_e=["[","]"]),T(ne)&&(ee=" [Function"+(ne.name?": "+ne.name:"")+"]"),R(ne)&&(ee=" "+RegExp.prototype.toString.call(ne)),_(ne)&&(ee=" "+Date.prototype.toUTCString.call(ne)),l(ne)&&(ee=" "+y(ne)),0!==x.length||ue&&0!=ne.length?$<0?R(ne)?Y.stylize(RegExp.prototype.toString.call(ne),"regexp"):Y.stylize("[Object]","special"):(Y.seen.push(ne),Re=ue?function m(Y,ne,$,A,b){for(var x=[],N=0,q=ne.length;N<q;++N)X(ne,String(N))?x.push(I(Y,ne,$,A,String(N),!0)):x.push("");return b.forEach(function(ee){ee.match(/^\d+$/)||x.push(I(Y,ne,$,A,ee,!0))}),x}(Y,ne,$,N,x):x.map(function(De){return I(Y,ne,$,N,De,ue)}),Y.seen.pop(),function M(Y,ne,$){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?$[0]+(""===ne?"":ne+"\n ")+" "+Y.join(",\n ")+" "+$[1]:$[0]+ne+" "+Y.join(", ")+" "+$[1]}(Re,ee,_e)):_e[0]+ee+_e[1]}function y(Y){return"["+Error.prototype.toString.call(Y)+"]"}function I(Y,ne,$,A,b,x){var N,q,ee;if((ee=Object.getOwnPropertyDescriptor(ne,b)||{value:ne[b]}).get?q=Y.stylize(ee.set?"[Getter/Setter]":"[Getter]","special"):ee.set&&(q=Y.stylize("[Setter]","special")),X(A,b)||(N="["+b+"]"),q||(Y.seen.indexOf(ee.value)<0?(q=D($)?s(Y,ee.value,null):s(Y,ee.value,$-1)).indexOf("\n")>-1&&(q=x?q.split("\n").map(function(ue){return" "+ue}).join("\n").substr(2):"\n"+q.split("\n").map(function(ue){return" "+ue}).join("\n")):q=Y.stylize("[Circular]","special")),g(N)){if(x&&b.match(/^\d+$/))return q;(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+": "+q}function P(Y){return Array.isArray(Y)}function C(Y){return"boolean"==typeof Y}function D(Y){return null===Y}function Q(Y){return"number"==typeof Y}function H(Y){return"string"==typeof Y}function g(Y){return void 0===Y}function R(Y){return c(Y)&&"[object RegExp]"===U(Y)}function c(Y){return"object"==typeof Y&&null!==Y}function _(Y){return c(Y)&&"[object Date]"===U(Y)}function l(Y){return c(Y)&&("[object Error]"===U(Y)||Y instanceof Error)}function T(Y){return"function"==typeof Y}function U(Y){return Object.prototype.toString.call(Y)}function z(Y){return Y<10?"0"+Y.toString(10):Y.toString(10)}k.debuglog=function(Y){if(Y=Y.toUpperCase(),!d[Y])if(r.test(Y)){var ne=process.pid;d[Y]=function(){var $=k.format.apply(k,arguments);console.error("%s %d: %s",Y,ne,$)}}else d[Y]=function(){};return d[Y]},k.inspect=a,a.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]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},k.types=p(84593),k.isArray=P,k.isBoolean=C,k.isNull=D,k.isNullOrUndefined=function W(Y){return null==Y},k.isNumber=Q,k.isString=H,k.isSymbol=function L(Y){return"symbol"==typeof Y},k.isUndefined=g,k.isRegExp=R,k.types.isRegExp=R,k.isObject=c,k.isDate=_,k.types.isDate=_,k.isError=l,k.types.isNativeError=l,k.isFunction=T,k.isPrimitive=function B(Y){return null===Y||"boolean"==typeof Y||"number"==typeof Y||"string"==typeof Y||"symbol"==typeof Y||typeof Y>"u"},k.isBuffer=p(17403);var ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function pe(){var Y=new Date,ne=[z(Y.getHours()),z(Y.getMinutes()),z(Y.getSeconds())].join(":");return[Y.getDate(),ae[Y.getMonth()],ne].join(" ")}function X(Y,ne){return Object.prototype.hasOwnProperty.call(Y,ne)}k.log=function(){console.log("%s - %s",pe(),k.format.apply(k,arguments))},k.inherits=p(83201),k._extend=function(Y,ne){if(!ne||!c(ne))return Y;for(var $=Object.keys(ne),A=$.length;A--;)Y[$[A]]=ne[$[A]];return Y};var he=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function oe(Y,ne){if(!Y){var $=new Error("Promise was rejected with a falsy value");$.reason=Y,Y=$}return ne(Y)}k.promisify=function(ne){if("function"!=typeof ne)throw new TypeError('The "original" argument must be of type Function');if(he&&ne[he]){var $;if("function"!=typeof($=ne[he]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty($,he,{value:$,enumerable:!1,writable:!1,configurable:!0}),$}function $(){for(var A,b,x=new Promise(function(ee,ue){A=ee,b=ue}),N=[],q=0;q<arguments.length;q++)N.push(arguments[q]);N.push(function(ee,ue){ee?b(ee):A(ue)});try{ne.apply(this,N)}catch(ee){b(ee)}return x}return Object.setPrototypeOf($,Object.getPrototypeOf(ne)),he&&Object.defineProperty($,he,{value:$,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties($,t(ne))},k.promisify.custom=he,k.callbackify=function K(Y){if("function"!=typeof Y)throw new TypeError('The "original" argument must be of type Function');function ne(){for(var $=[],A=0;A<arguments.length;A++)$.push(arguments[A]);var b=$.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,$).then(function(q){process.nextTick(N.bind(null,null,q))},function(q){process.nextTick(oe.bind(null,q,N))})}return Object.setPrototypeOf(ne,Object.getPrototypeOf(Y)),Object.defineProperties(ne,t(Y)),ne}},49927:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{NIL:()=>Y,parse:()=>h,stringify:()=>w.Z,v1:()=>e,v3:()=>U,v4:()=>z.Z,v5:()=>K,validate:()=>i.Z,version:()=>$});var d,r,t=p(46481),w=p(58965),n=0,a=0;const e=function u(A,b,x){var N=b&&x||0,q=b||new Array(16),ee=(A=A||{}).node||d,ue=void 0!==A.clockseq?A.clockseq:r;if(null==ee||null==ue){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==ue&&(ue=r=16383&(_e[6]<<8|_e[7]))}var me=void 0!==A.msecs?A.msecs:Date.now(),Re=void 0!==A.nsecs?A.nsecs:a+1,De=me-n+(Re-a)/1e4;if(De<0&&void 0===A.clockseq&&(ue=ue+1&16383),(De<0||me>n)&&void 0===A.nsecs&&(Re=0),Re>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");n=me,a=Re,r=ue;var Me=(1e4*(268435455&(me+=122192928e5))+Re)%4294967296;q[N++]=Me>>>24&255,q[N++]=Me>>>16&255,q[N++]=Me>>>8&255,q[N++]=255&Me;var ie=me/4294967296*1e4&268435455;q[N++]=ie>>>8&255,q[N++]=255&ie,q[N++]=ie>>>24&15|16,q[N++]=ie>>>16&255,q[N++]=ue>>>8|128,q[N++]=255&ue;for(var V=0;V<6;++V)q[N+V]=ee[V];return b||(0,w.Z)(q)};var i=p(84638);const h=function s(A){if(!(0,i.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 M(A,b,x){function N(q,ee,ue,_e){if("string"==typeof q&&(q=function y(A){A=unescape(encodeURIComponent(A));for(var b=[],x=0;x<A.length;++x)b.push(A.charCodeAt(x));return b}(q)),"string"==typeof ee&&(ee=h(ee)),16!==ee.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var me=new Uint8Array(16+q.length);if(me.set(ee),me.set(q,ee.length),(me=x(me))[6]=15&me[6]|b,me[8]=63&me[8]|128,ue){_e=_e||0;for(var Re=0;Re<16;++Re)ue[_e+Re]=me[Re];return ue}return(0,w.Z)(me)}try{N.name=A}catch{}return N.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",N.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",N}function D(A){return 14+(A+64>>>9<<4)+1}function H(A,b){var x=(65535&A)+(65535&b);return(A>>16)+(b>>16)+(x>>16)<<16|65535&x}function g(A,b,x,N,q,ee){return H(function L(A,b){return A<<b|A>>>32-b}(H(H(b,A),H(N,ee)),q),x)}function R(A,b,x,N,q,ee,ue){return g(b&x|~b&N,A,b,q,ee,ue)}function c(A,b,x,N,q,ee,ue){return g(b&N|x&~N,A,b,q,ee,ue)}function _(A,b,x,N,q,ee,ue){return g(b^x^N,A,b,q,ee,ue)}function l(A,b,x,N,q,ee,ue){return g(x^(b|~N),A,b,q,ee,ue)}const U=M("v3",48,function P(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",q=0;q<x;q+=8){var ee=A[q>>5]>>>q%32&255,ue=parseInt(N.charAt(ee>>>4&15)+N.charAt(15&ee),16);b.push(ue)}return b}(function W(A,b){A[b>>5]|=128<<b%32,A[D(b)-1]=b;for(var x=1732584193,N=-271733879,q=-1732584194,ee=271733878,ue=0;ue<A.length;ue+=16){var _e=x,me=N,Re=q,De=ee;x=R(x,N,q,ee,A[ue],7,-680876936),ee=R(ee,x,N,q,A[ue+1],12,-389564586),q=R(q,ee,x,N,A[ue+2],17,606105819),N=R(N,q,ee,x,A[ue+3],22,-1044525330),x=R(x,N,q,ee,A[ue+4],7,-176418897),ee=R(ee,x,N,q,A[ue+5],12,1200080426),q=R(q,ee,x,N,A[ue+6],17,-1473231341),N=R(N,q,ee,x,A[ue+7],22,-45705983),x=R(x,N,q,ee,A[ue+8],7,1770035416),ee=R(ee,x,N,q,A[ue+9],12,-1958414417),q=R(q,ee,x,N,A[ue+10],17,-42063),N=R(N,q,ee,x,A[ue+11],22,-1990404162),x=R(x,N,q,ee,A[ue+12],7,1804603682),ee=R(ee,x,N,q,A[ue+13],12,-40341101),q=R(q,ee,x,N,A[ue+14],17,-1502002290),x=c(x,N=R(N,q,ee,x,A[ue+15],22,1236535329),q,ee,A[ue+1],5,-165796510),ee=c(ee,x,N,q,A[ue+6],9,-1069501632),q=c(q,ee,x,N,A[ue+11],14,643717713),N=c(N,q,ee,x,A[ue],20,-373897302),x=c(x,N,q,ee,A[ue+5],5,-701558691),ee=c(ee,x,N,q,A[ue+10],9,38016083),q=c(q,ee,x,N,A[ue+15],14,-660478335),N=c(N,q,ee,x,A[ue+4],20,-405537848),x=c(x,N,q,ee,A[ue+9],5,568446438),ee=c(ee,x,N,q,A[ue+14],9,-1019803690),q=c(q,ee,x,N,A[ue+3],14,-187363961),N=c(N,q,ee,x,A[ue+8],20,1163531501),x=c(x,N,q,ee,A[ue+13],5,-1444681467),ee=c(ee,x,N,q,A[ue+2],9,-51403784),q=c(q,ee,x,N,A[ue+7],14,1735328473),x=_(x,N=c(N,q,ee,x,A[ue+12],20,-1926607734),q,ee,A[ue+5],4,-378558),ee=_(ee,x,N,q,A[ue+8],11,-2022574463),q=_(q,ee,x,N,A[ue+11],16,1839030562),N=_(N,q,ee,x,A[ue+14],23,-35309556),x=_(x,N,q,ee,A[ue+1],4,-1530992060),ee=_(ee,x,N,q,A[ue+4],11,1272893353),q=_(q,ee,x,N,A[ue+7],16,-155497632),N=_(N,q,ee,x,A[ue+10],23,-1094730640),x=_(x,N,q,ee,A[ue+13],4,681279174),ee=_(ee,x,N,q,A[ue],11,-358537222),q=_(q,ee,x,N,A[ue+3],16,-722521979),N=_(N,q,ee,x,A[ue+6],23,76029189),x=_(x,N,q,ee,A[ue+9],4,-640364487),ee=_(ee,x,N,q,A[ue+12],11,-421815835),q=_(q,ee,x,N,A[ue+15],16,530742520),x=l(x,N=_(N,q,ee,x,A[ue+2],23,-995338651),q,ee,A[ue],6,-198630844),ee=l(ee,x,N,q,A[ue+7],10,1126891415),q=l(q,ee,x,N,A[ue+14],15,-1416354905),N=l(N,q,ee,x,A[ue+5],21,-57434055),x=l(x,N,q,ee,A[ue+12],6,1700485571),ee=l(ee,x,N,q,A[ue+3],10,-1894986606),q=l(q,ee,x,N,A[ue+10],15,-1051523),N=l(N,q,ee,x,A[ue+1],21,-2054922799),x=l(x,N,q,ee,A[ue+8],6,1873313359),ee=l(ee,x,N,q,A[ue+15],10,-30611744),q=l(q,ee,x,N,A[ue+6],15,-1560198380),N=l(N,q,ee,x,A[ue+13],21,1309151649),x=l(x,N,q,ee,A[ue+4],6,-145523070),ee=l(ee,x,N,q,A[ue+11],10,-1120210379),q=l(q,ee,x,N,A[ue+2],15,718787259),N=l(N,q,ee,x,A[ue+9],21,-343485551),x=H(x,_e),N=H(N,me),q=H(q,Re),ee=H(ee,De)}return[x,N,q,ee]}(function Q(A){if(0===A.length)return[];for(var b=8*A.length,x=new Uint32Array(D(b)),N=0;N<b;N+=8)x[N>>5]|=(255&A[N/8])<<N%32;return x}(A),8*A.length))});var z=p(14926);function ae(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 pe(A,b){return A<<b|A>>>32-b}const K=M("v5",80,function X(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 q=0;q<N.length;++q)A.push(N.charCodeAt(q))}else Array.isArray(A)||(A=Array.prototype.slice.call(A));A.push(128);for(var ue=Math.ceil((A.length/4+2)/16),_e=new Array(ue),me=0;me<ue;++me){for(var Re=new Uint32Array(16),De=0;De<16;++De)Re[De]=A[64*me+4*De]<<24|A[64*me+4*De+1]<<16|A[64*me+4*De+2]<<8|A[64*me+4*De+3];_e[me]=Re}_e[ue-1][14]=8*(A.length-1)/Math.pow(2,32),_e[ue-1][14]=Math.floor(_e[ue-1][14]),_e[ue-1][15]=8*(A.length-1)&4294967295;for(var Me=0;Me<ue;++Me){for(var ie=new Uint32Array(80),V=0;V<16;++V)ie[V]=_e[Me][V];for(var v=16;v<80;++v)ie[v]=pe(ie[v-3]^ie[v-8]^ie[v-14]^ie[v-16],1);for(var O=x[0],F=x[1],re=x[2],ve=x[3],xe=x[4],Te=0;Te<80;++Te){var te=Math.floor(Te/20),de=pe(O,5)+ae(te,F,re,ve)+xe+b[te]+ie[Te]>>>0;xe=ve,ve=re,re=pe(F,30)>>>0,F=O,O=de}x[0]=x[0]+O>>>0,x[1]=x[1]+F>>>0,x[2]=x[2]+re>>>0,x[3]=x[3]+ve>>>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",$=function ne(A){if(!(0,i.Z)(A))throw TypeError("Invalid UUID");return parseInt(A.substr(14,1),16)}},68426:(ce,k,p)=>{"use strict";var t=p(72441),w=p(46841),d=p(63859),r=d("Object.prototype.toString"),n=p(38411)(),a=typeof globalThis>"u"?global:globalThis,u=w(),e=d("String.prototype.slice"),i={},s=p(58851),h=Object.getPrototypeOf;n&&s&&h&&t(u,function(I){if("function"==typeof a[I]){var M=new a[I];if(Symbol.toStringTag in M){var P=h(M),C=s(P,Symbol.toStringTag);if(!C){var D=h(P);C=s(D,Symbol.toStringTag)}i[I]=C.get}}});var m=p(85981);ce.exports=function(M){return!!m(M)&&(n&&Symbol.toStringTag in M?function(M){var P=!1;return t(i,function(C,D){if(!P)try{var W=C.call(M);W===D&&(P=W)}catch{}}),P}(M):e(r(M),8,-1))}},20316:(ce,k,p)=>{ce.exports=p(16390).Observable},16390:(ce,k)=>{"use strict";function t(g,R){if(!(g instanceof R))throw new TypeError("Cannot call a class as a function")}function w(g,R){for(var c=0;c<R.length;c++){var _=R[c];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}function d(g,R,c){return R&&w(g.prototype,R),c&&w(g,c),g}k.Observable=void 0;var r=function(){return"function"==typeof Symbol},n=function(g){return r()&&Boolean(Symbol[g])},a=function(g){return n(g)?Symbol[g]:"@@"+g};r()&&!n("observable")&&(Symbol.observable=Symbol("observable"));var u=a("iterator"),e=a("observable"),i=a("species");function s(g,R){var c=g[R];if(null!=c){if("function"!=typeof c)throw new TypeError(c+" is not a function");return c}}function h(g){var R=g.constructor;return void 0!==R&&null===(R=R[i])&&(R=void 0),void 0!==R?R:L}function m(g){m.log?m.log(g):setTimeout(function(){throw g})}function I(g){Promise.resolve().then(function(){try{g()}catch(R){m(R)}})}function M(g){var R=g._cleanup;if(void 0!==R&&(g._cleanup=void 0,R))try{if("function"==typeof R)R();else{var c=s(R,"unsubscribe");c&&c.call(R)}}catch(_){m(_)}}function P(g){g._observer=void 0,g._queue=void 0,g._state="closed"}function D(g,R,c){g._state="running";var _=g._observer;try{var l=s(_,R);switch(R){case"next":l&&l.call(_,c);break;case"error":if(P(g),!l)throw c;l.call(_,c);break;case"complete":P(g),l&&l.call(_)}}catch(T){m(T)}"closed"===g._state?M(g):"running"===g._state&&(g._state="ready")}function W(g,R,c){if("closed"!==g._state){if("buffering"===g._state)return void g._queue.push({type:R,value:c});if("ready"!==g._state)return g._state="buffering",g._queue=[{type:R,value:c}],void I(function(){return function C(g){var R=g._queue;if(R){g._queue=void 0,g._state="ready";for(var c=0;c<R.length&&(D(g,R[c].type,R[c].value),"closed"!==g._state);++c);}}(g)});D(g,R,c)}}var Q=function(){function g(R,c){t(this,g),this._cleanup=void 0,this._observer=R,this._queue=void 0,this._state="initializing";var _=new H(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&&(P(this),M(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),g}(),H=function(){function g(R){t(this,g),this._subscription=R}return d(g,[{key:"next",value:function(c){W(this._subscription,"next",c)}},{key:"error",value:function(c){W(this._subscription,"error",c)}},{key:"complete",value:function(){W(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),g}(),L=function(){function g(R){if(t(this,g),!(this instanceof g))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof R)throw new TypeError("Observable initializer must be a function");this._subscriber=R}return d(g,[{key:"subscribe",value:function(c){return("object"!=typeof c||null===c)&&(c={next:c,error:arguments[1],complete:arguments[2]}),new Q(c,this._subscriber)}},{key:"forEach",value:function(c){var _=this;return new Promise(function(l,T){if("function"==typeof c)var U=_.subscribe({next:function(z){try{c(z,B)}catch(ae){T(ae),U.unsubscribe()}},error:T,complete:l});else T(new TypeError(c+" is not a function"));function B(){U.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(T){return _.subscribe({next:function(B){try{B=c(B)}catch(U){return T.error(U)}T.next(B)},error:function(B){T.error(B)},complete:function(){T.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(T){return _.subscribe({next:function(B){try{if(!c(B))return}catch(U){return T.error(U)}T.next(B)},error:function(B){T.error(B)},complete:function(){T.complete()}})})}},{key:"reduce",value:function(c){var _=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");var l=h(this),T=arguments.length>1,B=!1,U=arguments[1],z=U;return new l(function(ae){return _.subscribe({next:function(pe){var X=!B;if(B=!0,!X||T)try{z=c(z,pe)}catch(he){return ae.error(he)}else z=pe},error:function(pe){ae.error(pe)},complete:function(){if(!B&&!T)return ae.error(new TypeError("Cannot reduce an empty sequence"));ae.next(z),ae.complete()}})})}},{key:"concat",value:function(){for(var c=this,_=arguments.length,l=new Array(_),T=0;T<_;T++)l[T]=arguments[T];var B=h(this);return new B(function(U){var z,ae=0;return function pe(X){z=X.subscribe({next:function(he){U.next(he)},error:function(he){U.error(he)},complete:function(){ae===l.length?(z=void 0,U.complete()):pe(B.from(l[ae++]))}})}(c),function(){z&&(z.unsubscribe(),z=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(T){var B=[],U=_.subscribe({next:function(ae){if(c)try{ae=c(ae)}catch(X){return T.error(X)}var pe=l.from(ae).subscribe({next:function(X){T.next(X)},error:function(X){T.error(X)},complete:function(){var X=B.indexOf(pe);X>=0&&B.splice(X,1),z()}});B.push(pe)},error:function(ae){T.error(ae)},complete:function(){z()}});function z(){U.closed&&0===B.length&&T.complete()}return function(){B.forEach(function(ae){return ae.unsubscribe()}),U.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=s(c,e);if(l){var T=l.call(c);if(Object(T)!==T)throw new TypeError(T+" is not an object");return function y(g){return g instanceof L}(T)&&T.constructor===_?T:new _(function(B){return T.subscribe(B)})}if(n("iterator")&&(l=s(c,u)))return new _(function(B){I(function(){if(!B.closed){var U=!0,z=!1,ae=void 0;try{for(var X,pe=l.call(c)[Symbol.iterator]();!(U=(X=pe.next()).done);U=!0)if(B.next(X.value),B.closed)return}catch(oe){z=!0,ae=oe}finally{try{!U&&null!=pe.return&&pe.return()}finally{if(z)throw ae}}B.complete()}})});if(Array.isArray(c))return new _(function(B){I(function(){if(!B.closed){for(var U=0;U<c.length;++U)if(B.next(c[U]),B.closed)return;B.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 T="function"==typeof this?this:g;return new T(function(B){I(function(){if(!B.closed){for(var U=0;U<_.length;++U)if(B.next(_[U]),B.closed)return;B.complete()}})})}},{key:i,get:function(){return this}}]),g}();k.Observable=L,r()&&Object.defineProperty(L,Symbol("extensions"),{value:{symbol:e,hostReportError:m},configurable:!0})},30243:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{AppSyncSubscriptionProvider:()=>s});var t=p(69972),w=p(16922),d=p(60506),r=p(85641),a=p(29783),u=p(97307),e=p(45670),i=p(71439);class s extends t.q{execute(y){const m=this.connectionParams.aws_appsync_graphqlEndpoint,I=this.connectionParams.aws_appsync_region,M={type:this.connectionParams.aws_appsync_authenticationType,apiKey:this.connectionParams.aws_appsync_apiKey,jwtToken:this.connectionParams.aws_appsync_jwtToken},P=a.ApolloLink.from([(0,d.W9)({url:m,region:I,auth:M}),(0,r.createSubscriptionHandshakeLink)({url:m,region:I,auth:M})]),D=new u.f({link:P,cache:new e.h}).subscribe({query:(0,i.Qc)(y.query),variables:y.variables});return new w.y(W=>{this.subscription=D.subscribe({next:(...Q)=>W.next(...Q),error:(...Q)=>W.error(...Q),complete:()=>W.complete()})})}close(){this.subscription?.closed&&this.subscription?.unsubscribe()}}},45011:function(ce,k,p){"use strict";var D,t=this&&this.__extends||(D=function(W,Q){return(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,L){H.__proto__=L}||function(H,L){for(var g in L)L.hasOwnProperty(g)&&(H[g]=L[g])})(W,Q)},function(W,Q){function H(){this.constructor=W}D(W,Q),W.prototype=null===Q?Object.create(Q):(H.prototype=Q.prototype,new H)}),w=this&&this.__assign||function(){return w=Object.assign||function(D){for(var W,Q=1,H=arguments.length;Q<H;Q++)for(var L in W=arguments[Q])Object.prototype.hasOwnProperty.call(W,L)&&(D[L]=W[L]);return D},w.apply(this,arguments)},d=this&&this.__awaiter||function(D,W,Q,H){return new(Q||(Q=Promise))(function(g,R){function c(T){try{l(H.next(T))}catch(B){R(B)}}function _(T){try{l(H.throw(T))}catch(B){R(B)}}function l(T){T.done?g(T.value):function L(g){return g instanceof Q?g:new Q(function(R){R(g)})}(T.value).then(c,_)}l((H=H.apply(D,W||[])).next())})},r=this&&this.__generator||function(D,W){var H,L,g,R,Q={label:0,sent:function(){if(1&g[0])throw g[1];return g[1]},trys:[],ops:[]};return R={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(R[Symbol.iterator]=function(){return this}),R;function c(l){return function(T){return function _(l){if(H)throw new TypeError("Generator is already executing.");for(;Q;)try{if(H=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 Q.label++,{value:l[1],done:!1};case 5:Q.label++,L=l[1],l=[0];continue;case 7:l=Q.ops.pop(),Q.trys.pop();continue;default:if(!(g=(g=Q.trys).length>0&&g[g.length-1])&&(6===l[0]||2===l[0])){Q=0;continue}if(3===l[0]&&(!g||l[1]>g[0]&&l[1]<g[3])){Q.label=l[1];break}if(6===l[0]&&Q.label<g[1]){Q.label=g[1],g=l;break}if(g&&Q.label<g[2]){Q.label=g[2],Q.ops.push(l);break}g[2]&&Q.ops.pop(),Q.trys.pop();continue}l=W.call(D,Q)}catch(T){l=[6,T],L=0}finally{H=g=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,T])}}};Object.defineProperty(k,"__esModule",{value:!0});var y,n=p(98e3),a=p(8511),u=p(2745),e=p(90258),i=p(32246),s=p(44226);k.USER_AGENT_HEADER="x-amz-user-agent",k.USER_AGENT="aws-amplify/"+s.version+(i.userAgent&&" ")+i.userAgent,function(D){D.NONE="NONE",D.API_KEY="API_KEY",D.AWS_IAM="AWS_IAM",D.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",D.OPENID_CONNECT="OPENID_CONNECT"}(y=k.AUTH_TYPE||(k.AUTH_TYPE={}));var m=function(D){function W(Q){var H=D.call(this)||this;return H.link=k.authLink(Q),H}return t(W,D),W.prototype.request=function(Q,H){return this.link.request(Q,H)},W}(n.ApolloLink);k.AuthLink=m;var I=function(D,W,Q){var H=void 0===D?{header:"",value:""}:D,L=H.header,g=H.value;return d(void 0,void 0,void 0,function(){var R,c,l,T,B;return r(this,function(U){switch(U.label){case 0:return R=W.getContext(),c=w(w({},R.headers),((T={})[k.USER_AGENT_HEADER]=k.USER_AGENT,T)),L&&g?"function"!=typeof g?[3,2]:[4,g.call(void 0)]:[3,5];case 1:return l=U.sent(),[3,4];case 2:return[4,g];case 3:l=U.sent(),U.label=4;case 4:c=w(((B={})[L]=l,B),c),U.label=5;case 5:return W.setContext(w(w({},R),{headers:c})),[2,Q(W)]}})})};k.authLink=function(D){var W=D.url,Q=D.region,H=D.auth,L=(void 0===H?{}:H).type,g=D.auth;return new n.ApolloLink(function(R,c){return new n.Observable(function(_){var l,T;switch(L){case y.NONE:T=I(void 0,R,c);break;case y.AWS_IAM:var B=g.credentials;T=function(D,W,Q){var H=D.credentials,L=D.region,g=D.url;return d(void 0,void 0,void 0,function(){var R,c,_,l,T,B,U,z,ae,pe,X,he,oe;return r(this,function(K){switch(K.label){case 0:return R="appsync",c=W.getContext(),(_="function"==typeof H?H.call():H||{})&&"function"==typeof _.getPromise?[4,_.getPromise()]:[3,2];case 1:K.sent(),K.label=2;case 2:return[4,_];case 3:return l=K.sent(),T=l.accessKeyId,B=l.secretAccessKey,U=l.sessionToken,z=e.parse(g),ae=z.host,pe=z.path,X=w(w({},P(W,{})),{service:R,region:L,url:g,host:ae,path:pe}),he=u.Signer.sign(X,{access_key:T,secret_key:B,session_token:U}).headers,W.setContext(w(w({},c),{headers:w(w(w({},c.headers),he),(oe={},oe[k.USER_AGENT_HEADER]=k.USER_AGENT,oe))})),[2,Q(W)]}})})}({credentials:void 0===B?{}:B,region:Q,url:W},R,c);break;case y.API_KEY:var z=g.apiKey;T=I({header:"X-Api-Key",value:void 0===z?"":z},R,c);break;case y.AMAZON_COGNITO_USER_POOLS:case y.OPENID_CONNECT:var pe=g.jwtToken;T=I({header:"Authorization",value:void 0===pe?"":pe},R,c);break;default:throw new Error("Invalid AUTH_TYPE: "+g.type)}return T.then(function(oe){l=oe.subscribe({next:_.next.bind(_),error:_.error.bind(_),complete:_.complete.bind(_)})}),function(){l&&l.unsubscribe()}})})};var P=function(D,W){var L=D.query,g={operationName:D.operationName,variables:C(D.variables),query:a.print(L)};return w(w({body:JSON.stringify(g),method:"POST"},W),{headers:w({accept:"*/*","content-type":"application/json; charset=UTF-8"},W.headers)})},C=function(D){return Object.keys(D).filter(function(W){return!W.startsWith("@@")}).reduce(function(W,Q){return W[Q]=D[Q],W},{})}},60506:(ce,k,p)=>{"use strict";var w=p(45011);k.W9=function(r){return new w.AuthLink({url:r.url,region:r.region,auth:r.auth})},p(2745)},32246:(ce,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.userAgent=""},2745:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),function t(w){for(var d in w)k.hasOwnProperty(d)||(k[d]=w[d])}(p(31748))},31748:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),global.Buffer=global.Buffer||p(75877).lW;var t=p(90258),w=p(78987).util.crypto,d=function(P,C,D){return void 0===D&&(D=""),w.lib.createHmac("sha256",P).update(C,"utf8").digest(D)},r=function(P){return P=P||"",w.createHash("sha256").update(P,"utf8").digest("hex")},n=function(P){return P&&0!==Object.keys(P).length?Object.keys(P).map(function(C){return{key:C.toLowerCase(),value:P[C]?P[C].trim().replace(/\s+/g," "):""}}).sort(function(C,D){return C.key<D.key?-1:1}).map(function(C){return C.key+":"+C.value}).join("\n")+"\n":""},a=function(P){return Object.keys(P).map(function(C){return C.toLowerCase()}).sort().join(";")},I=function(P,C,D){void 0===D&&(D=null),P.headers=P.headers||{};var Q=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),H=Q.substr(0,8),L="AWS4-HMAC-SHA256",g=t.parse(P.url);P.headers.host=g.host,P.headers["x-amz-date"]=Q,C.session_token&&(P.headers["X-Amz-Security-Token"]=C.session_token);var R=function(P){var C=t.parse(P.url);return[P.method||"/",C.path,C.query,n(P.headers),a(P.headers),r(P.body)].join("\n")}(P);D=D||function(P){var Q=(t.parse(P.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===Q[1]&&(Q=Q.reverse()),{service:P.service||Q[0],region:P.region||Q[1]}}(P);var c=function(P,C,D){return[P,C,D,"aws4_request"].join("/")}(H,D.region,D.service),_=function(P,C,D,W){return[P,D,W,r(C)].join("\n")}(L,R,Q,c),l=function(P,C,D){void 0===P&&(P="");var Q=d("AWS4"+P,C),H=d(Q,D.region),L=d(H,D.service);return d(L,"aws4_request")}(C.secret_key,H,D),T=function(P,C){return d(P,C,"hex")}(l,_),B=function(P,C,D,W,Q){return void 0===C&&(C=""),["AWS4-HMAC-SHA256 Credential="+C+"/"+D,"SignedHeaders="+W,"Signature="+Q].join(", ")}(0,C.access_key,c,a(P.headers),T);return P.headers.Authorization=B,P},M=function(){function P(){}return P.sign=I,P}();k.Signer=M,k.default=M},47310:()=>{},46841:ce=>{"use strict";var k=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],p=typeof globalThis>"u"?global:globalThis;ce.exports=function(){for(var w=[],d=0;d<k.length;d++)"function"==typeof p[k[d]]&&(w[w.length]=k[d]);return w}},80669:(ce,k,p)=>{"use strict";var w=p(66204)("%Object.getOwnPropertyDescriptor%",!0);if(w)try{w([],"length")}catch{w=null}ce.exports=w},58851:(ce,k,p)=>{"use strict";var w=p(66204)("%Object.getOwnPropertyDescriptor%",!0);if(w)try{w([],"length")}catch{w=null}ce.exports=w},8711:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{ApolloCache:()=>kn,ApolloClient:()=>bi,ApolloError:()=>Yt,ApolloLink:()=>mt,Cache:()=>cn,HttpLink:()=>tr,InMemoryCache:()=>Di,MissingFieldError:()=>fn,NetworkStatus:()=>tt,Observable:()=>me,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:()=>s,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 a(S,o){if(!S)throw new n(o)}var S,u=["debug","log","warn","error","silent"],e=u.indexOf("log");function i(S){return function(){if(u.indexOf(S)>=e){var o=console[S]||console.log;return o.apply(console,arguments)}}}function s(S){var o=u[e];return e=Math.max(0,u.indexOf(S)),o}function y(S){try{return S()}catch{}}(S=a||(a={})).debug=i("debug"),S.log=i("log"),S.warn=i("warn"),S.error=i("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 I="__",M=[I,I].join("DEV");const C=function P(){try{return Boolean(__DEV__)}catch{return Object.defineProperty(m,M,{value:"production"!==y(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),m[M]}}();function D(S){try{return S()}catch{}}var W=D(function(){return globalThis})||D(function(){return window})||D(function(){return self})||D(function(){return global})||D(function(){return D.constructor("return this")()}),Q=!1;function T(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 B(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 U(S,o,f){return o&&B(S.prototype,o),f&&B(S,f),Object.defineProperty(S,"prototype",{writable:!1}),S}!function H(){W&&!D(function(){return"production"})&&!D(function(){return process})&&(Object.defineProperty(W,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Q=!0)}(),p(58203),function R(){(function L(){Q&&(delete W.process,Q=!1)})()}(),function c(){__DEV__?a("boolean"==typeof C,C):a("boolean"==typeof C,36)}();var z=function(){return"function"==typeof Symbol},ae=function(S){return z()&&Boolean(Symbol[S])},pe=function(S){return ae(S)?Symbol[S]:"@@"+S};z()&&!ae("observable")&&(Symbol.observable=Symbol("observable"));var X=pe("iterator"),he=pe("observable"),oe=pe("species");function K(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[oe])&&(o=void 0),void 0!==o?o:me}function $(S){$.log?$.log(S):setTimeout(function(){throw S})}function A(S){Promise.resolve().then(function(){try{S()}catch(o){$(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=K(o,"unsubscribe");f&&f.call(o)}}catch(E){$(E)}}function x(S){S._observer=void 0,S._queue=void 0,S._state="closed"}function q(S,o,f){S._state="running";var E=S._observer;try{var j=K(E,o);switch(o){case"next":j&&j.call(E,f);break;case"error":if(x(S),!j)throw f;j.call(E,f);break;case"complete":x(S),j&&j.call(E)}}catch(G){$(G)}"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&&(q(S,o[f].type,o[f].value),"closed"!==S._state);++f);}}(S)});q(S,o,f)}}var ue=function(){function S(f,E){this._cleanup=void 0,this._observer=f,this._queue=void 0,this._state="initializing";var j=new _e(this);try{this._cleanup=E.call(void 0,j)}catch(G){j.error(G)}"initializing"===this._state&&(this._state="ready")}return S.prototype.unsubscribe=function(){"closed"!==this._state&&(x(this),b(this))},U(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")},U(S,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),S}(),me=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 ue(E,this._subscriber)},o.forEach=function(E){var j=this;return new Promise(function(G,Z){if("function"==typeof E)var ge=j.subscribe({next:function(be){try{E(be,le)}catch(Ae){Z(Ae),ge.unsubscribe()}},error:Z,complete:G});else Z(new TypeError(E+" is not a function"));function le(){ge.unsubscribe(),G()}})},o.map=function(E){var j=this;if("function"!=typeof E)throw new TypeError(E+" is not a function");return new(Y(this))(function(Z){return j.subscribe({next:function(le){try{le=E(le)}catch(ge){return Z.error(ge)}Z.next(le)},error:function(le){Z.error(le)},complete:function(){Z.complete()}})})},o.filter=function(E){var j=this;if("function"!=typeof E)throw new TypeError(E+" is not a function");return new(Y(this))(function(Z){return j.subscribe({next:function(le){try{if(!E(le))return}catch(ge){return Z.error(ge)}Z.next(le)},error:function(le){Z.error(le)},complete:function(){Z.complete()}})})},o.reduce=function(E){var j=this;if("function"!=typeof E)throw new TypeError(E+" is not a function");var G=Y(this),Z=arguments.length>1,le=!1,ge=arguments[1],be=ge;return new G(function(Ae){return j.subscribe({next:function(Pe){var Ce=!le;if(le=!0,!Ce||Z)try{be=E(be,Pe)}catch(ke){return Ae.error(ke)}else be=Pe},error:function(Pe){Ae.error(Pe)},complete:function(){if(!le&&!Z)return Ae.error(new TypeError("Cannot reduce an empty sequence"));Ae.next(be),Ae.complete()}})})},o.concat=function(){for(var E=this,j=arguments.length,G=new Array(j),Z=0;Z<j;Z++)G[Z]=arguments[Z];var le=Y(this);return new le(function(ge){var be,Ae=0;return function Pe(Ce){be=Ce.subscribe({next:function(ke){ge.next(ke)},error:function(ke){ge.error(ke)},complete:function(){Ae===G.length?(be=void 0,ge.complete()):Pe(le.from(G[Ae++]))}})}(E),function(){be&&(be.unsubscribe(),be=void 0)}})},o.flatMap=function(E){var j=this;if("function"!=typeof E)throw new TypeError(E+" is not a function");var G=Y(this);return new G(function(Z){var le=[],ge=j.subscribe({next:function(Ae){if(E)try{Ae=E(Ae)}catch(Ce){return Z.error(Ce)}var Pe=G.from(Ae).subscribe({next:function(Ce){Z.next(Ce)},error:function(Ce){Z.error(Ce)},complete:function(){var Ce=le.indexOf(Pe);Ce>=0&&le.splice(Ce,1),be()}});le.push(Pe)},error:function(Ae){Z.error(Ae)},complete:function(){be()}});function be(){ge.closed&&0===le.length&&Z.complete()}return function(){le.forEach(function(Ae){return Ae.unsubscribe()}),ge.unsubscribe()}})},o[he]=function(){return this},S.from=function(E){var j="function"==typeof this?this:S;if(null==E)throw new TypeError(E+" is not an object");var G=K(E,he);if(G){var Z=G.call(E);if(Object(Z)!==Z)throw new TypeError(Z+" is not an object");return function ne(S){return S instanceof me}(Z)&&Z.constructor===j?Z:new j(function(le){return Z.subscribe(le)})}if(ae("iterator")&&(G=K(E,X)))return new j(function(le){A(function(){if(!le.closed){for(var be,ge=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 T(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 T(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.")}(G.call(E));!(be=ge()).done;)if(le.next(be.value),le.closed)return;le.complete()}})});if(Array.isArray(E))return new j(function(le){A(function(){if(!le.closed){for(var ge=0;ge<E.length;++ge)if(le.next(E[ge]),le.closed)return;le.complete()}})});throw new TypeError(E+" is not observable")},S.of=function(){for(var E=arguments.length,j=new Array(E),G=0;G<E;G++)j[G]=arguments[G];var Z="function"==typeof this?this:S;return new Z(function(le){A(function(){if(!le.closed){for(var ge=0;ge<j.length;++ge)if(le.next(j[ge]),le.closed)return;le.complete()}})})},U(S,null,[{key:oe,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(G){if("OperationDefinition"===G.kind)throw __DEV__?new n("Found a ".concat(G.operation," operation").concat(G.name?" named '".concat(G.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new n(41);"FragmentDefinition"===G.kind&&E.push(G)}),typeof f>"u"&&(__DEV__?a(1===E.length,"Found ".concat(E.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):a(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 ie(S){void 0===S&&(S=[]);var o={};return S.forEach(function(f){o[f.name.value]=f}),o}function V(S,o){switch(S.kind){case"InlineFragment":return S;case"FragmentSpread":var f=o&&o[S.name.value];return __DEV__?a(f,"No fragment named ".concat(S.name.value,".")):a(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 ve(S){return"BooleanValue"===S.kind}(f)||function re(S){return"StringValue"===S.kind}(f))S[o.value]=f.value;else if(function de(S){return"ObjectValue"===S.kind}(f)){var j={};f.fields.map(function(Z){return Ue(j,Z.name,Z.value,E)}),S[o.value]=j}else if(function te(S){return"Variable"===S.kind}(f))S[o.value]=(E||{})[f.name.value];else if(function ye(S){return"ListValue"===S.kind}(f))S[o.value]=f.values.map(function(Z){var le={};return Ue(le,o,Z,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}}z()&&Object.defineProperty(me,Symbol("extensions"),{value:{symbol:he,hostReportError:$},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 j={};return E.forEach(function(le){j[le]=o[le]}),"".concat(f.connection.key,"(").concat(ht(j),")")}return f.connection.key}var G=S;if(o){var Z=ht(o);G+="(".concat(Z,")")}return f&&Object.keys(f).forEach(function(le){-1===ze.indexOf(le)&&(f[le]&&Object.keys(f[le]).length?G+="@".concat(le,"(").concat(ht(f[le]),")"):G+="@".concat(le))}),G},{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,j=o.selections;E<j.length;E++){var G=j[E];if(pt(G)){if("__typename"===G.name.value)return S[ct(G)]}else{var Z=jt(S,V(G,f).selectionSet,f);if("string"==typeof Z)return Z}}}function pt(S){return"Field"===S.kind}function yt(S){return"InlineFragment"===S.kind}function Rt(S){__DEV__?a(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'):a(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__?a(o.length<=1,"Ambiguous GraphQL document: contains ".concat(o.length," operations")):a(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__?a(o&&"query"===o.operation,"Must contain a query definition."):a(o&&"query"===o.operation,47),o}function Ct(S){Rt(S);for(var o,f=0,E=S.definitions;f<E.length;f++){var j=E[f];if("OperationDefinition"===j.kind){var G=j.operation;if("query"===G||"mutation"===G||"subscription"===G)return j}"FragmentDefinition"===j.kind&&!o&&(o=j)}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):me.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 j=S.call(this,f)||this;return j.link=E,j}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 me.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 j=Et(f),G=Et(E||new S(Wt));return Jt(j)&&Jt(G)?new S(function(Z){return o(Z)?j.request(Z)||me.of():G.request(Z)||me.of()}):new S(function(Z,le){return o(Z)?j.request(Z,le)||me.of():G.request(Z,le)||me.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(G){f=(0,t.pi)((0,t.pi)({},f),"function"==typeof G?G(f):G)}}),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 j=E[f];if(o.indexOf(j)<0)throw __DEV__?new n("illegal argument: ".concat(j)):new n(24)}return S}(f))))||me.of()},S.concat=function(o,f){var E=Et(o);if(Jt(E))return __DEV__&&a.warn(new Vr("You are calling concat on a terminating link, which will have no effect",E)),E;var j=Et(f);return Jt(j)?new S(function(G){return E.request(G,function(Z){return j.request(Z)||me.of()})||me.of()}):new S(function(G,Z){return E.request(G,function(le){return j.request(le,Z)||me.of()})||me.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(j){var E=__DEV__?new n("Network request failed. ".concat(o," is not serializable: ").concat(j.message)):new n(21);throw E.parseError=j,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(j){var E=j;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 j={},G={};f.forEach(function(Pe){j=(0,t.pi)((0,t.pi)((0,t.pi)({},j),Pe.options),{headers:(0,t.pi)((0,t.pi)({},j.headers),zr(Pe.headers))}),Pe.credentials&&(j.credentials=Pe.credentials),G=(0,t.pi)((0,t.pi)({},G),Pe.http)});var Z=S.operationName,le=S.extensions,ge=S.variables,be=S.query,Ae={operationName:Z,variables:ge};return G.includeExtensions&&(Ae.extensions=le),G.includeQuery&&(Ae.query=o(be,Qr.print)),{options:j,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 j=void 0;try{j=Qt(o.variables,"Variables map")}catch(Pe){return{parseError:Pe}}E("variables",j)}if(o.extensions){var G=void 0;try{G=Qt(o.extensions,"Extensions map")}catch(Pe){return{parseError:Pe}}E("extensions",G)}var Z="",le=S,ge=S.indexOf("#");-1!==ge&&(Z=S.substr(ge),le=S.substr(0,ge));var be=-1===le.indexOf("?")?"?":"&";return{newURI:le+be+f.join("&")+Z}}function Zt(S){return new me(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,j=S.print,G=void 0===j?Xt:j,Z=S.includeExtensions,le=S.useGETForQueries,ge=S.includeUnusedVariables,be=void 0!==ge&&ge,Ae=(0,t._T)(S,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&Kt(E||qt);var Pe={http:{includeExtensions:Z},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,G,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 me(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&>.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(j){var G=E[j];void 0!==G&&(f[j]=G)})}),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,j=f.name.value;__DEV__?a(E&&1===E.length,"Incorrect number of arguments for the @".concat(j," directive.")):a(E&&1===E.length,38);var G=E[0];__DEV__?a(G.name&&"if"===G.name.value,"Invalid argument for the @".concat(j," directive.")):a(G.name&&"if"===G.name.value,39);var Z=G.value;__DEV__?a(Z&&("Variable"===Z.kind||"BooleanValue"===Z.kind),"Argument for the @".concat(j," directive must be a variable or a boolean value.")):a(Z&&("Variable"===Z.kind||"BooleanValue"===Z.kind),40),o.push({directive:f,ifArgument:G})}}),o}(f).every(function(E){var j=E.directive,G=E.ifArgument,Z=!1;return"Variable"===G.value.kind?(Z=o&&o[G.value.name.value],__DEV__?a(void 0!==Z,"Invalid variable referenced in @".concat(j.name.value," directive.")):a(void 0!==Z,37)):Z=G.value.value,"skip"===j.name.value?!Z:Z})}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,j=1;j<f;++j)o=E.merge(o,S[j]);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,j=[],G=2;G<arguments.length;G++)j[G-2]=arguments[G];return De(f)&&De(o)?(Object.keys(f).forEach(function(Z){if(lr.call(o,Z)){var le=o[Z];if(f[Z]!==le){var ge=E.reconciler.apply(E,(0,t.ev)([o,f,Z],j,!1));ge!==le&&((o=E.shallowCopyForMerge(o))[Z]=ge)}}else(o=E.shallowCopyForMerge(o))[Z]=f[Z]}),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,j=S._id;if("string"==typeof f&&(o&&(o.keyObject=void 0!==E?{id:E}:void 0!==j?{_id:j}:void 0),void 0===E&&(E=j),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 j=ct(E);return st.call(o,j)&&(!E.selectionSet||nr(E.selectionSet,o[j],f))}return!0}))}function Mt(S){return De(S)&&!O(S)&&!it(S)}var se,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 G=o.map(this.admit,this);return(Z=this.pool.lookupArray(G)).array||(this.known.add(Z.array=G),__DEV__&&Object.freeze(G)),Z.array;case null:case Object.prototype:if(this.known.has(o))return o;var le=Object.getPrototypeOf(o),ge=[le],be=this.sortedKeys(o);ge.push(be.json);var Z,Ae=ge.length;if(be.sorted.forEach(function(ke){ge.push(f.admit(o[ke]))}),!(Z=this.pool.lookupArray(ge)).object){var Pe=Z.object=Object.create(le);this.known.add(Pe),be.sorted.forEach(function(ke,je){Pe[ke]=ge[Ae+je]}),__DEV__&&Object.freeze(Pe)}return Z.object}}return o},S.prototype.sortedKeys=function(o){var f=Object.keys(o),E=this.pool.lookupArray(f);if(!E.keys){f.sort();var j=JSON.stringify(f);(E.keys=this.keysByJSON.get(j))||this.keysByJSON.set(j,E.keys={sorted:f,json:j})}return E.keys},S}(),J=Object.assign(function(S){if(De(S)){void 0===se&&Ee();var o=se.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(){se=new vr,fe=new(Pt?WeakMap:Map)}function we(S,o,f){return new me(function(E){var j=E.next,G=E.error,Z=E.complete,le=0,ge=!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,j&&j.call(E,Qe),ge&&Pe.complete()},function(Qe){throw--le,Qe}).catch(function(Qe){G&&G.call(E,Qe)})}:function(Le){return je&&je.call(E,Le)}}var Pe={next:Ae(o,j),error:Ae(f,G),complete:function(){ge=!0,le||Z&&Z.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(j,G){o.call(this,j,G,S)&&(S[E++]=j)},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__?a("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'):a("Document"===S.kind,48),__DEV__?a(S.definitions.length<=1,"Fragment must have exactly one definition."):a(S.definitions.length<=1,49);var o=S.definitions[0];return __DEV__?a("FragmentDefinition"===o.kind,"Must be a fragment definition."):a("FragmentDefinition"===o.kind,50),o}(S),ie(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=[],j=Object.create(null),G=[],Z=Ne((0,_t.Vn)(o,{Variable:{enter:function(le,ge,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){G.push({name:be.name.value})}),null}},FragmentSpread:{enter:function(le){j[le.name.value]=!0}},Directive:{enter:function(le){if(et(S)(le))return null}}}));return Z&&Fe(E,function(le){return!!le.name&&!f[le.name]}).length&&(Z=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(j){return!S.some(function(G){return G.name===j.variable.name.value})}):[]})}},Field:{enter:function(E){var j=S.some(function(Z){return Z.remove});if(j){var G=0;if(E.arguments&&E.arguments.forEach(function(Z){f(Z)&&(G+=1)}),1===G)return null}}},Argument:{enter:function(E){if(f(E))return null}}}))}(E,Z)),Z&&Fe(G,function(le){return!!le.name&&!j[le.name]}).length&&(Z=function oi(S,o){function f(E){if(S.some(function(j){return j.name===E.name.value}))return null}return Ne((0,_t.Vn)(o,{FragmentSpread:{enter:f},FragmentDefinition:{enter:f}}))}(G,Z)),Z}var $e=Object.assign(function(S){return(0,_t.Vn)(S,{SelectionSet:{enter:function(o,f,E){if(!E||"OperationDefinition"!==E.kind){var j=o.selections;if(j&&!j.some(function(le){return pt(le)&&("__typename"===le.name.value||0===le.name.value.lastIndexOf("__",0))})){var Z=E;if(!(pt(Z)&&Z.directives&&Z.directives.some(function(le){return"export"===le.name.value})))return(0,t.pi)((0,t.pi)({},o),{selections:(0,t.ev)((0,t.ev)([],j,!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__&&a.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(j){return(0,t.pi)((0,t.pi)({},j),{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(j){return j[o]&&E.push(j)}),E.forEach(function(j){return j[o](f)})}function Sn(S){function o(f){Object.defineProperty(S,f,{value:me})}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(j){return E.addObserver(j),function(){return E.removeObserver(j)}})||this;return E.observers=new Set,E.addCount=0,E.promise=new Promise(function(j,G){E.resolve=j,E.reject=G}),E.handlers={next:function(j){null!==E.sub&&(E.latest=["next",j],mr(E.observers,"next",j))},error:function(j){var G=E.sub;null!==G&&(G&&setTimeout(function(){return G.unsubscribe()}),E.sub=null,E.latest=["error",j],E.reject(j),mr(E.observers,"error",j))},complete:function(){var j=E.sub;if(null!==j){var G=E.sources.shift();G?wn(G)?G.then(function(Z){return E.sub=Z.subscribe(E.handlers)}):E.sub=G.subscribe(E.handlers):(j&&setTimeout(function(){return j.unsubscribe()}),E.sub=null,E.latest&&"next"===E.latest[0]?E.resolve(E.latest[1]):E.resolve(),mr(E.observers,"complete"))}}},E.cancel=function(j){E.reject(j),E.sources=[],E.handlers.complete()},E.promise.catch(function(j){}),"function"==typeof f&&(f=[new me(f)]),wn(f)?f.then(function(j){return E.start(j)},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],j=f[E];j&&j.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,j=!1,G=function(){j||(j=!0,E.observers.delete(Z),f())},Z={next:G,error:G,complete:G},le=this.addCount;this.addObserver(Z),this.addCount=le},o}(me);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,j=f.clientErrors,G=f.networkError,Z=f.errorMessage,le=f.extraInfo,ge=S.call(this,Z)||this;return ge.graphQLErrors=E||[],ge.clientErrors=j||[],ge.networkError=G||null,ge.message=Z||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$/,"")}(ge),ge.extraInfo=le,ge.__proto__=o.prototype,ge}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(j,G){f[G]=nn(j,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(j){E[j]=nn(S[j],o)}),E;default:return S}}var li=Object.assign,hi=Object.hasOwnProperty,Lr=function(S){function o(f){var E=f.queryManager,j=f.queryInfo,G=f.options,Z=S.call(this,function(Ve){try{var Qe=Ve._subscription._observer;Qe&&!Qe.error&&(Qe.error=pi)}catch{}var Xe=!Z.observers.size;Z.observers.add(Ve);var We=Z.last;return We&&We.error?Ve.error&&Ve.error(We.error):We&&We.result&&Ve.next&&Ve.next(We.result),Xe&&Z.reobserve().catch(function(){}),function(){Z.observers.delete(Ve)&&!Z.observers.size&&Z.tearDownQuery()}})||this;Z.observers=new Set,Z.subscriptions=new Set,Z.queryInfo=j,Z.queryManager=E,Z.isTornDown=!1;var le=E.defaultOptions.watchQuery,be=(void 0===le?{}:le).fetchPolicy,Ae=void 0===be?"cache-first":be,Pe=G.fetchPolicy,Ce=void 0===Pe?Ae:Pe,ke=G.initialFetchPolicy,je=void 0===ke?"standby"===Ce?Ae:Ce:ke;Z.options=(0,t.pi)((0,t.pi)({},G),{initialFetchPolicy:je,fetchPolicy:Ce}),Z.queryId=j.queryId||E.generateQueryId();var Le=St(Z.query);return Z.queryName=Le&&Le.name&&Le.name.value,Z}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,j){var G={next:function(le){E(le),f.observers.delete(G),f.observers.size||f.queryManager.removeQuery(f.queryId),setTimeout(function(){Z.unsubscribe()},0)},error:j},Z=f.subscribe(G)})},o.prototype.getCurrentResult=function(f){void 0===f&&(f=!0);var E=this.getLastResult(!0),j=this.queryInfo.networkStatus||E&&E.networkStatus||tt.ready,G=(0,t.pi)((0,t.pi)({},E),{loading:br(j),networkStatus:j}),Z=this.options.fetchPolicy,le=void 0===Z?"cache-first":Z;if("network-only"!==le&&"no-cache"!==le&&"standby"!==le&&!this.queryManager.transform(this.options.query).hasForcedResolvers){var ge=this.queryInfo.getDiff();(ge.complete||this.options.returnPartialData)&&(G.data=ge.result),(0,ut.D)(G.data,{})&&(G.data=void 0),ge.complete?(delete G.partial,ge.complete&&G.networkStatus===tt.loading&&("cache-first"===le||"cache-only"===le)&&(G.networkStatus=tt.ready,G.loading=!1)):G.partial=!0,__DEV__&&!ge.complete&&!this.options.partialRefetch&&!G.loading&&!G.data&&!G.error&&Tn(ge.missing)}return f&&this.updateLastResult(G),G},o.prototype.isDifferentFromLastResult=function(f){return!this.last||!(0,ut.D)(this.last.result,f)},o.prototype.getLast=function(f,E){var j=this.last;if(j&&j[f]&&(!E||(0,ut.D)(j.variables,this.variables)))return j[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,j={pollInterval:0},G=this.options.fetchPolicy;if(j.fetchPolicy="cache-and-network"===G?G:"no-cache"===G?"no-cache":"network-only",__DEV__&&f&&hi.call(f,"variables")){var Z=Ft(this.query),le=Z.variableDefinitions;(!le||!le.some(function(ge){return"variables"===ge.variable.name.value}))&&__DEV__&&a.warn("Called refetch(".concat(JSON.stringify(f),") for query ").concat((null===(E=Z.name)||void 0===E?void 0:E.value)||JSON.stringify(Z),", 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)&&(j.variables=this.options.variables=(0,t.pi)((0,t.pi)({},this.options.variables),f)),this.queryInfo.resetLastWrite(),this.reobserve(j,tt.refetch)},o.prototype.fetchMore=function(f){var E=this,j=(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"}),G=this.queryManager.generateQueryId(),Z=this.queryInfo,le=Z.networkStatus;Z.networkStatus=tt.fetchMore,j.notifyOnNetworkStatusChange&&this.observe();var ge=new Set;return this.queryManager.fetchQuery(G,j,tt.fetchMore).then(function(be){return E.queryManager.removeQuery(G),Z.networkStatus===tt.fetchMore&&(Z.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:j.variables})}):Ae.writeQuery({query:j.query,variables:j.variables,data:be.data})},onWatchUpdated:function(Ae){ge.add(Ae.query)}}),be}).finally(function(){ge.has(E.query)||xn(E)})},o.prototype.subscribeToMore=function(f){var E=this,j=this.queryManager.startGraphQLSubscription({query:f.document,variables:f.variables,context:f.context}).subscribe({next:function(G){var Z=f.updateQuery;Z&&E.updateQuery(function(le,ge){return Z(le,{subscriptionData:G,variables:ge.variables})})},error:function(G){f.onError?f.onError(G):__DEV__&&a.error("Unhandled GraphQL subscription error",G)}});return this.subscriptions.add(j),function(){E.subscriptions.delete(j)&&j.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,G=f(E.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});G&&(E.cache.writeQuery({query:this.options.query,data:G,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 j=E.fetchPolicy,G=void 0===j?"cache-first":j,Z=E.initialFetchPolicy,le=void 0===Z?G:Z;"standby"===G||(E.fetchPolicy="function"==typeof E.nextFetchPolicy?E.nextFetchPolicy(G,{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 j=this.pollingInfo,G=this.options.pollInterval;if(!G)return void(j&&(clearTimeout(j.timeout),delete this.pollingInfo));if(!j||j.interval!==G){__DEV__?a(G,"Attempted to start a polling query without a polling interval."):a(G,10),(j||(this.pollingInfo={})).interval=G;var le=function(){f.pollingInfo&&(br(f.queryInfo.networkStatus)?ge():f.reobserve({fetchPolicy:"network-only"},tt.poll).then(ge,ge))},ge=function(){var be=f.pollingInfo;be&&(clearTimeout(be.timeout),be.timeout=setTimeout(le,be.interval))};ge()}}},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 j=this;this.isTornDown=!1;var G=E===tt.refetch||E===tt.fetchMore||E===tt.poll,Z=this.options.variables,le=this.options.fetchPolicy,ge=zt(this.options,f||{}),be=G?ge:li(this.options,ge);G||(this.updatePolling(),f&&f.variables&&!(0,ut.D)(f.variables,Z)&&"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){j.reportResult(ke,Ae)},error:function(ke){j.reportError(ke,Ae)}};return G||(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 j=this.getLastError();(j||this.isDifferentFromLastResult(f))&&((j||!f.partial||this.options.returnPartialData)&&this.updateLastResult(f,E),mr(this.observers,"next",f))},o.prototype.reportError=function(f,E){var j=(0,t.pi)((0,t.pi)({},this.getLastResult()),{error:f,errors:f.graphQLErrors,networkStatus:tt.error,loading:!1});this.updateLastResult(j,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}(me);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__&&a.error("Unhandled error",S.message,S.stack)}function Tn(S){__DEV__&&S&&__DEV__&&a.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(G){if(arguments.length>0){if(S!==G){S=G,o.forEach(function(ge){Er(ge).dep.dirty(E),yi(ge)});var Z=Array.from(f);f.clear(),Z.forEach(function(ge){return ge(S)})}}else{var le=an.getValue();le&&(j(le),Er(le).dep(E))}return S};E.onNextChange=function(G){return f.add(G),function(){f.delete(G)}};var j=E.attachCache=function(G){return o.add(G),Er(G).vars.add(E),E};return E.forgetCache=function(G){return o.delete(G)},E}function yi(S){S.broadcastWatches&&S.broadcastWatches()}var Pn=function(){function S(o){var E=o.client,j=o.resolvers,G=o.fragmentMatcher;this.cache=o.cache,E&&(this.client=E),j&&this.addResolvers(j),G&&this.setFragmentMatcher(G)}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,j=o.context,G=o.variables,Z=o.onlyRunForcedResolvers,le=void 0!==Z&&Z;return(0,t.mG)(this,void 0,void 0,function(){return(0,t.Jh)(this,function(ge){return f?[2,this.resolveDocument(f,E.data,j,G,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(j){return pt(j)&&"__typename"===j.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(j){return o?[2,this.resolveDocument(o,this.buildRootValueFromCache(o,f)||{},this.prepareContext(E),f).then(function(G){return(0,t.pi)((0,t.pi)({},f),G.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(j){return"always"===j.name.value&&"BooleanValue"===j.value.kind&&!0===j.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,j,G,Z){return void 0===E&&(E={}),void 0===j&&(j={}),void 0===G&&(G=function(){return!0}),void 0===Z&&(Z=!1),(0,t.mG)(this,void 0,void 0,function(){var le,ge,be,Ae,Pe,Ce,ke,je,Le;return(0,t.Jh)(this,function(Ve){return le=Ct(o),ge=Tt(o),be=ie(ge),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:j,fragmentMatcher:G,defaultOperationType:Pe,exportedVariables:{},onlyRunForcedResolvers:Z},[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 j,G,Z,le,be=this;return(0,t.Jh)(this,function(Ae){return j=E.fragmentMap,G=E.context,Z=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,Z)?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=j[Pe.name.value],__DEV__?a(Ce,"No fragment named ".concat(Pe.name.value)):a(Ce,9)),Ce&&Ce.typeCondition&&E.fragmentMatcher(f,Ce.typeCondition.name.value,G)?[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 j,G,Z,le,ge,be,Ae,Pe,Ce,ke=this;return(0,t.Jh)(this,function(je){return j=E.variables,G=o.name.value,Z=ct(o),le=G!==Z,ge=f[Z]||f[G],be=Promise.resolve(ge),(!E.onlyRunForcedResolvers||this.shouldForceResolvers(o))&&(Ae=f.__typename||E.defaultOperationType,(Pe=this.resolvers&&this.resolvers[Ae])&&(Ce=Pe[le?G:Z])&&(be=Promise.resolve(an.withValue(this.cache,Ce,[f,Ke(o,j),E.context,{field:o,fragmentMap:E.fragmentMap}])))),[2,be.then(function(Le){return void 0===Le&&(Le=ge),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 j=this;return Promise.all(f.map(function(G){return null===G?null:Array.isArray(G)?j.resolveSubSelectedArray(o,G,E):o.selectionSet?j.resolveSelectionSet(o.selectionSet,G,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 j=this.cache.diff(f);return this.updateLastDiff(j,f),j},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 j=(0,t.pi)((0,t.pi)({},this.getDiffOptions(o)),{watcher:this,callback:function(G){return f.setDiff(G)}});(!this.lastWatch||!(0,ut.D)(j,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=j))}},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 j=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(G){if(j.shouldWrite(o,f.variables))G.writeQuery({query:j.document,data:o.data,variables:f.variables,overwrite:1===E}),j.lastWrite={result:o,variables:f.variables,dmCount:ar.get(j.cache)};else if(j.lastDiff&&j.lastDiff.diff.complete)return void(o.data=j.lastDiff.diff.result);var Z=j.getDiffOptions(f.variables),le=G.diff(Z);j.stopped||j.updateWatch(f.variables),j.updateLastDiff(le,Z),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,j=o.defaultOptions,G=o.queryDeduplication,Z=void 0!==G&&G,le=o.onBroadcast,ge=o.ssrMode,be=void 0!==ge&&ge,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=j||Object.create(null),this.queryDeduplication=Z,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,j=o.mutation,G=o.variables,Z=o.optimisticResponse,le=o.updateQueries,ge=o.refetchQueries,be=void 0===ge?[]:ge,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__?a(j,"mutation option is required. You must specify your GraphQL document in the mutation option."):a(j,12),__DEV__?a("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."):a("network-only"===Le||"no-cache"===Le,13),He=this.generateMutationId(),j=this.transform(j).document,G=this.getVariables(j,G),this.transform(j).hasClientExports?[4,this.localState.addExportedVariables(j,G,We)]:[3,2];case 1:G=Je.sent(),Je.label=2;case 2:return Ze=this.mutationStore&&(this.mutationStore[He]={mutation:j,variables:G,loading:!0,error:null}),Z&&this.markMutationOptimistic(Z,{mutationId:He,document:j,variables:G,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(j,(0,t.pi)((0,t.pi)({},We),{optimisticResponse:Z}),G,!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:j,variables:G,fetchPolicy:Le,errorPolicy:Qe,context:We,update:Ce,updateQueries:le,awaitRefetchQueries:Pe,refetchQueries:be,removeOptimistic:Z?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),Z&&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 j=o.result,G=[],Z="no-cache"===o.fetchPolicy;if(!Z&&un(j,o.errorPolicy)){G.push({result:j.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:j,queryName:Le&&ft(Le)||void 0,queryVariables:Ve});He&&G.push({result:He,dataId:"ROOT_QUERY",query:Le,variables:Ve})}}})}if(G.length>0||o.refetchQueries||o.update||o.onQueryUpdated||o.removeOptimistic){var ge=[];if(this.refetchQueries({updateCache:function(be){Z||G.forEach(function(Ce){return be.write(Ce)});var Ae=o.update;if(Ae){if(!Z){var Pe=be.diff({id:"ROOT_MUTATION",query:E.transform(o.document).asQuery,variables:o.variables,optimistic:!1,returnPartialData:!0});Pe.complete&&(j=(0,t.pi)((0,t.pi)({},j),{data:Pe.result}))}Ae(be,j,{context:o.context,variables:o.variables})}!Z&&!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 ge.push(be)}),o.awaitRefetchQueries||o.onQueryUpdated)return Promise.all(ge).then(function(){return j})}return Promise.resolve(j)},S.prototype.markMutationOptimistic=function(o,f){var E=this,j="function"==typeof o?o(f.variables):o;return this.cache.recordOptimisticTransaction(function(G){try{E.markMutationResult((0,t.pi)((0,t.pi)({},f),{result:{data:j}}),G)}catch(Z){__DEV__&&a.error(Z)}},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),j=function xt(S){return dt([lt],Rt(S))}(this.cache.transformForLink(E)),G=this.localState.clientQuery(E),Z=j&&this.localState.serverQuery(j),le={document:E,hasClientExports:$r(E),hasForcedResolvers:this.localState.shouldForceResolvers(E),clientQuery:G,serverQuery:Z,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})})},ge=function(be){be&&!f.has(be)&&f.set(be,le)};ge(o),ge(E),ge(G),ge(Z)}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__?a(o.query,"query option is required. You must specify your GraphQL document in the query option."):a(o.query,14),__DEV__?a("Document"===o.query.kind,'You must wrap the query string in a "gql" tag.'):a("Document"===o.query.kind,15),__DEV__?a(!o.returnPartialData,"returnPartialData option only supported on watchQuery."):a(!o.returnPartialData,16),__DEV__?a(!o.pollInterval,"pollInterval option only supported on watchQuery."):a(!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,j=new Map,G=new Set;return Array.isArray(o)&&o.forEach(function(Z){"string"==typeof Z?j.set(Z,!1):function F(S){return De(S)&&"Document"===S.kind&&Array.isArray(S.definitions)}(Z)?j.set(f.transform(Z).document,!1):De(Z)&&Z.query&&G.add(Z)}),this.queries.forEach(function(Z,le){var ge=Z.observableQuery,be=Z.document;if(ge){if("all"===o)return void E.set(le,ge);var Ae=ge.queryName;if("standby"===ge.options.fetchPolicy||"active"===o&&!ge.hasObservers())return;("active"===o||Ae&&j.has(Ae)||be&&j.has(be))&&(E.set(le,ge),Ae&&j.set(Ae,!0),be&&j.set(be,!0))}}),G.size&&G.forEach(function(Z){var le=rn("legacyOneTimeQuery"),ge=f.getQuery(le).init({document:Z.query,variables:Z.variables}),be=new Lr({queryManager:f,queryInfo:ge,options:(0,t.pi)((0,t.pi)({},Z),{fetchPolicy:"network-only"})});a(be.queryId===le),ge.setObservableQuery(be),E.set(le,be)}),__DEV__&&j.size&&j.forEach(function(Z,le){Z||__DEV__&&a.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(j,G){var Z=j.options.fetchPolicy;j.resetLastResults(),(o||"standby"!==Z&&"cache-only"!==Z)&&E.push(j.refetch()),f.getQuery(G).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,j=o.fetchPolicy,G=o.errorPolicy,Z=o.variables,le=o.context,ge=void 0===le?{}:le;E=this.transform(E).document,Z=this.getVariables(E,Z);var be=function(Pe){return f.getObservableFromLink(E,ge,Pe).map(function(Ce){if("no-cache"!==j&&(un(Ce,G)&&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,Z,ge).then(be);return new me(function(Pe){var Ce=null;return Ae.then(function(ke){return Ce=ke.subscribe(Pe)},Pe.error),function(){return Ce&&Ce.unsubscribe()}})}return be(Z)},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,j){var Z,G=this;void 0===j&&(j=null!==(Z=f?.queryDeduplication)&&void 0!==Z?Z:this.queryDeduplication);var le,ge=this.transform(o).serverQuery;if(ge){var Ae=this.inFlightLinkObservables,Pe=this.link,Ce={query:ge,variables:E,operationName:ft(ge)||void 0,context:this.prepareContext((0,t.pi)((0,t.pi)({},f),{forceFetch:!j}))};if(f=Ce.context,j){var ke=Ae.get(ge)||new Map;Ae.set(ge,ke);var je=J(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(ge)})}}else le=new gr([Nt(Pe,Ce)])}else le=new gr([me.of({data:{}})]),f=this.prepareContext(f);var Ve=this.transform(o).clientQuery;return Ve&&(le=we(le,function(Qe){return G.localState.runResolvers({document:Ve,remoteResult:Qe,context:f,variables:E})})),le},S.prototype.getResultsFromLink=function(o,f,E){var j=o.lastRequestId=this.generateRequestId();return we(this.getObservableFromLink(o.document,E.context,E.variables),function(G){var Z=Gt(G.errors);if(j>=o.lastRequestId){if(Z&&"none"===E.errorPolicy)throw o.markError(new Yt({graphQLErrors:G.errors}));o.markResult(G,E,f),o.markReady()}var le={data:G.data,loading:!1,networkStatus:tt.ready};return Z&&"ignore"!==E.errorPolicy&&(le.errors=G.errors,le.networkStatus=tt.error),le},function(G){var Z=On(G)?G:new Yt({networkError:G});throw j>=o.lastRequestId&&o.markError(Z),Z})},S.prototype.fetchQueryObservable=function(o,f,E){var j=this;void 0===E&&(E=tt.loading);var G=this.transform(f.query).document,Z=this.getVariables(G,f.variables),le=this.getQuery(o),ge=this.defaultOptions.watchQuery,be=f.fetchPolicy,Pe=f.errorPolicy,ke=f.returnPartialData,Le=f.notifyOnNetworkStatusChange,Qe=f.context,We=Object.assign({},f,{query:G,variables:Z,fetchPolicy:void 0===be?ge&&ge.fetchPolicy||"cache-first":be,errorPolicy:void 0===Pe?ge&&ge.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=j.fetchQueryByPolicy(le,We,E);return"standby"!==We.fetchPolicy&&rt.length>0&&le.observableQuery&&le.observableQuery.applyNextFetchPolicy("after-fetch",f),rt},Ze=function(){return j.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,j=o.include,G=o.optimistic,Z=void 0!==G&&G,le=o.removeOptimistic,ge=void 0===le?Z?rn("refetchQueries"):void 0:le,be=o.onQueryUpdated,Ae=new Map;j&&this.getObservableQueries(j).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:Z&&ge||!1,removeOptimistic:ge,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)}),ge&&this.cache.removeOptimistic(ge),Pe},S.prototype.fetchQueryByPolicy=function(o,f,E){var j=this,G=f.query,Z=f.variables,le=f.fetchPolicy,ge=f.refetchWritePolicy,be=f.errorPolicy,Ae=f.returnPartialData,Pe=f.context,Ce=f.notifyOnNetworkStatusChange,ke=o.networkStatus;o.init({document:this.transform(G).document,variables:Z,networkStatus:E});var je=function(){return o.getDiff(Z)},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 me.of((0,t.pi)({data:rt,loading:br(Ze),networkStatus:Ze},He.complete?null:{partial:!0}))};return Ye&&j.transform(G).hasForcedResolvers?j.localState.runResolvers({document:G,remoteResult:{data:Ye},context:Pe,variables:Z,onlyRunForcedResolvers:!0}).then(function(rt){return Je(rt.data||void 0)}):Je(Ye)},Ve="no-cache"===le?0:E===tt.refetch&&"merge"!==ge?1:2,Qe=function(){return j.getResultsFromLink(o,Ve,{variables:Z,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,Z=o.cache,le=o.ssrMode,ge=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()),!Z)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=Z,this.disableNetworkFetches=ge||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__&&a.log("Download the Apollo DevTools for a better development experience: "+ot)}this.version="3.6.9",this.localState=new Pn({cache:Z,client:this,resolvers:Xe,fragmentMatcher:He}),this.queryManager=new gi({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:je,ssrMode:ge,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__?a("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."):a("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=[],j=[];f.forEach(function(Z,le){E.push(le),j.push(Z)});var G=Promise.all(j);return G.queries=E,G.results=j,G.catch(function(Z){__DEV__&&a.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(Z))}),G},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 j,f=this;return this.performTransaction(function(){return j=o.update(f)},"string"==typeof o.optimistic?o.optimistic:!1===o.optimistic?null:void 0),j},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,j=(0,t._T)(o,["id","data"]);return this.write(Object.assign(j,{dataId:f||"ROOT_QUERY",result:E}))},S.prototype.writeFragment=function(o){var f=o.id,E=o.data,j=o.fragment,G=o.fragmentName,Z=(0,t._T)(o,["id","data","fragment","fragmentName"]);return this.write(Object.assign(Z,{query:this.getFragmentDoc(j,G),dataId:f,result:E}))},S.prototype.updateQuery=function(o,f){return this.batch({update:function(E){var j=E.readQuery(o),G=f(j);return null==G?j:(E.writeQuery((0,t.pi)((0,t.pi)({},o),{data:G})),G)}})},S.prototype.updateFragment=function(o,f){return this.batch({update:function(E){var j=E.readFragment(o),G=f(j);return null==G?j:(E.writeFragment((0,t.pi)((0,t.pi)({},o),{data:G})),G)}})},S}(),fn=function S(o,f,E,j){this.message=o,this.path=f,this.query=E,this.variables=j};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(j,G){return ln(O(j)?E.get(j.__ref,G):j&&j[G])},this.canRead=function(j){return O(j)?E.has(j.__ref):"object"==typeof j},this.toReference=function(j,G){if("string"==typeof j)return v(j);if(O(j))return j;var Z=E.policies.identify(j)[0];if(Z){var le=v(Z);return G&&E.merge(Z,j),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 j,E=this;O(o)&&(o=o.__ref),O(f)&&(f=f.__ref);var G="string"==typeof o?this.lookup(j=o):o,Z="string"==typeof f?this.lookup(j=f):f;if(Z){__DEV__?a("string"==typeof j,"store.merge expects a string ID"):a("string"==typeof j,1);var le=new Dt(wi).merge(G,Z);if(this.data[j]=le,le!==G&&(delete this.refs[j],this.group.caching)){var ge=Object.create(null);G||(ge.__exists=1),Object.keys(Z).forEach(function(be){if(!G||G[be]!==le[be]){ge[be]=1;var Ae=At(be);Ae!==be&&!E.policies.hasKeyArgs(le.__typename,Ae)&&(ge[Ae]=1),void 0===le[be]&&!(E instanceof Ut)&&delete le[be]}}),ge.__typename&&!(G&&G.__typename)&&this.policies.rootTypenamesById[j]===le.__typename&&delete ge.__typename,Object.keys(ge).forEach(function(be){return E.group.dirty(j,be)})}}},S.prototype.modify=function(o,f){var E=this,j=this.lookup(o);if(j){var G=Object.create(null),Z=!1,le=!0,ge={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(j).forEach(function(be){var Ae=At(be),Pe=j[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)({},ge),{fieldName:Ae,storeFieldName:be,storage:E.getStorage(o,be)}));ke===Fn?E.group.dirty(o,be):(ke===Br&&(ke=void 0),ke!==Pe&&(G[be]=ke,Z=!0,Pe=ke))}void 0!==Pe&&(le=!1)}}),Z)return this.merge(o,G),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 j,G=this.lookup(o);if(G){var Z=this.getFieldValue(G,"__typename"),le=f&&E?this.policies.getStoreFieldName({typename:Z,fieldName:f,args:E}):f;return this.modify(o,le?((j={})[le]=hn,j):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(j){st.call(o.policies.rootTypenamesById,j)||E.push(j)}),E.length&&(f.__META={extraRootIds:E.sort()}),f},S.prototype.replace=function(o){var f=this;if(Object.keys(this.data).forEach(function(G){o&&st.call(o,G)||f.delete(G)}),o){var E=o.__META,j=(0,t._T)(o,["__META"]);Object.keys(j).forEach(function(G){f.merge(G,j[G])}),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(Z){st.call(E,Z)&&(Object.keys(o.findChildRefIds(Z)).forEach(f.add,f),delete E[Z])});var j=Object.keys(E);if(j.length){for(var G=this;G instanceof Ut;)G=G.parent;j.forEach(function(Z){return G.delete(Z)})}return j},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 j=new Set([E]);j.forEach(function(G){O(G)&&(f[G.__ref]=!0),De(G)&&Object.keys(G).forEach(function(Z){var le=G[Z];De(le)&&j.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(j){var Z=j.resultCaching,ge=j.seed,be=f.call(this,j.policies,new Ln(void 0===Z||Z))||this;return be.stump=new Si(be),be.storageTrie=new rr.B(Pt),ge&&be.replace(ge),be}return(0,t.ZT)(E,f),E.prototype.addLayer=function(j,G){return this.stump.addLayer(j,G)},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,j,G){var Z=S.call(this,E.policies,G)||this;return Z.id=f,Z.parent=E,Z.replay=j,Z.group=G,j(Z),Z}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,j=this.parent.removeLayer(f);return f===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(G){var Z=E.data[G],le=j.lookup(G);le?Z?Z!==le&&Object.keys(Z).forEach(function(ge){(0,ut.D)(Z[ge],le[ge])||E.group.dirty(G,ge)}):(E.group.dirty(G,"__exists"),Object.keys(le).forEach(function(ge){E.group.dirty(G,ge)})):E.delete(G)}),j):j===this.parent?this:j.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],j=o[f];return(0,ut.D)(E,j)?E:j}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 j,G=E.context.canonizeResults,Z=Bn(E);Z[3]=!G;var le=(j=f.executeSelectionSet).peek.apply(j,Z);return le?G?(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,j,G,Z){if(Sr(G.store))return G.store.makeCacheKey(E,O(j)?j.__ref:j,G.varString,Z)}}),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 j=E.field,G=E.array,Z=E.context;if(Sr(Z.store))return Z.store.makeCacheKey(j,G,Z.varString)}})}return S.prototype.resetCanon=function(){this.canon=new vr},S.prototype.diffQueryAgainstStore=function(o){var f=o.store,E=o.query,j=o.rootId,G=void 0===j?"ROOT_QUERY":j,Z=o.variables,le=o.returnPartialData,ge=void 0===le||le,be=o.canonizeResults,Ae=void 0===be?this.config.canonizeResults:be,Pe=this.config.cache.policies;Z=(0,t.pi)((0,t.pi)({},It(Ft(E))),Z);var je,Ce=v(G),ke=this.executeSelectionSet({selectionSet:Ct(E).selectionSet,objectOrReference:Ce,enclosingRef:Ce,context:{store:f,query:E,policies:Pe,variables:Z,varString:J(Z),canonizeResults:Ae,fragmentMap:ie(Tt(E))}});if(ke.missing&&(je=[new fn(Ai(ke.missing),ke.missing,E,Z)],!ge))throw je[0];return{result:ke.result,complete:!je,missing:je}},S.prototype.isFresh=function(o,f,E,j){if(Sr(j.store)&&this.knownResults.get(o)===E){var G=this.executeSelectionSet.peek(E,f,j,this.canon.isKnown(o));if(G&&o===G.result)return!0}return!1},S.prototype.execSelectionSetImpl=function(o){var f=this,E=o.selectionSet,j=o.objectOrReference,G=o.enclosingRef,Z=o.context;if(O(j)&&!Z.policies.rootTypenamesById[j.__ref]&&!Z.store.has(j.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(j.__ref," object")};var Ce,le=Z.variables,ge=Z.policies,Ae=Z.store.getFieldValue(j,"__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&&!ge.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=ge.readField({fieldName:We.name.value,field:We,variables:Z.variables,from:j},Z),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(j)?j.__ref+" object":"object "+JSON.stringify(j,null,2)),He))):it(Ye)?Ye=je(f.executeSubSelectedArray({field:We,array:Ye,enclosingRef:G,context:Z}),Je):We.selectionSet?null!=Ye&&(Ye=je(f.executeSelectionSet({selectionSet:We.selectionSet,objectOrReference:Ye,enclosingRef:O(Ye)?Ye:G,context:Z}),Je)):Z.canonizeResults&&(Ye=f.canon.pass(Ye)),void 0!==Ye&&Pe.push(((Ze={})[Je]=Ye,Ze))}else{var rt=V(We,Z.fragmentMap);rt&&ge.fragmentMatches(rt,Ae)&&rt.selectionSet.selections.forEach(Le.add,Le)}});var Qe={result:Bt(Pe),missing:Ce},Xe=Z.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,j=o.array,G=o.enclosingRef,Z=o.context,ge=new Dt;function be(Ae,Pe){var Ce;return Ae.missing&&(le=ge.merge(le,((Ce={})[Pe]=Ae.missing,Ce))),Ae.result}return E.selectionSet&&(j=j.filter(Z.store.canRead)),j=j.map(function(Ae,Pe){return null===Ae?null:it(Ae)?be(f.executeSubSelectedArray({field:E,array:Ae,enclosingRef:G,context:Z}),Pe):E.selectionSet?be(f.executeSelectionSet({selectionSet:E.selectionSet,objectOrReference:Ae,enclosingRef:O(Ae)?Ae:G,context:Z}),Pe):(__DEV__&&function xi(S,o,f){if(!o.selectionSet){var E=new Set([f]);E.forEach(function(j){De(j)&&(__DEV__?a(!O(j),"Missing selection set for object of type ".concat(function en(S,o){return O(o)?S.get(o.__ref,"__typename"):o&&o.__typename}(S,j)," returned for query field ").concat(o.name.value)):a(!O(j),5),Object.values(j).forEach(E.add,E))})}}(Z.store,E,Ae),Ae)}),{result:Z.canonizeResults?this.canon.admit(j):j,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 j=function(Z,le){return E.readField(le,Z)},G=E.keyObject=vn(S,function(Z){var le=or(E.storeObject,Z,j);return void 0===le&&f!==E.storeObject&&st.call(f,Z[0])&&(le=or(f,Z,Qn)),__DEV__?a(void 0!==le,"Missing field '".concat(Z.join("."),"' while extracting keyFields from ").concat(JSON.stringify(f))):a(void 0!==le,2),le});return"".concat(E.typename,":").concat(JSON.stringify(G))})}function Vn(S){var o=dn(S);return o.keyArgsFn||(o.keyArgsFn=function(f,E){var j=E.field,G=E.variables,Z=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(G&&st.call(G,Le)){var Ve=be.slice(0);return Ve[0]=Le,or(G,Ve)}}else if(j&&Gt(j.directives)){var Ce=Ae.slice(1),ke=j.directives.find(function(Qe){return Qe.name.value===Ce}),je=ke&&Ke(ke,G);return je&&or(je,be.slice(1))}}),ge=JSON.stringify(le);return(f||"{}"!==ge)&&(Z+=":"+ge),Z})}function vn(S,o){var f=new Dt;return Wn(S).reduce(function(E,j){var G,Z=o(j);if(void 0!==Z){for(var le=j.length-1;le>=0;--le)(G={})[j[le]]=Z,Z=G;E=f.merge(E,Z)}return E},Object.create(null))}function Wn(S){var o=dn(S);if(!o.paths){var f=o.paths=[],E=[];S.forEach(function(j,G){it(j)?(Wn(j).forEach(function(Z){return f.push(E.concat(Z))}),E.length=0):(E.push(j),it(S[G+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(j,G){return it(j)?j.map(function(Z){return E(Z,G)}):j&&f(j,G)},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(J);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,j=this,G=f&&(f.typename||(null===(E=f.storeObject)||void 0===E?void 0:E.__typename))||o.__typename;if(G===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var ge,Z=f&&f.storeObject||o,le=(0,t.pi)((0,t.pi)({},f),{typename:G,storeObject:Z,readField:f&&f.readField||function(){var Ce=mn(arguments,Z);return j.readField(Ce,{store:j.cache.data,variables:Ce.variables})}}),be=G&&this.getTypePolicy(G),Ae=be&&be.keyFn||this.config.dataIdFromObject;Ae;){var Pe=Ae(o,le);if(!it(Pe)){ge=Pe;break}Ae=jn(Pe)}return ge=ge?String(ge):void 0,le.keyObject?[ge,le.keyObject]:[ge]},S.prototype.addTypePolicies=function(o){var f=this;Object.keys(o).forEach(function(E){var j=o[E],G=j.queryType,Z=j.mutationType,le=j.subscriptionType,ge=(0,t._T)(j,["queryType","mutationType","subscriptionType"]);G&&f.setRootTypename("Query",E),Z&&f.setRootTypename("Mutation",E),le&&f.setRootTypename("Subscription",E),st.call(f.toBeAdded,E)?f.toBeAdded[E].push(ge):f.toBeAdded[E]=[ge]})},S.prototype.updateTypePolicy=function(o,f){var E=this,j=this.getTypePolicy(o),G=f.keyFields,Z=f.fields;function le(ge,be){ge.merge="function"==typeof be?be:!0===be?zn:!1===be?Hn:ge.merge}le(j,f.merge),j.keyFn=!1===G?Ci:it(G)?jn(G):"function"==typeof G?G:j.keyFn,Z&&Object.keys(Z).forEach(function(ge){var be=E.getFieldPolicy(o,ge,!0),Ae=Z[ge];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(),j=this.rootTypenamesById[E];f!==j&&(__DEV__?a(!j||j===o,"Cannot change root ".concat(o," __typename more than once")):a(!j||j===o,3),j&&delete this.rootIdsByTypename[j],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(j){f.getSupertypeSet(j,!0).add(E);var G=j.match(Fr);(!G||G[0]!==j)&&f.fuzzySubtypes.set(j,new RegExp(j))})})},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 j=this.supertypeMap.get(o);j&&j.size&&j.forEach(function(Z){var le=f.getTypePolicy(Z),ge=le.fields,be=(0,t._T)(le,["fields"]);Object.assign(E,be),Object.assign(E.fields,ge)})}var G=this.toBeAdded[o];return G&&G.length&&G.splice(0).forEach(function(Z){f.updateTypePolicy(o,Z)}),this.typePolicies[o]},S.prototype.getFieldPolicy=function(o,f,E){if(o){var j=this.getTypePolicy(o).fields;return j[f]||E&&(j[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,j){var G=this;if(!o.typeCondition)return!0;if(!f)return!1;var Z=o.typeCondition.name.value;if(f===Z)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(Z))for(var le=this.getSupertypeSet(f,!0),ge=[le],be=function(je){var Le=G.getSupertypeSet(je,!1);Le&&Le.size&&ge.indexOf(Le)<0&&ge.push(Le)},Ae=!(!E||!this.fuzzySubtypes.size),Pe=!1,Ce=0;Ce<ge.length;++Ce){var ke=ge[Ce];if(ke.has(Z))return le.has(Z)||(Pe&&__DEV__&&a.warn("Inferring subtype ".concat(f," of supertype ").concat(Z)),le.add(Z)),!0;ke.forEach(be),Ae&&Ce===ge.length-1&&nr(o.selectionSet,E,j)&&(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 G,f=o.typename,E=o.fieldName,j=this.getFieldPolicy(f,E,!1),Z=j&&j.keyFn;if(Z&&f)for(var le={typename:f,fieldName:E,field:o.field||null,variables:o.variables},ge=yn(o);Z;){var be=Z(ge,le);if(!it(be)){G=be||E;break}Z=Vn(be)}return void 0===G&&(G=o.field?function qe(S,o){var f=null;S.directives&&(f={},S.directives.forEach(function(j){f[j.name.value]={},j.arguments&&j.arguments.forEach(function(G){return Ue(f[j.name.value],G.name,G.value,o)})}));var E=null;return S.arguments&&S.arguments.length&&(E={},S.arguments.forEach(function(j){return Ue(E,j.name,j.value,o)})),nt(S.name.value,E,f)}(o.field,o.variables):nt(E,yn(o))),!1===G?E:E===At(G)?G:E+":"+G},S.prototype.readField=function(o,f){var E=o.from;if(E&&(o.field||o.fieldName)){if(void 0===o.typename){var G=f.store.getFieldValue(E,"__typename");G&&(o.typename=G)}var Z=this.getStoreFieldName(o),le=At(Z),ge=f.store.getFieldValue(E,Z),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,Z));return an.withValue(this.cache,Ae,[ge,Pe])}return ge}},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 j=this.getFieldPolicy(o,f,!1),G=j&&j.merge;return!G&&E&&(G=(j=this.getTypePolicy(E))&&j.merge),G},S.prototype.runMergeFunction=function(o,f,E,j,G){var Z=E.field,le=E.typename,ge=E.merge;return ge===zn?Yn(j.store)(o,f):ge===Hn?f:(j.overwrite&&(o=void 0),ge(o,f,Gn(this,void 0,{typename:le,fieldName:Z.name.value,field:Z,variables:j.variables},j,G||Object.create(null))))},S}();function Gn(S,o,f,E,j){var G=S.getStoreFieldName(f),Z=At(G),le=f.variables||E.variables,ge=E.store,be=ge.toReference,Ae=ge.canRead;return{args:yn(f),field:f.field||null,fieldName:Z,storeFieldName:G,variables:le,isReference:O,toReference:be,storage:j,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 Z,E=S[0];return"string"==typeof E?Z={fieldName:E,from:S.length>1?S[1]:o}:(Z=(0,t.pi)({},E),st.call(Z,"from")||(Z.from=o)),__DEV__&&void 0===Z.from&&__DEV__&&a.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===Z.variables&&(Z.variables=f),Z}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 j=S.getFieldValue(f,"__typename"),G=S.getFieldValue(E,"__typename");if(j&&G&&j!==G)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),j=S.flavors.get(E);return j||S.flavors.set(E,j=S.clientOnly===o&&S.deferred===f?S:(0,t.pi)((0,t.pi)({},S),{clientOnly:o,deferred:f})),j}var Ii=function(){function S(o,f){this.cache=o,this.reader=f}return S.prototype.writeToStore=function(o,f){var E=this,j=f.query,G=f.result,Z=f.dataId,le=f.variables,ge=f.overwrite,be=St(j),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:J(le),fragmentMap:ie(Tt(j)),overwrite:!!ge,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},Ce=this.processSelectionSet({result:G||Object.create(null),dataId:Z,selectionSet:be.selectionSet,mergeTree:{map:new Map},context:Pe});if(!O(Ce))throw __DEV__?new n("Could not identify object ".concat(JSON.stringify(G))):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 j=function(Pe){var Ce=E.getFieldValue(Pe,f);return"object"==typeof Ce&&Ce},G=j(S);if(G){var Z=j(o);if(Z&&!O(G)&&!(0,ut.D)(G,Z)&&!Object.keys(G).every(function(Pe){return void 0!==E.getFieldValue(Z,Pe)})){var le=E.getFieldValue(S,"__typename")||E.getFieldValue(o,"__typename"),ge=At(f),be="".concat(le,".").concat(ge);if(!Zn.has(be)){Zn.add(be);var Ae=[];!it(G)&&!it(Z)&&[G,Z].forEach(function(Pe){var Ce=E.getFieldValue(Pe,"__typename");"string"==typeof Ce&&!Ae.includes(Ce)&&Ae.push(Ce)}),__DEV__&&a.warn("Cache data may be lost when replacing the ".concat(ge," 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(G).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(Z).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,j=o.result,G=o.selectionSet,Z=o.context,le=o.mergeTree,ge=this.cache.policies,be=Object.create(null),Ae=E&&ge.rootTypenamesById[E]||jt(j,G,Z.fragmentMap)||E&&Z.store.get(E,"__typename");"string"==typeof Ae&&(be.__typename=Ae);var Pe=function(){var We=mn(arguments,be,Z.variables);if(O(We.from)){var He=Z.incomingById.get(We.from.__ref);if(He){var Ze=ge.readField((0,t.pi)((0,t.pi)({},We),{from:He.storeObject}),Z);if(void 0!==Ze)return Ze}}return ge.readField(We,Z)},Ce=new Set;this.flattenFields(G,j,Z,Ae).forEach(function(We,He){var Ze,Ye=ct(He),Je=j[Ye];if(Ce.add(He),void 0!==Je){var rt=ge.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=ge.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)&&!ge.getReadFunction(Ae,He.name.value)&&__DEV__&&a.error("Missing field '".concat(ct(He),"' while writing result ").concat(JSON.stringify(j,null,2)).substring(0,1e3))});try{var ke=ge.identify(j,{typename:Ae,selectionSet:G,fragmentMap:Z.fragmentMap,storeObject:be,readField:Pe}),Le=ke[1];E=E||ke[0],Le&&(be=Z.merge(be,Le))}catch(We){if(!E)throw We}if("string"==typeof E){var Ve=v(E),Qe=Z.written[E]||(Z.written[E]=[]);if(Qe.indexOf(G)>=0||(Qe.push(G),this.reader&&this.reader.isFresh(j,Ve,G,Z)))return Ve;var Xe=Z.incomingById.get(E);return Xe?(Xe.storeObject=Z.merge(Xe.storeObject,be),Xe.mergeTree=bn(Xe.mergeTree,le),Ce.forEach(function(We){return Xe.fieldNodeSet.add(We)})):Z.incomingById.set(E,{storeObject:be,mergeTree:Ur(le)?void 0:le,fieldNodeSet:Ce}),Ve}return be},S.prototype.processFieldValue=function(o,f,E,j){var G=this;return f.selectionSet&&null!==o?it(o)?o.map(function(Z,le){var ge=G.processFieldValue(Z,f,E,$n(j,le));return Xn(j,le),ge}):this.processSelectionSet({result:o,selectionSet:f.selectionSet,context:E,mergeTree:j}):__DEV__?An(o):o},S.prototype.flattenFields=function(o,f,E,j){void 0===j&&(j=jt(f,o,E.fragmentMap));var G=new Map,Z=this.cache.policies,le=new rr.B(!1);return function ge(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=G.get(Ce);Le&&(ke=ke&&Le.clientOnly,je=je&&Le.deferred),G.set(Ce,gn(E,ke,je))}else{var Ve=V(Ce,E.fragmentMap);Ve&&Z.fragmentMatches(Ve,j,f,E.variables)&&ge(Ve.selectionSet,gn(E,ke,je))}}}))}(o,E),G},S.prototype.applyMerges=function(o,f,E,j,G){var Z,le=this;if(o.map.size&&!O(E)){var ge=it(E)||!O(f)&&!Mt(f)?void 0:f,be=E;ge&&!G&&(G=[O(ge)?ge.__ref:ge]);var Ae,Pe=function(Ce,ke){return it(Ce)?"number"==typeof ke?Ce[ke]:void 0:j.store.getFieldValue(Ce,String(ke))};o.map.forEach(function(Ce,ke){var je=Pe(ge,ke),Le=Pe(be,ke);if(void 0!==Le){G&&G.push(ke);var Ve=le.applyMerges(Ce,je,Le,j,G);Ve!==Le&&(Ae=Ae||new Map).set(ke,Ve),G&&a(G.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,j,G&&(Z=j.store).getStorage.apply(Z,G)):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,G={info:f,map:E?new Map:S.map.size?S.map:o.map};if(E){var Z=new Set(o.map.keys());S.map.forEach(function(le,ge){G.map.set(ge,bn(le,o.map.get(ge))),Z.delete(ge)}),Z.forEach(function(le){G.map.set(le,bn(o.map.get(le),S.map.get(le)))})}return G}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,j=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:j&&j.canon})),this.maybeBroadcastWatch=(0,ir.re)(function(G,Z){return E.broadcastWatch(G,Z)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(G){var Z=G.optimistic?E.optimisticData:E.data;if(Sr(Z))return Z.makeCacheKey(G.query,G.callback,J({optimistic:G.optimistic,rootId:G.rootId,variables:G.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(G){return G.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,j=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:j})).result||null}catch(G){if(G instanceof fn)return null;throw G}},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){J.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__&&a.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(),J.reset(),f&&f.discardWatches?(this.watches.forEach(function(j){return E.maybeBroadcastWatch.forget(j)}),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,j=f.update,G=f.optimistic,Z=void 0===G||G,le=f.removeOptimistic,ge=f.onWatchUpdated,Ae=function(Ce){var je=E.data,Le=E.optimisticData;++E.txCount,Ce&&(E.data=E.optimisticData=Ce);try{return be=j(E)}finally{--E.txCount,E.data=je,E.optimisticData=Le}},Pe=new Set;return ge&&!this.txCount&&this.broadcastWatches((0,t.pi)((0,t.pi)({},f),{onWatchUpdated:function(Ce){return Pe.add(Ce),!1}})),"string"==typeof Z?this.optimisticData=this.optimisticData.addLayer(Z,Ae):!1===Z?Ae(this.data):Ae(),"string"==typeof le&&(this.optimisticData=this.optimisticData.removeLayer(le)),ge&&Pe.size?(this.broadcastWatches((0,t.pi)((0,t.pi)({},f),{onWatchUpdated:function(Ce,ke){var je=ge.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(j){return E.maybeBroadcastWatch(j,f)})},o.prototype.broadcastWatch=function(f,E){var j=f.lastDiff,G=this.diff(f);E&&(f.optimistic&&"string"==typeof E.optimistic&&(G.fromOptimisticTransaction=!0),E.onWatchUpdated&&!1===E.onWatchUpdated.call(this,f,G,j))||(!j||!(0,ut.D)(j.result,G.result))&&f.callback(f.lastDiff=G,j)},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(j){o?__DEV__&&a.warn("Promise Wrapper does not support multiple results from Observable"):(o=!0,f(j))},error:E})})}function Bi(S){return new me(function(o){S.then(function(f){o.next(f),o.complete()}).catch(o.error.bind(o))})}var wr=p(19636);s(C?"log":"silent")},7535:ce=>{"use strict";ce.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:ce=>{"use strict";ce.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:ce=>{"use strict";ce.exports=JSON.parse('{"o":{"ListIdentityPools":{"input_token":"NextToken","limit_key":"MaxResults","output_token":"NextToken","result_key":"IdentityPools"}}}')},6839:ce=>{"use strict";ce.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:ce=>{"use strict";ce.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:ce=>{"use strict";ce.exports={o:{}}},85595:ce=>{"use strict";ce.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:ce=>{"use strict";ce.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"}}')}}]);
|