altair-static 4.2.0 → 4.4.0
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/100.js +1 -0
- package/build/dist/267.js +1 -0
- package/build/dist/3rdpartylicenses.txt +512 -0
- package/build/dist/471.js +1 -1
- package/build/dist/790.js +1 -1
- package/build/dist/794.js +1 -1
- package/build/dist/873.js +1 -1
- package/build/dist/929.js +1 -0
- package/build/dist/assets/i18n/default.json +7 -1
- package/build/dist/main.js +1 -1
- package/build/dist/styles.css +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.js +4 -1
- package/build/index.test.d.ts +1 -0
- package/build/index.test.js +17 -6
- package/build/utils/get-altair-html.d.ts +1 -0
- package/build/utils/get-dist.d.ts +1 -0
- package/package.json +4 -4
- package/src/index.test.ts +21 -6
- package/src/index.ts +6 -3
- package/tsconfig.json +1 -0
- package/build/dist/283.js +0 -1
- package/build/dist/672.js +0 -1
- package/build/dist/709.js +0 -1
- package/build/dist/866.js +0 -1
- package/build/index.js.map +0 -1
- package/build/index.test.js.map +0 -1
- package/build/utils/get-altair-html.js.map +0 -1
- package/build/utils/get-dist.js.map +0 -1
- package/scripts/prepare_dist.js +0 -77
package/build/dist/794.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[794],{5794:(J,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.AppSyncSubscriptionProvider=void 0;const n=s(71251),y=s(52999),l=s(11984),e=s(37490),t=s(52247),a=s(63262);I.AppSyncSubscriptionProvider=class extends n.SubscriptionProvider{execute(i){const c=this.connectionParams.aws_appsync_graphqlEndpoint,d=this.connectionParams.aws_appsync_region,g={type:this.connectionParams.aws_appsync_authenticationType,apiKey:this.connectionParams.aws_appsync_apiKey,jwtToken:this.connectionParams.aws_appsync_jwtToken},p=t.ApolloLink.from([l.createAuthLink({url:c,region:d,auth:g}),e.createSubscriptionHandshakeLink({url:c,region:d,auth:g})]),S=new t.ApolloClient({link:p,cache:new t.InMemoryCache}).subscribe({query:a.parse(i.query),variables:i.variables});return new y.Observable(b=>{this.subscription=S.subscribe({next:(...A)=>b.next(...A),error:(...A)=>b.error(...A),complete:()=>b.complete()})})}close(){var i,c;(null==(i=this.subscription)?void 0:i.closed)&&(null==(c=this.subscription)||c.unsubscribe())}}},17629:(J,I,s)=>{"use strict";s.d(I,{R:()=>l});var n=s(6462),y=s(50216),l=function(){function e(){this.getFragmentDoc=(0,n.re)(y.Yk)}return e.prototype.recordOptimisticTransaction=function(t,a){this.performTransaction(t,a)},e.prototype.transformDocument=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.transformForLink=function(t){return t},e.prototype.readQuery=function(t,a){return void 0===a&&(a=!!t.optimistic),this.read({rootId:t.id||"ROOT_QUERY",query:t.query,variables:t.variables,returnPartialData:t.returnPartialData,optimistic:a})},e.prototype.readFragment=function(t,a){return void 0===a&&(a=!!t.optimistic),this.read({query:this.getFragmentDoc(t.fragment,t.fragmentName),variables:t.variables,rootId:t.id,returnPartialData:t.returnPartialData,optimistic:a})},e.prototype.writeQuery=function(t){return this.write({dataId:t.id||"ROOT_QUERY",result:t.data,query:t.query,variables:t.variables,broadcast:t.broadcast})},e.prototype.writeFragment=function(t){return this.write({dataId:t.id,result:t.data,variables:t.variables,query:this.getFragmentDoc(t.fragment,t.fragmentName),broadcast:t.broadcast})},e}()},43015:(J,I,s)=>{"use strict";var n;s.d(I,{C:()=>n}),n||(n={})},73860:(J,I,s)=>{"use strict";s.d(I,{y:()=>n});var n=function(l,e,t,a,o){this.message=l,this.path=e,this.query=t,this.clientOnly=a,this.variables=o}},3916:(J,I,s)=>{"use strict";s.d(I,{RI:()=>e,$O:()=>a,E_:()=>o,RC:()=>r,j:()=>i,ig:()=>c});var n=s(30534),y=s(17334),l=s(2456),e=Object.prototype.hasOwnProperty,a=/^[_a-z][_0-9a-z]*/i;function o(d){var g=d.match(a);return g?g[0]:d}function r(d,g,p){return!(!g||"object"!=typeof g)&&(Array.isArray(g)?g.every(function(T){return r(d,T,p)}):d.selections.every(function(T){if((0,n.My)(T)&&(0,y.LZ)(T,p)){var S=(0,n.u2)(T);return e.call(g,S)&&(!T.selectionSet||r(T.selectionSet,g[S],p))}return!0}))}function i(d){return null!==d&&"object"==typeof d&&!(0,n.Yk)(d)&&!Array.isArray(d)}function c(){return new l.w0}},41695:(J,I,s)=>{"use strict";s.d(I,{h:()=>k});var K,C,n=s(48399),y=s(6462),l=s(17629),e=s(73860),t=s(30534),a=s(52107),o=s(70977),r=s(83368),i=s(50216),c=s(17334),d=s(2456),g=s(38546),b=s(73005),A=s(3916),x=Object.create(null),G=function(){return x},W=Object.create(null),H=function(){function K(C,f){var O=this;this.policies=C,this.group=f,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(E,M){return(0,t.Yk)(E)?O.get(E.__ref,M):E&&E[M]},this.canRead=function(E){return(0,t.Yk)(E)?O.has(E.__ref):"object"==typeof E},this.toReference=function(E,M){if("string"==typeof E)return(0,t.kQ)(E);if((0,t.Yk)(E))return E;var j=O.policies.identify(E)[0];if(j){var q=(0,t.kQ)(j);return M&&O.merge(j,E),q}}}return K.prototype.toObject=function(){return(0,n.pi)({},this.data)},K.prototype.has=function(C){return void 0!==this.lookup(C,!0)},K.prototype.get=function(C,f){if(this.group.depend(C,f),A.RI.call(this.data,C)){var O=this.data[C];if(O&&A.RI.call(O,f))return O[f]}return"__typename"===f&&A.RI.call(this.policies.rootTypenamesById,C)?this.policies.rootTypenamesById[C]:this instanceof w?this.parent.get(C,f):void 0},K.prototype.lookup=function(C,f){return f&&this.group.depend(C,"__exists"),A.RI.call(this.data,C)?this.data[C]:this instanceof w?this.parent.lookup(C,f):this.policies.rootTypenamesById[C]?Object.create(null):void 0},K.prototype.merge=function(C,f){var O=this,E=this.lookup(C),M=new d.w0(u).merge(E,f);if(this.data[C]=M,M!==E&&(delete this.refs[C],this.group.caching)){var j=Object.create(null);E||(j.__exists=1),Object.keys(f).forEach(function(q){if(!E||E[q]!==M[q]){j[q]=1;var ne=(0,A.E_)(q);ne!==q&&!O.policies.hasKeyArgs(M.__typename,ne)&&(j[ne]=1),void 0===M[q]&&!(O instanceof w)&&delete M[q]}}),Object.keys(j).forEach(function(q){return O.group.dirty(C,q)})}},K.prototype.modify=function(C,f){var O=this,E=this.lookup(C);if(E){var M=Object.create(null),j=!1,q=!0,ne={DELETE:x,INVALIDATE:W,isReference:t.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(oe,de){return O.policies.readField("string"==typeof oe?{fieldName:oe,from:de||(0,t.kQ)(C)}:oe,{store:O})}};if(Object.keys(E).forEach(function(oe){var de=(0,A.E_)(oe),ve=E[oe];if(void 0!==ve){var be="function"==typeof f?f:f[oe]||f[de];if(be){var me=be===G?x:be(ve,(0,n.pi)((0,n.pi)({},ne),{fieldName:de,storeFieldName:oe,storage:O.getStorage(C,oe)}));me===W?O.group.dirty(C,oe):(me===x&&(me=void 0),me!==ve&&(M[oe]=me,j=!0,ve=me))}void 0!==ve&&(q=!1)}}),j)return this.merge(C,M),q&&(this instanceof w?this.data[C]=void 0:delete this.data[C],this.group.dirty(C,"__exists")),!0}return!1},K.prototype.delete=function(C,f,O){var E,M=this.lookup(C);if(M){var j=this.getFieldValue(M,"__typename"),q=f&&O?this.policies.getStoreFieldName({typename:j,fieldName:f,args:O}):f;return this.modify(C,q?((E={})[q]=G,E):G)}return!1},K.prototype.evict=function(C){var f=!1;return C.id&&(A.RI.call(this.data,C.id)&&(f=this.delete(C.id,C.fieldName,C.args)),this instanceof w&&(f=this.parent.evict(C)||f),(C.fieldName||f)&&this.group.dirty(C.id,C.fieldName||"__exists")),f},K.prototype.clear=function(){this.replace(null)},K.prototype.extract=function(){var C=this,f=this.toObject(),O=[];return this.getRootIdSet().forEach(function(E){A.RI.call(C.policies.rootTypenamesById,E)||O.push(E)}),O.length&&(f.__META={extraRootIds:O.sort()}),f},K.prototype.replace=function(C){var f=this;if(Object.keys(this.data).forEach(function(M){C&&A.RI.call(C,M)||f.delete(M)}),C){var O=C.__META,E=(0,n._T)(C,["__META"]);Object.keys(E).forEach(function(M){f.merge(M,E[M])}),O&&O.extraRootIds.forEach(this.retain,this)}},K.prototype.retain=function(C){return this.rootIds[C]=(this.rootIds[C]||0)+1},K.prototype.release=function(C){if(this.rootIds[C]>0){var f=--this.rootIds[C];return f||delete this.rootIds[C],f}return 0},K.prototype.getRootIdSet=function(C){return void 0===C&&(C=new Set),Object.keys(this.rootIds).forEach(C.add,C),this instanceof w?this.parent.getRootIdSet(C):Object.keys(this.policies.rootTypenamesById).forEach(C.add,C),C},K.prototype.gc=function(){var C=this,f=this.getRootIdSet(),O=this.toObject();f.forEach(function(j){A.RI.call(O,j)&&(Object.keys(C.findChildRefIds(j)).forEach(f.add,f),delete O[j])});var E=Object.keys(O);if(E.length){for(var M=this;M instanceof w;)M=M.parent;E.forEach(function(j){return M.delete(j)})}return E},K.prototype.findChildRefIds=function(C){if(!A.RI.call(this.refs,C)){var f=this.refs[C]=Object.create(null),O=new Set([this.data[C]]),E=function(M){return null!==M&&"object"==typeof M};O.forEach(function(M){(0,t.Yk)(M)?f[M.__ref]=!0:E(M)&&Object.values(M).filter(E).forEach(O.add,O)})}return this.refs[C]},K.prototype.makeCacheKey=function(){for(var C=[],f=0;f<arguments.length;f++)C[f]=arguments[f];return this.group.keyMaker.lookupArray(C)},K}(),B=function(){function K(C){this.caching=C,this.d=null,this.keyMaker=new y.Gl(b.m),this.d=C?(0,y.dP)():null}return K.prototype.depend=function(C,f){if(this.d){this.d(m(C,f));var O=(0,A.E_)(f);O!==f&&this.d(m(C,O))}},K.prototype.dirty=function(C,f){this.d&&this.d.dirty(m(C,f))},K}();function m(K,C){return C+"#"+K}C=function(f){function O(E){var j=E.resultCaching,q=void 0===j||j,ne=E.seed,oe=f.call(this,E.policies,new B(q))||this;return oe.storageTrie=new y.Gl(b.m),oe.sharedLayerGroup=new B(q),ne&&oe.replace(ne),oe}return(0,n.ZT)(O,f),O.prototype.addLayer=function(E,M){return new w(E,this,M,this.sharedLayerGroup)},O.prototype.removeLayer=function(){return this},O.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},O}(K=H||(H={})),K.Root=C;var w=function(K){function C(f,O,E,M){var j=K.call(this,O.policies,M)||this;return j.id=f,j.parent=O,j.replay=E,j.group=M,E(j),j}return(0,n.ZT)(C,K),C.prototype.addLayer=function(f,O){return new C(f,this,O,this.group)},C.prototype.removeLayer=function(f){var O=this,E=this.parent.removeLayer(f);return f===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(M){O.data[M]!==E.lookup(M)&&O.delete(M)}),E):E===this.parent?this:E.addLayer(this.id,this.replay)},C.prototype.toObject=function(){return(0,n.pi)((0,n.pi)({},this.parent.toObject()),this.data)},C.prototype.findChildRefIds=function(f){var O=this.parent.findChildRefIds(f);return A.RI.call(this.data,f)?(0,n.pi)((0,n.pi)({},O),K.prototype.findChildRefIds.call(this,f)):O},C.prototype.getStorage=function(){for(var f=this.parent;f.parent;)f=f.parent;return f.getStorage.apply(f,arguments)},C}(H);function u(K,C,f){var O=K[f],E=C[f];return(0,g.D)(O,E)?O:E}function v(K){return!!(K instanceof H&&K.group.caching)}function h(K,C){return new e.y(K.message,C.path.slice(),C.query,C.clientOnly,C.variables)}var R=function(){function K(C){var f=this;this.config=C,this.executeSelectionSet=(0,y.re)(function(O){return f.execSelectionSetImpl(O)},{keyArgs:function(O){return[O.selectionSet,O.objectOrReference,O.context]},makeCacheKey:function(O,E,M){if(v(M.store))return M.store.makeCacheKey(O,(0,t.Yk)(E)?E.__ref:E,M.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=(0,y.re)(function(O){return f.execSubSelectedArrayImpl(O)},{makeCacheKey:function(O){var E=O.field,M=O.array,j=O.context;if(v(j.store))return j.store.makeCacheKey(E,M,j.varString)}}),this.config=(0,n.pi)({addTypename:!0},C)}return K.prototype.diffQueryAgainstStore=function(C){var f=C.store,O=C.query,E=C.rootId,M=void 0===E?"ROOT_QUERY":E,j=C.variables,q=C.returnPartialData,ne=void 0===q||q,oe=this.config.cache.policies;j=(0,n.pi)((0,n.pi)({},(0,r.O4)((0,r.iW)(O))),j);var de=this.executeSelectionSet({selectionSet:(0,r.p$)(O).selectionSet,objectOrReference:(0,t.kQ)(M),context:{store:f,query:O,policies:oe,variables:j,varString:JSON.stringify(j),fragmentMap:(0,i.F)((0,r.kU)(O)),path:[],clientOnly:!1}}),ve=de.missing&&de.missing.length>0;if(ve&&!ne)throw de.missing[0];return{result:de.result,missing:de.missing,complete:!ve}},K.prototype.isFresh=function(C,f,O,E){if(v(E.store)&&this.knownResults.get(C)===O){var M=this.executeSelectionSet.peek(O,f,E);if(M&&C===M.result)return!0}return!1},K.prototype.execSelectionSetImpl=function(C){var f=this,O=C.selectionSet,E=C.objectOrReference,M=C.context;if((0,t.Yk)(E)&&!M.policies.rootTypenamesById[E.__ref]&&!M.store.has(E.__ref))return{result:{},missing:[h(new o.ej(4),M)]};var j=M.variables,q=M.policies,oe=[],de={result:null},ve=M.store.getFieldValue(E,"__typename");function be(){return de.missing||(de.missing=[])}function me(F){var _;return F.missing&&(_=be()).push.apply(_,F.missing),F.result}this.config.addTypename&&"string"==typeof ve&&!q.rootIdsByTypename[ve]&&oe.push({__typename:ve});var ge=new Set(O.selections);return ge.forEach(function(F){var _;if((0,c.LZ)(F,j))if((0,t.My)(F)){var D=q.readField({fieldName:F.name.value,field:F,variables:M.variables,from:E},M),X=(0,t.u2)(F);M.path.push(X);var le=M.clientOnly;M.clientOnly=le||!(!F.directives||!F.directives.some(function(L){return"client"===L.name.value})),void 0===D?a.Gw.added(F)||be().push(h(new o.ej(5),M)):Array.isArray(D)?D=me(f.executeSubSelectedArray({field:F,array:D,context:M})):F.selectionSet&&null!=D&&(D=me(f.executeSelectionSet({selectionSet:F.selectionSet,objectOrReference:D,context:M}))),void 0!==D&&oe.push(((_={})[X]=D,_)),M.clientOnly=le,(0,o.kG)(M.path.pop()===X)}else{var Se=(0,i.hi)(F,M.fragmentMap);Se&&q.fragmentMatches(Se,ve)&&Se.selectionSet.selections.forEach(ge.add,ge)}}),de.result=(0,d.bw)(oe),this.knownResults.set(de.result,O),de},K.prototype.execSubSelectedArrayImpl=function(C){var j,f=this,O=C.field,E=C.array,M=C.context;function q(ne,oe){return ne.missing&&(j=j||[]).push.apply(j,ne.missing),(0,o.kG)(M.path.pop()===oe),ne.result}return O.selectionSet&&(E=E.filter(M.store.canRead)),{result:E=E.map(function(ne,oe){return null===ne?null:(M.path.push(oe),Array.isArray(ne)?q(f.executeSubSelectedArray({field:O,array:ne,context:M}),oe):O.selectionSet?q(f.executeSelectionSet({selectionSet:O.selectionSet,objectOrReference:ne,context:M}),oe):((0,o.kG)(M.path.pop()===oe),ne))}),missing:j}},K}(),P=function(){function K(C,f){this.cache=C,this.reader=f}return K.prototype.writeToStore=function(C){var f=C.query,O=C.result,E=C.dataId,M=C.store,j=C.variables,q=(0,r.$H)(f),ne=(0,A.ig)();j=(0,n.pi)((0,n.pi)({},(0,r.O4)(q)),j);var oe=this.processSelectionSet({result:O||Object.create(null),dataId:E,selectionSet:q.selectionSet,mergeTree:{map:new Map},context:{store:M,written:Object.create(null),merge:function(de,ve){return ne.merge(de,ve)},variables:j,varString:JSON.stringify(j),fragmentMap:(0,i.F)((0,r.kU)(f))}});if(!(0,t.Yk)(oe))throw new o.ej(7);return M.retain(oe.__ref),oe},K.prototype.processSelectionSet=function(C){var f=this,O=C.dataId,E=C.result,M=C.selectionSet,j=C.context,q=C.mergeTree,ne=this.cache.policies,oe=ne.identify(E,M,j.fragmentMap),ve=oe[1];if("string"==typeof(O=O||oe[0])){var be=j.written[O]||(j.written[O]=[]),me=(0,t.kQ)(O);if(be.indexOf(M)>=0||(be.push(M),this.reader&&this.reader.isFresh(E,me,M,j)))return me}var ge=Object.create(null);ve&&(ge=j.merge(ge,ve));var F=O&&ne.rootTypenamesById[O]||(0,t.qw)(E,M,j.fragmentMap)||O&&j.store.get(O,"__typename");"string"==typeof F&&(ge.__typename=F);var _=new Set(M.selections);if(_.forEach(function(L){var ie;if((0,c.LZ)(L,j.variables))if((0,t.My)(L)){var se=(0,t.u2)(L),he=E[se];if(void 0!==he){var ye=ne.getStoreFieldName({typename:F,fieldName:L.name.value,field:L,variables:j.variables}),Oe=Z(q,ye),Le=f.processFieldValue(he,L,j,Oe),We=L.selectionSet&&j.store.getFieldValue(Le,"__typename")||void 0,qe=ne.getMergeFunction(F,L.name.value,We);qe?Oe.info={field:L,typename:F,merge:qe}:ue(q,ye),ge=j.merge(ge,((ie={})[ye]=Le,ie))}else if(ne.usingPossibleTypes&&!(0,c.FS)(["defer","client"],L))throw new o.ej(8)}else{var st=(0,i.hi)(L,j.fragmentMap);st&&ne.fragmentMatches(st,F,E,j.variables)&&st.selectionSet.selections.forEach(_.add,_)}}),"string"==typeof O){var D=(0,t.kQ)(O);return q.map.size&&(ge=this.applyMerges(q,D,ge,j)),j.store.merge(O,ge),D}return ge},K.prototype.processFieldValue=function(C,f,O,E){var M=this;return f.selectionSet&&null!==C?Array.isArray(C)?C.map(function(j,q){var ne=M.processFieldValue(j,f,O,Z(E,q));return ue(E,q),ne}):this.processSelectionSet({result:C,selectionSet:f.selectionSet,context:O,mergeTree:E}):C},K.prototype.applyMerges=function(C,f,O,E,M){var j,q=this;if(C.map.size&&!(0,t.Yk)(O)){var ne=Array.isArray(O)||!(0,t.Yk)(f)&&!(0,A.j)(f)?void 0:f,oe=O;ne&&!M&&(M=[(0,t.Yk)(ne)?ne.__ref:ne]);var de,ve=function(be,me){return Array.isArray(be)?"number"==typeof me?be[me]:void 0:E.store.getFieldValue(be,String(me))};C.map.forEach(function(be,me){M&&M.push(me);var ge=ve(ne,me),F=ve(oe,me),_=q.applyMerges(be,ge,F,E,M);_!==F&&(de=de||new Map).set(me,_),M&&(0,o.kG)(M.pop()===me)}),de&&(O=Array.isArray(oe)?oe.slice(0):(0,n.pi)({},oe),de.forEach(function(be,me){O[me]=be}))}return C.info?this.cache.policies.runMergeFunction(f,O,C.info,E,M&&(j=E.store).getStorage.apply(j,M)):O},K}(),U=[];function Z(K,C){var f=K.map;return f.has(C)||f.set(C,U.pop()||{map:new Map}),f.get(C)}function ue(K,C){var f=K.map,O=f.get(C);O&&!O.info&&!O.map.size&&(U.push(O),f.delete(C))}new Set;var ee=s(71883),Y=s(37691),Q={dataIdFromObject:Y.u,addTypename:!0,resultCaching:!0,typePolicies:{}},k=function(K){function C(f){void 0===f&&(f={});var O=K.call(this)||this;return O.watches=new Set,O.typenameDocumentCache=new Map,O.makeVar=ee.QS,O.txCount=0,O.maybeBroadcastWatch=(0,y.re)(function(E,M){return O.broadcastWatch.call(O,E,!!M)},{makeCacheKey:function(E){var M=E.optimistic?O.optimisticData:O.data;if(v(M))return M.makeCacheKey(E.query,E.callback,JSON.stringify({optimistic:E.optimistic,rootId:E.rootId,variables:E.variables}))}}),O.watchDep=(0,y.dP)(),O.config=(0,n.pi)((0,n.pi)({},Q),f),O.addTypename=!!O.config.addTypename,O.policies=new Y.r({cache:O,dataIdFromObject:O.config.dataIdFromObject,possibleTypes:O.config.possibleTypes,typePolicies:O.config.typePolicies}),O.data=new H.Root({policies:O.policies,resultCaching:O.config.resultCaching}),O.optimisticData=O.data,O.storeWriter=new P(O,O.storeReader=new R({cache:O,addTypename:O.addTypename})),O}return(0,n.ZT)(C,K),C.prototype.restore=function(f){return f&&this.data.replace(f),this},C.prototype.extract=function(f){return void 0===f&&(f=!1),(f?this.optimisticData:this.data).extract()},C.prototype.read=function(f){var O=f.returnPartialData,E=void 0!==O&&O;try{return this.storeReader.diffQueryAgainstStore({store:f.optimistic?this.optimisticData:this.data,query:f.query,variables:f.variables,rootId:f.rootId,config:this.config,returnPartialData:E}).result||null}catch(M){if(M instanceof e.y)return null;throw M}},C.prototype.write=function(f){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:f.query,result:f.result,dataId:f.dataId,variables:f.variables})}finally{!--this.txCount&&!1!==f.broadcast&&this.broadcastWatches()}},C.prototype.modify=function(f){if(A.RI.call(f,"id")&&!f.id)return!1;var O=f.optimistic?this.optimisticData:this.data;try{return++this.txCount,O.modify(f.id||"ROOT_QUERY",f.fields)}finally{!--this.txCount&&!1!==f.broadcast&&this.broadcastWatches()}},C.prototype.diff=function(f){return this.storeReader.diffQueryAgainstStore({store:f.optimistic?this.optimisticData:this.data,rootId:f.id||"ROOT_QUERY",query:f.query,variables:f.variables,returnPartialData:f.returnPartialData,config:this.config})},C.prototype.watch=function(f){var O=this;return this.watches.size||(0,ee._v)(this),this.watches.add(f),f.immediate&&this.maybeBroadcastWatch(f),function(){O.watches.delete(f)&&!O.watches.size&&(0,ee.li)(O),O.watchDep.dirty(f),O.maybeBroadcastWatch.forget(f)}},C.prototype.gc=function(){return this.optimisticData.gc()},C.prototype.retain=function(f,O){return(O?this.optimisticData:this.data).retain(f)},C.prototype.release=function(f,O){return(O?this.optimisticData:this.data).release(f)},C.prototype.identify=function(f){return(0,t.Yk)(f)?f.__ref:this.policies.identify(f)[0]},C.prototype.evict=function(f){if(!f.id){if(A.RI.call(f,"id"))return!1;f=(0,n.pi)((0,n.pi)({},f),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(f)}finally{!--this.txCount&&!1!==f.broadcast&&this.broadcastWatches()}},C.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},C.prototype.removeOptimistic=function(f){var O=this.optimisticData.removeLayer(f);O!==this.optimisticData&&(this.optimisticData=O,this.broadcastWatches())},C.prototype.performTransaction=function(f,O){var E=this,M=function(q){var oe=E.data,de=E.optimisticData;++E.txCount,q&&(E.data=E.optimisticData=q);try{f(E)}finally{--E.txCount,E.data=oe,E.optimisticData=de}},j=!1;"string"==typeof O?(this.optimisticData=this.optimisticData.addLayer(O,M),j=!0):null===O?M(this.data):M(),this.broadcastWatches(j)},C.prototype.transformDocument=function(f){if(this.addTypename){var O=this.typenameDocumentCache.get(f);return O||(O=(0,a.Gw)(f),this.typenameDocumentCache.set(f,O),this.typenameDocumentCache.set(O,O)),O}return f},C.prototype.broadcastWatches=function(f){var O=this;this.txCount||this.watches.forEach(function(E){return O.maybeBroadcastWatch(E,f)})},C.prototype.broadcastWatch=function(f,O){this.watchDep.dirty(f),this.watchDep(f);var E=this.diff({query:f.query,variables:f.variables,optimistic:f.optimistic});f.optimistic&&O&&(E.fromOptimisticTransaction=!0),f.callback(E)},C}(l.R)},37691:(J,I,s)=>{"use strict";s.d(I,{u:()=>c,r:()=>S});var n=s(48399),y=s(6462),l=s(70977),e=s(30534),t=s(73005),a=s(50216),o=s(3916),r=s(71883);function i(B){return void 0!==B.args?B.args:B.field?(0,e.NC)(B.field,B.variables):null}var c=function(B,m){var w=B.__typename,u=B.id,v=B._id;if("string"==typeof w&&(m&&(m.keyObject=void 0!==u?{id:u}:void 0!==v?{_id:v}:void 0),void 0===u&&(u=v),void 0!==u))return w+":"+("number"==typeof u||"string"==typeof u?u:JSON.stringify(u))},d=function(){},g=function(B,m){return m.fieldName},p=function(B,m,w){return(0,w.mergeObjects)(B,m)},T=function(B,m){return m},S=function(){function B(m){this.config=m,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,n.pi)({dataIdFromObject:c},m),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),m.possibleTypes&&this.addPossibleTypes(m.possibleTypes),m.typePolicies&&this.addTypePolicies(m.typePolicies)}return B.prototype.identify=function(m,w,u){var v=w&&u?(0,e.qw)(m,w,u):m.__typename;if(v===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var R,h={typename:v,selectionSet:w,fragmentMap:u},N=v&&this.getTypePolicy(v),P=N&&N.keyFn||this.config.dataIdFromObject;P;){var U=P(m,h);if(!Array.isArray(U)){R=U;break}P=G(U)}return R=R?String(R):void 0,h.keyObject?[R,h.keyObject]:[R]},B.prototype.addTypePolicies=function(m){var w=this;Object.keys(m).forEach(function(u){var v=m[u],h=v.queryType,R=v.mutationType,N=v.subscriptionType,P=(0,n._T)(v,["queryType","mutationType","subscriptionType"]);h&&w.setRootTypename("Query",u),R&&w.setRootTypename("Mutation",u),N&&w.setRootTypename("Subscription",u),o.RI.call(w.toBeAdded,u)?w.toBeAdded[u].push(P):w.toBeAdded[u]=[P]})},B.prototype.updateTypePolicy=function(m,w){var u=this,v=this.getTypePolicy(m),h=w.keyFields,R=w.fields;function N(P,U){P.merge="function"==typeof U?U:!0===U?p:!1===U?T:P.merge}N(v,w.merge),v.keyFn=!1===h?d:Array.isArray(h)?G(h):"function"==typeof h?h:v.keyFn,R&&Object.keys(R).forEach(function(P){var U=u.getFieldPolicy(m,P,!0),Z=R[P];if("function"==typeof Z)U.read=Z;else{var ue=Z.keyArgs,V=Z.read,re=Z.merge;U.keyFn=!1===ue?g:Array.isArray(ue)?x(ue):"function"==typeof ue?ue:U.keyFn,"function"==typeof V&&(U.read=V),N(U,re)}U.read&&U.merge&&(U.keyFn=U.keyFn||g)})},B.prototype.setRootTypename=function(m,w){void 0===w&&(w=m);var u="ROOT_"+m.toUpperCase(),v=this.rootTypenamesById[u];w!==v&&((0,l.kG)(!v||v===m,1),v&&delete this.rootIdsByTypename[v],this.rootIdsByTypename[w]=u,this.rootTypenamesById[u]=w)},B.prototype.addPossibleTypes=function(m){var w=this;this.usingPossibleTypes=!0,Object.keys(m).forEach(function(u){w.getSupertypeSet(u,!0),m[u].forEach(function(v){w.getSupertypeSet(v,!0).add(u);var h=v.match(o.$O);(!h||h[0]!==v)&&w.fuzzySubtypes.set(v,new RegExp(v))})})},B.prototype.getTypePolicy=function(m){var w=this;if(!o.RI.call(this.typePolicies,m)){var u=this.typePolicies[m]=Object.create(null);u.fields=Object.create(null);var v=this.supertypeMap.get(m);v&&v.size&&v.forEach(function(R){var N=w.getTypePolicy(R),P=N.fields,U=(0,n._T)(N,["fields"]);Object.assign(u,U),Object.assign(u.fields,P)})}var h=this.toBeAdded[m];return h&&h.length&&h.splice(0).forEach(function(R){w.updateTypePolicy(m,R)}),this.typePolicies[m]},B.prototype.getFieldPolicy=function(m,w,u){if(m){var v=this.getTypePolicy(m).fields;return v[w]||u&&(v[w]=Object.create(null))}},B.prototype.getSupertypeSet=function(m,w){var u=this.supertypeMap.get(m);return!u&&w&&this.supertypeMap.set(m,u=new Set),u},B.prototype.fragmentMatches=function(m,w,u,v){var h=this;if(!m.typeCondition)return!0;if(!w)return!1;var R=m.typeCondition.name.value;if(w===R)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(R))for(var N=this.getSupertypeSet(w,!0),P=[N],U=function(ee){var Y=h.getSupertypeSet(ee,!1);Y&&Y.size&&P.indexOf(Y)<0&&P.push(Y)},Z=!(!u||!this.fuzzySubtypes.size),V=0;V<P.length;++V){var re=P[V];if(re.has(R))return N.has(R)||N.add(R),!0;re.forEach(U),Z&&V===P.length-1&&(0,o.RC)(m.selectionSet,u,v)&&(Z=!1,this.fuzzySubtypes.forEach(function(ee,Y){var Q=w.match(ee);Q&&Q[0]===w&&U(Y)}))}return!1},B.prototype.hasKeyArgs=function(m,w){var u=this.getFieldPolicy(m,w,!1);return!(!u||!u.keyFn)},B.prototype.getStoreFieldName=function(m){var h,w=m.typename,u=m.fieldName,v=this.getFieldPolicy(w,u,!1),R=v&&v.keyFn;if(R&&w)for(var N={typename:w,fieldName:u,field:m.field||null,variables:m.variables},P=i(m);R;){var U=R(P,N);if(!Array.isArray(U)){h=U||u;break}R=x(U)}return void 0===h&&(h=m.field?(0,e.vf)(m.field,m.variables):(0,e.PT)(u,i(m))),!1===h?u:u===(0,o.E_)(h)?h:u+":"+h},B.prototype.readField=function(m,w){var u=m.from;if(u&&(m.field||m.fieldName)){if(void 0===m.typename){var h=w.store.getFieldValue(u,"__typename");h&&(m.typename=h)}var R=this.getStoreFieldName(m),N=(0,o.E_)(R),P=w.store.getFieldValue(u,R),U=this.getFieldPolicy(m.typename,N,!1),Z=U&&U.read;if(Z){var ue=b(this,u,m,w,w.store.getStorage((0,e.Yk)(u)?u.__ref:u,R));return r.ab.withValue(this.cache,Z,[P,ue])}return P}},B.prototype.getMergeFunction=function(m,w,u){var v=this.getFieldPolicy(m,w,!1),h=v&&v.merge;return!h&&u&&(h=(v=this.getTypePolicy(u))&&v.merge),h},B.prototype.runMergeFunction=function(m,w,u,v,h){var R=u.field,N=u.typename,P=u.merge;return P===p?A(v.store.getFieldValue)(m,w):P===T?w:P(m,w,b(this,void 0,{typename:N,fieldName:R.name.value,field:R,variables:v.variables},v,h||Object.create(null)))},B}();function b(B,m,w,u,v){var h=B.getStoreFieldName(w),R=(0,o.E_)(h),N=w.variables||u.variables,P=u.store,U=P.getFieldValue,Z=P.toReference,ue=P.canRead;return{args:i(w),field:w.field||null,fieldName:R,storeFieldName:h,variables:N,isReference:e.Yk,toReference:Z,storage:v,cache:B.cache,canRead:ue,readField:function(V,re){var ee="string"==typeof V?{fieldName:V,from:re}:(0,n.pi)({},V);return void 0===ee.from&&(ee.from=m),void 0===ee.variables&&(ee.variables=N),B.readField(ee,u)},mergeObjects:A(U)}}function A(B){return function(w,u){if(Array.isArray(w)||Array.isArray(u))throw new l.ej(2);if(w&&"object"==typeof w&&u&&"object"==typeof u){var v=B(w,"__typename"),h=B(u,"__typename");return v&&h&&v!==h||!(0,o.j)(w)||!(0,o.j)(u)?u:(0,n.pi)((0,n.pi)({},w),u)}return u}}function x(B){return function(m,w){return m?w.fieldName+":"+JSON.stringify(H(m,B,!1)):w.fieldName}}function G(B){var m=new y.Gl(t.m);return function(w,u){var v;if(u.selectionSet&&u.fragmentMap){var h=m.lookupArray([u.selectionSet,u.fragmentMap]);v=h.aliasMap||(h.aliasMap=W(u.selectionSet,u.fragmentMap))}var R=u.keyObject=H(w,B,!0,v);return u.typename+":"+JSON.stringify(R)}}function W(B,m){var w=Object.create(null),u=new Set([B]);return u.forEach(function(v){v.selections.forEach(function(h){if((0,e.My)(h)){if(h.alias){var R=h.alias.value,N=h.name.value;N!==R&&((w.aliases||(w.aliases=Object.create(null)))[N]=R)}h.selectionSet&&((w.subsets||(w.subsets=Object.create(null)))[h.name.value]=W(h.selectionSet,m))}else{var Z=(0,a.hi)(h,m);Z&&u.add(Z.selectionSet)}})}),w}function H(B,m,w,u){var h,v=Object.create(null);return m.forEach(function(R){if(Array.isArray(R)){if("string"==typeof h){var N=u&&u.subsets;v[h]=H(B[h],R,w,N&&N[h])}}else{var U=u&&u.aliases,Z=U&&U[R]||R;o.RI.call(B,Z)?v[h=R]=B[Z]:((0,l.kG)(!w,3),h=void 0)}}),v}},71883:(J,I,s)=>{"use strict";s.d(I,{ab:()=>l,li:()=>a,_v:()=>o,QS:()=>r});var n=s(6462),l=new(s(83403).g7),e=new WeakMap;function t(c){var d=e.get(c);return d||e.set(c,d={vars:new Set,dep:(0,n.dP)()}),d}function a(c){t(c).vars.forEach(function(d){return d.forgetCache(c)})}function o(c){t(c).vars.forEach(function(d){return d.attachCache(c)})}function r(c){var d=new Set,g=new Set,p=function(S){if(arguments.length>0){if(c!==S){c=S,d.forEach(function(x){t(x).dep.dirty(p),i(x)});var b=Array.from(g);g.clear(),b.forEach(function(x){return x(c)})}}else{var A=l.getValue();A&&(T(A),t(A).dep(p))}return c};p.onNextChange=function(S){return g.add(S),function(){g.delete(S)}};var T=p.attachCache=function(S){return d.add(S),t(S).vars.add(p),p};return p.forgetCache=function(S){return d.delete(S)},p}function i(c){c.broadcastWatches&&c.broadcastWatches()}},12536:()=>{},43303:(J,I,s)=>{"use strict";s.d(I,{f:()=>K,J:()=>k});var n=s(48399),y=s(70977),l=s(80704),e=s(19717),t=s(85025),o=s(80257),r=s(38546),i=s(73005);function c(C){return C.errors&&C.errors.length>0||!1}var d=s(20283),g=s(83368),p=s(52107),T=s(17334),S=s(42677),b=s.n(S),A=s(62954),x=s(1313);function G(C){return C&&"function"==typeof C.then}var W=function(C){function f(O){var E=C.call(this,function(M){return E.addObserver(M),function(){return E.removeObserver(M)}})||this;return E.observers=new Set,E.addCount=0,E.promise=new Promise(function(M,j){E.resolve=M,E.reject=j}),E.handlers={next:function(M){null!==E.sub&&(E.latest=["next",M],(0,A.p)(E.observers,"next",M))},error:function(M){var j=E.sub;null!==j&&(j&&Promise.resolve().then(function(){return j.unsubscribe()}),E.sub=null,E.latest=["error",M],E.reject(M),(0,A.p)(E.observers,"error",M))},complete:function(){if(null!==E.sub){var M=E.sources.shift();M?G(M)?M.then(function(j){return E.sub=j.subscribe(E.handlers)}):E.sub=M.subscribe(E.handlers):(E.sub=null,E.latest&&"next"===E.latest[0]?E.resolve(E.latest[1]):E.resolve(),(0,A.p)(E.observers,"complete"))}}},E.cancel=function(M){E.reject(M),E.sources=[],E.handlers.complete()},E.promise.catch(function(M){}),"function"==typeof O&&(O=[new(b())(O)]),G(O)?O.then(function(M){return E.start(M)},E.handlers.error):E.start(O),E}return(0,n.ZT)(f,C),f.prototype.start=function(O){void 0===this.sub&&(this.sources=Array.from(O),this.handlers.complete())},f.prototype.deliverLastMessage=function(O){if(this.latest){var E=this.latest[0],M=O[E];M&&M.call(O,this.latest[1]),null===this.sub&&"next"===E&&O.complete&&O.complete()}},f.prototype.addObserver=function(O){this.observers.has(O)||(this.deliverLastMessage(O),this.observers.add(O),++this.addCount)},f.prototype.removeObserver=function(O,E){this.observers.delete(O)&&--this.addCount<1&&!E&&this.handlers.error(new Error("Observable cancelled prematurely"))},f.prototype.cleanup=function(O){var E=this,M=!1,j=function(){M||(M=!0,E.observers.delete(q),O())},q={next:j,error:j,complete:j},ne=this.addCount;this.addObserver(q),this.addCount=ne},f}(b());function H(C,f,O){return new(b())(function(E){var M=E.next,j=E.error,q=E.complete,ne=0,oe=!1,de={then:function(ge){return new Promise(function(F){return F(ge())})}};function ve(ge,F){return ge?function(_){++ne;var D=function(){return ge(_)};de=de.then(D,D).then(function(X){--ne,M&&M.call(E,X),oe&&be.complete()},function(X){throw--ne,X}).catch(function(X){j&&j.call(E,X)})}:function(_){return F&&F.call(E,_)}}var be={next:ve(f,M),error:ve(O,j),complete:function(){oe=!0,ne||q&&q.call(E)}},me=C.subscribe(be);return function(){return me.unsubscribe()}})}(0,x.D)(W);var B=s(4549),m=s(40939),w=s(75832),u=s(86729),v=s(2456),h=s(50216),R=s(30534),N=s(71883),P=function(){function C(f){var E=f.client,M=f.resolvers,j=f.fragmentMatcher;this.cache=f.cache,E&&(this.client=E),M&&this.addResolvers(M),j&&this.setFragmentMatcher(j)}return C.prototype.addResolvers=function(f){var O=this;this.resolvers=this.resolvers||{},Array.isArray(f)?f.forEach(function(E){O.resolvers=(0,v.Ee)(O.resolvers,E)}):this.resolvers=(0,v.Ee)(this.resolvers,f)},C.prototype.setResolvers=function(f){this.resolvers={},this.addResolvers(f)},C.prototype.getResolvers=function(){return this.resolvers||{}},C.prototype.runResolvers=function(f){var O=f.document,E=f.remoteResult,M=f.context,j=f.variables,q=f.onlyRunForcedResolvers,ne=void 0!==q&&q;return(0,n.mG)(this,void 0,void 0,function(){return(0,n.Jh)(this,function(oe){return O?[2,this.resolveDocument(O,E.data,M,j,this.fragmentMatcher,ne).then(function(de){return(0,n.pi)((0,n.pi)({},E),{data:de.result})})]:[2,E]})})},C.prototype.setFragmentMatcher=function(f){this.fragmentMatcher=f},C.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},C.prototype.clientQuery=function(f){return(0,T.FS)(["client"],f)&&this.resolvers?f:null},C.prototype.serverQuery=function(f){return(0,p.ob)(f)},C.prototype.prepareContext=function(f){var O=this.cache;return(0,n.pi)((0,n.pi)({},f),{cache:O,getCacheKey:function(E){return O.identify(E)}})},C.prototype.addExportedVariables=function(f,O,E){return void 0===O&&(O={}),void 0===E&&(E={}),(0,n.mG)(this,void 0,void 0,function(){return(0,n.Jh)(this,function(M){return f?[2,this.resolveDocument(f,this.buildRootValueFromCache(f,O)||{},this.prepareContext(E),O).then(function(j){return(0,n.pi)((0,n.pi)({},O),j.exportedVariables)})]:[2,(0,n.pi)({},O)]})})},C.prototype.shouldForceResolvers=function(f){var O=!1;return(0,u.Vn)(f,{Directive:{enter:function(E){if("client"===E.name.value&&E.arguments&&(O=E.arguments.some(function(M){return"always"===M.name.value&&"BooleanValue"===M.value.kind&&!0===M.value.value})))return u.$_}}}),O},C.prototype.buildRootValueFromCache=function(f,O){return this.cache.diff({query:(0,p.aL)(f),variables:O,returnPartialData:!0,optimistic:!1}).result},C.prototype.resolveDocument=function(f,O,E,M,j,q){return void 0===E&&(E={}),void 0===M&&(M={}),void 0===j&&(j=function(){return!0}),void 0===q&&(q=!1),(0,n.mG)(this,void 0,void 0,function(){var ne,oe,de,ve,be,me,ge,F,_;return(0,n.Jh)(this,function(D){return ne=(0,g.p$)(f),oe=(0,g.kU)(f),de=(0,h.F)(oe),be=(ve=ne.operation)?ve.charAt(0).toUpperCase()+ve.slice(1):"Query",ge=(me=this).cache,F=me.client,_={fragmentMap:de,context:(0,n.pi)((0,n.pi)({},E),{cache:ge,client:F}),variables:M,fragmentMatcher:j,defaultOperationType:be,exportedVariables:{},onlyRunForcedResolvers:q},[2,this.resolveSelectionSet(ne.selectionSet,O,_).then(function(X){return{result:X,exportedVariables:_.exportedVariables}})]})})},C.prototype.resolveSelectionSet=function(f,O,E){return(0,n.mG)(this,void 0,void 0,function(){var M,j,q,ne,de=this;return(0,n.Jh)(this,function(ve){return M=E.fragmentMap,j=E.context,q=E.variables,ne=[O],[2,Promise.all(f.selections.map(function(be){return(0,n.mG)(de,void 0,void 0,function(){var me;return(0,n.Jh)(this,function(F){return(0,T.LZ)(be,q)?(0,R.My)(be)?[2,this.resolveField(be,O,E).then(function(_){var D;void 0!==_&&ne.push(((D={})[(0,R.u2)(be)]=_,D))})]:((0,R.Ao)(be)?me=be:(0,y.kG)(me=M[be.name.value],11),me&&me.typeCondition&&E.fragmentMatcher(O,me.typeCondition.name.value,j)?[2,this.resolveSelectionSet(me.selectionSet,O,E).then(function(_){ne.push(_)})]:[2]):[2]})})})).then(function(){return(0,v.bw)(ne)})]})})},C.prototype.resolveField=function(f,O,E){return(0,n.mG)(this,void 0,void 0,function(){var M,j,q,ne,oe,de,ve,be,me,ge=this;return(0,n.Jh)(this,function(F){return M=E.variables,j=f.name.value,q=(0,R.u2)(f),ne=j!==q,oe=O[q]||O[j],de=Promise.resolve(oe),(!E.onlyRunForcedResolvers||this.shouldForceResolvers(f))&&(ve=O.__typename||E.defaultOperationType,(be=this.resolvers&&this.resolvers[ve])&&(me=be[ne?j:q])&&(de=Promise.resolve(N.ab.withValue(this.cache,me,[O,(0,R.NC)(f,M),E.context,{field:f,fragmentMap:E.fragmentMap}])))),[2,de.then(function(_){return void 0===_&&(_=oe),f.directives&&f.directives.forEach(function(D){"export"===D.name.value&&D.arguments&&D.arguments.forEach(function(X){"as"===X.name.value&&"StringValue"===X.value.kind&&(E.exportedVariables[X.value.value]=_)})}),f.selectionSet&&null!=_?Array.isArray(_)?ge.resolveSubSelectedArray(f,_,E):f.selectionSet?ge.resolveSelectionSet(f.selectionSet,_,E):void 0:_})]})})},C.prototype.resolveSubSelectedArray=function(f,O,E){var M=this;return Promise.all(O.map(function(j){return null===j?null:Array.isArray(j)?M.resolveSubSelectedArray(f,j,E):f.selectionSet?M.resolveSelectionSet(f.selectionSet,j,E):void 0}))},C}(),U=new(i.m?WeakMap:Map);function Z(C,f){var O=C[f];"function"==typeof O&&(C[f]=function(){return U.set(C,(U.get(C)+1)%1e15),O.apply(this,arguments)})}function ue(C){C.notifyTimeout&&(clearTimeout(C.notifyTimeout),C.notifyTimeout=void 0)}var V=function(){function C(f){this.cache=f,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,U.has(f)||(U.set(f,0),Z(f,"evict"),Z(f,"modify"),Z(f,"reset"))}return C.prototype.init=function(f){var O=f.networkStatus||w.I.loading;return this.variables&&this.networkStatus!==w.I.loading&&!(0,r.D)(this.variables,f.variables)&&(O=w.I.setVariables),(0,r.D)(f.variables,this.variables)||(this.diff=null),Object.assign(this,{document:f.document,variables:f.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:O}),f.observableQuery&&this.setObservableQuery(f.observableQuery),f.lastRequestId&&(this.lastRequestId=f.lastRequestId),this},C.prototype.reset=function(){ue(this),this.diff=null,this.dirty=!1},C.prototype.getDiff=function(f){return void 0===f&&(f=this.variables),this.diff&&(0,r.D)(f,this.variables)?this.diff:(this.updateWatch(this.variables=f),this.diff=this.cache.diff({query:this.document,variables:f,returnPartialData:!0,optimistic:!0}))},C.prototype.setDiff=function(f){var O=this,E=this.diff;this.diff=f,!this.dirty&&(f&&f.result)!==(E&&E.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return O.notify()},0)))},C.prototype.setObservableQuery=function(f){var O=this;f!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=f,f?(f.queryInfo=this,this.listeners.add(this.oqListener=function(){O.getDiff().fromOptimisticTransaction?f.observe():f.reobserve()})):delete this.oqListener)},C.prototype.notify=function(){var f=this;ue(this),this.shouldNotify()&&this.listeners.forEach(function(O){return O(f)}),this.dirty=!1},C.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,w.O)(this.networkStatus)&&this.observableQuery){var f=this.observableQuery.options.fetchPolicy;if("cache-only"!==f&&"cache-and-network"!==f)return!1}return!0},C.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),delete this.cancel,this.subscriptions.forEach(function(O){return O.unsubscribe()});var f=this.observableQuery;f&&f.stopPolling()}},C.prototype.cancel=function(){},C.prototype.updateWatch=function(f){var O=this;void 0===f&&(f=this.variables);var E=this.observableQuery;E&&"no-cache"===E.options.fetchPolicy||(!this.lastWatch||this.lastWatch.query!==this.document||!(0,r.D)(f,this.lastWatch.variables))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:f,optimistic:!0,callback:function(M){return O.setDiff(M)}}))},C.prototype.shouldWrite=function(f,O){var E=this.lastWrite;return!(E&&E.dmCount===U.get(this.cache)&&(0,r.D)(O,E.variables)&&(0,r.D)(f.data,E.result.data))},C.prototype.markResult=function(f,O,E){var M=this;this.graphQLErrors=(0,d.O)(f.errors)?f.errors:[],this.reset(),"no-cache"===O.fetchPolicy?this.diff={result:f.data,complete:!0}:!this.stopped&&E&&(re(f,O.errorPolicy)?this.cache.performTransaction(function(j){if(M.shouldWrite(f,O.variables))j.writeQuery({query:M.document,data:f.data,variables:O.variables}),M.lastWrite={result:f,variables:O.variables,dmCount:U.get(M.cache)};else if(M.diff&&M.diff.complete)return void(f.data=M.diff.result);var q=j.diff({query:M.document,variables:O.variables,returnPartialData:!0,optimistic:!0});M.stopped||M.updateWatch(O.variables),M.diff=q,q.complete&&(f.data=q.result)}):this.lastWrite=void 0)},C.prototype.markReady=function(){return this.networkError=null,this.networkStatus=w.I.ready},C.prototype.markError=function(f){return this.networkStatus=w.I.error,this.lastWrite=void 0,this.reset(),f.graphQLErrors&&(this.graphQLErrors=f.graphQLErrors),f.networkError&&(this.networkError=f.networkError),f},C}();function re(C,f){void 0===f&&(f="none");var O="ignore"===f||"all"===f,E=!c(C);return!E&&O&&C.data&&(E=!0),E}var ee=Object.prototype.hasOwnProperty,Y=function(){function C(f){var O=f.cache,E=f.link,M=f.queryDeduplication,j=void 0!==M&&M,q=f.onBroadcast,ne=f.ssrMode,oe=void 0!==ne&&ne,de=f.clientAwareness,ve=void 0===de?{}:de,be=f.localState,me=f.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=O,this.link=E,this.queryDeduplication=j,this.clientAwareness=ve,this.localState=be||new P({cache:O}),this.ssrMode=oe,this.assumeImmutableResults=!!me,(this.onBroadcast=q)&&(this.mutationStore=Object.create(null))}return C.prototype.stop=function(){var f=this;this.queries.forEach(function(O,E){f.stopQueryNoBroadcast(E)}),this.cancelPendingFetches(new y.ej(12))},C.prototype.cancelPendingFetches=function(f){this.fetchCancelFns.forEach(function(O){return O(f)}),this.fetchCancelFns.clear()},C.prototype.mutate=function(f){var O=f.mutation,E=f.variables,M=f.optimisticResponse,j=f.updateQueries,q=f.refetchQueries,ne=void 0===q?[]:q,oe=f.awaitRefetchQueries,de=void 0!==oe&&oe,ve=f.update,be=f.errorPolicy,me=void 0===be?"none":be,ge=f.fetchPolicy,F=f.context,_=void 0===F?{}:F;return(0,n.mG)(this,void 0,void 0,function(){var D,X,le;return(0,n.Jh)(this,function(Se){switch(Se.label){case 0:return(0,y.kG)(O,13),(0,y.kG)(!ge||"no-cache"===ge,14),D=this.generateMutationId(),O=this.transform(O).document,E=this.getVariables(O,E),this.transform(O).hasClientExports?[4,this.localState.addExportedVariables(O,E,_)]:[3,2];case 1:E=Se.sent(),Se.label=2;case 2:return X=this.mutationStore&&(this.mutationStore[D]={mutation:O,variables:E,loading:!0,error:null}),M&&this.markMutationOptimistic(M,{mutationId:D,document:O,variables:E,errorPolicy:me,updateQueries:j,update:ve}),this.broadcastQueries(),le=this,[2,new Promise(function(L,ie){var se,he;le.getObservableFromLink(O,(0,n.pi)((0,n.pi)({},_),{optimisticResponse:M}),E,!1).subscribe({next:function(ye){if(c(ye)&&"none"===me)he=new B.c({graphQLErrors:ye.errors});else{if(X&&(X.loading=!1,X.error=null),"no-cache"!==ge)try{le.markMutationResult({mutationId:D,result:ye,document:O,variables:E,errorPolicy:me,updateQueries:j,update:ve})}catch(Oe){return void(he=new B.c({networkError:Oe}))}se=ye}},error:function(ye){X&&(X.loading=!1,X.error=ye),M&&le.cache.removeOptimistic(D),le.broadcastQueries(),ie(new B.c({networkError:ye}))},complete:function(){if(he&&X&&(X.loading=!1,X.error=he),M&&le.cache.removeOptimistic(D),le.broadcastQueries(),he)ie(he);else{"function"==typeof ne&&(ne=ne(se));var ye=[];(0,d.O)(ne)&&ne.forEach(function(Oe){if("string"==typeof Oe)le.queries.forEach(function(We){var qe=We.observableQuery;qe&&qe.hasObservers()&&qe.queryName===Oe&&ye.push(qe.refetch())});else{var Le={query:Oe.query,variables:Oe.variables,fetchPolicy:"network-only"};Oe.context&&(Le.context=Oe.context),ye.push(le.query(Le))}}),Promise.all(de?ye:[]).then(function(){"ignore"===me&&se&&c(se)&&delete se.errors,L(se)},ie)}}})})]}})})},C.prototype.markMutationResult=function(f,O){var E=this;if(void 0===O&&(O=this.cache),re(f.result,f.errorPolicy)){var M=[{result:f.result.data,dataId:"ROOT_MUTATION",query:f.document,variables:f.variables}],j=f.updateQueries;j&&this.queries.forEach(function(q,ne){var oe=q.observableQuery,de=oe&&oe.queryName;if(de&&ee.call(j,de)){var ve=j[de],be=E.queries.get(ne),me=be.document,ge=be.variables,F=O.diff({query:me,variables:ge,returnPartialData:!0,optimistic:!1}),_=F.result;if(F.complete&&_){var X=ve(_,{mutationResult:f.result,queryName:me&&(0,g.rY)(me)||void 0,queryVariables:ge});X&&M.push({result:X,dataId:"ROOT_QUERY",query:me,variables:ge})}}}),O.performTransaction(function(q){M.forEach(function(oe){return q.write(oe)});var ne=f.update;ne&&ne(q,f.result)},null)}},C.prototype.markMutationOptimistic=function(f,O){var E=this,M="function"==typeof f?f(O.variables):f;return this.cache.recordOptimisticTransaction(function(j){try{E.markMutationResult((0,n.pi)((0,n.pi)({},O),{result:{data:M}}),j)}catch(q){}},O.mutationId)},C.prototype.fetchQuery=function(f,O,E){return this.fetchQueryObservable(f,O,E).promise},C.prototype.getQueryStore=function(){var f=Object.create(null);return this.queries.forEach(function(O,E){f[E]={variables:O.variables,networkStatus:O.networkStatus,networkError:O.networkError,graphQLErrors:O.graphQLErrors}}),f},C.prototype.resetErrors=function(f){var O=this.queries.get(f);O&&(O.networkError=void 0,O.graphQLErrors=[])},C.prototype.transform=function(f){var O=this.transformCache;if(!O.has(f)){var E=this.cache.transformDocument(f),M=(0,p.Fo)(this.cache.transformForLink(E)),j=this.localState.clientQuery(E),q=M&&this.localState.serverQuery(M),ne={document:E,hasClientExports:(0,T.mj)(E),hasForcedResolvers:this.localState.shouldForceResolvers(E),clientQuery:j,serverQuery:q,defaultVars:(0,g.O4)((0,g.$H)(E))},oe=function(de){de&&!O.has(de)&&O.set(de,ne)};oe(f),oe(E),oe(j),oe(q)}return O.get(f)},C.prototype.getVariables=function(f,O){return(0,n.pi)((0,n.pi)({},this.transform(f).defaultVars),O)},C.prototype.watchQuery=function(f){void 0===(f=(0,n.pi)((0,n.pi)({},f),{variables:this.getVariables(f.query,f.variables)})).notifyOnNetworkStatusChange&&(f.notifyOnNetworkStatusChange=!1);var O=new V(this.cache),E=new m.u({queryManager:this,queryInfo:O,options:f});return this.queries.set(E.queryId,O),O.init({document:f.query,observableQuery:E,variables:f.variables}),E},C.prototype.query=function(f){var O=this;(0,y.kG)(f.query,15),(0,y.kG)("Document"===f.query.kind,16),(0,y.kG)(!f.returnPartialData,17),(0,y.kG)(!f.pollInterval,18);var E=this.generateQueryId();return this.fetchQuery(E,f).finally(function(){return O.stopQuery(E)})},C.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},C.prototype.generateRequestId=function(){return this.requestIdCounter++},C.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},C.prototype.stopQueryInStore=function(f){this.stopQueryInStoreNoBroadcast(f),this.broadcastQueries()},C.prototype.stopQueryInStoreNoBroadcast=function(f){var O=this.queries.get(f);O&&O.stop()},C.prototype.clearStore=function(){return this.cancelPendingFetches(new y.ej(19)),this.queries.forEach(function(f){f.observableQuery?f.networkStatus=w.I.loading:f.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},C.prototype.resetStore=function(){var f=this;return this.clearStore().then(function(){return f.reFetchObservableQueries()})},C.prototype.reFetchObservableQueries=function(f){var O=this;void 0===f&&(f=!1);var E=[];return this.queries.forEach(function(M,j){var q=M.observableQuery;if(q&&q.hasObservers()){var ne=q.options.fetchPolicy;q.resetLastResults(),"cache-only"!==ne&&(f||"standby"!==ne)&&E.push(q.refetch()),O.getQuery(j).setDiff(null)}}),this.broadcastQueries(),Promise.all(E)},C.prototype.setObservableQuery=function(f){this.getQuery(f.queryId).setObservableQuery(f)},C.prototype.startGraphQLSubscription=function(f){var O=this,E=f.query,M=f.fetchPolicy,j=f.errorPolicy,q=f.variables,ne=f.context,oe=void 0===ne?{}:ne;E=this.transform(E).document,q=this.getVariables(E,q);var de=function(be){return O.getObservableFromLink(E,oe,be,!1).map(function(me){if("no-cache"!==M&&(re(me,j)&&O.cache.write({query:E,result:me.data,dataId:"ROOT_SUBSCRIPTION",variables:be}),O.broadcastQueries()),c(me))throw new B.c({graphQLErrors:me.errors});return me})};if(this.transform(E).hasClientExports){var ve=this.localState.addExportedVariables(E,q,oe).then(de);return new(b())(function(be){var me=null;return ve.then(function(ge){return me=ge.subscribe(be)},be.error),function(){return me&&me.unsubscribe()}})}return de(q)},C.prototype.stopQuery=function(f){this.stopQueryNoBroadcast(f),this.broadcastQueries()},C.prototype.stopQueryNoBroadcast=function(f){this.stopQueryInStoreNoBroadcast(f),this.removeQuery(f)},C.prototype.removeQuery=function(f){this.fetchCancelFns.delete(f),this.getQuery(f).stop(),this.queries.delete(f)},C.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(f){return f.notify()})},C.prototype.getLocalState=function(){return this.localState},C.prototype.getObservableFromLink=function(f,O,E,M){var q,j=this;void 0===M&&(M=null!==(q=null==O?void 0:O.queryDeduplication)&&void 0!==q?q:this.queryDeduplication);var ne,oe=this.transform(f).serverQuery;if(oe){var ve=this.inFlightLinkObservables,be=this.link,me={query:oe,variables:E,operationName:(0,g.rY)(oe)||void 0,context:this.prepareContext((0,n.pi)((0,n.pi)({},O),{forceFetch:!M}))};if(O=me.context,M){var ge=ve.get(oe)||new Map;ve.set(oe,ge);var F=JSON.stringify(E);if(!(ne=ge.get(F))){var _=new W([(0,e.h)(be,me)]);ge.set(F,ne=_),_.cleanup(function(){ge.delete(F)&&ge.size<1&&ve.delete(oe)})}}else ne=new W([(0,e.h)(be,me)])}else ne=new W([b().of({data:{}})]),O=this.prepareContext(O);var D=this.transform(f).clientQuery;return D&&(ne=H(ne,function(X){return j.localState.runResolvers({document:D,remoteResult:X,context:O,variables:E})})),ne},C.prototype.getResultsFromLink=function(f,O,E){var M=f.lastRequestId=this.generateRequestId();return H(this.getObservableFromLink(f.document,E.context,E.variables),function(j){var q=(0,d.O)(j.errors);if(M>=f.lastRequestId){if(q&&"none"===E.errorPolicy)throw f.markError(new B.c({graphQLErrors:j.errors}));f.markResult(j,E,O),f.markReady()}var ne={data:j.data,loading:!1,networkStatus:f.networkStatus||w.I.ready};return q&&"ignore"!==E.errorPolicy&&(ne.errors=j.errors),ne},function(j){var q=(0,B.M)(j)?j:new B.c({networkError:j});throw M>=f.lastRequestId&&f.markError(q),q})},C.prototype.fetchQueryObservable=function(f,O,E){var M=this;void 0===E&&(E=w.I.loading);var j=this.transform(O.query).document,q=this.getVariables(j,O.variables),ne=this.getQuery(f),oe=ne.networkStatus,de=O.fetchPolicy,ve=void 0===de?"cache-first":de,be=O.errorPolicy,me=void 0===be?"none":be,ge=O.returnPartialData,F=void 0!==ge&&ge,_=O.notifyOnNetworkStatusChange,D=void 0!==_&&_,X=O.context,le=void 0===X?{}:X;("cache-first"===ve||"cache-and-network"===ve||"network-only"===ve||"no-cache"===ve)&&D&&"number"==typeof oe&&oe!==E&&(0,w.O)(E)&&("cache-first"!==ve&&(ve="cache-and-network"),F=!0);var L=Object.assign({},O,{query:j,variables:q,fetchPolicy:ve,errorPolicy:me,returnPartialData:F,notifyOnNetworkStatusChange:D,context:le}),ie=function(he){return L.variables=he,M.fetchQueryByPolicy(ne,L,E)};this.fetchCancelFns.set(f,function(he){Promise.resolve().then(function(){return se.cancel(he)})});var se=new W(this.transform(L.query).hasClientExports?this.localState.addExportedVariables(L.query,L.variables,L.context).then(ie):ie(L.variables));return se.cleanup(function(){M.fetchCancelFns.delete(f);var he=O.nextFetchPolicy;he&&(O.nextFetchPolicy=void 0,O.fetchPolicy="function"==typeof he?he.call(O,O.fetchPolicy||"cache-first"):he)}),se},C.prototype.fetchQueryByPolicy=function(f,O,E){var M=this,j=O.query,q=O.variables,ne=O.fetchPolicy,oe=O.errorPolicy,de=O.returnPartialData,ve=O.context;f.init({document:j,variables:q,networkStatus:E});var be=function(){return f.getDiff(q)},me=function(_,D){void 0===D&&(D=f.networkStatus||w.I.loading);var X=_.result,le=function(Se){return b().of((0,n.pi)({data:Se,loading:(0,w.O)(D),networkStatus:D},_.complete?null:{partial:!0}))};return M.transform(j).hasForcedResolvers?M.localState.runResolvers({document:j,remoteResult:{data:X},context:ve,variables:q,onlyRunForcedResolvers:!0}).then(function(Se){return le(Se.data)}):le(X)},ge=function(_){return M.getResultsFromLink(f,_,{variables:q,context:ve,fetchPolicy:ne,errorPolicy:oe})};switch(ne){default:case"cache-first":return(F=be()).complete?[me(F,f.markReady())]:de?[me(F),ge(!0)]:[ge(!0)];case"cache-and-network":var F;return(F=be()).complete||de?[me(F),ge(!0)]:[ge(!0)];case"cache-only":return[me(be(),f.markReady())];case"network-only":return[ge(!0)];case"no-cache":return[ge(!1)];case"standby":return[]}},C.prototype.getQuery=function(f){return f&&!this.queries.has(f)&&this.queries.set(f,new V(this.cache)),this.queries.get(f)},C.prototype.prepareContext=function(f){void 0===f&&(f={});var O=this.localState.prepareContext(f);return(0,n.pi)((0,n.pi)({},O),{clientAwareness:this.clientAwareness})},C}();function k(C,f){return(0,t.o)(C,f,f.variables&&{variables:(0,n.pi)((0,n.pi)({},C.variables),f.variables)})}var K=function(){function C(f){var O=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var E=f.uri,q=f.cache,ne=f.ssrMode,oe=void 0!==ne&&ne,de=f.ssrForceFetchDelay,ve=void 0===de?0:de,be=f.connectToDevTools,me=void 0===be?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:be,ge=f.queryDeduplication,F=void 0===ge||ge,_=f.defaultOptions,D=f.assumeImmutableResults,X=void 0!==D&&D,le=f.resolvers,Se=f.typeDefs,L=f.fragmentMatcher,ie=f.name,se=f.version,he=f.link;if(he||(he=E?new o.u({uri:E,credentials:f.credentials,headers:f.headers}):l.i.empty()),!q)throw new y.ej(9);this.link=he,this.cache=q,this.disableNetworkFetches=oe||ve>0,this.queryDeduplication=F,this.defaultOptions=_||{},this.typeDefs=Se,ve&&setTimeout(function(){return O.disableNetworkFetches=!1},ve),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),me&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),this.version="3.3.20",this.localState=new P({cache:q,client:this,resolvers:le,fragmentMatcher:L}),this.queryManager=new Y({cache:this.cache,link:this.link,queryDeduplication:F,ssrMode:oe,clientAwareness:{name:ie,version:se},localState:this.localState,assumeImmutableResults:X,onBroadcast:me?function(){O.devToolsHookCb&&O.devToolsHookCb({action:{},state:{queries:O.queryManager.getQueryStore(),mutations:O.queryManager.mutationStore||{}},dataWithOptimisticResults:O.cache.extract(!0)})}:void 0})}return C.prototype.stop=function(){this.queryManager.stop()},C.prototype.watchQuery=function(f){return this.defaultOptions.watchQuery&&(f=k(this.defaultOptions.watchQuery,f)),this.disableNetworkFetches&&("network-only"===f.fetchPolicy||"cache-and-network"===f.fetchPolicy)&&(f=(0,n.pi)((0,n.pi)({},f),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(f)},C.prototype.query=function(f){return this.defaultOptions.query&&(f=k(this.defaultOptions.query,f)),(0,y.kG)("cache-and-network"!==f.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===f.fetchPolicy&&(f=(0,n.pi)((0,n.pi)({},f),{fetchPolicy:"cache-first"})),this.queryManager.query(f)},C.prototype.mutate=function(f){return this.defaultOptions.mutate&&(f=k(this.defaultOptions.mutate,f)),this.queryManager.mutate(f)},C.prototype.subscribe=function(f){return this.queryManager.startGraphQLSubscription(f)},C.prototype.readQuery=function(f,O){return void 0===O&&(O=!1),this.cache.readQuery(f,O)},C.prototype.readFragment=function(f,O){return void 0===O&&(O=!1),this.cache.readFragment(f,O)},C.prototype.writeQuery=function(f){this.cache.writeQuery(f),this.queryManager.broadcastQueries()},C.prototype.writeFragment=function(f){this.cache.writeFragment(f),this.queryManager.broadcastQueries()},C.prototype.__actionHookForDevTools=function(f){this.devToolsHookCb=f},C.prototype.__requestRaw=function(f){return(0,e.h)(this.link,f)},C.prototype.resetStore=function(){var f=this;return Promise.resolve().then(function(){return f.queryManager.clearStore()}).then(function(){return Promise.all(f.resetStoreCallbacks.map(function(O){return O()}))}).then(function(){return f.reFetchObservableQueries()})},C.prototype.clearStore=function(){var f=this;return Promise.resolve().then(function(){return f.queryManager.clearStore()}).then(function(){return Promise.all(f.clearStoreCallbacks.map(function(O){return O()}))})},C.prototype.onResetStore=function(f){var O=this;return this.resetStoreCallbacks.push(f),function(){O.resetStoreCallbacks=O.resetStoreCallbacks.filter(function(E){return E!==f})}},C.prototype.onClearStore=function(f){var O=this;return this.clearStoreCallbacks.push(f),function(){O.clearStoreCallbacks=O.clearStoreCallbacks.filter(function(E){return E!==f})}},C.prototype.reFetchObservableQueries=function(f){return this.queryManager.reFetchObservableQueries(f)},C.prototype.extract=function(f){return this.cache.extract(f)},C.prototype.restore=function(f){return this.cache.restore(f)},C.prototype.addResolvers=function(f){this.localState.addResolvers(f)},C.prototype.setResolvers=function(f){this.localState.setResolvers(f)},C.prototype.getResolvers=function(){return this.localState.getResolvers()},C.prototype.setLocalStateFragmentMatcher=function(f){this.localState.setFragmentMatcher(f)},C.prototype.setLink=function(f){this.link=this.queryManager.link=f},C}()},40939:(J,I,s)=>{"use strict";s.d(I,{u:()=>A});var n=s(48399),y=s(70977),l=s(38546),e=s(75832),t=Object.prototype.toString;function a(G){return o(G)}function o(G,W){switch(t.call(G)){case"[object Array]":if((W=W||new Map).has(G))return W.get(G);var H=G.slice(0);return W.set(G,H),H.forEach(function(m,w){H[w]=o(m,W)}),H;case"[object Object]":if((W=W||new Map).has(G))return W.get(G);var B=Object.create(Object.getPrototypeOf(G));return W.set(G,B),Object.keys(G).forEach(function(m){B[m]=o(G[m],W)}),B;default:return G}}var r=s(62954),i=s(83368),c=s(20283),d=s(42677),g=s.n(d),p=s(1313),T=s(85025),S=function(){function G(W,H,B,m){this.observer=W,this.options=H,this.fetch=B,this.shouldFetch=m}return G.prototype.reobserve=function(W,H){W?this.updateOptions(W):this.updatePolling();var B=this.fetch(this.options,H);return this.concast&&this.concast.removeObserver(this.observer,!0),B.addObserver(this.observer),(this.concast=B).promise},G.prototype.updateOptions=function(W){return Object.assign(this.options,(0,T.o)(W)),this.updatePolling(),this},G.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())},G.prototype.updatePolling=function(){var W=this,B=this.pollingInfo,m=this.options.pollInterval;if(m){if((!B||B.interval!==m)&&((0,y.kG)(m,20),!1!==this.shouldFetch)){(B||(this.pollingInfo={})).interval=m;var u=function(){W.pollingInfo&&(W.shouldFetch&&W.shouldFetch()?W.reobserve({fetchPolicy:"network-only",nextFetchPolicy:W.options.fetchPolicy||"cache-first"},e.I.poll).then(v,v):v())},v=function(){var h=W.pollingInfo;h&&(clearTimeout(h.timeout),h.timeout=setTimeout(u,h.interval))};v()}}else B&&(clearTimeout(B.timeout),delete this.pollingInfo)},G}(),A=function(G){function W(H){var B=H.queryManager,m=H.queryInfo,w=H.options,u=G.call(this,function(h){return u.onSubscribe(h)})||this;u.observers=new Set,u.subscriptions=new Set,u.observer={next:function(h){(u.lastError||u.isDifferentFromLastResult(h))&&(u.updateLastResult(h),(0,r.p)(u.observers,"next",h))},error:function(h){u.updateLastResult((0,n.pi)((0,n.pi)({},u.lastResult),{error:h,errors:h.graphQLErrors,networkStatus:e.I.error,loading:!1})),(0,r.p)(u.observers,"error",u.lastError=h)}},u.isTornDown=!1,u.options=w,u.queryId=B.generateQueryId();var v=(0,i.$H)(w.query);return u.queryName=v&&v.name&&v.name.value,u.queryManager=B,u.queryInfo=m,u}return(0,n.ZT)(W,G),Object.defineProperty(W.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),W.prototype.result=function(){var H=this;return new Promise(function(B,m){var w={next:function(v){B(v),H.observers.delete(w),H.observers.size||H.queryManager.removeQuery(H.queryId),setTimeout(function(){u.unsubscribe()},0)},error:m},u=H.subscribe(w)})},W.prototype.getCurrentResult=function(H){void 0===H&&(H=!0);var B=this.lastResult,m=this.queryInfo.networkStatus||B&&B.networkStatus||e.I.ready,w=(0,n.pi)((0,n.pi)({},B),{loading:(0,e.O)(m),networkStatus:m});if(this.isTornDown)return w;var u=this.options.fetchPolicy,v=void 0===u?"cache-first":u;if("no-cache"===v||"network-only"===v)delete w.partial;else if(!w.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var h=this.queryInfo.getDiff();w.data=h.complete||this.options.returnPartialData?h.result:void 0,h.complete?(w.networkStatus===e.I.loading&&("cache-first"===v||"cache-only"===v)&&(w.networkStatus=e.I.ready,w.loading=!1),delete w.partial):w.partial=!0}return H&&this.updateLastResult(w),w},W.prototype.isDifferentFromLastResult=function(H){return!(0,l.D)(this.lastResultSnapshot,H)},W.prototype.getLastResult=function(){return this.lastResult},W.prototype.getLastError=function(){return this.lastError},W.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},W.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},W.prototype.refetch=function(H){var B={pollInterval:0},m=this.options.fetchPolicy;return"no-cache"!==m&&"cache-and-network"!==m&&(B.fetchPolicy="network-only",B.nextFetchPolicy=m||"cache-first"),H&&!(0,l.D)(this.options.variables,H)&&(B.variables=this.options.variables=(0,n.pi)((0,n.pi)({},this.options.variables),H)),this.newReobserver(!1).reobserve(B,e.I.refetch)},W.prototype.fetchMore=function(H){var B=this,m=(0,n.pi)((0,n.pi)({},H.query?H:(0,n.pi)((0,n.pi)((0,n.pi)({},this.options),H),{variables:(0,n.pi)((0,n.pi)({},this.options.variables),H.variables)})),{fetchPolicy:"no-cache"}),w=this.queryManager.generateQueryId();return m.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=e.I.fetchMore,this.observe()),this.queryManager.fetchQuery(w,m,e.I.fetchMore).then(function(u){var v=u.data,h=H.updateQuery;return h?B.updateQuery(function(R){return h(R,{fetchMoreResult:v,variables:m.variables})}):B.queryManager.cache.writeQuery({query:m.query,variables:m.variables,data:v}),u}).finally(function(){B.queryManager.stopQuery(w),B.reobserve()})},W.prototype.subscribeToMore=function(H){var B=this,m=this.queryManager.startGraphQLSubscription({query:H.document,variables:H.variables,context:H.context}).subscribe({next:function(w){var u=H.updateQuery;u&&B.updateQuery(function(v,h){return u(v,{subscriptionData:w,variables:h.variables})})},error:function(w){H.onError&&H.onError(w)}});return this.subscriptions.add(m),function(){B.subscriptions.delete(m)&&m.unsubscribe()}},W.prototype.setOptions=function(H){return this.reobserve(H)},W.prototype.setVariables=function(H){if((0,l.D)(this.variables,H))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=H,!this.observers.size)return Promise.resolve();var B=this.options.fetchPolicy,m=void 0===B?"cache-first":B,w={fetchPolicy:m,variables:H};return"cache-first"!==m&&"no-cache"!==m&&"network-only"!==m&&(w.fetchPolicy="cache-and-network",w.nextFetchPolicy=m),this.reobserve(w,e.I.setVariables)},W.prototype.updateQuery=function(H){var B,m=this.queryManager,u=H(m.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(B=this.lastResult)||void 0===B?void 0:B.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});u&&(m.cache.writeQuery({query:this.options.query,data:u,variables:this.variables}),m.broadcastQueries())},W.prototype.startPolling=function(H){this.getReobserver().updateOptions({pollInterval:H})},W.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},W.prototype.updateLastResult=function(H){var B=this.lastResult;return this.lastResult=H,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?H:a(H),(0,c.O)(H.errors)||delete this.lastError,B},W.prototype.onSubscribe=function(H){var B=this;if(H===this.observer)return function(){};try{var m=H._subscription._observer;m&&!m.error&&(m.error=x)}catch(u){}var w=!this.observers.size;return this.observers.add(H),this.lastError?H.error&&H.error(this.lastError):this.lastResult&&H.next&&H.next(this.lastResult),w&&this.reobserve().catch(function(u){}),function(){B.observers.delete(H)&&!B.observers.size&&B.tearDownQuery()}},W.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},W.prototype.newReobserver=function(H){var B=this,w=this.queryManager,u=this.queryId;return w.setObservableQuery(this),new S(this.observer,H?this.options:(0,n.pi)({},this.options),function(v,h){return w.setObservableQuery(B),w.fetchQueryObservable(u,v,h)},!w.ssrMode&&function(){return!(0,e.O)(B.queryInfo.networkStatus)})},W.prototype.reobserve=function(H,B){return this.isTornDown=!1,this.getReobserver().reobserve(H,B)},W.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},W.prototype.hasObservers=function(){return this.observers.size>0},W.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)},W}(g());function x(G){}(0,p.D)(A)},52247:(J,I,s)=>{"use strict";s.r(I),s.d(I,{ApolloClient:()=>n.f,mergeOptions:()=>n.J,ObservableQuery:()=>y.u,NetworkStatus:()=>l.I,isApolloError:()=>o.M,ApolloError:()=>o.c,Cache:()=>r.C,ApolloCache:()=>i.R,InMemoryCache:()=>c.h,MissingFieldError:()=>d.y,defaultDataIdFromObject:()=>g.u,makeVar:()=>p.QS,HttpLink:()=>A.uG,checkFetcher:()=>A.U2,createHttpLink:()=>A.LQ,createSignalIfSupported:()=>A.$g,fallbackHttpConfig:()=>A.SC,parseAndCheckHttpResponse:()=>A.dO,rewriteURIForGET:()=>A.Hg,selectHttpOptionsAndBody:()=>A.E4,selectURI:()=>A.rg,serializeFetchParameter:()=>A.gE,fromError:()=>x.Q,toPromise:()=>G.V,fromPromise:()=>W.p,throwServerError:()=>H.P,Observable:()=>m.a,isReference:()=>w.Yk,makeReference:()=>w.kQ,setLogVerbosity:()=>u.U6,gql:()=>v.ZP,resetCaches:()=>v.HW,disableFragmentWarnings:()=>v._t,enableExperimentalFragmentVariables:()=>v.wO,disableExperimentalFragmentVariables:()=>v.J9});var n=s(43303),y=s(40939),l=s(75832),e=s(11844),a={};for(const h in e)["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(h)<0&&(a[h]=()=>e[h]);s.d(I,a);var o=s(4549),r=s(43015),i=s(17629),c=s(41695),d=s(73860),g=s(37691),p=s(71883),T=s(12536);a={};for(const h 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(h)<0&&(a[h]=()=>T[h]);s.d(I,a);var b=s(96436);a={};for(const h in b)["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(h)<0&&(a[h]=()=>b[h]);s.d(I,a);var A=s(87449),x=s(11055),G=s(10893),W=s(87768),H=s(9360),B=s(42677),m=s.n(B),w=s(30534),u=s(70977),v=s(92886);(0,u.U6)("log")},75832:(J,I,s)=>{"use strict";s.d(I,{I:()=>n,O:()=>y});var n=(()=>{return(l=n||(n={}))[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",n;var l})();function y(l){return!!l&&l<7}},11844:()=>{},4549:(J,I,s)=>{"use strict";s.d(I,{M:()=>l,c:()=>t});var n=s(48399),y=s(20283);function l(a){return a.hasOwnProperty("graphQLErrors")}var t=function(a){function o(r){var i=r.graphQLErrors,c=r.networkError,d=r.errorMessage,g=r.extraInfo,p=a.call(this,d)||this;return p.graphQLErrors=i||[],p.networkError=c||null,p.message=d||function(a){var o="";return(0,y.O)(a.graphQLErrors)&&a.graphQLErrors.forEach(function(r){o+=(r?r.message:"Error message not found.")+"\n"}),a.networkError&&(o+=a.networkError.message+"\n"),o=o.replace(/\n$/,"")}(p),p.extraInfo=g,p.__proto__=o.prototype,p}return(0,n.ZT)(o,a),o}(Error)},43821:(J,I,s)=>{"use strict";s.r(I);var n=s(52247),y={};for(const e in n)"default"!==e&&(y[e]=()=>n[e]);s.d(I,y);var l=s(11076);y={};for(const e in l)["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","HttpLink","checkFetcher","createHttpLink","createSignalIfSupported","fallbackHttpConfig","parseAndCheckHttpResponse","rewriteURIForGET","selectHttpOptionsAndBody","selectURI","serializeFetchParameter"].indexOf(e)<0&&(y[e]=()=>l[e]);s.d(I,y)},42753:(J,I,s)=>{"use strict";s.r(I),s.d(I,{setContext:()=>t});var n=s(48399),y=s(80704),l=s(42677),e=s.n(l);function t(a){return new y.i(function(o,r){var i=(0,n._T)(o,[]);return new(e())(function(c){var d;return Promise.resolve(i).then(function(g){return a(g,o.getContext())}).then(o.setContext).then(function(){d=r(o).subscribe({next:c.next.bind(c),error:c.error.bind(c),complete:c.complete.bind(c)})}).catch(c.error.bind(c)),function(){d&&d.unsubscribe()}})})}},80704:(J,I,s)=>{"use strict";s.d(I,{i:()=>p});var T,n=s(48399),y=s(70977),l=s(42677),e=s.n(l),a=s(83368);function i(T,S){return S?S(T):e().of()}function c(T){return"function"==typeof T?new p(T):T}function d(T){return T.request.length<=1}T=Error,(0,n.ZT)(function(b,A){var x=T.call(this,b)||this;return x.link=A,x},T);var p=function(){function T(S){S&&(this.request=S)}return T.empty=function(){return new T(function(){return e().of()})},T.from=function(S){return 0===S.length?T.empty():S.map(c).reduce(function(b,A){return b.concat(A)})},T.split=function(S,b,A){var x=c(b),G=c(A||new T(i));return d(x)&&d(G)?new T(function(W){return S(W)?x.request(W)||e().of():G.request(W)||e().of()}):new T(function(W,H){return S(W)?x.request(W,H)||e().of():G.request(W,H)||e().of()})},T.execute=function(S,b){return S.request(function(T,S){var b=(0,n.pi)({},T);return Object.defineProperty(S,"setContext",{enumerable:!1,value:function(G){b=(0,n.pi)((0,n.pi)({},b),"function"==typeof G?G(b):G)}}),Object.defineProperty(S,"getContext",{enumerable:!1,value:function(){return(0,n.pi)({},b)}}),S}(b.context,function(T){var S={variables:T.variables||{},extensions:T.extensions||{},operationName:T.operationName,query:T.query};return S.operationName||(S.operationName="string"!=typeof S.query?(0,a.rY)(S.query)||void 0:""),S}(function(T){for(var S=["query","operationName","variables","extensions","context"],b=0,A=Object.keys(T);b<A.length;b++)if(S.indexOf(A[b])<0)throw new y.ej(26);return T}(b))))||e().of()},T.concat=function(S,b){var A=c(S);if(d(A))return A;var x=c(b);return d(x)?new T(function(G){return A.request(G,function(W){return x.request(W)||e().of()})||e().of()}):new T(function(G,W){return A.request(G,function(H){return x.request(H,W)||e().of()})||e().of()})},T.prototype.split=function(S,b,A){return this.concat(T.split(S,b,A||new T(i)))},T.prototype.concat=function(S){return T.concat(this,S)},T.prototype.request=function(S,b){throw new y.ej(21)},T.prototype.onError=function(S,b){if(b&&b.error)return b.error(S),!1;throw S},T.prototype.setOnError=function(S){return this.onError=S,this},T}()},9838:(J,I,s)=>{"use strict";s.d(I,{z:()=>y});var y=s(80704).i.concat},48876:(J,I,s)=>{"use strict";s.d(I,{c:()=>y});var y=s(80704).i.empty},19717:(J,I,s)=>{"use strict";s.d(I,{h:()=>y});var y=s(80704).i.execute},41129:(J,I,s)=>{"use strict";s.d(I,{D:()=>y});var y=s(80704).i.from},96436:(J,I,s)=>{"use strict";s.r(I),s.d(I,{empty:()=>n.c,from:()=>y.D,split:()=>l.V,concat:()=>e.z,execute:()=>t.h,ApolloLink:()=>a.i});var n=s(48876),y=s(41129),l=s(5650),e=s(9838),t=s(19717),a=s(80704),o=s(43737),i={};for(const c in o)["default","empty","from","split","concat","execute","ApolloLink"].indexOf(c)<0&&(i[c]=()=>o[c]);s.d(I,i)},5650:(J,I,s)=>{"use strict";s.d(I,{V:()=>y});var y=s(80704).i.split},43737:()=>{},80257:(J,I,s)=>{"use strict";s.d(I,{u:()=>e});var n=s(48399),y=s(80704),l=s(32352),e=function(t){function a(o){void 0===o&&(o={});var r=t.call(this,(0,l.L)(o).request)||this;return r.options=o,r}return(0,n.ZT)(a,t),a}(y.i)},98228:(J,I,s)=>{"use strict";s.d(I,{U:()=>y});var n=s(70977),y=function(l){if(!l&&"undefined"==typeof fetch)throw new n.ej(22)}},32352:(J,I,s)=>{"use strict";s.d(I,{L:()=>T});var n=s(48399),y=s(86729),l=s(80704),e=s(42677),t=s.n(e),a=s(5838),o=s(33585),r=s(66465),i=s(98228),c=s(57957),d=s(13604),g=s(67776),p=s(11055),T=function(S){void 0===S&&(S={});var b=S.uri,A=void 0===b?"/graphql":b,x=S.fetch,G=S.includeExtensions,W=S.useGETForQueries,H=S.includeUnusedVariables,B=void 0!==H&&H,m=(0,n._T)(S,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);(0,i.U)(x),x||(x=fetch);var w={http:{includeExtensions:G},options:m.fetchOptions,credentials:m.credentials,headers:m.headers};return new l.i(function(u){var v=(0,o.r)(u,A),h=u.getContext(),R={};if(h.clientAwareness){var N=h.clientAwareness,P=N.name,U=N.version;P&&(R["apollographql-client-name"]=P),U&&(R["apollographql-client-version"]=U)}var Q,Z=(0,n.pi)((0,n.pi)({},R),h.headers),V=(0,c.E)(u,c.S,w,{http:h.http,options:h.fetchOptions,credentials:h.credentials,headers:Z}),re=V.options,ee=V.body;if(ee.variables&&!B){var Y=new Set(Object.keys(ee.variables));(0,y.Vn)(u.query,{Variable:function(j,q,ne){ne&&"VariableDefinition"!==ne.kind&&Y.delete(j.name.value)}}),Y.size&&(ee.variables=(0,n.pi)({},ee.variables),Y.forEach(function(j){delete ee.variables[j]}))}if(!re.signal){var k=(0,d.$)();(Q=k.controller)&&(re.signal=k.signal)}if(W&&!u.query.definitions.some(function(j){return"OperationDefinition"===j.kind&&"mutation"===j.operation})&&(re.method="GET"),"GET"===re.method){var O=(0,g.H)(v,ee),E=O.newURI,M=O.parseError;if(M)return(0,p.Q)(M);v=E}else try{re.body=(0,a.g)(ee,"Payload")}catch(j){return(0,p.Q)(j)}return new(t())(function(j){return x(v,re).then(function(q){return u.setContext({response:q}),q}).then((0,r.d)(u)).then(function(q){return j.next(q),j.complete(),q}).catch(function(q){"AbortError"!==q.name&&(q.result&&q.result.errors&&q.result.data&&j.next(q.result),j.error(q))}),function(){Q&&Q.abort()}})})}},13604:(J,I,s)=>{"use strict";s.d(I,{$:()=>n});var n=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var y=new AbortController;return{controller:y,signal:y.signal}}},87449:(J,I,s)=>{"use strict";s.d(I,{dO:()=>n.d,gE:()=>y.g,SC:()=>l.S,E4:()=>l.E,U2:()=>e.U,$g:()=>t.$,rg:()=>a.r,LQ:()=>o.L,uG:()=>r.u,Hg:()=>i.H});var n=s(66465),y=s(5838),l=s(57957),e=s(98228),t=s(13604),a=s(33585),o=s(32352),r=s(80257),i=s(67776)},66465:(J,I,s)=>{"use strict";s.d(I,{d:()=>l});var n=s(9360),y=Object.prototype.hasOwnProperty;function l(e){return function(t){return t.text().then(function(a){try{return JSON.parse(a)}catch(r){var o=r;throw o.name="ServerParseError",o.response=t,o.statusCode=t.status,o.bodyText=a,o}}).then(function(a){return t.status>=300&&(0,n.P)(t,a,"Response not successful: Received status code "+t.status),!Array.isArray(a)&&!y.call(a,"data")&&!y.call(a,"errors")&&(0,n.P)(t,a,"Server response was missing for query '"+(Array.isArray(e)?e.map(function(o){return o.operationName}):e.operationName)+"'."),a})}}},67776:(J,I,s)=>{"use strict";s.d(I,{H:()=>y});var n=s(5838);function y(l,e){var t=[],a=function(T,S){t.push(T+"="+encodeURIComponent(S))};if("query"in e&&a("query",e.query),e.operationName&&a("operationName",e.operationName),e.variables){var o=void 0;try{o=(0,n.g)(e.variables,"Variables map")}catch(T){return{parseError:T}}a("variables",o)}if(e.extensions){var r=void 0;try{r=(0,n.g)(e.extensions,"Extensions map")}catch(T){return{parseError:T}}a("extensions",r)}var i="",c=l,d=l.indexOf("#");-1!==d&&(i=l.substr(d),c=l.substr(0,d));var g=-1===c.indexOf("?")?"?":"&";return{newURI:c+g+t.join("&")+i}}},57957:(J,I,s)=>{"use strict";s.d(I,{S:()=>a,E:()=>o});var n=s(48399),y=s(71352),a={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},o=function(r,i){for(var c=[],d=2;d<arguments.length;d++)c[d-2]=arguments[d];var g=(0,n.pi)((0,n.pi)({},i.options),{headers:i.headers,credentials:i.credentials}),p=i.http||{};c.forEach(function(G){g=(0,n.pi)((0,n.pi)((0,n.pi)({},g),G.options),{headers:(0,n.pi)((0,n.pi)({},g.headers),G.headers)}),G.credentials&&(g.credentials=G.credentials),p=(0,n.pi)((0,n.pi)({},p),G.http)});var T=r.operationName,S=r.extensions,b=r.variables,A=r.query,x={operationName:T,variables:b};return p.includeExtensions&&(x.extensions=S),p.includeQuery&&(x.query=(0,y.print)(A)),{options:g,body:x}}},33585:(J,I,s)=>{"use strict";s.d(I,{r:()=>n});var n=function(y,l){return y.getContext().uri||("function"==typeof l?l(y):l||"/graphql")}},5838:(J,I,s)=>{"use strict";s.d(I,{g:()=>y});var n=s(70977),y=function(l,e){var t;try{t=JSON.stringify(l)}catch(o){var a=new n.ej(23);throw a.parseError=o,a}return t}},11055:(J,I,s)=>{"use strict";s.d(I,{Q:()=>l});var n=s(42677),y=s.n(n);function l(e){return new(y())(function(t){t.error(e)})}},87768:(J,I,s)=>{"use strict";s.d(I,{p:()=>l});var n=s(42677),y=s.n(n);function l(e){return new(y())(function(t){e.then(function(a){t.next(a),t.complete()}).catch(t.error.bind(t))})}},9360:(J,I,s)=>{"use strict";s.d(I,{P:()=>n});var n=function(y,l,e){var t=new Error(e);throw t.name="ServerError",t.response=y,t.statusCode=y.status,t.result=l,t}},10893:(J,I,s)=>{"use strict";function y(l){var e=!1;return new Promise(function(t,a){l.subscribe({next:function(o){e||(e=!0,t(o))},error:a})})}s.d(I,{V:()=>y}),s(70977)},6462:(J,I,s)=>{"use strict";s.d(I,{Gl:()=>t,dP:()=>Y,re:()=>C});var n=function(){return Object.create(null)},y=Array.prototype,l=y.forEach,e=y.slice,t=function(){function f(O,E){void 0===O&&(O=!0),void 0===E&&(E=n),this.weakness=O,this.makeData=E}return f.prototype.lookup=function(){for(var O=[],E=0;E<arguments.length;E++)O[E]=arguments[E];return this.lookupArray(O)},f.prototype.lookupArray=function(O){var E=this;return l.call(O,function(M){return E=E.getChildTrie(M)}),E.data||(E.data=this.makeData(e.call(O)))},f.prototype.getChildTrie=function(O){var E=this.weakness&&function(f){switch(typeof f){case"object":if(null===f)break;case"function":return!0}return!1}(O)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),M=E.get(O);return M||E.set(O,M=new f(this.weakness,this.makeData)),M},f}(),o=s(83403);function r(){}var d,i=function(){function f(O,E){void 0===O&&(O=1/0),void 0===E&&(E=r),this.max=O,this.dispose=E,this.map=new Map,this.newest=null,this.oldest=null}return f.prototype.has=function(O){return this.map.has(O)},f.prototype.get=function(O){var E=this.getNode(O);return E&&E.value},f.prototype.getNode=function(O){var E=this.map.get(O);if(E&&E!==this.newest){var M=E.older,j=E.newer;j&&(j.older=M),M&&(M.newer=j),E.older=this.newest,E.older.newer=E,E.newer=null,this.newest=E,E===this.oldest&&(this.oldest=j)}return E},f.prototype.set=function(O,E){var M=this.getNode(O);return M?M.value=E:(M={key:O,value:E,newer:null,older:this.newest},this.newest&&(this.newest.newer=M),this.newest=M,this.oldest=this.oldest||M,this.map.set(O,M),M.value)},f.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},f.prototype.delete=function(O){var E=this.map.get(O);return!!E&&(E===this.newest&&(this.newest=E.older),E===this.oldest&&(this.oldest=E.newer),E.newer&&(E.newer.older=E.older),E.older&&(E.older.newer=E.newer),this.map.delete(O),this.dispose(E.value,O),!0)},f}(),c=new o.g7,g=Object.prototype.hasOwnProperty,p=void 0===(d=Array.from)?function(f){var O=[];return f.forEach(function(E){return O.push(E)}),O}:d;function T(f){var O=f.unsubscribe;"function"==typeof O&&(f.unsubscribe=void 0,O())}var S=[];function A(f,O){if(!f)throw new Error(O||"assertion failure")}function G(f){switch(f.length){case 0:throw new Error("unknown value");case 1:return f[0];case 2:throw f[1]}}var H=function(){function f(O){this.fn=O,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++f.count}return f.prototype.peek=function(){if(1===this.value.length&&!u(this))return B(this),this.value[0]},f.prototype.recompute=function(O){return A(!this.recomputing,"already recomputing"),B(this),u(this)?function(f,O){return ue(f),c.withValue(f,w,[f,O]),function(f,O){if("function"==typeof f.subscribe)try{T(f),f.unsubscribe=f.subscribe.apply(null,O)}catch(E){return f.setDirty(),!1}return!0}(f,O)&&function(f){f.dirty=!1,!u(f)&&R(f)}(f),G(f.value)}(this,O):G(this.value)},f.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,h(this),T(this))},f.prototype.dispose=function(){var O=this;this.setDirty(),ue(this),N(this,function(E,M){E.setDirty(),V(E,O)})},f.prototype.forget=function(){this.dispose()},f.prototype.dependOn=function(O){O.add(this),this.deps||(this.deps=S.pop()||new Set),this.deps.add(O)},f.prototype.forgetDeps=function(){var O=this;this.deps&&(p(this.deps).forEach(function(E){return E.delete(O)}),this.deps.clear(),S.push(this.deps),this.deps=null)},f.count=0,f}();function B(f){var O=c.getValue();if(O)return f.parents.add(O),O.childValues.has(f)||O.childValues.set(f,[]),u(f)?P(O,f):U(O,f),O}function w(f,O){f.recomputing=!0,f.value.length=0;try{f.value[0]=f.fn.apply(null,O)}catch(E){f.value[1]=E}f.recomputing=!1}function u(f){return f.dirty||!(!f.dirtyChildren||!f.dirtyChildren.size)}function h(f){N(f,P)}function R(f){N(f,U)}function N(f,O){var E=f.parents.size;if(E)for(var M=p(f.parents),j=0;j<E;++j)O(M[j],f)}function P(f,O){A(f.childValues.has(O)),A(u(O));var E=!u(f);if(f.dirtyChildren){if(f.dirtyChildren.has(O))return}else f.dirtyChildren=S.pop()||new Set;f.dirtyChildren.add(O),E&&h(f)}function U(f,O){A(f.childValues.has(O)),A(!u(O));var E=f.childValues.get(O);0===E.length?f.childValues.set(O,function(f){return f.slice(0)}(O.value)):function(f,O){var E=f.length;return E>0&&E===O.length&&f[E-1]===O[E-1]}(E,O.value)||f.setDirty(),Z(f,O),!u(f)&&R(f)}function Z(f,O){var E=f.dirtyChildren;E&&(E.delete(O),0===E.size&&(S.length<100&&S.push(E),f.dirtyChildren=null))}function ue(f){f.childValues.size>0&&f.childValues.forEach(function(O,E){V(f,E)}),f.forgetDeps(),A(null===f.dirtyChildren)}function V(f,O){O.parents.delete(f),f.childValues.delete(O),Z(f,O)}var ee={setDirty:!0,dispose:!0,forget:!0};function Y(f){var O=new Map,E=f&&f.subscribe;function M(j){var q=c.getValue();if(q){var ne=O.get(j);ne||O.set(j,ne=new Set),q.dependOn(ne),"function"==typeof E&&(T(ne),ne.unsubscribe=E(j))}}return M.dirty=function(q,ne){var oe=O.get(q);if(oe){var de=ne&&g.call(ee,ne)?ne:"setDirty";p(oe).forEach(function(ve){return ve[de]()}),O.delete(q),T(oe)}},M}function Q(){var f=new t("function"==typeof WeakMap);return function(){return f.lookupArray(arguments)}}Q();var K=new Set;function C(f,O){void 0===O&&(O=Object.create(null));var E=new i(O.max||Math.pow(2,16),function(ve){return ve.dispose()}),M=O.keyArgs,j=O.makeCacheKey||Q(),q=function(){var ve=j.apply(null,M?M.apply(null,arguments):arguments);if(void 0===ve)return f.apply(null,arguments);var be=E.get(ve);be||(E.set(ve,be=new H(f)),be.subscribe=O.subscribe,be.forget=function(){return E.delete(ve)});var me=be.recompute(Array.prototype.slice.call(arguments));return E.set(ve,be),K.add(E),c.hasValue()||(K.forEach(function(ge){return ge.clean()}),K.clear()),me};function ne(ve){var be=E.get(ve);be&&be.setDirty()}function oe(ve){var be=E.get(ve);if(be)return be.peek()}function de(ve){return E.delete(ve)}return Object.defineProperty(q,"size",{get:function(){return E.map.size},configurable:!1,enumerable:!1}),q.dirtyKey=ne,q.dirty=function(){ne(j.apply(null,arguments))},q.peekKey=oe,q.peek=function(){return oe(j.apply(null,arguments))},q.forgetKey=de,q.forget=function(){return de(j.apply(null,arguments))},q.makeCacheKey=j,q.getKey=M?function(){return j.apply(null,M.apply(null,arguments))}:j,Object.freeze(q)}},70977:(J,I,s)=>{"use strict";s.d(I,{ej:()=>P,kG:()=>U,U6:()=>re});var n=function(k,K){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,f){C.__proto__=f}||function(C,f){for(var O in f)Object.prototype.hasOwnProperty.call(f,O)&&(C[O]=f[O])})(k,K)},h="Invariant Violation",R=Object.setPrototypeOf,N=void 0===R?function(k,K){return k.__proto__=K,k}:R,P=function(k){function K(C){void 0===C&&(C=h);var f=k.call(this,"number"==typeof C?h+": "+C+" (see https://github.com/apollographql/invariant-packages)":C)||this;return f.framesToPop=1,f.name=h,N(f,K.prototype),f}return function(k,K){if("function"!=typeof K&&null!==K)throw new TypeError("Class extends value "+String(K)+" is not a constructor or null");function C(){this.constructor=k}n(k,K),k.prototype=null===K?Object.create(K):(C.prototype=K.prototype,new C)}(K,k),K}(Error);function U(k,K){if(!k)throw new P(K)}var k,Z=["log","warn","error","silent"],ue=Z.indexOf("log");function V(k){return function(){if(Z.indexOf(k)>=ue)return console[k].apply(console,arguments)}}function re(k){var K=Z[ue];return ue=Math.max(0,Z.indexOf(k)),K}(k=U||(U={})).log=V("log"),k.warn=V("warn"),k.error=V("error"),"object"==typeof process&&"object"==typeof process.env&&process},61397:(J,I,s)=>{"use strict";s.d(I,{a:()=>e});var n=s(3904),y=s(70977),l=s(93409),e=function(t){var a=(0,l.K)();return n.createElement(a.Consumer,null,function(o){return(0,y.kG)(o&&o.client,27),t.children(o.client)})}},93409:(J,I,s)=>{"use strict";s.d(I,{K:()=>e,Z:()=>e});var n=s(3904),l=new(s(73005).m?WeakMap:Map);function e(){var t=l.get(n.createContext);return t||((t=n.createContext({})).displayName="ApolloContext",l.set(n.createContext,t)),t}},15177:(J,I,s)=>{"use strict";s.d(I,{e:()=>e});var n=s(3904),y=s(70977),l=s(93409),e=function(t){var a=t.client,o=t.children,r=(0,l.K)();return n.createElement(r.Consumer,null,function(i){return void 0===i&&(i={}),a&&i.client!==a&&(i=Object.assign({},i,{client:a})),(0,y.kG)(i.client,28),n.createElement(r.Provider,{value:i},o)})}},11771:(J,I,s)=>{"use strict";s.d(I,{xJ:()=>e,td:()=>T,Db:()=>A,aM:()=>x,lY:()=>H,mU:()=>W});var n=s(3904),y=s(70977),l=s(93409);function e(){var B=n.useContext((0,l.K)()).client;return(0,y.kG)(B,33),B}var t=s(48399),a=s(38546),o=s(4549),r=s(75832),i=s(57209),c=function(){function B(m,w){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=m||{},this.context=w||{}}return B.prototype.getOptions=function(){return this.options},B.prototype.setOptions=function(m,w){void 0===w&&(w=!1),w&&!(0,a.D)(this.options,m)&&(this.previousOptions=this.options),this.options=m},B.prototype.unmount=function(){this.isMounted=!1},B.prototype.refreshClient=function(){var m=this.options&&this.options.client||this.context&&this.context.client;(0,y.kG)(!!m,29);var w=!1;return m!==this.client&&(w=!0,this.client=m,this.cleanup()),{client:this.client,isNew:w}},B.prototype.verifyDocumentType=function(m,w){var u=(0,i.E2)(m);(0,i.mw)(w),(0,i.mw)(u.type),(0,y.kG)(u.type===w,30)},B}(),d=function(B){function m(w){var h=w.onNewData,R=B.call(this,w.options,w.context)||this;return R.runLazy=!1,R.previous=Object.create(null),R.runLazyQuery=function(N){R.cleanup(),R.runLazy=!0,R.lazyOptions=N,R.onNewData()},R.getQueryResult=function(){var N=R.observableQueryFields(),P=R.getOptions();if(P.skip)N=(0,t.pi)((0,t.pi)({},N),{data:void 0,error:void 0,loading:!1,networkStatus:r.I.ready,called:!0});else if(R.currentObservable){var U=R.currentObservable.getCurrentResult(),Z=U.data,ue=U.loading,V=U.partial,re=U.networkStatus,ee=U.errors,Y=U.error;if(ee&&ee.length>0&&(Y=new o.c({graphQLErrors:ee})),N=(0,t.pi)((0,t.pi)({},N),{data:Z,loading:ue,networkStatus:re,error:Y,called:!0}),!ue)if(Y)Object.assign(N,{data:(R.currentObservable.getLastResult()||{}).data});else{var Q=R.currentObservable.options.fetchPolicy;if(P.partialRefetch&&V&&(!Z||0===Object.keys(Z).length)&&"cache-only"!==Q)return Object.assign(N,{loading:!0,networkStatus:r.I.loading}),N.refetch(),N}}N.client=R.client,R.setOptions(P,!0);var K=R.previous.result;return R.previous.loading=K&&K.loading||!1,N.previousData=K&&(K.data||K.previousData),R.previous.result=N,R.currentObservable&&R.currentObservable.resetQueryStoreErrors(),N},R.obsRefetch=function(N){var P;return null===(P=R.currentObservable)||void 0===P?void 0:P.refetch(N)},R.obsFetchMore=function(N){return R.currentObservable.fetchMore(N)},R.obsUpdateQuery=function(N){return R.currentObservable.updateQuery(N)},R.obsStartPolling=function(N){var P;null===(P=R.currentObservable)||void 0===P||P.startPolling(N)},R.obsStopPolling=function(){var N;null===(N=R.currentObservable)||void 0===N||N.stopPolling()},R.obsSubscribeToMore=function(N){return R.currentObservable.subscribeToMore(N)},R.onNewData=h,R}return(0,t.ZT)(m,B),m.prototype.execute=function(){this.refreshClient();var w=this.getOptions(),u=w.skip,v=w.query;return(u||v!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!u),this.previous.query=v),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},m.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:r.I.ready,called:!1,data:void 0}]},m.prototype.fetchData=function(){var w=this,u=this.getOptions();return!u.skip&&!1!==u.ssr&&new Promise(function(v){return w.startQuerySubscription(v)})},m.prototype.afterExecute=function(w){var u=(void 0===w?{}:w).lazy,v=void 0!==u&&u;return this.isMounted=!0,(!v||this.runLazy)&&this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},m.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},m.prototype.getOptions=function(){var w=B.prototype.getOptions.call(this);return this.lazyOptions&&(w.variables=(0,t.pi)((0,t.pi)({},w.variables),this.lazyOptions.variables),w.context=(0,t.pi)((0,t.pi)({},w.context),this.lazyOptions.context)),this.runLazy&&delete w.skip,w},m.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},m.prototype.getExecuteResult=function(){var w=this.getQueryResult();return this.startQuerySubscription(),w},m.prototype.getExecuteSsrResult=function(){var w=this.getOptions(),v=w.skip,h=!1===w.ssr,R=this.refreshClient().client.disableNetworkFetches,N=(0,t.pi)({loading:!0,networkStatus:r.I.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());if(h&&(this.ssrInitiated()||R))return this.previous.result=N,N;if(this.ssrInitiated()){var P=this.getQueryResult()||N;return P.loading&&!v&&this.context.renderPromises.addQueryPromise(this,function(){return null}),P}},m.prototype.prepareObservableQueryOptions=function(){var w=this.getOptions();this.verifyDocumentType(w.query,i.n_.Query);var u=w.displayName||"Query";return this.ssrInitiated()&&("network-only"===w.fetchPolicy||"cache-and-network"===w.fetchPolicy)&&(w.fetchPolicy="cache-first"),(0,t.pi)((0,t.pi)({},w),{displayName:u,context:w.context})},m.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var w=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=(0,t.pi)((0,t.pi)({},w),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery((0,t.pi)({},w)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,w)}},m.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var w=(0,t.pi)((0,t.pi)({},this.prepareObservableQueryOptions()),{children:null});(0,a.D)(w,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=w,this.currentObservable.setOptions(w).catch(function(){}))}}else this.initializeObservableQuery()},m.prototype.startQuerySubscription=function(w){var u=this;void 0===w&&(w=this.onNewData),!this.currentSubscription&&!this.getOptions().skip&&(this.currentSubscription=this.currentObservable.subscribe({next:function(v){var P=u.previous.result;P&&P.loading===v.loading&&P.networkStatus===v.networkStatus&&(0,a.D)(P.data,v.data)||w()},error:function(v){if(u.resubscribeToQuery(),!v.hasOwnProperty("graphQLErrors"))throw v;var h=u.previous.result;(h&&h.loading||!(0,a.D)(v,u.previous.error))&&(u.previous.error=v,w())}}))},m.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var w=this.currentObservable;if(w){var u=w.getLastError(),v=w.getLastResult();w.resetLastResults(),this.startQuerySubscription(),Object.assign(w,{lastError:u,lastResult:v})}},m.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var w=this.previous.result,u=w.data,h=w.error;if(!w.loading){var R=this.getOptions(),P=R.variables,U=R.onCompleted,Z=R.onError,ue=R.skip;if(this.previousOptions&&!this.previous.loading&&(0,a.D)(this.previousOptions.query,R.query)&&(0,a.D)(this.previousOptions.variables,P))return;!U||h||ue?Z&&h&&Z(h):U(u)}}},m.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},m.prototype.removeObservable=function(w){this.currentObservable&&(this.currentObservable.tearDownQuery(),w&&delete this.currentObservable)},m.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}},m}(c);function p(B,m,w){void 0===w&&(w=!1);var u=(0,n.useContext)((0,l.K)()),v=(0,n.useReducer)(function(re){return re+1},0),h=v[0],R=v[1],N=m?(0,t.pi)((0,t.pi)({},m),{query:B}):{query:B},P=(0,n.useRef)(),U=P.current||(P.current=new d({options:N,context:u,onNewData:function(){U.ssrInitiated()?R():Promise.resolve().then(function(){return P.current&&R()})}}));U.setOptions(N),U.context=u;var ue=function(B,m){var w=(0,n.useRef)();return(!w.current||!(0,a.D)(m,w.current.key))&&(w.current={key:m,value:B()}),w.current.value}(function(){return w?U.executeLazy():U.execute()},{options:(0,t.pi)((0,t.pi)({},N),{onError:void 0,onCompleted:void 0}),context:u,tick:h}),V=w?ue[1]:ue;return(0,n.useEffect)(function(){return function(){return U.cleanup()}},[]),(0,n.useEffect)(function(){return U.afterExecute({lazy:w})},[V.loading,V.networkStatus,V.error,V.data]),ue}function T(B,m){return p(B,m,!0)}var S=s(43303),b=function(B){function m(w){var u=w.options,h=w.result,R=w.setResult,N=B.call(this,u,w.context)||this;return N.runMutation=function(P){void 0===P&&(P={}),N.onMutationStart();var U=N.generateNewMutationId();return N.mutate(P).then(function(Z){return N.onMutationCompleted(Z,U),Z}).catch(function(Z){var ue=N.getOptions().onError;if(N.onMutationError(Z,U),ue)return ue(Z),{data:void 0,errors:Z};throw Z})},N.verifyDocumentType(u.mutation,i.n_.Mutation),N.result=h,N.setResult=R,N.mostRecentMutationId=0,N}return(0,t.ZT)(m,B),m.prototype.execute=function(w){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,i.n_.Mutation),[this.runMutation,(0,t.pi)((0,t.pi)({},w),{client:this.refreshClient().client})]},m.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},m.prototype.cleanup=function(){},m.prototype.mutate=function(w){return this.refreshClient().client.mutate((0,S.J)(this.getOptions(),w))},m.prototype.onMutationStart=function(){!this.result.loading&&!this.getOptions().ignoreResults&&this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},m.prototype.onMutationCompleted=function(w,u){var v=this.getOptions(),h=v.onCompleted,R=v.ignoreResults,N=w.data,P=w.errors,U=P&&P.length>0?new o.c({graphQLErrors:P}):void 0;this.isMostRecentMutation(u)&&!R&&this.updateResult({called:!0,loading:!1,data:N,error:U}),h&&h(N)},m.prototype.onMutationError=function(w,u){this.isMostRecentMutation(u)&&this.updateResult({loading:!1,error:w,data:void 0,called:!0})},m.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},m.prototype.isMostRecentMutation=function(w){return this.mostRecentMutationId===w},m.prototype.updateResult=function(w){if(this.isMounted&&(!this.previousResult||!(0,a.D)(this.previousResult,w)))return this.setResult(w),this.previousResult=w,w},m}(c);function A(B,m){var w=(0,n.useContext)((0,l.K)()),u=(0,n.useState)({called:!1,loading:!1}),v=u[0],h=u[1],R=m?(0,t.pi)((0,t.pi)({},m),{mutation:B}):{mutation:B},N=(0,n.useRef)(),U=(N.current||(N.current=new b({options:R,context:w,result:v,setResult:h})),N.current);return U.setOptions(R),U.context=w,(0,n.useEffect)(function(){return U.afterExecute()}),U.execute(v)}function x(B,m){return p(B,m,!1)}var G=function(B){function m(w){var u=w.options,h=w.setResult,R=B.call(this,u,w.context)||this;return R.currentObservable={},R.setResult=h,R.initialize(u),R}return(0,t.ZT)(m,B),m.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 u=w;this.refreshClient().isNew&&(u=this.getLoadingResult());var v=this.getOptions().shouldResubscribe;return"function"==typeof v&&(v=!!v(this.getOptions())),!1!==v&&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(),u=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),(0,t.pi)((0,t.pi)({},u),{variables:this.getOptions().variables})},m.prototype.afterExecute=function(){this.isMounted=!0},m.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},m.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}))},m.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)}))},m.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},m.prototype.updateResult=function(w){this.isMounted&&this.setResult(w)},m.prototype.updateCurrentData=function(w){var u=this.getOptions().onSubscriptionData;this.updateResult({data:w.data,loading:!1,error:void 0}),u&&u({client:this.refreshClient().client,subscriptionData:w})},m.prototype.updateError=function(w){this.updateResult({error:w,loading:!1})},m.prototype.completeSubscription=function(){var w=this;Promise.resolve().then(function(){var u=w.getOptions().onSubscriptionComplete;u&&u(),w.endSubscription()})},m.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},m}(c);function W(B,m){var w=(0,n.useContext)((0,l.K)()),u=m?(0,t.pi)((0,t.pi)({},m),{subscription:B}):{subscription:B},v=(0,n.useState)({loading:!u.skip,error:void 0,data:void 0}),h=v[0],R=v[1],N=(0,n.useRef)(),U=(N.current||(N.current=new G({options:u,context:w,setResult:R})),N.current);return U.setOptions(u,!0),U.context=w,(0,n.useEffect)(function(){return U.afterExecute()}),(0,n.useEffect)(function(){return U.cleanup.bind(U)},[]),U.execute(h)}function H(B){var m=B(),w=(0,n.useState)(m)[1];return(0,n.useEffect)(function(){var u=B();if(m===u)return B.onNextChange(w);w(u)},[m]),m}},11076:(J,I,s)=>{"use strict";s.r(I),s.d(I,{ApolloProvider:()=>n.e,ApolloConsumer:()=>y.a,getApolloContext:()=>l.K,resetApolloContext:()=>l.Z,useApolloClient:()=>e.xJ,useLazyQuery:()=>e.td,useMutation:()=>e.Db,useQuery:()=>e.aM,useReactiveVar:()=>e.lY,useSubscription:()=>e.mU,DocumentType:()=>t.n_,operationName:()=>t.mw,parser:()=>t.E2});var n=s(15177),y=s(61397),l=s(93409),e=s(11771),t=s(57209),a=s(28944),r={};for(const i in a)["default","ApolloProvider","ApolloConsumer","getApolloContext","resetApolloContext","DocumentType","operationName","parser","useApolloClient","useLazyQuery","useMutation","useQuery","useReactiveVar","useSubscription"].indexOf(i)<0&&(r[i]=()=>a[i]);s.d(I,r)},57209:(J,I,s)=>{"use strict";s.d(I,{n_:()=>y,mw:()=>e,E2:()=>t});var n=s(70977),y=(()=>{return(a=y||(y={}))[a.Query=0]="Query",a[a.Mutation=1]="Mutation",a[a.Subscription=2]="Subscription",y;var a})(),l=new Map;function e(a){var o;switch(a){case y.Query:o="Query";break;case y.Mutation:o="Mutation";break;case y.Subscription:o="Subscription"}return o}function t(a){var i,o=l.get(a);if(o)return o;(0,n.kG)(!!a&&!!a.kind,34);var d=a.definitions.filter(function(x){return"FragmentDefinition"===x.kind}),g=a.definitions.filter(function(x){return"OperationDefinition"===x.kind&&"query"===x.operation}),p=a.definitions.filter(function(x){return"OperationDefinition"===x.kind&&"mutation"===x.operation}),T=a.definitions.filter(function(x){return"OperationDefinition"===x.kind&&"subscription"===x.operation});(0,n.kG)(!d.length||g.length||p.length||T.length,35),(0,n.kG)(g.length+p.length+T.length<=1,36),i=g.length?y.Query:y.Mutation,!g.length&&!p.length&&(i=y.Subscription);var S=g.length?g:p.length?p:T;(0,n.kG)(1===S.length,37);var b=S[0],A={name:b.name&&"Name"===b.name.kind?b.name.value:"data",type:i,variables:b.variableDefinitions||[]};return l.set(a,A),A}},28944:()=>{},20283:(J,I,s)=>{"use strict";function n(y){return Array.isArray(y)&&y.length>0}s.d(I,{O:()=>n})},73005:(J,I,s)=>{"use strict";s.d(I,{m:()=>n});var n="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product)},85025:(J,I,s)=>{"use strict";function n(){for(var y=[],l=0;l<arguments.length;l++)y[l]=arguments[l];var e=Object.create(null);return y.forEach(function(t){!t||Object.keys(t).forEach(function(a){var o=t[a];void 0!==o&&(e[a]=o)})}),e}s.d(I,{o:()=>n})},2456:(J,I,s)=>{"use strict";s.d(I,{Ee:()=>l,bw:()=>e,w0:()=>o});var n=s(48399),y=Object.prototype.hasOwnProperty;function l(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e(r)}function e(r){var i=r[0]||{},c=r.length;if(c>1)for(var d=new o,g=1;g<c;++g)i=d.merge(i,r[g]);return i}function t(r){return null!==r&&"object"==typeof r}var a=function(r,i,c){return this.merge(r[c],i[c])},o=function(){function r(i){void 0===i&&(i=a),this.reconciler=i,this.isObject=t,this.pastCopies=new Set}return r.prototype.merge=function(i,c){for(var d=this,g=[],p=2;p<arguments.length;p++)g[p-2]=arguments[p];return t(c)&&t(i)?(Object.keys(c).forEach(function(T){if(y.call(i,T)){var S=i[T];if(c[T]!==S){var b=d.reconciler.apply(d,(0,n.pr)([i,c,T],g));b!==S&&((i=d.shallowCopyForMerge(i))[T]=b)}}else(i=d.shallowCopyForMerge(i))[T]=c[T]}),i):c},r.prototype.shallowCopyForMerge=function(i){return t(i)&&!this.pastCopies.has(i)&&(i=Array.isArray(i)?i.slice(0):(0,n.pi)({__proto__:Object.getPrototypeOf(i)},i),this.pastCopies.add(i)),i},r}()},17334:(J,I,s)=>{"use strict";s.d(I,{LZ:()=>l,FS:()=>t,mj:()=>a});var n=s(86729),y=s(70977);function l(i,c){var d=i.directives;return!d||!d.length||function(i){var c=[];return i&&i.length&&i.forEach(function(d){if(function(i){var c=i.name.value;return"skip"===c||"include"===c}(d)){var g=d.arguments;(0,y.kG)(g&&1===g.length,39);var T=g[0];(0,y.kG)(T.name&&"if"===T.name.value,40);var S=T.value;(0,y.kG)(S&&("Variable"===S.kind||"BooleanValue"===S.kind),41),c.push({directive:d,ifArgument:T})}}),c}(d).every(function(g){var p=g.directive,T=g.ifArgument,S=!1;return"Variable"===T.value.kind?(0,y.kG)(void 0!==(S=c&&c[T.value.name.value]),38):S=T.value.value,"skip"===p.name.value?!S:S})}function t(i,c){return function(i){var c=[];return(0,n.Vn)(i,{Directive:function(d){c.push(d.name.value)}}),c}(c).some(function(d){return i.indexOf(d)>-1})}function a(i){return i&&t(["client"],i)&&t(["export"],i)}},50216:(J,I,s)=>{"use strict";s.d(I,{Yk:()=>l,F:()=>e,hi:()=>t});var n=s(48399),y=s(70977);function l(a,o){var r=o,i=[];return a.definitions.forEach(function(d){if("OperationDefinition"===d.kind)throw new y.ej(42);"FragmentDefinition"===d.kind&&i.push(d)}),void 0===r&&((0,y.kG)(1===i.length,43),r=i[0].name.value),(0,n.pi)((0,n.pi)({},a),{definitions:(0,n.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],a.definitions)})}function e(a){void 0===a&&(a=[]);var o={};return a.forEach(function(r){o[r.name.value]=r}),o}function t(a,o){switch(a.kind){case"InlineFragment":return a;case"FragmentSpread":var r=o&&o[a.name.value];return(0,y.kG)(r,44),r;default:return null}}},83368:(J,I,s)=>{"use strict";s.d(I,{A$:()=>l,$H:()=>e,rY:()=>t,kU:()=>a,iW:()=>o,pD:()=>r,p$:()=>i,O4:()=>c});var n=s(70977),y=s(30534);function l(d){(0,n.kG)(d&&"Document"===d.kind,45);var g=d.definitions.filter(function(p){return"FragmentDefinition"!==p.kind}).map(function(p){if("OperationDefinition"!==p.kind)throw new n.ej(46);return p});return(0,n.kG)(g.length<=1,47),d}function e(d){return l(d),d.definitions.filter(function(g){return"OperationDefinition"===g.kind})[0]}function t(d){return d.definitions.filter(function(g){return"OperationDefinition"===g.kind&&g.name}).map(function(g){return g.name.value})[0]||null}function a(d){return d.definitions.filter(function(g){return"FragmentDefinition"===g.kind})}function o(d){var g=e(d);return(0,n.kG)(g&&"query"===g.operation,48),g}function r(d){(0,n.kG)("Document"===d.kind,49),(0,n.kG)(d.definitions.length<=1,50);var g=d.definitions[0];return(0,n.kG)("FragmentDefinition"===g.kind,51),g}function i(d){l(d);for(var g,p=0,T=d.definitions;p<T.length;p++){var S=T[p];if("OperationDefinition"===S.kind){var b=S.operation;if("query"===b||"mutation"===b||"subscription"===b)return S}"FragmentDefinition"===S.kind&&!g&&(g=S)}if(g)return g;throw new n.ej(52)}function c(d){var g=Object.create(null),p=d&&d.variableDefinitions;return p&&p.length&&p.forEach(function(T){T.defaultValue&&(0,y.vb)(g,T.variable.name,T.defaultValue)}),g}},30534:(J,I,s)=>{"use strict";s.d(I,{kQ:()=>t,Yk:()=>a,vb:()=>b,vf:()=>A,PT:()=>G,NC:()=>W,u2:()=>H,qw:()=>B,My:()=>m,Ao:()=>w});var n=s(75616),y=s.n(n),l=s(70977),e=s(50216);function t(u){return{__ref:String(u)}}function a(u){return Boolean(u&&"object"==typeof u&&"string"==typeof u.__ref)}function b(u,v,h,R){if(function(u){return"IntValue"===u.kind}(h)||function(u){return"FloatValue"===u.kind}(h))u[v.value]=Number(h.value);else if(function(u){return"BooleanValue"===u.kind}(h)||function(u){return"StringValue"===u.kind}(h))u[v.value]=h.value;else if(function(u){return"ObjectValue"===u.kind}(h)){var N={};h.fields.map(function(U){return b(N,U.name,U.value,R)}),u[v.value]=N}else if(function(u){return"Variable"===u.kind}(h))u[v.value]=(R||{})[h.name.value];else if(function(u){return"ListValue"===u.kind}(h))u[v.value]=h.values.map(function(U){var Z={};return b(Z,v,U,R),Z[v.value]});else if(function(u){return"EnumValue"===u.kind}(h))u[v.value]=h.value;else{if(!function(u){return"NullValue"===u.kind}(h))throw new l.ej(53);u[v.value]=null}}function A(u,v){var h=null;u.directives&&(h={},u.directives.forEach(function(N){h[N.name.value]={},N.arguments&&N.arguments.forEach(function(P){return b(h[N.name.value],P.name,P.value,v)})}));var R=null;return u.arguments&&u.arguments.length&&(R={},u.arguments.forEach(function(N){return b(R,N.name,N.value,v)})),G(u.name.value,R,h)}var x=["connection","include","skip","client","rest","export"];function G(u,v,h){if(v&&h&&h.connection&&h.connection.key){if(h.connection.filter&&h.connection.filter.length>0){var R=h.connection.filter?h.connection.filter:[];R.sort();var N={};return R.forEach(function(Z){N[Z]=v[Z]}),h.connection.key+"("+JSON.stringify(N)+")"}return h.connection.key}var P=u;if(v){var U=y()(v);P+="("+U+")"}return h&&Object.keys(h).forEach(function(Z){-1===x.indexOf(Z)&&(h[Z]&&Object.keys(h[Z]).length?P+="@"+Z+"("+JSON.stringify(h[Z])+")":P+="@"+Z)}),P}function W(u,v){if(u.arguments&&u.arguments.length){var h={};return u.arguments.forEach(function(R){return b(h,R.name,R.value,v)}),h}return null}function H(u){return u.alias?u.alias.value:u.name.value}function B(u,v,h){if("string"==typeof u.__typename)return u.__typename;for(var R=0,N=v.selections;R<N.length;R++){var P=N[R];if(m(P)){if("__typename"===P.name.value)return u[H(P)]}else{var U=B(u,(0,e.hi)(P,h).selectionSet,h);if("string"==typeof U)return U}}}function m(u){return"Field"===u.kind}function w(u){return"InlineFragment"===u.kind}},52107:(J,I,s)=>{"use strict";s.d(I,{Gw:()=>p,aL:()=>B,ob:()=>m,Fo:()=>S});var n=s(48399),y=s(86729),e=(s(70977),s(83368));function t(w,u,v){var h=0;return w.forEach(function(R,N){u.call(this,R,N,w)&&(w[h++]=R)},v),w.length=h,w}var a=s(30534),o=s(50216),r={kind:"Field",name:{kind:"Name",value:"__typename"}};function i(w,u){return w.selectionSet.selections.every(function(v){return"FragmentSpread"===v.kind&&i(u[v.name.value],u)})}function c(w){return i((0,e.$H)(w)||(0,e.pD)(w),(0,o.F)((0,e.kU)(w)))?null:w}function d(w){return function(v){return w.some(function(h){return h.name&&h.name===v.name.value||h.test&&h.test(v)})}}function g(w,u){var v=Object.create(null),h=[],R=Object.create(null),N=[],P=c((0,y.Vn)(u,{Variable:{enter:function(U,Z,ue){"VariableDefinition"!==ue.kind&&(v[U.name.value]=!0)}},Field:{enter:function(U){if(w&&U.directives&&w.some(function(ue){return ue.remove})&&U.directives&&U.directives.some(d(w)))return U.arguments&&U.arguments.forEach(function(ue){"Variable"===ue.value.kind&&h.push({name:ue.value.name.value})}),U.selectionSet&&H(U.selectionSet).forEach(function(ue){N.push({name:ue.name.value})}),null}},FragmentSpread:{enter:function(U){R[U.name.value]=!0}},Directive:{enter:function(U){if(d(w)(U))return null}}}));return P&&t(h,function(U){return!!U.name&&!v[U.name]}).length&&(P=function(w,u){var v=function(w){return function(v){return w.some(function(h){return v.value&&"Variable"===v.value.kind&&v.value.name&&(h.name===v.value.name.value||h.test&&h.test(v))})}}(w);return c((0,y.Vn)(u,{OperationDefinition:{enter:function(h){return(0,n.pi)((0,n.pi)({},h),{variableDefinitions:h.variableDefinitions?h.variableDefinitions.filter(function(R){return!w.some(function(N){return N.name===R.variable.name.value})}):[]})}},Field:{enter:function(h){if(w.some(function(P){return P.remove})){var N=0;if(h.arguments&&h.arguments.forEach(function(P){v(P)&&(N+=1)}),1===N)return null}}},Argument:{enter:function(h){if(v(h))return null}}}))}(h,P)),P&&t(N,function(U){return!!U.name&&!R[U.name]}).length&&(P=function(w,u){function v(h){if(w.some(function(R){return R.name===h.name.value}))return null}return c((0,y.Vn)(u,{FragmentSpread:{enter:v},FragmentDefinition:{enter:v}}))}(N,P)),P}function p(w){return(0,y.Vn)((0,e.A$)(w),{SelectionSet:{enter:function(u,v,h){if(!h||"OperationDefinition"!==h.kind){var R=u.selections;if(R&&!R.some(function(U){return(0,a.My)(U)&&("__typename"===U.name.value||0===U.name.value.lastIndexOf("__",0))})){var P=h;if(!((0,a.My)(P)&&P.directives&&P.directives.some(function(U){return"export"===U.name.value})))return(0,n.pi)((0,n.pi)({},u),{selections:(0,n.pr)(R,[r])})}}}}})}p.added=function(w){return w===r};var T={test:function(w){var u="connection"===w.name.value;return u&&(!w.arguments||w.arguments.some(function(v){return"key"===v.name.value})),u}};function S(w){return g([T],(0,e.A$)(w))}function H(w){var u=[];return w.selections.forEach(function(v){((0,a.My)(v)||(0,a.Ao)(v))&&v.selectionSet?H(v.selectionSet).forEach(function(h){return u.push(h)}):"FragmentSpread"===v.kind&&u.push(v)}),u}function B(w){return"query"===(0,e.p$)(w).operation?w:(0,y.Vn)(w,{OperationDefinition:{enter:function(R){return(0,n.pi)((0,n.pi)({},R),{operation:"query"})}}})}function m(w){(0,e.A$)(w);var u=g([{test:function(v){return"client"===v.name.value},remove:!0}],w);return u&&(u=(0,y.Vn)(u,{FragmentDefinition:{enter:function(v){if(v.selectionSet&&v.selectionSet.selections.every(function(R){return(0,a.My)(R)&&"__typename"===R.name.value}))return null}}})),u}},62954:(J,I,s)=>{"use strict";function n(y,l,e){var t=[];y.forEach(function(a){return a[l]&&t.push(a)}),t.forEach(function(a){return a[l](e)})}s.d(I,{p:()=>n})},1313:(J,I,s)=>{"use strict";s.d(I,{D:()=>l});var n=s(42677),y=s.n(n);function l(e){function t(a){Object.defineProperty(e,a,{value:y()})}return"function"==typeof Symbol&&Symbol.species&&t(Symbol.species),t("@@species"),e}},83403:(J,I,s)=>{"use strict";s.d(I,{g7:()=>o});var n=null,y={},l=1,t="@wry/context:Slot",a=Array,o=a[t]||function(){var S=function(){function S(){this.id=["slot",l++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return S.prototype.hasValue=function(){for(var b=n;b;b=b.parent)if(this.id in b.slots){var A=b.slots[this.id];if(A===y)break;return b!==n&&(n.slots[this.id]=A),!0}return n&&(n.slots[this.id]=y),!1},S.prototype.getValue=function(){if(this.hasValue())return n.slots[this.id]},S.prototype.withValue=function(b,A,x,G){var W,H=((W={__proto__:null})[this.id]=b,W),B=n;n={parent:B,slots:H};try{return A.apply(G,x)}finally{n=B}},S.bind=function(b){var A=n;return function(){var x=n;try{return n=A,b.apply(this,arguments)}finally{n=x}}},S.noContext=function(b,A,x){if(!n)return b.apply(x,A);var G=n;try{return n=null,b.apply(x,A)}finally{n=G}},S}();try{Object.defineProperty(a,t,{value:a[t]=S,enumerable:!1,writable:!1,configurable:!1})}finally{return S}}()},38546:(J,I,s)=>{"use strict";s.d(I,{D:()=>a});var n=Object.prototype,y=n.toString,l=n.hasOwnProperty,e=Function.prototype.toString,t=new Map;function a(T,S){try{return o(T,S)}finally{t.clear()}}function o(T,S){if(T===S)return!0;var b=y.call(T);if(b!==y.call(S))return!1;switch(b){case"[object Array]":if(T.length!==S.length)return!1;case"[object Object]":if(g(T,S))return!0;var x=r(T),G=r(S),W=x.length;if(W!==G.length)return!1;for(var H=0;H<W;++H)if(!l.call(S,x[H]))return!1;for(H=0;H<W;++H){var B=x[H];if(!o(T[B],S[B]))return!1}return!0;case"[object Error]":return T.name===S.name&&T.message===S.message;case"[object Number]":if(T!=T)return S!=S;case"[object Boolean]":case"[object Date]":return+T==+S;case"[object RegExp]":case"[object String]":return T==""+S;case"[object Map]":case"[object Set]":if(T.size!==S.size)return!1;if(g(T,S))return!0;for(var m=T.entries(),w="[object Map]"===b;;){var u=m.next();if(u.done)break;var v=u.value,h=v[0],R=v[1];if(!S.has(h)||w&&!o(R,S.get(h)))return!1}return!0;case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":T=new Uint8Array(T),S=new Uint8Array(S);case"[object DataView]":var N=T.byteLength;if(N===S.byteLength)for(;N--&&T[N]===S[N];);return-1===N;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var P=e.call(T);return P===e.call(S)&&!function(T,S){var b=T.length-S.length;return b>=0&&T.indexOf(S,b)===b}(P,c)}return!1}function r(T){return Object.keys(T).filter(i,T)}function i(T){return void 0!==this[T]}var c="{ [native code] }";function g(T,S){var b=t.get(T);if(b){if(b.has(S))return!0}else t.set(T,b=new Set);return b.add(S),!1}},98007:(J,I,s)=>{"use strict";s.r(I),s.d(I,{addTypenameToDocument:()=>ht,argumentsObjectFromField:()=>Y,assign:()=>ge,buildQueryFromSelectionSet:()=>mt,canUseWeakMap:()=>yt,checkDocument:()=>_,cloneDeep:()=>Tt,createFragmentMap:()=>he,getDefaultValues:()=>ye,getDirectiveInfoFromField:()=>j,getDirectiveNames:()=>ne,getDirectivesFromDocument:()=>It,getEnv:()=>Pt,getFragmentDefinition:()=>ie,getFragmentDefinitions:()=>Se,getFragmentQueryDocument:()=>me,getInclusionDirectives:()=>be,getMainDefinition:()=>se,getMutationDefinition:()=>F,getOperationDefinition:()=>D,getOperationDefinitionOrDie:()=>X,getOperationName:()=>le,getQueryDefinition:()=>L,getStoreKeyName:()=>ee,graphQLResultHasError:()=>er,hasClientExports:()=>de,hasDirectives:()=>oe,isDevelopment:()=>Xt,isEnv:()=>Mt,isEqual:()=>x,isField:()=>k,isIdValue:()=>C,isInlineFragment:()=>K,isJsonValue:()=>O,isNumberValue:()=>m,isProduction:()=>ze,isScalarValue:()=>B,isTest:()=>jt,maybeDeepFreeze:()=>tr,mergeDeep:()=>fr,mergeDeepArray:()=>Vt,removeArgumentsFromDocument:()=>_t,removeClientSetsFromDocument:()=>wt,removeConnectionDirectiveFromDocument:()=>Ct,removeDirectivesFromDocument:()=>Be,removeFragmentSpreadFromDocument:()=>at,resultKeyNameFromField:()=>Q,shouldInclude:()=>q,storeKeyNameFromField:()=>V,stripSymbols:()=>hr,toIdValue:()=>f,tryFunctionOrLogError:()=>$t,valueFromNode:()=>M,valueToObjectRepresentation:()=>ue,variablesInOperation:()=>Oe,warnOnceInDevelopment:()=>lr});var $,n=s(86729),y=s(48399),l="Invariant Violation",e=Object.setPrototypeOf,t=void 0===e?function($,fe){return $.__proto__=fe,$}:e,a=function($){function fe(pe){void 0===pe&&(pe=l);var Ae=$.call(this,"number"==typeof pe?l+": "+pe+" (see https://github.com/apollographql/invariant-packages)":pe)||this;return Ae.framesToPop=1,Ae.name=l,t(Ae,fe.prototype),Ae}return(0,y.ZT)(fe,$),fe}(Error);function o($,fe){if(!$)throw new a(fe)}function r($){return function(){return console[$].apply(console,arguments)}}($=o||(o={})).warn=r("warn"),$.error=r("error");var i={env:{}};if("object"==typeof process)i=process;else try{Function("stub","process = stub")(i)}catch($){}var g=s(75616),p=s.n(g),T=Object.prototype,S=T.toString,b=T.hasOwnProperty,A=new Map;function x($,fe){try{return G($,fe)}finally{A.clear()}}function G($,fe){if($===fe)return!0;var pe=S.call($);if(pe!==S.call(fe))return!1;switch(pe){case"[object Array]":if($.length!==fe.length)return!1;case"[object Object]":if(W($,fe))return!0;var Re=Object.keys($),ke=Object.keys(fe),Ge=Re.length;if(Ge!==ke.length)return!1;for(var je=0;je<Ge;++je)if(!b.call(fe,Re[je]))return!1;for(je=0;je<Ge;++je){var ot=Re[je];if(!G($[ot],fe[ot]))return!1}return!0;case"[object Error]":return $.name===fe.name&&$.message===fe.message;case"[object Number]":if($!=$)return fe!=fe;case"[object Boolean]":case"[object Date]":return+$==+fe;case"[object RegExp]":case"[object String]":return $==""+fe;case"[object Map]":case"[object Set]":if($.size!==fe.size)return!1;if(W($,fe))return!0;for(var pt=$.entries(),nr="[object Map]"===pe;;){var ir=pt.next();if(ir.done)break;var Kt=ir.value,ar=Kt[0],pr=Kt[1];if(!fe.has(ar)||nr&&!G(pr,fe.get(ar)))return!1}return!0}return!1}function W($,fe){var pe=A.get($);if(pe){if(pe.has(fe))return!0}else A.set($,pe=new Set);return pe.add(fe),!1}function B($){return["StringValue","BooleanValue","EnumValue"].indexOf($.kind)>-1}function m($){return["IntValue","FloatValue"].indexOf($.kind)>-1}function ue($,fe,pe,Ae){if(function($){return"IntValue"===$.kind}(pe)||function($){return"FloatValue"===$.kind}(pe))$[fe.value]=Number(pe.value);else if(function($){return"BooleanValue"===$.kind}(pe)||function($){return"StringValue"===$.kind}(pe))$[fe.value]=pe.value;else if(function($){return"ObjectValue"===$.kind}(pe)){var Re={};pe.fields.map(function(Ge){return ue(Re,Ge.name,Ge.value,Ae)}),$[fe.value]=Re}else if(function($){return"Variable"===$.kind}(pe))$[fe.value]=(Ae||{})[pe.name.value];else if(function($){return"ListValue"===$.kind}(pe))$[fe.value]=pe.values.map(function(Ge){var je={};return ue(je,fe,Ge,Ae),je[fe.value]});else if(function($){return"EnumValue"===$.kind}(pe))$[fe.value]=pe.value;else{if(!function($){return"NullValue"===$.kind}(pe))throw new a(17);$[fe.value]=null}}function V($,fe){var pe=null;$.directives&&(pe={},$.directives.forEach(function(Re){pe[Re.name.value]={},Re.arguments&&Re.arguments.forEach(function(ke){return ue(pe[Re.name.value],ke.name,ke.value,fe)})}));var Ae=null;return $.arguments&&$.arguments.length&&(Ae={},$.arguments.forEach(function(Re){return ue(Ae,Re.name,Re.value,fe)})),ee($.name.value,Ae,pe)}var re=["connection","include","skip","client","rest","export"];function ee($,fe,pe){if(pe&&pe.connection&&pe.connection.key){if(pe.connection.filter&&pe.connection.filter.length>0){var Ae=pe.connection.filter?pe.connection.filter:[];Ae.sort();var Re=fe,ke={};return Ae.forEach(function(ot){ke[ot]=Re[ot]}),pe.connection.key+"("+JSON.stringify(ke)+")"}return pe.connection.key}var Ge=$;if(fe){var je=p()(fe);Ge+="("+je+")"}return pe&&Object.keys(pe).forEach(function(ot){-1===re.indexOf(ot)&&(pe[ot]&&Object.keys(pe[ot]).length?Ge+="@"+ot+"("+JSON.stringify(pe[ot])+")":Ge+="@"+ot)}),Ge}function Y($,fe){if($.arguments&&$.arguments.length){var pe={};return $.arguments.forEach(function(Ae){return ue(pe,Ae.name,Ae.value,fe)}),pe}return null}function Q($){return $.alias?$.alias.value:$.name.value}function k($){return"Field"===$.kind}function K($){return"InlineFragment"===$.kind}function C($){return $&&"id"===$.type&&"boolean"==typeof $.generated}function f($,fe){return void 0===fe&&(fe=!1),(0,y.pi)({type:"id",generated:fe},"string"==typeof $?{id:$,typename:void 0}:$)}function O($){return null!=$&&"object"==typeof $&&"json"===$.type}function E($){throw new a(18)}function M($,fe){switch(void 0===fe&&(fe=E),$.kind){case"Variable":return fe($);case"NullValue":return null;case"IntValue":return parseInt($.value,10);case"FloatValue":return parseFloat($.value);case"ListValue":return $.values.map(function(Ge){return M(Ge,fe)});case"ObjectValue":for(var pe={},Ae=0,Re=$.fields;Ae<Re.length;Ae++){var ke=Re[Ae];pe[ke.name.value]=M(ke.value,fe)}return pe;default:return $.value}}function j($,fe){if($.directives&&$.directives.length){var pe={};return $.directives.forEach(function(Ae){pe[Ae.name.value]=Y(Ae,fe)}),pe}return null}function q($,fe){return void 0===fe&&(fe={}),be($.directives).every(function(pe){var Ae=pe.directive,Re=pe.ifArgument,ke=!1;return"Variable"===Re.value.kind?o(void 0!==(ke=fe[Re.value.name.value]),13):ke=Re.value.value,"skip"===Ae.name.value?!ke:ke})}function ne($){var fe=[];return(0,n.Vn)($,{Directive:function(pe){fe.push(pe.name.value)}}),fe}function oe($,fe){return ne(fe).some(function(pe){return $.indexOf(pe)>-1})}function de($){return $&&oe(["client"],$)&&oe(["export"],$)}function ve($){var fe=$.name.value;return"skip"===fe||"include"===fe}function be($){return $?$.filter(ve).map(function(fe){var pe=fe.arguments;o(pe&&1===pe.length,14);var Re=pe[0];o(Re.name&&"if"===Re.name.value,15);var ke=Re.value;return o(ke&&("Variable"===ke.kind||"BooleanValue"===ke.kind),16),{directive:fe,ifArgument:Re}}):[]}function me($,fe){var pe=fe,Ae=[];return $.definitions.forEach(function(ke){if("OperationDefinition"===ke.kind)throw new a(11);"FragmentDefinition"===ke.kind&&Ae.push(ke)}),void 0===pe&&(o(1===Ae.length,12),pe=Ae[0].name.value),(0,y.pi)((0,y.pi)({},$),{definitions:(0,y.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:pe}}]}}],$.definitions)})}function ge($){for(var fe=[],pe=1;pe<arguments.length;pe++)fe[pe-1]=arguments[pe];return fe.forEach(function(Ae){null==Ae||Object.keys(Ae).forEach(function(Re){$[Re]=Ae[Re]})}),$}function F($){_($);var fe=$.definitions.filter(function(pe){return"OperationDefinition"===pe.kind&&"mutation"===pe.operation})[0];return o(fe,1),fe}function _($){return o($&&"Document"===$.kind,2),o($.definitions.filter(function(pe){return"FragmentDefinition"!==pe.kind}).map(function(pe){if("OperationDefinition"!==pe.kind)throw new a(3);return pe}).length<=1,4),$}function D($){return _($),$.definitions.filter(function(fe){return"OperationDefinition"===fe.kind})[0]}function X($){var fe=D($);return o(fe,5),fe}function le($){return $.definitions.filter(function(fe){return"OperationDefinition"===fe.kind&&fe.name}).map(function(fe){return fe.name.value})[0]||null}function Se($){return $.definitions.filter(function(fe){return"FragmentDefinition"===fe.kind})}function L($){var fe=D($);return o(fe&&"query"===fe.operation,6),fe}function ie($){o("Document"===$.kind,7),o($.definitions.length<=1,8);var fe=$.definitions[0];return o("FragmentDefinition"===fe.kind,9),fe}function se($){_($);for(var fe,pe=0,Ae=$.definitions;pe<Ae.length;pe++){var Re=Ae[pe];if("OperationDefinition"===Re.kind){var ke=Re.operation;if("query"===ke||"mutation"===ke||"subscription"===ke)return Re}"FragmentDefinition"===Re.kind&&!fe&&(fe=Re)}if(fe)return fe;throw new a(10)}function he($){void 0===$&&($=[]);var fe={};return $.forEach(function(pe){fe[pe.name.value]=pe}),fe}function ye($){if($&&$.variableDefinitions&&$.variableDefinitions.length){var fe=$.variableDefinitions.filter(function(pe){return pe.defaultValue}).map(function(pe){var ke={};return ue(ke,pe.variable.name,pe.defaultValue),ke});return ge.apply(void 0,(0,y.pr)([{}],fe))}return{}}function Oe($){var fe=new Set;if($.variableDefinitions)for(var pe=0,Ae=$.variableDefinitions;pe<Ae.length;pe++)fe.add(Ae[pe].variable.name.value);return fe}function Le($,fe,pe){var Ae=0;return $.forEach(function(Re,ke){fe.call(this,Re,ke,$)&&($[Ae++]=Re)},pe),$.length=Ae,$}var We={kind:"Field",name:{kind:"Name",value:"__typename"}};function qe($,fe){return $.selectionSet.selections.every(function(pe){return"FragmentSpread"===pe.kind&&qe(fe[pe.name.value],fe)})}function st($){return qe(D($)||ie($),he(Se($)))?null:$}function et($){return function(pe){return $.some(function(Ae){return Ae.name&&Ae.name===pe.name.value||Ae.test&&Ae.test(pe)})}}function Be($,fe){var pe=Object.create(null),Ae=[],Re=Object.create(null),ke=[],Ge=st((0,n.Vn)(fe,{Variable:{enter:function(je,ot,pt){"VariableDefinition"!==pt.kind&&(pe[je.name.value]=!0)}},Field:{enter:function(je){if($&&je.directives&&$.some(function(pt){return pt.remove})&&je.directives&&je.directives.some(et($)))return je.arguments&&je.arguments.forEach(function(pt){"Variable"===pt.value.kind&&Ae.push({name:pt.value.name.value})}),je.selectionSet&&$e(je.selectionSet).forEach(function(pt){ke.push({name:pt.name.value})}),null}},FragmentSpread:{enter:function(je){Re[je.name.value]=!0}},Directive:{enter:function(je){if(et($)(je))return null}}}));return Ge&&Le(Ae,function(je){return!pe[je.name]}).length&&(Ge=_t(Ae,Ge)),Ge&&Le(ke,function(je){return!Re[je.name]}).length&&(Ge=at(ke,Ge)),Ge}function ht($){return(0,n.Vn)(_($),{SelectionSet:{enter:function(fe,pe,Ae){if(!Ae||"OperationDefinition"!==Ae.kind){var Re=fe.selections;if(Re&&!Re.some(function(je){return k(je)&&("__typename"===je.name.value||0===je.name.value.lastIndexOf("__",0))})){var Ge=Ae;if(!(k(Ge)&&Ge.directives&&Ge.directives.some(function(je){return"export"===je.name.value})))return(0,y.pi)((0,y.pi)({},fe),{selections:(0,y.pr)(Re,[We])})}}}}})}var Bt={test:function($){var fe="connection"===$.name.value;return fe&&(!$.arguments||$.arguments.some(function(pe){return"key"===pe.name.value})),fe}};function Ct($){return Be([Bt],_($))}function At($,fe,pe){return void 0===pe&&(pe=!0),fe&&fe.selections&&fe.selections.some(function(Ae){return Ot($,Ae,pe)})}function Ot($,fe,pe){return void 0===pe&&(pe=!0),!k(fe)||!!fe.directives&&(fe.directives.some(et($))||pe&&At($,fe.selectionSet,pe))}function It($,fe){var pe;return _(fe),st((0,n.Vn)(fe,{SelectionSet:{enter:function(Ae,Re,ke,Ge){var je=Ge.join("-");if(!pe||je===pe||!je.startsWith(pe)){if(Ae.selections){var ot=Ae.selections.filter(function(pt){return Ot($,pt)});return At($,Ae,!1)&&(pe=je),(0,y.pi)((0,y.pi)({},Ae),{selections:ot})}return null}}}}))}function _t($,fe){var pe=function($){return function(pe){return $.some(function(Ae){return pe.value&&"Variable"===pe.value.kind&&pe.value.name&&(Ae.name===pe.value.name.value||Ae.test&&Ae.test(pe))})}}($);return st((0,n.Vn)(fe,{OperationDefinition:{enter:function(Ae){return(0,y.pi)((0,y.pi)({},Ae),{variableDefinitions:Ae.variableDefinitions.filter(function(Re){return!$.some(function(ke){return ke.name===Re.variable.name.value})})})}},Field:{enter:function(Ae){if($.some(function(Ge){return Ge.remove})){var ke=0;if(Ae.arguments.forEach(function(Ge){pe(Ge)&&(ke+=1)}),1===ke)return null}}},Argument:{enter:function(Ae){if(pe(Ae))return null}}}))}function at($,fe){function pe(Ae){if($.some(function(Re){return Re.name===Ae.name.value}))return null}return st((0,n.Vn)(fe,{FragmentSpread:{enter:pe},FragmentDefinition:{enter:pe}}))}function $e($){var fe=[];return $.selections.forEach(function(pe){(k(pe)||K(pe))&&pe.selectionSet?$e(pe.selectionSet).forEach(function(Ae){return fe.push(Ae)}):"FragmentSpread"===pe.kind&&fe.push(pe)}),fe}function mt($){return"query"===se($).operation?$:(0,n.Vn)($,{OperationDefinition:{enter:function(Re){return(0,y.pi)((0,y.pi)({},Re),{operation:"query"})}}})}function wt($){_($);var fe=Be([{test:function(pe){return"client"===pe.name.value},remove:!0}],$);return fe&&(fe=(0,n.Vn)(fe,{FragmentDefinition:{enter:function(pe){if(pe.selectionSet&&pe.selectionSet.selections.every(function(Re){return k(Re)&&"__typename"===Re.name.value}))return null}}})),fe}var yt="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),Dt=Object.prototype.toString;function Tt($){return dt($,new Map)}function dt($,fe){switch(Dt.call($)){case"[object Array]":if(fe.has($))return fe.get($);var pe=$.slice(0);return fe.set($,pe),pe.forEach(function(Re,ke){pe[ke]=dt(Re,fe)}),pe;case"[object Object]":if(fe.has($))return fe.get($);var Ae=Object.create(Object.getPrototypeOf($));return fe.set($,Ae),Object.keys($).forEach(function(Re){Ae[Re]=dt($[Re],fe)}),Ae;default:return $}}function Pt(){return"undefined"!=typeof process?"production":"development"}function Mt($){return Pt()===$}function ze(){return!0===Mt("production")}function Xt(){return!0===Mt("development")}function jt(){return!0===Mt("test")}function $t($){try{return $()}catch(fe){console.error&&console.error(fe)}}function er($){return $.errors&&$.errors.length}function Nt($){return Object.freeze($),Object.getOwnPropertyNames($).forEach(function(fe){null!==$[fe]&&("object"==typeof $[fe]||"function"==typeof $[fe])&&!Object.isFrozen($[fe])&&Nt($[fe])}),$}function tr($){return!Xt()&&!jt()||"function"==typeof Symbol&&"string"==typeof Symbol("")?$:Nt($)}var gt=Object.prototype.hasOwnProperty;function fr(){for(var $=[],fe=0;fe<arguments.length;fe++)$[fe]=arguments[fe];return Vt($)}function Vt($){var fe=$[0]||{},pe=$.length;if(pe>1){var Ae=[];fe=Ut(fe,Ae);for(var Re=1;Re<pe;++Re)fe=Wt(fe,$[Re],Ae)}return fe}function rr($){return null!==$&&"object"==typeof $}function Wt($,fe,pe){return rr(fe)&&rr($)?(Object.isExtensible&&!Object.isExtensible($)&&($=Ut($,pe)),Object.keys(fe).forEach(function(Ae){var Re=fe[Ae];if(gt.call($,Ae)){var ke=$[Ae];Re!==ke&&($[Ae]=Wt(Ut(ke,pe),Re,pe))}else $[Ae]=Re}),$):fe}function Ut($,fe){return null!==$&&"object"==typeof $&&fe.indexOf($)<0&&($=Array.isArray($)?$.slice(0):(0,y.pi)({__proto__:Object.getPrototypeOf($)},$),fe.push($)),$}var tt=Object.create({});function lr($,fe){void 0===fe&&(fe="warn"),!ze()&&!tt[$]&&(jt()||(tt[$]=!0),"error"===fe?console.error($):console.warn($))}function hr($){return JSON.parse(JSON.stringify($))}},83280:function(J,I,s){"use strict";var x,n=this&&this.__extends||(x=function(G,W){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,B){H.__proto__=B}||function(H,B){for(var m in B)B.hasOwnProperty(m)&&(H[m]=B[m])})(G,W)},function(G,W){function H(){this.constructor=G}x(G,W),G.prototype=null===W?Object.create(W):(H.prototype=W.prototype,new H)}),y=this&&this.__assign||function(){return(y=Object.assign||function(x){for(var G,W=1,H=arguments.length;W<H;W++)for(var B in G=arguments[W])Object.prototype.hasOwnProperty.call(G,B)&&(x[B]=G[B]);return x}).apply(this,arguments)},l=this&&this.__awaiter||function(x,G,W,H){return new(W||(W=Promise))(function(m,w){function u(R){try{h(H.next(R))}catch(N){w(N)}}function v(R){try{h(H.throw(R))}catch(N){w(N)}}function h(R){R.done?m(R.value):function(m){return m instanceof W?m:new W(function(w){w(m)})}(R.value).then(u,v)}h((H=H.apply(x,G||[])).next())})},e=this&&this.__generator||function(x,G){var H,B,m,w,W={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return w={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(w[Symbol.iterator]=function(){return this}),w;function u(h){return function(R){return function(h){if(H)throw new TypeError("Generator is already executing.");for(;W;)try{if(H=1,B&&(m=2&h[0]?B.return:h[0]?B.throw||((m=B.return)&&m.call(B),0):B.next)&&!(m=m.call(B,h[1])).done)return m;switch(B=0,m&&(h=[2&h[0],m.value]),h[0]){case 0:case 1:m=h;break;case 4:return W.label++,{value:h[1],done:!1};case 5:W.label++,B=h[1],h=[0];continue;case 7:h=W.ops.pop(),W.trys.pop();continue;default:if(!(m=(m=W.trys).length>0&&m[m.length-1])&&(6===h[0]||2===h[0])){W=0;continue}if(3===h[0]&&(!m||h[1]>m[0]&&h[1]<m[3])){W.label=h[1];break}if(6===h[0]&&W.label<m[1]){W.label=m[1],m=h;break}if(m&&W.label<m[2]){W.label=m[2],W.ops.push(h);break}m[2]&&W.ops.pop(),W.trys.pop();continue}h=G.call(x,W)}catch(R){h=[6,R],B=0}finally{H=m=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,R])}}};Object.defineProperty(I,"__esModule",{value:!0});var g,t=s(43821),a=s(71352),o=s(9585),r=s(53408),i=s(85058),c=s(44226);I.USER_AGENT_HEADER="x-amz-user-agent",I.USER_AGENT="aws-amplify/"+c.version+(i.userAgent&&" ")+i.userAgent,function(x){x.NONE="NONE",x.API_KEY="API_KEY",x.AWS_IAM="AWS_IAM",x.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",x.OPENID_CONNECT="OPENID_CONNECT"}(g=I.AUTH_TYPE||(I.AUTH_TYPE={}));var p=function(x){function G(W){var H=x.call(this)||this;return H.link=I.authLink(W),H}return n(G,x),G.prototype.request=function(W,H){return this.link.request(W,H)},G}(t.ApolloLink);I.AuthLink=p;var T=function(x,G,W){var H=void 0===x?{header:"",value:""}:x,B=H.header,m=H.value;return l(void 0,void 0,void 0,function(){var w,u,h,R,N;return e(this,function(P){switch(P.label){case 0:return w=G.getContext(),u=y(y({},w.headers),((R={})[I.USER_AGENT_HEADER]=I.USER_AGENT,R)),B&&m?"function"!=typeof m?[3,2]:[4,m.call(void 0)]:[3,5];case 1:return h=P.sent(),[3,4];case 2:return[4,m];case 3:h=P.sent(),P.label=4;case 4:u=y(((N={})[B]=h,N),u),P.label=5;case 5:return G.setContext(y(y({},w),{headers:u})),[2,W(G)]}})})};I.authLink=function(x){var G=x.url,W=x.region,H=x.auth,B=(void 0===H?{}:H).type,m=x.auth;return new t.ApolloLink(function(w,u){return new t.Observable(function(v){var h,R;switch(B){case g.NONE:R=T(void 0,w,u);break;case g.AWS_IAM:var N=m.credentials;R=function(x,G,W){var H=x.credentials,B=x.region,m=x.url;return l(void 0,void 0,void 0,function(){var w,u,v,h,R,N,P,U,Z,ue,V,re,ee;return e(this,function(Y){switch(Y.label){case 0:return w="appsync",u=G.getContext(),(v="function"==typeof H?H.call():H||{})&&"function"==typeof v.getPromise?[4,v.getPromise()]:[3,2];case 1:Y.sent(),Y.label=2;case 2:return[4,v];case 3:return h=Y.sent(),R=h.accessKeyId,N=h.secretAccessKey,P=h.sessionToken,U=r.parse(m),Z=U.host,ue=U.path,V=y(y({},b(G,{})),{service:w,region:B,url:m,host:Z,path:ue}),re=o.Signer.sign(V,{access_key:R,secret_key:N,session_token:P}).headers,G.setContext(y(y({},u),{headers:y(y(y({},u.headers),re),(ee={},ee[I.USER_AGENT_HEADER]=I.USER_AGENT,ee))})),[2,W(G)]}})})}({credentials:void 0===N?{}:N,region:W,url:G},w,u);break;case g.API_KEY:var U=m.apiKey;R=T({header:"X-Api-Key",value:void 0===U?"":U},w,u);break;case g.AMAZON_COGNITO_USER_POOLS:case g.OPENID_CONNECT:var ue=m.jwtToken;R=T({header:"Authorization",value:void 0===ue?"":ue},w,u);break;default:throw new Error("Invalid AUTH_TYPE: "+m.type)}return R.then(function(ee){h=ee.subscribe({next:v.next.bind(v),error:v.error.bind(v),complete:v.complete.bind(v)})}),function(){h&&h.unsubscribe()}})})};var b=function(x,G){var B=x.query,m={operationName:x.operationName,variables:A(x.variables),query:a.print(B)};return y(y({body:JSON.stringify(m),method:"POST"},G),{headers:y({accept:"*/*","content-type":"application/json; charset=UTF-8"},G.headers)})},A=function(x){return Object.keys(x).filter(function(G){return!G.startsWith("@@")}).reduce(function(G,W){return G[W]=x[W],G},{})}},11984:(J,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var n=s(83280);I.AuthLink=n.AuthLink,I.AUTH_TYPE=n.AUTH_TYPE,I.USER_AGENT_HEADER=n.USER_AGENT_HEADER,I.USER_AGENT=n.USER_AGENT,I.createAuthLink=function(l){return new n.AuthLink({url:l.url,region:l.region,auth:l.auth})};var y=s(9585);I.Signer=y.Signer},85058:(J,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.userAgent=""},9585:(J,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(y){for(var l in y)I.hasOwnProperty(l)||(I[l]=y[l])}(s(10365))},10365:(J,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),global.Buffer=global.Buffer||s(2341).lW;var n=s(53408),y=s(18426).util.crypto,l=function(b,A,x){return void 0===x&&(x=""),y.lib.createHmac("sha256",b).update(A,"utf8").digest(x)},e=function(b){return b=b||"",y.createHash("sha256").update(b,"utf8").digest("hex")},t=function(b){return b&&0!==Object.keys(b).length?Object.keys(b).map(function(A){return{key:A.toLowerCase(),value:b[A]?b[A].trim().replace(/\s+/g," "):""}}).sort(function(A,x){return A.key<x.key?-1:1}).map(function(A){return A.key+":"+A.value}).join("\n")+"\n":""},a=function(b){return Object.keys(b).map(function(A){return A.toLowerCase()}).sort().join(";")},T=function(b,A,x){void 0===x&&(x=null),b.headers=b.headers||{};var W=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),H=W.substr(0,8),B="AWS4-HMAC-SHA256",m=n.parse(b.url);b.headers.host=m.host,b.headers["x-amz-date"]=W,A.session_token&&(b.headers["X-Amz-Security-Token"]=A.session_token);var w=function(b){var A=n.parse(b.url);return[b.method||"/",A.path,A.query,t(b.headers),a(b.headers),e(b.body)].join("\n")}(b),u=function(b,A,x){return[b,A,x,"aws4_request"].join("/")}(H,(x=x||function(b){var W=(n.parse(b.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===W[1]&&(W=W.reverse()),{service:b.service||W[0],region:b.region||W[1]}}(b)).region,x.service),v=function(b,A,x,G){return[b,x,G,e(A)].join("\n")}(B,w,W,u),R=function(b,A){return l(b,A,"hex")}(function(b,A,x){void 0===b&&(b="");var W=l("AWS4"+b,A),H=l(W,x.region),B=l(H,x.service);return l(B,"aws4_request")}(A.secret_key,H,x),v),N=function(b,A,x,G,W){return void 0===A&&(A=""),["AWS4-HMAC-SHA256 Credential="+A+"/"+x,"SignedHeaders="+G,"Signature="+W].join(", ")}(0,A.access_key,u,a(b.headers),R);return b.headers.Authorization=N,b},S=function(){function b(){}return b.sign=T,b}();I.Signer=S,I.default=S},37490:function(J,I,s){"use strict";var n=this&&this.__rest||function(r,i){var c={};for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&i.indexOf(d)<0&&(c[d]=r[d]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var g=0;for(d=Object.getOwnPropertySymbols(r);g<d.length;g++)i.indexOf(d[g])<0&&Object.prototype.propertyIsEnumerable.call(r,d[g])&&(c[d[g]]=r[d[g]])}return c};Object.defineProperty(I,"__esModule",{value:!0});var y=s(45597);I.CONTROL_EVENTS_KEY=y.CONTROL_EVENTS_KEY;var l=s(43821),e=s(98007),t=s(71797),a=s(34003);I.createSubscriptionHandshakeLink=function(r,i){var c,d;return"string"==typeof r?(c=i||l.createHttpLink({uri:r}),d=l.ApolloLink.from([new t.NonTerminatingLink("controlMessages",{link:new l.ApolloLink(function(p,T){return new l.Observable(function(S){var b,A=p.variables,x=y.CONTROL_EVENTS_KEY,G=A[x],W=n(A,["symbol"==typeof x?x:x+""]);return void 0!==G&&(p.variables=W),S.next(((b={})[y.CONTROL_EVENTS_KEY]=G,b)),function(){}})})}),new t.NonTerminatingLink("subsInfo",{link:c}),new y.SubscriptionHandshakeLink("subsInfo")])):(c=i||l.createHttpLink({uri:r.url}),d=new a.AppSyncRealTimeSubscriptionHandshakeLink(r)),l.ApolloLink.split(function(p){var S=e.getMainDefinition(p.query);return"OperationDefinition"===S.kind&&"subscription"===S.operation},d,c)}},71797:function(J,I,s){"use strict";var r,n=this&&this.__extends||(r=function(i,c){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,g){d.__proto__=g}||function(d,g){for(var p in g)g.hasOwnProperty(p)&&(d[p]=g[p])})(i,c)},function(i,c){function d(){this.constructor=i}r(i,c),i.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}),y=this&&this.__assign||function(){return(y=Object.assign||function(r){for(var i,c=1,d=arguments.length;c<d;c++)for(var g in i=arguments[c])Object.prototype.hasOwnProperty.call(i,g)&&(r[g]=i[g]);return r}).apply(this,arguments)},l=this&&this.__awaiter||function(r,i,c,d){return new(c||(c=Promise))(function(p,T){function S(x){try{A(d.next(x))}catch(G){T(G)}}function b(x){try{A(d.throw(x))}catch(G){T(G)}}function A(x){x.done?p(x.value):function(p){return p instanceof c?p:new c(function(T){T(p)})}(x.value).then(S,b)}A((d=d.apply(r,i||[])).next())})},e=this&&this.__generator||function(r,i){var d,g,p,T,c={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return T={next:S(0),throw:S(1),return:S(2)},"function"==typeof Symbol&&(T[Symbol.iterator]=function(){return this}),T;function S(A){return function(x){return function(A){if(d)throw new TypeError("Generator is already executing.");for(;c;)try{if(d=1,g&&(p=2&A[0]?g.return:A[0]?g.throw||((p=g.return)&&p.call(g),0):g.next)&&!(p=p.call(g,A[1])).done)return p;switch(g=0,p&&(A=[2&A[0],p.value]),A[0]){case 0:case 1:p=A;break;case 4:return c.label++,{value:A[1],done:!1};case 5:c.label++,g=A[1],A=[0];continue;case 7:A=c.ops.pop(),c.trys.pop();continue;default:if(!(p=(p=c.trys).length>0&&p[p.length-1])&&(6===A[0]||2===A[0])){c=0;continue}if(3===A[0]&&(!p||A[1]>p[0]&&A[1]<p[3])){c.label=A[1];break}if(6===A[0]&&c.label<p[1]){c.label=p[1],p=A;break}if(p&&c.label<p[2]){c.label=p[2],c.ops.push(A);break}p[2]&&c.ops.pop(),c.trys.pop();continue}A=i.call(r,c)}catch(x){A=[6,x],g=0}finally{d=p=0}if(5&A[0])throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}([A,x])}}};Object.defineProperty(I,"__esModule",{value:!0});var t=s(43821),a=s(42753),o=function(r){function i(c,d){var g=d.link,p=r.call(this)||this;return p.contextKey=c,p.link=g,p}return n(i,r),i.prototype.request=function(c,d){var g=this;return a.setContext(function(p,T){return l(g,void 0,void 0,function(){var S,b,A=this;return e(this,function(x){switch(x.label){case 0:return[4,new Promise(function(G,W){A.link.request(c).subscribe({next:G,error:W})})];case 1:return S=x.sent(),[2,y(y({},T),(b={},b[this.contextKey]=S,b))]}})})}).request(c,d)},i}(t.ApolloLink);I.NonTerminatingLink=o},34003:function(J,I,s){"use strict";var H,n=this&&this.__extends||(H=function(B,m){return(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,u){w.__proto__=u}||function(w,u){for(var v in u)u.hasOwnProperty(v)&&(w[v]=u[v])})(B,m)},function(B,m){function w(){this.constructor=B}H(B,m),B.prototype=null===m?Object.create(m):(w.prototype=m.prototype,new w)}),y=this&&this.__assign||function(){return(y=Object.assign||function(H){for(var B,m=1,w=arguments.length;m<w;m++)for(var u in B=arguments[m])Object.prototype.hasOwnProperty.call(B,u)&&(H[u]=B[u]);return H}).apply(this,arguments)},l=this&&this.__awaiter||function(H,B,m,w){return new(m||(m=Promise))(function(v,h){function R(U){try{P(w.next(U))}catch(Z){h(Z)}}function N(U){try{P(w.throw(U))}catch(Z){h(Z)}}function P(U){U.done?v(U.value):function(v){return v instanceof m?v:new m(function(h){h(v)})}(U.value).then(R,N)}P((w=w.apply(H,B||[])).next())})},e=this&&this.__generator||function(H,B){var w,u,v,h,m={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return h={next:R(0),throw:R(1),return:R(2)},"function"==typeof Symbol&&(h[Symbol.iterator]=function(){return this}),h;function R(P){return function(U){return function(P){if(w)throw new TypeError("Generator is already executing.");for(;m;)try{if(w=1,u&&(v=2&P[0]?u.return:P[0]?u.throw||((v=u.return)&&v.call(u),0):u.next)&&!(v=v.call(u,P[1])).done)return v;switch(u=0,v&&(P=[2&P[0],v.value]),P[0]){case 0:case 1:v=P;break;case 4:return m.label++,{value:P[1],done:!1};case 5:m.label++,u=P[1],P=[0];continue;case 7:P=m.ops.pop(),m.trys.pop();continue;default:if(!(v=(v=m.trys).length>0&&v[v.length-1])&&(6===P[0]||2===P[0])){m=0;continue}if(3===P[0]&&(!v||P[1]>v[0]&&P[1]<v[3])){m.label=P[1];break}if(6===P[0]&&m.label<v[1]){m.label=v[1],v=P;break}if(v&&m.label<v[2]){m.label=v[2],m.ops.push(P);break}v[2]&&m.ops.pop(),m.trys.pop();continue}P=B.call(H,m)}catch(U){P=[6,U],u=0}finally{w=v=0}if(5&P[0])throw P[1];return{value:P[0]?P[1]:void 0,done:!0}}([P,U])}}};Object.defineProperty(I,"__esModule",{value:!0});var t=s(43821),a=s(94464),o=s(11984),r=s(63262),i=s(53408),c=s(86347),d=s(60103),g=s(89256),p=a.rootLogger.extend("subscriptions");I.CONTROL_EVENTS_KEY="@@controlEvents";var T=[400,401,403],b={accept:"application/json, text/javascript","content-encoding":"amz-1.0","content-type":"application/json; charset=UTF-8"},G=3e5,W=function(H){function B(m){var w=m.url,u=m.region,v=m.auth,h=H.call(this)||this;return h.socketStatus=d.SOCKET_STATUS.CLOSED,h.keepAliveTimeout=G,h.subscriptionObserverMap=new Map,h.promiseArray=[],h.url=w,h.region=u,h.auth=v,h}return n(B,H),B.prototype.request=function(m){var w,u=this,v=m.query,h=m.variables,R=m.getContext(),N=R.controlMessages,P=I.CONTROL_EVENTS_KEY,U=(void 0===N?(w={},w[I.CONTROL_EVENTS_KEY]=void 0,w):N)[P],Z=R.headers;return new t.Observable(function(ue){if(u.url){var V=c.v4(),re={appSyncGraphqlEndpoint:u.url,authenticationType:u.auth.type,query:r.print(v),region:u.region,graphql_headers:function(){return Z},variables:h,apiKey:u.auth.type===o.AUTH_TYPE.API_KEY?u.auth.apiKey:"",credentials:u.auth.type===o.AUTH_TYPE.AWS_IAM?u.auth.credentials:null,jwtToken:u.auth.type===o.AUTH_TYPE.AMAZON_COGNITO_USER_POOLS||u.auth.type===o.AUTH_TYPE.OPENID_CONNECT?u.auth.jwtToken:null};return u._startSubscriptionWithAWSAppSyncRealTime({options:re,observer:ue,subscriptionId:V}),function(){return l(u,void 0,void 0,function(){return e(this,function(Y){try{if(this._verifySubscriptionAlreadyStarted(V),this.subscriptionObserverMap.get(V).subscriptionState!==d.SUBSCRIPTION_STATUS.CONNECTED)throw new Error("Subscription has failed, starting to remove subscription.");this._sendUnsubscriptionMessage(V)}catch(Q){return this._removeSubscriptionObserver(V),[2]}return[2]})})}}ue.error({errors:[y({},new r.GraphQLError("Subscribe only available for AWS AppSync endpoint"))]}),ue.complete()}).filter(function(ue){var V=ue.extensions,re=(void 0===V?{}:V).controlMsgType;return!0===U||!(void 0!==(void 0===re?void 0:re))})},B.prototype._verifySubscriptionAlreadyStarted=function(m){return l(this,void 0,void 0,function(){var u=this;return e(this,function(v){return this.subscriptionObserverMap.get(m).subscriptionState===d.SUBSCRIPTION_STATUS.PENDING?[2,new Promise(function(h,R){var N=u.subscriptionObserverMap.get(m);u.subscriptionObserverMap.set(m,{observer:N.observer,subscriptionState:N.subscriptionState,variables:N.variables,query:N.query,subscriptionReadyCallback:h,subscriptionFailedCallback:R})})]:[2]})})},B.prototype._sendUnsubscriptionMessage=function(m){try{if(this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.socketStatus===d.SOCKET_STATUS.READY){var u=JSON.stringify({id:m,type:d.MESSAGE_TYPES.GQL_STOP});this.awsRealTimeSocket.send(u),this._removeSubscriptionObserver(m)}}catch(v){p({err:v})}},B.prototype._removeSubscriptionObserver=function(m){this.subscriptionObserverMap.delete(m),0===this.subscriptionObserverMap.size&&this._closeSocketWhenFlushed()},B.prototype._closeSocketWhenFlushed=function(){p("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=d.SOCKET_STATUS.CLOSED):this.socketStatus=d.SOCKET_STATUS.CLOSED},B.prototype._startSubscriptionWithAWSAppSyncRealTime=function(m){var w=m.options,u=m.observer,v=m.subscriptionId;return l(this,void 0,void 0,function(){var h,R,N,P,U,Z,ue,V,re,ee,Y,Q,k,K,C,f,O,E,M,j,ne,oe,be,me=this;return e(this,function(ge){switch(ge.label){case 0:return h=w.appSyncGraphqlEndpoint,R=w.authenticationType,U=w.apiKey,Z=w.region,V=void 0===(ue=w.graphql_headers)?function(){return{}}:ue,re=w.credentials,ee=w.jwtToken,Q={query:N=w.query,variables:P=w.variables},this.subscriptionObserverMap.set(v,{observer:u,query:N,variables:P,subscriptionState:Y=d.SUBSCRIPTION_STATUS.PENDING,startAckTimeoutId:null}),k=JSON.stringify(Q),C=[{}],[4,this._awsRealTimeHeaderBasedAuth({apiKey:U,appSyncGraphqlEndpoint:h,authenticationType:R,payload:k,canonicalUri:"",region:Z,credentials:re,jwtToken:ee})];case 1:return f=[y.apply(void 0,C.concat([ge.sent()]))],[4,V()];case 2:K=y.apply(void 0,[y.apply(void 0,f.concat([ge.sent()])),(be={},be[o.USER_AGENT_HEADER]=o.USER_AGENT,be)]),O={id:v,payload:{data:k,extensions:{authorization:y({},K)}},type:d.MESSAGE_TYPES.GQL_START},E=JSON.stringify(O),ge.label=3;case 3:return ge.trys.push([3,5,,6]),[4,this._initializeWebSocketConnection({apiKey:U,appSyncGraphqlEndpoint:h,authenticationType:R,region:Z,credentials:re,jwtToken:ee})];case 4:return ge.sent(),[3,6];case 5:return M=ge.sent(),u.error({errors:[y({},new r.GraphQLError("Connection failed: "+(void 0===(j=M.message)?"":j)))]}),u.complete(),"function"==typeof(ne=(this.subscriptionObserverMap.get(v)||{}).subscriptionFailedCallback)&&ne(),[2];case 6:return oe=this.subscriptionObserverMap.get(v),this.subscriptionObserverMap.set(v,{observer:u,subscriptionState:Y,variables:P,query:N,subscriptionReadyCallback:oe.subscriptionReadyCallback,subscriptionFailedCallback:oe.subscriptionFailedCallback,startAckTimeoutId:setTimeout(function(){me._timeoutStartSubscriptionAck.call(me,v)},15e3)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send(E),[2]}})})},B.prototype._initializeWebSocketConnection=function(m){var w=this,u=m.appSyncGraphqlEndpoint,v=m.authenticationType,h=m.apiKey,R=m.region,N=m.credentials,P=m.jwtToken;if(this.socketStatus!==d.SOCKET_STATUS.READY)return new Promise(function(U,Z){return l(w,void 0,void 0,function(){var ue,V,re,ee,Y,Q,k,C;return e(this,function(f){switch(f.label){case 0:if(this.promiseArray.push({res:U,rej:Z}),this.socketStatus!==d.SOCKET_STATUS.CLOSED)return[3,5];f.label=1;case 1:return f.trys.push([1,4,,5]),this.socketStatus=d.SOCKET_STATUS.CONNECTING,ue=B._discoverAppSyncRealTimeEndpoint(this.url),V="{}",Y=(ee=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:v,payload:V,canonicalUri:"/connect",apiKey:h,appSyncGraphqlEndpoint:u,region:R,credentials:N,jwtToken:P})];case 2:return re=Y.apply(ee,[f.sent()]),Q=Buffer.from(re).toString("base64"),k=Buffer.from(V).toString("base64"),[4,this._initializeRetryableHandshake({awsRealTimeUrl:ue+"?header="+Q+"&payload="+k})];case 3:return f.sent(),this.promiseArray.forEach(function(O){var E=O.res;p("Notifying connection successful"),E()}),this.socketStatus=d.SOCKET_STATUS.READY,this.promiseArray=[],[3,5];case 4:return C=f.sent(),this.promiseArray.forEach(function(O){return(0,O.rej)(C)}),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=null,this.socketStatus=d.SOCKET_STATUS.CLOSED,[3,5];case 5:return[2]}})})})},B.prototype._awsRealTimeHeaderBasedAuth=function(m){var w=m.authenticationType,u=m.payload,v=m.canonicalUri,h=m.appSyncGraphqlEndpoint,R=m.apiKey,N=m.region,P=m.credentials,U=m.jwtToken;return l(this,void 0,void 0,function(){var Z,ue,V;return e(this,function(ee){switch(ee.label){case 0:return Z={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(ue=Z[w])?(p("Authentication type "+w+" not supported"),[2,{}]):(V=i.parse(h).host,[4,ue({payload:u,canonicalUri:v,appSyncGraphqlEndpoint:h,apiKey:R,region:N,host:V,credentials:P,jwtToken:U})]);case 1:return[2,ee.sent()]}})})},B.prototype._awsRealTimeOPENIDHeader=function(m){var w=m.host,u=m.jwtToken;return l(this,void 0,void 0,function(){var v,h;return e(this,function(R){switch(R.label){case 0:return v={},"function"!=typeof u?[3,2]:[4,u.call(void 0)];case 1:return h=R.sent(),[3,4];case 2:return[4,u];case 3:h=R.sent(),R.label=4;case 4:return[2,(v.Authorization=h,v.host=w,v)]}})})},B.prototype._awsRealTimeApiKeyHeader=function(m){var w=m.apiKey,u=m.host;return l(this,void 0,void 0,function(){var v,h;return e(this,function(R){return v=new Date,h=v.toISOString().replace(/[:\-]|\.\d{3}/g,""),[2,{host:u,"x-amz-date":h,"x-api-key":w}]})})},B.prototype._awsRealTimeIAMHeader=function(m){var w=m.payload,u=m.canonicalUri,v=m.appSyncGraphqlEndpoint,h=m.region,R=m.credentials;return l(this,void 0,void 0,function(){var N,P,U,re,ee;return e(this,function(Q){switch(Q.label){case 0:return N={region:h,service:"appsync"},(P="function"==typeof R?R.call():R||{})&&"function"==typeof P.getPromise?[4,P.getPromise()]:[3,2];case 1:Q.sent(),Q.label=2;case 2:if(!P)throw new Error("No credentials");return[4,P];case 3:return U=Q.sent(),re={access_key:U.accessKeyId,secret_key:U.secretAccessKey,session_token:U.sessionToken},ee={url:""+v+u,body:w,method:"POST",headers:y({},b)},[2,o.Signer.sign(ee,re,N).headers]}})})},B.prototype._initializeRetryableHandshake=function(m){var w=m.awsRealTimeUrl;return l(this,void 0,void 0,function(){return e(this,function(u){switch(u.label){case 0:return p("Initializaling retryable Handshake"),[4,g.jitteredExponentialRetry(this._initializeHandshake.bind(this),[{awsRealTimeUrl:w}])];case 1:return u.sent(),[2]}})})},B.prototype._initializeHandshake=function(m){var w=m.awsRealTimeUrl;return l(this,void 0,void 0,function(){var u,v,R=this;return e(this,function(N){switch(N.label){case 0:p("Initializing handshake "+w),N.label=1;case 1:return N.trys.push([1,4,,5]),[4,new Promise(function(P,U){var Z=B.createWebSocket(w,"graphql-ws");Z.onerror=function(){p("WebSocket connection error")},Z.onclose=function(){U(new Error("Connection handshake error"))},Z.onopen=function(){return R.awsRealTimeSocket=Z,P()}})];case 2:return N.sent(),[4,new Promise(function(P,U){var Z=!1;R.awsRealTimeSocket.onerror=function(re){p("WebSocket closed "+JSON.stringify(re))},R.awsRealTimeSocket.onclose=function(re){p("WebSocket closed "+re.reason),U(new Error(JSON.stringify(re)))},R.awsRealTimeSocket.onmessage=function(re){p("subscription message from AWS AppSyncRealTime: "+re.data+" ");var ee=JSON.parse(re.data),Y=ee.type,Q=ee.payload,k=(void 0===Q?{}:Q).connectionTimeoutMs;if(Y===d.MESSAGE_TYPES.GQL_CONNECTION_ACK)return Z=!0,R.keepAliveTimeout=void 0===k?G:k,R.awsRealTimeSocket.onmessage=R._handleIncomingSubscriptionMessage.bind(R),R.awsRealTimeSocket.onerror=function(oe){p(oe),R._errorDisconnect(d.CONTROL_MSG.CONNECTION_CLOSED)},R.awsRealTimeSocket.onclose=function(oe){p("WebSocket closed "+oe.reason),R._errorDisconnect(d.CONTROL_MSG.CONNECTION_CLOSED)},void P("Cool, connected to AWS AppSyncRealTime");if(Y===d.MESSAGE_TYPES.GQL_CONNECTION_ERROR){var C=ee.payload,f=(void 0===C?{}:C).errors,O=(void 0===f?[]:f)[0],E=void 0===O?{}:O,M=E.errorType,q=E.errorCode;U({errorType:void 0===M?"":M,errorCode:void 0===q?0:q})}},R.awsRealTimeSocket.send(JSON.stringify({type:d.MESSAGE_TYPES.GQL_CONNECTION_INIT})),setTimeout(function(){Z||U(new Error("Connection timeout: ack from AWSRealTime was not received on 15000 ms"))}.bind(R),15e3)})];case 3:return N.sent(),[3,5];case 4:throw u=N.sent(),v=u.errorType,T.indexOf(u.errorCode)>=0?new g.NonRetryableError(v):v?new Error(v):u;case 5:return[2]}})})},B.prototype._handleIncomingSubscriptionMessage=function(m){p("subscription message from AWS AppSync RealTime: "+m.data);var w=JSON.parse(m.data),u=w.id,v=void 0===u?"":u,h=w.payload,R=w.type,N=this.subscriptionObserverMap.get(v)||{},P=N.observer,U=void 0===P?null:P,Z=N.query,ue=void 0===Z?"":Z,V=N.variables,re=void 0===V?{}:V,ee=N.startAckTimeoutId,Y=void 0===ee?0:ee,Q=N.subscriptionReadyCallback,k=void 0===Q?null:Q,K=N.subscriptionFailedCallback,C=void 0===K?null:K;if(p({id:v,observer:U,query:ue,variables:re}),R===d.MESSAGE_TYPES.GQL_DATA&&h&&h.data)U?U.next(h):p("observer not found for id: "+v);else{if(R===d.MESSAGE_TYPES.GQL_START_ACK)return p("subscription ready for "+JSON.stringify({query:ue,variables:re})),"function"==typeof k&&k(),clearTimeout(Y),U?U.next({data:h,extensions:{controlMsgType:"CONNECTED"}}):p("observer not found for id: "+v),void this.subscriptionObserverMap.set(v,{observer:U,query:ue,variables:re,startAckTimeoutId:null,subscriptionState:d.SUBSCRIPTION_STATUS.CONNECTED,subscriptionReadyCallback:k,subscriptionFailedCallback:C});if(R===d.MESSAGE_TYPES.GQL_CONNECTION_KEEP_ALIVE)return clearTimeout(this.keepAliveTimeoutId),void(this.keepAliveTimeoutId=setTimeout(this._errorDisconnect.bind(this,d.CONTROL_MSG.TIMEOUT_DISCONNECT),this.keepAliveTimeout));R===d.MESSAGE_TYPES.GQL_ERROR&&(this.subscriptionObserverMap.set(v,{observer:U,query:ue,variables:re,startAckTimeoutId:Y,subscriptionReadyCallback:k,subscriptionFailedCallback:C,subscriptionState:d.SUBSCRIPTION_STATUS.FAILED}),U.error({errors:[y({},new r.GraphQLError("Connection failed: "+JSON.stringify(h)))]}),clearTimeout(Y),U.complete(),"function"==typeof C&&C())}},B.prototype._errorDisconnect=function(m){p("Disconnect error: "+m),this.subscriptionObserverMap.forEach(function(w){var u=w.observer;u&&!u.closed&&u.error({errors:[y({},new r.GraphQLError(m))]})}),this.subscriptionObserverMap.clear(),this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=d.SOCKET_STATUS.CLOSED},B.prototype._timeoutStartSubscriptionAck=function(m){var w=this.subscriptionObserverMap.get(m)||{},u=w.observer,v=w.query,h=w.variables;!u||(this.subscriptionObserverMap.set(m,{observer:u,query:v,variables:h,subscriptionState:d.SUBSCRIPTION_STATUS.FAILED}),u&&!u.closed&&(u.error({errors:[y({},new r.GraphQLError("Subscription timeout "+JSON.stringify({query:v,variables:h})))]}),u.complete()),p("timeoutStartSubscription",JSON.stringify({query:v,variables:h})))},B.createWebSocket=function(m,w){return new WebSocket(m,w)},B._discoverAppSyncRealTimeEndpoint=function(m){return m.replace("https://","wss://").replace("http://","ws://").replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta")},B}(t.ApolloLink);I.AppSyncRealTimeSubscriptionHandshakeLink=W},45597:function(J,I,s){"use strict";var p,n=this&&this.__extends||(p=function(T,S){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,A){b.__proto__=A}||function(b,A){for(var x in A)A.hasOwnProperty(x)&&(b[x]=A[x])})(T,S)},function(T,S){function b(){this.constructor=T}p(T,S),T.prototype=null===S?Object.create(S):(b.prototype=S.prototype,new b)}),y=this&&this.__assign||function(){return(y=Object.assign||function(p){for(var T,S=1,b=arguments.length;S<b;S++)for(var A in T=arguments[S])Object.prototype.hasOwnProperty.call(T,A)&&(p[A]=T[A]);return p}).apply(this,arguments)},l=this&&this.__awaiter||function(p,T,S,b){return new(S||(S=Promise))(function(x,G){function W(m){try{B(b.next(m))}catch(w){G(w)}}function H(m){try{B(b.throw(m))}catch(w){G(w)}}function B(m){m.done?x(m.value):function(x){return x instanceof S?x:new S(function(G){G(x)})}(m.value).then(W,H)}B((b=b.apply(p,T||[])).next())})},e=this&&this.__generator||function(p,T){var b,A,x,G,S={label:0,sent:function(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return G={next:W(0),throw:W(1),return:W(2)},"function"==typeof Symbol&&(G[Symbol.iterator]=function(){return this}),G;function W(B){return function(m){return function(B){if(b)throw new TypeError("Generator is already executing.");for(;S;)try{if(b=1,A&&(x=2&B[0]?A.return:B[0]?A.throw||((x=A.return)&&x.call(A),0):A.next)&&!(x=x.call(A,B[1])).done)return x;switch(A=0,x&&(B=[2&B[0],x.value]),B[0]){case 0:case 1:x=B;break;case 4:return S.label++,{value:B[1],done:!1};case 5:S.label++,A=B[1],B=[0];continue;case 7:B=S.ops.pop(),S.trys.pop();continue;default:if(!(x=(x=S.trys).length>0&&x[x.length-1])&&(6===B[0]||2===B[0])){S=0;continue}if(3===B[0]&&(!x||B[1]>x[0]&&B[1]<x[3])){S.label=B[1];break}if(6===B[0]&&S.label<x[1]){S.label=x[1],x=B;break}if(x&&S.label<x[2]){S.label=x[2],S.ops.push(B);break}x[2]&&S.ops.pop(),S.trys.pop();continue}B=T.call(p,S)}catch(m){B=[6,m],A=0}finally{b=x=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,m])}}},t=this&&this.__rest||function(p,T){var S={};for(var b in p)Object.prototype.hasOwnProperty.call(p,b)&&T.indexOf(b)<0&&(S[b]=p[b]);if(null!=p&&"function"==typeof Object.getOwnPropertySymbols){var A=0;for(b=Object.getOwnPropertySymbols(p);A<b.length;A++)T.indexOf(b[A])<0&&Object.prototype.propertyIsEnumerable.call(p,b[A])&&(S[b[A]]=p[b[A]])}return S};Object.defineProperty(I,"__esModule",{value:!0});var a=s(43821),o=s(94464),r=s(28715),i=s(98007),c=o.rootLogger.extend("subscriptions"),d=c.extend("mqtt");I.CONTROL_EVENTS_KEY="@@controlEvents";var g=function(p){function T(S){var b=p.call(this)||this;return b.topicObservers=new Map,b.clientObservers=new Map,b.onMessage=function(A,x,G){var W=JSON.parse(x),H=b.topicObservers.get(A),B=G.reduce(function(m,w){return m[w]=m[w]||null,m},W.data||{});c("Message received",{data:B,topic:A,observers:H}),H.forEach(function(m){try{m.next(y(y({},W),{data:B}))}catch(w){c(w)}})},b.subsInfoContextKey=S,b}return n(T,p),T.prototype.request=function(S){var b,A=this,x=S.getContext(),W=x[this.subsInfoContextKey],H=x.controlMessages,B=I.CONTROL_EVENTS_KEY,m=(void 0===H?(b={},b[I.CONTROL_EVENTS_KEY]=void 0,b):H)[B],w=W.extensions,u=(void 0===w?{subscription:{newSubscriptions:{},mqttConnections:[]}}:w).subscription,v=u.newSubscriptions,h=u.mqttConnections,R=W.errors,N=void 0===R?[]:R;if(N&&N.length)return new a.Observable(function(ue){return ue.error(new a.ApolloError({errorMessage:"Error during subscription handshake",extraInfo:{errors:N},graphQLErrors:N})),function(){}});var P=Object.keys(v).map(function(ue){return v[ue].topic}),U=new Set(P.filter(function(ue){return A.topicObservers.has(ue)})),Z=new Set(P.filter(function(ue){return!U.has(ue)}));return new a.Observable(function(ue){U.forEach(function(re){A.topicObservers.get(re).add(ue);var ee=Array.from(A.topicObservers.get(re)).find(function(){return!0}),Y=Array.from(A.clientObservers).find(function(Q){return Q[1].observers.has(ee)})[0];A.clientObservers.get(Y).observers.add(ue)});var V=h.filter(function(re){return re.topics.some(function(ee){return Z.has(ee)})}).map(function(re){var ee=re.topics,Y=t(re,["topics"]);return y(y({},Y),{topics:ee.filter(function(Q){return Z.has(Q)})})});return A.connectNewClients(V,ue,S),function(){Array.from(A.clientObservers).filter(function(ee){return ee[1].observers.has(ue)}).forEach(function(ee){return A.clientObservers.get(ee[0]).observers.delete(ue)}),A.clientObservers.forEach(function(ee){var Q=ee.client;0===ee.observers.size&&(Q.isConnected()&&Q.disconnect(),A.clientObservers.delete(Q.clientId))}),A.clientObservers=new Map(Array.from(A.clientObservers).filter(function(ee){return ee[1].observers.size>0})),A.topicObservers.forEach(function(ee){return ee.delete(ue)}),A.topicObservers=new Map(Array.from(A.topicObservers).filter(function(ee){return ee[1].size>0}))}}).filter(function(ue){var V=ue.extensions,re=(void 0===V?{}:V).controlMsgType;return!0===m||!(void 0!==(void 0===re?void 0:re))})},T.prototype.connectNewClients=function(S,b,A){return l(this,void 0,void 0,function(){var G,W,H,B=this;return e(this,function(m){return G=i.getMainDefinition(A.query).selectionSet.selections.map(function(w){return w.name.value}),W=Promise.all(S.map(function(w){return B.connectNewClient(w,b,G)})),H=G.reduce(function(w,u){return w[u]=w[u]||null,w},{}),b.next({data:H,extensions:{controlMsgType:"CONNECTED",controlMsgInfo:{connectionInfo:S}}}),[2,W]})})},T.prototype.connectNewClient=function(S,b,A){return l(this,void 0,void 0,function(){var x,G,W,H,B=this;return e(this,function(m){switch(m.label){case 0:return W=S.topics,(H=new r.Client(G=S.url,x=S.client)).trace=d.bind(null,x),H.onConnectionLost=function(w){var u=w.errorCode,v=t(w,["errorCode"]);0!==u&&W.forEach(function(h){B.topicObservers.has(h)&&B.topicObservers.get(h).forEach(function(R){return R.error(y(y({},v),{permanent:!0}))})}),W.forEach(function(h){return B.topicObservers.delete(h)})},H.onMessageArrived=function(w){return B.onMessage(w.destinationName,w.payloadString,A)},[4,new Promise(function(w,u){H.connect({useSSL:0===G.indexOf("wss://"),mqttVersion:3,onSuccess:function(){return w(H)},onFailure:u})})];case 1:return m.sent(),[4,this.subscribeToTopics(H,W,b)];case 2:return m.sent(),[2,H]}})})},T.prototype.subscribeToTopics=function(S,b,A){var x=this;return Promise.all(b.map(function(G){return x.subscribeToTopic(S,G,A)}))},T.prototype.subscribeToTopic=function(S,b,A){var x=this;return new Promise(function(G,W){S.subscribe(b,{onSuccess:function(){x.topicObservers.has(b)||x.topicObservers.set(b,new Set),x.clientObservers.has(S.clientId)||x.clientObservers.set(S.clientId,{client:S,observers:new Set}),x.topicObservers.get(b).add(A),x.clientObservers.get(S.clientId).observers.add(A),G(b)},onFailure:W})})},T}(a.ApolloLink);I.SubscriptionHandshakeLink=g},60103:(J,I)=>{"use strict";var e;Object.defineProperty(I,"__esModule",{value:!0}),(e=I.SUBSCRIPTION_STATUS||(I.SUBSCRIPTION_STATUS={}))[e.PENDING=0]="PENDING",e[e.CONNECTED=1]="CONNECTED",e[e.FAILED=2]="FAILED",function(e){e[e.CLOSED=0]="CLOSED",e[e.READY=1]="READY",e[e.CONNECTING=2]="CONNECTING"}(I.SOCKET_STATUS||(I.SOCKET_STATUS={})),function(e){e.GQL_CONNECTION_INIT="connection_init",e.GQL_CONNECTION_ERROR="connection_error",e.GQL_CONNECTION_ACK="connection_ack",e.GQL_START="start",e.GQL_START_ACK="start_ack",e.GQL_DATA="data",e.GQL_CONNECTION_KEEP_ALIVE="ka",e.GQL_STOP="stop",e.GQL_COMPLETE="complete",e.GQL_ERROR="error"}(I.MESSAGE_TYPES||(I.MESSAGE_TYPES={})),function(e){e.CONNECTION_CLOSED="Connection closed",e.TIMEOUT_DISCONNECT="Timeout disconnect",e.SUBSCRIPTION_ACK="Subscription ack"}(I.CONTROL_MSG||(I.CONTROL_MSG={}))},94464:(J,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var n=s(40913);I.rootLogger=n.default},40913:function(J,I,s){"use strict";var n=this&&this.__spreadArrays||function(){for(var t=0,a=0,o=arguments.length;a<o;a++)t+=arguments[a].length;var r=Array(t),i=0;for(a=0;a<o;a++)for(var c=arguments[a],d=0,g=c.length;d<g;d++,i++)r[i]=c[d];return r};Object.defineProperty(I,"__esModule",{value:!0});var y=s(65771),l=y.default("aws-appsync"),e=function(t){void 0===t&&(t="");var a=t?n(this.namespace.split(":"),[t]).join(":"):this.namespace,o=y.default(a);return o.extend=e.bind(o),o};l.extend=e.bind(l),I.default=l},89256:function(J,I,s){"use strict";var d,n=this&&this.__extends||(d=function(g,p){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,S){T.__proto__=S}||function(T,S){for(var b in S)S.hasOwnProperty(b)&&(T[b]=S[b])})(g,p)},function(g,p){function T(){this.constructor=g}d(g,p),g.prototype=null===p?Object.create(p):(T.prototype=p.prototype,new T)}),y=this&&this.__awaiter||function(d,g,p,T){return new(p||(p=Promise))(function(b,A){function x(H){try{W(T.next(H))}catch(B){A(B)}}function G(H){try{W(T.throw(H))}catch(B){A(B)}}function W(H){H.done?b(H.value):function(b){return b instanceof p?b:new p(function(A){A(b)})}(H.value).then(x,G)}W((T=T.apply(d,g||[])).next())})},l=this&&this.__generator||function(d,g){var T,S,b,A,p={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return A={next:x(0),throw:x(1),return:x(2)},"function"==typeof Symbol&&(A[Symbol.iterator]=function(){return this}),A;function x(W){return function(H){return function(W){if(T)throw new TypeError("Generator is already executing.");for(;p;)try{if(T=1,S&&(b=2&W[0]?S.return:W[0]?S.throw||((b=S.return)&&b.call(S),0):S.next)&&!(b=b.call(S,W[1])).done)return b;switch(S=0,b&&(W=[2&W[0],b.value]),W[0]){case 0:case 1:b=W;break;case 4:return p.label++,{value:W[1],done:!1};case 5:p.label++,S=W[1],W=[0];continue;case 7:W=p.ops.pop(),p.trys.pop();continue;default:if(!(b=(b=p.trys).length>0&&b[b.length-1])&&(6===W[0]||2===W[0])){p=0;continue}if(3===W[0]&&(!b||W[1]>b[0]&&W[1]<b[3])){p.label=W[1];break}if(6===W[0]&&p.label<b[1]){p.label=b[1],b=W;break}if(b&&p.label<b[2]){p.label=b[2],p.ops.push(W);break}b[2]&&p.ops.pop(),p.trys.pop();continue}W=g.call(d,p)}catch(H){W=[6,H],S=0}finally{T=b=0}if(5&W[0])throw W[1];return{value:W[0]?W[1]:void 0,done:!0}}([W,H])}}};Object.defineProperty(I,"__esModule",{value:!0});var t=s(94464).rootLogger.extend("retry"),o=function(d){function g(p){var T=d.call(this,p)||this;return T.nonRetryable=!0,T}return n(g,d),g}(Error);function i(d,g,p,T){return void 0===T&&(T=1),y(this,void 0,void 0,function(){var S,b;return l(this,function(A){switch(A.label){case 0:t("Attempt #"+T+" for this vars: "+JSON.stringify(g)),A.label=1;case 1:return A.trys.push([1,3,,8]),[4,d.apply(void 0,g)];case 2:return A.sent(),[3,8];case 3:if(S=A.sent(),t("error "+S),function(d){return d&&d.nonRetryable}(S))throw t("non retryable error"),S;return b=p(T,g,S),t("retryIn ",b),!1===b?[3,6]:[4,new Promise(function(x){return setTimeout(x,b)})];case 4:return A.sent(),[4,i(d,g,p,T+1)];case 5:return[2,A.sent()];case 6:throw S;case 7:return[3,8];case 8:return[2]}})})}I.NonRetryableError=o,I.retry=i,I.jitteredExponentialRetry=function(d,g,p){return void 0===p&&(p=5e3),i(d,g,function(d){return function(T){var S=100*Math.pow(2,T)+100*Math.random();return!(S>d)&&S}}(p))}},28715:function(J){var s;J.exports=s=function(n){var v,l=n.localStorage||(v={},{setItem:function(h,R){v[h]=R},getItem:function(h){return v[h]},removeItem:function(h){delete v[h]}}),e_CONNECT=1,e_CONNACK=2,e_PUBLISH=3,e_PUBACK=4,e_PUBREC=5,e_PUBREL=6,e_PUBCOMP=7,e_SUBSCRIBE=8,e_SUBACK=9,e_UNSUBSCRIBE=10,e_UNSUBACK=11,e_PINGREQ=12,e_PINGRESP=13,e_DISCONNECT=14,t=function(v,h){for(var R in v)if(v.hasOwnProperty(R)){if(!h.hasOwnProperty(R)){var N="Unknown property, "+R+". Valid properties are:";for(var P in h)h.hasOwnProperty(P)&&(N=N+" "+P);throw new Error(N)}if(typeof v[R]!==h[R])throw new Error(i(o.INVALID_TYPE,[typeof v[R],R]))}},a=function(v,h){return function(){return v.apply(h,arguments)}},o={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}."}},r={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(v,h){var R=v.text;if(h)for(var N,P,U=0;U<h.length;U++)if((P=R.indexOf(N="{"+U+"}"))>0){var Z=R.substring(0,P),ue=R.substring(P+N.length);R=Z+h[U]+ue}return R},c=[0,6,77,81,73,115,100,112,3],d=[0,4,77,81,84,84,4],g=function(v,h){for(var R in this.type=v,h)h.hasOwnProperty(R)&&(this[R]=h[R])};function p(v,h){var R=h,N=v[h],P=N>>4,U=N&=15;h+=1;var Z,ue=0,V=1;do{if(h==v.length)return[null,R];ue+=(127&(Z=v[h++]))*V,V*=128}while(0!=(128&Z));var re=h+ue;if(re>v.length)return[null,R];var ee=new g(P);switch(P){case e_CONNACK:1&v[h++]&&(ee.sessionPresent=!0),ee.returnCode=v[h++];break;case e_PUBLISH:var Q=U>>1&3,k=b(v,h),K=W(v,h+=2,k);h+=k,Q>0&&(ee.messageIdentifier=b(v,h),h+=2);var C=new s.Message(v.subarray(h,re));1==(1&U)&&(C.retained=!0),8==(8&U)&&(C.duplicate=!0),C.qos=Q,C.destinationName=K,ee.payloadMessage=C;break;case e_PUBACK:case e_PUBREC:case e_PUBREL:case e_PUBCOMP:case e_UNSUBACK:ee.messageIdentifier=b(v,h);break;case e_SUBACK:ee.messageIdentifier=b(v,h),ee.returnCode=v.subarray(h+=2,re)}return[ee,re]}function T(v,h,R){return h[R++]=v>>8,h[R++]=v%256,R}function S(v,h,R,N){return G(v,R,N=T(h,R,N)),N+h}function b(v,h){return 256*v[h]+v[h+1]}function x(v){for(var h=0,R=0;R<v.length;R++){var N=v.charCodeAt(R);N>2047?(55296<=N&&N<=56319&&(R++,h++),h+=3):N>127?h+=2:h++}return h}function G(v,h,R){for(var N=R,P=0;P<v.length;P++){var U=v.charCodeAt(P);if(55296<=U&&U<=56319){var Z=v.charCodeAt(++P);if(isNaN(Z))throw new Error(i(o.MALFORMED_UNICODE,[U,Z]));U=Z-56320+(U-55296<<10)+65536}U<=127?h[N++]=U:U<=2047?(h[N++]=U>>6&31|192,h[N++]=63&U|128):U<=65535?(h[N++]=U>>12&15|224,h[N++]=U>>6&63|128,h[N++]=63&U|128):(h[N++]=U>>18&7|240,h[N++]=U>>12&63|128,h[N++]=U>>6&63|128,h[N++]=63&U|128)}return h}function W(v,h,R){for(var P,N="",U=h;U<h+R;){var Z=v[U++];if(Z<128)P=Z;else{var ue=v[U++]-128;if(ue<0)throw new Error(i(o.MALFORMED_UTF,[Z.toString(16),ue.toString(16),""]));if(Z<224)P=64*(Z-192)+ue;else{var V=v[U++]-128;if(V<0)throw new Error(i(o.MALFORMED_UTF,[Z.toString(16),ue.toString(16),V.toString(16)]));if(Z<240)P=4096*(Z-224)+64*ue+V;else{var re=v[U++]-128;if(re<0)throw new Error(i(o.MALFORMED_UTF,[Z.toString(16),ue.toString(16),V.toString(16),re.toString(16)]));if(!(Z<248))throw new Error(i(o.MALFORMED_UTF,[Z.toString(16),ue.toString(16),V.toString(16),re.toString(16)]));P=262144*(Z-240)+4096*ue+64*V+re}}}P>65535&&(P-=65536,N+=String.fromCharCode(55296+(P>>10)),P=56320+(1023&P)),N+=String.fromCharCode(P)}return N}g.prototype.encode=function(){var P,v=(15&this.type)<<4,h=0,R=[],N=0;switch(void 0!==this.messageIdentifier&&(h+=2),this.type){case e_CONNECT:switch(this.mqttVersion){case 3:h+=c.length+3;break;case 4:h+=d.length+3}h+=x(this.clientId)+2,void 0!==this.willMessage&&(h+=x(this.willMessage.destinationName)+2,(P=this.willMessage.payloadBytes)instanceof Uint8Array||(P=new Uint8Array(Z)),h+=P.byteLength+2),void 0!==this.userName&&(h+=x(this.userName)+2),void 0!==this.password&&(h+=x(this.password)+2);break;case e_SUBSCRIBE:v|=2;for(var U=0;U<this.topics.length;U++)R[U]=x(this.topics[U]),h+=R[U]+2;h+=this.requestedQos.length;break;case e_UNSUBSCRIBE:for(v|=2,U=0;U<this.topics.length;U++)R[U]=x(this.topics[U]),h+=R[U]+2;break;case e_PUBREL:v|=2;break;case e_PUBLISH:this.payloadMessage.duplicate&&(v|=8),v=v|=this.payloadMessage.qos<<1,this.payloadMessage.retained&&(v|=1),h+=(N=x(this.payloadMessage.destinationName))+2;var Z=this.payloadMessage.payloadBytes;h+=Z.byteLength,Z instanceof ArrayBuffer?Z=new Uint8Array(Z):Z instanceof Uint8Array||(Z=new Uint8Array(Z.buffer))}var ue=function(v){var h=new Array(1),R=0;do{var N=v%128;(v>>=7)>0&&(N|=128),h[R++]=N}while(v>0&&R<4);return h}(h),V=ue.length+1,re=new ArrayBuffer(h+V),ee=new Uint8Array(re);if(ee[0]=v,ee.set(ue,1),this.type==e_PUBLISH)V=S(this.payloadMessage.destinationName,N,ee,V);else if(this.type==e_CONNECT){switch(this.mqttVersion){case 3:ee.set(c,V),V+=c.length;break;case 4:ee.set(d,V),V+=d.length}var Y=0;this.cleanSession&&(Y=2),void 0!==this.willMessage&&(Y|=4,Y|=this.willMessage.qos<<3,this.willMessage.retained&&(Y|=32)),void 0!==this.userName&&(Y|=128),void 0!==this.password&&(Y|=64),ee[V++]=Y,V=T(this.keepAliveInterval,ee,V)}switch(void 0!==this.messageIdentifier&&(V=T(this.messageIdentifier,ee,V)),this.type){case e_CONNECT:V=S(this.clientId,x(this.clientId),ee,V),void 0!==this.willMessage&&(V=S(this.willMessage.destinationName,x(this.willMessage.destinationName),ee,V),V=T(P.byteLength,ee,V),ee.set(P,V),V+=P.byteLength),void 0!==this.userName&&(V=S(this.userName,x(this.userName),ee,V)),void 0!==this.password&&(V=S(this.password,x(this.password),ee,V));break;case e_PUBLISH:ee.set(Z,V);break;case e_SUBSCRIBE:for(U=0;U<this.topics.length;U++)V=S(this.topics[U],R[U],ee,V),ee[V++]=this.requestedQos[U];break;case e_UNSUBSCRIBE:for(U=0;U<this.topics.length;U++)V=S(this.topics[U],R[U],ee,V)}return re};var H=function(v,h){this._client=v,this._keepAliveInterval=1e3*h,this.isReset=!1;var R=new g(e_PINGREQ).encode(),N=function(U){return function(){return P.apply(U)}},P=function(){this.isReset?(this.isReset=!1,this._client._trace("Pinger.doPing","send PINGREQ"),this._client.socket.send(R),this.timeout=setTimeout(N(this),this._keepAliveInterval)):(this._client._trace("Pinger.doPing","Timed out"),this._client._disconnected(o.PING_TIMEOUT.code,i(o.PING_TIMEOUT)))};this.reset=function(){this.isReset=!0,clearTimeout(this.timeout),this._keepAliveInterval>0&&(this.timeout=setTimeout(N(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},B=function(v,h,R,N){var U,Z,ue;h||(h=30),this.timeout=setTimeout((U=R,Z=v,ue=N,function(){return U.apply(Z,ue)}),1e3*h),this.cancel=function(){clearTimeout(this.timeout)}},m=function(v,h,R,N,P){if(!("WebSocket"in n)||null===n.WebSocket)throw new Error(i(o.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in n)||null===n.ArrayBuffer)throw new Error(i(o.UNSUPPORTED,["ArrayBuffer"]));for(var U in this._trace("Paho.Client",v,h,R,N,P),this.host=h,this.port=R,this.path=N,this.uri=v,this.clientId=P,this._wsuri=null,this._localKey=h+":"+R+("/mqtt"!=N?":"+N:"")+":"+P+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,l)(0===U.indexOf("Sent:"+this._localKey)||0===U.indexOf("Received:"+this._localKey))&&this.restore(U)};m.prototype.host=null,m.prototype.port=null,m.prototype.path=null,m.prototype.uri=null,m.prototype.clientId=null,m.prototype.socket=null,m.prototype.connected=!1,m.prototype.maxMessageIdentifier=65536,m.prototype.connectOptions=null,m.prototype.hostIndex=null,m.prototype.onConnected=null,m.prototype.onConnectionLost=null,m.prototype.onMessageDelivered=null,m.prototype.onMessageArrived=null,m.prototype.traceFunction=null,m.prototype._msg_queue=null,m.prototype._buffered_msg_queue=null,m.prototype._connectTimeout=null,m.prototype.sendPinger=null,m.prototype.receivePinger=null,m.prototype._reconnectInterval=1,m.prototype._reconnecting=!1,m.prototype._reconnectTimeout=null,m.prototype.disconnectedPublishing=!1,m.prototype.disconnectedBufferSize=5e3,m.prototype.receiveBuffer=null,m.prototype._traceBuffer=null,m.prototype._MAX_TRACE_ENTRIES=100,m.prototype.connect=function(v){var h=this._traceMask(v,"password");if(this._trace("Client.connect",h,this.socket,this.connected),this.connected)throw new Error(i(o.INVALID_STATE,["already connected"]));if(this.socket)throw new Error(i(o.INVALID_STATE,["already connected"]));this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),this.connectOptions=v,this._reconnectInterval=1,this._reconnecting=!1,v.uris?(this.hostIndex=0,this._doConnect(v.uris[0])):this._doConnect(this.uri)},m.prototype.subscribe=function(v,h){if(this._trace("Client.subscribe",v,h),!this.connected)throw new Error(i(o.INVALID_STATE,["not connected"]));var R=new g(e_SUBSCRIBE);R.topics=[v],R.requestedQos=void 0!==h.qos?[h.qos]:[0],h.onSuccess&&(R.onSuccess=function(N){h.onSuccess({invocationContext:h.invocationContext,grantedQos:N})}),h.onFailure&&(R.onFailure=function(N){h.onFailure({invocationContext:h.invocationContext,errorCode:N,errorMessage:i(N)})}),h.timeout&&(R.timeOut=new B(this,h.timeout,h.onFailure,[{invocationContext:h.invocationContext,errorCode:o.SUBSCRIBE_TIMEOUT.code,errorMessage:i(o.SUBSCRIBE_TIMEOUT)}])),this._requires_ack(R),this._schedule_message(R)},m.prototype.unsubscribe=function(v,h){if(this._trace("Client.unsubscribe",v,h),!this.connected)throw new Error(i(o.INVALID_STATE,["not connected"]));var R=new g(e_UNSUBSCRIBE);R.topics=[v],h.onSuccess&&(R.callback=function(){h.onSuccess({invocationContext:h.invocationContext})}),h.timeout&&(R.timeOut=new B(this,h.timeout,h.onFailure,[{invocationContext:h.invocationContext,errorCode:o.UNSUBSCRIBE_TIMEOUT.code,errorMessage:i(o.UNSUBSCRIBE_TIMEOUT)}])),this._requires_ack(R),this._schedule_message(R)},m.prototype.send=function(v){this._trace("Client.send",v);var h=new g(e_PUBLISH);if(h.payloadMessage=v,this.connected)v.qos>0?this._requires_ack(h):this.onMessageDelivered&&(this._notify_msg_sent[h]=this.onMessageDelivered(h.payloadMessage)),this._schedule_message(h);else{if(!this._reconnecting||!this.disconnectedPublishing)throw new Error(i(o.INVALID_STATE,["not connected"]));if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw new Error(i(o.BUFFER_FULL,[this.disconnectedBufferSize]));v.qos>0?this._requires_ack(h):(h.sequence=++this._sequence,this._buffered_msg_queue.unshift(h))}},m.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(o.INVALID_STATE,["not connecting or connected"]));var v=new g(e_DISCONNECT);this._notify_msg_sent[v]=a(this._disconnected,this),this._schedule_message(v)},m.prototype.getTraceLog=function(){if(null!==this._traceBuffer){for(var v in this._trace("Client.getTraceLog",new Date),this._trace("Client.getTraceLog in flight messages",this._sentMessages.length),this._sentMessages)this._trace("_sentMessages ",v,this._sentMessages[v]);for(var v in this._receivedMessages)this._trace("_receivedMessages ",v,this._receivedMessages[v]);return this._traceBuffer}},m.prototype.startTrace=function(){null===this._traceBuffer&&(this._traceBuffer=[]),this._trace("Client.startTrace",new Date,"@VERSION@-@BUILDLEVEL@")},m.prototype.stopTrace=function(){delete this._traceBuffer},m.prototype._doConnect=function(v){if(this.connectOptions.useSSL){var h=v.split(":");h[0]="wss",v=h.join(":")}this._wsuri=v,this.connected=!1,this.socket=this.connectOptions.mqttVersion<4?new WebSocket(v,["mqttv3.1"]):new WebSocket(v,["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 B(this,this.connectOptions.timeout,this._disconnected,[o.CONNECT_TIMEOUT.code,i(o.CONNECT_TIMEOUT)])},m.prototype._schedule_message=function(v){this._msg_queue.unshift(v),this.connected&&this._process_queue()},m.prototype.store=function(v,h){var R={type:h.type,messageIdentifier:h.messageIdentifier,version:1};switch(h.type){case e_PUBLISH:h.pubRecReceived&&(R.pubRecReceived=!0),R.payloadMessage={};for(var N="",P=h.payloadMessage.payloadBytes,U=0;U<P.length;U++)P[U]<=15?N=N+"0"+P[U].toString(16):N+=P[U].toString(16);R.payloadMessage.payloadHex=N,R.payloadMessage.qos=h.payloadMessage.qos,R.payloadMessage.destinationName=h.payloadMessage.destinationName,h.payloadMessage.duplicate&&(R.payloadMessage.duplicate=!0),h.payloadMessage.retained&&(R.payloadMessage.retained=!0),0===v.indexOf("Sent:")&&(void 0===h.sequence&&(h.sequence=++this._sequence),R.sequence=h.sequence);break;default:throw Error(i(o.INVALID_STORED_DATA,[v+this._localKey+h.messageIdentifier,R]))}l.setItem(v+this._localKey+h.messageIdentifier,JSON.stringify(R))},m.prototype.restore=function(v){var h=l.getItem(v),R=JSON.parse(h),N=new g(R.type,R);switch(R.type){case e_PUBLISH:for(var P=R.payloadMessage.payloadHex,U=new ArrayBuffer(P.length/2),Z=new Uint8Array(U),ue=0;P.length>=2;){var V=parseInt(P.substring(0,2),16);P=P.substring(2,P.length),Z[ue++]=V}var re=new s.Message(Z);re.qos=R.payloadMessage.qos,re.destinationName=R.payloadMessage.destinationName,R.payloadMessage.duplicate&&(re.duplicate=!0),R.payloadMessage.retained&&(re.retained=!0),N.payloadMessage=re;break;default:throw Error(i(o.INVALID_STORED_DATA,[v,h]))}0===v.indexOf("Sent:"+this._localKey)?(N.payloadMessage.duplicate=!0,this._sentMessages[N.messageIdentifier]=N):0===v.indexOf("Received:"+this._localKey)&&(this._receivedMessages[N.messageIdentifier]=N)},m.prototype._process_queue=function(){for(var v=null;v=this._msg_queue.pop();)this._socket_send(v),this._notify_msg_sent[v]&&(this._notify_msg_sent[v](),delete this._notify_msg_sent[v])},m.prototype._requires_ack=function(v){var h=Object.keys(this._sentMessages).length;if(h>this.maxMessageIdentifier)throw Error("Too many messages:"+h);for(;void 0!==this._sentMessages[this._message_identifier];)this._message_identifier++;v.messageIdentifier=this._message_identifier,this._sentMessages[v.messageIdentifier]=v,v.type===e_PUBLISH&&this.store("Sent:",v),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},m.prototype._on_socket_open=function(){var v=new g(e_CONNECT,this.connectOptions);v.clientId=this.clientId,this._socket_send(v)},m.prototype._on_socket_message=function(v){this._trace("Client._on_socket_message",v.data);for(var h=this._deframeMessages(v.data),R=0;R<h.length;R+=1)this._handleMessage(h[R])},m.prototype._deframeMessages=function(v){var h=new Uint8Array(v),R=[];if(this.receiveBuffer){var N=new Uint8Array(this.receiveBuffer.length+h.length);N.set(this.receiveBuffer),N.set(h,this.receiveBuffer.length),h=N,delete this.receiveBuffer}try{for(var P=0;P<h.length;){var U=p(h,P),Z=U[0];if(P=U[1],null===Z)break;R.push(Z)}P<h.length&&(this.receiveBuffer=h.subarray(P))}catch(V){var ue="undefined"==V.hasOwnProperty("stack")?V.stack.toString():"No Error Stack Available";return void this._disconnected(o.INTERNAL_ERROR.code,i(o.INTERNAL_ERROR,[V.message,ue]))}return R},m.prototype._handleMessage=function(v){this._trace("Client._handleMessage",v);try{switch(v.type){case e_CONNACK:if(this._connectTimeout.cancel(),this._reconnectTimeout&&this._reconnectTimeout.cancel(),this.connectOptions.cleanSession){for(var h in this._sentMessages)l.removeItem("Sent:"+this._localKey+(re=this._sentMessages[h]).messageIdentifier);for(var h in this._sentMessages={},this._receivedMessages)l.removeItem("Received:"+this._localKey+(ee=this._receivedMessages[h]).messageIdentifier);this._receivedMessages={}}if(0!==v.returnCode){this._disconnected(o.CONNACK_RETURNCODE.code,i(o.CONNACK_RETURNCODE,[v.returnCode,r[v.returnCode]]));break}this.connected=!0,this.connectOptions.uris&&(this.hostIndex=this.connectOptions.uris.length);var R=[];for(var N in this._sentMessages)this._sentMessages.hasOwnProperty(N)&&R.push(this._sentMessages[N]);if(this._buffered_msg_queue.length>0)for(var P=null;P=this._buffered_msg_queue.pop();)R.push(P),this.onMessageDelivered&&(this._notify_msg_sent[P]=this.onMessageDelivered(P.payloadMessage));R=R.sort(function(k,K){return k.sequence-K.sequence});for(var U=0,Z=R.length;U<Z;U++)if((re=R[U]).type==e_PUBLISH&&re.pubRecReceived){var ue=new g(e_PUBREL,{messageIdentifier:re.messageIdentifier});this._schedule_message(ue)}else this._schedule_message(re);this.connectOptions.onSuccess&&this.connectOptions.onSuccess({invocationContext:this.connectOptions.invocationContext});var V=!1;this._reconnecting&&(V=!0,this._reconnectInterval=1,this._reconnecting=!1),this._connected(V,this._wsuri),this._process_queue();break;case e_PUBLISH:this._receivePublish(v);break;case e_PUBACK:(re=this._sentMessages[v.messageIdentifier])&&(delete this._sentMessages[v.messageIdentifier],l.removeItem("Sent:"+this._localKey+v.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(re.payloadMessage));break;case e_PUBREC:(re=this._sentMessages[v.messageIdentifier])&&(re.pubRecReceived=!0,ue=new g(e_PUBREL,{messageIdentifier:v.messageIdentifier}),this.store("Sent:",re),this._schedule_message(ue));break;case e_PUBREL:var ee=this._receivedMessages[v.messageIdentifier];l.removeItem("Received:"+this._localKey+v.messageIdentifier),ee&&(this._receiveMessage(ee),delete this._receivedMessages[v.messageIdentifier]);var Y=new g(e_PUBCOMP,{messageIdentifier:v.messageIdentifier});this._schedule_message(Y);break;case e_PUBCOMP:var re=this._sentMessages[v.messageIdentifier];delete this._sentMessages[v.messageIdentifier],l.removeItem("Sent:"+this._localKey+v.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(re.payloadMessage);break;case e_SUBACK:(re=this._sentMessages[v.messageIdentifier])&&(re.timeOut&&re.timeOut.cancel(),128===v.returnCode[0]?re.onFailure&&re.onFailure(v.returnCode):re.onSuccess&&re.onSuccess(v.returnCode),delete this._sentMessages[v.messageIdentifier]);break;case e_UNSUBACK:(re=this._sentMessages[v.messageIdentifier])&&(re.timeOut&&re.timeOut.cancel(),re.callback&&re.callback(),delete this._sentMessages[v.messageIdentifier]);break;case e_PINGRESP:this.sendPinger.reset();break;case e_DISCONNECT:this._disconnected(o.INVALID_MQTT_MESSAGE_TYPE.code,i(o.INVALID_MQTT_MESSAGE_TYPE,[v.type]));break;default:this._disconnected(o.INVALID_MQTT_MESSAGE_TYPE.code,i(o.INVALID_MQTT_MESSAGE_TYPE,[v.type]))}}catch(k){var Q="undefined"==k.hasOwnProperty("stack")?k.stack.toString():"No Error Stack Available";return void this._disconnected(o.INTERNAL_ERROR.code,i(o.INTERNAL_ERROR,[k.message,Q]))}},m.prototype._on_socket_error=function(v){this._reconnecting||this._disconnected(o.SOCKET_ERROR.code,i(o.SOCKET_ERROR,[v.data]))},m.prototype._on_socket_close=function(){this._reconnecting||this._disconnected(o.SOCKET_CLOSE.code,i(o.SOCKET_CLOSE))},m.prototype._socket_send=function(v){if(1==v.type){var h=this._traceMask(v,"password");this._trace("Client._socket_send",h)}else this._trace("Client._socket_send",v);this.socket.send(v.encode()),this.sendPinger.reset()},m.prototype._receivePublish=function(v){switch(v.payloadMessage.qos){case"undefined":case 0:this._receiveMessage(v);break;case 1:var h=new g(e_PUBACK,{messageIdentifier:v.messageIdentifier});this._schedule_message(h),this._receiveMessage(v);break;case 2:this._receivedMessages[v.messageIdentifier]=v,this.store("Received:",v);var R=new g(e_PUBREC,{messageIdentifier:v.messageIdentifier});this._schedule_message(R);break;default:throw Error("Invaild qos="+v.payloadMessage.qos)}},m.prototype._receiveMessage=function(v){this.onMessageArrived&&this.onMessageArrived(v.payloadMessage)},m.prototype._connected=function(v,h){this.onConnected&&this.onConnected(v,h)},m.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))},m.prototype._disconnected=function(v,h){if(this._trace("Client._disconnected",v,h),void 0!==v&&this._reconnecting)this._reconnectTimeout=new B(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===v&&(v=o.OK.code,h=i(o.OK)),this.connected){if(this.connected=!1,this.onConnectionLost&&this.onConnectionLost({errorCode:v,errorMessage:h,reconnect:this.connectOptions.reconnect,uri:this._wsuri}),v!==o.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:v,errorMessage:h})},m.prototype._trace=function(){if(this.traceFunction){var v=Array.prototype.slice.call(arguments);for(var h in v)void 0!==v[h]&&v.splice(h,1,JSON.stringify(v[h]));var R=v.join("");this.traceFunction({severity:"Debug",message:R})}if(null!==this._traceBuffer){h=0;for(var N=arguments.length;h<N;h++)this._traceBuffer.length==this._MAX_TRACE_ENTRIES&&this._traceBuffer.shift(),this._traceBuffer.push(0===h||void 0===arguments[h]?arguments[h]:" "+JSON.stringify(arguments[h]))}},m.prototype._traceMask=function(v,h){var R={};for(var N in v)v.hasOwnProperty(N)&&(R[N]=N==h?"******":v[N]);return R};var u=function(v){var h;if(!("string"==typeof v||v instanceof ArrayBuffer||ArrayBuffer.isView(v)&&!(v instanceof DataView)))throw i(o.INVALID_ARGUMENT,[v,"newPayload"]);h=v;var R,N=0,P=!1,U=!1;Object.defineProperties(this,{payloadString:{enumerable:!0,get:function(){return"string"==typeof h?h:W(h,0,h.length)}},payloadBytes:{enumerable:!0,get:function(){if("string"==typeof h){var Z=new ArrayBuffer(x(h)),ue=new Uint8Array(Z);return G(h,ue,0),ue}return h}},destinationName:{enumerable:!0,get:function(){return R},set:function(Z){if("string"!=typeof Z)throw new Error(i(o.INVALID_ARGUMENT,[Z,"newDestinationName"]));R=Z}},qos:{enumerable:!0,get:function(){return N},set:function(Z){if(0!==Z&&1!==Z&&2!==Z)throw new Error("Invalid argument:"+Z);N=Z}},retained:{enumerable:!0,get:function(){return P},set:function(Z){if("boolean"!=typeof Z)throw new Error(i(o.INVALID_ARGUMENT,[Z,"newRetained"]));P=Z}},topic:{enumerable:!0,get:function(){return R},set:function(Z){R=Z}},duplicate:{enumerable:!0,get:function(){return U},set:function(Z){U=Z}}})};return{Client:function(v,h,R,N){var P;if("string"!=typeof v)throw new Error(i(o.INVALID_TYPE,[typeof v,"host"]));if(2==arguments.length){N=h;var U=(P=v).match(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/);if(!U)throw new Error(i(o.INVALID_ARGUMENT,[v,"host"]));v=U[4]||U[2],h=parseInt(U[7]),R=U[8]}else{if(3==arguments.length&&(N=R,R="/mqtt"),"number"!=typeof h||h<0)throw new Error(i(o.INVALID_TYPE,[typeof h,"port"]));if("string"!=typeof R)throw new Error(i(o.INVALID_TYPE,[typeof R,"path"]));var Z=-1!==v.indexOf(":")&&"["!==v.slice(0,1)&&"]"!==v.slice(-1);P="ws://"+(Z?"["+v+"]":v)+":"+h+R}for(var ue=0,V=0;V<N.length;V++){var re=N.charCodeAt(V);55296<=re&&re<=56319&&V++,ue++}if("string"!=typeof N||ue>65535)throw new Error(i(o.INVALID_ARGUMENT,[N,"clientId"]));var ee=new m(P,v,h,R,N);Object.defineProperties(this,{host:{get:function(){return v},set:function(){throw new Error(i(o.UNSUPPORTED_OPERATION))}},port:{get:function(){return h},set:function(){throw new Error(i(o.UNSUPPORTED_OPERATION))}},path:{get:function(){return R},set:function(){throw new Error(i(o.UNSUPPORTED_OPERATION))}},uri:{get:function(){return P},set:function(){throw new Error(i(o.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return ee.clientId},set:function(){throw new Error(i(o.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return ee.onConnected},set:function(Y){if("function"!=typeof Y)throw new Error(i(o.INVALID_TYPE,[typeof Y,"onConnected"]));ee.onConnected=Y}},disconnectedPublishing:{get:function(){return ee.disconnectedPublishing},set:function(Y){ee.disconnectedPublishing=Y}},disconnectedBufferSize:{get:function(){return ee.disconnectedBufferSize},set:function(Y){ee.disconnectedBufferSize=Y}},onConnectionLost:{get:function(){return ee.onConnectionLost},set:function(Y){if("function"!=typeof Y)throw new Error(i(o.INVALID_TYPE,[typeof Y,"onConnectionLost"]));ee.onConnectionLost=Y}},onMessageDelivered:{get:function(){return ee.onMessageDelivered},set:function(Y){if("function"!=typeof Y)throw new Error(i(o.INVALID_TYPE,[typeof Y,"onMessageDelivered"]));ee.onMessageDelivered=Y}},onMessageArrived:{get:function(){return ee.onMessageArrived},set:function(Y){if("function"!=typeof Y)throw new Error(i(o.INVALID_TYPE,[typeof Y,"onMessageArrived"]));ee.onMessageArrived=Y}},trace:{get:function(){return ee.traceFunction},set:function(Y){if("function"!=typeof Y)throw new Error(i(o.INVALID_TYPE,[typeof Y,"onTrace"]));ee.traceFunction=Y}}}),this.connect=function(Y){if(t(Y=Y||{},{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===Y.keepAliveInterval&&(Y.keepAliveInterval=60),Y.mqttVersion>4||Y.mqttVersion<3)throw new Error(i(o.INVALID_ARGUMENT,[Y.mqttVersion,"connectOptions.mqttVersion"]));if(void 0===Y.mqttVersion?(Y.mqttVersionExplicit=!1,Y.mqttVersion=4):Y.mqttVersionExplicit=!0,void 0!==Y.password&&void 0===Y.userName)throw new Error(i(o.INVALID_ARGUMENT,[Y.password,"connectOptions.password"]));if(Y.willMessage){if(!(Y.willMessage instanceof u))throw new Error(i(o.INVALID_TYPE,[Y.willMessage,"connectOptions.willMessage"]));if(Y.willMessage.stringPayload=null,void 0===Y.willMessage.destinationName)throw new Error(i(o.INVALID_TYPE,[typeof Y.willMessage.destinationName,"connectOptions.willMessage.destinationName"]))}if(void 0===Y.cleanSession&&(Y.cleanSession=!0),Y.hosts){if(!(Y.hosts instanceof Array))throw new Error(i(o.INVALID_ARGUMENT,[Y.hosts,"connectOptions.hosts"]));if(Y.hosts.length<1)throw new Error(i(o.INVALID_ARGUMENT,[Y.hosts,"connectOptions.hosts"]));for(var Q=!1,k=0;k<Y.hosts.length;k++){if("string"!=typeof Y.hosts[k])throw new Error(i(o.INVALID_TYPE,[typeof Y.hosts[k],"connectOptions.hosts["+k+"]"]));if(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/.test(Y.hosts[k])){if(0===k)Q=!0;else if(!Q)throw new Error(i(o.INVALID_ARGUMENT,[Y.hosts[k],"connectOptions.hosts["+k+"]"]))}else if(Q)throw new Error(i(o.INVALID_ARGUMENT,[Y.hosts[k],"connectOptions.hosts["+k+"]"]))}if(Q)Y.uris=Y.hosts;else{if(!Y.ports)throw new Error(i(o.INVALID_ARGUMENT,[Y.ports,"connectOptions.ports"]));if(!(Y.ports instanceof Array))throw new Error(i(o.INVALID_ARGUMENT,[Y.ports,"connectOptions.ports"]));if(Y.hosts.length!==Y.ports.length)throw new Error(i(o.INVALID_ARGUMENT,[Y.ports,"connectOptions.ports"]));for(Y.uris=[],k=0;k<Y.hosts.length;k++){if("number"!=typeof Y.ports[k]||Y.ports[k]<0)throw new Error(i(o.INVALID_TYPE,[typeof Y.ports[k],"connectOptions.ports["+k+"]"]));var K=Y.hosts[k],C=Y.ports[k],f=-1!==K.indexOf(":");Y.uris.push(P="ws://"+(f?"["+K+"]":K)+":"+C+R)}}}ee.connect(Y)},this.subscribe=function(Y,Q){if("string"!=typeof Y)throw new Error("Invalid argument:"+Y);if(t(Q=Q||{},{qos:"number",invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),Q.timeout&&!Q.onFailure)throw new Error("subscribeOptions.timeout specified with no onFailure callback.");if(void 0!==Q.qos&&0!==Q.qos&&1!==Q.qos&&2!==Q.qos)throw new Error(i(o.INVALID_ARGUMENT,[Q.qos,"subscribeOptions.qos"]));ee.subscribe(Y,Q)},this.unsubscribe=function(Y,Q){if("string"!=typeof Y)throw new Error("Invalid argument:"+Y);if(t(Q=Q||{},{invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),Q.timeout&&!Q.onFailure)throw new Error("unsubscribeOptions.timeout specified with no onFailure callback.");ee.unsubscribe(Y,Q)},this.send=function(Y,Q,k,K){var C;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(Y instanceof u)&&"string"!=typeof Y)throw new Error("Invalid argument:"+typeof Y);if(void 0===(C=Y).destinationName)throw new Error(i(o.INVALID_ARGUMENT,[C.destinationName,"Message.destinationName"]));ee.send(C)}else(C=new u(Q)).destinationName=Y,arguments.length>=3&&(C.qos=k),arguments.length>=4&&(C.retained=K),ee.send(C)},this.publish=function(Y,Q,k,K){var C;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(Y instanceof u)&&"string"!=typeof Y)throw new Error("Invalid argument:"+typeof Y);if(void 0===(C=Y).destinationName)throw new Error(i(o.INVALID_ARGUMENT,[C.destinationName,"Message.destinationName"]));ee.send(C)}else(C=new u(Q)).destinationName=Y,arguments.length>=3&&(C.qos=k),arguments.length>=4&&(C.retained=K),ee.send(C)},this.disconnect=function(){ee.disconnect()},this.getTraceLog=function(){return ee.getTraceLog()},this.startTrace=function(){ee.startTrace()},this.stopTrace=function(){ee.stopTrace()},this.isConnected=function(){return ee.connected}},Message:u}}("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},18426:(J,I,s)=>{s(12885);var n=s(72338);"undefined"!=typeof window&&(window.AWS=n),J.exports=n,"undefined"!=typeof self&&(self.AWS=n)},83073:(J,I,s)=>{s(12885);var n=s(72338),y=n.Service,l=n.apiLoader;l.services.cognitoidentity={},n.CognitoIdentity=y.defineService("cognitoidentity",["2014-06-30"]),Object.defineProperty(l.services.cognitoidentity,"2014-06-30",{get:function(){var t=s(46933);return t.paginators=s(13428).o,t},enumerable:!0,configurable:!0}),J.exports=n.CognitoIdentity},84032:(J,I,s)=>{s(12885);var n=s(72338),y=n.Service,l=n.apiLoader;l.services.sts={},n.STS=y.defineService("sts",["2011-06-15"]),s(25974),Object.defineProperty(l.services.sts,"2011-06-15",{get:function(){var t=s(42369);return t.paginators=s(14819).o,t},enumerable:!0,configurable:!0}),J.exports=n.STS},29956:J=>{function I(s,n){if(!I.services.hasOwnProperty(s))throw new Error("InvalidService: Failed to load api for "+s);return I.services[s][n]}I.services={},J.exports=I},85856:(J,I,s)=>{var n=s(28325),y=s(24593),l=s(7095),e=s(288);J.exports={createHash:function(a){if("md5"===(a=a.toLowerCase()))return new y;if("sha256"===a)return new e;if("sha1"===a)return new l;throw new Error("Hash algorithm "+a+" is not supported in the browser SDK")},createHmac:function(a,o){if("md5"===(a=a.toLowerCase()))return new n(y,o);if("sha256"===a)return new n(e,o);if("sha1"===a)return new n(l,o);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")}}},75513:(J,I,s)=>{var n=s(2341).lW;"undefined"!=typeof ArrayBuffer&&void 0===ArrayBuffer.isView&&(ArrayBuffer.isView=function(t){return y.indexOf(Object.prototype.toString.call(t))>-1});var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];J.exports={isEmptyData:function(t){return"string"==typeof t?0===t.length:0===t.byteLength},convertToBuffer:function(t){return"string"==typeof t&&(t=new n(t,"utf8")),ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}}},28325:(J,I,s)=>{var n=s(75513);function y(e,t){this.hash=new e,this.outer=new e;var a=function(e,t){var a=n.convertToBuffer(t);if(a.byteLength>e.BLOCK_SIZE){var o=new e;o.update(a),a=o.digest()}var r=new Uint8Array(e.BLOCK_SIZE);return r.set(a),r}(e,t),o=new Uint8Array(e.BLOCK_SIZE);o.set(a);for(var r=0;r<e.BLOCK_SIZE;r++)a[r]^=54,o[r]^=92;for(this.hash.update(a),this.outer.update(o),r=0;r<a.byteLength;r++)a[r]=0}J.exports=y,y.prototype.update=function(e){if(n.isEmptyData(e)||this.error)return this;try{this.hash.update(n.convertToBuffer(e))}catch(t){this.error=t}return this},y.prototype.digest=function(e){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(e)}},24593:(J,I,s)=>{var n=s(75513),y=s(2341).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 o(g,p,T,S,b,A){return((p=(p+g&4294967295)+(S+A&4294967295)&4294967295)<<b|p>>>32-b)+T&4294967295}function r(g,p,T,S,b,A,x){return o(p&T|~p&S,g,p,b,A,x)}function i(g,p,T,S,b,A,x){return o(p&S|T&~S,g,p,b,A,x)}function c(g,p,T,S,b,A,x){return o(p^T^S,g,p,b,A,x)}function d(g,p,T,S,b,A,x){return o(T^(p|~S),g,p,b,A,x)}J.exports=a,a.BLOCK_SIZE=64,a.prototype.update=function(g){if(n.isEmptyData(g))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var p=n.convertToBuffer(g),T=0,S=p.byteLength;for(this.bytesHashed+=S;S>0;)this.buffer.setUint8(this.bufferLength++,p[T++]),S--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},a.prototype.digest=function(g){if(!this.finished){var p=this,T=p.buffer,S=p.bufferLength,A=8*p.bytesHashed;if(T.setUint8(this.bufferLength++,128),S%64>=56){for(var x=this.bufferLength;x<64;x++)T.setUint8(x,0);this.hashBuffer(),this.bufferLength=0}for(x=this.bufferLength;x<56;x++)T.setUint8(x,0);T.setUint32(56,A>>>0,!0),T.setUint32(60,Math.floor(A/4294967296),!0),this.hashBuffer(),this.finished=!0}var G=new DataView(new ArrayBuffer(16));for(x=0;x<4;x++)G.setUint32(4*x,this.state[x],!0);var W=new y(G.buffer,G.byteOffset,G.byteLength);return g?W.toString(g):W},a.prototype.hashBuffer=function(){var p=this.buffer,T=this.state,S=T[0],b=T[1],A=T[2],x=T[3];S=r(S,b,A,x,p.getUint32(0,!0),7,3614090360),x=r(x,S,b,A,p.getUint32(4,!0),12,3905402710),A=r(A,x,S,b,p.getUint32(8,!0),17,606105819),b=r(b,A,x,S,p.getUint32(12,!0),22,3250441966),S=r(S,b,A,x,p.getUint32(16,!0),7,4118548399),x=r(x,S,b,A,p.getUint32(20,!0),12,1200080426),A=r(A,x,S,b,p.getUint32(24,!0),17,2821735955),b=r(b,A,x,S,p.getUint32(28,!0),22,4249261313),S=r(S,b,A,x,p.getUint32(32,!0),7,1770035416),x=r(x,S,b,A,p.getUint32(36,!0),12,2336552879),A=r(A,x,S,b,p.getUint32(40,!0),17,4294925233),b=r(b,A,x,S,p.getUint32(44,!0),22,2304563134),S=r(S,b,A,x,p.getUint32(48,!0),7,1804603682),x=r(x,S,b,A,p.getUint32(52,!0),12,4254626195),A=r(A,x,S,b,p.getUint32(56,!0),17,2792965006),S=i(S,b=r(b,A,x,S,p.getUint32(60,!0),22,1236535329),A,x,p.getUint32(4,!0),5,4129170786),x=i(x,S,b,A,p.getUint32(24,!0),9,3225465664),A=i(A,x,S,b,p.getUint32(44,!0),14,643717713),b=i(b,A,x,S,p.getUint32(0,!0),20,3921069994),S=i(S,b,A,x,p.getUint32(20,!0),5,3593408605),x=i(x,S,b,A,p.getUint32(40,!0),9,38016083),A=i(A,x,S,b,p.getUint32(60,!0),14,3634488961),b=i(b,A,x,S,p.getUint32(16,!0),20,3889429448),S=i(S,b,A,x,p.getUint32(36,!0),5,568446438),x=i(x,S,b,A,p.getUint32(56,!0),9,3275163606),A=i(A,x,S,b,p.getUint32(12,!0),14,4107603335),b=i(b,A,x,S,p.getUint32(32,!0),20,1163531501),S=i(S,b,A,x,p.getUint32(52,!0),5,2850285829),x=i(x,S,b,A,p.getUint32(8,!0),9,4243563512),A=i(A,x,S,b,p.getUint32(28,!0),14,1735328473),S=c(S,b=i(b,A,x,S,p.getUint32(48,!0),20,2368359562),A,x,p.getUint32(20,!0),4,4294588738),x=c(x,S,b,A,p.getUint32(32,!0),11,2272392833),A=c(A,x,S,b,p.getUint32(44,!0),16,1839030562),b=c(b,A,x,S,p.getUint32(56,!0),23,4259657740),S=c(S,b,A,x,p.getUint32(4,!0),4,2763975236),x=c(x,S,b,A,p.getUint32(16,!0),11,1272893353),A=c(A,x,S,b,p.getUint32(28,!0),16,4139469664),b=c(b,A,x,S,p.getUint32(40,!0),23,3200236656),S=c(S,b,A,x,p.getUint32(52,!0),4,681279174),x=c(x,S,b,A,p.getUint32(0,!0),11,3936430074),A=c(A,x,S,b,p.getUint32(12,!0),16,3572445317),b=c(b,A,x,S,p.getUint32(24,!0),23,76029189),S=c(S,b,A,x,p.getUint32(36,!0),4,3654602809),x=c(x,S,b,A,p.getUint32(48,!0),11,3873151461),A=c(A,x,S,b,p.getUint32(60,!0),16,530742520),S=d(S,b=c(b,A,x,S,p.getUint32(8,!0),23,3299628645),A,x,p.getUint32(0,!0),6,4096336452),x=d(x,S,b,A,p.getUint32(28,!0),10,1126891415),A=d(A,x,S,b,p.getUint32(56,!0),15,2878612391),b=d(b,A,x,S,p.getUint32(20,!0),21,4237533241),S=d(S,b,A,x,p.getUint32(48,!0),6,1700485571),x=d(x,S,b,A,p.getUint32(12,!0),10,2399980690),A=d(A,x,S,b,p.getUint32(40,!0),15,4293915773),b=d(b,A,x,S,p.getUint32(4,!0),21,2240044497),S=d(S,b,A,x,p.getUint32(32,!0),6,1873313359),x=d(x,S,b,A,p.getUint32(60,!0),10,4264355552),A=d(A,x,S,b,p.getUint32(24,!0),15,2734768916),b=d(b,A,x,S,p.getUint32(52,!0),21,1309151649),S=d(S,b,A,x,p.getUint32(16,!0),6,4149444226),x=d(x,S,b,A,p.getUint32(44,!0),10,3174756917),A=d(A,x,S,b,p.getUint32(8,!0),15,718787259),b=d(b,A,x,S,p.getUint32(36,!0),21,3951481745),T[0]=S+T[0]&4294967295,T[1]=b+T[1]&4294967295,T[2]=A+T[2]&4294967295,T[3]=x+T[3]&4294967295}},7095:(J,I,s)=>{var n=s(2341).lW,y=s(75513);function r(){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),J.exports=r,r.BLOCK_SIZE=64,r.prototype.update=function(i){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(y.isEmptyData(i))return this;var c=(i=y.convertToBuffer(i)).length;this.totalLength+=8*c;for(var d=0;d<c;d++)this.write(i[d]);return this},r.prototype.write=function(c){this.block[this.offset]|=(255&c)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},r.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 c=24;c>=0;c-=8)this.write(this.totalLength>>c);var d=new n(20),g=new DataView(d.buffer);return g.setUint32(0,this.h0,!1),g.setUint32(4,this.h1,!1),g.setUint32(8,this.h2,!1),g.setUint32(12,this.h3,!1),g.setUint32(16,this.h4,!1),i?d.toString(i):d},r.prototype.processBlock=function(){for(var c=16;c<80;c++){var d=this.block[c-3]^this.block[c-8]^this.block[c-14]^this.block[c-16];this.block[c]=d<<1|d>>>31}var A,x,g=this.h0,p=this.h1,T=this.h2,S=this.h3,b=this.h4;for(c=0;c<80;c++){c<20?(A=S^p&(T^S),x=1518500249):c<40?(A=p^T^S,x=1859775393):c<60?(A=p&T|S&(p|T),x=2400959708):(A=p^T^S,x=3395469782);var G=(g<<5|g>>>27)+A+b+x+(0|this.block[c]);b=S,S=T,T=p<<30|p>>>2,p=g,g=G}for(this.h0=this.h0+g|0,this.h1=this.h1+p|0,this.h2=this.h2+T|0,this.h3=this.h3+S|0,this.h4=this.h4+b|0,this.offset=0,c=0;c<16;c++)this.block[c]=0}},288:(J,I,s)=>{var n=s(2341).lW,y=s(75513),t=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]),o=Math.pow(2,53)-1;function r(){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}J.exports=r,r.BLOCK_SIZE=64,r.prototype.update=function(i){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(y.isEmptyData(i))return this;var c=0,d=(i=y.convertToBuffer(i)).byteLength;if(this.bytesHashed+=d,8*this.bytesHashed>o)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;d>0;)this.buffer[this.bufferLength++]=i[c++],d--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},r.prototype.digest=function(i){if(!this.finished){var c=8*this.bytesHashed,d=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),g=this.bufferLength;if(d.setUint8(this.bufferLength++,128),g%64>=56){for(var p=this.bufferLength;p<64;p++)d.setUint8(p,0);this.hashBuffer(),this.bufferLength=0}for(p=this.bufferLength;p<56;p++)d.setUint8(p,0);d.setUint32(56,Math.floor(c/4294967296),!0),d.setUint32(60,c),this.hashBuffer(),this.finished=!0}var T=new n(32);for(p=0;p<8;p++)T[4*p]=this.state[p]>>>24&255,T[4*p+1]=this.state[p]>>>16&255,T[4*p+2]=this.state[p]>>>8&255,T[4*p+3]=this.state[p]>>>0&255;return i?T.toString(i):T},r.prototype.hashBuffer=function(){for(var c=this.buffer,d=this.state,g=d[0],p=d[1],T=d[2],S=d[3],b=d[4],A=d[5],x=d[6],G=d[7],W=0;W<64;W++){if(W<16)this.temp[W]=(255&c[4*W])<<24|(255&c[4*W+1])<<16|(255&c[4*W+2])<<8|255&c[4*W+3];else{var H=this.temp[W-2];this.temp[W]=(((H>>>17|H<<15)^(H>>>19|H<<13)^H>>>10)+this.temp[W-7]|0)+((((H=this.temp[W-15])>>>7|H<<25)^(H>>>18|H<<14)^H>>>3)+this.temp[W-16]|0)}var w=(((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&A^~b&x)|0)+(G+(t[W]+this.temp[W]|0)|0)|0,u=((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+(g&p^g&T^p&T)|0;G=x,x=A,A=b,b=S+w|0,S=T,T=p,p=g,g=w+u|0}d[0]+=g,d[1]+=p,d[2]+=T,d[3]+=S,d[4]+=b,d[5]+=A,d[6]+=x,d[7]+=G}},12885:(J,I,s)=>{var n=s(84964);n.crypto.lib=s(85856),n.Buffer=s(2341).lW,n.url=s(73934),n.querystring=s(93143),n.realClock=s(43984),n.environment="js",n.createEventStream=s(67681).createEventStream,n.isBrowser=function(){return!0},n.isNode=function(){return!1};var y=s(72338);if(J.exports=y,s(43981),s(92567),s(25658),s(54876),s(19e3),s(6932),s(21640),y.XML.Parser=s(681),s(68214),void 0===l)var l={browser:!0}},91654:(J,I,s)=>{var y,n=s(72338);s(43981),s(92567),n.Config=n.util.inherit({constructor:function(e){void 0===e&&(e={}),e=this.extractCredentials(e),n.util.each.call(this,this.keys,function(t,a){this.set(t,e[t],a)})},getCredentials:function(e){var c,t=this;function a(c){e(c,c?null:t.credentials)}function o(c,d){return new n.util.error(d||new Error,{code:"CredentialsError",message:c,name:"CredentialsError"})}t.credentials?"function"==typeof t.credentials.get?t.credentials.get(function(c){c&&(c=o("Could not load credentials from "+t.credentials.constructor.name,c)),a(c)}):(c=null,(!t.credentials.accessKeyId||!t.credentials.secretAccessKey)&&(c=o("Missing credentials")),a(c)):t.credentialProvider?t.credentialProvider.resolve(function(c,d){c&&(c=o("Could not load credentials from any providers",c)),t.credentials=d,a(c)}):a(o("No credentials to load"))},update:function(e,t){t=t||!1,e=this.extractCredentials(e),n.util.each.call(this,e,function(a,o){(t||Object.prototype.hasOwnProperty.call(this.keys,a)||n.Service.hasService(a))&&this.set(a,o)})},loadFromPath:function(e){this.clear();var t=JSON.parse(n.util.readFileSync(e)),a=new n.FileSystemCredentials(e),o=new n.CredentialProviderChain;return o.providers.unshift(a),o.resolve(function(r,i){if(r)throw r;t.credentials=i}),this.constructor(t),this},clear:function(){n.util.each.call(this,this.keys,function(e){delete this[e]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(e,t,a){void 0===t?(void 0===a&&(a=this.keys[e]),this[e]="function"==typeof a?a.call(this):a):this[e]="httpOptions"===e&&this[e]?n.util.merge(this[e],t):t},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(e){return e.accessKeyId&&e.secretAccessKey&&((e=n.util.copy(e)).credentials=new n.Credentials(e)),e},setPromisesDependency:function(e){y=e,null===e&&"function"==typeof Promise&&(y=Promise);var t=[n.Request,n.Credentials,n.CredentialProviderChain];n.S3&&(t.push(n.S3),n.S3.ManagedUpload&&t.push(n.S3.ManagedUpload)),n.util.addPromises(t,y)},getPromisesDependency:function(){return y}}),n.config=new n.Config},98914:(J,I,s)=>{var n=s(72338);function y(e,t){if("string"==typeof e){if(["legacy","regional"].indexOf(e.toLowerCase())>=0)return e.toLowerCase();throw n.util.error(new Error,t)}}J.exports=function(e,t){var a;if((e=e||{})[t.clientConfig]&&(a=y(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+e[t.clientConfig]+'".'}))||!n.util.isNode())return a;if(Object.prototype.hasOwnProperty.call(process.env,t.env)&&(a=y(process.env[t.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" or "regional". Got "'+process.env[t.env]+'".'})))return a;var r={};try{r=n.util.getProfilesFromSharedConfig(n.util.iniLoader)[process.env.AWS_PROFILE||n.util.defaultProfile]}catch(d){}return r&&Object.prototype.hasOwnProperty.call(r,t.sharedConfig)&&(a=y(r[t.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+r[t.sharedConfig]+'".'})),a}},72338:(J,I,s)=>{var n={util:s(84964)};({}).toString(),J.exports=n,n.util.update(n,{VERSION:"2.931.0",Signers:{},Protocol:{Json:s(80537),Query:s(78298),Rest:s(51888),RestJson:s(10673),RestXml:s(68683)},XML:{Builder:s(39244),Parser:null},JSON:{Builder:s(70720),Parser:s(46179)},Model:{Api:s(68734),Operation:s(65105),Shape:s(74822),Paginator:s(68140),ResourceWaiter:s(72820)},apiLoader:s(29956),EndpointCache:s(28937).$}),s(31893),s(70014),s(91654),s(99794),s(23758),s(60782),s(53871),s(11277),s(15198),s(65758),n.events=new n.SequentialExecutor,n.util.memoizedProperty(n,"endpointCache",function(){return new n.EndpointCache(n.config.endpointCacheSize)},!0)},43981:(J,I,s)=>{var n=s(72338);n.Credentials=n.util.inherit({constructor:function(){if(n.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=n.util.date.getDate().getTime(),e=new Date(l+1e3*this.expiryWindow);return!!(this.expireTime&&e>this.expireTime)||this.expired||!this.accessKeyId||!this.secretAccessKey},get:function(l){var e=this;this.needsRefresh()?this.refresh(function(t){t||(e.expired=!1),l&&l(t)}):l&&l()},refresh:function(l){this.expired=!1,l()},coalesceRefresh:function(l,e){var t=this;1===t.refreshCallbacks.push(l)&&t.load(function(o){n.util.arrayEach(t.refreshCallbacks,function(r){e?r(o):n.util.defer(function(){r(o)})}),t.refreshCallbacks.length=0})},load:function(l){l()}}),n.Credentials.addPromisesToClass=function(l){this.prototype.getPromise=n.util.promisifyMethod("get",l),this.prototype.refreshPromise=n.util.promisifyMethod("refresh",l)},n.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},n.util.addPromises(n.Credentials)},54876:(J,I,s)=>{var n=s(72338),y=s(84032);n.ChainableTemporaryCredentials=n.util.inherit(n.Credentials,{constructor:function(e){n.Credentials.call(this),e=e||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var t=n.util.copy(e.params)||{};if(t.RoleArn&&(t.RoleSessionName=t.RoleSessionName||"temporary-credentials"),t.SerialNumber){if(!e.tokenCodeFn||"function"!=typeof e.tokenCodeFn)throw new n.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=e.tokenCodeFn}var a=n.util.merge({params:t,credentials:e.masterCredentials||n.config.credentials},e.stsConfig||{});this.service=new y(a)},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this,a=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(o,r){var i={};o?e(o):(r&&(i.TokenCode=r),t.service[a](i,function(c,d){c||t.service.credentialsFrom(d,t),e(c)}))})},getTokenCode:function(e){var t=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(a,o){if(a){var r=a;return a instanceof Error&&(r=a.message),void e(n.util.error(new Error("Error fetching MFA token: "+r),{code:t.errorCode}))}e(null,o)}):e(null)}})},6932:(J,I,s)=>{var n=s(72338),y=s(83073),l=s(84032);n.CognitoIdentityCredentials=n.util.inherit(n.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(t,a){n.Credentials.call(this),this.expired=!0,this.params=t,this.data=null,this._identityId=null,this._clientConfig=n.util.copy(a||{}),this.loadCachedId();var o=this;Object.defineProperty(this,"identityId",{get:function(){return o.loadCachedId(),o._identityId||o.params.IdentityId},set:function(r){o._identityId=r}})},refresh:function(t){this.coalesceRefresh(t||n.util.fn.callback)},load:function(t){var a=this;a.createClients(),a.data=null,a._identityId=null,a.getId(function(o){o?(a.clearIdOnNotAuthorized(o),t(o)):a.params.RoleArn?a.getCredentialsFromSTS(t):a.getCredentialsForIdentity(t)})},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var t=this.params.IdentityPoolId,a=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+t+a],delete this.storage[this.localStorageKey.providers+t+a]},clearIdOnNotAuthorized:function(t){"NotAuthorizedException"==t.code&&this.clearCachedId()},getId:function(t){var a=this;if("string"==typeof a.params.IdentityId)return t(null,a.params.IdentityId);a.cognito.getId(function(o,r){!o&&r.IdentityId?(a.params.IdentityId=r.IdentityId,t(null,r.IdentityId)):t(o)})},loadCredentials:function(t,a){!t||!a||(a.expired=!1,a.accessKeyId=t.Credentials.AccessKeyId,a.secretAccessKey=t.Credentials.SecretKey,a.sessionToken=t.Credentials.SessionToken,a.expireTime=t.Credentials.Expiration)},getCredentialsForIdentity:function(t){var a=this;a.cognito.getCredentialsForIdentity(function(o,r){o?a.clearIdOnNotAuthorized(o):(a.cacheId(r),a.data=r,a.loadCredentials(a.data,a)),t(o)})},getCredentialsFromSTS:function(t){var a=this;a.cognito.getOpenIdToken(function(o,r){o?(a.clearIdOnNotAuthorized(o),t(o)):(a.cacheId(r),a.params.WebIdentityToken=r.Token,a.webIdentityCredentials.refresh(function(i){i||(a.data=a.webIdentityCredentials.data,a.sts.credentialsFrom(a.data,a)),t(i)}))})},loadCachedId:function(){var t=this;if(n.util.isBrowser()&&!t.params.IdentityId){var a=t.getStorage("id");if(a&&t.params.Logins){var o=Object.keys(t.params.Logins);0!==(t.getStorage("providers")||"").split(",").filter(function(c){return-1!==o.indexOf(c)}).length&&(t.params.IdentityId=a)}else a&&(t.params.IdentityId=a)}},createClients:function(){var e=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new n.WebIdentityCredentials(this.params,e),!this.cognito){var t=n.util.merge({},e);t.params=this.params,this.cognito=new y(t)}this.sts=this.sts||new l(e)},cacheId:function(t){this._identityId=t.IdentityId,this.params.IdentityId=this._identityId,n.util.isBrowser()&&(this.setStorage("id",t.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(t){return this.storage[this.localStorageKey[t]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(t,a){try{this.storage[this.localStorageKey[t]+this.params.IdentityPoolId+(this.params.LoginId||"")]=a}catch(o){}},storage:function(){try{var e=n.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return e["aws.test-storage"]="foobar",delete e["aws.test-storage"],e}catch(t){return{}}}()})},92567:(J,I,s)=>{var n=s(72338);n.CredentialProviderChain=n.util.inherit(n.Credentials,{constructor:function(l){this.providers=l||n.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(l){var e=this;if(0===e.providers.length)return l(new Error("No providers")),e;if(1===e.resolveCallbacks.push(l)){let r=function(i,c){if(!i&&c||t===a.length)return n.util.arrayEach(e.resolveCallbacks,function(g){g(i,c)}),void(e.resolveCallbacks.length=0);var d=a[t++];(c="function"==typeof d?d.call():d).get?c.get(function(g){r(g,g?null:c)}):r(null,c)};var t=0,a=e.providers.slice(0);r()}return e}}),n.CredentialProviderChain.defaultProviders=[],n.CredentialProviderChain.addPromisesToClass=function(l){this.prototype.resolvePromise=n.util.promisifyMethod("resolve",l)},n.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},n.util.addPromises(n.CredentialProviderChain)},21640:(J,I,s)=>{var n=s(72338),y=s(84032);n.SAMLCredentials=n.util.inherit(n.Credentials,{constructor:function(e){n.Credentials.call(this),this.expired=!0,this.params=e},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithSAML(function(a,o){a||t.service.credentialsFrom(o,t),e(a)})},createClients:function(){this.service=this.service||new y({params:this.params})}})},25658:(J,I,s)=>{var n=s(72338),y=s(84032);n.TemporaryCredentials=n.util.inherit(n.Credentials,{constructor:function(e,t){n.Credentials.call(this),this.loadMasterCredentials(t),this.expired=!0,this.params=e||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.masterCredentials.get(function(){t.service.config.credentials=t.masterCredentials,(t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken).call(t.service,function(o,r){o||t.service.credentialsFrom(r,t),e(o)})})},loadMasterCredentials:function(e){for(this.masterCredentials=e||n.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!=typeof this.masterCredentials.get&&(this.masterCredentials=new n.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new y({params:this.params})}})},19e3:(J,I,s)=>{var n=s(72338),y=s(84032);n.WebIdentityCredentials=n.util.inherit(n.Credentials,{constructor:function(e,t){n.Credentials.call(this),this.expired=!0,this.params=e,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=n.util.copy(t||{})},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithWebIdentity(function(a,o){t.data=null,a||(t.data=o,t.service.credentialsFrom(o,t)),e(a)})},createClients:function(){if(!this.service){var l=n.util.merge({},this._clientConfig);l.params=this.params,this.service=new y(l)}}})},73157:(J,I,s)=>{var n=s(72338),y=s(84964),l=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function e(b){var A=b.service,x=A.api||{},W={};return A.config.region&&(W.region=A.config.region),x.serviceId&&(W.serviceId=x.serviceId),A.config.credentials.accessKeyId&&(W.accessKeyId=A.config.credentials.accessKeyId),W}function t(b,A,x){!x||null==A||"structure"===x.type&&x.required&&x.required.length>0&&y.arrayEach(x.required,function(G){var W=x.members[G];!0===W.endpointDiscoveryId?b[W.isLocationName?W.name:G]=String(A[G]):t(b,A[G],W)})}function a(b,A){var x={};return t(x,b.params,A),x}function o(b){var A=b.service,x=A.api,G=x.operations?x.operations[b.operation]:void 0,H=a(b,G?G.input:void 0),B=e(b);Object.keys(H).length>0&&(B=y.update(B,H),G&&(B.operation=G.name));var m=n.endpointCache.get(B);if(!m||1!==m.length||""!==m[0].Address)if(m&&m.length>0)b.httpRequest.updateEndpoint(m[0].Address);else{var w=A.makeRequest(x.endpointOperation,{Operation:G.name,Identifiers:H});c(w),w.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),w.removeListener("retry",n.EventListeners.Core.RETRY_CHECK),n.endpointCache.put(B,[{Address:"",CachePeriodInMinutes:1}]),w.send(function(u,v){v&&v.Endpoints?n.endpointCache.put(B,v.Endpoints):u&&n.endpointCache.put(B,[{Address:"",CachePeriodInMinutes:1}])})}}var r={};function i(b,A){var x=b.service,G=x.api,W=G.operations?G.operations[b.operation]:void 0,B=a(b,W?W.input:void 0),m=e(b);Object.keys(B).length>0&&(m=y.update(m,B),W&&(m.operation=W.name));var w=n.EndpointCache.getKeyString(m),u=n.endpointCache.get(w);if(u&&1===u.length&&""===u[0].Address)return r[w]||(r[w]=[]),void r[w].push({request:b,callback:A});if(u&&u.length>0)b.httpRequest.updateEndpoint(u[0].Address),A();else{var v=x.makeRequest(G.endpointOperation,{Operation:W.name,Identifiers:B});v.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),c(v),n.endpointCache.put(w,[{Address:"",CachePeriodInMinutes:60}]),v.send(function(h,R){h?(b.response.error=y.error(h,{retryable:!1}),n.endpointCache.remove(m),r[w]&&(y.arrayEach(r[w],function(P){P.request.response.error=y.error(h,{retryable:!1}),P.callback()}),delete r[w])):R&&(n.endpointCache.put(w,R.Endpoints),b.httpRequest.updateEndpoint(R.Endpoints[0].Address),r[w])&&(y.arrayEach(r[w],function(U){U.request.httpRequest.updateEndpoint(R.Endpoints[0].Address),U.callback()}),delete r[w]),A()})}}function c(b){var x=b.service.api.apiVersion;x&&!b.httpRequest.headers["x-amz-api-version"]&&(b.httpRequest.headers["x-amz-api-version"]=x)}function d(b){var A=b.error;if(A&&("InvalidEndpointException"===A.code||421===b.httpResponse.statusCode)){var G=b.request,W=G.service.api.operations||{},B=a(G,W[G.operation]?W[G.operation].input:void 0),m=e(G);Object.keys(B).length>0&&(m=y.update(m,B),W[G.operation]&&(m.operation=W[G.operation].name)),n.endpointCache.remove(m)}}function p(b){return["false","0"].indexOf(b)>=0}J.exports={discoverEndpoint:function(b,A){var x=b.service||{};if(function(b){if(b._originalConfig&&b._originalConfig.endpoint&&!0===b._originalConfig.endpointDiscoveryEnabled)throw y.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});return Boolean(n.config.endpoint||(n.config[b.serviceIdentifier]||{}).endpoint||b._originalConfig&&b._originalConfig.endpoint)}(x)||b.isPresigned())return A();var W=(x.api.operations||{})[b.operation],H=W?W.endpointDiscoveryRequired:"NULL",B=function(b){var A=b.service||{};if(void 0!==A.config.endpointDiscoveryEnabled)return A.config.endpointDiscoveryEnabled;if(!y.isBrowser()){for(var x=0;x<l.length;x++){var G=l[x];if(Object.prototype.hasOwnProperty.call(process.env,G)){if(""===process.env[G]||void 0===process.env[G])throw y.error(new Error,{code:"ConfigurationException",message:"environmental variable "+G+" cannot be set to nothing"});return!p(process.env[G])}}var W={};try{W=n.util.iniLoader?n.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[n.util.sharedConfigFileEnv]}):{}}catch(B){}var H=W[process.env.AWS_PROFILE||n.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(H,"endpoint_discovery_enabled")){if(void 0===H.endpoint_discovery_enabled)throw y.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!p(H.endpoint_discovery_enabled)}}}(b),m=x.api.hasRequiredEndpointDiscovery;switch((B||m)&&b.httpRequest.appendToUserAgent("endpoint-discovery"),H){case"OPTIONAL":(B||m)&&(o(b),b.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",d)),A();break;case"REQUIRED":if(!1===B){b.response.error=y.error(new Error,{code:"ConfigurationException",message:"Endpoint Discovery is disabled but "+x.api.className+"."+b.operation+"() requires it. Please check your configurations."}),A();break}b.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",d),i(b,A);break;case"NULL":default:A()}},requiredDiscoverEndpoint:i,optionalDiscoverEndpoint:o,marshallCustomIdentifiers:a,getCacheKey:e,invalidateCachedEndpoint:d}},67681:(J,I,s)=>{var n=s(36262).eventMessageChunker,y=s(26505).parseEvent;J.exports={createEventStream:function(e,t,a){for(var o=n(e),r=[],i=0;i<o.length;i++)r.push(y(t,o[i],a));return r}}},36262:J=>{J.exports={eventMessageChunker:function(s){for(var n=[],y=0;y<s.length;){var l=s.readInt32BE(y),e=s.slice(y,l+y);y+=l,n.push(e)}return n}}},57976:(J,I,s)=>{var n=s(72338).util,y=n.buffer.toBuffer;function l(t){if(8!==t.length)throw new Error("Int64 buffers must be exactly 8 bytes");n.Buffer.isBuffer(t)||(t=y(t)),this.bytes=t}function e(t){for(var a=0;a<8;a++)t[a]^=255;for(a=7;a>-1&&(t[a]++,0===t[a]);a--);}l.fromNumber=function(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw new Error(t+" is too large (or, if negative, too small) to represent as an Int64");for(var a=new Uint8Array(8),o=7,r=Math.abs(Math.round(t));o>-1&&r>0;o--,r/=256)a[o]=r;return t<0&&e(a),new l(a)},l.prototype.valueOf=function(){var t=this.bytes.slice(0),a=128&t[0];return a&&e(t),parseInt(t.toString("hex"),16)*(a?-1:1)},l.prototype.toString=function(){return String(this.valueOf())},J.exports={Int64:l}},26505:(J,I,s)=>{var n=s(86147).parseMessage;J.exports={parseEvent:function(e,t,a){var o=n(t),r=o.headers[":message-type"];if(r){if("error"===r.value)throw function(e){var t=e.headers[":error-code"],a=e.headers[":error-message"],o=new Error(a.value||a);return o.code=o.name=t.value||t,o}(o);if("event"!==r.value)return}var i=o.headers[":event-type"],c=a.members[i.value];if(c){var d={},g=c.eventPayloadMemberName;if(g){var p=c.members[g];d[g]="binary"===p.type?o.body:e.parse(o.body.toString(),p)}for(var T=c.eventHeaderMemberNames,S=0;S<T.length;S++){var b=T[S];o.headers[b]&&(d[b]=c.members[b].toType(o.headers[b].value))}var A={};return A[i.value]=d,A}}}},86147:(J,I,s)=>{var n=s(57976).Int64,y=s(30483).splitMessage,l="boolean";function g(T){for(var S={},b=0;b<T.length;){var A=T.readUInt8(b++),x=T.slice(b,b+A).toString();switch(b+=A,T.readUInt8(b++)){case 0:S[x]={type:l,value:!0};break;case 1:S[x]={type:l,value:!1};break;case 2:S[x]={type:"byte",value:T.readInt8(b++)};break;case 3:S[x]={type:"short",value:T.readInt16BE(b)},b+=2;break;case 4:S[x]={type:"integer",value:T.readInt32BE(b)},b+=4;break;case 5:S[x]={type:"long",value:new n(T.slice(b,b+8))},b+=8;break;case 6:var G=T.readUInt16BE(b);S[x]={type:"binary",value:T.slice(b+=2,b+G)},b+=G;break;case 7:var W=T.readUInt16BE(b);S[x]={type:"string",value:T.slice(b+=2,b+W).toString()},b+=W;break;case 8:S[x]={type:"timestamp",value:new Date(new n(T.slice(b,b+8)).valueOf())},b+=8;break;case 9:var H=T.slice(b,b+16).toString("hex");b+=16,S[x]={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 S}J.exports={parseMessage:function(T){var S=y(T);return{headers:g(S.headers),body:S.body}}}},30483:(J,I,s)=>{var n=s(72338).util,y=n.buffer.toBuffer;J.exports={splitMessage:function(r){if(n.Buffer.isBuffer(r)||(r=y(r)),r.length<16)throw new Error("Provided message too short to accommodate event stream message overhead");if(r.length!==r.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var i=r.readUInt32BE(8);if(i!==n.crypto.crc32(r.slice(0,8)))throw new Error("The prelude checksum specified in the message ("+i+") does not match the calculated CRC32 checksum.");var c=r.readUInt32BE(r.length-4);if(c!==n.crypto.crc32(r.slice(0,r.length-4)))throw new Error("The message checksum did not match the expected value of "+c);var g=12+r.readUInt32BE(4);return{headers:r.slice(12,g),body:r.slice(g,r.length-4)}}}},23758:(J,I,s)=>{var n=s(72338),y=s(31893),l=s(73157).discoverEndpoint;n.EventListeners={Core:{}},n.EventListeners={Core:(new y).addNamedListeners(function(t,a){a("VALIDATE_CREDENTIALS","validate",function(i,c){if(!i.service.api.signatureVersion&&!i.service.config.signatureVersion)return c();i.service.config.getCredentials(function(d){d&&(i.response.error=n.util.error(d,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),c()})}),t("VALIDATE_REGION","validate",function(i){if(!i.service.isGlobalEndpoint){var c=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);i.service.config.region?c.test(i.service.config.region)||(i.response.error=n.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):i.response.error=n.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}}),t("BUILD_IDEMPOTENCY_TOKENS","validate",function(i){if(i.service.api.operations){var c=i.service.api.operations[i.operation];if(c){var d=c.idempotentMembers;if(d.length){for(var g=n.util.copy(i.params),p=0,T=d.length;p<T;p++)g[d[p]]||(g[d[p]]=n.util.uuid.v4());i.params=g}}}}),t("VALIDATE_PARAMETERS","validate",function(i){if(i.service.api.operations){var c=i.service.api.operations[i.operation].input;new n.ParamValidator(i.service.config.paramValidation).validate(c,i.params)}}),t("COMPUTE_CHECKSUM","afterBuild",function(i){if(i.service.api.operations){var c=i.service.api.operations[i.operation];if(c){var d=i.httpRequest.body,g=d&&(n.util.Buffer.isBuffer(d)||"string"==typeof d),p=i.httpRequest.headers;if(c.httpChecksumRequired&&i.service.config.computeChecksums&&g&&i.service.getSignerClass(i)===n.Signers.V4&&!p["Content-MD5"]){var T=n.util.crypto.md5(d,"base64");p["Content-MD5"]=T}}}}),a("COMPUTE_SHA256","afterBuild",function(i,c){if(i.haltHandlersOnError(),i.service.api.operations){var d=i.service.api.operations[i.operation],g=d?d.authtype:"";if(!i.service.api.signatureVersion&&!g&&!i.service.config.signatureVersion)return c();if(i.service.getSignerClass(i)===n.Signers.V4){var p=i.httpRequest.body||"";if(g.indexOf("unsigned-body")>=0)return i.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",c();n.util.computeSha256(p,function(T,S){T?c(T):(i.httpRequest.headers["X-Amz-Content-Sha256"]=S,c())})}else c()}}),t("SET_CONTENT_LENGTH","afterBuild",function(i){var c=function(t){if(!t.service.api.operations)return"";var a=t.service.api.operations[t.operation];return a?a.authtype:""}(i),d=n.util.getRequestPayloadShape(i);if(void 0===i.httpRequest.headers["Content-Length"])try{var g=n.util.string.byteLength(i.httpRequest.body);i.httpRequest.headers["Content-Length"]=g}catch(p){if(d&&d.isStreaming){if(d.requiresLength)throw p;if(c.indexOf("unsigned-body")>=0)return void(i.httpRequest.headers["Transfer-Encoding"]="chunked");throw p}throw p}}),t("SET_HTTP_HOST","afterBuild",function(i){i.httpRequest.headers.Host=i.httpRequest.endpoint.host}),t("RESTART","restart",function(){var i=this.response.error;!i||!i.retryable||(this.httpRequest=new n.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",l,!0),a("SIGN","sign",function(i,c){var d=i.service,p=(i.service.api.operations||{})[i.operation];if(!(d.api.signatureVersion||p&&p.authtype||d.config.signatureVersion))return c();d.config.getCredentials(function(S,b){if(S)return i.response.error=S,c();try{var A=d.getSkewCorrectedDate(),G=new(d.getSignerClass(i))(i.httpRequest,d.getSigningName(i),{signatureCache:d.config.signatureCache,operation:p,signatureVersion:d.api.signatureVersion});G.setServiceClientId(d._clientId),delete i.httpRequest.headers.Authorization,delete i.httpRequest.headers.Date,delete i.httpRequest.headers["X-Amz-Date"],G.addAuthorization(b,A),i.signedAt=A}catch(W){i.response.error=W}c()})}),t("VALIDATE_RESPONSE","validateResponse",function(i){this.service.successfulResponse(i,this)?(i.data={},i.error=null):(i.data=null,i.error=n.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))}),a("SEND","send",function(i,c){function d(b){i.httpResponse.stream=b;var A=i.request.httpRequest.stream,x=i.request.service,H=x.api.operations[i.request.operation]||{};b.on("headers",function(m,w,u){if(i.request.emit("httpHeaders",[m,w,i,u]),!i.httpResponse.streaming)if(2===n.HttpClient.streamsApiVersion){if(H.hasEventOutput&&x.successfulResponse(i))return i.request.emit("httpDone"),void c();b.on("readable",function(){var h=b.read();null!==h&&i.request.emit("httpData",[h,i])})}else b.on("data",function(h){i.request.emit("httpData",[h,i])})}),b.on("end",function(){if(!A||!A.didCallback){if(2===n.HttpClient.streamsApiVersion&&H.hasEventOutput&&x.successfulResponse(i))return;i.request.emit("httpDone"),c()}})}function p(b){"RequestAbortedError"!==b.code&&(b=n.util.error(b,{code:"TimeoutError"===b.code?b.code:"NetworkingError",region:i.request.httpRequest.region,hostname:i.request.httpRequest.endpoint.hostname,retryable:!0})),i.error=b,i.request.emit("httpError",[i.error,i],function(){c()})}function T(){var b=n.HttpClient.getInstance(),A=i.request.service.config.httpOptions||{};try{!function(b){b.on("sendProgress",function(x){i.request.emit("httpUploadProgress",[x,i])}),b.on("receiveProgress",function(x){i.request.emit("httpDownloadProgress",[x,i])})}(b.handleRequest(i.request.httpRequest,A,d,p))}catch(G){p(G)}}i.httpResponse._abortCallback=c,i.error=null,i.data=null,(i.request.service.getSkewCorrectedDate()-this.signedAt)/1e3>=600?this.emit("sign",[this],function(b){b?c(b):T()}):T()}),t("HTTP_HEADERS","httpHeaders",function(i,c,d,g){d.httpResponse.statusCode=i,d.httpResponse.statusMessage=g,d.httpResponse.headers=c,d.httpResponse.body=n.util.buffer.toBuffer(""),d.httpResponse.buffers=[],d.httpResponse.numBytes=0;var p=c.date||c.Date,T=d.request.service;if(p){var S=Date.parse(p);T.config.correctClockSkew&&T.isClockSkewed(S)&&T.applyClockOffset(S)}}),t("HTTP_DATA","httpData",function(i,c){i&&(n.util.isNode()&&(c.httpResponse.numBytes+=i.length,c.request.emit("httpDownloadProgress",[{loaded:c.httpResponse.numBytes,total:c.httpResponse.headers["content-length"]},c])),c.httpResponse.buffers.push(n.util.buffer.toBuffer(i)))}),t("HTTP_DONE","httpDone",function(i){if(i.httpResponse.buffers&&i.httpResponse.buffers.length>0){var c=n.util.buffer.concat(i.httpResponse.buffers);i.httpResponse.body=c}delete i.httpResponse.numBytes,delete i.httpResponse.buffers}),t("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)))}),t("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}}),t("EXPIRED_SIGNATURE","retry",function(i){var c=i.error;!c||"string"==typeof c.code&&"string"==typeof c.message&&c.code.match(/Signature/)&&c.message.match(/expired/)&&(i.error.retryable=!0)}),t("CLOCK_SKEWED","retry",function(i){!i.error||this.service.clockSkewError(i.error)&&this.service.config.correctClockSkew&&(i.error.retryable=!0)}),t("REDIRECT","retry",function(i){i.error&&i.error.statusCode>=300&&i.error.statusCode<400&&i.httpResponse.headers.location&&(this.httpRequest.endpoint=new n.Endpoint(i.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,i.error.redirect=!0,i.error.retryable=!0)}),t("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,c){var d,g=!1;i.error&&(d=i.error.retryDelay||0,i.error.retryable&&i.retryCount<i.maxRetries?(i.retryCount++,g=!0):i.error.redirect&&i.redirectCount<i.maxRedirects&&(i.redirectCount++,g=!0)),g&&d>=0?(i.error=null,setTimeout(c,d)):c()})}),CorePost:(new y).addNamedListeners(function(t){t("EXTRACT_REQUEST_ID","extractData",n.util.extractRequestId),t("EXTRACT_REQUEST_ID","extractError",n.util.extractRequestId),t("ENOTFOUND_ERROR","httpError",function(o){var c;"NetworkingError"===o.code&&("ENOTFOUND"===(c=o).errno||"number"==typeof c.errno&&"function"==typeof n.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(n.util.getSystemErrorName(c.errno)>=0))&&(this.response.error=n.util.error(new Error("Inaccessible host: `"+o.hostname+"'. This service may not be available in the `"+o.region+"' region."),{code:"UnknownEndpoint",region:o.region,hostname:o.hostname,retryable:!0,originalError:o}))})}),Logger:(new y).addNamedListeners(function(t){t("LOG_REQUEST","complete",function(o){var r=o.request,i=r.service.config.logger;if(i){var g=function(){var T=(o.request.service.getSkewCorrectedDate().getTime()-r.startTime.getTime())/1e3,S=!!i.isTTY,b=o.httpResponse.statusCode,A=r.params;r.service.api.operations&&r.service.api.operations[r.operation]&&r.service.api.operations[r.operation].input&&(A=c(r.service.api.operations[r.operation].input,r.params));var G=s(55620).inspect(A,!0,null),W="";return S&&(W+="\x1b[33m"),W+="[AWS "+r.service.serviceIdentifier+" "+b,W+=" "+T.toString()+"s "+o.retryCount+" retries]",S&&(W+="\x1b[0;1m"),W+=" "+n.util.string.lowerFirst(r.operation),W+="("+G+")",S&&(W+="\x1b[0m"),W}();"function"==typeof i.log?i.log(g):"function"==typeof i.write&&i.write(g+"\n")}function c(p,T){if(!T)return T;if(p.isSensitive)return"***SensitiveInformation***";switch(p.type){case"structure":var S={};return n.util.each(T,function(x,G){S[x]=Object.prototype.hasOwnProperty.call(p.members,x)?c(p.members[x],G):G}),S;case"list":var b=[];return n.util.arrayEach(T,function(x,G){b.push(c(p.member,x))}),b;case"map":var A={};return n.util.each(T,function(x,G){A[x]=c(p.value,G)}),A;default:return T}}})}),Json:(new y).addNamedListeners(function(t){var a=s(80537);t("BUILD","build",a.buildRequest),t("EXTRACT_DATA","extractData",a.extractData),t("EXTRACT_ERROR","extractError",a.extractError)}),Rest:(new y).addNamedListeners(function(t){var a=s(51888);t("BUILD","build",a.buildRequest),t("EXTRACT_DATA","extractData",a.extractData),t("EXTRACT_ERROR","extractError",a.extractError)}),RestJson:(new y).addNamedListeners(function(t){var a=s(10673);t("BUILD","build",a.buildRequest),t("EXTRACT_DATA","extractData",a.extractData),t("EXTRACT_ERROR","extractError",a.extractError)}),RestXml:(new y).addNamedListeners(function(t){var a=s(68683);t("BUILD","build",a.buildRequest),t("EXTRACT_DATA","extractData",a.extractData),t("EXTRACT_ERROR","extractError",a.extractError)}),Query:(new y).addNamedListeners(function(t){var a=s(78298);t("BUILD","build",a.buildRequest),t("EXTRACT_DATA","extractData",a.extractData),t("EXTRACT_ERROR","extractError",a.extractError)})}},99794:(J,I,s)=>{var n=s(72338),y=n.util.inherit;n.Endpoint=y({constructor:function(e,t){if(n.util.hideProperties(this,["slashes","auth","hash","search","query"]),null==e)throw new Error("Invalid endpoint: "+e);if("string"!=typeof e)return n.util.copy(e);e.match(/^http/)||(e=((t&&void 0!==t.sslEnabled?t.sslEnabled:n.config.sslEnabled)?"https":"http")+"://"+e),n.util.update(this,n.util.urlParse(e)),this.port=this.port?parseInt(this.port,10):"https:"===this.protocol?443:80}}),n.HttpRequest=y({constructor:function(e,t){e=new n.Endpoint(e),this.method="POST",this.path=e.path||"/",this.headers={},this.body="",this.endpoint=e,this.region=t,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=n.util.userAgent()},getUserAgentHeaderName:function(){return(n.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(e){"string"==typeof e&&e&&(this._userAgent+=" "+e),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var e=this.path.split("?",2)[1];return e?(e=n.util.queryStringParse(e),n.util.queryParamsToString(e)):""},updateEndpoint:function(e){var t=new n.Endpoint(e);this.endpoint=t,this.path=t.path||"/",this.headers.Host&&(this.headers.Host=t.host)}}),n.HttpResponse=y({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}}),n.HttpClient=y({}),n.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},68214:(J,I,s)=>{var n=s(72338),y=s(14943).EventEmitter;s(99794),n.XHRClient=n.util.inherit({handleRequest:function(e,t,a,o){var r=this,i=e.endpoint,c=new y,d=i.protocol+"//"+i.hostname;80!==i.port&&443!==i.port&&(d+=":"+i.port),d+=e.path;var g=new XMLHttpRequest,p=!1;e.stream=g,g.addEventListener("readystatechange",function(){try{if(0===g.status)return}catch(T){return}this.readyState>=this.HEADERS_RECEIVED&&!p&&(c.statusCode=g.status,c.headers=r.parseHeaders(g.getAllResponseHeaders()),c.emit("headers",c.statusCode,c.headers,g.statusText),p=!0),this.readyState===this.DONE&&r.finishRequest(g,c)},!1),g.upload.addEventListener("progress",function(T){c.emit("sendProgress",T)}),g.addEventListener("progress",function(T){c.emit("receiveProgress",T)},!1),g.addEventListener("timeout",function(){o(n.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),g.addEventListener("error",function(){o(n.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),g.addEventListener("abort",function(){o(n.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),a(c),g.open(e.method,d,!1!==t.xhrAsync),n.util.each(e.headers,function(T,S){"Content-Length"!==T&&"User-Agent"!==T&&"Host"!==T&&g.setRequestHeader(T,S)}),t.timeout&&!1!==t.xhrAsync&&(g.timeout=t.timeout),t.xhrWithCredentials&&(g.withCredentials=!0);try{g.responseType="arraybuffer"}catch(T){}try{e.body?g.send(e.body):g.send()}catch(T){if(!e.body||"object"!=typeof e.body.buffer)throw T;g.send(e.body.buffer)}return c},parseHeaders:function(e){var t={};return n.util.arrayEach(e.split(/\r?\n/),function(a){var o=a.split(":",1)[0],r=a.substring(o.length+2);o.length>0&&(t[o.toLowerCase()]=r)}),t},finishRequest:function(e,t){var a;if("arraybuffer"===e.responseType&&e.response){var o=e.response;a=new n.util.Buffer(o.byteLength);for(var r=new Uint8Array(o),i=0;i<a.length;++i)a[i]=r[i]}try{!a&&"string"==typeof e.responseText&&(a=new n.util.Buffer(e.responseText))}catch(c){}a&&t.emit("data",a),t.emit("end")}}),n.HttpClient.prototype=n.XHRClient.prototype,n.HttpClient.streamsApiVersion=1},70720:(J,I,s)=>{var n=s(84964);function y(){}function l(r,i){if(i&&null!=r)switch(i.type){case"structure":return function(r,i){var c={};return n.each(r,function(d,g){var p=i.members[d];if(p){if("body"!==p.location)return;var T=p.isLocationName?p.name:d,S=l(g,p);void 0!==S&&(c[T]=S)}}),c}(r,i);case"map":return function(r,i){var c={};return n.each(r,function(d,g){var p=l(g,i.value);void 0!==p&&(c[d]=p)}),c}(r,i);case"list":return function(r,i){var c=[];return n.arrayEach(r,function(d){var g=l(d,i.member);void 0!==g&&c.push(g)}),c}(r,i);default:return function(r,i){return i.toWireFormat(r)}(r,i)}}y.prototype.build=function(r,i){return JSON.stringify(l(r,i))},J.exports=y},46179:(J,I,s)=>{var n=s(84964);function y(){}function l(r,i){if(i&&void 0!==r)switch(i.type){case"structure":return function(r,i){if(null!=r){var c={};return n.each(i.members,function(g,p){var T=p.isLocationName?p.name:g;if(Object.prototype.hasOwnProperty.call(r,T)){var b=l(r[T],p);void 0!==b&&(c[g]=b)}}),c}}(r,i);case"map":return function(r,i){if(null!=r){var c={};return n.each(r,function(d,g){var p=l(g,i.value);c[d]=void 0===p?null:p}),c}}(r,i);case"list":return function(r,i){if(null!=r){var c=[];return n.arrayEach(r,function(d){var g=l(d,i.member);c.push(void 0===g?null:g)}),c}}(r,i);default:return function(r,i){return i.toType(r)}(r,i)}}y.prototype.parse=function(r,i){return l(JSON.parse(r),i)},J.exports=y},68734:(J,I,s)=>{var n=s(50767),y=s(65105),l=s(74822),e=s(68140),t=s(72820),a=s(65359),o=s(84964),r=o.property,i=o.memoizedProperty;J.exports=function(d,g){var p=this;d=d||{},(g=g||{}).api=this,d.metadata=d.metadata||{};var T=g.serviceIdentifier;delete g.serviceIdentifier,r(this,"isApi",!0,!1),r(this,"apiVersion",d.metadata.apiVersion),r(this,"endpointPrefix",d.metadata.endpointPrefix),r(this,"signingName",d.metadata.signingName),r(this,"globalEndpoint",d.metadata.globalEndpoint),r(this,"signatureVersion",d.metadata.signatureVersion),r(this,"jsonVersion",d.metadata.jsonVersion),r(this,"targetPrefix",d.metadata.targetPrefix),r(this,"protocol",d.metadata.protocol),r(this,"timestampFormat",d.metadata.timestampFormat),r(this,"xmlNamespaceUri",d.metadata.xmlNamespace),r(this,"abbreviation",d.metadata.serviceAbbreviation),r(this,"fullName",d.metadata.serviceFullName),r(this,"serviceId",d.metadata.serviceId),T&&a[T]&&r(this,"xmlNoDefaultLists",a[T].xmlNoDefaultLists,!1),i(this,"className",function(){var b=d.metadata.serviceAbbreviation||d.metadata.serviceFullName;return b?("ElasticLoadBalancing"===(b=b.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(b="ELB"),b):null}),r(this,"operations",new n(d.operations,g,function(b,A){return new y(b,A,g)},o.string.lowerFirst,function(b,A){!0===A.endpointoperation&&r(p,"endpointOperation",o.string.lowerFirst(b)),A.endpointdiscovery&&!p.hasRequiredEndpointDiscovery&&r(p,"hasRequiredEndpointDiscovery",!0===A.endpointdiscovery.required)})),r(this,"shapes",new n(d.shapes,g,function(b,A){return l.create(A,g)})),r(this,"paginators",new n(d.paginators,g,function(b,A){return new e(b,A,g)})),r(this,"waiters",new n(d.waiters,g,function(b,A){return new t(b,A,g)},o.string.lowerFirst)),g.documentation&&(r(this,"documentation",d.documentation),r(this,"documentationUrl",d.documentationUrl))}},50767:(J,I,s)=>{var n=s(84964).memoizedProperty;function y(e,t,a,o){n(this,o(e),function(){return a(e,t)})}J.exports=function(e,t,a,o,r){for(var c in o=o||String,e)Object.prototype.hasOwnProperty.call(e,c)&&(y.call(this,c,e[c],a,o),r&&r(c,e[c]))}},65105:(J,I,s)=>{var n=s(74822),y=s(84964),l=y.property,e=y.memoizedProperty;J.exports=function(o,r,i){var c=this;i=i||{},l(this,"name",r.name||o),l(this,"api",i.api,!1),r.http=r.http||{},l(this,"endpoint",r.endpoint),l(this,"httpMethod",r.http.method||"POST"),l(this,"httpPath",r.http.requestUri||"/"),l(this,"authtype",r.authtype||""),l(this,"endpointDiscoveryRequired",r.endpointdiscovery?r.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL"),l(this,"httpChecksumRequired",r.httpChecksumRequired,!1),e(this,"input",function(){return r.input?n.create(r.input,i):new n.create({type:"structure"},i)}),e(this,"output",function(){return r.output?n.create(r.output,i):new n.create({type:"structure"},i)}),e(this,"errors",function(){var d=[];if(!r.errors)return null;for(var g=0;g<r.errors.length;g++)d.push(n.create(r.errors[g],i));return d}),e(this,"paginator",function(){return i.api.paginators[o]}),i.documentation&&(l(this,"documentation",r.documentation),l(this,"documentationUrl",r.documentationUrl)),e(this,"idempotentMembers",function(){var d=[],g=c.input,p=g.members;if(!g.members)return d;for(var T in p)!p.hasOwnProperty(T)||!0===p[T].isIdempotent&&d.push(T);return d}),e(this,"hasEventOutput",function(){return function(o){var r=o.members,i=o.payload;if(!o.members)return!1;if(i)return r[i].isEventStream;for(var d in r)if(!r.hasOwnProperty(d)&&!0===r[d].isEventStream)return!0;return!1}(c.output)})}},68140:(J,I,s)=>{var n=s(84964).property;J.exports=function(l,e){n(this,"inputToken",e.input_token),n(this,"limitKey",e.limit_key),n(this,"moreResults",e.more_results),n(this,"outputToken",e.output_token),n(this,"resultKey",e.result_key)}},72820:(J,I,s)=>{var n=s(84964),y=n.property;J.exports=function(e,t,a){a=a||{},y(this,"name",e),y(this,"api",a.api,!1),t.operation&&y(this,"operation",n.string.lowerFirst(t.operation));var o=this;["type","description","delay","maxAttempts","acceptors"].forEach(function(i){var c=t[i];c&&y(o,i,c)})}},74822:(J,I,s)=>{var n=s(50767),y=s(84964);function l(A,x,G){null!=G&&y.property.apply(this,arguments)}function e(A,x){A.constructor.prototype[x]||y.memoizedProperty.apply(this,arguments)}function t(A,x,G){x=x||{},l(this,"shape",A.shape),l(this,"api",x.api,!1),l(this,"type",A.type),l(this,"enum",A.enum),l(this,"min",A.min),l(this,"max",A.max),l(this,"pattern",A.pattern),l(this,"location",A.location||this.location||"body"),l(this,"name",this.name||A.xmlName||A.queryName||A.locationName||G),l(this,"isStreaming",A.streaming||this.isStreaming||!1),l(this,"requiresLength",A.requiresLength,!1),l(this,"isComposite",A.isComposite||!1),l(this,"isShape",!0,!1),l(this,"isQueryName",Boolean(A.queryName),!1),l(this,"isLocationName",Boolean(A.locationName),!1),l(this,"isIdempotent",!0===A.idempotencyToken),l(this,"isJsonValue",!0===A.jsonvalue),l(this,"isSensitive",!0===A.sensitive||A.prototype&&!0===A.prototype.sensitive),l(this,"isEventStream",Boolean(A.eventstream),!1),l(this,"isEvent",Boolean(A.event),!1),l(this,"isEventPayload",Boolean(A.eventpayload),!1),l(this,"isEventHeader",Boolean(A.eventheader),!1),l(this,"isTimestampFormatSet",Boolean(A.timestampFormat)||A.prototype&&!0===A.prototype.isTimestampFormatSet,!1),l(this,"endpointDiscoveryId",Boolean(A.endpointdiscoveryid),!1),l(this,"hostLabel",Boolean(A.hostLabel),!1),x.documentation&&(l(this,"documentation",A.documentation),l(this,"documentationUrl",A.documentationUrl)),A.xmlAttribute&&l(this,"isXmlAttribute",A.xmlAttribute||!1),l(this,"defaultValue",null),this.toWireFormat=function(W){return null==W?"":W},this.toType=function(W){return W}}function a(A){t.apply(this,arguments),l(this,"isComposite",!0),A.flattened&&l(this,"flattened",A.flattened||!1)}function o(A,x){var G=this,W=null,H=!this.isShape;a.apply(this,arguments),H&&(l(this,"defaultValue",function(){return{}}),l(this,"members",{}),l(this,"memberNames",[]),l(this,"required",[]),l(this,"isRequired",function(){return!1})),A.members&&(l(this,"members",new n(A.members,x,function(B,m){return t.create(m,x,B)})),e(this,"memberNames",function(){return A.xmlOrder||Object.keys(A.members)}),A.event&&(e(this,"eventPayloadMemberName",function(){for(var B=G.members,m=G.memberNames,w=0,u=m.length;w<u;w++)if(B[m[w]].isEventPayload)return m[w]}),e(this,"eventHeaderMemberNames",function(){for(var B=G.members,m=G.memberNames,w=[],u=0,v=m.length;u<v;u++)B[m[u]].isEventHeader&&w.push(m[u]);return w}))),A.required&&(l(this,"required",A.required),l(this,"isRequired",function(B){if(!W){W={};for(var m=0;m<A.required.length;m++)W[A.required[m]]=!0}return W[B]},!1,!0)),l(this,"resultWrapper",A.resultWrapper||null),A.payload&&l(this,"payload",A.payload),"string"==typeof A.xmlNamespace?l(this,"xmlNamespaceUri",A.xmlNamespace):"object"==typeof A.xmlNamespace&&(l(this,"xmlNamespacePrefix",A.xmlNamespace.prefix),l(this,"xmlNamespaceUri",A.xmlNamespace.uri))}function r(A,x){var G=this,W=!this.isShape;if(a.apply(this,arguments),W&&l(this,"defaultValue",function(){return[]}),A.member&&e(this,"member",function(){return t.create(A.member,x)}),this.flattened){var H=this.name;e(this,"name",function(){return G.member.name||H})}}function i(A,x){var G=!this.isShape;a.apply(this,arguments),G&&(l(this,"defaultValue",function(){return{}}),l(this,"key",t.create({type:"string"},x)),l(this,"value",t.create({type:"string"},x))),A.key&&e(this,"key",function(){return t.create(A.key,x)}),A.value&&e(this,"value",function(){return t.create(A.value,x)})}function d(){t.apply(this,arguments);var A=["rest-xml","query","ec2"];this.toType=function(x){return x=this.api&&A.indexOf(this.api.protocol)>-1?x||"":x,this.isJsonValue?JSON.parse(x):x&&"function"==typeof x.toString?x.toString():x},this.toWireFormat=function(x){return this.isJsonValue?JSON.stringify(x):x}}function T(){t.apply(this,arguments),this.toType=function(A){var x=y.base64.decode(A);if(this.isSensitive&&y.isNode()&&"function"==typeof y.Buffer.alloc){var G=y.Buffer.alloc(x.length,x);x.fill(0),x=G}return x},this.toWireFormat=y.base64.encode}function S(){T.apply(this,arguments)}function b(){t.apply(this,arguments),this.toType=function(A){return"boolean"==typeof A?A:null==A?null:"true"===A}}t.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},t.types={structure:o,list:r,map:i,boolean:b,timestamp:function(A){var x=this;if(t.apply(this,arguments),A.timestampFormat)l(this,"timestampFormat",A.timestampFormat);else if(x.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(G){return null==G?null:"function"==typeof G.toUTCString?G:"string"==typeof G||"number"==typeof G?y.date.parseTimestamp(G):null},this.toWireFormat=function(G){return y.date.format(G,x.timestampFormat)}},float:function(){t.apply(this,arguments),this.toType=function(A){return null==A?null:parseFloat(A)},this.toWireFormat=this.toType},integer:function(){t.apply(this,arguments),this.toType=function(A){return null==A?null:parseInt(A,10)},this.toWireFormat=this.toType},string:d,base64:S,binary:T},t.resolve=function(x,G){if(x.shape){var W=G.api.shapes[x.shape];if(!W)throw new Error("Cannot find shape reference: "+x.shape);return W}return null},t.create=function(x,G,W){if(x.isShape)return x;var H=t.resolve(x,G);if(H){var B=Object.keys(x);G.documentation||(B=B.filter(function(u){return!u.match(/documentation/)}));var m=function(){H.constructor.call(this,x,G,W)};return m.prototype=H,new m}x.type||(x.type=x.members?"structure":x.member?"list":x.key?"map":"string");var w=x.type;if(t.normalizedTypes[x.type]&&(x.type=t.normalizedTypes[x.type]),t.types[x.type])return new t.types[x.type](x,G,W);throw new Error("Unrecognized shape type: "+w)},t.shapes={StructureShape:o,ListShape:r,MapShape:i,StringShape:d,BooleanShape:b,Base64Shape:S},J.exports=t},65758:(J,I,s)=>{var n=s(72338);n.ParamValidator=n.util.inherit({constructor:function(l){(!0===l||void 0===l)&&(l={min:!0}),this.validation=l},validate:function(l,e,t){if(this.errors=[],this.validateMember(l,e||{},t||"params"),this.errors.length>1){var a=this.errors.join("\n* ");throw a="There were "+this.errors.length+" validation errors:\n* "+a,n.util.error(new Error(a),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(l,e){this.errors.push(n.util.error(new Error(e),{code:l}))},validateStructure:function(l,e,t){this.validateType(e,t,["object"],"structure");for(var a,o=0;l.required&&o<l.required.length;o++)null==e[a=l.required[o]]&&this.fail("MissingRequiredParameter","Missing required key '"+a+"' in "+t);for(a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=e[a],c=l.members[a];if(void 0!==c){var d=[t,a].join(".");this.validateMember(c,i,d)}else null!=i&&this.fail("UnexpectedParameter","Unexpected key '"+a+"' found in "+t)}return!0},validateMember:function(l,e,t){switch(l.type){case"structure":return this.validateStructure(l,e,t);case"list":return this.validateList(l,e,t);case"map":return this.validateMap(l,e,t);default:return this.validateScalar(l,e,t)}},validateList:function(l,e,t){if(this.validateType(e,t,[Array])){this.validateRange(l,e.length,t,"list member count");for(var a=0;a<e.length;a++)this.validateMember(l.member,e[a],t+"["+a+"]")}},validateMap:function(l,e,t){if(this.validateType(e,t,["object"],"map")){var a=0;for(var o in e)!Object.prototype.hasOwnProperty.call(e,o)||(this.validateMember(l.key,o,t+"[key='"+o+"']"),this.validateMember(l.value,e[o],t+"['"+o+"']"),a++);this.validateRange(l,a,t,"map member count")}},validateScalar:function(l,e,t){switch(l.type){case null:case void 0:case"string":return this.validateString(l,e,t);case"base64":case"binary":return this.validatePayload(e,t);case"integer":case"float":return this.validateNumber(l,e,t);case"boolean":return this.validateType(e,t,["boolean"]);case"timestamp":return this.validateType(e,t,[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 "+t)}},validateString:function(l,e,t){var a=["string"];l.isJsonValue&&(a=a.concat(["number","object","boolean"])),null!==e&&this.validateType(e,t,a)&&(this.validateEnum(l,e,t),this.validateRange(l,e.length,t,"string length"),this.validatePattern(l,e,t),this.validateUri(l,e,t))},validateUri:function(l,e,t){"uri"===l.location&&0===e.length&&this.fail("UriParameterError",'Expected uri parameter to have length >= 1, but found "'+e+'" for '+t)},validatePattern:function(l,e,t){this.validation.pattern&&void 0!==l.pattern&&(new RegExp(l.pattern).test(e)||this.fail("PatternMatchError",'Provided value "'+e+'" does not match regex pattern /'+l.pattern+"/ for "+t))},validateRange:function(l,e,t,a){this.validation.min&&void 0!==l.min&&e<l.min&&this.fail("MinRangeError","Expected "+a+" >= "+l.min+", but found "+e+" for "+t),this.validation.max&&void 0!==l.max&&e>l.max&&this.fail("MaxRangeError","Expected "+a+" <= "+l.max+", but found "+e+" for "+t)},validateEnum:function(l,e,t){this.validation.enum&&void 0!==l.enum&&-1===l.enum.indexOf(e)&&this.fail("EnumError","Found string value of "+e+", but expected "+l.enum.join("|")+" for "+t)},validateType:function(l,e,t,a){if(null==l)return!1;for(var o=!1,r=0;r<t.length;r++){if("string"==typeof t[r]){if(typeof l===t[r])return!0}else if(t[r]instanceof RegExp){if((l||"").toString().match(t[r]))return!0}else{if(l instanceof t[r]||n.util.isType(l,t[r]))return!0;!a&&!o&&(t=t.slice()),t[r]=n.util.typeName(t[r])}o=!0}var i=a;i||(i=t.join(", ").replace(/,([^,]+)$/,", or$1"));var c=i.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+e+" to be a"+c+" "+i),!1},validateNumber:function(l,e,t){if(null!=e){if("string"==typeof e){var a=parseFloat(e);a.toString()===e&&(e=a)}this.validateType(e,t,["number"])&&this.validateRange(l,e,t,"numeric value")}},validatePayload:function(l,e){if(null!=l&&"string"!=typeof l&&(!l||"number"!=typeof l.byteLength)){if(n.util.isNode()){var t=n.util.stream.Stream;if(n.util.Buffer.isBuffer(l)||l instanceof t)return}else if(void 0!==typeof Blob&&l instanceof Blob)return;var a=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(l)for(var o=0;o<a.length;o++)if(n.util.isType(l,a[o])||n.util.typeName(l.constructor)===a[o])return;this.fail("InvalidParameterType","Expected "+e+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},26545:(J,I,s)=>{var n=s(84964),y=s(72338);J.exports={populateHostPrefix:function(r){if(!r.service.config.hostPrefixEnabled)return r;var c=r.service.api.operations[r.operation];if(function(r){var i=r.service.api,c=i.operations[r.operation],d=i.endpointOperation&&i.endpointOperation===n.string.lowerFirst(c.name);return"NULL"!==c.endpointDiscoveryRequired||!0===d}(r))return r;if(c.endpoint&&c.endpoint.hostPrefix){var g=function(r,i,c){return n.each(c.members,function(d,g){if(!0===g.hostLabel){if("string"!=typeof i[d]||""===i[d])throw n.error(new Error,{message:"Parameter "+d+" should be a non-empty string.",code:"InvalidParameter"});var p=new RegExp("\\{"+d+"\\}","g");r=r.replace(p,i[d])}}),r}(c.endpoint.hostPrefix,r.params,c.input);(function(r,i){r.host&&(r.host=i+r.host),r.hostname&&(r.hostname=i+r.hostname)})(r.httpRequest.endpoint,g),function(r){var i=r.split("."),c=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;n.arrayEach(i,function(d){if(!d.length||d.length<1||d.length>63)throw n.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!c.test(d))throw y.util.error(new Error,{code:"ValidationError",message:d+" is not hostname compatible."})})}(r.httpRequest.endpoint.hostname)}return r}}},80537:(J,I,s)=>{var n=s(84964),y=s(70720),l=s(46179),e=s(26545).populateHostPrefix;J.exports={buildRequest:function(r){var i=r.httpRequest,c=r.service.api,d=c.targetPrefix+"."+c.operations[r.operation].name,g=c.jsonVersion||"1.0",p=c.operations[r.operation].input,T=new y;1===g&&(g="1.0"),i.body=T.build(r.params||{},p),i.headers["Content-Type"]="application/x-amz-json-"+g,i.headers["X-Amz-Target"]=d,e(r)},extractError:function(r){var i={},c=r.httpResponse;if(i.code=c.headers["x-amzn-errortype"]||"UnknownError","string"==typeof i.code&&(i.code=i.code.split(":")[0]),c.body.length>0)try{var d=JSON.parse(c.body.toString()),g=d.__type||d.code||d.Code;g&&(i.code=g.split("#").pop()),i.message="RequestEntityTooLarge"===i.code?"Request body must be less than 1 MB":d.message||d.Message||null}catch(p){i.statusCode=c.statusCode,i.message=c.statusMessage}else i.statusCode=c.statusCode,i.message=c.statusCode.toString();r.error=n.error(new Error,i)},extractData:function(r){var i=r.httpResponse.body.toString()||"{}";if(!1===r.request.service.config.convertResponseTypes)r.data=JSON.parse(i);else{var d=r.request.service.api.operations[r.request.operation].output||{},g=new l;r.data=g.parse(i,d)}}}},78298:(J,I,s)=>{var n=s(72338),y=s(84964),l=s(75277),e=s(74822),t=s(26545).populateHostPrefix;J.exports={buildRequest:function(i){var c=i.service.api.operations[i.operation],d=i.httpRequest;d.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",d.params={Version:i.service.api.apiVersion,Action:c.name},(new l).serialize(i.params,c.input,function(p,T){d.params[p]=T}),d.body=y.queryParamsToString(d.params),t(i)},extractError:function(i){var c,d=i.httpResponse.body.toString();if(d.match("<UnknownOperationException"))c={Code:"UnknownOperation",Message:"Unknown operation "+i.request.operation};else try{c=(new n.XML.Parser).parse(d)}catch(g){c={Code:i.httpResponse.statusCode,Message:i.httpResponse.statusMessage}}c.requestId&&!i.requestId&&(i.requestId=c.requestId),c.Errors&&(c=c.Errors),c.Error&&(c=c.Error),i.error=y.error(new Error,c.Code?{code:c.Code,message:c.Message}:{code:i.httpResponse.statusCode,message:null})},extractData:function(i){var c=i.request,g=c.service.api.operations[c.operation].output||{},p=g;if(p.resultWrapper){var T=e.create({type:"structure"});T.members[p.resultWrapper]=g,T.memberNames=[p.resultWrapper],y.property(g,"name",g.resultWrapper),g=T}var S=new n.XML.Parser;if(g&&g.members&&!g.members._XAMZRequestId){var b=e.create({type:"string"},{api:{protocol:"query"}},"requestId");g.members._XAMZRequestId=b}var A=S.parse(i.httpResponse.body.toString(),g);i.requestId=A._XAMZRequestId||A.requestId,A._XAMZRequestId&&delete A._XAMZRequestId,p.resultWrapper&&A[p.resultWrapper]&&(y.update(A,A[p.resultWrapper]),delete A[p.resultWrapper]),i.data=A}}},51888:(J,I,s)=>{var n=s(84964),y=s(26545).populateHostPrefix;function e(c,d,g,p){var T=[c,d].join("/");T=T.replace(/\/+/g,"/");var S={},b=!1;if(n.each(g.members,function(x,G){var W=p[x];if(null!=W)if("uri"===G.location){var H=new RegExp("\\{"+G.name+"(\\+)?\\}");T=T.replace(H,function(B,m){return(m?n.uriEscapePath:n.uriEscape)(String(W))})}else"querystring"===G.location&&(b=!0,"list"===G.type?S[G.name]=W.map(function(B){return n.uriEscape(G.member.toWireFormat(B).toString())}):"map"===G.type?n.each(W,function(B,m){S[B]=Array.isArray(m)?m.map(function(w){return n.uriEscape(String(w))}):n.uriEscape(String(m))}):S[G.name]=n.uriEscape(G.toWireFormat(W).toString()))}),b){T+=T.indexOf("?")>=0?"&":"?";var A=[];n.arrayEach(Object.keys(S).sort(),function(x){Array.isArray(S[x])||(S[x]=[S[x]]);for(var G=0;G<S[x].length;G++)A.push(n.uriEscape(String(x))+"="+S[x][G])}),T+=A.join("&")}return T}J.exports={buildRequest:function(c){(function(c){c.httpRequest.method=c.service.api.operations[c.operation].httpMethod})(c),function(c){var d=c.service.api.operations[c.operation],p=e(c.httpRequest.endpoint.path,d.httpPath,d.input,c.params);c.httpRequest.path=p}(c),function(c){n.each(c.service.api.operations[c.operation].input.members,function(g,p){var T=c.params[g];null!=T&&("headers"===p.location&&"map"===p.type?n.each(T,function(S,b){c.httpRequest.headers[p.name+S]=b}):"header"===p.location&&(T=p.toWireFormat(T).toString(),p.isJsonValue&&(T=n.base64.encode(T)),c.httpRequest.headers[p.name]=T))})}(c),y(c)},extractError:function(){},extractData:function(c){var d=c.request,g={},p=c.httpResponse,S=d.service.api.operations[d.operation].output,b={};n.each(p.headers,function(A,x){b[A.toLowerCase()]=x}),n.each(S.members,function(A,x){var G=(x.name||A).toLowerCase();if("headers"===x.location&&"map"===x.type){g[A]={};var H=new RegExp("^"+(x.isLocationName?x.name:"")+"(.+)","i");n.each(p.headers,function(m,w){var u=m.match(H);null!==u&&(g[A][u[1]]=w)})}else if("header"===x.location){if(void 0!==b[G]){var B=x.isJsonValue?n.base64.decode(b[G]):b[G];g[A]=x.toType(B)}}else"statusCode"===x.location&&(g[A]=parseInt(p.statusCode,10))}),c.data=g},generateURI:e}},10673:(J,I,s)=>{var n=s(84964),y=s(51888),l=s(80537),e=s(70720),t=s(46179);function o(d,g){d.httpRequest.headers["Content-Type"]||(d.httpRequest.headers["Content-Type"]=g?"binary/octet-stream":"application/json")}J.exports={buildRequest:function(d){y.buildRequest(d),["HEAD","DELETE"].indexOf(d.httpRequest.method)<0&&function(d){var g=new e,p=d.service.api.operations[d.operation].input;if(p.payload){var T,S=p.members[p.payload];if(void 0===(T=d.params[p.payload]))return;"structure"===S.type?(d.httpRequest.body=g.build(T,S),o(d)):(d.httpRequest.body=T,("binary"===S.type||S.isStreaming)&&o(d,!0))}else{var b=g.build(d.params,p);("{}"!==b||"GET"!==d.httpRequest.method)&&(d.httpRequest.body=b),o(d)}}(d)},extractError:function(d){l.extractError(d)},extractData:function(d){y.extractData(d);var g=d.request,T=g.service.api.operations[g.operation].output||{};if(T.payload){var A=T.members[T.payload],x=d.httpResponse.body;if(A.isEventStream)S=new t,d.data[payload]=n.createEventStream(2===AWS.HttpClient.streamsApiVersion?d.httpResponse.stream:x,S,A);else if("structure"===A.type||"list"===A.type){var S=new t;d.data[T.payload]=S.parse(x,A)}else d.data[T.payload]="binary"===A.type||A.isStreaming?x:A.toType(x)}else{var G=d.data;l.extractData(d),d.data=n.merge(G,d.data)}}}},68683:(J,I,s)=>{var n=s(72338),y=s(84964),l=s(51888);J.exports={buildRequest:function(r){l.buildRequest(r),["GET","HEAD"].indexOf(r.httpRequest.method)<0&&function(r){var i=r.service.api.operations[r.operation].input,c=new n.XML.Builder,d=r.params,g=i.payload;if(g){var p=i.members[g];if(void 0===(d=d[g]))return;r.httpRequest.body="structure"===p.type?c.toXML(d,p,p.name,!0):d}else r.httpRequest.body=c.toXML(d,i,i.name||i.shape||y.string.upperFirst(r.operation)+"Request")}(r)},extractError:function(r){var i;l.extractError(r);try{i=(new n.XML.Parser).parse(r.httpResponse.body.toString())}catch(c){i={Code:r.httpResponse.statusCode,Message:r.httpResponse.statusMessage}}i.Errors&&(i=i.Errors),i.Error&&(i=i.Error),r.error=y.error(new Error,i.Code?{code:i.Code,message:i.Message}:{code:r.httpResponse.statusCode,message:null})},extractData:function(r){l.extractData(r);var i,c=r.request,d=r.httpResponse.body,p=c.service.api.operations[c.operation].output,S=p.payload;if(S){var b=p.members[S];b.isEventStream?(i=new n.XML.Parser,r.data[S]=y.createEventStream(2===n.HttpClient.streamsApiVersion?r.httpResponse.stream:r.httpResponse.body,i,b)):"structure"===b.type?(i=new n.XML.Parser,r.data[S]=i.parse(d.toString(),b)):r.data[S]="binary"===b.type||b.isStreaming?d:b.toType(d)}else if(d.length>0){var A=(i=new n.XML.Parser).parse(d.toString(),p);y.update(r.data,A)}}}},75277:(J,I,s)=>{var n=s(84964);function y(){}function l(r){return r.isQueryName||"ec2"!==r.api.protocol?r.name:r.name[0].toUpperCase()+r.name.substr(1)}function e(r,i,c,d){n.each(c.members,function(g,p){var T=i[g];if(null!=T){var S=l(p);o(S=r?r+"."+S:S,T,p,d)}})}function o(r,i,c,d){null!=i&&("structure"===c.type?e(r,i,c,d):"list"===c.type?function(r,i,c,d){var g=c.member||{};0!==i.length?n.arrayEach(i,function(p,T){var S="."+(T+1);if("ec2"===c.api.protocol)S+="";else if(c.flattened){if(g.name){var b=r.split(".");b.pop(),b.push(l(g)),r=b.join(".")}}else S="."+(g.name?g.name:"member")+S;o(r+S,p,g,d)}):d.call(this,r,null)}(r,i,c,d):"map"===c.type?function(r,i,c,d){var g=1;n.each(i,function(p,T){var b=(c.flattened?".":".entry.")+g+++".",x=b+(c.value.name||"value");o(r+(b+(c.key.name||"key")),p,c.key,d),o(r+x,T,c.value,d)})}(r,i,c,d):d(r,c.toWireFormat(i).toString()))}y.prototype.serialize=function(r,i,c){e("",r,i,c)},J.exports=y},43984:J=>{J.exports={now:function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}}},32313:(J,I,s)=>{var n=s(84964),y=s(50261);function t(r,i){n.each(i,function(c,d){"globalEndpoint"!==c&&null==r.config[c]&&(r.config[c]=d)})}J.exports={configureEndpoint:function(r){for(var i=function(r){var i=r.config.region,c=function(r){if(!r)return null;var i=r.split("-");return i.length<3?null:i.slice(0,i.length-2).join("-")+"-*"}(i),d=r.api.endpointPrefix;return[[i,d],[c,d],[i,"*"],[c,"*"],["*",d],["*","*"]].map(function(g){return g[0]&&g[1]?g.join("/"):null})}(r),c=0;c<i.length;c++){var d=i[c];if(d&&Object.prototype.hasOwnProperty.call(y.rules,d)){var g=y.rules[d];return"string"==typeof g&&(g=y.patterns[g]),r.config.useDualstack&&n.isDualstackAvailable(r)&&((g=n.copy(g)).endpoint=g.endpoint.replace(/{service}\.({region}\.)?/,"{service}.dualstack.{region}.")),r.isGlobalEndpoint=!!g.globalEndpoint,g.signingRegion&&(r.signingRegion=g.signingRegion),g.signatureVersion||(g.signatureVersion="v4"),void t(r,g)}}},getEndpointSuffix:function(r){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"},d=Object.keys(i),g=0;g<d.length;g++){var p=RegExp(d[g]),T=i[d[g]];if(p.test(r))return T}return"amazonaws.com"}}},60782:(J,I,s)=>{var n=s(72338),y=s(18730),l=n.util.inherit,e=n.util.domain,t=s(94443),a={success:1,error:1,complete:1},r=new y;r.setupStates=function(){var i=function(c,d){var g=this;g._haltHandlersOnError=!1,g.emit(g._asm.currentState,function(p){if(p)if(function(i){return Object.prototype.hasOwnProperty.call(a,i._asm.currentState)}(g)){if(!(e&&g.domain instanceof e.Domain))throw p;p.domainEmitter=g,p.domain=g.domain,p.domainThrown=!1,g.domain.emit("error",p)}else g.response.error=p,d(p);else d(g.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)},r.setupStates(),n.Request=l({constructor:function(c,d,g){var p=c.endpoint,T=c.config.region,S=c.config.customUserAgent;c.isGlobalEndpoint&&(T=c.signingRegion?c.signingRegion:"us-east-1"),this.domain=e&&e.active,this.service=c,this.operation=d,this.params=g||{},this.httpRequest=new n.HttpRequest(p,T),this.httpRequest.appendToUserAgent(S),this.startTime=c.getSkewCorrectedDate(),this.response=new n.Response(this),this._asm=new y(r.states,"validate"),this._haltHandlersOnError=!1,n.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(c){return c&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",function(d){c.call(d,d.error,d.data)})),this.runTo(),this.response},build:function(c){return this.runTo("send",c)},runTo:function(c,d){return this._asm.runTo(c,d,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",function(d){d.error=n.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(c){c=n.util.fn.makeAsync(c,3),this.on("complete",function d(g){c.call(g,g.error,g.data,function(p){!1!==p&&(g.hasNextPage()?g.nextPage().on("complete",d).send():c.call(g,null,null,n.util.fn.noop))})}).send()},eachItem:function(c){var d=this;this.eachPage(function(p,T){if(p)return c(p,null);if(null===T)return c(null,null);var b=d.service.paginationConfig(d.operation).resultKey;Array.isArray(b)&&(b=b[0]);var A=t.search(T,b),x=!0;return n.util.arrayEach(A,function(G){if(!1===(x=c(null,G)))return n.util.abort}),x})},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var c=n.util.stream,d=this,g=null;return 2===n.HttpClient.streamsApiVersion?(g=new c.PassThrough,process.nextTick(function(){d.send()})):((g=new c.Stream).readable=!0,g.sent=!1,g.on("newListener",function(p){!g.sent&&"data"===p&&(g.sent=!0,process.nextTick(function(){d.send()}))})),this.on("error",function(p){g.emit("error",p)}),this.on("httpHeaders",function(T,S,b){if(T<300){d.removeListener("httpData",n.EventListeners.Core.HTTP_DATA),d.removeListener("httpError",n.EventListeners.Core.HTTP_ERROR),d.on("httpError",function(w){b.error=w,b.error.retryable=!1});var x,A=!1;if("HEAD"!==d.httpRequest.method&&(x=parseInt(S["content-length"],10)),void 0!==x&&!isNaN(x)&&x>=0){A=!0;var G=0}var W=function(){A&&G!==x?g.emit("error",n.util.error(new Error("Stream content length mismatch. Received "+G+" of "+x+" bytes."),{code:"StreamContentLengthMismatch"})):2===n.HttpClient.streamsApiVersion?g.end():g.emit("end")},H=b.httpResponse.createUnbufferedStream();if(2===n.HttpClient.streamsApiVersion)if(A){var B=new c.PassThrough;B._write=function(m){return m&&m.length&&(G+=m.length),c.PassThrough.prototype._write.apply(this,arguments)},B.on("end",W),g.on("error",function(m){A=!1,H.unpipe(B),B.emit("end"),B.end()}),H.pipe(B).pipe(g,{end:!1})}else H.pipe(g);else A&&H.on("data",function(m){m&&m.length&&(G+=m.length)}),H.on("data",function(m){g.emit("data",m)}),H.on("end",W);H.on("error",function(m){A=!1,g.emit("error",m)})}}),g},emitEvent:function(c,d,g){"function"==typeof d&&(g=d,d=null),g||(g=function(){}),d||(d=this.eventParameters(c,this.response)),n.SequentialExecutor.prototype.emit.call(this,c,d,function(T){T&&(this.response.error=T),g.call(this,T)})},eventParameters:function(c){switch(c){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(c,d){return!d&&"function"==typeof c&&(d=c,c=null),(new n.Signers.Presign).sign(this.toGet(),c,d)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",n.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",n.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(c){c.httpRequest.method="GET",c.httpRequest.path=c.service.endpoint.path+"?"+c.httpRequest.body,c.httpRequest.body="",delete c.httpRequest.headers["Content-Length"],delete c.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),n.Request.addPromisesToClass=function(c){this.prototype.promise=function(){var g=this;return this.httpRequest.appendToUserAgent("promise"),new c(function(p,T){g.on("complete",function(S){S.error?T(S.error):p(Object.defineProperty(S.data||{},"$response",{value:S}))}),g.runTo()})}},n.Request.deletePromisesFromClass=function(){delete this.prototype.promise},n.util.addPromises(n.Request),n.util.mixin(n.Request,n.SequentialExecutor)},11277:(J,I,s)=>{var n=s(72338),y=n.util.inherit,l=s(94443);function e(t){var a=t.request._waiter,r=!1,i="retry";a.config.acceptors.forEach(function(c){if(!r){var d=a.matchers[c.matcher];d&&d(t,c.expected,c.argument)&&(r=!0,i=c.state)}}),!r&&t.error&&(i="failure"),"success"===i?a.setSuccess(t):a.setError(t,"retry"===i)}n.ResourceWaiter=y({constructor:function(a,o){this.service=a,this.state=o,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(t,a,o){try{var r=l.search(t.data,o)}catch(i){return!1}return l.strictDeepEqual(r,a)},pathAll:function(t,a,o){try{var r=l.search(t.data,o)}catch(d){return!1}Array.isArray(r)||(r=[r]);var i=r.length;if(!i)return!1;for(var c=0;c<i;c++)if(!l.strictDeepEqual(r[c],a))return!1;return!0},pathAny:function(t,a,o){try{var r=l.search(t.data,o)}catch(d){return!1}Array.isArray(r)||(r=[r]);for(var i=r.length,c=0;c<i;c++)if(l.strictDeepEqual(r[c],a))return!0;return!1},status:function(t,a){var o=t.httpResponse.statusCode;return"number"==typeof o&&o===a},error:function(t,a){return"string"==typeof a&&t.error?a===t.error.code:a===!!t.error}},listeners:(new n.SequentialExecutor).addNamedListeners(function(t){t("RETRY_CHECK","retry",function(a){a.error&&"ResourceNotReady"===a.error.code&&(a.error.retryDelay=1e3*(a.request._waiter.config.delay||0))}),t("CHECK_OUTPUT","extractData",e),t("CHECK_ERROR","extractError",e)}),wait:function(a,o){"function"==typeof a&&(o=a,a=void 0),a&&a.$waiter&&("number"==typeof(a=n.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 r=this.service.makeRequest(this.config.operation,a);return r._waiter=this,r.response.maxRetries=this.config.maxAttempts,r.addListeners(this.listeners),o&&r.send(o),r},setSuccess:function(a){a.error=null,a.data=a.data||{},a.request.removeAllListeners("extractData")},setError:function(a,o){a.data=null,a.error=n.util.error(a.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:o})},loadWaiterConfig:function(a){if(!this.service.api.waiters[a])throw new n.util.error(new Error,{code:"StateNotFoundError",message:"State "+a+" not found."});this.config=n.util.copy(this.service.api.waiters[a])}})},53871:(J,I,s)=>{var n=s(72338),y=n.util.inherit,l=s(94443);n.Response=y({constructor:function(t){this.request=t,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new n.HttpResponse,t&&(this.maxRetries=t.service.numRetries(),this.maxRedirects=t.service.config.maxRedirects)},nextPage:function(t){var a,o=this.request.service,r=this.request.operation;try{a=o.paginationConfig(r,!0)}catch(g){this.error=g}if(!this.hasNextPage()){if(t)t(this.error,null);else if(this.error)throw this.error;return null}var i=n.util.copy(this.request.params);if(this.nextPageTokens){var c=a.inputToken;"string"==typeof c&&(c=[c]);for(var d=0;d<c.length;d++)i[c[d]]=this.nextPageTokens[d];return o.makeRequest(this.request.operation,i,t)}return t?t(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 t=this.request.service.paginationConfig(this.request.operation);if(!t)return this.nextPageTokens;if(this.nextPageTokens=null,t.moreResults&&!l.search(this.data,t.moreResults))return this.nextPageTokens;var a=t.outputToken;return"string"==typeof a&&(a=[a]),n.util.arrayEach.call(this,a,function(o){var r=l.search(this.data,o);r&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(r))}),this.nextPageTokens}})},31893:(J,I,s)=>{var n=s(72338);n.SequentialExecutor=n.util.inherit({constructor:function(){this._events={}},listeners:function(l){return this._events[l]?this._events[l].slice(0):[]},on:function(l,e,t){return this._events[l]?t?this._events[l].unshift(e):this._events[l].push(e):this._events[l]=[e],this},onAsync:function(l,e,t){return e._isAsync=!0,this.on(l,e,t)},removeListener:function(l,e){var t=this._events[l];if(t){for(var a=t.length,o=-1,r=0;r<a;++r)t[r]===e&&(o=r);o>-1&&t.splice(o,1)}return this},removeAllListeners:function(l){return l?delete this._events[l]:this._events={},this},emit:function(l,e,t){t||(t=function(){});var a=this.listeners(l),o=a.length;return this.callListeners(a,e,t),o>0},callListeners:function(l,e,t,a){var o=this,r=a||null;function i(d){if(d&&(r=n.util.error(r||new Error,d),o._haltHandlersOnError))return t.call(o,r);o.callListeners(l,e,t,r)}for(;l.length>0;){var c=l.shift();if(c._isAsync)return void c.apply(o,e.concat([i]));try{c.apply(o,e)}catch(d){r=n.util.error(r||new Error,d)}if(r&&o._haltHandlersOnError)return void t.call(o,r)}t.call(o,r)},addListeners:function(l){var e=this;return l._events&&(l=l._events),n.util.each(l,function(t,a){"function"==typeof a&&(a=[a]),n.util.arrayEach(a,function(o){e.on(t,o)})}),e},addNamedListener:function(l,e,t,a){return this[l]=t,this.addListener(e,t,a),this},addNamedAsyncListener:function(l,e,t,a){return t._isAsync=!0,this.addNamedListener(l,e,t,a)},addNamedListeners:function(l){var e=this;return l(function(){e.addNamedListener.apply(e,arguments)},function(){e.addNamedAsyncListener.apply(e,arguments)}),this}}),n.SequentialExecutor.prototype.addListener=n.SequentialExecutor.prototype.on,J.exports=n.SequentialExecutor},70014:(J,I,s)=>{var n=s(72338),y=s(68734),l=s(32313),e=n.util.inherit,t=0;n.Service=e({constructor:function(o){if(!this.loadServiceClass)throw n.util.error(new Error,"Service must be constructed with `new' operator");var r=this.loadServiceClass(o||{});if(r){var i=n.util.copy(o),c=new r(o);return Object.defineProperty(c,"_originalConfig",{get:function(){return i},enumerable:!1,configurable:!0}),c._clientId=++t,c}this.initialize(o)},initialize:function(o){var r=n.config[this.serviceIdentifier];if(this.config=new n.Config(n.config),r&&this.config.update(r,!0),o&&this.config.update(o,!0),this.validateService(),this.config.endpoint||l.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),n.SequentialExecutor.call(this),n.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||n.Service._clientSideMonitoring)&&this.publisher){var i=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(d){process.nextTick(function(){i.eventHandler(d)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(d){process.nextTick(function(){i.eventHandler(d)})})}},validateService:function(){},loadServiceClass:function(o){var r=o;if(n.util.isEmpty(this.api)){if(r.apiConfig)return n.Service.defineServiceApi(this.constructor,r.apiConfig);if(this.constructor.services){(r=new n.Config(n.config)).update(o,!0);var i=r.apiVersions[this.constructor.serviceIdentifier];return this.getLatestServiceClass(i=i||r.apiVersion)}return null}return null},getLatestServiceClass:function(o){return o=this.getLatestServiceVersion(o),null===this.constructor.services[o]&&n.Service.defineServiceApi(this.constructor,o),this.constructor.services[o]},getLatestServiceVersion:function(o){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(o?n.util.isType(o,Date)&&(o=n.util.date.iso8601(o).split("T")[0]):o="latest",Object.hasOwnProperty(this.constructor.services,o))return o;for(var r=Object.keys(this.constructor.services).sort(),i=null,c=r.length-1;c>=0;c--)if("*"!==r[c][r[c].length-1]&&(i=r[c]),r[c].substr(0,10)<=o)return i;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+o+"'")},api:{},defaultRetryCount:3,customizeRequests:function(o){if(o){if("function"!=typeof o)throw new Error("Invalid callback type '"+typeof o+"' provided in customizeRequests");this.customRequestHandler=o}else this.customRequestHandler=null},makeRequest:function(o,r,i){if("function"==typeof r&&(i=r,r=null),r=r||{},this.config.params){var c=this.api.operations[o];c&&(r=n.util.copy(r),n.util.each(this.config.params,function(g,p){c.input.members[g]&&null==r[g]&&(r[g]=p)}))}var d=new n.Request(this,o,r);return this.addAllRequestListeners(d),this.attachMonitoringEmitter(d),i&&d.send(i),d},makeUnauthenticatedRequest:function(o,r,i){"function"==typeof r&&(i=r,r={});var c=this.makeRequest(o,r).toUnauthenticated();return i?c.send(i):c},waitFor:function(o,r,i){return new n.ResourceWaiter(this,o).wait(r,i)},addAllRequestListeners:function(o){for(var r=[n.events,n.EventListeners.Core,this.serviceInterface(),n.EventListeners.CorePost],i=0;i<r.length;i++)r[i]&&o.addListeners(r[i]);this.config.paramValidation||o.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&o.addListeners(n.EventListeners.Logger),this.setupRequestListeners(o),"function"==typeof this.constructor.prototype.customRequestHandler&&this.constructor.prototype.customRequestHandler(o),Object.prototype.hasOwnProperty.call(this,"customRequestHandler")&&"function"==typeof this.customRequestHandler&&this.customRequestHandler(o)},apiCallEvent:function(o){var r=o.service.api.operations[o.operation],i={Type:"ApiCall",Api:r?r.name:o.operation,Version:1,Service:o.service.api.serviceId||o.service.api.endpointPrefix,Region:o.httpRequest.region,MaxRetriesExceeded:0,UserAgent:o.httpRequest.getUserAgent()},c=o.response;if(c.httpResponse.statusCode&&(i.FinalHttpStatusCode=c.httpResponse.statusCode),c.error){var d=c.error;c.httpResponse.statusCode>299?(d.code&&(i.FinalAwsException=d.code),d.message&&(i.FinalAwsExceptionMessage=d.message)):((d.code||d.name)&&(i.FinalSdkException=d.code||d.name),d.message&&(i.FinalSdkExceptionMessage=d.message))}return i},apiAttemptEvent:function(o){var r=o.service.api.operations[o.operation],i={Type:"ApiCallAttempt",Api:r?r.name:o.operation,Version:1,Service:o.service.api.serviceId||o.service.api.endpointPrefix,Fqdn:o.httpRequest.endpoint.hostname,UserAgent:o.httpRequest.getUserAgent()},c=o.response;return c.httpResponse.statusCode&&(i.HttpStatusCode=c.httpResponse.statusCode),!o._unAuthenticated&&o.service.config.credentials&&o.service.config.credentials.accessKeyId&&(i.AccessKey=o.service.config.credentials.accessKeyId),c.httpResponse.headers&&(o.httpRequest.headers["x-amz-security-token"]&&(i.SessionToken=o.httpRequest.headers["x-amz-security-token"]),c.httpResponse.headers["x-amzn-requestid"]&&(i.XAmznRequestId=c.httpResponse.headers["x-amzn-requestid"]),c.httpResponse.headers["x-amz-request-id"]&&(i.XAmzRequestId=c.httpResponse.headers["x-amz-request-id"]),c.httpResponse.headers["x-amz-id-2"]&&(i.XAmzId2=c.httpResponse.headers["x-amz-id-2"])),i},attemptFailEvent:function(o){var r=this.apiAttemptEvent(o),i=o.response,c=i.error;return i.httpResponse.statusCode>299?(c.code&&(r.AwsException=c.code),c.message&&(r.AwsExceptionMessage=c.message)):((c.code||c.name)&&(r.SdkException=c.code||c.name),c.message&&(r.SdkExceptionMessage=c.message)),r},attachMonitoringEmitter:function(o){var r,i,c,d,p,T,g=0,S=this;o.on("validate",function(){d=n.util.realClock.now(),T=Date.now()},!0),o.on("sign",function(){i=n.util.realClock.now(),r=Date.now(),p=o.httpRequest.region,g++},!0),o.on("validateResponse",function(){c=Math.round(n.util.realClock.now()-i)}),o.addNamedListener("API_CALL_ATTEMPT","success",function(){var x=S.apiAttemptEvent(o);x.Timestamp=r,x.AttemptLatency=c>=0?c:0,x.Region=p,S.emit("apiCallAttempt",[x])}),o.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var x=S.attemptFailEvent(o);x.Timestamp=r,c=c||Math.round(n.util.realClock.now()-i),x.AttemptLatency=c>=0?c:0,x.Region=p,S.emit("apiCallAttempt",[x])}),o.addNamedListener("API_CALL","complete",function(){var x=S.apiCallEvent(o);if(x.AttemptCount=g,!(x.AttemptCount<=0)){x.Timestamp=T;var G=Math.round(n.util.realClock.now()-d);x.Latency=G>=0?G:0;var W=o.response;W.error&&W.error.retryable&&"number"==typeof W.retryCount&&"number"==typeof W.maxRetries&&W.retryCount>=W.maxRetries&&(x.MaxRetriesExceeded=1),S.emit("apiCall",[x])}})},setupRequestListeners:function(o){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(o){var i=null,c="";return o&&(c=(i=(o.service.api.operations||{})[o.operation]||null)?i.authtype:""),n.Signers.RequestSigner.getVersion(this.config.signatureVersion?this.config.signatureVersion:"v4"===c||"v4-unsigned-body"===c?"v4":this.api.signatureVersion)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return n.EventListeners.Query;case"json":return n.EventListeners.Json;case"rest-json":return n.EventListeners.RestJson;case"rest-xml":return n.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(o){return o.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(o,r){return n.util.calculateRetryDelay(o,this.config.retryDelayOptions,r)},retryableError:function(o){return!!(this.timeoutError(o)||this.networkingError(o)||this.expiredCredentialsError(o)||this.throttledError(o)||o.statusCode>=500)},networkingError:function(o){return"NetworkingError"===o.code},timeoutError:function(o){return"TimeoutError"===o.code},expiredCredentialsError:function(o){return"ExpiredTokenException"===o.code},clockSkewError:function(o){switch(o.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(o){o&&(this.config.systemClockOffset=o-Date.now())},isClockSkewed:function(o){if(o)return Math.abs(this.getSkewCorrectedDate().getTime()-o)>=3e5},throttledError:function(o){if(429===o.statusCode)return!0;switch(o.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(o){if("string"!=typeof o)return o;var r=o;return(r=(r=r.replace(/\{service\}/g,this.api.endpointPrefix)).replace(/\{region\}/g,this.config.region)).replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(o){this.endpoint=new n.Endpoint(o,this.config)},paginationConfig:function(o,r){var i=this.api.operations[o].paginator;if(!i){if(r){var c=new Error;throw n.util.error(c,"No pagination configuration for "+o)}return null}return i}}),n.util.update(n.Service,{defineMethods:function(o){n.util.each(o.prototype.api.operations,function(i){o.prototype[i]||(o.prototype[i]="none"===o.prototype.api.operations[i].authtype?function(d,g){return this.makeUnauthenticatedRequest(i,d,g)}:function(d,g){return this.makeRequest(i,d,g)})})},defineService:function(o,r,i){n.Service._serviceMap[o]=!0,Array.isArray(r)||(i=r,r=[]);var c=e(n.Service,i||{});if("string"==typeof o?(n.Service.addVersions(c,r),c.serviceIdentifier=c.serviceIdentifier||o):(c.prototype.api=o,n.Service.defineMethods(c)),n.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&n.util.clientSideMonitoring){var g=n.util.clientSideMonitoring.Publisher,T=(0,n.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new g(T),T.enabled&&(n.Service._clientSideMonitoring=!0)}return n.SequentialExecutor.call(c.prototype),n.Service.addDefaultMonitoringListeners(c.prototype),c},addVersions:function(o,r){Array.isArray(r)||(r=[r]),o.services=o.services||{};for(var i=0;i<r.length;i++)void 0===o.services[r[i]]&&(o.services[r[i]]=null);o.apiVersions=Object.keys(o.services).sort()},defineServiceApi:function(o,r,i){var c=e(o,{serviceIdentifier:o.serviceIdentifier});function d(g){c.prototype.api=g.isApi?g:new y(g,{serviceIdentifier:o.serviceIdentifier})}if("string"==typeof r){if(i)d(i);else try{d(n.apiLoader(o.serviceIdentifier,r))}catch(g){throw n.util.error(g,{message:"Could not find API configuration "+o.serviceIdentifier+"-"+r})}Object.prototype.hasOwnProperty.call(o.services,r)||(o.apiVersions=o.apiVersions.concat(r).sort()),o.services[r]=c}else d(r);return n.Service.defineMethods(c),c},hasService:function(a){return Object.prototype.hasOwnProperty.call(n.Service._serviceMap,a)},addDefaultMonitoringListeners:function(o){o.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",function(i){var c=Object.getPrototypeOf(o);c._events&&c.emit("apiCallAttempt",[i])}),o.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",function(i){var c=Object.getPrototypeOf(o);c._events&&c.emit("apiCall",[i])})},_serviceMap:{}}),n.util.mixin(n.Service,n.SequentialExecutor),J.exports=n.Service},25974:(J,I,s)=>{var n=s(72338),y=s(98914);n.util.update(n.STS.prototype,{credentialsFrom:function(a,o){return a?(o||(o=new n.TemporaryCredentials),o.expired=!1,o.accessKeyId=a.Credentials.AccessKeyId,o.secretAccessKey=a.Credentials.SecretAccessKey,o.sessionToken=a.Credentials.SessionToken,o.expireTime=a.Credentials.Expiration,o):null},assumeRoleWithWebIdentity:function(a,o){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",a,o)},assumeRoleWithSAML:function(a,o){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",a,o)},setupRequestListeners:function(a){a.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(a){var o=a.service,r=o.config;if(r.stsRegionalEndpoints=y(o._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===r.stsRegionalEndpoints&&o.isGlobalEndpoint){if(!r.region)throw n.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var i=r.endpoint.indexOf(".amazonaws.com"),c=r.endpoint.substring(0,i)+"."+r.region+r.endpoint.substring(i);a.httpRequest.updateEndpoint(c),a.httpRequest.region=r.region}}})},57345:(J,I,s)=>{var n=s(72338),l="presigned-expires";function e(a){var o=a.httpRequest.headers[l],r=a.service.getSignerClass(a);if(delete a.httpRequest.headers["User-Agent"],delete a.httpRequest.headers["X-Amz-User-Agent"],r===n.Signers.V4){if(o>604800)throw n.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[l]=o}else{if(r!==n.Signers.S3)throw n.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var c=a.service?a.service.getSkewCorrectedDate():n.util.date.getDate();a.httpRequest.headers[l]=parseInt(n.util.date.unixTimestamp(c)+o,10).toString()}}function t(a){var o=a.httpRequest.endpoint,r=n.util.urlParse(a.httpRequest.path),i={};r.search&&(i=n.util.queryStringParse(r.search.substr(1)));var c=a.httpRequest.headers.Authorization.split(" ");if("AWS"===c[0])c=c[1].split(":"),i.Signature=c.pop(),i.AWSAccessKeyId=c.join(":"),n.util.each(a.httpRequest.headers,function(p,T){p===l&&(p="Expires"),0===p.indexOf("x-amz-meta-")&&(delete i[p],p=p.toLowerCase()),i[p]=T}),delete a.httpRequest.headers[l],delete i.Authorization,delete i.Host;else if("AWS4-HMAC-SHA256"===c[0]){c.shift();var g=c.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];i["X-Amz-Signature"]=g,delete i.Expires}o.pathname=r.pathname,o.search=n.util.queryParamsToString(i)}n.Signers.Presign=(0,n.util.inherit)({sign:function(o,r,i){if(o.httpRequest.headers[l]=r||3600,o.on("build",e),o.on("sign",t),o.removeListener("afterBuild",n.EventListeners.Core.SET_CONTENT_LENGTH),o.removeListener("afterBuild",n.EventListeners.Core.COMPUTE_SHA256),o.emit("beforePresign",[o]),!i){if(o.build(),o.response.error)throw o.response.error;return n.util.urlFormat(o.httpRequest.endpoint)}o.build(function(){this.response.error?i(this.response.error):i(null,n.util.urlFormat(o.httpRequest.endpoint))})}}),J.exports=n.Signers.Presign},15198:(J,I,s)=>{var n=s(72338);n.Signers.RequestSigner=(0,n.util.inherit)({constructor:function(e){this.request=e},setServiceClientId:function(e){this.serviceClientId=e},getServiceClientId:function(){return this.serviceClientId}}),n.Signers.RequestSigner.getVersion=function(e){switch(e){case"v2":return n.Signers.V2;case"v3":return n.Signers.V3;case"s3v4":case"v4":return n.Signers.V4;case"s3":return n.Signers.S3;case"v3https":return n.Signers.V3Https}throw new Error("Unknown signing version "+e)},s(44508),s(70434),s(62189),s(28479),s(27531),s(57345)},27531:(J,I,s)=>{var n=s(72338);n.Signers.S3=(0,n.util.inherit)(n.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(e,t){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=n.util.date.rfc822(t)),e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken);var a=this.sign(e.secretAccessKey,this.stringToSign());this.request.headers.Authorization="AWS "+e.accessKeyId+":"+a},stringToSign:function(){var e=this.request,t=[];t.push(e.method),t.push(e.headers["Content-MD5"]||""),t.push(e.headers["Content-Type"]||""),t.push(e.headers["presigned-expires"]||"");var a=this.canonicalizedAmzHeaders();return a&&t.push(a),t.push(this.canonicalizedResource()),t.join("\n")},canonicalizedAmzHeaders:function(){var e=[];n.util.each(this.request.headers,function(a){a.match(/^x-amz-/i)&&e.push(a)}),e.sort(function(a,o){return a.toLowerCase()<o.toLowerCase()?-1:1});var t=[];return n.util.arrayEach.call(this,e,function(a){t.push(a.toLowerCase()+":"+String(this.request.headers[a]))}),t.join("\n")},canonicalizedResource:function(){var e=this.request,t=e.path.split("?"),o=t[1],r="";if(e.virtualHostedBucket&&(r+="/"+e.virtualHostedBucket),r+=t[0],o){var i=[];n.util.arrayEach.call(this,o.split("&"),function(c){var d=c.split("=")[0],g=c.split("=")[1];if(this.subResources[d]||this.responseHeaders[d]){var p={name:d};void 0!==g&&(p.value=this.subResources[d]?g:decodeURIComponent(g)),i.push(p)}}),i.sort(function(c,d){return c.name<d.name?-1:1}),i.length&&(o=[],n.util.arrayEach(i,function(c){o.push(void 0===c.value?c.name:c.name+"="+c.value)}),r+="?"+o.join("&"))}return r},sign:function(e,t){return n.util.crypto.hmac(e,t,"base64","sha1")}}),J.exports=n.Signers.S3},44508:(J,I,s)=>{var n=s(72338);n.Signers.V2=(0,n.util.inherit)(n.Signers.RequestSigner,{addAuthorization:function(e,t){t||(t=n.util.date.getDate());var a=this.request;a.params.Timestamp=n.util.date.iso8601(t),a.params.SignatureVersion="2",a.params.SignatureMethod="HmacSHA256",a.params.AWSAccessKeyId=e.accessKeyId,e.sessionToken&&(a.params.SecurityToken=e.sessionToken),delete a.params.Signature,a.params.Signature=this.signature(e),a.body=n.util.queryParamsToString(a.params),a.headers["Content-Length"]=a.body.length},signature:function(e){return n.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push(this.request.endpoint.host.toLowerCase()),e.push(this.request.pathname()),e.push(n.util.queryParamsToString(this.request.params)),e.join("\n")}}),J.exports=n.Signers.V2},70434:(J,I,s)=>{var n=s(72338);n.Signers.V3=(0,n.util.inherit)(n.Signers.RequestSigner,{addAuthorization:function(e,t){var a=n.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=a,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,a)},authorization:function(e){return"AWS3 AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(e)},signedHeaders:function(){var e=[];return n.util.arrayEach(this.headersToSign(),function(a){e.push(a.toLowerCase())}),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return n.util.arrayEach(this.headersToSign(),function(o){t.push(o.toLowerCase().trim()+":"+String(e[o]).trim())}),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return n.util.each(this.request.headers,function(a){("Host"===a||"Content-Encoding"===a||a.match(/^X-Amz/i))&&e.push(a)}),e},signature:function(e){return n.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push("/"),e.push(""),e.push(this.canonicalHeaders()),e.push(this.request.body),n.util.crypto.sha256(e.join("\n"))}}),J.exports=n.Signers.V3},62189:(J,I,s)=>{var n=s(72338),y=n.util.inherit;s(70434),n.Signers.V3Https=y(n.Signers.V3,{authorization:function(e){return"AWS3-HTTPS AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(e)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),J.exports=n.Signers.V3Https},28479:(J,I,s)=>{var n=s(72338),y=s(68703),e="presigned-expires";n.Signers.V4=(0,n.util.inherit)(n.Signers.RequestSigner,{constructor:function(a,o,r){n.Signers.RequestSigner.call(this,a),this.serviceName=o,this.signatureCache="boolean"!=typeof(r=r||{}).signatureCache||r.signatureCache,this.operation=r.operation,this.signatureVersion=r.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(a,o){var r=n.util.date.iso8601(o).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(a,r):this.addHeaders(a,r),this.request.headers.Authorization=this.authorization(a,r)},addHeaders:function(a,o){this.request.headers["X-Amz-Date"]=o,a.sessionToken&&(this.request.headers["x-amz-security-token"]=a.sessionToken)},updateForPresigned:function(a,o){var r=this.credentialString(o),i={"X-Amz-Date":o,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":a.accessKeyId+"/"+r,"X-Amz-Expires":this.request.headers[e],"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"]),n.util.each.call(this,this.request.headers,function(d,g){if(d!==e&&this.isSignableHeader(d)){var p=d.toLowerCase();0===p.indexOf("x-amz-meta-")?i[p]=g:0===p.indexOf("x-amz-")&&(i[d]=g)}});var c=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=c+n.util.queryParamsToString(i)},authorization:function(a,o){var r=[],i=this.credentialString(o);return r.push(this.algorithm+" Credential="+a.accessKeyId+"/"+i),r.push("SignedHeaders="+this.signedHeaders()),r.push("Signature="+this.signature(a,o)),r.join(", ")},signature:function(a,o){var r=y.getSigningKey(a,o.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return n.util.crypto.hmac(r,this.stringToSign(o),"hex")},stringToSign:function(a){var o=[];return o.push("AWS4-HMAC-SHA256"),o.push(a),o.push(this.credentialString(a)),o.push(this.hexEncodedHash(this.canonicalString())),o.join("\n")},canonicalString:function(){var a=[],o=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(o=n.util.uriEscapePath(o)),a.push(this.request.method),a.push(o),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=[];n.util.each.call(this,this.request.headers,function(r,i){a.push([r,i])}),a.sort(function(r,i){return r[0].toLowerCase()<i[0].toLowerCase()?-1:1});var o=[];return n.util.arrayEach.call(this,a,function(r){var i=r[0].toLowerCase();if(this.isSignableHeader(i)){var c=r[1];if(null==c||"function"!=typeof c.toString)throw n.util.error(new Error("Header "+i+" contains invalid value"),{code:"InvalidHeader"});o.push(i+":"+this.canonicalHeaderValues(c.toString()))}}),o.join("\n")},canonicalHeaderValues:function(a){return a.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},signedHeaders:function(){var a=[];return n.util.each.call(this,this.request.headers,function(o){o=o.toLowerCase(),this.isSignableHeader(o)&&a.push(o)}),a.sort().join(";")},credentialString:function(a){return y.createScope(a.substr(0,8),this.request.region,this.serviceName)},hexEncodedHash:function(a){return n.util.crypto.sha256(a,"hex")},hexEncodedBodyHash:function(){var a=this.request;return this.isPresigned()&&"s3"===this.serviceName&&!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",e,"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[e]}}),J.exports=n.Signers.V4},68703:(J,I,s)=>{var n=s(72338),y={},l=[],t="aws4_request";J.exports={createScope:function(o,r,i){return[o.substr(0,8),r,i,t].join("/")},getSigningKey:function(o,r,i,c,d){var p=[n.util.crypto.hmac(o.secretAccessKey,o.accessKeyId,"base64"),r,i,c].join("_");if((d=!1!==d)&&p in y)return y[p];var T=n.util.crypto.hmac("AWS4"+o.secretAccessKey,r,"buffer"),S=n.util.crypto.hmac(T,i,"buffer"),b=n.util.crypto.hmac(S,c,"buffer"),A=n.util.crypto.hmac(b,t,"buffer");return d&&(y[p]=A,l.push(p),l.length>50&&delete y[l.shift()]),A},emptyCache:function(){y={},l=[]}}},18730:J=>{function I(s,n){this.currentState=n||null,this.states=s||{}}I.prototype.runTo=function(n,y,l,e){"function"==typeof n&&(e=l,l=y,y=n,n=null);var t=this,a=t.states[t.currentState];a.fn.call(l||t,e,function(o){if(o){if(!a.fail)return y?y.call(l,o):null;t.currentState=a.fail}else{if(!a.accept)return y?y.call(l):null;t.currentState=a.accept}if(t.currentState===n)return y?y.call(l,o):null;t.runTo(n,y,l,o)})},I.prototype.addState=function(n,y,l,e){return"function"==typeof y?(e=y,y=null,l=null):"function"==typeof l&&(e=l,l=null),this.currentState||(this.currentState=n),this.states[n]={accept:y,fail:l,fn:e},this},J.exports=I},84964:(J,I,s)=>{var n,y={environment:"nodejs",engine:function(){if(y.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var e=process.platform+"/"+process.version;return process.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+process.env.AWS_EXECUTION_ENV),e},userAgent:function(){var e=y.environment,t="aws-sdk-"+e+"/"+s(72338).VERSION;return"nodejs"===e&&(t+=" "+y.engine()),t},uriEscape:function(e){var t=encodeURIComponent(e);return(t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,function(a){return"%"+a.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(e){var t=[];return y.arrayEach(e.split("/"),function(a){t.push(y.uriEscape(a))}),t.join("/")},urlParse:function(e){return y.url.parse(e)},urlFormat:function(e){return y.url.format(e)},queryStringParse:function(e){return y.querystring.parse(e)},queryParamsToString:function(e){var t=[],a=y.uriEscape,o=Object.keys(e).sort();return y.arrayEach(o,function(r){var i=e[r],c=a(r),d=c+"=";if(Array.isArray(i)){var g=[];y.arrayEach(i,function(p){g.push(a(p))}),d=c+"="+g.sort().join("&"+c+"=")}else null!=i&&(d=c+"="+a(i));t.push(d)}),t.join("&")},readFileSync:function(e){return y.isBrowser()?null:s(94659).readFileSync(e,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw y.error(new Error("Cannot base64 encode number "+e));return null==e?e:y.buffer.toBuffer(e).toString("base64")},decode:function(e){if("number"==typeof e)throw y.error(new Error("Cannot base64 decode number "+e));return null==e?e:y.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(l,e){return"function"==typeof y.Buffer.from&&y.Buffer.from!==Uint8Array.from?y.Buffer.from(l,e):new y.Buffer(l,e)},alloc:function(l,e,t){if("number"!=typeof l)throw new Error("size passed to alloc must be a number.");if("function"==typeof y.Buffer.alloc)return y.Buffer.alloc(l,e,t);var a=new y.Buffer(l);return void 0!==e&&"function"==typeof a.fill&&a.fill(e,void 0,void 0,t),a},toStream:function(e){y.Buffer.isBuffer(e)||(e=y.buffer.toBuffer(e));var t=new y.stream.Readable,a=0;return t._read=function(o){if(a>=e.length)return t.push(null);var r=a+o;r>e.length&&(r=e.length),t.push(e.slice(a,r)),a=r},t},concat:function(l){var a,o,e=0,t=0;for(o=0;o<l.length;o++)e+=l[o].length;for(a=y.buffer.alloc(e),o=0;o<l.length;o++)l[o].copy(a,t),t+=l[o].length;return a}},string:{byteLength:function(e){if(null==e)return 0;if("string"==typeof e&&(e=y.buffer.toBuffer(e)),"number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.length)return e.length;if("number"==typeof e.size)return e.size;if("string"==typeof e.path)return s(94659).lstatSync(e.path).size;throw y.error(new Error("Cannot determine length of "+e),{object:e})},upperFirst:function(e){return e[0].toUpperCase()+e.substr(1)},lowerFirst:function(e){return e[0].toLowerCase()+e.substr(1)}},ini:{parse:function(e){var t,a={};return y.arrayEach(e.split(/\r?\n/),function(o){var r=(o=o.split(/(^|\s)[;#]/)[0]).match(/^\s*\[([^\[\]]+)\]\s*$/);if(r){if("__proto__"===(t=r[1])||"__proto__"===t.split(/\s/)[1])throw y.error(new Error("Cannot load profile name '"+t+"' from shared ini file."))}else if(t){var i=o.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);i&&(a[t]=a[t]||{},a[t][i[1]]=i[2])}}),a}},fn:{noop:function(){},callback:function(l){if(l)throw l},makeAsync:function(e,t){return t&&t<=e.length?e:function(){var a=Array.prototype.slice.call(arguments,0),o=a.pop(),r=e.apply(null,a);o(r)}}},date:{getDate:function(){return n||(n=s(72338)),n.config.systemClockOffset?new Date((new Date).getTime()+n.config.systemClockOffset):new Date},iso8601:function(e){return void 0===e&&(e=y.date.getDate()),e.toISOString().replace(/\.\d{3}Z$/,"Z")},rfc822:function(e){return void 0===e&&(e=y.date.getDate()),e.toUTCString()},unixTimestamp:function(e){return void 0===e&&(e=y.date.getDate()),e.getTime()/1e3},from:function(e){return"number"==typeof e?new Date(1e3*e):new Date(e)},format:function(e,t){return t||(t="iso8601"),y.date[t](y.date.from(e))},parseTimestamp:function(e){if("number"==typeof e)return new Date(1e3*e);if(e.match(/^\d+$/))return new Date(1e3*e);if(e.match(/^\d{4}/))return new Date(e);if(e.match(/^\w{3},/))return new Date(e);throw y.error(new Error("unhandled timestamp format: "+e),{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(e){var t=y.crypto.crc32Table,a=-1;"string"==typeof e&&(e=y.buffer.toBuffer(e));for(var o=0;o<e.length;o++)a=a>>>8^t[255&(a^e.readUInt8(o))];return(-1^a)>>>0},hmac:function(e,t,a,o){return a||(a="binary"),"buffer"===a&&(a=void 0),o||(o="sha256"),"string"==typeof t&&(t=y.buffer.toBuffer(t)),y.crypto.lib.createHmac(o,e).update(t).digest(a)},md5:function(e,t,a){return y.crypto.hash("md5",e,t,a)},sha256:function(e,t,a){return y.crypto.hash("sha256",e,t,a)},hash:function(l,e,t,a){var o=y.crypto.createHash(l);t||(t="binary"),"buffer"===t&&(t=void 0),"string"==typeof e&&(e=y.buffer.toBuffer(e));var r=y.arraySliceFn(e),i=y.Buffer.isBuffer(e);if(y.isBrowser()&&"undefined"!=typeof ArrayBuffer&&e&&e.buffer instanceof ArrayBuffer&&(i=!0),a&&"object"==typeof e&&"function"==typeof e.on&&!i)e.on("data",function(T){o.update(T)}),e.on("error",function(T){a(T)}),e.on("end",function(){a(null,o.digest(t))});else{if(!a||!r||i||"undefined"==typeof FileReader){y.isBrowser()&&"object"==typeof e&&!i&&(e=new y.Buffer(new Uint8Array(e)));var p=o.update(e).digest(t);return a&&a(null,p),p}var c=0,g=new FileReader;g.onerror=function(){a(new Error("Failed to read data."))},g.onload=function(){var T=new y.Buffer(new Uint8Array(g.result));o.update(T),c+=T.length,g._continueReading()},g._continueReading=function(){if(c>=e.size)a(null,o.digest(t));else{var T=c+524288;T>e.size&&(T=e.size),g.readAsArrayBuffer(r.call(e,c,T))}},g._continueReading()}},toHex:function(e){for(var t=[],a=0;a<e.length;a++)t.push(("0"+e.charCodeAt(a).toString(16)).substr(-2,2));return t.join("")},createHash:function(e){return y.crypto.lib.createHash(e)}},abort:{},each:function(e,t){for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t.call(this,a,e[a])===y.abort)break},arrayEach:function(e,t){for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t.call(this,e[a],parseInt(a,10))===y.abort)break},update:function(e,t){return y.each(t,function(o,r){e[o]=r}),e},merge:function(e,t){return y.update(y.copy(e),t)},copy:function(e){if(null==e)return e;var t={};for(var a in e)t[a]=e[a];return t},isEmpty:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},arraySliceFn:function(e){var t=e.slice||e.webkitSlice||e.mozSlice;return"function"==typeof t?t:null},isType:function(e,t){return"function"==typeof t&&(t=y.typeName(t)),Object.prototype.toString.call(e)==="[object "+t+"]"},typeName:function(e){if(Object.prototype.hasOwnProperty.call(e,"name"))return e.name;var t=e.toString(),a=t.match(/^\s*function (.+)\(/);return a?a[1]:t},error:function(e,t){var a=null;return"string"==typeof e.message&&""!==e.message&&("string"==typeof t||t&&t.message)&&((a=y.copy(e)).message=e.message),e.message=e.message||null,"string"==typeof t?e.message=t:"object"==typeof t&&null!==t&&(y.update(e,t),t.message&&(e.message=t.message),(t.code||t.name)&&(e.code=t.code||t.name),t.stack&&(e.stack=t.stack)),"function"==typeof Object.defineProperty&&(Object.defineProperty(e,"name",{writable:!0,enumerable:!1}),Object.defineProperty(e,"message",{enumerable:!0})),e.name=String(t&&t.name||e.name||e.code||"Error"),e.time=new Date,a&&(e.originalError=a),e},inherit:function(e,t){var a=null;if(void 0===t)t=e,e=Object,a={};else{var o=function(){};o.prototype=e.prototype,a=new o}return t.constructor===Object&&(t.constructor=function(){if(e!==Object)return e.apply(this,arguments)}),t.constructor.prototype=a,y.update(t.constructor.prototype,t),t.constructor.__super__=e,t.constructor},mixin:function(){for(var e=arguments[0],t=1;t<arguments.length;t++)for(var a in arguments[t].prototype){var o=arguments[t].prototype[a];"constructor"!==a&&(e.prototype[a]=o)}return e},hideProperties:function(e,t){"function"==typeof Object.defineProperty&&y.arrayEach(t,function(a){Object.defineProperty(e,a,{enumerable:!1,writable:!0,configurable:!0})})},property:function(e,t,a,o,r){var i={configurable:!0,enumerable:void 0===o||o};"function"!=typeof a||r?(i.value=a,i.writable=!0):i.get=a,Object.defineProperty(e,t,i)},memoizedProperty:function(e,t,a,o){var r=null;y.property(e,t,function(){return null===r&&(r=a()),r},o)},hoistPayloadMember:function(e){var t=e.request,o=t.service.api.operations[t.operation],r=o.output;r.payload&&!o.hasEventOutput&&"structure"===r.members[r.payload].type&&y.each(e.data[r.payload],function(d,g){y.property(e.data,d,g,!1)})},computeSha256:function(e,t){if(y.isNode()){var a=y.stream.Stream,o=s(94659);if("function"==typeof a&&e instanceof a){if("string"!=typeof e.path)return t(new Error("Non-file stream objects are not supported with SigV4"));var r={};"number"==typeof e.start&&(r.start=e.start),"number"==typeof e.end&&(r.end=e.end),e=o.createReadStream(e.path,r)}}y.crypto.sha256(e,"hex",function(i,c){i?t(i):t(null,c)})},isClockSkewed:function(e){if(e)return y.property(n.config,"isClockSkewed",Math.abs((new Date).getTime()-e)>=3e5,!1),n.config.isClockSkewed},applyClockOffset:function(e){e&&(n.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var a=!1;void 0===t&&n&&n.config&&(t=n.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(a=!0),Array.isArray(e)||(e=[e]);for(var o=0;o<e.length;o++){var r=e[o];a?r.deletePromisesFromClass&&r.deletePromisesFromClass():r.addPromisesToClass&&r.addPromisesToClass(t)}},promisifyMethod:function(e,t){return function(){var o=this,r=Array.prototype.slice.call(arguments);return new t(function(i,c){r.push(function(d,g){d?c(d):i(g)}),o[e].apply(o,r)})}},isDualstackAvailable:function(e){if(!e)return!1;var t=s(65359);return"string"!=typeof e&&(e=e.serviceIdentifier),!("string"!=typeof e||!t.hasOwnProperty(e)||!t[e].dualstackAvailable)},calculateRetryDelay:function(e,t,a){t||(t={});var o=t.customBackoff||null;if("function"==typeof o)return o(e,a);var r="number"==typeof t.base?t.base:100;return Math.random()*(Math.pow(2,e)*r)},handleRequestWithRetries:function(e,t,a){t||(t={});var o=n.HttpClient.getInstance(),r=t.httpOptions||{},i=0,c=function(g){var p=t.maxRetries||0;if(g&&"TimeoutError"===g.code&&(g.retryable=!0),g&&g.retryable&&i<p){var T=y.calculateRetryDelay(i,t.retryDelayOptions,g);if(T>=0)return i++,void setTimeout(d,T+(g.retryAfter||0))}a(g)},d=function(){var g="";o.handleRequest(e,r,function(p){p.on("data",function(T){g+=T.toString()}),p.on("end",function(){var T=p.statusCode;if(T<300)a(null,g);else{var S=1e3*parseInt(p.headers["retry-after"],10)||0,b=y.error(new Error,{statusCode:T,retryable:T>=500||429===T});S&&b.retryable&&(b.retryAfter=S),c(b)}})},c)};n.util.defer(d)},uuid:{v4:function(){return s(29459).v4()}},convertPayloadToString:function(e){var t=e.request,o=t.service.api.operations[t.operation].output||{};o.payload&&e.data[o.payload]&&(e.data[o.payload]=e.data[o.payload].toString())},defer:function(e){"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick(e):"function"==typeof setImmediate?setImmediate(e):setTimeout(e,0)},getRequestPayloadShape:function(e){var t=e.service.api.operations;if(t){var a=(t||{})[e.operation];if(a&&a.input&&a.input.payload)return a.input.members[a.input.payload]}},getProfilesFromSharedConfig:function(e,t){var a={},o={};process.env[y.configOptInEnv]&&(o=e.loadFrom({isConfig:!0,filename:process.env[y.sharedConfigFileEnv]}));var r={};try{r=e.loadFrom({filename:t||process.env[y.configOptInEnv]&&process.env[y.sharedCredentialsFileEnv]})}catch(g){if(!process.env[y.configOptInEnv])throw g}for(var i=0,c=Object.keys(o);i<c.length;i++)a[c[i]]=d(a[c[i]]||{},o[c[i]]);for(i=0,c=Object.keys(r);i<c.length;i++)a[c[i]]=d(a[c[i]]||{},r[c[i]]);return a;function d(g,p){for(var T=0,S=Object.keys(p);T<S.length;T++)g[S[T]]=p[S[T]];return g}},ARN:{validate:function(e){return e&&0===e.indexOf("arn:")&&e.split(":").length>=6},parse:function(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function(e){if(void 0===e.service||void 0===e.region||void 0===e.accountId||void 0===e.resource)throw y.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};J.exports=y},681:(J,I,s)=>{var n=s(84964),y=s(74822);function l(){}function e(d,g){for(var p=d.getElementsByTagName(g),T=0,S=p.length;T<S;T++)if(p[T].parentNode===d)return p[T]}function t(d,g){switch(g||(g={}),g.type){case"structure":return a(d,g);case"map":return function(d,g){for(var p={},T=g.key.name||"key",S=g.value.name||"value",b=g.flattened?g.name:"entry",A=d.firstElementChild;A;){if(A.nodeName===b){var x=e(A,T).textContent,G=e(A,S);p[x]=t(G,g.value)}A=A.nextElementSibling}return p}(d,g);case"list":return function(d,g){for(var p=[],T=g.flattened?g.name:g.member.name||"member",S=d.firstElementChild;S;)S.nodeName===T&&p.push(t(S,g.member)),S=S.nextElementSibling;return p}(d,g);case void 0:case null:return function(d){if(null==d)return"";if(!d.firstElementChild)return null===d.parentNode.parentNode?{}:0===d.childNodes.length?"":d.textContent;for(var g={type:"structure",members:{}},p=d.firstElementChild;p;){var T=p.nodeName;Object.prototype.hasOwnProperty.call(g.members,T)?g.members[T].type="list":g.members[T]={name:T},p=p.nextElementSibling}return a(d,g)}(d);default:return function(d,g){if(d.getAttribute){var p=d.getAttribute("encoding");"base64"===p&&(g=new y.create({type:p}))}var T=d.textContent;return""===T&&(T=null),"function"==typeof g.toType?g.toType(T):T}(d,g)}}function a(d,g){var p={};return null===d||n.each(g.members,function(T,S){if(S.isXmlAttribute)Object.prototype.hasOwnProperty.call(d.attributes,S.name)&&(p[T]=t({textContent:d.attributes[S.name].value},S));else{var A=S.flattened?d:e(d,S.name);A?p[T]=t(A,S):!S.flattened&&"list"===S.type&&!g.api.xmlNoDefaultLists&&(p[T]=S.defaultValue)}}),p}l.prototype.parse=function(d,g){if(""===d.replace(/^\s+/,""))return{};var p,T;try{if(window.DOMParser){try{p=(new DOMParser).parseFromString(d,"text/xml")}catch(W){throw n.error(new Error("Parse error in document"),{originalError:W,code:"XMLParserError",retryable:!0})}if(null===p.documentElement)throw n.error(new Error("Cannot parse empty document."),{code:"XMLParserError",retryable:!0});var b=p.getElementsByTagName("parsererror")[0];if(b&&(b.parentNode===p||"body"===b.parentNode.nodeName||b.parentNode.parentNode===p||"body"===b.parentNode.parentNode.nodeName)){var A=b.getElementsByTagName("div")[0]||b;throw n.error(new Error(A.textContent||"Parser error in document"),{code:"XMLParserError",retryable:!0})}}else{if(!window.ActiveXObject)throw new Error("Cannot load XML parser");if((p=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,!p.loadXML(d))throw n.error(new Error("Parse error in document"),{code:"XMLParserError",retryable:!0})}}catch(W){T=W}if(p&&p.documentElement&&!T){var x=t(p.documentElement,g),G=e(p.documentElement,"ResponseMetadata");return G&&(x.ResponseMetadata=t(G,{})),x}if(T)throw n.error(T||new Error,{code:"XMLParserError",retryable:!0});return{}},J.exports=l},39244:(J,I,s)=>{var n=s(84964),y=s(51980).XmlNode,l=s(59758).XmlText;function e(){}function t(d,g,p){switch(p.type){case"structure":return function(d,g,p){n.arrayEach(p.memberNames,function(T){var S=p.members[T];if("body"===S.location){var b=g[T],A=S.name;if(null!=b)if(S.isXmlAttribute)d.addAttribute(A,b);else if(S.flattened)t(d,b,S);else{var x=new y(A);d.addChildNode(x),c(x,S),t(x,b,S)}}})}(d,g,p);case"map":return function(d,g,p){var T=p.key.name||"key",S=p.value.name||"value";n.each(g,function(b,A){var x=new y(p.flattened?p.name:"entry");d.addChildNode(x);var G=new y(T),W=new y(S);x.addChildNode(G),x.addChildNode(W),t(G,b,p.key),t(W,A,p.value)})}(d,g,p);case"list":return function(d,g,p){n.arrayEach(g,p.flattened?function(T){var b=new y(p.member.name||p.name);d.addChildNode(b),t(b,T,p.member)}:function(T){var b=new y(p.member.name||"member");d.addChildNode(b),t(b,T,p.member)})}(d,g,p);default:return function(d,g,p){d.addChildNode(new l(p.toWireFormat(g)))}(d,g,p)}}function c(d,g,p){var T,S="xmlns";g.xmlNamespaceUri?(T=g.xmlNamespaceUri,g.xmlNamespacePrefix&&(S+=":"+g.xmlNamespacePrefix)):p&&g.api.xmlNamespaceUri&&(T=g.api.xmlNamespaceUri),T&&d.addAttribute(S,T)}e.prototype.toXML=function(d,g,p,T){var S=new y(p);return c(S,g,!0),t(S,d,g),S.children.length>0||T?S.toString():""},J.exports=e},70801:J=>{J.exports={escapeAttribute:function(s){return s.replace(/&/g,"&").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}}},98394:J=>{J.exports={escapeElement:function(s){return s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}}},51980:(J,I,s)=>{var n=s(70801).escapeAttribute;function y(l,e){void 0===e&&(e=[]),this.name=l,this.children=e,this.attributes={}}y.prototype.addAttribute=function(l,e){return this.attributes[l]=e,this},y.prototype.addChildNode=function(l){return this.children.push(l),this},y.prototype.removeAttribute=function(l){return delete this.attributes[l],this},y.prototype.toString=function(){for(var l=Boolean(this.children.length),e="<"+this.name,t=this.attributes,a=0,o=Object.keys(t);a<o.length;a++){var r=o[a],i=t[r];null!=i&&(e+=" "+r+'="'+n(""+i)+'"')}return e+(l?">"+this.children.map(function(c){return c.toString()}).join("")+"</"+this.name+">":"/>")},J.exports={XmlNode:y}},59758:(J,I,s)=>{var n=s(98394).escapeElement;function y(l){this.value=l}y.prototype.toString=function(){return n(""+this.value)},J.exports={XmlText:y}},73934:(J,I,s)=>{var n=s(61920);function y(){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}I.parse=A,I.resolve=function(u,v){return A(u,!1,!0).resolve(v)},I.resolveObject=function(u,v){return u?A(u,!1,!0).resolveObject(v):v},I.format=function(u){return H(u)&&(u=A(u)),u instanceof y?u.format():y.prototype.format.call(u)},I.Url=y;var l=/^([a-z0-9.+-]+:)/i,e=/:[0-9]*$/,a=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),o=["'"].concat(a),r=["%","/","?",";","#"].concat(o),i=["/","?","#"],d=/^[a-z0-9A-Z_-]{0,63}$/,g=/^([a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},T={javascript:!0,"javascript:":!0},S={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=s(93143);function A(u,v,h){if(u&&B(u)&&u instanceof y)return u;var R=new y;return R.parse(u,v,h),R}function H(u){return"string"==typeof u}function B(u){return"object"==typeof u&&null!==u}function m(u){return null===u}y.prototype.parse=function(u,v,h){if(!H(u))throw new TypeError("Parameter 'url' must be a string, not "+typeof u);var R=u;R=R.trim();var N=l.exec(R);if(N){var P=(N=N[0]).toLowerCase();this.protocol=P,R=R.substr(N.length)}if(h||N||R.match(/^\/\/[^@\/]+@[^@\/]+/)){var U="//"===R.substr(0,2);U&&(!N||!T[N])&&(R=R.substr(2),this.slashes=!0)}if(!T[N]&&(U||N&&!S[N])){for(var Z=-1,ue=0;ue<i.length;ue++)-1!==(V=R.indexOf(i[ue]))&&(-1===Z||V<Z)&&(Z=V);var re,ee;for(-1!==(ee=-1===Z?R.lastIndexOf("@"):R.lastIndexOf("@",Z))&&(re=R.slice(0,ee),R=R.slice(ee+1),this.auth=decodeURIComponent(re)),Z=-1,ue=0;ue<r.length;ue++){var V;-1!==(V=R.indexOf(r[ue]))&&(-1===Z||V<Z)&&(Z=V)}-1===Z&&(Z=R.length),this.host=R.slice(0,Z),R=R.slice(Z),this.parseHost(),this.hostname=this.hostname||"";var Y="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!Y)for(var Q=this.hostname.split(/\./),k=(ue=0,Q.length);ue<k;ue++){var K=Q[ue];if(K&&!K.match(d)){for(var C="",f=0,O=K.length;f<O;f++)K.charCodeAt(f)>127?C+="x":C+=K[f];if(!C.match(d)){var E=Q.slice(0,ue),M=Q.slice(ue+1),j=K.match(g);j&&(E.push(j[1]),M.unshift(j[2])),M.length&&(R="/"+M.join(".")+R),this.hostname=E.join(".");break}}}if(this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),!Y){var q=this.hostname.split("."),ne=[];for(ue=0;ue<q.length;++ue)ne.push((oe=q[ue]).match(/[^A-Za-z0-9_-]/)?"xn--"+n.encode(oe):oe);this.hostname=ne.join(".")}this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,Y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==R[0]&&(R="/"+R))}if(!p[P])for(ue=0,k=o.length;ue<k;ue++){var be=o[ue],me=encodeURIComponent(be);me===be&&(me=escape(be)),R=R.split(be).join(me)}var ge=R.indexOf("#");-1!==ge&&(this.hash=R.substr(ge),R=R.slice(0,ge));var oe,F=R.indexOf("?");return-1!==F?(this.search=R.substr(F),this.query=R.substr(F+1),v&&(this.query=b.parse(this.query)),R=R.slice(0,F)):v&&(this.search="",this.query={}),R&&(this.pathname=R),S[P]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(oe=this.search||"")),this.href=this.format(),this},y.prototype.format=function(){var u=this.auth||"";u&&(u=(u=encodeURIComponent(u)).replace(/%3A/i,":"),u+="@");var v=this.protocol||"",h=this.pathname||"",R=this.hash||"",N=!1,P="";this.host?N=u+this.host:this.hostname&&(N=u+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(N+=":"+this.port)),this.query&&B(this.query)&&Object.keys(this.query).length&&(P=b.stringify(this.query));var U=this.search||P&&"?"+P||"";return v&&":"!==v.substr(-1)&&(v+=":"),this.slashes||(!v||S[v])&&!1!==N?(N="//"+(N||""),h&&"/"!==h.charAt(0)&&(h="/"+h)):N||(N=""),R&&"#"!==R.charAt(0)&&(R="#"+R),U&&"?"!==U.charAt(0)&&(U="?"+U),v+N+(h=h.replace(/[?#]/g,function(Z){return encodeURIComponent(Z)}))+(U=U.replace("#","%23"))+R},y.prototype.resolve=function(u){return this.resolveObject(A(u,!1,!0)).format()},y.prototype.resolveObject=function(u){if(H(u)){var v=new y;v.parse(u,!1,!0),u=v}var h=new y;if(Object.keys(this).forEach(function(O){h[O]=this[O]},this),h.hash=u.hash,""===u.href)return h.href=h.format(),h;if(u.slashes&&!u.protocol)return Object.keys(u).forEach(function(O){"protocol"!==O&&(h[O]=u[O])}),S[h.protocol]&&h.hostname&&!h.pathname&&(h.path=h.pathname="/"),h.href=h.format(),h;if(u.protocol&&u.protocol!==h.protocol){if(!S[u.protocol])return Object.keys(u).forEach(function(O){h[O]=u[O]}),h.href=h.format(),h;if(h.protocol=u.protocol,u.host||T[u.protocol])h.pathname=u.pathname;else{for(var re=(u.pathname||"").split("/");re.length&&!(u.host=re.shift()););u.host||(u.host=""),u.hostname||(u.hostname=""),""!==re[0]&&re.unshift(""),re.length<2&&re.unshift(""),h.pathname=re.join("/")}return h.search=u.search,h.query=u.query,h.host=u.host||"",h.auth=u.auth,h.hostname=u.hostname||u.host,h.port=u.port,(h.pathname||h.search)&&(h.path=(h.pathname||"")+(h.search||"")),h.slashes=h.slashes||u.slashes,h.href=h.format(),h}var P=h.pathname&&"/"===h.pathname.charAt(0),U=u.host||u.pathname&&"/"===u.pathname.charAt(0),Z=U||P||h.host&&u.pathname,ue=Z,V=h.pathname&&h.pathname.split("/")||[],ee=(re=u.pathname&&u.pathname.split("/")||[],h.protocol&&!S[h.protocol]);if(ee&&(h.hostname="",h.port=null,h.host&&(""===V[0]?V[0]=h.host:V.unshift(h.host)),h.host="",u.protocol&&(u.hostname=null,u.port=null,u.host&&(""===re[0]?re[0]=u.host:re.unshift(u.host)),u.host=null),Z=Z&&(""===re[0]||""===V[0])),U)h.host=u.host||""===u.host?u.host:h.host,h.hostname=u.hostname||""===u.hostname?u.hostname:h.hostname,h.search=u.search,h.query=u.query,V=re;else if(re.length)V||(V=[]),V.pop(),V=V.concat(re),h.search=u.search,h.query=u.query;else if(!function(u){return null==u}(u.search))return ee&&(h.hostname=h.host=V.shift(),(Y=!!(h.host&&h.host.indexOf("@")>0)&&h.host.split("@"))&&(h.auth=Y.shift(),h.host=h.hostname=Y.shift())),h.search=u.search,h.query=u.query,(!m(h.pathname)||!m(h.search))&&(h.path=(h.pathname?h.pathname:"")+(h.search?h.search:"")),h.href=h.format(),h;if(!V.length)return h.pathname=null,h.path=h.search?"/"+h.search:null,h.href=h.format(),h;for(var Q=V.slice(-1)[0],k=(h.host||u.host)&&("."===Q||".."===Q)||""===Q,K=0,C=V.length;C>=0;C--)"."==(Q=V[C])?V.splice(C,1):".."===Q?(V.splice(C,1),K++):K&&(V.splice(C,1),K--);if(!Z&&!ue)for(;K--;K)V.unshift("..");Z&&""!==V[0]&&(!V[0]||"/"!==V[0].charAt(0))&&V.unshift(""),k&&"/"!==V.join("/").substr(-1)&&V.push("");var Y,f=""===V[0]||V[0]&&"/"===V[0].charAt(0);return ee&&(h.hostname=h.host=f?"":V.length?V.shift():"",(Y=!!(h.host&&h.host.indexOf("@")>0)&&h.host.split("@"))&&(h.auth=Y.shift(),h.host=h.hostname=Y.shift())),(Z=Z||h.host&&V.length)&&!f&&V.unshift(""),V.length?h.pathname=V.join("/"):(h.pathname=null,h.path=null),(!m(h.pathname)||!m(h.search))&&(h.path=(h.pathname?h.pathname:"")+(h.search?h.search:"")),h.auth=u.auth||h.auth,h.slashes=h.slashes||u.slashes,h.href=h.format(),h},y.prototype.parseHost=function(){var u=this.host,v=e.exec(u);v&&(":"!==(v=v[0])&&(this.port=v.substr(1)),u=u.substr(0,u.length-v.length)),u&&(this.hostname=u)}},29459:(J,I,s)=>{var n=s(80122),y=s(70879),l=y;l.v1=n,l.v4=y,J.exports=l},70157:J=>{for(var I=[],s=0;s<256;++s)I[s]=(s+256).toString(16).substr(1);J.exports=function(y,l){var e=l||0;return[I[y[e++]],I[y[e++]],I[y[e++]],I[y[e++]],"-",I[y[e++]],I[y[e++]],"-",I[y[e++]],I[y[e++]],"-",I[y[e++]],I[y[e++]],"-",I[y[e++]],I[y[e++]],I[y[e++]],I[y[e++]],I[y[e++]],I[y[e++]]].join("")}},60109:J=>{var I="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(I){var s=new Uint8Array(16);J.exports=function(){return I(s),s}}else{var n=new Array(16);J.exports=function(){for(var e,l=0;l<16;l++)0==(3&l)&&(e=4294967296*Math.random()),n[l]=e>>>((3&l)<<3)&255;return n}}},80122:(J,I,s)=>{var l,e,n=s(60109),y=s(70157),t=0,a=0;J.exports=function(r,i,c){var d=i&&c||0,g=i||[],p=(r=r||{}).node||l,T=void 0!==r.clockseq?r.clockseq:e;if(null==p||null==T){var S=n();null==p&&(p=l=[1|S[0],S[1],S[2],S[3],S[4],S[5]]),null==T&&(T=e=16383&(S[6]<<8|S[7]))}var b=void 0!==r.msecs?r.msecs:(new Date).getTime(),A=void 0!==r.nsecs?r.nsecs:a+1,x=b-t+(A-a)/1e4;if(x<0&&void 0===r.clockseq&&(T=T+1&16383),(x<0||b>t)&&void 0===r.nsecs&&(A=0),A>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");t=b,a=A,e=T;var G=(1e4*(268435455&(b+=122192928e5))+A)%4294967296;g[d++]=G>>>24&255,g[d++]=G>>>16&255,g[d++]=G>>>8&255,g[d++]=255&G;var W=b/4294967296*1e4&268435455;g[d++]=W>>>8&255,g[d++]=255&W,g[d++]=W>>>24&15|16,g[d++]=W>>>16&255,g[d++]=T>>>8|128,g[d++]=255&T;for(var H=0;H<6;++H)g[d+H]=p[H];return i||y(g)}},70879:(J,I,s)=>{var n=s(60109),y=s(70157);J.exports=function(e,t,a){var o=t&&a||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var r=(e=e||{}).random||(e.rng||n)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t)for(var i=0;i<16;++i)t[o+i]=r[i];return t||y(r)}},28937:(J,I,s)=>{"use strict";var y=s(561),e=function(){function t(a){void 0===a&&(a=1e3),this.maxSize=a,this.cache=new y.LRUCache(a)}return Object.defineProperty(t.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),t.prototype.put=function(a,o){var r="string"!=typeof a?t.getKeyString(a):a,i=this.populateValue(o);this.cache.put(r,i)},t.prototype.get=function(a){var o="string"!=typeof a?t.getKeyString(a):a,r=Date.now(),i=this.cache.get(o);if(i){for(var c=i.length-1;c>=0;c--)i[c].Expire<r&&i.splice(c,1);if(0===i.length)return void this.cache.remove(o)}return i},t.getKeyString=function(a){for(var o=[],r=Object.keys(a).sort(),i=0;i<r.length;i++){var c=r[i];void 0!==a[c]&&o.push(a[c])}return o.join(" ")},t.prototype.populateValue=function(a){var o=Date.now();return a.map(function(r){return{Address:r.Address||"",Expire:o+60*(r.CachePeriodInMinutes||1)*1e3}})},t.prototype.empty=function(){this.cache.empty()},t.prototype.remove=function(a){var o="string"!=typeof a?t.getKeyString(a):a;this.cache.remove(o)},t}();I.$=e},561:(J,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var s=function(l,e){this.key=l,this.value=e},n=function(){function y(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(y.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),y.prototype.prependToList=function(l){this.headerNode?(this.headerNode.prev=l,l.next=this.headerNode):this.tailNode=l,this.headerNode=l,this.size++},y.prototype.removeFromTail=function(){if(this.tailNode){var l=this.tailNode,e=l.prev;return e&&(e.next=void 0),l.prev=void 0,this.tailNode=e,this.size--,l}},y.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--},y.prototype.get=function(l){if(this.nodeMap[l]){var e=this.nodeMap[l];return this.detachFromList(e),this.prependToList(e),e.value}},y.prototype.remove=function(l){this.nodeMap[l]&&(this.detachFromList(this.nodeMap[l]),delete this.nodeMap[l])},y.prototype.put=function(l,e){if(this.nodeMap[l])this.remove(l);else if(this.size===this.sizeLimit){var t=this.removeFromTail();delete this.nodeMap[t.key]}var o=new s(l,e);this.nodeMap[l]=o,this.prependToList(o)},y.prototype.empty=function(){for(var l=Object.keys(this.nodeMap),e=0;e<l.length;e++){var t=l[e];this.detachFromList(this.nodeMap[t]),delete this.nodeMap[t]}},y}();I.LRUCache=n},61210:(J,I)=>{"use strict";I.byteLength=function(p){var T=a(p),b=T[1];return 3*(T[0]+b)/4-b},I.toByteArray=function(p){var T,H,S=a(p),b=S[0],A=S[1],x=new y(function(p,T,S){return 3*(T+S)/4-S}(0,b,A)),G=0,W=A>0?b-4:b;for(H=0;H<W;H+=4)T=n[p.charCodeAt(H)]<<18|n[p.charCodeAt(H+1)]<<12|n[p.charCodeAt(H+2)]<<6|n[p.charCodeAt(H+3)],x[G++]=T>>16&255,x[G++]=T>>8&255,x[G++]=255&T;return 2===A&&(T=n[p.charCodeAt(H)]<<2|n[p.charCodeAt(H+1)]>>4,x[G++]=255&T),1===A&&(T=n[p.charCodeAt(H)]<<10|n[p.charCodeAt(H+1)]<<4|n[p.charCodeAt(H+2)]>>2,x[G++]=T>>8&255,x[G++]=255&T),x},I.fromByteArray=function(p){for(var T,S=p.length,b=S%3,A=[],x=16383,G=0,W=S-b;G<W;G+=x)A.push(d(p,G,G+x>W?W:G+x));return 1===b?A.push(s[(T=p[S-1])>>2]+s[T<<4&63]+"=="):2===b&&A.push(s[(T=(p[S-2]<<8)+p[S-1])>>10]+s[T>>4&63]+s[T<<2&63]+"="),A.join("")};for(var s=[],n=[],y="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,t=l.length;e<t;++e)s[e]=l[e],n[l.charCodeAt(e)]=e;function a(p){var T=p.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=p.indexOf("=");return-1===S&&(S=T),[S,S===T?0:4-S%4]}function c(p){return s[p>>18&63]+s[p>>12&63]+s[p>>6&63]+s[63&p]}function d(p,T,S){for(var A=[],x=T;x<S;x+=3)A.push(c((p[x]<<16&16711680)+(p[x+1]<<8&65280)+(255&p[x+2])));return A.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},2341:(J,I,s)=>{"use strict";var y=s(61210),l=s(18427),e=s(50130);function a(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(F,_){if(a()<_)throw new RangeError("Invalid typed array length");return r.TYPED_ARRAY_SUPPORT?(F=new Uint8Array(_)).__proto__=r.prototype:(null===F&&(F=new r(_)),F.length=_),F}function r(F,_,D){if(!(r.TYPED_ARRAY_SUPPORT||this instanceof r))return new r(F,_,D);if("number"==typeof F){if("string"==typeof _)throw new Error("If encoding is specified then the first argument must be a string");return g(this,F)}return i(this,F,_,D)}function i(F,_,D,X){if("number"==typeof _)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&_ instanceof ArrayBuffer?function(F,_,D,X){if(D<0||_.byteLength<D)throw new RangeError("'offset' is out of bounds");if(_.byteLength<D+(X||0))throw new RangeError("'length' is out of bounds");return _=void 0===D&&void 0===X?new Uint8Array(_):void 0===X?new Uint8Array(_,D):new Uint8Array(_,D,X),r.TYPED_ARRAY_SUPPORT?(F=_).__proto__=r.prototype:F=T(F,_),F}(F,_,D,X):"string"==typeof _?function(F,_,D){if(("string"!=typeof D||""===D)&&(D="utf8"),!r.isEncoding(D))throw new TypeError('"encoding" must be a valid string encoding');var X=0|G(_,D),le=(F=o(F,X)).write(_,D);return le!==X&&(F=F.slice(0,le)),F}(F,_,D):function(F,_){if(r.isBuffer(_)){var D=0|A(_.length);return 0===(F=o(F,D)).length||_.copy(F,0,0,D),F}if(_){if("undefined"!=typeof ArrayBuffer&&_.buffer instanceof ArrayBuffer||"length"in _)return"number"!=typeof _.length||function(F){return F!=F}(_.length)?o(F,0):T(F,_);if("Buffer"===_.type&&e(_.data))return T(F,_.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(F,_)}function c(F){if("number"!=typeof F)throw new TypeError('"size" argument must be a number');if(F<0)throw new RangeError('"size" argument must not be negative')}function g(F,_){if(c(_),F=o(F,_<0?0:0|A(_)),!r.TYPED_ARRAY_SUPPORT)for(var D=0;D<_;++D)F[D]=0;return F}function T(F,_){var D=_.length<0?0:0|A(_.length);F=o(F,D);for(var X=0;X<D;X+=1)F[X]=255&_[X];return F}function A(F){if(F>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|F}function G(F,_){if(r.isBuffer(F))return F.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(F)||F instanceof ArrayBuffer))return F.byteLength;"string"!=typeof F&&(F=""+F);var D=F.length;if(0===D)return 0;for(var X=!1;;)switch(_){case"ascii":case"latin1":case"binary":return D;case"utf8":case"utf-8":case void 0:return oe(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*D;case"hex":return D>>>1;case"base64":return be(F).length;default:if(X)return oe(F).length;_=(""+_).toLowerCase(),X=!0}}function W(F,_,D){var X=!1;if((void 0===_||_<0)&&(_=0),_>this.length||((void 0===D||D>this.length)&&(D=this.length),D<=0)||(D>>>=0)<=(_>>>=0))return"";for(F||(F="utf8");;)switch(F){case"hex":return ee(this,_,D);case"utf8":case"utf-8":return U(this,_,D);case"ascii":return V(this,_,D);case"latin1":case"binary":return re(this,_,D);case"base64":return P(this,_,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,_,D);default:if(X)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),X=!0}}function H(F,_,D){var X=F[_];F[_]=F[D],F[D]=X}function B(F,_,D,X,le){if(0===F.length)return-1;if("string"==typeof D?(X=D,D=0):D>2147483647?D=2147483647:D<-2147483648&&(D=-2147483648),D=+D,isNaN(D)&&(D=le?0:F.length-1),D<0&&(D=F.length+D),D>=F.length){if(le)return-1;D=F.length-1}else if(D<0){if(!le)return-1;D=0}if("string"==typeof _&&(_=r.from(_,X)),r.isBuffer(_))return 0===_.length?-1:m(F,_,D,X,le);if("number"==typeof _)return _&=255,r.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?le?Uint8Array.prototype.indexOf.call(F,_,D):Uint8Array.prototype.lastIndexOf.call(F,_,D):m(F,[_],D,X,le);throw new TypeError("val must be string, number or Buffer")}function m(F,_,D,X,le){var he,Se=1,L=F.length,ie=_.length;if(void 0!==X&&("ucs2"===(X=String(X).toLowerCase())||"ucs-2"===X||"utf16le"===X||"utf-16le"===X)){if(F.length<2||_.length<2)return-1;Se=2,L/=2,ie/=2,D/=2}function se(We,qe){return 1===Se?We[qe]:We.readUInt16BE(qe*Se)}if(le){var ye=-1;for(he=D;he<L;he++)if(se(F,he)===se(_,-1===ye?0:he-ye)){if(-1===ye&&(ye=he),he-ye+1===ie)return ye*Se}else-1!==ye&&(he-=he-ye),ye=-1}else for(D+ie>L&&(D=L-ie),he=D;he>=0;he--){for(var Oe=!0,Le=0;Le<ie;Le++)if(se(F,he+Le)!==se(_,Le)){Oe=!1;break}if(Oe)return he}return-1}function w(F,_,D,X){D=Number(D)||0;var le=F.length-D;X?(X=Number(X))>le&&(X=le):X=le;var Se=_.length;if(Se%2!=0)throw new TypeError("Invalid hex string");X>Se/2&&(X=Se/2);for(var L=0;L<X;++L){var ie=parseInt(_.substr(2*L,2),16);if(isNaN(ie))return L;F[D+L]=ie}return L}function u(F,_,D,X){return me(oe(_,F.length-D),F,D,X)}function v(F,_,D,X){return me(function(F){for(var _=[],D=0;D<F.length;++D)_.push(255&F.charCodeAt(D));return _}(_),F,D,X)}function h(F,_,D,X){return v(F,_,D,X)}function R(F,_,D,X){return me(be(_),F,D,X)}function N(F,_,D,X){return me(function(F,_){for(var D,X,Se=[],L=0;L<F.length&&!((_-=2)<0);++L)X=(D=F.charCodeAt(L))>>8,Se.push(D%256),Se.push(X);return Se}(_,F.length-D),F,D,X)}function P(F,_,D){return y.fromByteArray(0===_&&D===F.length?F:F.slice(_,D))}function U(F,_,D){D=Math.min(F.length,D);for(var X=[],le=_;le<D;){var se,he,ye,Oe,Se=F[le],L=null,ie=Se>239?4:Se>223?3:Se>191?2:1;if(le+ie<=D)switch(ie){case 1:Se<128&&(L=Se);break;case 2:128==(192&(se=F[le+1]))&&(Oe=(31&Se)<<6|63&se)>127&&(L=Oe);break;case 3:he=F[le+2],128==(192&(se=F[le+1]))&&128==(192&he)&&(Oe=(15&Se)<<12|(63&se)<<6|63&he)>2047&&(Oe<55296||Oe>57343)&&(L=Oe);break;case 4:he=F[le+2],ye=F[le+3],128==(192&(se=F[le+1]))&&128==(192&he)&&128==(192&ye)&&(Oe=(15&Se)<<18|(63&se)<<12|(63&he)<<6|63&ye)>65535&&Oe<1114112&&(L=Oe)}null===L?(L=65533,ie=1):L>65535&&(X.push((L-=65536)>>>10&1023|55296),L=56320|1023&L),X.push(L),le+=ie}return function(F){var _=F.length;if(_<=Z)return String.fromCharCode.apply(String,F);for(var D="",X=0;X<_;)D+=String.fromCharCode.apply(String,F.slice(X,X+=Z));return D}(X)}I.lW=r,I.h2=50,r.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:function(){try{var F=new Uint8Array(1);return F.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===F.foo()&&"function"==typeof F.subarray&&0===F.subarray(1,1).byteLength}catch(_){return!1}}(),a(),r.poolSize=8192,r._augment=function(F){return F.__proto__=r.prototype,F},r.from=function(F,_,D){return i(null,F,_,D)},r.TYPED_ARRAY_SUPPORT&&(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0})),r.alloc=function(F,_,D){return function(F,_,D,X){return c(_),_<=0?o(F,_):void 0!==D?"string"==typeof X?o(F,_).fill(D,X):o(F,_).fill(D):o(F,_)}(null,F,_,D)},r.allocUnsafe=function(F){return g(null,F)},r.allocUnsafeSlow=function(F){return g(null,F)},r.isBuffer=function(_){return!(null==_||!_._isBuffer)},r.compare=function(_,D){if(!r.isBuffer(_)||!r.isBuffer(D))throw new TypeError("Arguments must be Buffers");if(_===D)return 0;for(var X=_.length,le=D.length,Se=0,L=Math.min(X,le);Se<L;++Se)if(_[Se]!==D[Se]){X=_[Se],le=D[Se];break}return X<le?-1:le<X?1:0},r.isEncoding=function(_){switch(String(_).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}},r.concat=function(_,D){if(!e(_))throw new TypeError('"list" argument must be an Array of Buffers');if(0===_.length)return r.alloc(0);var X;if(void 0===D)for(D=0,X=0;X<_.length;++X)D+=_[X].length;var le=r.allocUnsafe(D),Se=0;for(X=0;X<_.length;++X){var L=_[X];if(!r.isBuffer(L))throw new TypeError('"list" argument must be an Array of Buffers');L.copy(le,Se),Se+=L.length}return le},r.byteLength=G,r.prototype._isBuffer=!0,r.prototype.swap16=function(){var _=this.length;if(_%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var D=0;D<_;D+=2)H(this,D,D+1);return this},r.prototype.swap32=function(){var _=this.length;if(_%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var D=0;D<_;D+=4)H(this,D,D+3),H(this,D+1,D+2);return this},r.prototype.swap64=function(){var _=this.length;if(_%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var D=0;D<_;D+=8)H(this,D,D+7),H(this,D+1,D+6),H(this,D+2,D+5),H(this,D+3,D+4);return this},r.prototype.toString=function(){var _=0|this.length;return 0===_?"":0===arguments.length?U(this,0,_):W.apply(this,arguments)},r.prototype.equals=function(_){if(!r.isBuffer(_))throw new TypeError("Argument must be a Buffer");return this===_||0===r.compare(this,_)},r.prototype.inspect=function(){var _="",D=I.h2;return this.length>0&&(_=this.toString("hex",0,D).match(/.{2}/g).join(" "),this.length>D&&(_+=" ... ")),"<Buffer "+_+">"},r.prototype.compare=function(_,D,X,le,Se){if(!r.isBuffer(_))throw new TypeError("Argument must be a Buffer");if(void 0===D&&(D=0),void 0===X&&(X=_?_.length:0),void 0===le&&(le=0),void 0===Se&&(Se=this.length),D<0||X>_.length||le<0||Se>this.length)throw new RangeError("out of range index");if(le>=Se&&D>=X)return 0;if(le>=Se)return-1;if(D>=X)return 1;if(this===_)return 0;for(var L=(Se>>>=0)-(le>>>=0),ie=(X>>>=0)-(D>>>=0),se=Math.min(L,ie),he=this.slice(le,Se),ye=_.slice(D,X),Oe=0;Oe<se;++Oe)if(he[Oe]!==ye[Oe]){L=he[Oe],ie=ye[Oe];break}return L<ie?-1:ie<L?1:0},r.prototype.includes=function(_,D,X){return-1!==this.indexOf(_,D,X)},r.prototype.indexOf=function(_,D,X){return B(this,_,D,X,!0)},r.prototype.lastIndexOf=function(_,D,X){return B(this,_,D,X,!1)},r.prototype.write=function(_,D,X,le){if(void 0===D)le="utf8",X=this.length,D=0;else if(void 0===X&&"string"==typeof D)le=D,X=this.length,D=0;else{if(!isFinite(D))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");D|=0,isFinite(X)?(X|=0,void 0===le&&(le="utf8")):(le=X,X=void 0)}var Se=this.length-D;if((void 0===X||X>Se)&&(X=Se),_.length>0&&(X<0||D<0)||D>this.length)throw new RangeError("Attempt to write outside buffer bounds");le||(le="utf8");for(var L=!1;;)switch(le){case"hex":return w(this,_,D,X);case"utf8":case"utf-8":return u(this,_,D,X);case"ascii":return v(this,_,D,X);case"latin1":case"binary":return h(this,_,D,X);case"base64":return R(this,_,D,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,_,D,X);default:if(L)throw new TypeError("Unknown encoding: "+le);le=(""+le).toLowerCase(),L=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;function V(F,_,D){var X="";D=Math.min(F.length,D);for(var le=_;le<D;++le)X+=String.fromCharCode(127&F[le]);return X}function re(F,_,D){var X="";D=Math.min(F.length,D);for(var le=_;le<D;++le)X+=String.fromCharCode(F[le]);return X}function ee(F,_,D){var X=F.length;(!_||_<0)&&(_=0),(!D||D<0||D>X)&&(D=X);for(var le="",Se=_;Se<D;++Se)le+=ne(F[Se]);return le}function Y(F,_,D){for(var X=F.slice(_,D),le="",Se=0;Se<X.length;Se+=2)le+=String.fromCharCode(X[Se]+256*X[Se+1]);return le}function Q(F,_,D){if(F%1!=0||F<0)throw new RangeError("offset is not uint");if(F+_>D)throw new RangeError("Trying to access beyond buffer length")}function k(F,_,D,X,le,Se){if(!r.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(_>le||_<Se)throw new RangeError('"value" argument is out of bounds');if(D+X>F.length)throw new RangeError("Index out of range")}function K(F,_,D,X){_<0&&(_=65535+_+1);for(var le=0,Se=Math.min(F.length-D,2);le<Se;++le)F[D+le]=(_&255<<8*(X?le:1-le))>>>8*(X?le:1-le)}function C(F,_,D,X){_<0&&(_=4294967295+_+1);for(var le=0,Se=Math.min(F.length-D,4);le<Se;++le)F[D+le]=_>>>8*(X?le:3-le)&255}function f(F,_,D,X,le,Se){if(D+X>F.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("Index out of range")}function O(F,_,D,X,le){return le||f(F,0,D,4),l.write(F,_,D,X,23,4),D+4}function E(F,_,D,X,le){return le||f(F,0,D,8),l.write(F,_,D,X,52,8),D+8}r.prototype.slice=function(_,D){var le,X=this.length;if((_=~~_)<0?(_+=X)<0&&(_=0):_>X&&(_=X),(D=void 0===D?X:~~D)<0?(D+=X)<0&&(D=0):D>X&&(D=X),D<_&&(D=_),r.TYPED_ARRAY_SUPPORT)(le=this.subarray(_,D)).__proto__=r.prototype;else{var Se=D-_;le=new r(Se,void 0);for(var L=0;L<Se;++L)le[L]=this[L+_]}return le},r.prototype.readUIntLE=function(_,D,X){_|=0,D|=0,X||Q(_,D,this.length);for(var le=this[_],Se=1,L=0;++L<D&&(Se*=256);)le+=this[_+L]*Se;return le},r.prototype.readUIntBE=function(_,D,X){_|=0,D|=0,X||Q(_,D,this.length);for(var le=this[_+--D],Se=1;D>0&&(Se*=256);)le+=this[_+--D]*Se;return le},r.prototype.readUInt8=function(_,D){return D||Q(_,1,this.length),this[_]},r.prototype.readUInt16LE=function(_,D){return D||Q(_,2,this.length),this[_]|this[_+1]<<8},r.prototype.readUInt16BE=function(_,D){return D||Q(_,2,this.length),this[_]<<8|this[_+1]},r.prototype.readUInt32LE=function(_,D){return D||Q(_,4,this.length),(this[_]|this[_+1]<<8|this[_+2]<<16)+16777216*this[_+3]},r.prototype.readUInt32BE=function(_,D){return D||Q(_,4,this.length),16777216*this[_]+(this[_+1]<<16|this[_+2]<<8|this[_+3])},r.prototype.readIntLE=function(_,D,X){_|=0,D|=0,X||Q(_,D,this.length);for(var le=this[_],Se=1,L=0;++L<D&&(Se*=256);)le+=this[_+L]*Se;return le>=(Se*=128)&&(le-=Math.pow(2,8*D)),le},r.prototype.readIntBE=function(_,D,X){_|=0,D|=0,X||Q(_,D,this.length);for(var le=D,Se=1,L=this[_+--le];le>0&&(Se*=256);)L+=this[_+--le]*Se;return L>=(Se*=128)&&(L-=Math.pow(2,8*D)),L},r.prototype.readInt8=function(_,D){return D||Q(_,1,this.length),128&this[_]?-1*(255-this[_]+1):this[_]},r.prototype.readInt16LE=function(_,D){D||Q(_,2,this.length);var X=this[_]|this[_+1]<<8;return 32768&X?4294901760|X:X},r.prototype.readInt16BE=function(_,D){D||Q(_,2,this.length);var X=this[_+1]|this[_]<<8;return 32768&X?4294901760|X:X},r.prototype.readInt32LE=function(_,D){return D||Q(_,4,this.length),this[_]|this[_+1]<<8|this[_+2]<<16|this[_+3]<<24},r.prototype.readInt32BE=function(_,D){return D||Q(_,4,this.length),this[_]<<24|this[_+1]<<16|this[_+2]<<8|this[_+3]},r.prototype.readFloatLE=function(_,D){return D||Q(_,4,this.length),l.read(this,_,!0,23,4)},r.prototype.readFloatBE=function(_,D){return D||Q(_,4,this.length),l.read(this,_,!1,23,4)},r.prototype.readDoubleLE=function(_,D){return D||Q(_,8,this.length),l.read(this,_,!0,52,8)},r.prototype.readDoubleBE=function(_,D){return D||Q(_,8,this.length),l.read(this,_,!1,52,8)},r.prototype.writeUIntLE=function(_,D,X,le){_=+_,D|=0,X|=0,le||k(this,_,D,X,Math.pow(2,8*X)-1,0);var L=1,ie=0;for(this[D]=255&_;++ie<X&&(L*=256);)this[D+ie]=_/L&255;return D+X},r.prototype.writeUIntBE=function(_,D,X,le){_=+_,D|=0,X|=0,le||k(this,_,D,X,Math.pow(2,8*X)-1,0);var L=X-1,ie=1;for(this[D+L]=255&_;--L>=0&&(ie*=256);)this[D+L]=_/ie&255;return D+X},r.prototype.writeUInt8=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,1,255,0),r.TYPED_ARRAY_SUPPORT||(_=Math.floor(_)),this[D]=255&_,D+1},r.prototype.writeUInt16LE=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[D]=255&_,this[D+1]=_>>>8):K(this,_,D,!0),D+2},r.prototype.writeUInt16BE=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[D]=_>>>8,this[D+1]=255&_):K(this,_,D,!1),D+2},r.prototype.writeUInt32LE=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[D+3]=_>>>24,this[D+2]=_>>>16,this[D+1]=_>>>8,this[D]=255&_):C(this,_,D,!0),D+4},r.prototype.writeUInt32BE=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[D]=_>>>24,this[D+1]=_>>>16,this[D+2]=_>>>8,this[D+3]=255&_):C(this,_,D,!1),D+4},r.prototype.writeIntLE=function(_,D,X,le){if(_=+_,D|=0,!le){var Se=Math.pow(2,8*X-1);k(this,_,D,X,Se-1,-Se)}var L=0,ie=1,se=0;for(this[D]=255&_;++L<X&&(ie*=256);)_<0&&0===se&&0!==this[D+L-1]&&(se=1),this[D+L]=(_/ie>>0)-se&255;return D+X},r.prototype.writeIntBE=function(_,D,X,le){if(_=+_,D|=0,!le){var Se=Math.pow(2,8*X-1);k(this,_,D,X,Se-1,-Se)}var L=X-1,ie=1,se=0;for(this[D+L]=255&_;--L>=0&&(ie*=256);)_<0&&0===se&&0!==this[D+L+1]&&(se=1),this[D+L]=(_/ie>>0)-se&255;return D+X},r.prototype.writeInt8=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,1,127,-128),r.TYPED_ARRAY_SUPPORT||(_=Math.floor(_)),_<0&&(_=255+_+1),this[D]=255&_,D+1},r.prototype.writeInt16LE=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[D]=255&_,this[D+1]=_>>>8):K(this,_,D,!0),D+2},r.prototype.writeInt16BE=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[D]=_>>>8,this[D+1]=255&_):K(this,_,D,!1),D+2},r.prototype.writeInt32LE=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[D]=255&_,this[D+1]=_>>>8,this[D+2]=_>>>16,this[D+3]=_>>>24):C(this,_,D,!0),D+4},r.prototype.writeInt32BE=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,4,2147483647,-2147483648),_<0&&(_=4294967295+_+1),r.TYPED_ARRAY_SUPPORT?(this[D]=_>>>24,this[D+1]=_>>>16,this[D+2]=_>>>8,this[D+3]=255&_):C(this,_,D,!1),D+4},r.prototype.writeFloatLE=function(_,D,X){return O(this,_,D,!0,X)},r.prototype.writeFloatBE=function(_,D,X){return O(this,_,D,!1,X)},r.prototype.writeDoubleLE=function(_,D,X){return E(this,_,D,!0,X)},r.prototype.writeDoubleBE=function(_,D,X){return E(this,_,D,!1,X)},r.prototype.copy=function(_,D,X,le){if(X||(X=0),!le&&0!==le&&(le=this.length),D>=_.length&&(D=_.length),D||(D=0),le>0&&le<X&&(le=X),le===X||0===_.length||0===this.length)return 0;if(D<0)throw new RangeError("targetStart out of bounds");if(X<0||X>=this.length)throw new RangeError("sourceStart out of bounds");if(le<0)throw new RangeError("sourceEnd out of bounds");le>this.length&&(le=this.length),_.length-D<le-X&&(le=_.length-D+X);var L,Se=le-X;if(this===_&&X<D&&D<le)for(L=Se-1;L>=0;--L)_[L+D]=this[L+X];else if(Se<1e3||!r.TYPED_ARRAY_SUPPORT)for(L=0;L<Se;++L)_[L+D]=this[L+X];else Uint8Array.prototype.set.call(_,this.subarray(X,X+Se),D);return Se},r.prototype.fill=function(_,D,X,le){if("string"==typeof _){if("string"==typeof D?(le=D,D=0,X=this.length):"string"==typeof X&&(le=X,X=this.length),1===_.length){var Se=_.charCodeAt(0);Se<256&&(_=Se)}if(void 0!==le&&"string"!=typeof le)throw new TypeError("encoding must be a string");if("string"==typeof le&&!r.isEncoding(le))throw new TypeError("Unknown encoding: "+le)}else"number"==typeof _&&(_&=255);if(D<0||this.length<D||this.length<X)throw new RangeError("Out of range index");if(X<=D)return this;var L;if(D>>>=0,X=void 0===X?this.length:X>>>0,_||(_=0),"number"==typeof _)for(L=D;L<X;++L)this[L]=_;else{var ie=r.isBuffer(_)?_:oe(new r(_,le).toString()),se=ie.length;for(L=0;L<X-D;++L)this[L+D]=ie[L%se]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function ne(F){return F<16?"0"+F.toString(16):F.toString(16)}function oe(F,_){_=_||1/0;for(var D,X=F.length,le=null,Se=[],L=0;L<X;++L){if((D=F.charCodeAt(L))>55295&&D<57344){if(!le){if(D>56319){(_-=3)>-1&&Se.push(239,191,189);continue}if(L+1===X){(_-=3)>-1&&Se.push(239,191,189);continue}le=D;continue}if(D<56320){(_-=3)>-1&&Se.push(239,191,189),le=D;continue}D=65536+(le-55296<<10|D-56320)}else le&&(_-=3)>-1&&Se.push(239,191,189);if(le=null,D<128){if((_-=1)<0)break;Se.push(D)}else if(D<2048){if((_-=2)<0)break;Se.push(D>>6|192,63&D|128)}else if(D<65536){if((_-=3)<0)break;Se.push(D>>12|224,D>>6&63|128,63&D|128)}else{if(!(D<1114112))throw new Error("Invalid code point");if((_-=4)<0)break;Se.push(D>>18|240,D>>12&63|128,D>>6&63|128,63&D|128)}}return Se}function be(F){return y.toByteArray(function(F){if((F=function(F){return F.trim?F.trim():F.replace(/^\s+|\s+$/g,"")}(F).replace(M,"")).length<2)return"";for(;F.length%4!=0;)F+="=";return F}(F))}function me(F,_,D,X){for(var le=0;le<X&&!(le+D>=_.length||le>=F.length);++le)_[le+D]=F[le];return le}},18427:(J,I)=>{I.read=function(s,n,y,l,e){var t,a,o=8*e-l-1,r=(1<<o)-1,i=r>>1,c=-7,d=y?e-1:0,g=y?-1:1,p=s[n+d];for(d+=g,t=p&(1<<-c)-1,p>>=-c,c+=o;c>0;t=256*t+s[n+d],d+=g,c-=8);for(a=t&(1<<-c)-1,t>>=-c,c+=l;c>0;a=256*a+s[n+d],d+=g,c-=8);if(0===t)t=1-i;else{if(t===r)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,l),t-=i}return(p?-1:1)*a*Math.pow(2,t-l)},I.write=function(s,n,y,l,e,t){var a,o,r,i=8*t-e-1,c=(1<<i)-1,d=c>>1,g=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,p=l?0:t-1,T=l?1:-1,S=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(o=isNaN(n)?1:0,a=c):(a=Math.floor(Math.log(n)/Math.LN2),n*(r=Math.pow(2,-a))<1&&(a--,r*=2),(n+=a+d>=1?g/r:g*Math.pow(2,1-d))*r>=2&&(a++,r/=2),a+d>=c?(o=0,a=c):a+d>=1?(o=(n*r-1)*Math.pow(2,e),a+=d):(o=n*Math.pow(2,d-1)*Math.pow(2,e),a=0));e>=8;s[y+p]=255&o,p+=T,o/=256,e-=8);for(a=a<<e|o,i+=e;i>0;s[y+p]=255&a,p+=T,a/=256,i-=8);s[y+p-T]|=128*S}},43653:(J,I,s)=>{"use strict";var n=s(62976),y=s(67043),l=y(n("String.prototype.indexOf"));J.exports=function(t,a){var o=n(t,!!a);return"function"==typeof o&&l(t,".prototype.")>-1?y(o):o}},67043:(J,I,s)=>{"use strict";var n=s(4738),y=s(62976),l=y("%Function.prototype.apply%"),e=y("%Function.prototype.call%"),t=y("%Reflect.apply%",!0)||n.call(e,l),a=y("%Object.getOwnPropertyDescriptor%",!0),o=y("%Object.defineProperty%",!0),r=y("%Math.max%");if(o)try{o({},"a",{value:1})}catch(c){o=null}J.exports=function(d){var g=t(n,e,arguments);if(a&&o){var p=a(g,"length");p.configurable&&o(g,"length",{value:1+r(0,d.length-(arguments.length-1))})}return g};var i=function(){return t(n,l,arguments)};o?o(J.exports,"apply",{value:i}):J.exports.apply=i},65771:(J,I,s)=>{function t(){var o;try{o=I.storage.debug}catch(r){}return!o&&"undefined"!=typeof process&&"env"in process&&(o=process.env.DEBUG),o}(I=J.exports=s(15578)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},I.formatArgs=function(o){var r=this.useColors;if(o[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+o[0]+(r?"%c ":" ")+"+"+I.humanize(this.diff),r){var i="color: "+this.color;o.splice(1,0,i,"color: inherit");var c=0,d=0;o[0].replace(/%[a-zA-Z%]/g,function(g){"%%"!==g&&(c++,"%c"===g&&(d=c))}),o.splice(d,0,i)}},I.save=function(o){try{null==o?I.storage.removeItem("debug"):I.storage.debug=o}catch(r){}},I.load=t,I.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},I.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(o){}}(),I.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],I.formatters.j=function(o){try{return JSON.stringify(o)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}},I.enable(t())},15578:(J,I,s)=>{var n;function l(r){function i(){if(i.enabled){var c=i,d=+new Date,g=d-(n||d);c.diff=g,c.prev=n,c.curr=d,n=d;for(var p=new Array(arguments.length),T=0;T<p.length;T++)p[T]=arguments[T];p[0]=I.coerce(p[0]),"string"!=typeof p[0]&&p.unshift("%O");var S=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,function(A,x){if("%%"===A)return A;S++;var G=I.formatters[x];return"function"==typeof G&&(A=G.call(c,p[S]),p.splice(S,1),S--),A}),I.formatArgs.call(c,p);var b=i.log||I.log||console.log.bind(console);b.apply(c,p)}}return i.namespace=r,i.enabled=I.enabled(r),i.useColors=I.useColors(),i.color=function(r){var c,i=0;for(c in r)i=(i<<5)-i+r.charCodeAt(c),i|=0;return I.colors[Math.abs(i)%I.colors.length]}(r),"function"==typeof I.init&&I.init(i),i}(I=J.exports=l.debug=l.default=l).coerce=function(r){return r instanceof Error?r.stack||r.message:r},I.disable=function(){I.enable("")},I.enable=function(r){I.save(r),I.names=[],I.skips=[];for(var i=("string"==typeof r?r:"").split(/[\s,]+/),c=i.length,d=0;d<c;d++)!i[d]||("-"===(r=i[d].replace(/\*/g,".*?"))[0]?I.skips.push(new RegExp("^"+r.substr(1)+"$")):I.names.push(new RegExp("^"+r+"$")))},I.enabled=function(r){var i,c;for(i=0,c=I.skips.length;i<c;i++)if(I.skips[i].test(r))return!1;for(i=0,c=I.names.length;i<c;i++)if(I.names[i].test(r))return!0;return!1},I.humanize=s(67659),I.names=[],I.skips=[],I.formatters={}},14943:J=>{function I(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function s(e){return"function"==typeof e}function y(e){return"object"==typeof e&&null!==e}function l(e){return void 0===e}J.exports=I,I.EventEmitter=I,I.prototype._events=void 0,I.prototype._maxListeners=void 0,I.defaultMaxListeners=10,I.prototype.setMaxListeners=function(e){if(!function(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},I.prototype.emit=function(e){var t,a,o,r,i,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||y(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var d=new Error('Uncaught, unspecified "error" event. ('+t+")");throw d.context=t,d}if(l(a=this._events[e]))return!1;if(s(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:r=Array.prototype.slice.call(arguments,1),a.apply(this,r)}else if(y(a))for(r=Array.prototype.slice.call(arguments,1),o=(c=a.slice()).length,i=0;i<o;i++)c[i].apply(this,r);return!0},I.prototype.on=I.prototype.addListener=function(e,t){var a;if(!s(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,s(t.listener)?t.listener:t),this._events[e]?y(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,y(this._events[e])&&!this._events[e].warned&&(a=l(this._maxListeners)?I.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},I.prototype.once=function(e,t){if(!s(t))throw TypeError("listener must be a function");var a=!1;function o(){this.removeListener(e,o),a||(a=!0,t.apply(this,arguments))}return o.listener=t,this.on(e,o),this},I.prototype.removeListener=function(e,t){var a,o,r,i;if(!s(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=(a=this._events[e]).length,o=-1,a===t||s(a.listener)&&a.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(y(a)){for(i=r;i-- >0;)if(a[i]===t||a[i].listener&&a[i].listener===t){o=i;break}if(o<0)return this;1===a.length?(a.length=0,delete this._events[e]):a.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},I.prototype.removeAllListeners=function(e){var t,a;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(s(a=this._events[e]))this.removeListener(e,a);else if(a)for(;a.length;)this.removeListener(e,a[a.length-1]);return delete this._events[e],this},I.prototype.listeners=function(e){return this._events&&this._events[e]?s(this._events[e])?[this._events[e]]:this._events[e].slice():[]},I.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(s(t))return 1;if(t)return t.length}return 0},I.listenerCount=function(e,t){return e.listenerCount(t)}},75616:J=>{"use strict";J.exports=function(I,s){s||(s={}),"function"==typeof s&&(s={cmp:s});var e,n="boolean"==typeof s.cycles&&s.cycles,y=s.cmp&&(e=s.cmp,function(t){return function(a,o){return e({key:a,value:t[a]},{key:o,value:t[o]})}}),l=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var a,o;if(Array.isArray(t)){for(o="[",a=0;a<t.length;a++)a&&(o+=","),o+=e(t[a])||"null";return o+"]"}if(null===t)return"null";if(-1!==l.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var r=l.push(t)-1,i=Object.keys(t).sort(y&&y(t));for(o="",a=0;a<i.length;a++){var c=i[a],d=e(t[c]);!d||(o&&(o+=","),o+=JSON.stringify(c)+":"+d)}return l.splice(r,1),"{"+o+"}"}}(I)}},88146:J=>{var I=Object.prototype.hasOwnProperty,s=Object.prototype.toString;J.exports=function(y,l,e){if("[object Function]"!==s.call(l))throw new TypeError("iterator must be a function");var t=y.length;if(t===+t)for(var a=0;a<t;a++)l.call(e,y[a],a,y);else for(var o in y)I.call(y,o)&&l.call(e,y[o],o,y)}},50145:J=>{"use strict";var I="Function.prototype.bind called on incompatible ",s=Array.prototype.slice,n=Object.prototype.toString,y="[object Function]";J.exports=function(e){var t=this;if("function"!=typeof t||n.call(t)!==y)throw new TypeError(I+t);for(var o,a=s.call(arguments,1),r=function(){if(this instanceof o){var p=t.apply(this,a.concat(s.call(arguments)));return Object(p)===p?p:this}return t.apply(e,a.concat(s.call(arguments)))},i=Math.max(0,t.length-a.length),c=[],d=0;d<i;d++)c.push("$"+d);if(o=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(r),t.prototype){var g=function(){};g.prototype=t.prototype,o.prototype=new g,g.prototype=null}return o}},4738:(J,I,s)=>{"use strict";var n=s(50145);J.exports=Function.prototype.bind||n},62976:(J,I,s)=>{"use strict";var n,y=SyntaxError,l=Function,e=TypeError,t=function(v){try{return l('"use strict"; return ('+v+").constructor;")()}catch(h){}},a=Object.getOwnPropertyDescriptor;if(a)try{a({},"")}catch(v){a=null}var o=function(){throw new e},r=a?function(){try{return o}catch(v){try{return a(arguments,"callee").get}catch(h){return o}}}():o,i=s(22452)(),c=Object.getPrototypeOf||function(v){return v.__proto__},d={},g="undefined"==typeof Uint8Array?n:c(Uint8Array),p={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":i?c([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":l,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":i?c(c([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&i?c((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&i?c((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":i?c(""[Symbol.iterator]()):n,"%Symbol%":i?Symbol:n,"%SyntaxError%":y,"%ThrowTypeError%":r,"%TypedArray%":g,"%TypeError%":e,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},T=function v(h){var R;if("%AsyncFunction%"===h)R=t("async function () {}");else if("%GeneratorFunction%"===h)R=t("function* () {}");else if("%AsyncGeneratorFunction%"===h)R=t("async function* () {}");else if("%AsyncGenerator%"===h){var N=v("%AsyncGeneratorFunction%");N&&(R=N.prototype)}else if("%AsyncIteratorPrototype%"===h){var P=v("%AsyncGenerator%");P&&(R=c(P.prototype))}return p[h]=R,R},S={"%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"]},b=s(4738),A=s(59704),x=b.call(Function.call,Array.prototype.concat),G=b.call(Function.apply,Array.prototype.splice),W=b.call(Function.call,String.prototype.replace),H=b.call(Function.call,String.prototype.slice),B=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,m=/\\(\\)?/g,w=function(h){var R=H(h,0,1),N=H(h,-1);if("%"===R&&"%"!==N)throw new y("invalid intrinsic syntax, expected closing `%`");if("%"===N&&"%"!==R)throw new y("invalid intrinsic syntax, expected opening `%`");var P=[];return W(h,B,function(U,Z,ue,V){P[P.length]=ue?W(V,m,"$1"):Z||U}),P},u=function(h,R){var P,N=h;if(A(S,N)&&(N="%"+(P=S[N])[0]+"%"),A(p,N)){var U=p[N];if(U===d&&(U=T(N)),void 0===U&&!R)throw new e("intrinsic "+h+" exists, but is not available. Please file an issue!");return{alias:P,name:N,value:U}}throw new y("intrinsic "+h+" does not exist!")};J.exports=function(h,R){if("string"!=typeof h||0===h.length)throw new e("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof R)throw new e('"allowMissing" argument must be a boolean');var N=w(h),P=N.length>0?N[0]:"",U=u("%"+P+"%",R),Z=U.name,ue=U.value,V=!1,re=U.alias;re&&(P=re[0],G(N,x([0,1],re)));for(var ee=1,Y=!0;ee<N.length;ee+=1){var Q=N[ee],k=H(Q,0,1),K=H(Q,-1);if(('"'===k||"'"===k||"`"===k||'"'===K||"'"===K||"`"===K)&&k!==K)throw new y("property names with quotes must have matching quotes");if(("constructor"===Q||!Y)&&(V=!0),A(p,Z="%"+(P+="."+Q)+"%"))ue=p[Z];else if(null!=ue){if(!(Q in ue)){if(!R)throw new e("base intrinsic for "+h+" exists, but the property is not available.");return}if(a&&ee+1>=N.length){var C=a(ue,Q);ue=(Y=!!C)&&"get"in C&&!("originalValue"in C.get)?C.get:ue[Q]}else Y=A(ue,Q),ue=ue[Q];Y&&!V&&(p[Z]=ue)}}return ue}},92886:(J,I,s)=>{"use strict";s.d(I,{ZP:()=>O,J9:()=>C,_t:()=>k,wO:()=>K,HW:()=>Q});var l=function(){return(l=Object.assign||function(M){for(var j,q=1,ne=arguments.length;q<ne;q++)for(var oe in j=arguments[q])Object.prototype.hasOwnProperty.call(j,oe)&&(M[oe]=j[oe]);return M}).apply(this,arguments)},h=s(51724),R=new Map,N=new Map,P=!0,U=!1;function Z(E){return E.replace(/[\s,]+/g," ").trim()}function ee(E){var M=Z(E);if(!R.has(M)){var j=(0,h.Qc)(E,{experimentalFragmentVariables:U});if(!j||"Document"!==j.kind)throw new Error("Not a valid GraphQL document.");R.set(M,function(E){var M=new Set(E.definitions);M.forEach(function(q){q.loc&&delete q.loc,Object.keys(q).forEach(function(ne){var oe=q[ne];oe&&"object"==typeof oe&&M.add(oe)})});var j=E.loc;return j&&(delete j.startToken,delete j.endToken),E}(function(E){var M=new Set,j=[];return E.definitions.forEach(function(q){if("FragmentDefinition"===q.kind){var ne=q.name.value,oe=function(E){return Z(E.source.body.substring(E.start,E.end))}(q.loc),de=N.get(ne);de&&!de.has(oe)?P&&console.warn("Warning: fragment with name "+ne+" 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"):de||N.set(ne,de=new Set),de.add(oe),M.has(oe)||(M.add(oe),j.push(q))}else j.push(q)}),l(l({},E),{definitions:j})}(j)))}return R.get(M)}function Y(E){for(var M=[],j=1;j<arguments.length;j++)M[j-1]=arguments[j];"string"==typeof E&&(E=[E]);var q=E[0];return M.forEach(function(ne,oe){q+=ne&&"Document"===ne.kind?ne.loc.source.body:ne,q+=E[oe+1]}),ee(q)}function Q(){R.clear(),N.clear()}function k(){P=!1}function K(){U=!0}function C(){U=!1}var E,f_gql=Y,f_resetCaches=Q,f_disableFragmentWarnings=k,f_enableExperimentalFragmentVariables=K,f_disableExperimentalFragmentVariables=C;(E=Y||(Y={})).gql=f_gql,E.resetCaches=f_resetCaches,E.disableFragmentWarnings=f_disableFragmentWarnings,E.enableExperimentalFragmentVariables=f_enableExperimentalFragmentVariables,E.disableExperimentalFragmentVariables=f_disableExperimentalFragmentVariables,Y.default=Y;const O=Y},22452:(J,I,s)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,y=s(66203);J.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&y()}},66203:J=>{"use strict";J.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var s={},n=Symbol("test"),y=Object(n);if("string"==typeof n||"[object Symbol]"!==Object.prototype.toString.call(n)||"[object Symbol]"!==Object.prototype.toString.call(y))return!1;for(n in s[n]=42,s)return!1;if("function"==typeof Object.keys&&0!==Object.keys(s).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(s).length)return!1;var e=Object.getOwnPropertySymbols(s);if(1!==e.length||e[0]!==n||!Object.prototype.propertyIsEnumerable.call(s,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var t=Object.getOwnPropertyDescriptor(s,n);if(42!==t.value||!0!==t.enumerable)return!1}return!0}},59704:(J,I,s)=>{"use strict";var n=s(4738);J.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},13057:J=>{J.exports="function"==typeof Object.create?function(s,n){n&&(s.super_=n,s.prototype=Object.create(n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}))}:function(s,n){if(n){s.super_=n;var y=function(){};y.prototype=n.prototype,s.prototype=new y,s.prototype.constructor=s}}},66651:(J,I,s)=>{"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,l=s(43653)("Object.prototype.toString"),e=function(r){return!(n&&r&&"object"==typeof r&&Symbol.toStringTag in r)&&"[object Arguments]"===l(r)},t=function(r){return!!e(r)||null!==r&&"object"==typeof r&&"number"==typeof r.length&&r.length>=0&&"[object Array]"!==l(r)&&"[object Function]"===l(r.callee)},a=function(){return e(arguments)}();e.isLegacyArguments=t,J.exports=a?e:t},80142:J=>{"use strict";var t,I=Object.prototype.toString,s=Function.prototype.toString,n=/^\s*(?:function)?\*/,y="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,l=Object.getPrototypeOf;J.exports=function(o){if("function"!=typeof o)return!1;if(n.test(s.call(o)))return!0;if(!y)return"[object GeneratorFunction]"===I.call(o);if(!l)return!1;if(void 0===t){var i=function(){if(!y)return!1;try{return Function("return function*() {}")()}catch(a){}}();t=!!i&&l(i)}return l(o)===t}},65504:(J,I,s)=>{"use strict";var n=s(88146),y=s(54674),l=s(43653),e=l("Object.prototype.toString"),a=s(22452)()&&"symbol"==typeof Symbol.toStringTag,o=y(),r=l("Array.prototype.indexOf",!0)||function(S,b){for(var A=0;A<S.length;A+=1)if(S[A]===b)return A;return-1},i=l("String.prototype.slice"),c={},d=s(35887),g=Object.getPrototypeOf;a&&d&&g&&n(o,function(T){var S=new global[T];if(!(Symbol.toStringTag in S))throw new EvalError("this engine has support for Symbol.toStringTag, but "+T+" does not have the property! Please report this.");var b=g(S),A=d(b,Symbol.toStringTag);if(!A){var x=g(b);A=d(x,Symbol.toStringTag)}c[T]=A.get}),J.exports=function(S){if(!S||"object"!=typeof S)return!1;if(!a){var b=i(e(S),8,-1);return r(o,b)>-1}return!!d&&function(S){var b=!1;return n(c,function(A,x){if(!b)try{b=A.call(S)===x}catch(G){}}),b}(S)}},50130:J=>{var I={}.toString;J.exports=Array.isArray||function(s){return"[object Array]"==I.call(s)}},94443:(J,I)=>{!function(s){"use strict";function n(L){return null!==L&&"[object Array]"===Object.prototype.toString.call(L)}function y(L){return null!==L&&"[object Object]"===Object.prototype.toString.call(L)}function l(L,ie){if(L===ie)return!0;if(Object.prototype.toString.call(L)!==Object.prototype.toString.call(ie))return!1;if(!0===n(L)){if(L.length!==ie.length)return!1;for(var he=0;he<L.length;he++)if(!1===l(L[he],ie[he]))return!1;return!0}if(!0===y(L)){var ye={};for(var Oe in L)if(hasOwnProperty.call(L,Oe)){if(!1===l(L[Oe],ie[Oe]))return!1;ye[Oe]=!0}for(var Le in ie)if(hasOwnProperty.call(ie,Le)&&!0!==ye[Le])return!1;return!0}return!1}function e(L){if(""===L||!1===L||null===L)return!0;if(n(L)&&0===L.length)return!0;if(y(L)){for(var ie in L)if(L.hasOwnProperty(ie))return!1;return!0}return!1}var o;o="function"==typeof String.prototype.trimLeft?function(L){return L.trimLeft()}:function(L){return L.match(/^\s*(.*)/)[1]};var r=0,c=2,x="EOF",G="UnquotedIdentifier",W="QuotedIdentifier",H="Rbracket",B="Rparen",m="Comma",w="Colon",u="Rbrace",v="Number",h="Current",R="Expref",N="Pipe",U="And",Z="EQ",V="LT",Y="NE",Q="Flatten",k="Star",K="Filter",C="Dot",f="Not",O="Lbrace",E="Lbracket",M="Lparen",j="Literal",q={".":C,"*":k,",":m,":":w,"{":O,"}":u,"]":H,"(":M,")":B,"@":h},ne={"<":!0,">":!0,"=":!0,"!":!0},oe={" ":!0,"\t":!0,"\n":!0};function de(L){return L>="a"&&L<="z"||L>="A"&&L<="Z"||"_"===L}function ve(L){return L>="0"&&L<="9"||"-"===L}function be(L){return L>="a"&&L<="z"||L>="A"&&L<="Z"||L>="0"&&L<="9"||"_"===L}function me(){}me.prototype={tokenize:function(L){var se,he,ye,ie=[];for(this._current=0;this._current<L.length;)if(de(L[this._current]))se=this._current,he=this._consumeUnquotedIdentifier(L),ie.push({type:G,value:he,start:se});else if(void 0!==q[L[this._current]])ie.push({type:q[L[this._current]],value:L[this._current],start:this._current}),this._current++;else if(ve(L[this._current]))ye=this._consumeNumber(L),ie.push(ye);else if("["===L[this._current])ye=this._consumeLBracket(L),ie.push(ye);else if('"'===L[this._current])se=this._current,he=this._consumeQuotedIdentifier(L),ie.push({type:W,value:he,start:se});else if("'"===L[this._current])se=this._current,he=this._consumeRawStringLiteral(L),ie.push({type:j,value:he,start:se});else if("`"===L[this._current]){se=this._current;var Oe=this._consumeLiteral(L);ie.push({type:j,value:Oe,start:se})}else if(void 0!==ne[L[this._current]])ie.push(this._consumeOperator(L));else if(void 0!==oe[L[this._current]])this._current++;else if("&"===L[this._current])se=this._current,this._current++,"&"===L[this._current]?(this._current++,ie.push({type:U,value:"&&",start:se})):ie.push({type:R,value:"&",start:se});else{if("|"!==L[this._current]){var Le=new Error("Unknown character:"+L[this._current]);throw Le.name="LexerError",Le}se=this._current,this._current++,"|"===L[this._current]?(this._current++,ie.push({type:"Or",value:"||",start:se})):ie.push({type:N,value:"|",start:se})}return ie},_consumeUnquotedIdentifier:function(L){var ie=this._current;for(this._current++;this._current<L.length&&be(L[this._current]);)this._current++;return L.slice(ie,this._current)},_consumeQuotedIdentifier:function(L){var ie=this._current;this._current++;for(var se=L.length;'"'!==L[this._current]&&this._current<se;){var he=this._current;"\\"!==L[he]||"\\"!==L[he+1]&&'"'!==L[he+1]?he++:he+=2,this._current=he}return this._current++,JSON.parse(L.slice(ie,this._current))},_consumeRawStringLiteral:function(L){var ie=this._current;this._current++;for(var se=L.length;"'"!==L[this._current]&&this._current<se;){var he=this._current;"\\"!==L[he]||"\\"!==L[he+1]&&"'"!==L[he+1]?he++:he+=2,this._current=he}return this._current++,L.slice(ie+1,this._current-1).replace("\\'","'")},_consumeNumber:function(L){var ie=this._current;this._current++;for(var se=L.length;ve(L[this._current])&&this._current<se;)this._current++;var he=parseInt(L.slice(ie,this._current));return{type:v,value:he,start:ie}},_consumeLBracket:function(L){var ie=this._current;return this._current++,"?"===L[this._current]?(this._current++,{type:K,value:"[?",start:ie}):"]"===L[this._current]?(this._current++,{type:Q,value:"[]",start:ie}):{type:E,value:"[",start:ie}},_consumeOperator:function(L){var ie=this._current,se=L[ie];return this._current++,"!"===se?"="===L[this._current]?(this._current++,{type:Y,value:"!=",start:ie}):{type:f,value:"!",start:ie}:"<"===se?"="===L[this._current]?(this._current++,{type:"LTE",value:"<=",start:ie}):{type:V,value:"<",start:ie}:">"===se?"="===L[this._current]?(this._current++,{type:"GTE",value:">=",start:ie}):{type:"GT",value:">",start:ie}:"="===se&&"="===L[this._current]?(this._current++,{type:Z,value:"==",start:ie}):void 0},_consumeLiteral:function(L){this._current++;for(var he,ie=this._current,se=L.length;"`"!==L[this._current]&&this._current<se;){var ye=this._current;"\\"!==L[ye]||"\\"!==L[ye+1]&&"`"!==L[ye+1]?ye++:ye+=2,this._current=ye}var Oe=o(L.slice(ie,this._current));return Oe=Oe.replace("\\`","`"),he=this._looksLikeJSON(Oe)?JSON.parse(Oe):JSON.parse('"'+Oe+'"'),this._current++,he},_looksLikeJSON:function(L){if(""===L)return!1;if('[{"'.indexOf(L[0])>=0)return!0;if(["true","false","null"].indexOf(L)>=0)return!0;if(!("-0123456789".indexOf(L[0])>=0))return!1;try{return JSON.parse(L),!0}catch(ye){return!1}}};var ge={};function F(){}function _(L){this.runtime=L}function D(L){this._interpreter=L,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[r]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[r]}]},contains:{_func:this._functionContains,_signature:[{types:[c,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[c]},{types:[c]}]},floor:{_func:this._functionFloor,_signature:[{types:[r]}]},length:{_func:this._functionLength,_signature:[{types:[c,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:[c]},{types:[c]}]},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:[c]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[c,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}]}}}ge[x]=0,ge[G]=0,ge[W]=0,ge[H]=0,ge[B]=0,ge[m]=0,ge[u]=0,ge[v]=0,ge[h]=0,ge[R]=0,ge[N]=1,ge.Or=2,ge[U]=3,ge.EQ=5,ge.GT=5,ge.LT=5,ge.GTE=5,ge.LTE=5,ge.NE=5,ge[Q]=9,ge[k]=20,ge[K]=21,ge[C]=40,ge[f]=45,ge[O]=50,ge[E]=55,ge[M]=60,F.prototype={parse:function(L){this._loadTokens(L),this.index=0;var ie=this.expression(0);if(this._lookahead(0)!==x){var se=this._lookaheadToken(0),he=new Error("Unexpected token type: "+se.type+", value: "+se.value);throw he.name="ParserError",he}return ie},_loadTokens:function(L){var se=(new me).tokenize(L);se.push({type:x,value:"",start:L.length}),this.tokens=se},expression:function(L){var ie=this._lookaheadToken(0);this._advance();for(var se=this.nud(ie),he=this._lookahead(0);L<ge[he];)this._advance(),se=this.led(he,se),he=this._lookahead(0);return se},_lookahead:function(L){return this.tokens[this.index+L].type},_lookaheadToken:function(L){return this.tokens[this.index+L]},_advance:function(){this.index++},nud:function(L){var se,he;switch(L.type){case j:return{type:"Literal",value:L.value};case G:return{type:"Field",name:L.value};case W:var ye={type:"Field",name:L.value};if(this._lookahead(0)===M)throw new Error("Quoted identifier not allowed for function names.");return ye;case f:return{type:"NotExpression",children:[se=this.expression(ge.Not)]};case k:return se=null,{type:"ValueProjection",children:[{type:"Identity"},se=this._lookahead(0)===H?{type:"Identity"}:this._parseProjectionRHS(ge.Star)]};case K:return this.led(L.type,{type:"Identity"});case O:return this._parseMultiselectHash();case Q:return{type:"Projection",children:[{type:Q,children:[{type:"Identity"}]},se=this._parseProjectionRHS(ge.Flatten)]};case E:return this._lookahead(0)===v||this._lookahead(0)===w?(se=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},se)):this._lookahead(0)===k&&this._lookahead(1)===H?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},se=this._parseProjectionRHS(ge.Star)]}):this._parseMultiselectList();case h:return{type:h};case R:return{type:"ExpressionReference",children:[he=this.expression(ge.Expref)]};case M:for(var Oe=[];this._lookahead(0)!==B;)this._lookahead(0)===h?(he={type:h},this._advance()):he=this.expression(0),Oe.push(he);return this._match(B),Oe[0];default:this._errorToken(L)}},led:function(L,ie){var se;switch(L){case C:var he=ge.Dot;return this._lookahead(0)!==k?{type:"Subexpression",children:[ie,se=this._parseDotRHS(he)]}:(this._advance(),{type:"ValueProjection",children:[ie,se=this._parseProjectionRHS(he)]});case N:return se=this.expression(ge.Pipe),{type:N,children:[ie,se]};case"Or":return{type:"OrExpression",children:[ie,se=this.expression(ge.Or)]};case U:return{type:"AndExpression",children:[ie,se=this.expression(ge.And)]};case M:for(var Le,ye=ie.name,Oe=[];this._lookahead(0)!==B;)this._lookahead(0)===h?(Le={type:h},this._advance()):Le=this.expression(0),this._lookahead(0)===m&&this._match(m),Oe.push(Le);return this._match(B),{type:"Function",name:ye,children:Oe};case K:var qe=this.expression(0);return this._match(H),{type:"FilterProjection",children:[ie,se=this._lookahead(0)===Q?{type:"Identity"}:this._parseProjectionRHS(ge.Filter),qe]};case Q:return{type:"Projection",children:[{type:Q,children:[ie]},this._parseProjectionRHS(ge.Flatten)]};case Z:case Y:case"GT":case"GTE":case V:case"LTE":return this._parseComparator(ie,L);case E:var Be=this._lookaheadToken(0);return Be.type===v||Be.type===w?(se=this._parseIndexExpression(),this._projectIfSlice(ie,se)):(this._match(k),this._match(H),{type:"Projection",children:[ie,se=this._parseProjectionRHS(ge.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(L){if(this._lookahead(0)!==L){var ie=this._lookaheadToken(0),se=new Error("Expected "+L+", got: "+ie.type);throw se.name="ParserError",se}this._advance()},_errorToken:function(L){var ie=new Error("Invalid token ("+L.type+'): "'+L.value+'"');throw ie.name="ParserError",ie},_parseIndexExpression:function(){if(this._lookahead(0)===w||this._lookahead(1)===w)return this._parseSliceExpression();var L={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(H),L},_projectIfSlice:function(L,ie){var se={type:"IndexExpression",children:[L,ie]};return"Slice"===ie.type?{type:"Projection",children:[se,this._parseProjectionRHS(ge.Star)]}:se},_parseSliceExpression:function(){for(var L=[null,null,null],ie=0,se=this._lookahead(0);se!==H&&ie<3;){if(se===w)ie++,this._advance();else{if(se!==v){var he=this._lookahead(0),ye=new Error("Syntax error, unexpected token: "+he.value+"("+he.type+")");throw ye.name="Parsererror",ye}L[ie]=this._lookaheadToken(0).value,this._advance()}se=this._lookahead(0)}return this._match(H),{type:"Slice",children:L}},_parseComparator:function(L,ie){return{type:"Comparator",name:ie,children:[L,this.expression(ge[ie])]}},_parseDotRHS:function(L){var ie=this._lookahead(0);return[G,W,k].indexOf(ie)>=0?this.expression(L):ie===E?(this._match(E),this._parseMultiselectList()):ie===O?(this._match(O),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(L){var ie;if(ge[this._lookahead(0)]<10)ie={type:"Identity"};else if(this._lookahead(0)===E)ie=this.expression(L);else if(this._lookahead(0)===K)ie=this.expression(L);else{if(this._lookahead(0)!==C){var se=this._lookaheadToken(0),he=new Error("Sytanx error, unexpected token: "+se.value+"("+se.type+")");throw he.name="ParserError",he}this._match(C),ie=this._parseDotRHS(L)}return ie},_parseMultiselectList:function(){for(var L=[];this._lookahead(0)!==H;){var ie=this.expression(0);if(L.push(ie),this._lookahead(0)===m&&(this._match(m),this._lookahead(0)===H))throw new Error("Unexpected token Rbracket")}return this._match(H),{type:"MultiSelectList",children:L}},_parseMultiselectHash:function(){for(var se,he,ye,L=[],ie=[G,W];;){if(se=this._lookaheadToken(0),ie.indexOf(se.type)<0)throw new Error("Expecting an identifier token, got: "+se.type);if(he=se.value,this._advance(),this._match(w),ye=this.expression(0),L.push({type:"KeyValuePair",name:he,value:ye}),this._lookahead(0)===m)this._match(m);else if(this._lookahead(0)===u){this._match(u);break}}return{type:"MultiSelectHash",children:L}}},_.prototype={search:function(L,ie){return this.visit(L,ie)},visit:function(L,ie){var se,he,ye,Oe,Le,We,qe,et,Be;switch(L.type){case"Field":return null===ie?null:y(ie)?void 0===(We=ie[L.name])?null:We:null;case"Subexpression":for(ye=this.visit(L.children[0],ie),Be=1;Be<L.children.length;Be++)if(null===(ye=this.visit(L.children[1],ye)))return null;return ye;case"IndexExpression":return qe=this.visit(L.children[0],ie),this.visit(L.children[1],qe);case"Index":if(!n(ie))return null;var ht=L.value;return ht<0&&(ht=ie.length+ht),void 0===(ye=ie[ht])&&(ye=null),ye;case"Slice":if(!n(ie))return null;var Bt=L.children.slice(0),Ct=this.computeSliceParams(ie.length,Bt),At=Ct[0],Ot=Ct[1],It=Ct[2];if(ye=[],It>0)for(Be=At;Be<Ot;Be+=It)ye.push(ie[Be]);else for(Be=At;Be>Ot;Be+=It)ye.push(ie[Be]);return ye;case"Projection":var lt=this.visit(L.children[0],ie);if(!n(lt))return null;for(et=[],Be=0;Be<lt.length;Be++)null!==(he=this.visit(L.children[1],lt[Be]))&&et.push(he);return et;case"ValueProjection":if(!y(lt=this.visit(L.children[0],ie)))return null;et=[];var _t=function(L){for(var ie=Object.keys(L),se=[],he=0;he<ie.length;he++)se.push(L[ie[he]]);return se}(lt);for(Be=0;Be<_t.length;Be++)null!==(he=this.visit(L.children[1],_t[Be]))&&et.push(he);return et;case"FilterProjection":if(!n(lt=this.visit(L.children[0],ie)))return null;var at=[],$e=[];for(Be=0;Be<lt.length;Be++)e(se=this.visit(L.children[2],lt[Be]))||at.push(lt[Be]);for(var mt=0;mt<at.length;mt++)null!==(he=this.visit(L.children[1],at[mt]))&&$e.push(he);return $e;case"Comparator":switch(Oe=this.visit(L.children[0],ie),Le=this.visit(L.children[1],ie),L.name){case Z:ye=l(Oe,Le);break;case Y:ye=!l(Oe,Le);break;case"GT":ye=Oe>Le;break;case"GTE":ye=Oe>=Le;break;case V:ye=Oe<Le;break;case"LTE":ye=Oe<=Le;break;default:throw new Error("Unknown comparator: "+L.name)}return ye;case Q:var wt=this.visit(L.children[0],ie);if(!n(wt))return null;var yt=[];for(Be=0;Be<wt.length;Be++)n(he=wt[Be])?yt.push.apply(yt,he):yt.push(he);return yt;case"Identity":return ie;case"MultiSelectList":if(null===ie)return null;for(et=[],Be=0;Be<L.children.length;Be++)et.push(this.visit(L.children[Be],ie));return et;case"MultiSelectHash":if(null===ie)return null;var Dt;for(et={},Be=0;Be<L.children.length;Be++)et[(Dt=L.children[Be]).name]=this.visit(Dt.value,ie);return et;case"OrExpression":return e(se=this.visit(L.children[0],ie))&&(se=this.visit(L.children[1],ie)),se;case"AndExpression":return!0===e(Oe=this.visit(L.children[0],ie))?Oe:this.visit(L.children[1],ie);case"NotExpression":return e(Oe=this.visit(L.children[0],ie));case"Literal":return L.value;case N:return qe=this.visit(L.children[0],ie),this.visit(L.children[1],qe);case h:return ie;case"Function":var Tt=[];for(Be=0;Be<L.children.length;Be++)Tt.push(this.visit(L.children[Be],ie));return this.runtime.callFunction(L.name,Tt);case"ExpressionReference":var dt=L.children[0];return dt.jmespathType=R,dt;default:throw new Error("Unknown node type: "+L.type)}},computeSliceParams:function(L,ie){var se=ie[0],he=ie[1],ye=ie[2],Oe=[null,null,null];if(null===ye)ye=1;else if(0===ye){var Le=new Error("Invalid slice, step cannot be 0");throw Le.name="RuntimeError",Le}var We=ye<0;return se=null===se?We?L-1:0:this.capSliceRange(L,se,ye),he=null===he?We?-1:L:this.capSliceRange(L,he,ye),Oe[0]=se,Oe[1]=he,Oe[2]=ye,Oe},capSliceRange:function(L,ie,se){return ie<0?(ie+=L)<0&&(ie=se<0?-1:0):ie>=L&&(ie=se<0?L-1:L),ie}},D.prototype={callFunction:function(L,ie){var se=this.functionTable[L];if(void 0===se)throw new Error("Unknown function: "+L+"()");return this._validateArgs(L,ie,se._signature),se._func.call(this,ie)},_validateArgs:function(L,ie,se){var he;if(se[se.length-1].variadic){if(ie.length<se.length)throw he=1===se.length?" argument":" arguments",new Error("ArgumentError: "+L+"() takes at least"+se.length+he+" but received "+ie.length)}else if(ie.length!==se.length)throw he=1===se.length?" argument":" arguments",new Error("ArgumentError: "+L+"() takes "+se.length+he+" but received "+ie.length);for(var ye,Oe,Le,We=0;We<se.length;We++){Le=!1,ye=se[We].types,Oe=this._getTypeName(ie[We]);for(var qe=0;qe<ye.length;qe++)if(this._typeMatches(Oe,ye[qe],ie[We])){Le=!0;break}if(!Le)throw new Error("TypeError: "+L+"() expected argument "+(We+1)+" to be type "+ye+" but received type "+Oe+" instead.")}},_typeMatches:function(L,ie,se){if(1===ie)return!0;if(9!==ie&&8!==ie&&3!==ie)return L===ie;if(3===ie)return 3===L;if(3===L){var he;8===ie?he=r:9===ie&&(he=c);for(var ye=0;ye<se.length;ye++)if(!this._typeMatches(this._getTypeName(se[ye]),he,se[ye]))return!1;return!0}},_getTypeName:function(L){switch(Object.prototype.toString.call(L)){case"[object String]":return c;case"[object Number]":return r;case"[object Array]":return 3;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return L.jmespathType===R?6:4}},_functionStartsWith:function(L){return 0===L[0].lastIndexOf(L[1])},_functionEndsWith:function(L){var ie=L[0],se=L[1];return-1!==ie.indexOf(se,ie.length-se.length)},_functionReverse:function(L){if(this._getTypeName(L[0])===c){for(var se=L[0],he="",ye=se.length-1;ye>=0;ye--)he+=se[ye];return he}var Oe=L[0].slice(0);return Oe.reverse(),Oe},_functionAbs:function(L){return Math.abs(L[0])},_functionCeil:function(L){return Math.ceil(L[0])},_functionAvg:function(L){for(var ie=0,se=L[0],he=0;he<se.length;he++)ie+=se[he];return ie/se.length},_functionContains:function(L){return L[0].indexOf(L[1])>=0},_functionFloor:function(L){return Math.floor(L[0])},_functionLength:function(L){return y(L[0])?Object.keys(L[0]).length:L[0].length},_functionMap:function(L){for(var ie=[],se=this._interpreter,he=L[0],ye=L[1],Oe=0;Oe<ye.length;Oe++)ie.push(se.visit(he,ye[Oe]));return ie},_functionMerge:function(L){for(var ie={},se=0;se<L.length;se++){var he=L[se];for(var ye in he)ie[ye]=he[ye]}return ie},_functionMax:function(L){if(L[0].length>0){if(this._getTypeName(L[0][0])===r)return Math.max.apply(Math,L[0]);for(var se=L[0],he=se[0],ye=1;ye<se.length;ye++)he.localeCompare(se[ye])<0&&(he=se[ye]);return he}return null},_functionMin:function(L){if(L[0].length>0){if(this._getTypeName(L[0][0])===r)return Math.min.apply(Math,L[0]);for(var se=L[0],he=se[0],ye=1;ye<se.length;ye++)se[ye].localeCompare(he)<0&&(he=se[ye]);return he}return null},_functionSum:function(L){for(var ie=0,se=L[0],he=0;he<se.length;he++)ie+=se[he];return ie},_functionType:function(L){switch(this._getTypeName(L[0])){case r:return"number";case c:return"string";case 3:return"array";case 4:return"object";case 5:return"boolean";case 6:return"expref";case 7:return"null"}},_functionKeys:function(L){return Object.keys(L[0])},_functionValues:function(L){for(var ie=L[0],se=Object.keys(ie),he=[],ye=0;ye<se.length;ye++)he.push(ie[se[ye]]);return he},_functionJoin:function(L){return L[1].join(L[0])},_functionToArray:function(L){return 3===this._getTypeName(L[0])?L[0]:[L[0]]},_functionToString:function(L){return this._getTypeName(L[0])===c?L[0]:JSON.stringify(L[0])},_functionToNumber:function(L){var se,ie=this._getTypeName(L[0]);return ie===r?L[0]:ie!==c||(se=+L[0],isNaN(se))?null:se},_functionNotNull:function(L){for(var ie=0;ie<L.length;ie++)if(7!==this._getTypeName(L[ie]))return L[ie];return null},_functionSort:function(L){var ie=L[0].slice(0);return ie.sort(),ie},_functionSortBy:function(L){var ie=L[0].slice(0);if(0===ie.length)return ie;var se=this._interpreter,he=L[1],ye=this._getTypeName(se.visit(he,ie[0]));if([r,c].indexOf(ye)<0)throw new Error("TypeError");for(var Oe=this,Le=[],We=0;We<ie.length;We++)Le.push([We,ie[We]]);Le.sort(function(st,et){var Be=se.visit(he,st[1]),ht=se.visit(he,et[1]);if(Oe._getTypeName(Be)!==ye)throw new Error("TypeError: expected "+ye+", received "+Oe._getTypeName(Be));if(Oe._getTypeName(ht)!==ye)throw new Error("TypeError: expected "+ye+", received "+Oe._getTypeName(ht));return Be>ht?1:Be<ht?-1:st[0]-et[0]});for(var qe=0;qe<Le.length;qe++)ie[qe]=Le[qe][1];return ie},_functionMaxBy:function(L){for(var Oe,Le,se=L[0],he=this.createKeyFunction(L[1],[r,c]),ye=-1/0,We=0;We<se.length;We++)(Le=he(se[We]))>ye&&(ye=Le,Oe=se[We]);return Oe},_functionMinBy:function(L){for(var Oe,Le,se=L[0],he=this.createKeyFunction(L[1],[r,c]),ye=1/0,We=0;We<se.length;We++)(Le=he(se[We]))<ye&&(ye=Le,Oe=se[We]);return Oe},createKeyFunction:function(L,ie){var se=this,he=this._interpreter;return function(Oe){var Le=he.visit(L,Oe);if(ie.indexOf(se._getTypeName(Le))<0){var We="TypeError: expected one of "+ie+", received "+se._getTypeName(Le);throw new Error(We)}return Le}}},s.tokenize=function(L){return(new me).tokenize(L)},s.compile=function(L){return(new F).parse(L)},s.search=function(L,ie){var se=new F,he=new D,ye=new _(he);he._interpreter=ye;var Oe=se.parse(ie);return ye.search(Oe,L)},s.strictDeepEqual=l}(I)},67659:J=>{var I=1e3,s=60*I,n=60*s,y=24*n;function o(r,i,c){if(!(r<i))return r<1.5*i?Math.floor(r/i)+" "+c:Math.ceil(r/i)+" "+c+"s"}J.exports=function(r,i){i=i||{};var c=typeof r;if("string"===c&&r.length>0)return function(r){if(!((r=String(r)).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(r);if(i){var c=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*c;case"days":case"day":case"d":return c*y;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*s;case"seconds":case"second":case"secs":case"sec":case"s":return c*I;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}(r);if("number"===c&&!1===isNaN(r))return i.long?function(r){return o(r,y,"day")||o(r,n,"hour")||o(r,s,"minute")||o(r,I,"second")||r+" ms"}(r):function(r){return r>=y?Math.round(r/y)+"d":r>=n?Math.round(r/n)+"h":r>=s?Math.round(r/s)+"m":r>=I?Math.round(r/I)+"s":r+"ms"}(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))}},14572:J=>{"use strict";var I=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function y(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}J.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(i){return t[i]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(i){r[i]=i}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var a,r,o=y(e),i=1;i<arguments.length;i++){for(var c in a=Object(arguments[i]))s.call(a,c)&&(o[c]=a[c]);if(I){r=I(a);for(var d=0;d<r.length;d++)n.call(a,r[d])&&(o[r[d]]=a[r[d]])}}return o}},61920:function(J,I,s){var n;J=s.nmd(J),function(y){"object"==typeof global&&global;var a,o=2147483647,r=36,b=/^xn--/,A=/[^\x20-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,G={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,B=String.fromCharCode;function w(ee){throw RangeError(G[ee])}function u(ee,Y){for(var Q=ee.length,k=[];Q--;)k[Q]=Y(ee[Q]);return k}function v(ee,Y){var Q=ee.split("@"),k="";return Q.length>1&&(k=Q[0]+"@",ee=Q[1]),k+u((ee=ee.replace(x,".")).split("."),Y).join(".")}function h(ee){for(var K,C,Y=[],Q=0,k=ee.length;Q<k;)(K=ee.charCodeAt(Q++))>=55296&&K<=56319&&Q<k?56320==(64512&(C=ee.charCodeAt(Q++)))?Y.push(((1023&K)<<10)+(1023&C)+65536):(Y.push(K),Q--):Y.push(K);return Y}function R(ee){return u(ee,function(Y){var Q="";return Y>65535&&(Q+=B((Y-=65536)>>>10&1023|55296),Y=56320|1023&Y),Q+B(Y)}).join("")}function N(ee){return ee-48<10?ee-22:ee-65<26?ee-65:ee-97<26?ee-97:r}function P(ee,Y){return ee+22+75*(ee<26)-((0!=Y)<<5)}function U(ee,Y,Q){var k=0;for(ee=Q?H(ee/700):ee>>1,ee+=H(ee/Y);ee>455;k+=r)ee=H(ee/35);return H(k+36*ee/(ee+38))}function Z(ee){var k,O,E,M,j,q,ne,oe,de,ve,Y=[],Q=ee.length,K=0,C=128,f=72;for((O=ee.lastIndexOf("-"))<0&&(O=0),E=0;E<O;++E)ee.charCodeAt(E)>=128&&w("not-basic"),Y.push(ee.charCodeAt(E));for(M=O>0?O+1:0;M<Q;){for(j=K,q=1,ne=r;M>=Q&&w("invalid-input"),((oe=N(ee.charCodeAt(M++)))>=r||oe>H((o-K)/q))&&w("overflow"),K+=oe*q,!(oe<(de=ne<=f?1:ne>=f+26?26:ne-f));ne+=r)q>H(o/(ve=r-de))&&w("overflow"),q*=ve;f=U(K-j,k=Y.length+1,0==j),H(K/k)>o-C&&w("overflow"),C+=H(K/k),K%=k,Y.splice(K++,0,C)}return R(Y)}function ue(ee){var Y,Q,k,K,C,f,O,E,M,j,q,oe,de,ve,be,ne=[];for(oe=(ee=h(ee)).length,Y=128,Q=0,C=72,f=0;f<oe;++f)(q=ee[f])<128&&ne.push(B(q));for(k=K=ne.length,K&&ne.push("-");k<oe;){for(O=o,f=0;f<oe;++f)(q=ee[f])>=Y&&q<O&&(O=q);for(O-Y>H((o-Q)/(de=k+1))&&w("overflow"),Q+=(O-Y)*de,Y=O,f=0;f<oe;++f)if((q=ee[f])<Y&&++Q>o&&w("overflow"),q==Y){for(E=Q,M=r;!(E<(j=M<=C?1:M>=C+26?26:M-C));M+=r)ne.push(B(P(j+(be=E-j)%(ve=r-j),0))),E=H(be/ve);ne.push(B(P(E,0))),C=U(Q,de,k==K),Q=0,++k}++Q,++Y}return ne.join("")}a={version:"1.3.2",ucs2:{decode:h,encode:R},decode:Z,encode:ue,toASCII:function(ee){return v(ee,function(Y){return A.test(Y)?"xn--"+ue(Y):Y})},toUnicode:function(ee){return v(ee,function(Y){return b.test(Y)?Z(Y.slice(4).toLowerCase()):Y})}},void 0!==(n=function(){return a}.call(I,s,I,J))&&(J.exports=n)}()},28378:J=>{"use strict";function I(s,n){return Object.prototype.hasOwnProperty.call(s,n)}J.exports=function(s,n,y,l){y=y||"=";var e={};if("string"!=typeof s||0===s.length)return e;var t=/\+/g;s=s.split(n=n||"&");var a=1e3;l&&"number"==typeof l.maxKeys&&(a=l.maxKeys);var o=s.length;a>0&&o>a&&(o=a);for(var r=0;r<o;++r){var d,g,p,T,i=s[r].replace(t,"%20"),c=i.indexOf(y);c>=0?(d=i.substr(0,c),g=i.substr(c+1)):(d=i,g=""),p=decodeURIComponent(d),T=decodeURIComponent(g),I(e,p)?Array.isArray(e[p])?e[p].push(T):e[p]=[e[p],T]:e[p]=T}return e}},22089:J=>{"use strict";var I=function(s){switch(typeof s){case"string":return s;case"boolean":return s?"true":"false";case"number":return isFinite(s)?s:"";default:return""}};J.exports=function(s,n,y,l){return n=n||"&",y=y||"=",null===s&&(s=void 0),"object"==typeof s?Object.keys(s).map(function(e){var t=encodeURIComponent(I(e))+y;return Array.isArray(s[e])?s[e].map(function(a){return t+encodeURIComponent(I(a))}).join(n):t+encodeURIComponent(I(s[e]))}).join(n):l?encodeURIComponent(I(l))+y+encodeURIComponent(I(s)):""}},93143:(J,I,s)=>{"use strict";I.decode=I.parse=s(28378),I.encode=I.stringify=s(22089)},12261:(J,I,s)=>{"use strict";var n=s(14572),y=60103,l=60106;I.Fragment=60107,I.StrictMode=60108,I.Profiler=60114;var e=60109,t=60110,a=60112;I.Suspense=60113;var o=60115,r=60116;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;y=i("react.element"),l=i("react.portal"),I.Fragment=i("react.fragment"),I.StrictMode=i("react.strict_mode"),I.Profiler=i("react.profiler"),e=i("react.provider"),t=i("react.context"),a=i("react.forward_ref"),I.Suspense=i("react.suspense"),o=i("react.memo"),r=i("react.lazy")}var c="function"==typeof Symbol&&Symbol.iterator;function g(V){for(var re="https://reactjs.org/docs/error-decoder.html?invariant="+V,ee=1;ee<arguments.length;ee++)re+="&args[]="+encodeURIComponent(arguments[ee]);return"Minified React error #"+V+"; visit "+re+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T={};function S(V,re,ee){this.props=V,this.context=re,this.refs=T,this.updater=ee||p}function b(){}function A(V,re,ee){this.props=V,this.context=re,this.refs=T,this.updater=ee||p}S.prototype.isReactComponent={},S.prototype.setState=function(V,re){if("object"!=typeof V&&"function"!=typeof V&&null!=V)throw Error(g(85));this.updater.enqueueSetState(this,V,re,"setState")},S.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")},b.prototype=S.prototype;var x=A.prototype=new b;x.constructor=A,n(x,S.prototype),x.isPureReactComponent=!0;var G={current:null},W=Object.prototype.hasOwnProperty,H={key:!0,ref:!0,__self:!0,__source:!0};function B(V,re,ee){var Y,Q={},k=null,K=null;if(null!=re)for(Y in void 0!==re.ref&&(K=re.ref),void 0!==re.key&&(k=""+re.key),re)W.call(re,Y)&&!H.hasOwnProperty(Y)&&(Q[Y]=re[Y]);var C=arguments.length-2;if(1===C)Q.children=ee;else if(1<C){for(var f=Array(C),O=0;O<C;O++)f[O]=arguments[O+2];Q.children=f}if(V&&V.defaultProps)for(Y in C=V.defaultProps)void 0===Q[Y]&&(Q[Y]=C[Y]);return{$$typeof:y,type:V,key:k,ref:K,props:Q,_owner:G.current}}function w(V){return"object"==typeof V&&null!==V&&V.$$typeof===y}var v=/\/+/g;function h(V,re){return"object"==typeof V&&null!==V&&null!=V.key?function(V){var re={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(ee){return re[ee]})}(""+V.key):re.toString(36)}function R(V,re,ee,Y,Q){var k=typeof V;("undefined"===k||"boolean"===k)&&(V=null);var K=!1;if(null===V)K=!0;else switch(k){case"string":case"number":K=!0;break;case"object":switch(V.$$typeof){case y:case l:K=!0}}if(K)return Q=Q(K=V),V=""===Y?"."+h(K,0):Y,Array.isArray(Q)?(ee="",null!=V&&(ee=V.replace(v,"$&/")+"/"),R(Q,re,ee,"",function(O){return O})):null!=Q&&(w(Q)&&(Q=function(V,re){return{$$typeof:y,type:V.type,key:re,ref:V.ref,props:V.props,_owner:V._owner}}(Q,ee+(!Q.key||K&&K.key===Q.key?"":(""+Q.key).replace(v,"$&/")+"/")+V)),re.push(Q)),1;if(K=0,Y=""===Y?".":Y+":",Array.isArray(V))for(var C=0;C<V.length;C++){var f=Y+h(k=V[C],C);K+=R(k,re,ee,f,Q)}else if("function"==typeof(f=function(V){return null===V||"object"!=typeof V?null:"function"==typeof(V=c&&V[c]||V["@@iterator"])?V:null}(V)))for(V=f.call(V),C=0;!(k=V.next()).done;)K+=R(k=k.value,re,ee,f=Y+h(k,C++),Q);else if("object"===k)throw re=""+V,Error(g(31,"[object Object]"===re?"object with keys {"+Object.keys(V).join(", ")+"}":re));return K}function N(V,re,ee){if(null==V)return V;var Y=[],Q=0;return R(V,Y,"","",function(k){return re.call(ee,k,Q++)}),Y}function P(V){if(-1===V._status){var re=V._result;re=re(),V._status=0,V._result=re,re.then(function(ee){0===V._status&&(ee=ee.default,V._status=1,V._result=ee)},function(ee){0===V._status&&(V._status=2,V._result=ee)})}if(1===V._status)return V._result;throw V._result}var U={current:null};function Z(){var V=U.current;if(null===V)throw Error(g(321));return V}var ue={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:G,IsSomeRendererActing:{current:!1},assign:n};I.Children={map:N,forEach:function(V,re,ee){N(V,function(){re.apply(this,arguments)},ee)},count:function(V){var re=0;return N(V,function(){re++}),re},toArray:function(V){return N(V,function(re){return re})||[]},only:function(V){if(!w(V))throw Error(g(143));return V}},I.Component=S,I.PureComponent=A,I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ue,I.cloneElement=function(V,re,ee){if(null==V)throw Error(g(267,V));var Y=n({},V.props),Q=V.key,k=V.ref,K=V._owner;if(null!=re){if(void 0!==re.ref&&(k=re.ref,K=G.current),void 0!==re.key&&(Q=""+re.key),V.type&&V.type.defaultProps)var C=V.type.defaultProps;for(f in re)W.call(re,f)&&!H.hasOwnProperty(f)&&(Y[f]=void 0===re[f]&&void 0!==C?C[f]:re[f])}var f=arguments.length-2;if(1===f)Y.children=ee;else if(1<f){C=Array(f);for(var O=0;O<f;O++)C[O]=arguments[O+2];Y.children=C}return{$$typeof:y,type:V.type,key:Q,ref:k,props:Y,_owner:K}},I.createContext=function(V,re){return void 0===re&&(re=null),(V={$$typeof:t,_calculateChangedBits:re,_currentValue:V,_currentValue2:V,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:e,_context:V},V.Consumer=V},I.createElement=B,I.createFactory=function(V){var re=B.bind(null,V);return re.type=V,re},I.createRef=function(){return{current:null}},I.forwardRef=function(V){return{$$typeof:a,render:V}},I.isValidElement=w,I.lazy=function(V){return{$$typeof:r,_payload:{_status:-1,_result:V},_init:P}},I.memo=function(V,re){return{$$typeof:o,type:V,compare:void 0===re?null:re}},I.useCallback=function(V,re){return Z().useCallback(V,re)},I.useContext=function(V,re){return Z().useContext(V,re)},I.useDebugValue=function(){},I.useEffect=function(V,re){return Z().useEffect(V,re)},I.useImperativeHandle=function(V,re,ee){return Z().useImperativeHandle(V,re,ee)},I.useLayoutEffect=function(V,re){return Z().useLayoutEffect(V,re)},I.useMemo=function(V,re){return Z().useMemo(V,re)},I.useReducer=function(V,re,ee){return Z().useReducer(V,re,ee)},I.useRef=function(V){return Z().useRef(V)},I.useState=function(V){return Z().useState(V)},I.version="17.0.2"},3904:(J,I,s)=>{"use strict";J.exports=s(12261)},53408:(J,I,s)=>{"use strict";var n=s(61920),y=s(47430);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}I.parse=G,I.resolve=function(m,w){return G(m,!1,!0).resolve(w)},I.resolveObject=function(m,w){return m?G(m,!1,!0).resolveObject(w):w},I.format=function(m){return y.isString(m)&&(m=G(m)),m instanceof l?m.format():l.prototype.format.call(m)},I.Url=l;var e=/^([a-z0-9.+-]+:)/i,t=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,r=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),i=["'"].concat(r),c=["%","/","?",";","#"].concat(i),d=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,T=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,S={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},A={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=s(93143);function G(m,w,u){if(m&&y.isObject(m)&&m instanceof l)return m;var v=new l;return v.parse(m,w,u),v}l.prototype.parse=function(m,w,u){if(!y.isString(m))throw new TypeError("Parameter 'url' must be a string, not "+typeof m);var v=m.indexOf("?"),h=-1!==v&&v<m.indexOf("#")?"?":"#",R=m.split(h);R[0]=R[0].replace(/\\/g,"/");var P=m=R.join(h);if(P=P.trim(),!u&&1===m.split("#").length){var U=a.exec(P);if(U)return this.path=P,this.href=P,this.pathname=U[1],U[2]?(this.search=U[2],this.query=w?x.parse(this.search.substr(1)):this.search.substr(1)):w&&(this.search="",this.query={}),this}var Z=e.exec(P);if(Z){var ue=(Z=Z[0]).toLowerCase();this.protocol=ue,P=P.substr(Z.length)}if(u||Z||P.match(/^\/\/[^@\/]+@[^@\/]+/)){var V="//"===P.substr(0,2);V&&(!Z||!b[Z])&&(P=P.substr(2),this.slashes=!0)}if(!b[Z]&&(V||Z&&!A[Z])){for(var re=-1,ee=0;ee<d.length;ee++)-1!==(Y=P.indexOf(d[ee]))&&(-1===re||Y<re)&&(re=Y);var Q,k;for(-1!==(k=-1===re?P.lastIndexOf("@"):P.lastIndexOf("@",re))&&(Q=P.slice(0,k),P=P.slice(k+1),this.auth=decodeURIComponent(Q)),re=-1,ee=0;ee<c.length;ee++){var Y;-1!==(Y=P.indexOf(c[ee]))&&(-1===re||Y<re)&&(re=Y)}-1===re&&(re=P.length),this.host=P.slice(0,re),P=P.slice(re),this.parseHost(),this.hostname=this.hostname||"";var K="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!K)for(var C=this.hostname.split(/\./),f=(ee=0,C.length);ee<f;ee++){var O=C[ee];if(O&&!O.match(p)){for(var E="",M=0,j=O.length;M<j;M++)O.charCodeAt(M)>127?E+="x":E+=O[M];if(!E.match(p)){var q=C.slice(0,ee),ne=C.slice(ee+1),oe=O.match(T);oe&&(q.push(oe[1]),ne.unshift(oe[2])),ne.length&&(P="/"+ne.join(".")+P),this.hostname=q.join(".");break}}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),K||(this.hostname=n.toASCII(this.hostname)),this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,K&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==P[0]&&(P="/"+P))}if(!S[ue])for(ee=0,f=i.length;ee<f;ee++){var be=i[ee];if(-1!==P.indexOf(be)){var me=encodeURIComponent(be);me===be&&(me=escape(be)),P=P.split(be).join(me)}}var ge=P.indexOf("#");-1!==ge&&(this.hash=P.substr(ge),P=P.slice(0,ge));var F=P.indexOf("?");return-1!==F?(this.search=P.substr(F),this.query=P.substr(F+1),w&&(this.query=x.parse(this.query)),P=P.slice(0,F)):w&&(this.search="",this.query={}),P&&(this.pathname=P),A[ue]&&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 m=this.auth||"";m&&(m=(m=encodeURIComponent(m)).replace(/%3A/i,":"),m+="@");var w=this.protocol||"",u=this.pathname||"",v=this.hash||"",h=!1,R="";this.host?h=m+this.host:this.hostname&&(h=m+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(h+=":"+this.port)),this.query&&y.isObject(this.query)&&Object.keys(this.query).length&&(R=x.stringify(this.query));var N=this.search||R&&"?"+R||"";return w&&":"!==w.substr(-1)&&(w+=":"),this.slashes||(!w||A[w])&&!1!==h?(h="//"+(h||""),u&&"/"!==u.charAt(0)&&(u="/"+u)):h||(h=""),v&&"#"!==v.charAt(0)&&(v="#"+v),N&&"?"!==N.charAt(0)&&(N="?"+N),w+h+(u=u.replace(/[?#]/g,function(P){return encodeURIComponent(P)}))+(N=N.replace("#","%23"))+v},l.prototype.resolve=function(m){return this.resolveObject(G(m,!1,!0)).format()},l.prototype.resolveObject=function(m){if(y.isString(m)){var w=new l;w.parse(m,!1,!0),m=w}for(var u=new l,v=Object.keys(this),h=0;h<v.length;h++){var R=v[h];u[R]=this[R]}if(u.hash=m.hash,""===m.href)return u.href=u.format(),u;if(m.slashes&&!m.protocol){for(var N=Object.keys(m),P=0;P<N.length;P++){var U=N[P];"protocol"!==U&&(u[U]=m[U])}return A[u.protocol]&&u.hostname&&!u.pathname&&(u.path=u.pathname="/"),u.href=u.format(),u}if(m.protocol&&m.protocol!==u.protocol){if(!A[m.protocol]){for(var Z=Object.keys(m),ue=0;ue<Z.length;ue++){var V=Z[ue];u[V]=m[V]}return u.href=u.format(),u}if(u.protocol=m.protocol,m.host||b[m.protocol])u.pathname=m.pathname;else{for(var f=(m.pathname||"").split("/");f.length&&!(m.host=f.shift()););m.host||(m.host=""),m.hostname||(m.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),u.pathname=f.join("/")}return u.search=m.search,u.query=m.query,u.host=m.host||"",u.auth=m.auth,u.hostname=m.hostname||m.host,u.port=m.port,(u.pathname||u.search)&&(u.path=(u.pathname||"")+(u.search||"")),u.slashes=u.slashes||m.slashes,u.href=u.format(),u}var Y=u.pathname&&"/"===u.pathname.charAt(0),Q=m.host||m.pathname&&"/"===m.pathname.charAt(0),k=Q||Y||u.host&&m.pathname,K=k,C=u.pathname&&u.pathname.split("/")||[],O=(f=m.pathname&&m.pathname.split("/")||[],u.protocol&&!A[u.protocol]);if(O&&(u.hostname="",u.port=null,u.host&&(""===C[0]?C[0]=u.host:C.unshift(u.host)),u.host="",m.protocol&&(m.hostname=null,m.port=null,m.host&&(""===f[0]?f[0]=m.host:f.unshift(m.host)),m.host=null),k=k&&(""===f[0]||""===C[0])),Q)u.host=m.host||""===m.host?m.host:u.host,u.hostname=m.hostname||""===m.hostname?m.hostname:u.hostname,u.search=m.search,u.query=m.query,C=f;else if(f.length)C||(C=[]),C.pop(),C=C.concat(f),u.search=m.search,u.query=m.query;else if(!y.isNullOrUndefined(m.search))return O&&(u.hostname=u.host=C.shift(),(E=!!(u.host&&u.host.indexOf("@")>0)&&u.host.split("@"))&&(u.auth=E.shift(),u.host=u.hostname=E.shift())),u.search=m.search,u.query=m.query,(!y.isNull(u.pathname)||!y.isNull(u.search))&&(u.path=(u.pathname?u.pathname:"")+(u.search?u.search:"")),u.href=u.format(),u;if(!C.length)return u.pathname=null,u.path=u.search?"/"+u.search:null,u.href=u.format(),u;for(var M=C.slice(-1)[0],j=(u.host||m.host||C.length>1)&&("."===M||".."===M)||""===M,q=0,ne=C.length;ne>=0;ne--)"."===(M=C[ne])?C.splice(ne,1):".."===M?(C.splice(ne,1),q++):q&&(C.splice(ne,1),q--);if(!k&&!K)for(;q--;q)C.unshift("..");k&&""!==C[0]&&(!C[0]||"/"!==C[0].charAt(0))&&C.unshift(""),j&&"/"!==C.join("/").substr(-1)&&C.push("");var E,oe=""===C[0]||C[0]&&"/"===C[0].charAt(0);return O&&(u.hostname=u.host=oe?"":C.length?C.shift():"",(E=!!(u.host&&u.host.indexOf("@")>0)&&u.host.split("@"))&&(u.auth=E.shift(),u.host=u.hostname=E.shift())),(k=k||u.host&&C.length)&&!oe&&C.unshift(""),C.length?u.pathname=C.join("/"):(u.pathname=null,u.path=null),(!y.isNull(u.pathname)||!y.isNull(u.search))&&(u.path=(u.pathname?u.pathname:"")+(u.search?u.search:"")),u.auth=m.auth||u.auth,u.slashes=u.slashes||m.slashes,u.href=u.format(),u},l.prototype.parseHost=function(){var m=this.host,w=t.exec(m);w&&(":"!==(w=w[0])&&(this.port=w.substr(1)),m=m.substr(0,m.length-w.length)),m&&(this.hostname=m)}},47430:J=>{"use strict";J.exports={isString:function(I){return"string"==typeof I},isObject:function(I){return"object"==typeof I&&null!==I},isNull:function(I){return null===I},isNullOrUndefined:function(I){return null==I}}},63488:J=>{J.exports=function(s){return s&&"object"==typeof s&&"function"==typeof s.copy&&"function"==typeof s.fill&&"function"==typeof s.readUInt8}},48563:(J,I,s)=>{"use strict";var n=s(66651),y=s(80142),l=s(53353),e=s(65504);function t(F){return F.call.bind(F)}var a="undefined"!=typeof BigInt,o="undefined"!=typeof Symbol,r=t(Object.prototype.toString),i=t(Number.prototype.valueOf),c=t(String.prototype.valueOf),d=t(Boolean.prototype.valueOf);if(a)var g=t(BigInt.prototype.valueOf);if(o)var p=t(Symbol.prototype.valueOf);function T(F,_){if("object"!=typeof F)return!1;try{return _(F),!0}catch(D){return!1}}function R(F){return"[object Map]"===r(F)}function P(F){return"[object Set]"===r(F)}function Z(F){return"[object WeakMap]"===r(F)}function V(F){return"[object WeakSet]"===r(F)}function ee(F){return"[object ArrayBuffer]"===r(F)}function Y(F){return"undefined"!=typeof ArrayBuffer&&(ee.working?ee(F):F instanceof ArrayBuffer)}function Q(F){return"[object DataView]"===r(F)}function k(F){return"undefined"!=typeof DataView&&(Q.working?Q(F):F instanceof DataView)}I.isArgumentsObject=n,I.isGeneratorFunction=y,I.isTypedArray=e,I.isPromise=function(F){return"undefined"!=typeof Promise&&F instanceof Promise||null!==F&&"object"==typeof F&&"function"==typeof F.then&&"function"==typeof F.catch},I.isArrayBufferView=function(F){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(F):e(F)||k(F)},I.isUint8Array=function(F){return"Uint8Array"===l(F)},I.isUint8ClampedArray=function(F){return"Uint8ClampedArray"===l(F)},I.isUint16Array=function(F){return"Uint16Array"===l(F)},I.isUint32Array=function(F){return"Uint32Array"===l(F)},I.isInt8Array=function(F){return"Int8Array"===l(F)},I.isInt16Array=function(F){return"Int16Array"===l(F)},I.isInt32Array=function(F){return"Int32Array"===l(F)},I.isFloat32Array=function(F){return"Float32Array"===l(F)},I.isFloat64Array=function(F){return"Float64Array"===l(F)},I.isBigInt64Array=function(F){return"BigInt64Array"===l(F)},I.isBigUint64Array=function(F){return"BigUint64Array"===l(F)},R.working="undefined"!=typeof Map&&R(new Map),I.isMap=function(F){return"undefined"!=typeof Map&&(R.working?R(F):F instanceof Map)},P.working="undefined"!=typeof Set&&P(new Set),I.isSet=function(F){return"undefined"!=typeof Set&&(P.working?P(F):F instanceof Set)},Z.working="undefined"!=typeof WeakMap&&Z(new WeakMap),I.isWeakMap=function(F){return"undefined"!=typeof WeakMap&&(Z.working?Z(F):F instanceof WeakMap)},V.working="undefined"!=typeof WeakSet&&V(new WeakSet),I.isWeakSet=function(F){return V(F)},ee.working="undefined"!=typeof ArrayBuffer&&ee(new ArrayBuffer),I.isArrayBuffer=Y,Q.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&Q(new DataView(new ArrayBuffer(1),0,1)),I.isDataView=k;var K="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function C(F){return"[object SharedArrayBuffer]"===r(F)}function f(F){return void 0!==K&&(void 0===C.working&&(C.working=C(new K)),C.working?C(F):F instanceof K)}function ne(F){return T(F,i)}function oe(F){return T(F,c)}function de(F){return T(F,d)}function ve(F){return a&&T(F,g)}function be(F){return o&&T(F,p)}I.isSharedArrayBuffer=f,I.isAsyncFunction=function(F){return"[object AsyncFunction]"===r(F)},I.isMapIterator=function(F){return"[object Map Iterator]"===r(F)},I.isSetIterator=function(F){return"[object Set Iterator]"===r(F)},I.isGeneratorObject=function(F){return"[object Generator]"===r(F)},I.isWebAssemblyCompiledModule=function(F){return"[object WebAssembly.Module]"===r(F)},I.isNumberObject=ne,I.isStringObject=oe,I.isBooleanObject=de,I.isBigIntObject=ve,I.isSymbolObject=be,I.isBoxedPrimitive=function(F){return ne(F)||oe(F)||de(F)||ve(F)||be(F)},I.isAnyArrayBuffer=function(F){return"undefined"!=typeof Uint8Array&&(Y(F)||f(F))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(F){Object.defineProperty(I,F,{enumerable:!1,value:function(){throw new Error(F+" is not supported in userland")}})})},55620:(J,I,s)=>{var n=Object.getOwnPropertyDescriptors||function(k){for(var K=Object.keys(k),C={},f=0;f<K.length;f++)C[K[f]]=Object.getOwnPropertyDescriptor(k,K[f]);return C},y=/%[sdj%]/g;I.format=function(Q){if(!H(Q)){for(var k=[],K=0;K<arguments.length;K++)k.push(a(arguments[K]));return k.join(" ")}K=1;for(var C=arguments,f=C.length,O=String(Q).replace(y,function(M){if("%%"===M)return"%";if(K>=f)return M;switch(M){case"%s":return String(C[K++]);case"%d":return Number(C[K++]);case"%j":try{return JSON.stringify(C[K++])}catch(j){return"[Circular]"}default:return M}}),E=C[K];K<f;E=C[++K])x(E)||!u(E)?O+=" "+E:O+=" "+a(E);return O},I.deprecate=function(Q,k){if("undefined"!=typeof process&&!0===process.noDeprecation)return Q;if("undefined"==typeof process)return function(){return I.deprecate(Q,k).apply(this,arguments)};var K=!1;return function(){if(!K){if(process.throwDeprecation)throw new Error(k);process.traceDeprecation?console.trace(k):console.error(k),K=!0}return Q.apply(this,arguments)}};var l={},e=/^$/;if(process.env.NODE_DEBUG){var t=process.env.NODE_DEBUG;t=t.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),e=new RegExp("^"+t+"$","i")}function a(Q,k){var K={seen:[],stylize:r};return arguments.length>=3&&(K.depth=arguments[2]),arguments.length>=4&&(K.colors=arguments[3]),A(k)?K.showHidden=k:k&&I._extend(K,k),m(K.showHidden)&&(K.showHidden=!1),m(K.depth)&&(K.depth=2),m(K.colors)&&(K.colors=!1),m(K.customInspect)&&(K.customInspect=!0),K.colors&&(K.stylize=o),c(K,Q,K.depth)}function o(Q,k){var K=a.styles[k];return K?"\x1b["+a.colors[K][0]+"m"+Q+"\x1b["+a.colors[K][1]+"m":Q}function r(Q,k){return Q}function c(Q,k,K){if(Q.customInspect&&k&&R(k.inspect)&&k.inspect!==I.inspect&&(!k.constructor||k.constructor.prototype!==k)){var C=k.inspect(K,Q);return H(C)||(C=c(Q,C,K)),C}var f=function(Q,k){if(m(k))return Q.stylize("undefined","undefined");if(H(k)){var K="'"+JSON.stringify(k).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Q.stylize(K,"string")}return W(k)?Q.stylize(""+k,"number"):A(k)?Q.stylize(""+k,"boolean"):x(k)?Q.stylize("null","null"):void 0}(Q,k);if(f)return f;var O=Object.keys(k),E=function(Q){var k={};return Q.forEach(function(K,C){k[K]=!0}),k}(O);if(Q.showHidden&&(O=Object.getOwnPropertyNames(k)),h(k)&&(O.indexOf("message")>=0||O.indexOf("description")>=0))return g(k);if(0===O.length){if(R(k))return Q.stylize("[Function"+(k.name?": "+k.name:"")+"]","special");if(w(k))return Q.stylize(RegExp.prototype.toString.call(k),"regexp");if(v(k))return Q.stylize(Date.prototype.toString.call(k),"date");if(h(k))return g(k)}var de,j="",q=!1,ne=["{","}"];return b(k)&&(q=!0,ne=["[","]"]),R(k)&&(j=" [Function"+(k.name?": "+k.name:"")+"]"),w(k)&&(j=" "+RegExp.prototype.toString.call(k)),v(k)&&(j=" "+Date.prototype.toUTCString.call(k)),h(k)&&(j=" "+g(k)),0!==O.length||q&&0!=k.length?K<0?w(k)?Q.stylize(RegExp.prototype.toString.call(k),"regexp"):Q.stylize("[Object]","special"):(Q.seen.push(k),de=q?function(Q,k,K,C,f){for(var O=[],E=0,M=k.length;E<M;++E)V(k,String(E))?O.push(T(Q,k,K,C,String(E),!0)):O.push("");return f.forEach(function(j){j.match(/^\d+$/)||O.push(T(Q,k,K,C,j,!0))}),O}(Q,k,K,E,O):O.map(function(ve){return T(Q,k,K,E,ve,q)}),Q.seen.pop(),function(Q,k,K){return Q.reduce(function(O,E){return E.indexOf("\n"),O+E.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?K[0]+(""===k?"":k+"\n ")+" "+Q.join(",\n ")+" "+K[1]:K[0]+k+" "+Q.join(", ")+" "+K[1]}(de,j,ne)):ne[0]+j+ne[1]}function g(Q){return"["+Error.prototype.toString.call(Q)+"]"}function T(Q,k,K,C,f,O){var E,M,j;if((j=Object.getOwnPropertyDescriptor(k,f)||{value:k[f]}).get?M=Q.stylize(j.set?"[Getter/Setter]":"[Getter]","special"):j.set&&(M=Q.stylize("[Setter]","special")),V(C,f)||(E="["+f+"]"),M||(Q.seen.indexOf(j.value)<0?(M=x(K)?c(Q,j.value,null):c(Q,j.value,K-1)).indexOf("\n")>-1&&(M=O?M.split("\n").map(function(q){return" "+q}).join("\n").substr(2):"\n"+M.split("\n").map(function(q){return" "+q}).join("\n")):M=Q.stylize("[Circular]","special")),m(E)){if(O&&f.match(/^\d+$/))return M;(E=JSON.stringify(""+f)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(E=E.substr(1,E.length-2),E=Q.stylize(E,"name")):(E=E.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),E=Q.stylize(E,"string"))}return E+": "+M}function b(Q){return Array.isArray(Q)}function A(Q){return"boolean"==typeof Q}function x(Q){return null===Q}function W(Q){return"number"==typeof Q}function H(Q){return"string"==typeof Q}function m(Q){return void 0===Q}function w(Q){return u(Q)&&"[object RegExp]"===P(Q)}function u(Q){return"object"==typeof Q&&null!==Q}function v(Q){return u(Q)&&"[object Date]"===P(Q)}function h(Q){return u(Q)&&("[object Error]"===P(Q)||Q instanceof Error)}function R(Q){return"function"==typeof Q}function P(Q){return Object.prototype.toString.call(Q)}function U(Q){return Q<10?"0"+Q.toString(10):Q.toString(10)}I.debuglog=function(Q){if(Q=Q.toUpperCase(),!l[Q])if(e.test(Q)){var k=process.pid;l[Q]=function(){var K=I.format.apply(I,arguments);console.error("%s %d: %s",Q,k,K)}}else l[Q]=function(){};return l[Q]},I.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"},I.types=s(48563),I.isArray=b,I.isBoolean=A,I.isNull=x,I.isNullOrUndefined=function(Q){return null==Q},I.isNumber=W,I.isString=H,I.isSymbol=function(Q){return"symbol"==typeof Q},I.isUndefined=m,I.isRegExp=w,I.types.isRegExp=w,I.isObject=u,I.isDate=v,I.types.isDate=v,I.isError=h,I.types.isNativeError=h,I.isFunction=R,I.isPrimitive=function(Q){return null===Q||"boolean"==typeof Q||"number"==typeof Q||"string"==typeof Q||"symbol"==typeof Q||void 0===Q},I.isBuffer=s(63488);var Z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ue(){var Q=new Date,k=[U(Q.getHours()),U(Q.getMinutes()),U(Q.getSeconds())].join(":");return[Q.getDate(),Z[Q.getMonth()],k].join(" ")}function V(Q,k){return Object.prototype.hasOwnProperty.call(Q,k)}I.log=function(){console.log("%s - %s",ue(),I.format.apply(I,arguments))},I.inherits=s(13057),I._extend=function(Q,k){if(!k||!u(k))return Q;for(var K=Object.keys(k),C=K.length;C--;)Q[K[C]]=k[K[C]];return Q};var re="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function ee(Q,k){if(!Q){var K=new Error("Promise was rejected with a falsy value");K.reason=Q,Q=K}return k(Q)}I.promisify=function(k){if("function"!=typeof k)throw new TypeError('The "original" argument must be of type Function');if(re&&k[re]){var K;if("function"!=typeof(K=k[re]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(K,re,{value:K,enumerable:!1,writable:!1,configurable:!0}),K}function K(){for(var C,f,O=new Promise(function(j,q){C=j,f=q}),E=[],M=0;M<arguments.length;M++)E.push(arguments[M]);E.push(function(j,q){j?f(j):C(q)});try{k.apply(this,E)}catch(j){f(j)}return O}return Object.setPrototypeOf(K,Object.getPrototypeOf(k)),re&&Object.defineProperty(K,re,{value:K,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(K,n(k))},I.promisify.custom=re,I.callbackify=function(Q){if("function"!=typeof Q)throw new TypeError('The "original" argument must be of type Function');function k(){for(var K=[],C=0;C<arguments.length;C++)K.push(arguments[C]);var f=K.pop();if("function"!=typeof f)throw new TypeError("The last argument must be of type Function");var O=this,E=function(){return f.apply(O,arguments)};Q.apply(this,K).then(function(M){process.nextTick(E.bind(null,null,M))},function(M){process.nextTick(ee.bind(null,M,E))})}return Object.setPrototypeOf(k,Object.getPrototypeOf(Q)),Object.defineProperties(k,n(Q)),k}},53353:(J,I,s)=>{"use strict";var n=s(88146),y=s(54674),l=s(43653),e=l("Object.prototype.toString"),a=s(22452)()&&"symbol"==typeof Symbol.toStringTag,o=y(),r=l("String.prototype.slice"),i={},c=s(35887),d=Object.getPrototypeOf;a&&c&&d&&n(o,function(T){if("function"==typeof global[T]){var S=new global[T];if(!(Symbol.toStringTag in S))throw new EvalError("this engine has support for Symbol.toStringTag, but "+T+" does not have the property! Please report this.");var b=d(S),A=c(b,Symbol.toStringTag);if(!A){var x=d(b);A=c(x,Symbol.toStringTag)}i[T]=A.get}});var p=s(65504);J.exports=function(S){return!!p(S)&&(a?function(S){var b=!1;return n(i,function(A,x){if(!b)try{var G=A.call(S);G===x&&(b=G)}catch(W){}}),b}(S):r(e(S),8,-1))}},42677:(J,I,s)=>{J.exports=s(70057).Observable},70057:(J,I)=>{"use strict";function n(m,w){if(!(m instanceof w))throw new TypeError("Cannot call a class as a function")}function y(m,w){for(var u=0;u<w.length;u++){var v=w[u];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,v.key,v)}}function l(m,w,u){return w&&y(m.prototype,w),u&&y(m,u),m}I.Observable=void 0;var e=function(){return"function"==typeof Symbol},t=function(m){return e()&&Boolean(Symbol[m])},a=function(m){return t(m)?Symbol[m]:"@@"+m};e()&&!t("observable")&&(Symbol.observable=Symbol("observable"));var o=a("iterator"),r=a("observable"),i=a("species");function c(m,w){var u=m[w];if(null!=u){if("function"!=typeof u)throw new TypeError(u+" is not a function");return u}}function d(m){var w=m.constructor;return void 0!==w&&null===(w=w[i])&&(w=void 0),void 0!==w?w:B}function p(m){p.log?p.log(m):setTimeout(function(){throw m})}function T(m){Promise.resolve().then(function(){try{m()}catch(w){p(w)}})}function S(m){var w=m._cleanup;if(void 0!==w&&(m._cleanup=void 0,w))try{if("function"==typeof w)w();else{var u=c(w,"unsubscribe");u&&u.call(w)}}catch(v){p(v)}}function b(m){m._observer=void 0,m._queue=void 0,m._state="closed"}function x(m,w,u){m._state="running";var v=m._observer;try{var h=c(v,w);switch(w){case"next":h&&h.call(v,u);break;case"error":if(b(m),!h)throw u;h.call(v,u);break;case"complete":b(m),h&&h.call(v)}}catch(R){p(R)}"closed"===m._state?S(m):"running"===m._state&&(m._state="ready")}function G(m,w,u){if("closed"!==m._state){if("buffering"===m._state)return void m._queue.push({type:w,value:u});if("ready"!==m._state)return m._state="buffering",m._queue=[{type:w,value:u}],void T(function(){return function(m){var w=m._queue;if(w){m._queue=void 0,m._state="ready";for(var u=0;u<w.length&&(x(m,w[u].type,w[u].value),"closed"!==m._state);++u);}}(m)});x(m,w,u)}}var W=function(){function m(w,u){n(this,m),this._cleanup=void 0,this._observer=w,this._queue=void 0,this._state="initializing";var v=new H(this);try{this._cleanup=u.call(void 0,v)}catch(h){v.error(h)}"initializing"===this._state&&(this._state="ready")}return l(m,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(b(this),S(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),m}(),H=function(){function m(w){n(this,m),this._subscription=w}return l(m,[{key:"next",value:function(u){G(this._subscription,"next",u)}},{key:"error",value:function(u){G(this._subscription,"error",u)}},{key:"complete",value:function(){G(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),m}(),B=function(){function m(w){if(n(this,m),!(this instanceof m))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(m,[{key:"subscribe",value:function(u){return("object"!=typeof u||null===u)&&(u={next:u,error:arguments[1],complete:arguments[2]}),new W(u,this._subscriber)}},{key:"forEach",value:function(u){var v=this;return new Promise(function(h,R){if("function"==typeof u)var P=v.subscribe({next:function(U){try{u(U,N)}catch(Z){R(Z),P.unsubscribe()}},error:R,complete:h});else R(new TypeError(u+" is not a function"));function N(){P.unsubscribe(),h()}})}},{key:"map",value:function(u){var v=this;if("function"!=typeof u)throw new TypeError(u+" is not a function");return new(d(this))(function(R){return v.subscribe({next:function(N){try{N=u(N)}catch(P){return R.error(P)}R.next(N)},error:function(N){R.error(N)},complete:function(){R.complete()}})})}},{key:"filter",value:function(u){var v=this;if("function"!=typeof u)throw new TypeError(u+" is not a function");return new(d(this))(function(R){return v.subscribe({next:function(N){try{if(!u(N))return}catch(P){return R.error(P)}R.next(N)},error:function(N){R.error(N)},complete:function(){R.complete()}})})}},{key:"reduce",value:function(u){var v=this;if("function"!=typeof u)throw new TypeError(u+" is not a function");var h=d(this),R=arguments.length>1,N=!1,P=arguments[1],U=P;return new h(function(Z){return v.subscribe({next:function(ue){var V=!N;if(N=!0,!V||R)try{U=u(U,ue)}catch(re){return Z.error(re)}else U=ue},error:function(ue){Z.error(ue)},complete:function(){if(!N&&!R)return Z.error(new TypeError("Cannot reduce an empty sequence"));Z.next(U),Z.complete()}})})}},{key:"concat",value:function(){for(var u=this,v=arguments.length,h=new Array(v),R=0;R<v;R++)h[R]=arguments[R];var N=d(this);return new N(function(P){var U,Z=0;return function ue(V){U=V.subscribe({next:function(re){P.next(re)},error:function(re){P.error(re)},complete:function(){Z===h.length?(U=void 0,P.complete()):ue(N.from(h[Z++]))}})}(u),function(){U&&(U.unsubscribe(),U=void 0)}})}},{key:"flatMap",value:function(u){var v=this;if("function"!=typeof u)throw new TypeError(u+" is not a function");var h=d(this);return new h(function(R){var N=[],P=v.subscribe({next:function(Z){if(u)try{Z=u(Z)}catch(V){return R.error(V)}var ue=h.from(Z).subscribe({next:function(V){R.next(V)},error:function(V){R.error(V)},complete:function(){var V=N.indexOf(ue);V>=0&&N.splice(V,1),U()}});N.push(ue)},error:function(Z){R.error(Z)},complete:function(){U()}});function U(){P.closed&&0===N.length&&R.complete()}return function(){N.forEach(function(Z){return Z.unsubscribe()}),P.unsubscribe()}})}},{key:r,value:function(){return this}}],[{key:"from",value:function(u){var v="function"==typeof this?this:m;if(null==u)throw new TypeError(u+" is not an object");var h=c(u,r);if(h){var R=h.call(u);if(Object(R)!==R)throw new TypeError(R+" is not an object");return function(m){return m instanceof B}(R)&&R.constructor===v?R:new v(function(N){return R.subscribe(N)})}if(t("iterator")&&(h=c(u,o)))return new v(function(N){T(function(){if(!N.closed){var P=!0,U=!1,Z=void 0;try{for(var V,ue=h.call(u)[Symbol.iterator]();!(P=(V=ue.next()).done);P=!0)if(N.next(V.value),N.closed)return}catch(ee){U=!0,Z=ee}finally{try{!P&&null!=ue.return&&ue.return()}finally{if(U)throw Z}}N.complete()}})});if(Array.isArray(u))return new v(function(N){T(function(){if(!N.closed){for(var P=0;P<u.length;++P)if(N.next(u[P]),N.closed)return;N.complete()}})});throw new TypeError(u+" is not observable")}},{key:"of",value:function(){for(var u=arguments.length,v=new Array(u),h=0;h<u;h++)v[h]=arguments[h];var R="function"==typeof this?this:m;return new R(function(N){T(function(){if(!N.closed){for(var P=0;P<v.length;++P)if(N.next(v[P]),N.closed)return;N.complete()}})})}},{key:i,get:function(){return this}}]),m}();I.Observable=B,e()&&Object.defineProperty(B,Symbol("extensions"),{value:{symbol:r,hostReportError:p},configurable:!0})},48399:(J,I,s)=>{"use strict";s.d(I,{ZT:()=>y,pi:()=>l,_T:()=>e,mG:()=>r,Jh:()=>i,pr:()=>S});var n=function(u,v){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,R){h.__proto__=R}||function(h,R){for(var N in R)R.hasOwnProperty(N)&&(h[N]=R[N])})(u,v)};function y(u,v){function h(){this.constructor=u}n(u,v),u.prototype=null===v?Object.create(v):(h.prototype=v.prototype,new h)}var l=function(){return(l=Object.assign||function(v){for(var h,R=1,N=arguments.length;R<N;R++)for(var P in h=arguments[R])Object.prototype.hasOwnProperty.call(h,P)&&(v[P]=h[P]);return v}).apply(this,arguments)};function e(u,v){var h={};for(var R in u)Object.prototype.hasOwnProperty.call(u,R)&&v.indexOf(R)<0&&(h[R]=u[R]);if(null!=u&&"function"==typeof Object.getOwnPropertySymbols){var N=0;for(R=Object.getOwnPropertySymbols(u);N<R.length;N++)v.indexOf(R[N])<0&&Object.prototype.propertyIsEnumerable.call(u,R[N])&&(h[R[N]]=u[R[N]])}return h}function r(u,v,h,R){return new(h||(h=Promise))(function(P,U){function Z(re){try{V(R.next(re))}catch(ee){U(ee)}}function ue(re){try{V(R.throw(re))}catch(ee){U(ee)}}function V(re){re.done?P(re.value):function(P){return P instanceof h?P:new h(function(U){U(P)})}(re.value).then(Z,ue)}V((R=R.apply(u,v||[])).next())})}function i(u,v){var R,N,P,U,h={label:0,sent:function(){if(1&P[0])throw P[1];return P[1]},trys:[],ops:[]};return U={next:Z(0),throw:Z(1),return:Z(2)},"function"==typeof Symbol&&(U[Symbol.iterator]=function(){return this}),U;function Z(V){return function(re){return function(V){if(R)throw new TypeError("Generator is already executing.");for(;h;)try{if(R=1,N&&(P=2&V[0]?N.return:V[0]?N.throw||((P=N.return)&&P.call(N),0):N.next)&&!(P=P.call(N,V[1])).done)return P;switch(N=0,P&&(V=[2&V[0],P.value]),V[0]){case 0:case 1:P=V;break;case 4:return h.label++,{value:V[1],done:!1};case 5:h.label++,N=V[1],V=[0];continue;case 7:V=h.ops.pop(),h.trys.pop();continue;default:if(!(P=(P=h.trys).length>0&&P[P.length-1])&&(6===V[0]||2===V[0])){h=0;continue}if(3===V[0]&&(!P||V[1]>P[0]&&V[1]<P[3])){h.label=V[1];break}if(6===V[0]&&h.label<P[1]){h.label=P[1],P=V;break}if(P&&h.label<P[2]){h.label=P[2],h.ops.push(V);break}P[2]&&h.ops.pop(),h.trys.pop();continue}V=v.call(u,h)}catch(re){V=[6,re],N=0}finally{R=P=0}if(5&V[0])throw V[1];return{value:V[0]?V[1]:void 0,done:!0}}([V,re])}}}function S(){for(var u=0,v=0,h=arguments.length;v<h;v++)u+=arguments[v].length;var R=Array(u),N=0;for(v=0;v<h;v++)for(var P=arguments[v],U=0,Z=P.length;U<Z;U++,N++)R[N]=P[U];return R}},94659:()=>{},54674:J=>{"use strict";var I=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"];J.exports=function(){for(var n=[],y=0;y<I.length;y++)"function"==typeof global[I[y]]&&(n[n.length]=I[y]);return n}},35887:(J,I,s)=>{"use strict";var y=s(62976)("%Object.getOwnPropertyDescriptor%");if(y)try{y([],"length")}catch(l){y=null}J.exports=y},63262:(J,I,s)=>{"use strict";s.r(I),s.d(I,{BREAK:()=>m.$_,BreakingChangeType:()=>nt,DEFAULT_DEPRECATION_REASON:()=>g.SY,DangerousChangeType:()=>Et,DirectiveLocation:()=>u.B,ExecutableDefinitionsRule:()=>ee.i,FieldsOnCorrectTypeRule:()=>Y.A,FragmentsOnCompositeTypesRule:()=>Q.T,GraphQLBoolean:()=>T.EZ,GraphQLDeprecatedDirective:()=>g.fg,GraphQLDirective:()=>g.NZ,GraphQLEnumType:()=>p.mR,GraphQLError:()=>U._,GraphQLFloat:()=>T.av,GraphQLID:()=>T.km,GraphQLIncludeDirective:()=>g.Yf,GraphQLInputObjectType:()=>p.sR,GraphQLInt:()=>T._o,GraphQLInterfaceType:()=>p.oW,GraphQLList:()=>p.p2,GraphQLNonNull:()=>p.bM,GraphQLObjectType:()=>p.h6,GraphQLScalarType:()=>p.n2,GraphQLSchema:()=>d.XO,GraphQLSkipDirective:()=>g.QE,GraphQLSpecifiedByDirective:()=>g.df,GraphQLString:()=>T.kH,GraphQLUnionType:()=>p.Gp,Kind:()=>w.h,KnownArgumentNamesRule:()=>k.e,KnownDirectivesRule:()=>K.J,KnownFragmentNamesRule:()=>C.a,KnownTypeNamesRule:()=>f.I,Lexer:()=>W.h,Location:()=>b.Ye,LoneAnonymousOperationRule:()=>O.F,LoneSchemaDefinitionRule:()=>ie.t,NoDeprecatedCustomRule:()=>Z,NoFragmentCyclesRule:()=>E.H,NoSchemaIntrospectionCustomRule:()=>ue,NoUndefinedVariablesRule:()=>M.$,NoUnusedFragmentsRule:()=>j.J,NoUnusedVariablesRule:()=>q.p,OverlappingFieldsCanBeMergedRule:()=>ne.y,PossibleFragmentSpreadsRule:()=>oe.a,PossibleTypeExtensionsRule:()=>We.g,ProvidedRequiredArgumentsRule:()=>de.s,ScalarLeafsRule:()=>ve.O,SchemaMetaFieldDef:()=>S.Az,SingleFieldSubscriptionsRule:()=>be.Z,Source:()=>A.H,Token:()=>b.WU,TokenKind:()=>H.T,TypeInfo:()=>Ir.a,TypeKind:()=>S.zU,TypeMetaFieldDef:()=>S.tF,TypeNameMetaFieldDef:()=>S.hU,UniqueArgumentNamesRule:()=>me.L,UniqueDirectiveNamesRule:()=>Le.o,UniqueDirectivesPerLocationRule:()=>ge.k,UniqueEnumValueNamesRule:()=>ye.L,UniqueFieldDefinitionNamesRule:()=>Oe.y,UniqueFragmentNamesRule:()=>F.N,UniqueInputFieldNamesRule:()=>_.P,UniqueOperationNamesRule:()=>D.H,UniqueOperationTypesRule:()=>se.q,UniqueTypeNamesRule:()=>he.P,UniqueVariableNamesRule:()=>X.H,ValidationContext:()=>V._t,ValuesOfCorrectTypeRule:()=>le.j,VariablesAreInputTypesRule:()=>Se.I,VariablesInAllowedPositionRule:()=>L.w,__Directive:()=>S.l3,__DirectiveLocation:()=>S.x2,__EnumValue:()=>S.jT,__Field:()=>S.e_,__InputValue:()=>S.XQ,__Schema:()=>S.TK,__Type:()=>S.qz,__TypeKind:()=>S.PX,assertAbstractType:()=>p.fU,assertCompositeType:()=>p.M_,assertDirective:()=>g.CO,assertEnumType:()=>p.Zu,assertInputObjectType:()=>p.U8,assertInputType:()=>p.qT,assertInterfaceType:()=>p.k2,assertLeafType:()=>p.H5,assertListType:()=>p.kS,assertNamedType:()=>p.rM,assertNonNullType:()=>p.E$,assertNullableType:()=>p.i_,assertObjectType:()=>p.Z6,assertOutputType:()=>p.Gt,assertScalarType:()=>p.Pt,assertSchema:()=>d.EO,assertType:()=>p.p_,assertUnionType:()=>p.rc,assertValidName:()=>_r.k,assertValidSchema:()=>a.J,assertWrappingType:()=>p.vX,astFromValue:()=>Ae.J,buildASTSchema:()=>Vt,buildClientSchema:()=>Dt,buildSchema:()=>rr,coerceInputValue:()=>hn.K,concatAST:()=>Qr,createSourceEventStream:()=>N.z,defaultFieldResolver:()=>o.El,defaultTypeResolver:()=>o.mn,doTypesOverlap:()=>yr.zR,execute:()=>o.ht,executeSync:()=>o.p0,extendSchema:()=>jt,findBreakingChanges:()=>Xr,findDangerousChanges:()=>$r,findDeprecatedUsages:()=>sn,formatError:()=>st,getDescription:()=>gt,getDirectiveValues:()=>R.zu,getIntrospectionQuery:()=>At,getLocation:()=>x.k,getNamedType:()=>p.xC,getNullableType:()=>p.tf,getOperationAST:()=>un.getOperationAST,getOperationRootType:()=>cn.J,getVisitFn:()=>m.CK,graphql:()=>r,graphqlSync:()=>i,introspectionFromSchema:()=>_t,introspectionTypes:()=>S.nL,isAbstractType:()=>p.m0,isCompositeType:()=>p.Gv,isDefinitionNode:()=>v.Ir,isDirective:()=>g.wX,isEnumType:()=>p.EM,isEqualType:()=>yr._7,isExecutableDefinitionNode:()=>v.Wk,isInputObjectType:()=>p.hL,isInputType:()=>p.j$,isInterfaceType:()=>p.oT,isIntrospectionType:()=>S.s9,isLeafType:()=>p.UT,isListType:()=>p.HG,isNamedType:()=>p.Zs,isNonNullType:()=>p.zM,isNullableType:()=>p.zP,isObjectType:()=>p.lp,isOutputType:()=>p.SZ,isRequiredArgument:()=>p.dK,isRequiredInputField:()=>p.Wd,isScalarType:()=>p.KA,isSchema:()=>d.nN,isSelectionNode:()=>v.pO,isSpecifiedDirective:()=>g.xg,isSpecifiedScalarType:()=>T.u1,isType:()=>p.P9,isTypeDefinitionNode:()=>v.zT,isTypeExtensionNode:()=>v.D$,isTypeNode:()=>v.VB,isTypeSubTypeOf:()=>yr.uJ,isTypeSystemDefinitionNode:()=>v.G4,isTypeSystemExtensionNode:()=>v.aU,isUnionType:()=>p.EN,isValidNameError:()=>_r.u,isValueNode:()=>v.nr,isWrappingType:()=>p.fw,lexicographicSortSchema:()=>hr,locatedError:()=>Be.y,parse:()=>e.Qc,parseType:()=>e.gZ,parseValue:()=>e.H2,print:()=>B.print,printError:()=>U.O,printIntrospectionSchema:()=>ke,printLocation:()=>G.Q,printSchema:()=>Re,printSourceLocation:()=>G.z,printType:()=>nr,responsePathAsArray:()=>h.N,separateOperations:()=>qr,specifiedDirectives:()=>g.V4,specifiedRules:()=>re.i,specifiedScalarTypes:()=>T.HS,stripIgnoredCharacters:()=>Yr,subscribe:()=>N.L,syntaxError:()=>et.h,typeFromAST:()=>fn._,validate:()=>t.Gu,validateSchema:()=>a.F,valueFromAST:()=>yt.u,valueFromASTUntyped:()=>ln.M,version:()=>n,versionInfo:()=>y,visit:()=>m.Vn,visitInParallel:()=>m.j1,visitWithTypeInfo:()=>Ir.y});var n="15.5.1",y=Object.freeze({major:15,minor:5,patch:1,preReleaseTag:null}),l=s(22938),e=s(51724),t=s(48682),a=s(27352),o=s(98001);function r(z,te,ae,ce,Ee,xe,Ce,De){var Pe=arguments;return new Promise(function(Ke){return Ke(c(1===Pe.length?z:{schema:z,source:te,rootValue:ae,contextValue:ce,variableValues:Ee,operationName:xe,fieldResolver:Ce,typeResolver:De}))})}function i(z,te,ae,ce,Ee,xe,Ce,De){var Pe=c(1===arguments.length?z:{schema:z,source:te,rootValue:ae,contextValue:ce,variableValues:Ee,operationName:xe,fieldResolver:Ce,typeResolver:De});if((0,l.Z)(Pe))throw new Error("GraphQL execution failed to complete synchronously.");return Pe}function c(z){var Ne,te=z.schema,ae=z.source,ce=z.rootValue,Ee=z.contextValue,xe=z.variableValues,Ce=z.operationName,De=z.fieldResolver,Pe=z.typeResolver,Ke=(0,a.F)(te);if(Ke.length>0)return{errors:Ke};try{Ne=(0,e.Qc)(ae)}catch(Ie){return{errors:[Ie]}}var Fe=(0,t.Gu)(te,Ne);return Fe.length>0?{errors:Fe}:(0,o.ht)({schema:te,document:Ne,rootValue:ce,contextValue:Ee,variableValues:xe,operationName:Ce,fieldResolver:De,typeResolver:Pe})}var d=s(39939),g=s(38273),p=s(16626),T=s(65615),S=s(39765),b=s(31279),A=s(99921),x=s(74051),G=s(83346),W=s(90550),H=s(92495),B=s(71352),m=s(86729),w=s(87948),u=s(52194),v=s(32766),h=s(35081),R=s(90350),N=s(86403),P=s(34248),U=s(89790);function Z(z){return{Field:function(ae){var ce=z.getFieldDef(),Ee=null==ce?void 0:ce.deprecationReason;if(ce&&null!=Ee){var xe=z.getParentType();null!=xe||(0,P.Z)(0),z.reportError(new U._("The field ".concat(xe.name,".").concat(ce.name," is deprecated. ").concat(Ee),ae))}},Argument:function(ae){var ce=z.getArgument(),Ee=null==ce?void 0:ce.deprecationReason;if(ce&&null!=Ee){var xe=z.getDirective();if(null!=xe)z.reportError(new U._('Directive "@'.concat(xe.name,'" argument "').concat(ce.name,'" is deprecated. ').concat(Ee),ae));else{var Ce=z.getParentType(),De=z.getFieldDef();null!=Ce&&null!=De||(0,P.Z)(0),z.reportError(new U._('Field "'.concat(Ce.name,".").concat(De.name,'" argument "').concat(ce.name,'" is deprecated. ').concat(Ee),ae))}}},ObjectField:function(ae){var ce=(0,p.xC)(z.getParentInputType());if((0,p.hL)(ce)){var Ee=ce.getFields()[ae.name.value],xe=null==Ee?void 0:Ee.deprecationReason;null!=xe&&z.reportError(new U._("The input field ".concat(ce.name,".").concat(Ee.name," is deprecated. ").concat(xe),ae))}},EnumValue:function(ae){var ce=z.getEnumValue(),Ee=null==ce?void 0:ce.deprecationReason;if(ce&&null!=Ee){var xe=(0,p.xC)(z.getInputType());null!=xe||(0,P.Z)(0),z.reportError(new U._('The enum value "'.concat(xe.name,".").concat(ce.name,'" is deprecated. ').concat(Ee),ae))}}}}function ue(z){return{Field:function(ae){var ce=(0,p.xC)(z.getType());ce&&(0,S.s9)(ce)&&z.reportError(new U._('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(ae.name.value,'".'),ae))}}}var V=s(68371),re=s(89512),ee=s(58610),Y=s(57634),Q=s(53503),k=s(51126),K=s(84815),C=s(73131),f=s(11339),O=s(47239),E=s(27694),M=s(68246),j=s(82279),q=s(58159),ne=s(6786),oe=s(58229),de=s(85934),ve=s(21318),be=s(8833),me=s(25755),ge=s(11004),F=s(84673),_=s(7220),D=s(13903),X=s(98504),le=s(42597),Se=s(4566),L=s(15839),ie=s(17775),se=s(64404),he=s(94121),ye=s(39409),Oe=s(86373),Le=s(84174),We=s(58592),qe=s(60488);function st(z){var te;z||(0,qe.Z)(0,"Received null or undefined error.");var ae=null!==(te=z.message)&&void 0!==te?te:"An unknown error occurred.",ce=z.locations,Ee=z.path,xe=z.extensions;return xe?{message:ae,locations:ce,path:Ee,extensions:xe}:{message:ae,locations:ce,path:Ee}}var et=s(73153),Be=s(40748);function ht(z,te){var ae=Object.keys(z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(z);te&&(ce=ce.filter(function(Ee){return Object.getOwnPropertyDescriptor(z,Ee).enumerable})),ae.push.apply(ae,ce)}return ae}function Ct(z,te,ae){return te in z?Object.defineProperty(z,te,{value:ae,enumerable:!0,configurable:!0,writable:!0}):z[te]=ae,z}function At(z){var te=function(z){for(var te=1;te<arguments.length;te++){var ae=null!=arguments[te]?arguments[te]:{};te%2?ht(Object(ae),!0).forEach(function(ce){Ct(z,ce,ae[ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(ae)):ht(Object(ae)).forEach(function(ce){Object.defineProperty(z,ce,Object.getOwnPropertyDescriptor(ae,ce))})}return z}({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1},z),ae=te.descriptions?"description":"",ce=te.specifiedByUrl?"specifiedByUrl":"",Ee=te.directiveIsRepeatable?"isRepeatable":"";function Ce(De){return te.inputValueDeprecation?De:""}return"\n query IntrospectionQuery {\n __schema {\n ".concat(te.schemaDescription?ae:"","\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ").concat(ae,"\n ").concat(Ee,"\n locations\n args").concat(Ce("(includeDeprecated: true)")," {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(ae,"\n ").concat(ce,"\n fields(includeDeprecated: true) {\n name\n ").concat(ae,"\n args").concat(Ce("(includeDeprecated: true)")," {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields").concat(Ce("(includeDeprecated: true)")," {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(ae,"\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(ae,"\n type { ...TypeRef }\n defaultValue\n ").concat(Ce("isDeprecated"),"\n ").concat(Ce("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 Ot(z,te){var ae=Object.keys(z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(z);te&&(ce=ce.filter(function(Ee){return Object.getOwnPropertyDescriptor(z,Ee).enumerable})),ae.push.apply(ae,ce)}return ae}function lt(z,te,ae){return te in z?Object.defineProperty(z,te,{value:ae,enumerable:!0,configurable:!0,writable:!0}):z[te]=ae,z}function _t(z,te){var ae=function(z){for(var te=1;te<arguments.length;te++){var ae=null!=arguments[te]?arguments[te]:{};te%2?Ot(Object(ae),!0).forEach(function(ce){lt(z,ce,ae[ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(ae)):Ot(Object(ae)).forEach(function(ce){Object.defineProperty(z,ce,Object.getOwnPropertyDescriptor(ae,ce))})}return z}({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},te),ce=(0,e.Qc)(At(ae)),Ee=(0,o.p0)({schema:z,document:ce});return!Ee.errors&&Ee.data||(0,P.Z)(0),Ee.data}var at=s(28441),$e=s(95897),mt=s(74039),wt=s(67650),yt=s(7903);function Dt(z,te){(0,wt.Z)(z)&&(0,wt.Z)(z.__schema)||(0,qe.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)(z),"."));for(var ae=z.__schema,ce=(0,mt.Z)(ae.types,function(Te){return Te.name},function(Te){return function(Te){if(null!=Te&&null!=Te.name&&null!=Te.kind)switch(Te.kind){case S.zU.SCALAR:return function(Te){return new p.n2({name:Te.name,description:Te.description,specifiedByUrl:Te.specifiedByUrl})}(Te);case S.zU.OBJECT:return function(Te){return new p.h6({name:Te.name,description:Te.description,interfaces:function(){return rt(Te)},fields:function(){return Qt(Te)}})}(Te);case S.zU.INTERFACE:return function(Te){return new p.oW({name:Te.name,description:Te.description,interfaces:function(){return rt(Te)},fields:function(){return Qt(Te)}})}(Te);case S.zU.UNION:return function(Te){if(!Te.possibleTypes){var He=(0,$e.Z)(Te);throw new Error("Introspection result missing possibleTypes: ".concat(He,"."))}return new p.Gp({name:Te.name,description:Te.description,types:function(){return Te.possibleTypes.map(Ve)}})}(Te);case S.zU.ENUM:return function(Te){if(!Te.enumValues){var He=(0,$e.Z)(Te);throw new Error("Introspection result missing enumValues: ".concat(He,"."))}return new p.mR({name:Te.name,description:Te.description,values:(0,mt.Z)(Te.enumValues,function(it){return it.name},function(it){return{description:it.description,deprecationReason:it.deprecationReason}})})}(Te);case S.zU.INPUT_OBJECT:return function(Te){if(!Te.inputFields){var He=(0,$e.Z)(Te);throw new Error("Introspection result missing inputFields: ".concat(He,"."))}return new p.sR({name:Te.name,description:Te.description,fields:function(){return qt(Te.inputFields)}})}(Te)}var He=(0,$e.Z)(Te);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(He,"."))}(Te)}),Ee=0,xe=[].concat(T.HS,S.nL);Ee<xe.length;Ee++){var Ce=xe[Ee];ce[Ce.name]&&(ce[Ce.name]=Ce)}var De=ae.queryType?Ve(ae.queryType):null,Pe=ae.mutationType?Ve(ae.mutationType):null,Ke=ae.subscriptionType?Ve(ae.subscriptionType):null,Ne=ae.directives?ae.directives.map(function(Te){if(!Te.args){var He=(0,$e.Z)(Te);throw new Error("Introspection result missing directive args: ".concat(He,"."))}if(!Te.locations){var it=(0,$e.Z)(Te);throw new Error("Introspection result missing directive locations: ".concat(it,"."))}return new g.NZ({name:Te.name,description:Te.description,isRepeatable:Te.isRepeatable,locations:Te.locations.slice(),args:qt(Te.args)})}):[];return new d.XO({description:ae.description,query:De,mutation:Pe,subscription:Ke,types:(0,at.Z)(ce),directives:Ne,assumeValid:null==te?void 0:te.assumeValid});function Fe(Te){if(Te.kind===S.zU.LIST){var He=Te.ofType;if(!He)throw new Error("Decorated type deeper than introspection query.");return new p.p2(Fe(He))}if(Te.kind===S.zU.NON_NULL){var it=Te.ofType;if(!it)throw new Error("Decorated type deeper than introspection query.");var kt=Fe(it);return new p.bM((0,p.i_)(kt))}return Ie(Te)}function Ie(Te){var He=Te.name;if(!He)throw new Error("Unknown type reference: ".concat((0,$e.Z)(Te),"."));var it=ce[He];if(!it)throw new Error("Invalid or incomplete schema, unknown type: ".concat(He,". Ensure that a full introspection query is used in order to build a client schema."));return it}function Ve(Te){return(0,p.Z6)(Ie(Te))}function Ye(Te){return(0,p.k2)(Ie(Te))}function rt(Te){if(null===Te.interfaces&&Te.kind===S.zU.INTERFACE)return[];if(!Te.interfaces){var He=(0,$e.Z)(Te);throw new Error("Introspection result missing interfaces: ".concat(He,"."))}return Te.interfaces.map(Ye)}function Qt(Te){if(!Te.fields)throw new Error("Introspection result missing fields: ".concat((0,$e.Z)(Te),"."));return(0,mt.Z)(Te.fields,function(He){return He.name},or)}function or(Te){var He=Fe(Te.type);if(!(0,p.SZ)(He)){var it=(0,$e.Z)(He);throw new Error("Introspection must provide output type for fields, but received: ".concat(it,"."))}if(!Te.args){var kt=(0,$e.Z)(Te);throw new Error("Introspection result missing field args: ".concat(kt,"."))}return{description:Te.description,deprecationReason:Te.deprecationReason,type:He,args:qt(Te.args)}}function qt(Te){return(0,mt.Z)(Te,function(He){return He.name},Lt)}function Lt(Te){var He=Fe(Te.type);if(!(0,p.j$)(He)){var it=(0,$e.Z)(He);throw new Error("Introspection must provide input type for arguments, but received: ".concat(it,"."))}var kt=null!=Te.defaultValue?(0,yt.u)((0,e.H2)(Te.defaultValue),He):void 0;return{description:Te.description,type:He,defaultValue:kt,deprecationReason:Te.deprecationReason}}}var Tt=s(87943),dt=s(19560),Pt=s(33951);function Mt(z,te){var ae=Object.keys(z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(z);te&&(ce=ce.filter(function(Ee){return Object.getOwnPropertyDescriptor(z,Ee).enumerable})),ae.push.apply(ae,ce)}return ae}function ze(z){for(var te=1;te<arguments.length;te++){var ae=null!=arguments[te]?arguments[te]:{};te%2?Mt(Object(ae),!0).forEach(function(ce){Xt(z,ce,ae[ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(ae)):Mt(Object(ae)).forEach(function(ce){Object.defineProperty(z,ce,Object.getOwnPropertyDescriptor(ae,ce))})}return z}function Xt(z,te,ae){return te in z?Object.defineProperty(z,te,{value:ae,enumerable:!0,configurable:!0,writable:!0}):z[te]=ae,z}function jt(z,te,ae){(0,d.EO)(z),null!=te&&te.kind===w.h.DOCUMENT||(0,qe.Z)(0,"Must provide valid Document AST."),!0!==(null==ae?void 0:ae.assumeValid)&&!0!==(null==ae?void 0:ae.assumeValidSDL)&&(0,t.ED)(te,z);var ce=z.toConfig(),Ee=$t(ce,te,ae);return ce===Ee?z:new d.XO(Ee)}function $t(z,te,ae){for(var ce,Ee,xe,Ce,Ne,De=[],Pe=Object.create(null),Ke=[],Fe=[],Ie=0,Ve=te.definitions;Ie<Ve.length;Ie++){var Ye=Ve[Ie];if(Ye.kind===w.h.SCHEMA_DEFINITION)Ne=Ye;else if(Ye.kind===w.h.SCHEMA_EXTENSION)Fe.push(Ye);else if((0,v.zT)(Ye))De.push(Ye);else if((0,v.D$)(Ye)){var ut=Ye.name.value,ct=Pe[ut];Pe[ut]=ct?ct.concat([Ye]):[Ye]}else Ye.kind===w.h.DIRECTIVE_DEFINITION&&Ke.push(Ye)}if(0===Object.keys(Pe).length&&0===De.length&&0===Ke.length&&0===Fe.length&&null==Ne)return z;for(var rt=Object.create(null),ft=0,xt=z.types;ft<xt.length;ft++){var Ft=xt[ft];rt[Ft.name]=(0,S.s9)(we=Ft)||(0,T.u1)(we)?we:(0,p.KA)(we)?function(we){for(var Ue,_e=we.toConfig(),Me=null!==(Ue=Pe[_e.name])&&void 0!==Ue?Ue:[],Qe=_e.specifiedByUrl,Je=0;Je<Me.length;Je++){var Ze;Qe=null!==(Ze=tr(Me[Je]))&&void 0!==Ze?Ze:Qe}return new p.n2(ze(ze({},_e),{},{specifiedByUrl:Qe,extensionASTNodes:_e.extensionASTNodes.concat(Me)}))}(we):(0,p.lp)(we)?function(we){var Ue,_e=we.toConfig(),Me=null!==(Ue=Pe[_e.name])&&void 0!==Ue?Ue:[];return new p.h6(ze(ze({},_e),{},{interfaces:function(){return[].concat(we.getInterfaces().map(St),cr(Me))},fields:function(){return ze(ze({},(0,dt.Z)(_e.fields,Dr)),ur(Me))},extensionASTNodes:_e.extensionASTNodes.concat(Me)}))}(we):(0,p.oT)(we)?function(we){var Ue,_e=we.toConfig(),Me=null!==(Ue=Pe[_e.name])&&void 0!==Ue?Ue:[];return new p.oW(ze(ze({},_e),{},{interfaces:function(){return[].concat(we.getInterfaces().map(St),cr(Me))},fields:function(){return ze(ze({},(0,dt.Z)(_e.fields,Dr)),ur(Me))},extensionASTNodes:_e.extensionASTNodes.concat(Me)}))}(we):(0,p.EN)(we)?function(we){var Ue,_e=we.toConfig(),Me=null!==(Ue=Pe[_e.name])&&void 0!==Ue?Ue:[];return new p.Gp(ze(ze({},_e),{},{types:function(){return[].concat(we.getTypes().map(St),kr(Me))},extensionASTNodes:_e.extensionASTNodes.concat(Me)}))}(we):(0,p.EM)(we)?function(we){var Ue,_e=we.toConfig(),Me=null!==(Ue=Pe[we.name])&&void 0!==Ue?Ue:[];return new p.mR(ze(ze({},_e),{},{values:ze(ze({},_e.values),Lr(Me)),extensionASTNodes:_e.extensionASTNodes.concat(Me)}))}(we):(0,p.hL)(we)?function(we){var Ue,_e=we.toConfig(),Me=null!==(Ue=Pe[_e.name])&&void 0!==Ue?Ue:[];return new p.sR(ze(ze({},_e),{},{fields:function(){return ze(ze({},(0,dt.Z)(_e.fields,function(Je){return ze(ze({},Je),{},{type:Lt(Je.type)})})),Fr(Me))},extensionASTNodes:_e.extensionASTNodes.concat(Me)}))}(we):void(0,P.Z)(0,"Unexpected type: "+(0,$e.Z)(we))}for(var we,Rt=0;Rt<De.length;Rt++){var zt,Qt=De[Rt],or=Qt.name.value;rt[or]=null!==(zt=er[or])&&void 0!==zt?zt:gn(Qt)}var qt=ze(ze({query:z.query&&St(z.query),mutation:z.mutation&&St(z.mutation),subscription:z.subscription&&St(z.subscription)},Ne&&Mr([Ne])),Mr(Fe));return ze(ze({description:null===(ce=Ne)||void 0===ce||null===(Ee=ce.description)||void 0===Ee?void 0:Ee.value},qt),{},{types:(0,at.Z)(rt),directives:[].concat(z.directives.map(function(we){var Ue=we.toConfig();return new g.NZ(ze(ze({},Ue),{},{args:(0,dt.Z)(Ue.args,Pr)}))}),Ke.map(function(we){var Ue=we.locations.map(function(_e){return _e.value});return new g.NZ({name:we.name.value,description:gt(we,ae),locations:Ue,isRepeatable:we.repeatable,args:Nr(we.arguments),astNode:we})})),extensions:void 0,astNode:null!==(xe=Ne)&&void 0!==xe?xe:z.astNode,extensionASTNodes:z.extensionASTNodes.concat(Fe),assumeValid:null!==(Ce=null==ae?void 0:ae.assumeValid)&&void 0!==Ce&&Ce});function Lt(we){return(0,p.HG)(we)?new p.p2(Lt(we.ofType)):(0,p.zM)(we)?new p.bM(Lt(we.ofType)):St(we)}function St(we){return rt[we.name]}function Dr(we){return ze(ze({},we),{},{type:Lt(we.type),args:(0,dt.Z)(we.args,Pr)})}function Pr(we){return ze(ze({},we),{},{type:Lt(we.type)})}function Mr(we){for(var Ue={},_e=0;_e<we.length;_e++)for(var Me,Je=null!==(Me=we[_e].operationTypes)&&void 0!==Me?Me:[],Ze=0;Ze<Je.length;Ze++){var Xe=Je[Ze];Ue[Xe.operation]=sr(Xe.type)}return Ue}function sr(we){var Ue,_e=we.name.value,Me=null!==(Ue=er[_e])&&void 0!==Ue?Ue:rt[_e];if(void 0===Me)throw new Error('Unknown type: "'.concat(_e,'".'));return Me}function Yt(we){return we.kind===w.h.LIST_TYPE?new p.p2(Yt(we.type)):we.kind===w.h.NON_NULL_TYPE?new p.bM(Yt(we.type)):sr(we)}function ur(we){for(var Ue=Object.create(null),_e=0;_e<we.length;_e++)for(var Me,Je=null!==(Me=we[_e].fields)&&void 0!==Me?Me:[],Ze=0;Ze<Je.length;Ze++){var Xe=Je[Ze];Ue[Xe.name.value]={type:Yt(Xe.type),description:gt(Xe,ae),args:Nr(Xe.arguments),deprecationReason:Nt(Xe),astNode:Xe}}return Ue}function Nr(we){for(var Ue=null!=we?we:[],_e=Object.create(null),Me=0;Me<Ue.length;Me++){var Qe=Ue[Me],Je=Yt(Qe.type);_e[Qe.name.value]={type:Je,description:gt(Qe,ae),defaultValue:(0,yt.u)(Qe.defaultValue,Je),deprecationReason:Nt(Qe),astNode:Qe}}return _e}function Fr(we){for(var Ue=Object.create(null),_e=0;_e<we.length;_e++)for(var Me,Je=null!==(Me=we[_e].fields)&&void 0!==Me?Me:[],Ze=0;Ze<Je.length;Ze++){var Xe=Je[Ze],Jt=Yt(Xe.type);Ue[Xe.name.value]={type:Jt,description:gt(Xe,ae),defaultValue:(0,yt.u)(Xe.defaultValue,Jt),deprecationReason:Nt(Xe),astNode:Xe}}return Ue}function Lr(we){for(var Ue=Object.create(null),_e=0;_e<we.length;_e++)for(var Me,Je=null!==(Me=we[_e].values)&&void 0!==Me?Me:[],Ze=0;Ze<Je.length;Ze++){var Xe=Je[Ze];Ue[Xe.name.value]={description:gt(Xe,ae),deprecationReason:Nt(Xe),astNode:Xe}}return Ue}function cr(we){for(var Ue=[],_e=0;_e<we.length;_e++)for(var Me,Je=null!==(Me=we[_e].interfaces)&&void 0!==Me?Me:[],Ze=0;Ze<Je.length;Ze++)Ue.push(sr(Je[Ze]));return Ue}function kr(we){for(var Ue=[],_e=0;_e<we.length;_e++)for(var Me,Je=null!==(Me=we[_e].types)&&void 0!==Me?Me:[],Ze=0;Ze<Je.length;Ze++)Ue.push(sr(Je[Ze]));return Ue}function gn(we){var Ue,_e=we.name.value,Me=gt(we,ae),Qe=null!==(Ue=Pe[_e])&&void 0!==Ue?Ue:[];switch(we.kind){case w.h.OBJECT_TYPE_DEFINITION:var Je=Qe,Ze=[we].concat(Je);return new p.h6({name:_e,description:Me,interfaces:function(){return cr(Ze)},fields:function(){return ur(Ze)},astNode:we,extensionASTNodes:Je});case w.h.INTERFACE_TYPE_DEFINITION:var Xe=Qe,Jt=[we].concat(Xe);return new p.oW({name:_e,description:Me,interfaces:function(){return cr(Jt)},fields:function(){return ur(Jt)},astNode:we,extensionASTNodes:Xe});case w.h.ENUM_TYPE_DEFINITION:var Ur=Qe,En=[we].concat(Ur);return new p.mR({name:_e,description:Me,values:Lr(En),astNode:we,extensionASTNodes:Ur});case w.h.UNION_TYPE_DEFINITION:var Br=Qe,bn=[we].concat(Br);return new p.Gp({name:_e,description:Me,types:function(){return kr(bn)},astNode:we,extensionASTNodes:Br});case w.h.SCALAR_TYPE_DEFINITION:var Sn=Qe;return new p.n2({name:_e,description:Me,specifiedByUrl:tr(we),astNode:we,extensionASTNodes:Sn});case w.h.INPUT_OBJECT_TYPE_DEFINITION:var jr=Qe,An=[we].concat(jr);return new p.sR({name:_e,description:Me,fields:function(){return Fr(An)},astNode:we,extensionASTNodes:jr})}(0,P.Z)(0,"Unexpected type definition node: "+(0,$e.Z)(we))}}var er=(0,Tt.Z)(T.HS.concat(S.nL),function(z){return z.name});function Nt(z){var te=(0,R.zu)(g.fg,z);return null==te?void 0:te.reason}function tr(z){var te=(0,R.zu)(g.df,z);return null==te?void 0:te.url}function gt(z,te){if(z.description)return z.description.value;if(!0===(null==te?void 0:te.commentDescriptions)){var ae=function(z){var te=z.loc;if(te){for(var ae=[],ce=te.startToken.prev;null!=ce&&ce.kind===H.T.COMMENT&&ce.next&&ce.prev&&ce.line+1===ce.next.line&&ce.line!==ce.prev.line;){var Ee=String(ce.value);ae.push(Ee),ce=ce.prev}return ae.length>0?ae.reverse().join("\n"):void 0}}(z);if(void 0!==ae)return(0,Pt.W7)("\n"+ae)}}function Vt(z,te){null!=z&&z.kind===w.h.DOCUMENT||(0,qe.Z)(0,"Must provide valid Document AST."),!0!==(null==te?void 0:te.assumeValid)&&!0!==(null==te?void 0:te.assumeValidSDL)&&(0,t.zo)(z);var ce=$t({description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},z,te);if(null==ce.astNode)for(var Ee=0,xe=ce.types;Ee<xe.length;Ee++){var Ce=xe[Ee];switch(Ce.name){case"Query":ce.query=Ce;break;case"Mutation":ce.mutation=Ce;break;case"Subscription":ce.subscription=Ce}}for(var De=ce.directives,Pe=function(Fe){var Ie=g.V4[Fe];De.every(function(Ve){return Ve.name!==Ie.name})&&De.push(Ie)},Ke=0;Ke<g.V4.length;Ke++)Pe(Ke);return new d.XO(ce)}function rr(z,te){return Vt((0,e.Qc)(z,{noLocation:null==te?void 0:te.noLocation,allowLegacySDLEmptyFields:null==te?void 0:te.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:null==te?void 0:te.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:null==te?void 0:te.experimentalFragmentVariables}),{commentDescriptions:null==te?void 0:te.commentDescriptions,assumeValidSDL:null==te?void 0:te.assumeValidSDL,assumeValid:null==te?void 0:te.assumeValid})}var Wt=s(22307);function Ut(z,te){var ae=Object.keys(z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(z);te&&(ce=ce.filter(function(Ee){return Object.getOwnPropertyDescriptor(z,Ee).enumerable})),ae.push.apply(ae,ce)}return ae}function tt(z){for(var te=1;te<arguments.length;te++){var ae=null!=arguments[te]?arguments[te]:{};te%2?Ut(Object(ae),!0).forEach(function(ce){lr(z,ce,ae[ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(ae)):Ut(Object(ae)).forEach(function(ce){Object.defineProperty(z,ce,Object.getOwnPropertyDescriptor(ae,ce))})}return z}function lr(z,te,ae){return te in z?Object.defineProperty(z,te,{value:ae,enumerable:!0,configurable:!0,writable:!0}):z[te]=ae,z}function hr(z){var te=z.toConfig(),ae=(0,mt.Z)(fe(te.types),function(Ie){return Ie.name},function(Ie){if((0,p.KA)(Ie)||(0,S.s9)(Ie))return Ie;if((0,p.lp)(Ie)){var Ve=Ie.toConfig();return new p.h6(tt(tt({},Ve),{},{interfaces:function(){return Ne(Ve.interfaces)},fields:function(){return Pe(Ve.fields)}}))}if((0,p.oT)(Ie)){var Ye=Ie.toConfig();return new p.oW(tt(tt({},Ye),{},{interfaces:function(){return Ne(Ye.interfaces)},fields:function(){return Pe(Ye.fields)}}))}if((0,p.EN)(Ie)){var ut=Ie.toConfig();return new p.Gp(tt(tt({},ut),{},{types:function(){return Ne(ut.types)}}))}if((0,p.EM)(Ie)){var ct=Ie.toConfig();return new p.mR(tt(tt({},ct),{},{values:$(ct.values)}))}if((0,p.hL)(Ie)){var rt=Ie.toConfig();return new p.sR(tt(tt({},rt),{},{fields:function(){return function(Ie){return $(Ie,function(Ve){return tt(tt({},Ve),{},{type:ce(Ve.type)})})}(rt.fields)}}))}(0,P.Z)(0,"Unexpected type: "+(0,$e.Z)(Ie))});return new d.XO(tt(tt({},te),{},{types:(0,at.Z)(ae),directives:fe(te.directives).map(function(Ie){var Ve=Ie.toConfig();return new g.NZ(tt(tt({},Ve),{},{locations:pe(Ve.locations,function(Ye){return Ye}),args:De(Ve.args)}))}),query:xe(te.query),mutation:xe(te.mutation),subscription:xe(te.subscription)}));function ce(Ie){return(0,p.HG)(Ie)?new p.p2(ce(Ie.ofType)):(0,p.zM)(Ie)?new p.bM(ce(Ie.ofType)):Ee(Ie)}function Ee(Ie){return ae[Ie.name]}function xe(Ie){return Ie&&Ee(Ie)}function De(Ie){return $(Ie,function(Ve){return tt(tt({},Ve),{},{type:ce(Ve.type)})})}function Pe(Ie){return $(Ie,function(Ve){return tt(tt({},Ve),{},{type:ce(Ve.type),args:De(Ve.args)})})}function Ne(Ie){return fe(Ie).map(Ee)}}function $(z,te){for(var ae=Object.create(null),ce=pe(Object.keys(z),function(De){return De}),Ee=0;Ee<ce.length;Ee++){var xe=ce[Ee],Ce=z[xe];ae[xe]=te?te(Ce):Ce}return ae}function fe(z){return pe(z,function(te){return te.name})}function pe(z,te){return z.slice().sort(function(ae,ce){var Ee=te(ae),xe=te(ce);return(0,Wt.Z)(Ee,xe)})}var Ae=s(33525);function Re(z,te){return je(z,function(ae){return!(0,g.xg)(ae)},Ge,te)}function ke(z,te){return je(z,g.xg,S.s9,te)}function Ge(z){return!(0,T.u1)(z)&&!(0,S.s9)(z)}function je(z,te,ae,ce){var Ee=z.getDirectives().filter(te),xe=(0,at.Z)(z.getTypeMap()).filter(ae);return[ot(z)].concat(Ee.map(function(Ce){return function(z,te){return vt(te,z)+"directive @"+z.name+Er(te,z.args)+(z.isRepeatable?" repeatable":"")+" on "+z.locations.join(" | ")}(Ce,ce)}),xe.map(function(Ce){return nr(Ce,ce)})).filter(Boolean).join("\n\n")+"\n"}function ot(z){if(null!=z.description||!function(z){var te=z.getQueryType();if(te&&"Query"!==te.name)return!1;var ae=z.getMutationType();if(ae&&"Mutation"!==ae.name)return!1;var ce=z.getSubscriptionType();return!(ce&&"Subscription"!==ce.name)}(z)){var te=[],ae=z.getQueryType();ae&&te.push(" query: ".concat(ae.name));var ce=z.getMutationType();ce&&te.push(" mutation: ".concat(ce.name));var Ee=z.getSubscriptionType();return Ee&&te.push(" subscription: ".concat(Ee.name)),vt({},z)+"schema {\n".concat(te.join("\n"),"\n}")}}function nr(z,te){return(0,p.KA)(z)?function(z,te){return vt(te,z)+"scalar ".concat(z.name)+function(z){if(null==z.specifiedByUrl)return"";var ae=(0,Ae.J)(z.specifiedByUrl,T.kH);return ae||(0,P.Z)(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+(0,B.print)(ae)+")"}(z)}(z,te):(0,p.lp)(z)?function(z,te){return vt(te,z)+"type ".concat(z.name)+Kt(z)+gr(te,z)}(z,te):(0,p.oT)(z)?function(z,te){return vt(te,z)+"interface ".concat(z.name)+Kt(z)+gr(te,z)}(z,te):(0,p.EN)(z)?function(z,te){var ae=z.getTypes(),ce=ae.length?" = "+ae.join(" | "):"";return vt(te,z)+"union "+z.name+ce}(z,te):(0,p.EM)(z)?function(z,te){var ae=z.getValues().map(function(ce,Ee){return vt(te,ce," ",!Ee)+" "+ce.name+mr(ce.deprecationReason)});return vt(te,z)+"enum ".concat(z.name)+dr(ae)}(z,te):(0,p.hL)(z)?function(z,te){var ae=(0,at.Z)(z.getFields()).map(function(ce,Ee){return vt(te,ce," ",!Ee)+" "+vr(ce)});return vt(te,z)+"input ".concat(z.name)+dr(ae)}(z,te):void(0,P.Z)(0,"Unexpected type: "+(0,$e.Z)(z))}function Kt(z){var te=z.getInterfaces();return te.length?" implements "+te.map(function(ae){return ae.name}).join(" & "):""}function gr(z,te){return dr((0,at.Z)(te.getFields()).map(function(ce,Ee){return vt(z,ce," ",!Ee)+" "+ce.name+Er(z,ce.args," ")+": "+String(ce.type)+mr(ce.deprecationReason)}))}function dr(z){return 0!==z.length?" {\n"+z.join("\n")+"\n}":""}function Er(z,te){var ae=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return 0===te.length?"":te.every(function(ce){return!ce.description})?"("+te.map(vr).join(", ")+")":"(\n"+te.map(function(ce,Ee){return vt(z,ce," "+ae,!Ee)+" "+ae+vr(ce)}).join("\n")+"\n"+ae+")"}function vr(z){var te=(0,Ae.J)(z.defaultValue,z.type),ae=z.name+": "+String(z.type);return te&&(ae+=" = ".concat((0,B.print)(te))),ae+mr(z.deprecationReason)}function mr(z){if(null==z)return"";var te=(0,Ae.J)(z,T.kH);return te&&z!==g.SY?" @deprecated(reason: "+(0,B.print)(te)+")":" @deprecated"}function vt(z,te){var ae=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",ce=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],Ee=te.description;if(null==Ee)return"";if(!0===(null==z?void 0:z.commentDescriptions))return zr(Ee,ae,ce);var xe=Ee.length>70,Ce=(0,Pt.LZ)(Ee,"",xe),De=ae&&!ce?"\n"+ae:ae;return De+Ce.replace(/\n/g,"\n"+ae)+"\n"}function zr(z,te,ae){return(te&&!ae?"\n":"")+z.split("\n").map(function(xe){return te+(""!==xe?"# "+xe:"#")}).join("\n")+"\n"}function Qr(z){for(var te=[],ae=0;ae<z.length;ae++)te=te.concat(z[ae].definitions);return{kind:"Document",definitions:te}}function qr(z){for(var te=[],ae=Object.create(null),ce=0,Ee=z.definitions;ce<Ee.length;ce++){var xe=Ee[ce];switch(xe.kind){case w.h.OPERATION_DEFINITION:te.push(xe);break;case w.h.FRAGMENT_DEFINITION:ae[xe.name.value]=Sr(xe.selectionSet)}}for(var Ce=Object.create(null),De=function(Ne){for(var Fe=te[Ne],Ie=new Set,Ve=0,Ye=Sr(Fe.selectionSet);Ve<Ye.length;Ve++)br(Ie,ae,Ye[Ve]);Ce[Fe.name?Fe.name.value:""]={kind:w.h.DOCUMENT,definitions:z.definitions.filter(function(rt){return rt===Fe||rt.kind===w.h.FRAGMENT_DEFINITION&&Ie.has(rt.name.value)})}},Pe=0;Pe<te.length;Pe++)De(Pe);return Ce}function br(z,te,ae){if(!z.has(ae)){z.add(ae);var ce=te[ae];if(void 0!==ce)for(var Ee=0;Ee<ce.length;Ee++)br(z,te,ce[Ee])}}function Sr(z){var te=[];return(0,m.Vn)(z,{FragmentSpread:function(ce){te.push(ce.name.value)}}),te}function Yr(z){for(var te=(0,A.T)(z)?z:new A.H(z),ae=te.body,ce=new W.h(te),Ee="",xe=!1;ce.advance().kind!==H.T.EOF;){var Ce=ce.token,De=Ce.kind,Pe=!(0,W.u)(Ce.kind);xe&&(Pe||Ce.kind===H.T.SPREAD)&&(Ee+=" ");var Ke=ae.slice(Ce.start,Ce.end);Ee+=De===H.T.BLOCK_STRING?Jr(Ke):Ke,xe=Pe}return Ee}function Jr(z){var te=z.slice(3,-3),ae=(0,Pt.W7)(te);(0,Pt.Z2)(ae)>0&&(ae="\n"+ae);var ce=ae[ae.length-1];return('"'===ce&&'\\"""'!==ae.slice(-4)||"\\"===ce)&&(ae+="\n"),'"""'+ae+'"""'}function Ar(z,te){var ae=Object.keys(z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(z);te&&(ce=ce.filter(function(Ee){return Object.getOwnPropertyDescriptor(z,Ee).enumerable})),ae.push.apply(ae,ce)}return ae}function Or(z){for(var te=1;te<arguments.length;te++){var ae=null!=arguments[te]?arguments[te]:{};te%2?Ar(Object(ae),!0).forEach(function(ce){Zr(z,ce,ae[ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(ae)):Ar(Object(ae)).forEach(function(ce){Object.defineProperty(z,ce,Object.getOwnPropertyDescriptor(ae,ce))})}return z}function Zr(z,te,ae){return te in z?Object.defineProperty(z,te,{value:ae,enumerable:!0,configurable:!0,writable:!0}):z[te]=ae,z}var nt=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"}),Et=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 Xr(z,te){return wr(z,te).filter(function(ce){return ce.type in nt})}function $r(z,te){return wr(z,te).filter(function(ce){return ce.type in Et})}function wr(z,te){return[].concat(function(z,te){for(var ae=[],ce=bt((0,at.Z)(z.getTypeMap()),(0,at.Z)(te.getTypeMap())),Ee=0,xe=ce.removed;Ee<xe.length;Ee++){var Ce=xe[Ee];ae.push({type:nt.TYPE_REMOVED,description:(0,T.u1)(Ce)?"Standard scalar ".concat(Ce.name," was removed because it is not referenced anymore."):"".concat(Ce.name," was removed.")})}for(var De=0,Pe=ce.persisted;De<Pe.length;De++){var Ke=Pe[De],Ne=Ke[0],Fe=Ke[1];(0,p.EM)(Ne)&&(0,p.EM)(Fe)?ae.push.apply(ae,an(Ne,Fe)):(0,p.EN)(Ne)&&(0,p.EN)(Fe)?ae.push.apply(ae,nn(Ne,Fe)):(0,p.hL)(Ne)&&(0,p.hL)(Fe)?ae.push.apply(ae,rn(Ne,Fe)):(0,p.lp)(Ne)&&(0,p.lp)(Fe)||(0,p.oT)(Ne)&&(0,p.oT)(Fe)?ae.push.apply(ae,xr(Ne,Fe).concat(Tr(Ne,Fe))):Ne.constructor!==Fe.constructor&&ae.push({type:nt.TYPE_CHANGED_KIND,description:"".concat(Ne.name," changed from ")+"".concat(Rr(Ne)," to ").concat(Rr(Fe),".")})}return ae}(z,te),function(z,te){for(var ae=[],ce=bt(z.getDirectives(),te.getDirectives()),Ee=0,xe=ce.removed;Ee<xe.length;Ee++)ae.push({type:nt.DIRECTIVE_REMOVED,description:"".concat(xe[Ee].name," was removed.")});for(var De=0,Pe=ce.persisted;De<Pe.length;De++){for(var Ke=Pe[De],Ne=Ke[0],Fe=Ke[1],Ie=bt(Ne.args,Fe.args),Ve=0,Ye=Ie.added;Ve<Ye.length;Ve++){var ut=Ye[Ve];(0,p.dK)(ut)&&ae.push({type:nt.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(ut.name," on directive ").concat(Ne.name," was added.")})}for(var ct=0,rt=Ie.removed;ct<rt.length;ct++)ae.push({type:nt.DIRECTIVE_ARG_REMOVED,description:"".concat(rt[ct].name," was removed from ").concat(Ne.name,".")});Ne.isRepeatable&&!Fe.isRepeatable&&ae.push({type:nt.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(Ne.name,".")});for(var xt=0,Ft=Ne.locations;xt<Ft.length;xt++){var Rt=Ft[xt];-1===Fe.locations.indexOf(Rt)&&ae.push({type:nt.DIRECTIVE_LOCATION_REMOVED,description:"".concat(Rt," was removed from ").concat(Ne.name,".")})}}return ae}(z,te))}function rn(z,te){for(var ae=[],ce=bt((0,at.Z)(z.getFields()),(0,at.Z)(te.getFields())),Ee=0,xe=ce.added;Ee<xe.length;Ee++){var Ce=xe[Ee];(0,p.Wd)(Ce)?ae.push({type:nt.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(Ce.name," on input type ").concat(z.name," was added.")}):ae.push({type:Et.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(Ce.name," on input type ").concat(z.name," was added.")})}for(var De=0,Pe=ce.removed;De<Pe.length;De++){var Ke=Pe[De];ae.push({type:nt.FIELD_REMOVED,description:"".concat(z.name,".").concat(Ke.name," was removed.")})}for(var Ne=0,Fe=ce.persisted;Ne<Fe.length;Ne++){var Ie=Fe[Ne],Ve=Ie[0],Ye=Ie[1];Ht(Ve.type,Ye.type)||ae.push({type:nt.FIELD_CHANGED_KIND,description:"".concat(z.name,".").concat(Ve.name," changed type from ")+"".concat(String(Ve.type)," to ").concat(String(Ye.type),".")})}return ae}function nn(z,te){for(var ae=[],ce=bt(z.getTypes(),te.getTypes()),Ee=0,xe=ce.added;Ee<xe.length;Ee++)ae.push({type:Et.TYPE_ADDED_TO_UNION,description:"".concat(xe[Ee].name," was added to union type ").concat(z.name,".")});for(var De=0,Pe=ce.removed;De<Pe.length;De++)ae.push({type:nt.TYPE_REMOVED_FROM_UNION,description:"".concat(Pe[De].name," was removed from union type ").concat(z.name,".")});return ae}function an(z,te){for(var ae=[],ce=bt(z.getValues(),te.getValues()),Ee=0,xe=ce.added;Ee<xe.length;Ee++)ae.push({type:Et.VALUE_ADDED_TO_ENUM,description:"".concat(xe[Ee].name," was added to enum type ").concat(z.name,".")});for(var De=0,Pe=ce.removed;De<Pe.length;De++)ae.push({type:nt.VALUE_REMOVED_FROM_ENUM,description:"".concat(Pe[De].name," was removed from enum type ").concat(z.name,".")});return ae}function Tr(z,te){for(var ae=[],ce=bt(z.getInterfaces(),te.getInterfaces()),Ee=0,xe=ce.added;Ee<xe.length;Ee++)ae.push({type:Et.IMPLEMENTED_INTERFACE_ADDED,description:"".concat(xe[Ee].name," added to interfaces implemented by ").concat(z.name,".")});for(var De=0,Pe=ce.removed;De<Pe.length;De++){var Ke=Pe[De];ae.push({type:nt.IMPLEMENTED_INTERFACE_REMOVED,description:"".concat(z.name," no longer implements interface ").concat(Ke.name,".")})}return ae}function xr(z,te){for(var ae=[],ce=bt((0,at.Z)(z.getFields()),(0,at.Z)(te.getFields())),Ee=0,xe=ce.removed;Ee<xe.length;Ee++){var Ce=xe[Ee];ae.push({type:nt.FIELD_REMOVED,description:"".concat(z.name,".").concat(Ce.name," was removed.")})}for(var De=0,Pe=ce.persisted;De<Pe.length;De++){var Ke=Pe[De],Ne=Ke[0],Fe=Ke[1];ae.push.apply(ae,on(z,Ne,Fe)),Gt(Ne.type,Fe.type)||ae.push({type:nt.FIELD_CHANGED_KIND,description:"".concat(z.name,".").concat(Ne.name," changed type from ")+"".concat(String(Ne.type)," to ").concat(String(Fe.type),".")})}return ae}function on(z,te,ae){for(var ce=[],Ee=bt(te.args,ae.args),xe=0,Ce=Ee.removed;xe<Ce.length;xe++){var De=Ce[xe];ce.push({type:nt.ARG_REMOVED,description:"".concat(z.name,".").concat(te.name," arg ").concat(De.name," was removed.")})}for(var Pe=0,Ke=Ee.persisted;Pe<Ke.length;Pe++){var Ne=Ke[Pe],Fe=Ne[0],Ie=Ne[1];if(Ht(Fe.type,Ie.type)){if(void 0!==Fe.defaultValue)if(void 0===Ie.defaultValue)ce.push({type:Et.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(z.name,".").concat(te.name," arg ").concat(Fe.name," defaultValue was removed.")});else{var Ye=Cr(Fe.defaultValue,Fe.type),ut=Cr(Ie.defaultValue,Ie.type);Ye!==ut&&ce.push({type:Et.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(z.name,".").concat(te.name," arg ").concat(Fe.name," has changed defaultValue from ").concat(Ye," to ").concat(ut,".")})}}else ce.push({type:nt.ARG_CHANGED_KIND,description:"".concat(z.name,".").concat(te.name," arg ").concat(Fe.name," has changed type from ")+"".concat(String(Fe.type)," to ").concat(String(Ie.type),".")})}for(var ct=0,rt=Ee.added;ct<rt.length;ct++){var ft=rt[ct];(0,p.dK)(ft)?ce.push({type:nt.REQUIRED_ARG_ADDED,description:"A required arg ".concat(ft.name," on ").concat(z.name,".").concat(te.name," was added.")}):ce.push({type:Et.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(ft.name," on ").concat(z.name,".").concat(te.name," was added.")})}return ce}function Gt(z,te){return(0,p.HG)(z)?(0,p.HG)(te)&&Gt(z.ofType,te.ofType)||(0,p.zM)(te)&&Gt(z,te.ofType):(0,p.zM)(z)?(0,p.zM)(te)&&Gt(z.ofType,te.ofType):(0,p.Zs)(te)&&z.name===te.name||(0,p.zM)(te)&&Gt(z,te.ofType)}function Ht(z,te){return(0,p.HG)(z)?(0,p.HG)(te)&&Ht(z.ofType,te.ofType):(0,p.zM)(z)?(0,p.zM)(te)&&Ht(z.ofType,te.ofType)||!(0,p.zM)(te)&&Ht(z.ofType,te):(0,p.Zs)(te)&&z.name===te.name}function Rr(z){return(0,p.KA)(z)?"a Scalar type":(0,p.lp)(z)?"an Object type":(0,p.oT)(z)?"an Interface type":(0,p.EN)(z)?"a Union type":(0,p.EM)(z)?"an Enum type":(0,p.hL)(z)?"an Input type":void(0,P.Z)(0,"Unexpected type: "+(0,$e.Z)(z))}function Cr(z,te){var ae=(0,Ae.J)(z,te);null!=ae||(0,P.Z)(0);var ce=(0,m.Vn)(ae,{ObjectValue:function(xe){var Ce=[].concat(xe.fields);return Ce.sort(function(De,Pe){return(0,Wt.Z)(De.name.value,Pe.name.value)}),Or(Or({},xe),{},{fields:Ce})}});return(0,B.print)(ce)}function bt(z,te){for(var ae=[],ce=[],Ee=[],xe=(0,Tt.Z)(z,function(Ie){return Ie.name}),Ce=(0,Tt.Z)(te,function(Ie){return Ie.name}),De=0;De<z.length;De++){var Pe=z[De],Ke=Ce[Pe.name];void 0===Ke?ce.push(Pe):Ee.push([Pe,Ke])}for(var Ne=0;Ne<te.length;Ne++){var Fe=te[Ne];void 0===xe[Fe.name]&&ae.push(Fe)}return{added:ae,persisted:Ee,removed:ce}}function sn(z,te){return(0,t.Gu)(z,te,[Z])}var un=s(69251),cn=s(95769),fn=s(53854),ln=s(47582),Ir=s(12940),hn=s(15754),yr=s(95880),_r=s(47557)},44226:J=>{"use strict";J.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:J=>{"use strict";J.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:J=>{"use strict";J.exports=JSON.parse('{"o":{"ListIdentityPools":{"input_token":"NextToken","limit_key":"MaxResults","output_token":"NextToken","result_key":"IdentityPools"}}}')},65359:J=>{"use strict";J.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:J=>{"use strict";J.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:J=>{"use strict";J.exports={o:{}}},50261:J=>{"use strict";J.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_app=self.webpackChunkaltair_app||[]).push([[794],{5794:(ne,L,d)=>{"use strict";d.r(L),d.d(L,{AppSyncSubscriptionProvider:()=>v});var s=d(71251),S=d(82475),h=d(11984),t=d(37490),n=d(52247),c=d(43303),o=d(41695),u=d(51724);class v extends s.q{execute(T){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,h.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)(T.query),variables:T.variables});return new S.y(B=>{this.subscription=I.subscribe({next:(...V)=>B.next(...V),error:(...V)=>B.error(...V),complete:()=>B.complete()})})}close(){var T,R;(null==(T=this.subscription)?void 0:T.closed)&&(null==(R=this.subscription)||R.unsubscribe())}}},17629:(ne,L,d)=>{"use strict";d.d(L,{R:()=>h});var s=d(6462),S=d(50216),h=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}()},43015:(ne,L,d)=>{"use strict";var s;d.d(L,{C:()=>s}),s||(s={})},73860:(ne,L,d)=>{"use strict";d.d(L,{y:()=>s});var s=function(h,t,r,n,c){this.message=h,this.path=t,this.query=r,this.clientOnly=n,this.variables=c}},3916:(ne,L,d)=>{"use strict";d.d(L,{RI:()=>t,$O:()=>n,E_:()=>c,RC:()=>o,j:()=>u,ig:()=>v});var s=d(30534),S=d(17334),h=d(2456),t=Object.prototype.hasOwnProperty,n=/^[_a-z][_0-9a-z]*/i;function c(m){var T=m.match(n);return T?T[0]:m}function o(m,T,R){return!(!T||"object"!=typeof T)&&(Array.isArray(T)?T.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(T,D)&&(!P.selectionSet||o(P.selectionSet,T[D],R))}return!0}))}function u(m){return null!==m&&"object"==typeof m&&!(0,s.Yk)(m)&&!Array.isArray(m)}function v(){return new h.w0}},41695:(ne,L,d)=>{"use strict";d.d(L,{h:()=>J});var ee,x,s=d(48399),S=d(6462),h=d(17629),t=d(73860),r=d(30534),n=d(52107),c=d(70977),o=d(83368),u=d(50216),v=d(17334),m=d(2456),T=d(38546),A=d(73005),_=d(3916),I=Object.create(null),B=function(){return I},V=Object.create(null),q=function(){function ee(x,l){var E=this;this.policies=x,this.group=l,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(b,M){return(0,r.Yk)(b)?E.get(b.__ref,M):b&&b[M]},this.canRead=function(b){return(0,r.Yk)(b)?E.has(b.__ref):"object"==typeof b},this.toReference=function(b,M){if("string"==typeof b)return(0,r.kQ)(b);if((0,r.Yk)(b))return b;var K=E.policies.identify(b)[0];if(K){var Z=(0,r.kQ)(K);return M&&E.merge(K,b),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,l){if(this.group.depend(x,l),_.RI.call(this.data,x)){var E=this.data[x];if(E&&_.RI.call(E,l))return E[l]}return"__typename"===l&&_.RI.call(this.policies.rootTypenamesById,x)?this.policies.rootTypenamesById[x]:this instanceof w?this.parent.get(x,l):void 0},ee.prototype.lookup=function(x,l){return l&&this.group.depend(x,"__exists"),_.RI.call(this.data,x)?this.data[x]:this instanceof w?this.parent.lookup(x,l):this.policies.rootTypenamesById[x]?Object.create(null):void 0},ee.prototype.merge=function(x,l){var E=this,b=this.lookup(x),M=new m.w0(f).merge(b,l);if(this.data[x]=M,M!==b&&(delete this.refs[x],this.group.caching)){var K=Object.create(null);b||(K.__exists=1),Object.keys(l).forEach(function(Z){if(!b||b[Z]!==M[Z]){K[Z]=1;var se=(0,_.E_)(Z);se!==Z&&!E.policies.hasKeyArgs(M.__typename,se)&&(K[se]=1),void 0===M[Z]&&!(E instanceof w)&&delete M[Z]}}),Object.keys(K).forEach(function(Z){return E.group.dirty(x,Z)})}},ee.prototype.modify=function(x,l){var E=this,b=this.lookup(x);if(b){var M=Object.create(null),K=!1,Z=!0,se={DELETE:I,INVALIDATE:V,isReference:r.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(ae,_e){return E.policies.readField("string"==typeof ae?{fieldName:ae,from:_e||(0,r.kQ)(x)}:ae,{store:E})}};if(Object.keys(b).forEach(function(ae){var _e=(0,_.E_)(ae),Te=b[ae];if(void 0!==Te){var xe="function"==typeof l?l:l[ae]||l[_e];if(xe){var Oe=xe===B?I:xe(Te,(0,s.pi)((0,s.pi)({},se),{fieldName:_e,storeFieldName:ae,storage:E.getStorage(x,ae)}));Oe===V?E.group.dirty(x,ae):(Oe===I&&(Oe=void 0),Oe!==Te&&(M[ae]=Oe,K=!0,Te=Oe))}void 0!==Te&&(Z=!1)}}),K)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,l,E){var b,M=this.lookup(x);if(M){var K=this.getFieldValue(M,"__typename"),Z=l&&E?this.policies.getStoreFieldName({typename:K,fieldName:l,args:E}):l;return this.modify(x,Z?((b={})[Z]=B,b):B)}return!1},ee.prototype.evict=function(x){var l=!1;return x.id&&(_.RI.call(this.data,x.id)&&(l=this.delete(x.id,x.fieldName,x.args)),this instanceof w&&(l=this.parent.evict(x)||l),(x.fieldName||l)&&this.group.dirty(x.id,x.fieldName||"__exists")),l},ee.prototype.clear=function(){this.replace(null)},ee.prototype.extract=function(){var x=this,l=this.toObject(),E=[];return this.getRootIdSet().forEach(function(b){_.RI.call(x.policies.rootTypenamesById,b)||E.push(b)}),E.length&&(l.__META={extraRootIds:E.sort()}),l},ee.prototype.replace=function(x){var l=this;if(Object.keys(this.data).forEach(function(M){x&&_.RI.call(x,M)||l.delete(M)}),x){var E=x.__META,b=(0,s._T)(x,["__META"]);Object.keys(b).forEach(function(M){l.merge(M,b[M])}),E&&E.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 l=--this.rootIds[x];return l||delete this.rootIds[x],l}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,l=this.getRootIdSet(),E=this.toObject();l.forEach(function(K){_.RI.call(E,K)&&(Object.keys(x.findChildRefIds(K)).forEach(l.add,l),delete E[K])});var b=Object.keys(E);if(b.length){for(var M=this;M instanceof w;)M=M.parent;b.forEach(function(K){return M.delete(K)})}return b},ee.prototype.findChildRefIds=function(x){if(!_.RI.call(this.refs,x)){var l=this.refs[x]=Object.create(null),E=new Set([this.data[x]]),b=function(M){return null!==M&&"object"==typeof M};E.forEach(function(M){(0,r.Yk)(M)?l[M.__ref]=!0:b(M)&&Object.values(M).filter(b).forEach(E.add,E)})}return this.refs[x]},ee.prototype.makeCacheKey=function(){for(var x=[],l=0;l<arguments.length;l++)x[l]=arguments[l];return this.group.keyMaker.lookupArray(x)},ee}(),G=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,l){if(this.d){this.d(O(x,l));var E=(0,_.E_)(l);E!==l&&this.d(O(x,E))}},ee.prototype.dirty=function(x,l){this.d&&this.d.dirty(O(x,l))},ee}();function O(ee,x){return x+"#"+ee}x=function(l){function E(b){var K=b.resultCaching,Z=void 0===K||K,se=b.seed,ae=l.call(this,b.policies,new G(Z))||this;return ae.storageTrie=new S.Gl(A.m),ae.sharedLayerGroup=new G(Z),se&&ae.replace(se),ae}return(0,s.ZT)(E,l),E.prototype.addLayer=function(b,M){return new w(b,this,M,this.sharedLayerGroup)},E.prototype.removeLayer=function(){return this},E.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},E}(ee=q||(q={})),ee.Root=x;var w=function(ee){function x(l,E,b,M){var K=ee.call(this,E.policies,M)||this;return K.id=l,K.parent=E,K.replay=b,K.group=M,b(K),K}return(0,s.ZT)(x,ee),x.prototype.addLayer=function(l,E){return new x(l,this,E,this.group)},x.prototype.removeLayer=function(l){var E=this,b=this.parent.removeLayer(l);return l===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(M){E.data[M]!==b.lookup(M)&&E.delete(M)}),b):b===this.parent?this:b.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(l){var E=this.parent.findChildRefIds(l);return _.RI.call(this.data,l)?(0,s.pi)((0,s.pi)({},E),ee.prototype.findChildRefIds.call(this,l)):E},x.prototype.getStorage=function(){for(var l=this.parent;l.parent;)l=l.parent;return l.getStorage.apply(l,arguments)},x}(q);function f(ee,x,l){var E=ee[l],b=x[l];return(0,T.D)(E,b)?E:b}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 l=this;this.config=x,this.executeSelectionSet=(0,S.re)(function(E){return l.execSelectionSetImpl(E)},{keyArgs:function(E){return[E.selectionSet,E.objectOrReference,E.context]},makeCacheKey:function(E,b,M){if(y(M.store))return M.store.makeCacheKey(E,(0,r.Yk)(b)?b.__ref:b,M.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=(0,S.re)(function(E){return l.execSubSelectedArrayImpl(E)},{makeCacheKey:function(E){var b=E.field,M=E.array,K=E.context;if(y(K.store))return K.store.makeCacheKey(b,M,K.varString)}}),this.config=(0,s.pi)({addTypename:!0},x)}return ee.prototype.diffQueryAgainstStore=function(x){var l=x.store,E=x.query,b=x.rootId,M=void 0===b?"ROOT_QUERY":b,K=x.variables,Z=x.returnPartialData,se=void 0===Z||Z,ae=this.config.cache.policies;K=(0,s.pi)((0,s.pi)({},(0,o.O4)((0,o.iW)(E))),K);var _e=this.executeSelectionSet({selectionSet:(0,o.p$)(E).selectionSet,objectOrReference:(0,r.kQ)(M),context:{store:l,query:E,policies:ae,variables:K,varString:JSON.stringify(K),fragmentMap:(0,u.F)((0,o.kU)(E)),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,l,E,b){if(y(b.store)&&this.knownResults.get(x)===E){var M=this.executeSelectionSet.peek(E,l,b);if(M&&x===M.result)return!0}return!1},ee.prototype.execSelectionSetImpl=function(x){var l=this,E=x.selectionSet,b=x.objectOrReference,M=x.context;if((0,r.Yk)(b)&&!M.policies.rootTypenamesById[b.__ref]&&!M.store.has(b.__ref))return{result:{},missing:[p(new c.ej(4),M)]};var K=M.variables,Z=M.policies,ae=[],_e={result:null},Te=M.store.getFieldValue(b,"__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]&&ae.push({__typename:Te});var Re=new Set(E.selections);return Re.forEach(function(H){var F;if((0,v.LZ)(H,K))if((0,r.My)(H)){var U=Z.readField({fieldName:H.name.value,field:H,variables:M.variables,from:b},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(l.executeSubSelectedArray({field:H,array:U,context:M})):H.selectionSet&&null!=U&&(U=Oe(l.executeSelectionSet({selectionSet:H.selectionSet,objectOrReference:U,context:M}))),void 0!==U&&ae.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)(ae),this.knownResults.set(_e.result,E),_e},ee.prototype.execSubSelectedArrayImpl=function(x){var K,l=this,E=x.field,b=x.array,M=x.context;function Z(se,ae){return se.missing&&(K=K||[]).push.apply(K,se.missing),(0,c.kG)(M.path.pop()===ae),se.result}return E.selectionSet&&(b=b.filter(M.store.canRead)),{result:b=b.map(function(se,ae){return null===se?null:(M.path.push(ae),Array.isArray(se)?Z(l.executeSubSelectedArray({field:E,array:se,context:M}),ae):E.selectionSet?Z(l.executeSelectionSet({selectionSet:E.selectionSet,objectOrReference:se,context:M}),ae):((0,c.kG)(M.path.pop()===ae),se))}),missing:K}},ee}(),W=function(){function ee(x,l){this.cache=x,this.reader=l}return ee.prototype.writeToStore=function(x){var l=x.query,E=x.result,b=x.dataId,M=x.store,K=x.variables,Z=(0,o.$H)(l),se=(0,_.ig)();K=(0,s.pi)((0,s.pi)({},(0,o.O4)(Z)),K);var ae=this.processSelectionSet({result:E||Object.create(null),dataId:b,selectionSet:Z.selectionSet,mergeTree:{map:new Map},context:{store:M,written:Object.create(null),merge:function(_e,Te){return se.merge(_e,Te)},variables:K,varString:JSON.stringify(K),fragmentMap:(0,u.F)((0,o.kU)(l))}});if(!(0,r.Yk)(ae))throw new c.ej(7);return M.retain(ae.__ref),ae},ee.prototype.processSelectionSet=function(x){var l=this,E=x.dataId,b=x.result,M=x.selectionSet,K=x.context,Z=x.mergeTree,se=this.cache.policies,ae=se.identify(b,M,K.fragmentMap),Te=ae[1];if("string"==typeof(E=E||ae[0])){var xe=K.written[E]||(K.written[E]=[]),Oe=(0,r.kQ)(E);if(xe.indexOf(M)>=0||(xe.push(M),this.reader&&this.reader.isFresh(b,Oe,M,K)))return Oe}var Re=Object.create(null);Te&&(Re=K.merge(Re,Te));var H=E&&se.rootTypenamesById[E]||(0,r.qw)(b,M,K.fragmentMap)||E&&K.store.get(E,"__typename");"string"==typeof H&&(Re.__typename=H);var F=new Set(M.selections);if(F.forEach(function(z){var he;if((0,v.LZ)(z,K.variables))if((0,r.My)(z)){var ve=(0,r.u2)(z),Se=b[ve];if(void 0!==Se){var Ie=se.getStoreFieldName({typename:H,fieldName:z.name.value,field:z,variables:K.variables}),Me=oe(Z,Ie),Ke=l.processFieldValue(Se,z,K,Me),Ze=z.selectionSet&&K.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=K.merge(Re,((he={})[Ie]=Ke,he))}else if(se.usingPossibleTypes&&!(0,v.FS)(["defer","client"],z))throw new c.ej(8)}else{var gt=(0,u.hi)(z,K.fragmentMap);gt&&se.fragmentMatches(gt,H,b,K.variables)&>.selectionSet.selections.forEach(F.add,F)}}),"string"==typeof E){var U=(0,r.kQ)(E);return Z.map.size&&(Re=this.applyMerges(Z,U,Re,K)),K.store.merge(E,Re),U}return Re},ee.prototype.processFieldValue=function(x,l,E,b){var M=this;return l.selectionSet&&null!==x?Array.isArray(x)?x.map(function(K,Z){var se=M.processFieldValue(K,l,E,oe(b,Z));return me(b,Z),se}):this.processSelectionSet({result:x,selectionSet:l.selectionSet,context:E,mergeTree:b}):x},ee.prototype.applyMerges=function(x,l,E,b,M){var K,Z=this;if(x.map.size&&!(0,r.Yk)(E)){var se=Array.isArray(E)||!(0,r.Yk)(l)&&!(0,_.j)(l)?void 0:l,ae=E;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:b.store.getFieldValue(xe,String(Oe))};x.map.forEach(function(xe,Oe){M&&M.push(Oe);var Re=Te(se,Oe),H=Te(ae,Oe),F=Z.applyMerges(xe,Re,H,b,M);F!==H&&(_e=_e||new Map).set(Oe,F),M&&(0,c.kG)(M.pop()===Oe)}),_e&&(E=Array.isArray(ae)?ae.slice(0):(0,s.pi)({},ae),_e.forEach(function(xe,Oe){E[Oe]=xe}))}return x.info?this.cache.policies.runMergeFunction(l,E,x.info,b,M&&(K=b.store).getStorage.apply(K,M)):E},ee}(),$=[];function oe(ee,x){var l=ee.map;return l.has(x)||l.set(x,$.pop()||{map:new Map}),l.get(x)}function me(ee,x){var l=ee.map,E=l.get(x);E&&!E.info&&!E.map.size&&($.push(E),l.delete(x))}new Set;var ie=d(71883),Q=d(37691),re={dataIdFromObject:Q.u,addTypename:!0,resultCaching:!0,typePolicies:{}},J=function(ee){function x(l){void 0===l&&(l={});var E=ee.call(this)||this;return E.watches=new Set,E.typenameDocumentCache=new Map,E.makeVar=ie.QS,E.txCount=0,E.maybeBroadcastWatch=(0,S.re)(function(b,M){return E.broadcastWatch.call(E,b,!!M)},{makeCacheKey:function(b){var M=b.optimistic?E.optimisticData:E.data;if(y(M))return M.makeCacheKey(b.query,b.callback,JSON.stringify({optimistic:b.optimistic,rootId:b.rootId,variables:b.variables}))}}),E.watchDep=(0,S.dP)(),E.config=(0,s.pi)((0,s.pi)({},re),l),E.addTypename=!!E.config.addTypename,E.policies=new Q.r({cache:E,dataIdFromObject:E.config.dataIdFromObject,possibleTypes:E.config.possibleTypes,typePolicies:E.config.typePolicies}),E.data=new q.Root({policies:E.policies,resultCaching:E.config.resultCaching}),E.optimisticData=E.data,E.storeWriter=new W(E,E.storeReader=new N({cache:E,addTypename:E.addTypename})),E}return(0,s.ZT)(x,ee),x.prototype.restore=function(l){return l&&this.data.replace(l),this},x.prototype.extract=function(l){return void 0===l&&(l=!1),(l?this.optimisticData:this.data).extract()},x.prototype.read=function(l){var E=l.returnPartialData,b=void 0!==E&&E;try{return this.storeReader.diffQueryAgainstStore({store:l.optimistic?this.optimisticData:this.data,query:l.query,variables:l.variables,rootId:l.rootId,config:this.config,returnPartialData:b}).result||null}catch(M){if(M instanceof t.y)return null;throw M}},x.prototype.write=function(l){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:l.query,result:l.result,dataId:l.dataId,variables:l.variables})}finally{!--this.txCount&&!1!==l.broadcast&&this.broadcastWatches()}},x.prototype.modify=function(l){if(_.RI.call(l,"id")&&!l.id)return!1;var E=l.optimistic?this.optimisticData:this.data;try{return++this.txCount,E.modify(l.id||"ROOT_QUERY",l.fields)}finally{!--this.txCount&&!1!==l.broadcast&&this.broadcastWatches()}},x.prototype.diff=function(l){return this.storeReader.diffQueryAgainstStore({store:l.optimistic?this.optimisticData:this.data,rootId:l.id||"ROOT_QUERY",query:l.query,variables:l.variables,returnPartialData:l.returnPartialData,config:this.config})},x.prototype.watch=function(l){var E=this;return this.watches.size||(0,ie._v)(this),this.watches.add(l),l.immediate&&this.maybeBroadcastWatch(l),function(){E.watches.delete(l)&&!E.watches.size&&(0,ie.li)(E),E.watchDep.dirty(l),E.maybeBroadcastWatch.forget(l)}},x.prototype.gc=function(){return this.optimisticData.gc()},x.prototype.retain=function(l,E){return(E?this.optimisticData:this.data).retain(l)},x.prototype.release=function(l,E){return(E?this.optimisticData:this.data).release(l)},x.prototype.identify=function(l){return(0,r.Yk)(l)?l.__ref:this.policies.identify(l)[0]},x.prototype.evict=function(l){if(!l.id){if(_.RI.call(l,"id"))return!1;l=(0,s.pi)((0,s.pi)({},l),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(l)}finally{!--this.txCount&&!1!==l.broadcast&&this.broadcastWatches()}},x.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},x.prototype.removeOptimistic=function(l){var E=this.optimisticData.removeLayer(l);E!==this.optimisticData&&(this.optimisticData=E,this.broadcastWatches())},x.prototype.performTransaction=function(l,E){var b=this,M=function(Z){var ae=b.data,_e=b.optimisticData;++b.txCount,Z&&(b.data=b.optimisticData=Z);try{l(b)}finally{--b.txCount,b.data=ae,b.optimisticData=_e}},K=!1;"string"==typeof E?(this.optimisticData=this.optimisticData.addLayer(E,M),K=!0):null===E?M(this.data):M(),this.broadcastWatches(K)},x.prototype.transformDocument=function(l){if(this.addTypename){var E=this.typenameDocumentCache.get(l);return E||(E=(0,n.Gw)(l),this.typenameDocumentCache.set(l,E),this.typenameDocumentCache.set(E,E)),E}return l},x.prototype.broadcastWatches=function(l){var E=this;this.txCount||this.watches.forEach(function(b){return E.maybeBroadcastWatch(b,l)})},x.prototype.broadcastWatch=function(l,E){this.watchDep.dirty(l),this.watchDep(l);var b=this.diff({query:l.query,variables:l.variables,optimistic:l.optimistic});l.optimistic&&E&&(b.fromOptimisticTransaction=!0),l.callback(b)},x}(h.R)},37691:(ne,L,d)=>{"use strict";d.d(L,{u:()=>v,r:()=>D});var s=d(48399),S=d(6462),h=d(70977),t=d(30534),r=d(73005),n=d(50216),c=d(3916),o=d(71883);function u(G){return void 0!==G.args?G.args:G.field?(0,t.NC)(G.field,G.variables):null}var v=function(G,O){var w=G.__typename,f=G.id,y=G._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(){},T=function(G,O){return O.fieldName},R=function(G,O,w){return(0,w.mergeObjects)(G,O)},P=function(G,O){return O},D=function(){function G(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 G.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},j=y&&this.getTypePolicy(y),W=j&&j.keyFn||this.config.dataIdFromObject;W;){var $=W(O,p);if(!Array.isArray($)){N=$;break}W=B($)}return N=N?String(N):void 0,p.keyObject?[N,p.keyObject]:[N]},G.prototype.addTypePolicies=function(O){var w=this;Object.keys(O).forEach(function(f){var y=O[f],p=y.queryType,N=y.mutationType,j=y.subscriptionType,W=(0,s._T)(y,["queryType","mutationType","subscriptionType"]);p&&w.setRootTypename("Query",f),N&&w.setRootTypename("Mutation",f),j&&w.setRootTypename("Subscription",f),c.RI.call(w.toBeAdded,f)?w.toBeAdded[f].push(W):w.toBeAdded[f]=[W]})},G.prototype.updateTypePolicy=function(O,w){var f=this,y=this.getTypePolicy(O),p=w.keyFields,N=w.fields;function j(W,$){W.merge="function"==typeof $?$:!0===$?R:!1===$?P:W.merge}j(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(W){var $=f.getFieldPolicy(O,W,!0),oe=N[W];if("function"==typeof oe)$.read=oe;else{var me=oe.keyArgs,X=oe.read,fe=oe.merge;$.keyFn=!1===me?T:Array.isArray(me)?I(me):"function"==typeof me?me:$.keyFn,"function"==typeof X&&($.read=X),j($,fe)}$.read&&$.merge&&($.keyFn=$.keyFn||T)})},G.prototype.setRootTypename=function(O,w){void 0===w&&(w=O);var f="ROOT_"+O.toUpperCase(),y=this.rootTypenamesById[f];w!==y&&((0,h.kG)(!y||y===O,1),y&&delete this.rootIdsByTypename[y],this.rootIdsByTypename[w]=f,this.rootTypenamesById[f]=w)},G.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))})})},G.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 j=w.getTypePolicy(N),W=j.fields,$=(0,s._T)(j,["fields"]);Object.assign(f,$),Object.assign(f.fields,W)})}var p=this.toBeAdded[O];return p&&p.length&&p.splice(0).forEach(function(N){w.updateTypePolicy(O,N)}),this.typePolicies[O]},G.prototype.getFieldPolicy=function(O,w,f){if(O){var y=this.getTypePolicy(O).fields;return y[w]||f&&(y[w]=Object.create(null))}},G.prototype.getSupertypeSet=function(O,w){var f=this.supertypeMap.get(O);return!f&&w&&this.supertypeMap.set(O,f=new Set),f},G.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 j=this.getSupertypeSet(w,!0),W=[j],$=function(ie){var Q=p.getSupertypeSet(ie,!1);Q&&Q.size&&W.indexOf(Q)<0&&W.push(Q)},oe=!(!f||!this.fuzzySubtypes.size),X=0;X<W.length;++X){var fe=W[X];if(fe.has(N))return j.has(N)||j.add(N),!0;fe.forEach($),oe&&X===W.length-1&&(0,c.RC)(O.selectionSet,f,y)&&(oe=!1,this.fuzzySubtypes.forEach(function(ie,Q){var re=w.match(ie);re&&re[0]===w&&$(Q)}))}return!1},G.prototype.hasKeyArgs=function(O,w){var f=this.getFieldPolicy(O,w,!1);return!(!f||!f.keyFn)},G.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 j={typename:w,fieldName:f,field:O.field||null,variables:O.variables},W=u(O);N;){var $=N(W,j);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},G.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),j=(0,c.E_)(N),W=w.store.getFieldValue(f,N),$=this.getFieldPolicy(O.typename,j,!1),oe=$&&$.read;if(oe){var me=A(this,f,O,w,w.store.getStorage((0,t.Yk)(f)?f.__ref:f,N));return o.ab.withValue(this.cache,oe,[W,me])}return W}},G.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},G.prototype.runMergeFunction=function(O,w,f,y,p){var N=f.field,j=f.typename,W=f.merge;return W===R?_(y.store.getFieldValue)(O,w):W===P?w:W(O,w,A(this,void 0,{typename:j,fieldName:N.name.value,field:N,variables:y.variables},y,p||Object.create(null)))},G}();function A(G,O,w,f,y){var p=G.getStoreFieldName(w),N=(0,c.E_)(p),j=w.variables||f.variables,W=f.store,$=W.getFieldValue,oe=W.toReference,me=W.canRead;return{args:u(w),field:w.field||null,fieldName:N,storeFieldName:p,variables:j,isReference:t.Yk,toReference:oe,storage:y,cache:G.cache,canRead:me,readField:function(X,fe){var ie="string"==typeof X?{fieldName:X,from:fe}:(0,s.pi)({},X);return void 0===ie.from&&(ie.from=O),void 0===ie.variables&&(ie.variables=j),G.readField(ie,f)},mergeObjects:_($)}}function _(G){return function(w,f){if(Array.isArray(w)||Array.isArray(f))throw new h.ej(2);if(w&&"object"==typeof w&&f&&"object"==typeof f){var y=G(w,"__typename"),p=G(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(G){return function(O,w){return O?w.fieldName+":"+JSON.stringify(q(O,G,!1)):w.fieldName}}function B(G){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=V(f.selectionSet,f.fragmentMap))}var N=f.keyObject=q(w,G,!0,y);return f.typename+":"+JSON.stringify(N)}}function V(G,O){var w=Object.create(null),f=new Set([G]);return f.forEach(function(y){y.selections.forEach(function(p){if((0,t.My)(p)){if(p.alias){var N=p.alias.value,j=p.name.value;j!==N&&((w.aliases||(w.aliases=Object.create(null)))[j]=N)}p.selectionSet&&((w.subsets||(w.subsets=Object.create(null)))[p.name.value]=V(p.selectionSet,O))}else{var oe=(0,n.hi)(p,O);oe&&f.add(oe.selectionSet)}})}),w}function q(G,O,w,f){var p,y=Object.create(null);return O.forEach(function(N){if(Array.isArray(N)){if("string"==typeof p){var j=f&&f.subsets;y[p]=q(G[p],N,w,j&&j[p])}}else{var $=f&&f.aliases,oe=$&&$[N]||N;c.RI.call(G,oe)?y[p=N]=G[oe]:((0,h.kG)(!w,3),p=void 0)}}),y}},71883:(ne,L,d)=>{"use strict";d.d(L,{ab:()=>h,li:()=>n,_v:()=>c,QS:()=>o});var s=d(6462),h=new(d(83403).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,T=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(T);T.clear(),A.forEach(function(I){return I(v)})}}else{var _=h.getValue();_&&(P(_),r(_).dep(R))}return v};R.onNextChange=function(D){return T.add(D),function(){T.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()}},12536:()=>{},43303:(ne,L,d)=>{"use strict";d.d(L,{f:()=>ee,J:()=>J});var s=d(48399),S=d(70977),h=d(80704),t=d(19717),r=d(85025),c=d(80257),o=d(38546),u=d(73005);function v(x){return x.errors&&x.errors.length>0||!1}var m=d(20283),T=d(83368),R=d(52107),P=d(17334),D=d(42677),A=d.n(D),_=d(62954),I=d(1313);function B(x){return x&&"function"==typeof x.then}var V=function(x){function l(E){var b=x.call(this,function(M){return b.addObserver(M),function(){return b.removeObserver(M)}})||this;return b.observers=new Set,b.addCount=0,b.promise=new Promise(function(M,K){b.resolve=M,b.reject=K}),b.handlers={next:function(M){null!==b.sub&&(b.latest=["next",M],(0,_.p)(b.observers,"next",M))},error:function(M){var K=b.sub;null!==K&&(K&&Promise.resolve().then(function(){return K.unsubscribe()}),b.sub=null,b.latest=["error",M],b.reject(M),(0,_.p)(b.observers,"error",M))},complete:function(){if(null!==b.sub){var M=b.sources.shift();M?B(M)?M.then(function(K){return b.sub=K.subscribe(b.handlers)}):b.sub=M.subscribe(b.handlers):(b.sub=null,b.latest&&"next"===b.latest[0]?b.resolve(b.latest[1]):b.resolve(),(0,_.p)(b.observers,"complete"))}}},b.cancel=function(M){b.reject(M),b.sources=[],b.handlers.complete()},b.promise.catch(function(M){}),"function"==typeof E&&(E=[new(A())(E)]),B(E)?E.then(function(M){return b.start(M)},b.handlers.error):b.start(E),b}return(0,s.ZT)(l,x),l.prototype.start=function(E){void 0===this.sub&&(this.sources=Array.from(E),this.handlers.complete())},l.prototype.deliverLastMessage=function(E){if(this.latest){var b=this.latest[0],M=E[b];M&&M.call(E,this.latest[1]),null===this.sub&&"next"===b&&E.complete&&E.complete()}},l.prototype.addObserver=function(E){this.observers.has(E)||(this.deliverLastMessage(E),this.observers.add(E),++this.addCount)},l.prototype.removeObserver=function(E,b){this.observers.delete(E)&&--this.addCount<1&&!b&&this.handlers.error(new Error("Observable cancelled prematurely"))},l.prototype.cleanup=function(E){var b=this,M=!1,K=function(){M||(M=!0,b.observers.delete(Z),E())},Z={next:K,error:K,complete:K},se=this.addCount;this.addObserver(Z),this.addCount=se},l}(A());function q(x,l,E){return new(A())(function(b){var M=b.next,K=b.error,Z=b.complete,se=0,ae=!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(b,ue),ae&&xe.complete()},function(ue){throw--se,ue}).catch(function(ue){K&&K.call(b,ue)})}:function(F){return H&&H.call(b,F)}}var xe={next:Te(l,M),error:Te(E,K),complete:function(){ae=!0,se||Z&&Z.call(b)}},Oe=x.subscribe(xe);return function(){return Oe.unsubscribe()}})}(0,I.D)(V);var G=d(4549),O=d(40939),w=d(75832),f=d(86729),y=d(2456),p=d(50216),N=d(30534),j=d(71883),W=function(){function x(l){var b=l.client,M=l.resolvers,K=l.fragmentMatcher;this.cache=l.cache,b&&(this.client=b),M&&this.addResolvers(M),K&&this.setFragmentMatcher(K)}return x.prototype.addResolvers=function(l){var E=this;this.resolvers=this.resolvers||{},Array.isArray(l)?l.forEach(function(b){E.resolvers=(0,y.Ee)(E.resolvers,b)}):this.resolvers=(0,y.Ee)(this.resolvers,l)},x.prototype.setResolvers=function(l){this.resolvers={},this.addResolvers(l)},x.prototype.getResolvers=function(){return this.resolvers||{}},x.prototype.runResolvers=function(l){var E=l.document,b=l.remoteResult,M=l.context,K=l.variables,Z=l.onlyRunForcedResolvers,se=void 0!==Z&&Z;return(0,s.mG)(this,void 0,void 0,function(){return(0,s.Jh)(this,function(ae){return E?[2,this.resolveDocument(E,b.data,M,K,this.fragmentMatcher,se).then(function(_e){return(0,s.pi)((0,s.pi)({},b),{data:_e.result})})]:[2,b]})})},x.prototype.setFragmentMatcher=function(l){this.fragmentMatcher=l},x.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},x.prototype.clientQuery=function(l){return(0,P.FS)(["client"],l)&&this.resolvers?l:null},x.prototype.serverQuery=function(l){return(0,R.ob)(l)},x.prototype.prepareContext=function(l){var E=this.cache;return(0,s.pi)((0,s.pi)({},l),{cache:E,getCacheKey:function(b){return E.identify(b)}})},x.prototype.addExportedVariables=function(l,E,b){return void 0===E&&(E={}),void 0===b&&(b={}),(0,s.mG)(this,void 0,void 0,function(){return(0,s.Jh)(this,function(M){return l?[2,this.resolveDocument(l,this.buildRootValueFromCache(l,E)||{},this.prepareContext(b),E).then(function(K){return(0,s.pi)((0,s.pi)({},E),K.exportedVariables)})]:[2,(0,s.pi)({},E)]})})},x.prototype.shouldForceResolvers=function(l){var E=!1;return(0,f.Vn)(l,{Directive:{enter:function(b){if("client"===b.name.value&&b.arguments&&(E=b.arguments.some(function(M){return"always"===M.name.value&&"BooleanValue"===M.value.kind&&!0===M.value.value})))return f.$_}}}),E},x.prototype.buildRootValueFromCache=function(l,E){return this.cache.diff({query:(0,R.aL)(l),variables:E,returnPartialData:!0,optimistic:!1}).result},x.prototype.resolveDocument=function(l,E,b,M,K,Z){return void 0===b&&(b={}),void 0===M&&(M={}),void 0===K&&(K=function(){return!0}),void 0===Z&&(Z=!1),(0,s.mG)(this,void 0,void 0,function(){var se,ae,_e,Te,xe,Oe,Re,H,F;return(0,s.Jh)(this,function(U){return se=(0,T.p$)(l),ae=(0,T.kU)(l),_e=(0,p.F)(ae),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)({},b),{cache:Re,client:H}),variables:M,fragmentMatcher:K,defaultOperationType:xe,exportedVariables:{},onlyRunForcedResolvers:Z},[2,this.resolveSelectionSet(se.selectionSet,E,F).then(function(ue){return{result:ue,exportedVariables:F.exportedVariables}})]})})},x.prototype.resolveSelectionSet=function(l,E,b){return(0,s.mG)(this,void 0,void 0,function(){var M,K,Z,se,_e=this;return(0,s.Jh)(this,function(Te){return M=b.fragmentMap,K=b.context,Z=b.variables,se=[E],[2,Promise.all(l.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,E,b).then(function(F){var U;void 0!==F&&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&&b.fragmentMatcher(E,Oe.typeCondition.name.value,K)?[2,this.resolveSelectionSet(Oe.selectionSet,E,b).then(function(F){se.push(F)})]:[2]):[2]})})})).then(function(){return(0,y.bw)(se)})]})})},x.prototype.resolveField=function(l,E,b){return(0,s.mG)(this,void 0,void 0,function(){var M,K,Z,se,ae,_e,Te,xe,Oe,Re=this;return(0,s.Jh)(this,function(H){return M=b.variables,K=l.name.value,Z=(0,N.u2)(l),se=K!==Z,ae=E[Z]||E[K],_e=Promise.resolve(ae),(!b.onlyRunForcedResolvers||this.shouldForceResolvers(l))&&(Te=E.__typename||b.defaultOperationType,(xe=this.resolvers&&this.resolvers[Te])&&(Oe=xe[se?K:Z])&&(_e=Promise.resolve(j.ab.withValue(this.cache,Oe,[E,(0,N.NC)(l,M),b.context,{field:l,fragmentMap:b.fragmentMap}])))),[2,_e.then(function(F){return void 0===F&&(F=ae),l.directives&&l.directives.forEach(function(U){"export"===U.name.value&&U.arguments&&U.arguments.forEach(function(ue){"as"===ue.name.value&&"StringValue"===ue.value.kind&&(b.exportedVariables[ue.value.value]=F)})}),l.selectionSet&&null!=F?Array.isArray(F)?Re.resolveSubSelectedArray(l,F,b):l.selectionSet?Re.resolveSelectionSet(l.selectionSet,F,b):void 0:F})]})})},x.prototype.resolveSubSelectedArray=function(l,E,b){var M=this;return Promise.all(E.map(function(K){return null===K?null:Array.isArray(K)?M.resolveSubSelectedArray(l,K,b):l.selectionSet?M.resolveSelectionSet(l.selectionSet,K,b):void 0}))},x}(),$=new(u.m?WeakMap:Map);function oe(x,l){var E=x[l];"function"==typeof E&&(x[l]=function(){return $.set(x,($.get(x)+1)%1e15),E.apply(this,arguments)})}function me(x){x.notifyTimeout&&(clearTimeout(x.notifyTimeout),x.notifyTimeout=void 0)}var X=function(){function x(l){this.cache=l,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(l)||($.set(l,0),oe(l,"evict"),oe(l,"modify"),oe(l,"reset"))}return x.prototype.init=function(l){var E=l.networkStatus||w.I.loading;return this.variables&&this.networkStatus!==w.I.loading&&!(0,o.D)(this.variables,l.variables)&&(E=w.I.setVariables),(0,o.D)(l.variables,this.variables)||(this.diff=null),Object.assign(this,{document:l.document,variables:l.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:E}),l.observableQuery&&this.setObservableQuery(l.observableQuery),l.lastRequestId&&(this.lastRequestId=l.lastRequestId),this},x.prototype.reset=function(){me(this),this.diff=null,this.dirty=!1},x.prototype.getDiff=function(l){return void 0===l&&(l=this.variables),this.diff&&(0,o.D)(l,this.variables)?this.diff:(this.updateWatch(this.variables=l),this.diff=this.cache.diff({query:this.document,variables:l,returnPartialData:!0,optimistic:!0}))},x.prototype.setDiff=function(l){var E=this,b=this.diff;this.diff=l,!this.dirty&&(l&&l.result)!==(b&&b.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return E.notify()},0)))},x.prototype.setObservableQuery=function(l){var E=this;l!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=l,l?(l.queryInfo=this,this.listeners.add(this.oqListener=function(){E.getDiff().fromOptimisticTransaction?l.observe():l.reobserve()})):delete this.oqListener)},x.prototype.notify=function(){var l=this;me(this),this.shouldNotify()&&this.listeners.forEach(function(E){return E(l)}),this.dirty=!1},x.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,w.O)(this.networkStatus)&&this.observableQuery){var l=this.observableQuery.options.fetchPolicy;if("cache-only"!==l&&"cache-and-network"!==l)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(E){return E.unsubscribe()});var l=this.observableQuery;l&&l.stopPolling()}},x.prototype.cancel=function(){},x.prototype.updateWatch=function(l){var E=this;void 0===l&&(l=this.variables);var b=this.observableQuery;b&&"no-cache"===b.options.fetchPolicy||(!this.lastWatch||this.lastWatch.query!==this.document||!(0,o.D)(l,this.lastWatch.variables))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:l,optimistic:!0,callback:function(M){return E.setDiff(M)}}))},x.prototype.shouldWrite=function(l,E){var b=this.lastWrite;return!(b&&b.dmCount===$.get(this.cache)&&(0,o.D)(E,b.variables)&&(0,o.D)(l.data,b.result.data))},x.prototype.markResult=function(l,E,b){var M=this;this.graphQLErrors=(0,m.O)(l.errors)?l.errors:[],this.reset(),"no-cache"===E.fetchPolicy?this.diff={result:l.data,complete:!0}:!this.stopped&&b&&(fe(l,E.errorPolicy)?this.cache.performTransaction(function(K){if(M.shouldWrite(l,E.variables))K.writeQuery({query:M.document,data:l.data,variables:E.variables}),M.lastWrite={result:l,variables:E.variables,dmCount:$.get(M.cache)};else if(M.diff&&M.diff.complete)return void(l.data=M.diff.result);var Z=K.diff({query:M.document,variables:E.variables,returnPartialData:!0,optimistic:!0});M.stopped||M.updateWatch(E.variables),M.diff=Z,Z.complete&&(l.data=Z.result)}):this.lastWrite=void 0)},x.prototype.markReady=function(){return this.networkError=null,this.networkStatus=w.I.ready},x.prototype.markError=function(l){return this.networkStatus=w.I.error,this.lastWrite=void 0,this.reset(),l.graphQLErrors&&(this.graphQLErrors=l.graphQLErrors),l.networkError&&(this.networkError=l.networkError),l},x}();function fe(x,l){void 0===l&&(l="none");var E="ignore"===l||"all"===l,b=!v(x);return!b&&E&&x.data&&(b=!0),b}var ie=Object.prototype.hasOwnProperty,Q=function(){function x(l){var E=l.cache,b=l.link,M=l.queryDeduplication,K=void 0!==M&&M,Z=l.onBroadcast,se=l.ssrMode,ae=void 0!==se&&se,_e=l.clientAwareness,Te=void 0===_e?{}:_e,xe=l.localState,Oe=l.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=E,this.link=b,this.queryDeduplication=K,this.clientAwareness=Te,this.localState=xe||new W({cache:E}),this.ssrMode=ae,this.assumeImmutableResults=!!Oe,(this.onBroadcast=Z)&&(this.mutationStore=Object.create(null))}return x.prototype.stop=function(){var l=this;this.queries.forEach(function(E,b){l.stopQueryNoBroadcast(b)}),this.cancelPendingFetches(new S.ej(12))},x.prototype.cancelPendingFetches=function(l){this.fetchCancelFns.forEach(function(E){return E(l)}),this.fetchCancelFns.clear()},x.prototype.mutate=function(l){var E=l.mutation,b=l.variables,M=l.optimisticResponse,K=l.updateQueries,Z=l.refetchQueries,se=void 0===Z?[]:Z,ae=l.awaitRefetchQueries,_e=void 0!==ae&&ae,Te=l.update,xe=l.errorPolicy,Oe=void 0===xe?"none":xe,Re=l.fetchPolicy,H=l.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)(E,13),(0,S.kG)(!Re||"no-cache"===Re,14),U=this.generateMutationId(),E=this.transform(E).document,b=this.getVariables(E,b),this.transform(E).hasClientExports?[4,this.localState.addExportedVariables(E,b,F)]:[3,2];case 1:b=Ce.sent(),Ce.label=2;case 2:return ue=this.mutationStore&&(this.mutationStore[U]={mutation:E,variables:b,loading:!0,error:null}),M&&this.markMutationOptimistic(M,{mutationId:U,document:E,variables:b,errorPolicy:Oe,updateQueries:K,update:Te}),this.broadcastQueries(),ye=this,[2,new Promise(function(z,he){var ve,Se;ye.getObservableFromLink(E,(0,s.pi)((0,s.pi)({},F),{optimisticResponse:M}),b,!1).subscribe({next:function(Ie){if(v(Ie)&&"none"===Oe)Se=new G.c({graphQLErrors:Ie.errors});else{if(ue&&(ue.loading=!1,ue.error=null),"no-cache"!==Re)try{ye.markMutationResult({mutationId:U,result:Ie,document:E,variables:b,errorPolicy:Oe,updateQueries:K,update:Te})}catch(Me){return void(Se=new G.c({networkError:Me}))}ve=Ie}},error:function(Ie){ue&&(ue.loading=!1,ue.error=Ie),M&&ye.cache.removeOptimistic(U),ye.broadcastQueries(),he(new G.c({networkError:Ie}))},complete:function(){if(Se&&ue&&(ue.loading=!1,ue.error=Se),M&&ye.cache.removeOptimistic(U),ye.broadcastQueries(),Se)he(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)},he)}}})})]}})})},x.prototype.markMutationResult=function(l,E){var b=this;if(void 0===E&&(E=this.cache),fe(l.result,l.errorPolicy)){var M=[{result:l.result.data,dataId:"ROOT_MUTATION",query:l.document,variables:l.variables}],K=l.updateQueries;K&&this.queries.forEach(function(Z,se){var ae=Z.observableQuery,_e=ae&&ae.queryName;if(_e&&ie.call(K,_e)){var Te=K[_e],xe=b.queries.get(se),Oe=xe.document,Re=xe.variables,H=E.diff({query:Oe,variables:Re,returnPartialData:!0,optimistic:!1}),F=H.result;if(H.complete&&F){var ue=Te(F,{mutationResult:l.result,queryName:Oe&&(0,T.rY)(Oe)||void 0,queryVariables:Re});ue&&M.push({result:ue,dataId:"ROOT_QUERY",query:Oe,variables:Re})}}}),E.performTransaction(function(Z){M.forEach(function(ae){return Z.write(ae)});var se=l.update;se&&se(Z,l.result)},null)}},x.prototype.markMutationOptimistic=function(l,E){var b=this,M="function"==typeof l?l(E.variables):l;return this.cache.recordOptimisticTransaction(function(K){try{b.markMutationResult((0,s.pi)((0,s.pi)({},E),{result:{data:M}}),K)}catch(Z){}},E.mutationId)},x.prototype.fetchQuery=function(l,E,b){return this.fetchQueryObservable(l,E,b).promise},x.prototype.getQueryStore=function(){var l=Object.create(null);return this.queries.forEach(function(E,b){l[b]={variables:E.variables,networkStatus:E.networkStatus,networkError:E.networkError,graphQLErrors:E.graphQLErrors}}),l},x.prototype.resetErrors=function(l){var E=this.queries.get(l);E&&(E.networkError=void 0,E.graphQLErrors=[])},x.prototype.transform=function(l){var E=this.transformCache;if(!E.has(l)){var b=this.cache.transformDocument(l),M=(0,R.Fo)(this.cache.transformForLink(b)),K=this.localState.clientQuery(b),Z=M&&this.localState.serverQuery(M),se={document:b,hasClientExports:(0,P.mj)(b),hasForcedResolvers:this.localState.shouldForceResolvers(b),clientQuery:K,serverQuery:Z,defaultVars:(0,T.O4)((0,T.$H)(b))},ae=function(_e){_e&&!E.has(_e)&&E.set(_e,se)};ae(l),ae(b),ae(K),ae(Z)}return E.get(l)},x.prototype.getVariables=function(l,E){return(0,s.pi)((0,s.pi)({},this.transform(l).defaultVars),E)},x.prototype.watchQuery=function(l){void 0===(l=(0,s.pi)((0,s.pi)({},l),{variables:this.getVariables(l.query,l.variables)})).notifyOnNetworkStatusChange&&(l.notifyOnNetworkStatusChange=!1);var E=new X(this.cache),b=new O.u({queryManager:this,queryInfo:E,options:l});return this.queries.set(b.queryId,E),E.init({document:l.query,observableQuery:b,variables:l.variables}),b},x.prototype.query=function(l){var E=this;(0,S.kG)(l.query,15),(0,S.kG)("Document"===l.query.kind,16),(0,S.kG)(!l.returnPartialData,17),(0,S.kG)(!l.pollInterval,18);var b=this.generateQueryId();return this.fetchQuery(b,l).finally(function(){return E.stopQuery(b)})},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(l){this.stopQueryInStoreNoBroadcast(l),this.broadcastQueries()},x.prototype.stopQueryInStoreNoBroadcast=function(l){var E=this.queries.get(l);E&&E.stop()},x.prototype.clearStore=function(){return this.cancelPendingFetches(new S.ej(19)),this.queries.forEach(function(l){l.observableQuery?l.networkStatus=w.I.loading:l.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},x.prototype.resetStore=function(){var l=this;return this.clearStore().then(function(){return l.reFetchObservableQueries()})},x.prototype.reFetchObservableQueries=function(l){var E=this;void 0===l&&(l=!1);var b=[];return this.queries.forEach(function(M,K){var Z=M.observableQuery;if(Z&&Z.hasObservers()){var se=Z.options.fetchPolicy;Z.resetLastResults(),"cache-only"!==se&&(l||"standby"!==se)&&b.push(Z.refetch()),E.getQuery(K).setDiff(null)}}),this.broadcastQueries(),Promise.all(b)},x.prototype.setObservableQuery=function(l){this.getQuery(l.queryId).setObservableQuery(l)},x.prototype.startGraphQLSubscription=function(l){var E=this,b=l.query,M=l.fetchPolicy,K=l.errorPolicy,Z=l.variables,se=l.context,ae=void 0===se?{}:se;b=this.transform(b).document,Z=this.getVariables(b,Z);var _e=function(xe){return E.getObservableFromLink(b,ae,xe,!1).map(function(Oe){if("no-cache"!==M&&(fe(Oe,K)&&E.cache.write({query:b,result:Oe.data,dataId:"ROOT_SUBSCRIPTION",variables:xe}),E.broadcastQueries()),v(Oe))throw new G.c({graphQLErrors:Oe.errors});return Oe})};if(this.transform(b).hasClientExports){var Te=this.localState.addExportedVariables(b,Z,ae).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(l){this.stopQueryNoBroadcast(l),this.broadcastQueries()},x.prototype.stopQueryNoBroadcast=function(l){this.stopQueryInStoreNoBroadcast(l),this.removeQuery(l)},x.prototype.removeQuery=function(l){this.fetchCancelFns.delete(l),this.getQuery(l).stop(),this.queries.delete(l)},x.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(l){return l.notify()})},x.prototype.getLocalState=function(){return this.localState},x.prototype.getObservableFromLink=function(l,E,b,M){var Z,K=this;void 0===M&&(M=null!==(Z=null==E?void 0:E.queryDeduplication)&&void 0!==Z?Z:this.queryDeduplication);var se,ae=this.transform(l).serverQuery;if(ae){var Te=this.inFlightLinkObservables,xe=this.link,Oe={query:ae,variables:b,operationName:(0,T.rY)(ae)||void 0,context:this.prepareContext((0,s.pi)((0,s.pi)({},E),{forceFetch:!M}))};if(E=Oe.context,M){var Re=Te.get(ae)||new Map;Te.set(ae,Re);var H=JSON.stringify(b);if(!(se=Re.get(H))){var F=new V([(0,t.h)(xe,Oe)]);Re.set(H,se=F),F.cleanup(function(){Re.delete(H)&&Re.size<1&&Te.delete(ae)})}}else se=new V([(0,t.h)(xe,Oe)])}else se=new V([A().of({data:{}})]),E=this.prepareContext(E);var U=this.transform(l).clientQuery;return U&&(se=q(se,function(ue){return K.localState.runResolvers({document:U,remoteResult:ue,context:E,variables:b})})),se},x.prototype.getResultsFromLink=function(l,E,b){var M=l.lastRequestId=this.generateRequestId();return q(this.getObservableFromLink(l.document,b.context,b.variables),function(K){var Z=(0,m.O)(K.errors);if(M>=l.lastRequestId){if(Z&&"none"===b.errorPolicy)throw l.markError(new G.c({graphQLErrors:K.errors}));l.markResult(K,b,E),l.markReady()}var se={data:K.data,loading:!1,networkStatus:l.networkStatus||w.I.ready};return Z&&"ignore"!==b.errorPolicy&&(se.errors=K.errors),se},function(K){var Z=(0,G.M)(K)?K:new G.c({networkError:K});throw M>=l.lastRequestId&&l.markError(Z),Z})},x.prototype.fetchQueryObservable=function(l,E,b){var M=this;void 0===b&&(b=w.I.loading);var K=this.transform(E.query).document,Z=this.getVariables(K,E.variables),se=this.getQuery(l),ae=se.networkStatus,_e=E.fetchPolicy,Te=void 0===_e?"cache-first":_e,xe=E.errorPolicy,Oe=void 0===xe?"none":xe,Re=E.returnPartialData,H=void 0!==Re&&Re,F=E.notifyOnNetworkStatusChange,U=void 0!==F&&F,ue=E.context,ye=void 0===ue?{}:ue;("cache-first"===Te||"cache-and-network"===Te||"network-only"===Te||"no-cache"===Te)&&U&&"number"==typeof ae&&ae!==b&&(0,w.O)(b)&&("cache-first"!==Te&&(Te="cache-and-network"),H=!0);var z=Object.assign({},E,{query:K,variables:Z,fetchPolicy:Te,errorPolicy:Oe,returnPartialData:H,notifyOnNetworkStatusChange:U,context:ye}),he=function(Se){return z.variables=Se,M.fetchQueryByPolicy(se,z,b)};this.fetchCancelFns.set(l,function(Se){Promise.resolve().then(function(){return ve.cancel(Se)})});var ve=new V(this.transform(z.query).hasClientExports?this.localState.addExportedVariables(z.query,z.variables,z.context).then(he):he(z.variables));return ve.cleanup(function(){M.fetchCancelFns.delete(l);var Se=E.nextFetchPolicy;Se&&(E.nextFetchPolicy=void 0,E.fetchPolicy="function"==typeof Se?Se.call(E,E.fetchPolicy||"cache-first"):Se)}),ve},x.prototype.fetchQueryByPolicy=function(l,E,b){var M=this,K=E.query,Z=E.variables,se=E.fetchPolicy,ae=E.errorPolicy,_e=E.returnPartialData,Te=E.context;l.init({document:K,variables:Z,networkStatus:b});var xe=function(){return l.getDiff(Z)},Oe=function(F,U){void 0===U&&(U=l.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(K).hasForcedResolvers?M.localState.runResolvers({document:K,remoteResult:{data:ue},context:Te,variables:Z,onlyRunForcedResolvers:!0}).then(function(Ce){return ye(Ce.data)}):ye(ue)},Re=function(F){return M.getResultsFromLink(l,F,{variables:Z,context:Te,fetchPolicy:se,errorPolicy:ae})};switch(se){default:case"cache-first":return(H=xe()).complete?[Oe(H,l.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(),l.markReady())];case"network-only":return[Re(!0)];case"no-cache":return[Re(!1)];case"standby":return[]}},x.prototype.getQuery=function(l){return l&&!this.queries.has(l)&&this.queries.set(l,new X(this.cache)),this.queries.get(l)},x.prototype.prepareContext=function(l){void 0===l&&(l={});var E=this.localState.prepareContext(l);return(0,s.pi)((0,s.pi)({},E),{clientAwareness:this.clientAwareness})},x}();function J(x,l){return(0,r.o)(x,l,l.variables&&{variables:(0,s.pi)((0,s.pi)({},x.variables),l.variables)})}var ee=function(){function x(l){var E=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var b=l.uri,Z=l.cache,se=l.ssrMode,ae=void 0!==se&&se,_e=l.ssrForceFetchDelay,Te=void 0===_e?0:_e,xe=l.connectToDevTools,Oe=void 0===xe?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:xe,Re=l.queryDeduplication,H=void 0===Re||Re,F=l.defaultOptions,U=l.assumeImmutableResults,ue=void 0!==U&&U,ye=l.resolvers,Ce=l.typeDefs,z=l.fragmentMatcher,he=l.name,ve=l.version,Se=l.link;if(Se||(Se=b?new c.u({uri:b,credentials:l.credentials,headers:l.headers}):h.i.empty()),!Z)throw new S.ej(9);this.link=Se,this.cache=Z,this.disableNetworkFetches=ae||Te>0,this.queryDeduplication=H,this.defaultOptions=F||{},this.typeDefs=Ce,Te&&setTimeout(function(){return E.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 W({cache:Z,client:this,resolvers:ye,fragmentMatcher:z}),this.queryManager=new Q({cache:this.cache,link:this.link,queryDeduplication:H,ssrMode:ae,clientAwareness:{name:he,version:ve},localState:this.localState,assumeImmutableResults:ue,onBroadcast:Oe?function(){E.devToolsHookCb&&E.devToolsHookCb({action:{},state:{queries:E.queryManager.getQueryStore(),mutations:E.queryManager.mutationStore||{}},dataWithOptimisticResults:E.cache.extract(!0)})}:void 0})}return x.prototype.stop=function(){this.queryManager.stop()},x.prototype.watchQuery=function(l){return this.defaultOptions.watchQuery&&(l=J(this.defaultOptions.watchQuery,l)),this.disableNetworkFetches&&("network-only"===l.fetchPolicy||"cache-and-network"===l.fetchPolicy)&&(l=(0,s.pi)((0,s.pi)({},l),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(l)},x.prototype.query=function(l){return this.defaultOptions.query&&(l=J(this.defaultOptions.query,l)),(0,S.kG)("cache-and-network"!==l.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===l.fetchPolicy&&(l=(0,s.pi)((0,s.pi)({},l),{fetchPolicy:"cache-first"})),this.queryManager.query(l)},x.prototype.mutate=function(l){return this.defaultOptions.mutate&&(l=J(this.defaultOptions.mutate,l)),this.queryManager.mutate(l)},x.prototype.subscribe=function(l){return this.queryManager.startGraphQLSubscription(l)},x.prototype.readQuery=function(l,E){return void 0===E&&(E=!1),this.cache.readQuery(l,E)},x.prototype.readFragment=function(l,E){return void 0===E&&(E=!1),this.cache.readFragment(l,E)},x.prototype.writeQuery=function(l){this.cache.writeQuery(l),this.queryManager.broadcastQueries()},x.prototype.writeFragment=function(l){this.cache.writeFragment(l),this.queryManager.broadcastQueries()},x.prototype.__actionHookForDevTools=function(l){this.devToolsHookCb=l},x.prototype.__requestRaw=function(l){return(0,t.h)(this.link,l)},x.prototype.resetStore=function(){var l=this;return Promise.resolve().then(function(){return l.queryManager.clearStore()}).then(function(){return Promise.all(l.resetStoreCallbacks.map(function(E){return E()}))}).then(function(){return l.reFetchObservableQueries()})},x.prototype.clearStore=function(){var l=this;return Promise.resolve().then(function(){return l.queryManager.clearStore()}).then(function(){return Promise.all(l.clearStoreCallbacks.map(function(E){return E()}))})},x.prototype.onResetStore=function(l){var E=this;return this.resetStoreCallbacks.push(l),function(){E.resetStoreCallbacks=E.resetStoreCallbacks.filter(function(b){return b!==l})}},x.prototype.onClearStore=function(l){var E=this;return this.clearStoreCallbacks.push(l),function(){E.clearStoreCallbacks=E.clearStoreCallbacks.filter(function(b){return b!==l})}},x.prototype.reFetchObservableQueries=function(l){return this.queryManager.reFetchObservableQueries(l)},x.prototype.extract=function(l){return this.cache.extract(l)},x.prototype.restore=function(l){return this.cache.restore(l)},x.prototype.addResolvers=function(l){this.localState.addResolvers(l)},x.prototype.setResolvers=function(l){this.localState.setResolvers(l)},x.prototype.getResolvers=function(){return this.localState.getResolvers()},x.prototype.setLocalStateFragmentMatcher=function(l){this.localState.setFragmentMatcher(l)},x.prototype.setLink=function(l){this.link=this.queryManager.link=l},x}()},40939:(ne,L,d)=>{"use strict";d.d(L,{u:()=>_});var s=d(48399),S=d(70977),h=d(38546),t=d(75832),r=Object.prototype.toString;function n(B){return c(B)}function c(B,V){switch(r.call(B)){case"[object Array]":if((V=V||new Map).has(B))return V.get(B);var q=B.slice(0);return V.set(B,q),q.forEach(function(O,w){q[w]=c(O,V)}),q;case"[object Object]":if((V=V||new Map).has(B))return V.get(B);var G=Object.create(Object.getPrototypeOf(B));return V.set(B,G),Object.keys(B).forEach(function(O){G[O]=c(B[O],V)}),G;default:return B}}var o=d(62954),u=d(83368),v=d(20283),m=d(42677),T=d.n(m),R=d(1313),P=d(85025),D=function(){function B(V,q,G,O){this.observer=V,this.options=q,this.fetch=G,this.shouldFetch=O}return B.prototype.reobserve=function(V,q){V?this.updateOptions(V):this.updatePolling();var G=this.fetch(this.options,q);return this.concast&&this.concast.removeObserver(this.observer,!0),G.addObserver(this.observer),(this.concast=G).promise},B.prototype.updateOptions=function(V){return Object.assign(this.options,(0,P.o)(V)),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 V=this,G=this.pollingInfo,O=this.options.pollInterval;if(O){if((!G||G.interval!==O)&&((0,S.kG)(O,20),!1!==this.shouldFetch)){(G||(this.pollingInfo={})).interval=O;var f=function(){V.pollingInfo&&(V.shouldFetch&&V.shouldFetch()?V.reobserve({fetchPolicy:"network-only",nextFetchPolicy:V.options.fetchPolicy||"cache-first"},t.I.poll).then(y,y):y())},y=function(){var p=V.pollingInfo;p&&(clearTimeout(p.timeout),p.timeout=setTimeout(f,p.interval))};y()}}else G&&(clearTimeout(G.timeout),delete this.pollingInfo)},B}(),_=function(B){function V(q){var G=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=G.generateQueryId();var y=(0,u.$H)(w.query);return f.queryName=y&&y.name&&y.name.value,f.queryManager=G,f.queryInfo=O,f}return(0,s.ZT)(V,B),Object.defineProperty(V.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),V.prototype.result=function(){var q=this;return new Promise(function(G,O){var w={next:function(y){G(y),q.observers.delete(w),q.observers.size||q.queryManager.removeQuery(q.queryId),setTimeout(function(){f.unsubscribe()},0)},error:O},f=q.subscribe(w)})},V.prototype.getCurrentResult=function(q){void 0===q&&(q=!0);var G=this.lastResult,O=this.queryInfo.networkStatus||G&&G.networkStatus||t.I.ready,w=(0,s.pi)((0,s.pi)({},G),{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},V.prototype.isDifferentFromLastResult=function(q){return!(0,h.D)(this.lastResultSnapshot,q)},V.prototype.getLastResult=function(){return this.lastResult},V.prototype.getLastError=function(){return this.lastError},V.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},V.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},V.prototype.refetch=function(q){var G={pollInterval:0},O=this.options.fetchPolicy;return"no-cache"!==O&&"cache-and-network"!==O&&(G.fetchPolicy="network-only",G.nextFetchPolicy=O||"cache-first"),q&&!(0,h.D)(this.options.variables,q)&&(G.variables=this.options.variables=(0,s.pi)((0,s.pi)({},this.options.variables),q)),this.newReobserver(!1).reobserve(G,t.I.refetch)},V.prototype.fetchMore=function(q){var G=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?G.updateQuery(function(N){return p(N,{fetchMoreResult:y,variables:O.variables})}):G.queryManager.cache.writeQuery({query:O.query,variables:O.variables,data:y}),f}).finally(function(){G.queryManager.stopQuery(w),G.reobserve()})},V.prototype.subscribeToMore=function(q){var G=this,O=this.queryManager.startGraphQLSubscription({query:q.document,variables:q.variables,context:q.context}).subscribe({next:function(w){var f=q.updateQuery;f&&G.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(){G.subscriptions.delete(O)&&O.unsubscribe()}},V.prototype.setOptions=function(q){return this.reobserve(q)},V.prototype.setVariables=function(q){if((0,h.D)(this.variables,q))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=q,!this.observers.size)return Promise.resolve();var G=this.options.fetchPolicy,O=void 0===G?"cache-first":G,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)},V.prototype.updateQuery=function(q){var G,O=this.queryManager,f=q(O.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(G=this.lastResult)||void 0===G?void 0:G.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});f&&(O.cache.writeQuery({query:this.options.query,data:f,variables:this.variables}),O.broadcastQueries())},V.prototype.startPolling=function(q){this.getReobserver().updateOptions({pollInterval:q})},V.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},V.prototype.updateLastResult=function(q){var G=this.lastResult;return this.lastResult=q,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?q:n(q),(0,v.O)(q.errors)||delete this.lastError,G},V.prototype.onSubscribe=function(q){var G=this;if(q===this.observer)return function(){};try{var O=q._subscription._observer;O&&!O.error&&(O.error=I)}catch(f){}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(){G.observers.delete(q)&&!G.observers.size&&G.tearDownQuery()}},V.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},V.prototype.newReobserver=function(q){var G=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(G),w.fetchQueryObservable(f,y,p)},!w.ssrMode&&function(){return!(0,t.O)(G.queryInfo.networkStatus)})},V.prototype.reobserve=function(q,G){return this.isTornDown=!1,this.getReobserver().reobserve(q,G)},V.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},V.prototype.hasObservers=function(){return this.observers.size>0},V.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.subscriptions.forEach(function(q){return q.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},V}(T());function I(B){}(0,R.D)(_)},52247:(ne,L,d)=>{"use strict";d.r(L),d.d(L,{ApolloClient:()=>s.f,mergeOptions:()=>s.J,ObservableQuery:()=>S.u,NetworkStatus:()=>h.I,isApolloError:()=>c.M,ApolloError:()=>c.c,Cache:()=>o.C,ApolloCache:()=>u.R,InMemoryCache:()=>v.h,MissingFieldError:()=>m.y,defaultDataIdFromObject:()=>T.u,makeVar:()=>R.QS,HttpLink:()=>_.uG,checkFetcher:()=>_.U2,createHttpLink:()=>_.LQ,createSignalIfSupported:()=>_.$g,fallbackHttpConfig:()=>_.SC,parseAndCheckHttpResponse:()=>_.dO,rewriteURIForGET:()=>_.Hg,selectHttpOptionsAndBody:()=>_.E4,selectURI:()=>_.rg,serializeFetchParameter:()=>_.gE,fromError:()=>I.Q,toPromise:()=>B.V,fromPromise:()=>V.p,throwServerError:()=>q.P,Observable:()=>O.a,isReference:()=>w.Yk,makeReference:()=>w.kQ,setLogVerbosity:()=>f.U6,gql:()=>y.ZP,resetCaches:()=>y.HW,disableFragmentWarnings:()=>y._t,enableExperimentalFragmentVariables:()=>y.wO,disableExperimentalFragmentVariables:()=>y.J9});var s=d(43303),S=d(40939),h=d(75832),t=d(11844),n={};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&&(n[p]=()=>t[p]);d.d(L,n);var c=d(4549),o=d(43015),u=d(17629),v=d(41695),m=d(73860),T=d(37691),R=d(71883),P=d(12536);n={};for(const p in P)["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&&(n[p]=()=>P[p]);d.d(L,n);var A=d(96436);n={};for(const p in A)["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&&(n[p]=()=>A[p]);d.d(L,n);var _=d(87449),I=d(11055),B=d(10893),V=d(87768),q=d(9360),G=d(42677),O=d.n(G),w=d(30534),f=d(70977),y=d(92886);(0,f.U6)("log")},75832:(ne,L,d)=>{"use strict";d.d(L,{I:()=>s,O:()=>S});var s=(()=>{return(h=s||(s={}))[h.loading=1]="loading",h[h.setVariables=2]="setVariables",h[h.fetchMore=3]="fetchMore",h[h.refetch=4]="refetch",h[h.poll=6]="poll",h[h.ready=7]="ready",h[h.error=8]="error",s;var h})();function S(h){return!!h&&h<7}},11844:()=>{},4549:(ne,L,d)=>{"use strict";d.d(L,{M:()=>h,c:()=>r});var s=d(48399),S=d(20283);function h(n){return n.hasOwnProperty("graphQLErrors")}var r=function(n){function c(o){var u=o.graphQLErrors,v=o.networkError,m=o.errorMessage,T=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=T,R.__proto__=c.prototype,R}return(0,s.ZT)(c,n),c}(Error)},43821:(ne,L,d)=>{"use strict";d.r(L);var s=d(52247),S={};for(const t in s)"default"!==t&&(S[t]=()=>s[t]);d.d(L,S);var h=d(11076);S={};for(const t in h)["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&&(S[t]=()=>h[t]);d.d(L,S)},42753:(ne,L,d)=>{"use strict";d.r(L),d.d(L,{setContext:()=>r});var s=d(48399),S=d(80704),h=d(42677),t=d.n(h);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(T){return n(T,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()}})})}},80704:(ne,L,d)=>{"use strict";d.d(L,{i:()=>R});var P,s=d(48399),S=d(70977),h=d(42677),t=d.n(h),n=d(83368);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(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(V){return D(V)?I.request(V)||t().of():B.request(V)||t().of()}):new P(function(V,q){return D(V)?I.request(V,q)||t().of():B.request(V,q)||t().of()})},P.execute=function(D,A){return D.request(function(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(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(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(V){return I.request(V)||t().of()})||t().of()}):new P(function(B,V){return _.request(B,function(q){return I.request(q,V)||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}()},9838:(ne,L,d)=>{"use strict";d.d(L,{z:()=>S});var S=d(80704).i.concat},48876:(ne,L,d)=>{"use strict";d.d(L,{c:()=>S});var S=d(80704).i.empty},19717:(ne,L,d)=>{"use strict";d.d(L,{h:()=>S});var S=d(80704).i.execute},41129:(ne,L,d)=>{"use strict";d.d(L,{D:()=>S});var S=d(80704).i.from},96436:(ne,L,d)=>{"use strict";d.r(L),d.d(L,{empty:()=>s.c,from:()=>S.D,split:()=>h.V,concat:()=>t.z,execute:()=>r.h,ApolloLink:()=>n.i});var s=d(48876),S=d(41129),h=d(5650),t=d(9838),r=d(19717),n=d(80704),c=d(43737),u={};for(const v in c)["default","empty","from","split","concat","execute","ApolloLink"].indexOf(v)<0&&(u[v]=()=>c[v]);d.d(L,u)},5650:(ne,L,d)=>{"use strict";d.d(L,{V:()=>S});var S=d(80704).i.split},43737:()=>{},80257:(ne,L,d)=>{"use strict";d.d(L,{u:()=>t});var s=d(48399),S=d(80704),h=d(32352),t=function(r){function n(c){void 0===c&&(c={});var o=r.call(this,(0,h.L)(c).request)||this;return o.options=c,o}return(0,s.ZT)(n,r),n}(S.i)},98228:(ne,L,d)=>{"use strict";d.d(L,{U:()=>S});var s=d(70977),S=function(h){if(!h&&"undefined"==typeof fetch)throw new s.ej(22)}},32352:(ne,L,d)=>{"use strict";d.d(L,{L:()=>P});var s=d(48399),S=d(86729),h=d(80704),t=d(42677),r=d.n(t),n=d(5838),c=d(33585),o=d(66465),u=d(98228),v=d(57957),m=d(13604),T=d(67776),R=d(11055),P=function(D){void 0===D&&(D={});var A=D.uri,_=void 0===A?"/graphql":A,I=D.fetch,B=D.includeExtensions,V=D.useGETForQueries,q=D.includeUnusedVariables,G=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 h.i(function(f){var y=(0,c.r)(f,_),p=f.getContext(),N={};if(p.clientAwareness){var j=p.clientAwareness,W=j.name,$=j.version;W&&(N["apollographql-client-name"]=W),$&&(N["apollographql-client-version"]=$)}var re,oe=(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:oe}),fe=X.options,ie=X.body;if(ie.variables&&!G){var Q=new Set(Object.keys(ie.variables));(0,S.Vn)(f.query,{Variable:function(K,Z,se){se&&"VariableDefinition"!==se.kind&&Q.delete(K.name.value)}}),Q.size&&(ie.variables=(0,s.pi)({},ie.variables),Q.forEach(function(K){delete ie.variables[K]}))}if(!fe.signal){var J=(0,m.$)();(re=J.controller)&&(fe.signal=J.signal)}if(V&&!f.query.definitions.some(function(K){return"OperationDefinition"===K.kind&&"mutation"===K.operation})&&(fe.method="GET"),"GET"===fe.method){var E=(0,T.H)(y,ie),b=E.newURI,M=E.parseError;if(M)return(0,R.Q)(M);y=b}else try{fe.body=(0,n.g)(ie,"Payload")}catch(K){return(0,R.Q)(K)}return new(r())(function(K){return I(y,fe).then(function(Z){return f.setContext({response:Z}),Z}).then((0,o.d)(f)).then(function(Z){return K.next(Z),K.complete(),Z}).catch(function(Z){"AbortError"!==Z.name&&(Z.result&&Z.result.errors&&Z.result.data&&K.next(Z.result),K.error(Z))}),function(){re&&re.abort()}})})}},13604:(ne,L,d)=>{"use strict";d.d(L,{$:()=>s});var s=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var S=new AbortController;return{controller:S,signal:S.signal}}},87449:(ne,L,d)=>{"use strict";d.d(L,{dO:()=>s.d,gE:()=>S.g,SC:()=>h.S,E4:()=>h.E,U2:()=>t.U,$g:()=>r.$,rg:()=>n.r,LQ:()=>c.L,uG:()=>o.u,Hg:()=>u.H});var s=d(66465),S=d(5838),h=d(57957),t=d(98228),r=d(13604),n=d(33585),c=d(32352),o=d(80257),u=d(67776)},66465:(ne,L,d)=>{"use strict";d.d(L,{d:()=>h});var s=d(9360),S=Object.prototype.hasOwnProperty;function h(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})}}},67776:(ne,L,d)=>{"use strict";d.d(L,{H:()=>S});var s=d(5838);function S(h,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=h,m=h.indexOf("#");-1!==m&&(u=h.substr(m),v=h.substr(0,m));var T=-1===v.indexOf("?")?"?":"&";return{newURI:v+T+r.join("&")+u}}},57957:(ne,L,d)=>{"use strict";d.d(L,{S:()=>n,E:()=>c});var s=d(48399),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 T=(0,s.pi)((0,s.pi)({},u.options),{headers:u.headers,credentials:u.credentials}),R=u.http||{};v.forEach(function(B){T=(0,s.pi)((0,s.pi)((0,s.pi)({},T),B.options),{headers:(0,s.pi)((0,s.pi)({},T.headers),B.headers)}),B.credentials&&(T.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:T,body:I}}},33585:(ne,L,d)=>{"use strict";d.d(L,{r:()=>s});var s=function(S,h){return S.getContext().uri||("function"==typeof h?h(S):h||"/graphql")}},5838:(ne,L,d)=>{"use strict";d.d(L,{g:()=>S});var s=d(70977),S=function(h,t){var r;try{r=JSON.stringify(h)}catch(c){var n=new s.ej(23);throw n.parseError=c,n}return r}},11055:(ne,L,d)=>{"use strict";d.d(L,{Q:()=>h});var s=d(42677),S=d.n(s);function h(t){return new(S())(function(r){r.error(t)})}},87768:(ne,L,d)=>{"use strict";d.d(L,{p:()=>h});var s=d(42677),S=d.n(s);function h(t){return new(S())(function(r){t.then(function(n){r.next(n),r.complete()}).catch(r.error.bind(r))})}},9360:(ne,L,d)=>{"use strict";d.d(L,{P:()=>s});var s=function(S,h,t){var r=new Error(t);throw r.name="ServerError",r.response=S,r.statusCode=S.status,r.result=h,r}},10893:(ne,L,d)=>{"use strict";function S(h){var t=!1;return new Promise(function(r,n){h.subscribe({next:function(c){t||(t=!0,r(c))},error:n})})}d.d(L,{V:()=>S}),d(70977)},6462:(ne,L,d)=>{"use strict";d.d(L,{Gl:()=>r,dP:()=>Q,re:()=>x});var s=function(){return Object.create(null)},S=Array.prototype,h=S.forEach,t=S.slice,r=function(){function l(E,b){void 0===E&&(E=!0),void 0===b&&(b=s),this.weakness=E,this.makeData=b}return l.prototype.lookup=function(){for(var E=[],b=0;b<arguments.length;b++)E[b]=arguments[b];return this.lookupArray(E)},l.prototype.lookupArray=function(E){var b=this;return h.call(E,function(M){return b=b.getChildTrie(M)}),b.data||(b.data=this.makeData(t.call(E)))},l.prototype.getChildTrie=function(E){var b=this.weakness&&function(l){switch(typeof l){case"object":if(null===l)break;case"function":return!0}return!1}(E)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),M=b.get(E);return M||b.set(E,M=new l(this.weakness,this.makeData)),M},l}(),c=d(83403);function o(){}var m,u=function(){function l(E,b){void 0===E&&(E=1/0),void 0===b&&(b=o),this.max=E,this.dispose=b,this.map=new Map,this.newest=null,this.oldest=null}return l.prototype.has=function(E){return this.map.has(E)},l.prototype.get=function(E){var b=this.getNode(E);return b&&b.value},l.prototype.getNode=function(E){var b=this.map.get(E);if(b&&b!==this.newest){var M=b.older,K=b.newer;K&&(K.older=M),M&&(M.newer=K),b.older=this.newest,b.older.newer=b,b.newer=null,this.newest=b,b===this.oldest&&(this.oldest=K)}return b},l.prototype.set=function(E,b){var M=this.getNode(E);return M?M.value=b:(M={key:E,value:b,newer:null,older:this.newest},this.newest&&(this.newest.newer=M),this.newest=M,this.oldest=this.oldest||M,this.map.set(E,M),M.value)},l.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},l.prototype.delete=function(E){var b=this.map.get(E);return!!b&&(b===this.newest&&(this.newest=b.older),b===this.oldest&&(this.oldest=b.newer),b.newer&&(b.newer.older=b.older),b.older&&(b.older.newer=b.newer),this.map.delete(E),this.dispose(b.value,E),!0)},l}(),v=new c.g7,T=Object.prototype.hasOwnProperty,R=void 0===(m=Array.from)?function(l){var E=[];return l.forEach(function(b){return E.push(b)}),E}:m;function P(l){var E=l.unsubscribe;"function"==typeof E&&(l.unsubscribe=void 0,E())}var D=[];function _(l,E){if(!l)throw new Error(E||"assertion failure")}function B(l){switch(l.length){case 0:throw new Error("unknown value");case 1:return l[0];case 2:throw l[1]}}var q=function(){function l(E){this.fn=E,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++l.count}return l.prototype.peek=function(){if(1===this.value.length&&!f(this))return G(this),this.value[0]},l.prototype.recompute=function(E){return _(!this.recomputing,"already recomputing"),G(this),f(this)?function(l,E){return me(l),v.withValue(l,w,[l,E]),function(l,E){if("function"==typeof l.subscribe)try{P(l),l.unsubscribe=l.subscribe.apply(null,E)}catch(b){return l.setDirty(),!1}return!0}(l,E)&&function(l){l.dirty=!1,!f(l)&&N(l)}(l),B(l.value)}(this,E):B(this.value)},l.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,p(this),P(this))},l.prototype.dispose=function(){var E=this;this.setDirty(),me(this),j(this,function(b,M){b.setDirty(),X(b,E)})},l.prototype.forget=function(){this.dispose()},l.prototype.dependOn=function(E){E.add(this),this.deps||(this.deps=D.pop()||new Set),this.deps.add(E)},l.prototype.forgetDeps=function(){var E=this;this.deps&&(R(this.deps).forEach(function(b){return b.delete(E)}),this.deps.clear(),D.push(this.deps),this.deps=null)},l.count=0,l}();function G(l){var E=v.getValue();if(E)return l.parents.add(E),E.childValues.has(l)||E.childValues.set(l,[]),f(l)?W(E,l):$(E,l),E}function w(l,E){l.recomputing=!0,l.value.length=0;try{l.value[0]=l.fn.apply(null,E)}catch(b){l.value[1]=b}l.recomputing=!1}function f(l){return l.dirty||!(!l.dirtyChildren||!l.dirtyChildren.size)}function p(l){j(l,W)}function N(l){j(l,$)}function j(l,E){var b=l.parents.size;if(b)for(var M=R(l.parents),K=0;K<b;++K)E(M[K],l)}function W(l,E){_(l.childValues.has(E)),_(f(E));var b=!f(l);if(l.dirtyChildren){if(l.dirtyChildren.has(E))return}else l.dirtyChildren=D.pop()||new Set;l.dirtyChildren.add(E),b&&p(l)}function $(l,E){_(l.childValues.has(E)),_(!f(E));var b=l.childValues.get(E);0===b.length?l.childValues.set(E,function(l){return l.slice(0)}(E.value)):function(l,E){var b=l.length;return b>0&&b===E.length&&l[b-1]===E[b-1]}(b,E.value)||l.setDirty(),oe(l,E),!f(l)&&N(l)}function oe(l,E){var b=l.dirtyChildren;b&&(b.delete(E),0===b.size&&(D.length<100&&D.push(b),l.dirtyChildren=null))}function me(l){l.childValues.size>0&&l.childValues.forEach(function(E,b){X(l,b)}),l.forgetDeps(),_(null===l.dirtyChildren)}function X(l,E){E.parents.delete(l),l.childValues.delete(E),oe(l,E)}var ie={setDirty:!0,dispose:!0,forget:!0};function Q(l){var E=new Map,b=l&&l.subscribe;function M(K){var Z=v.getValue();if(Z){var se=E.get(K);se||E.set(K,se=new Set),Z.dependOn(se),"function"==typeof b&&(P(se),se.unsubscribe=b(K))}}return M.dirty=function(Z,se){var ae=E.get(Z);if(ae){var _e=se&&T.call(ie,se)?se:"setDirty";R(ae).forEach(function(Te){return Te[_e]()}),E.delete(Z),P(ae)}},M}function re(){var l=new r("function"==typeof WeakMap);return function(){return l.lookupArray(arguments)}}re();var ee=new Set;function x(l,E){void 0===E&&(E=Object.create(null));var b=new u(E.max||Math.pow(2,16),function(Te){return Te.dispose()}),M=E.keyArgs,K=E.makeCacheKey||re(),Z=function(){var Te=K.apply(null,M?M.apply(null,arguments):arguments);if(void 0===Te)return l.apply(null,arguments);var xe=b.get(Te);xe||(b.set(Te,xe=new q(l)),xe.subscribe=E.subscribe,xe.forget=function(){return b.delete(Te)});var Oe=xe.recompute(Array.prototype.slice.call(arguments));return b.set(Te,xe),ee.add(b),v.hasValue()||(ee.forEach(function(Re){return Re.clean()}),ee.clear()),Oe};function se(Te){var xe=b.get(Te);xe&&xe.setDirty()}function ae(Te){var xe=b.get(Te);if(xe)return xe.peek()}function _e(Te){return b.delete(Te)}return Object.defineProperty(Z,"size",{get:function(){return b.map.size},configurable:!1,enumerable:!1}),Z.dirtyKey=se,Z.dirty=function(){se(K.apply(null,arguments))},Z.peekKey=ae,Z.peek=function(){return ae(K.apply(null,arguments))},Z.forgetKey=_e,Z.forget=function(){return _e(K.apply(null,arguments))},Z.makeCacheKey=K,Z.getKey=M?function(){return K.apply(null,M.apply(null,arguments))}:K,Object.freeze(Z)}},70977:(ne,L,d)=>{"use strict";d.d(L,{ej:()=>W,kG:()=>$,U6:()=>fe});var s=function(J,ee){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,l){x.__proto__=l}||function(x,l){for(var E in l)Object.prototype.hasOwnProperty.call(l,E)&&(x[E]=l[E])})(J,ee)},p="Invariant Violation",N=Object.setPrototypeOf,j=void 0===N?function(J,ee){return J.__proto__=ee,J}:N,W=function(J){function ee(x){void 0===x&&(x=p);var l=J.call(this,"number"==typeof x?p+": "+x+" (see https://github.com/apollographql/invariant-packages)":x)||this;return l.framesToPop=1,l.name=p,j(l,ee.prototype),l}return function(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 W(ee)}var J,oe=["log","warn","error","silent"],me=oe.indexOf("log");function X(J){return function(){if(oe.indexOf(J)>=me)return console[J].apply(console,arguments)}}function fe(J){var ee=oe[me];return me=Math.max(0,oe.indexOf(J)),ee}(J=$||($={})).log=X("log"),J.warn=X("warn"),J.error=X("error"),"object"==typeof process&&"object"==typeof process.env&&process},61397:(ne,L,d)=>{"use strict";d.d(L,{a:()=>t});var s=d(3904),S=d(70977),h=d(93409),t=function(r){var n=(0,h.K)();return s.createElement(n.Consumer,null,function(c){return(0,S.kG)(c&&c.client,27),r.children(c.client)})}},93409:(ne,L,d)=>{"use strict";d.d(L,{K:()=>t,Z:()=>t});var s=d(3904),h=new(d(73005).m?WeakMap:Map);function t(){var r=h.get(s.createContext);return r||((r=s.createContext({})).displayName="ApolloContext",h.set(s.createContext,r)),r}},15177:(ne,L,d)=>{"use strict";d.d(L,{e:()=>t});var s=d(3904),S=d(70977),h=d(93409),t=function(r){var n=r.client,c=r.children,o=(0,h.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)})}},11771:(ne,L,d)=>{"use strict";d.d(L,{xJ:()=>t,td:()=>P,Db:()=>_,aM:()=>I,lY:()=>q,mU:()=>V});var s=d(3904),S=d(70977),h=d(93409);function t(){var G=s.useContext((0,h.K)()).client;return(0,S.kG)(G,33),G}var r=d(48399),n=d(38546),c=d(4549),o=d(75832),u=d(57209),v=function(){function G(O,w){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=O||{},this.context=w||{}}return G.prototype.getOptions=function(){return this.options},G.prototype.setOptions=function(O,w){void 0===w&&(w=!1),w&&!(0,n.D)(this.options,O)&&(this.previousOptions=this.options),this.options=O},G.prototype.unmount=function(){this.isMounted=!1},G.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}},G.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)},G}(),m=function(G){function O(w){var p=w.onNewData,N=G.call(this,w.options,w.context)||this;return N.runLazy=!1,N.previous=Object.create(null),N.runLazyQuery=function(j){N.cleanup(),N.runLazy=!0,N.lazyOptions=j,N.onNewData()},N.getQueryResult=function(){var j=N.observableQueryFields(),W=N.getOptions();if(W.skip)j=(0,r.pi)((0,r.pi)({},j),{data:void 0,error:void 0,loading:!1,networkStatus:o.I.ready,called:!0});else if(N.currentObservable){var $=N.currentObservable.getCurrentResult(),oe=$.data,me=$.loading,X=$.partial,fe=$.networkStatus,ie=$.errors,Q=$.error;if(ie&&ie.length>0&&(Q=new c.c({graphQLErrors:ie})),j=(0,r.pi)((0,r.pi)({},j),{data:oe,loading:me,networkStatus:fe,error:Q,called:!0}),!me)if(Q)Object.assign(j,{data:(N.currentObservable.getLastResult()||{}).data});else{var re=N.currentObservable.options.fetchPolicy;if(W.partialRefetch&&X&&(!oe||0===Object.keys(oe).length)&&"cache-only"!==re)return Object.assign(j,{loading:!0,networkStatus:o.I.loading}),j.refetch(),j}}j.client=N.client,N.setOptions(W,!0);var ee=N.previous.result;return N.previous.loading=ee&&ee.loading||!1,j.previousData=ee&&(ee.data||ee.previousData),N.previous.result=j,N.currentObservable&&N.currentObservable.resetQueryStoreErrors(),j},N.obsRefetch=function(j){var W;return null===(W=N.currentObservable)||void 0===W?void 0:W.refetch(j)},N.obsFetchMore=function(j){return N.currentObservable.fetchMore(j)},N.obsUpdateQuery=function(j){return N.currentObservable.updateQuery(j)},N.obsStartPolling=function(j){var W;null===(W=N.currentObservable)||void 0===W||W.startPolling(j)},N.obsStopPolling=function(){var j;null===(j=N.currentObservable)||void 0===j||j.stopPolling()},N.obsSubscribeToMore=function(j){return N.currentObservable.subscribeToMore(j)},N.onNewData=p,N}return(0,r.ZT)(O,G),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=G.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,j=(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=j,j;if(this.ssrInitiated()){var W=this.getQueryResult()||j;return W.loading&&!y&&this.context.renderPromises.addQueryPromise(this,function(){return null}),W}},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 W=f.previous.result;W&&W.loading===y.loading&&W.networkStatus===y.networkStatus&&(0,n.D)(W.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(),W=N.variables,$=N.onCompleted,oe=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,W))return;!$||p||me?oe&&p&&oe(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(G,O,w){void 0===w&&(w=!1);var f=(0,s.useContext)((0,h.K)()),y=(0,s.useReducer)(function(fe){return fe+1},0),p=y[0],N=y[1],j=O?(0,r.pi)((0,r.pi)({},O),{query:G}):{query:G},W=(0,s.useRef)(),$=W.current||(W.current=new m({options:j,context:f,onNewData:function(){$.ssrInitiated()?N():Promise.resolve().then(function(){return W.current&&N()})}}));$.setOptions(j),$.context=f;var me=function(G,O){var w=(0,s.useRef)();return(!w.current||!(0,n.D)(O,w.current.key))&&(w.current={key:O,value:G()}),w.current.value}(function(){return w?$.executeLazy():$.execute()},{options:(0,r.pi)((0,r.pi)({},j),{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(G,O){return R(G,O,!0)}var D=d(43303),A=function(G){function O(w){var f=w.options,p=w.result,N=w.setResult,j=G.call(this,f,w.context)||this;return j.runMutation=function(W){void 0===W&&(W={}),j.onMutationStart();var $=j.generateNewMutationId();return j.mutate(W).then(function(oe){return j.onMutationCompleted(oe,$),oe}).catch(function(oe){var me=j.getOptions().onError;if(j.onMutationError(oe,$),me)return me(oe),{data:void 0,errors:oe};throw oe})},j.verifyDocumentType(f.mutation,u.n_.Mutation),j.result=p,j.setResult=N,j.mostRecentMutationId=0,j}return(0,r.ZT)(O,G),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,j=w.data,W=w.errors,$=W&&W.length>0?new c.c({graphQLErrors:W}):void 0;this.isMostRecentMutation(f)&&!N&&this.updateResult({called:!0,loading:!1,data:j,error:$}),p&&p(j)},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 _(G,O){var w=(0,s.useContext)((0,h.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:G}):{mutation:G},j=(0,s.useRef)(),$=(j.current||(j.current=new A({options:N,context:w,result:y,setResult:p})),j.current);return $.setOptions(N),$.context=w,(0,s.useEffect)(function(){return $.afterExecute()}),$.execute(y)}function I(G,O){return R(G,O,!1)}var B=function(G){function O(w){var f=w.options,p=w.setResult,N=G.call(this,f,w.context)||this;return N.currentObservable={},N.setResult=p,N.initialize(f),N}return(0,r.ZT)(O,G),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 V(G,O){var w=(0,s.useContext)((0,h.K)()),f=O?(0,r.pi)((0,r.pi)({},O),{subscription:G}):{subscription:G},y=(0,s.useState)({loading:!f.skip,error:void 0,data:void 0}),p=y[0],N=y[1],j=(0,s.useRef)(),$=(j.current||(j.current=new B({options:f,context:w,setResult:N})),j.current);return $.setOptions(f,!0),$.context=w,(0,s.useEffect)(function(){return $.afterExecute()}),(0,s.useEffect)(function(){return $.cleanup.bind($)},[]),$.execute(p)}function q(G){var O=G(),w=(0,s.useState)(O)[1];return(0,s.useEffect)(function(){var f=G();if(O===f)return G.onNextChange(w);w(f)},[O]),O}},11076:(ne,L,d)=>{"use strict";d.r(L),d.d(L,{ApolloProvider:()=>s.e,ApolloConsumer:()=>S.a,getApolloContext:()=>h.K,resetApolloContext:()=>h.Z,useApolloClient:()=>t.xJ,useLazyQuery:()=>t.td,useMutation:()=>t.Db,useQuery:()=>t.aM,useReactiveVar:()=>t.lY,useSubscription:()=>t.mU,DocumentType:()=>r.n_,operationName:()=>r.mw,parser:()=>r.E2});var s=d(15177),S=d(61397),h=d(93409),t=d(11771),r=d(57209),n=d(28944),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)},57209:(ne,L,d)=>{"use strict";d.d(L,{n_:()=>S,mw:()=>t,E2:()=>r});var s=d(70977),S=(()=>{return(n=S||(S={}))[n.Query=0]="Query",n[n.Mutation=1]="Mutation",n[n.Subscription=2]="Subscription",S;var n})(),h=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=h.get(n);if(c)return c;(0,s.kG)(!!n&&!!n.kind,34);var m=n.definitions.filter(function(I){return"FragmentDefinition"===I.kind}),T=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||T.length||R.length||P.length,35),(0,s.kG)(T.length+R.length+P.length<=1,36),u=T.length?S.Query:S.Mutation,!T.length&&!R.length&&(u=S.Subscription);var D=T.length?T: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 h.set(n,_),_}},28944:()=>{},20283:(ne,L,d)=>{"use strict";function s(S){return Array.isArray(S)&&S.length>0}d.d(L,{O:()=>s})},73005:(ne,L,d)=>{"use strict";d.d(L,{m:()=>s});var s="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product)},85025:(ne,L,d)=>{"use strict";function s(){for(var S=[],h=0;h<arguments.length;h++)S[h]=arguments[h];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})},2456:(ne,L,d)=>{"use strict";d.d(L,{Ee:()=>h,bw:()=>t,w0:()=>c});var s=d(48399),S=Object.prototype.hasOwnProperty;function h(){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,T=1;T<v;++T)u=m.merge(u,o[T]);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,T=[],R=2;R<arguments.length;R++)T[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],T));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}()},17334:(ne,L,d)=>{"use strict";d.d(L,{LZ:()=>h,FS:()=>r,mj:()=>n});var s=d(86729),S=d(70977);function h(u,v){var m=u.directives;return!m||!m.length||function(u){var v=[];return u&&u.length&&u.forEach(function(m){if(function(u){var v=u.name.value;return"skip"===v||"include"===v}(m)){var T=m.arguments;(0,S.kG)(T&&1===T.length,39);var P=T[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(T){var R=T.directive,P=T.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(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)}},50216:(ne,L,d)=>{"use strict";d.d(L,{Yk:()=>h,F:()=>t,hi:()=>r});var s=d(48399),S=d(70977);function h(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)}),void 0===o&&((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}}},83368:(ne,L,d)=>{"use strict";d.d(L,{A$:()=>h,$H:()=>t,rY:()=>r,kU:()=>n,iW:()=>c,pD:()=>o,p$:()=>u,O4:()=>v});var s=d(70977),S=d(30534);function h(m){(0,s.kG)(m&&"Document"===m.kind,45);var T=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)(T.length<=1,47),m}function t(m){return h(m),m.definitions.filter(function(T){return"OperationDefinition"===T.kind})[0]}function r(m){return m.definitions.filter(function(T){return"OperationDefinition"===T.kind&&T.name}).map(function(T){return T.name.value})[0]||null}function n(m){return m.definitions.filter(function(T){return"FragmentDefinition"===T.kind})}function c(m){var T=t(m);return(0,s.kG)(T&&"query"===T.operation,48),T}function o(m){(0,s.kG)("Document"===m.kind,49),(0,s.kG)(m.definitions.length<=1,50);var T=m.definitions[0];return(0,s.kG)("FragmentDefinition"===T.kind,51),T}function u(m){h(m);for(var T,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&&!T&&(T=D)}if(T)return T;throw new s.ej(52)}function v(m){var T=Object.create(null),R=m&&m.variableDefinitions;return R&&R.length&&R.forEach(function(P){P.defaultValue&&(0,S.vb)(T,P.variable.name,P.defaultValue)}),T}},30534:(ne,L,d)=>{"use strict";d.d(L,{kQ:()=>r,Yk:()=>n,vb:()=>A,vf:()=>_,PT:()=>B,NC:()=>V,u2:()=>q,qw:()=>G,My:()=>O,Ao:()=>w});var s=d(75616),S=d.n(s),h=d(70977),t=d(50216);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(f){return"IntValue"===f.kind}(p)||function(f){return"FloatValue"===f.kind}(p))f[y.value]=Number(p.value);else if(function(f){return"BooleanValue"===f.kind}(p)||function(f){return"StringValue"===f.kind}(p))f[y.value]=p.value;else if(function(f){return"ObjectValue"===f.kind}(p)){var j={};p.fields.map(function($){return A(j,$.name,$.value,N)}),f[y.value]=j}else if(function(f){return"Variable"===f.kind}(p))f[y.value]=(N||{})[p.name.value];else if(function(f){return"ListValue"===f.kind}(p))f[y.value]=p.values.map(function($){var oe={};return A(oe,y,$,N),oe[y.value]});else if(function(f){return"EnumValue"===f.kind}(p))f[y.value]=p.value;else{if(!function(f){return"NullValue"===f.kind}(p))throw new h.ej(53);f[y.value]=null}}function _(f,y){var p=null;f.directives&&(p={},f.directives.forEach(function(j){p[j.name.value]={},j.arguments&&j.arguments.forEach(function(W){return A(p[j.name.value],W.name,W.value,y)})}));var N=null;return f.arguments&&f.arguments.length&&(N={},f.arguments.forEach(function(j){return A(N,j.name,j.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 j={};return N.forEach(function(oe){j[oe]=y[oe]}),p.connection.key+"("+JSON.stringify(j)+")"}return p.connection.key}var W=f;if(y){var $=S()(y);W+="("+$+")"}return p&&Object.keys(p).forEach(function(oe){-1===I.indexOf(oe)&&(p[oe]&&Object.keys(p[oe]).length?W+="@"+oe+"("+JSON.stringify(p[oe])+")":W+="@"+oe)}),W}function V(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 G(f,y,p){if("string"==typeof f.__typename)return f.__typename;for(var N=0,j=y.selections;N<j.length;N++){var W=j[N];if(O(W)){if("__typename"===W.name.value)return f[q(W)]}else{var $=G(f,(0,t.hi)(W,p).selectionSet,p);if("string"==typeof $)return $}}}function O(f){return"Field"===f.kind}function w(f){return"InlineFragment"===f.kind}},52107:(ne,L,d)=>{"use strict";d.d(L,{Gw:()=>R,aL:()=>G,ob:()=>O,Fo:()=>D});var s=d(48399),S=d(86729),t=(d(70977),d(83368));function r(w,f,y){var p=0;return w.forEach(function(N,j){f.call(this,N,j,w)&&(w[p++]=N)},y),w.length=p,w}var n=d(30534),c=d(50216),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 T(w,f){var y=Object.create(null),p=[],N=Object.create(null),j=[],W=v((0,S.Vn)(f,{Variable:{enter:function($,oe,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){j.push({name:me.name.value})}),null}},FragmentSpread:{enter:function($){N[$.name.value]=!0}},Directive:{enter:function($){if(m(w)($))return null}}}));return W&&r(p,function($){return!!$.name&&!y[$.name]}).length&&(W=function(w,f){var y=function(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(j){return j.name===N.variable.name.value})}):[]})}},Field:{enter:function(p){if(w.some(function(W){return W.remove})){var j=0;if(p.arguments&&p.arguments.forEach(function(W){y(W)&&(j+=1)}),1===j)return null}}},Argument:{enter:function(p){if(y(p))return null}}}))}(p,W)),W&&r(j,function($){return!!$.name&&!N[$.name]}).length&&(W=function(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}}))}(j,W)),W}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 W=p;if(!((0,n.My)(W)&&W.directives&&W.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 T([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 G(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=T([{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}},62954:(ne,L,d)=>{"use strict";function s(S,h,t){var r=[];S.forEach(function(n){return n[h]&&r.push(n)}),r.forEach(function(n){return n[h](t)})}d.d(L,{p:()=>s})},1313:(ne,L,d)=>{"use strict";d.d(L,{D:()=>h});var s=d(42677),S=d.n(s);function h(t){function r(n){Object.defineProperty(t,n,{value:S()})}return"function"==typeof Symbol&&Symbol.species&&r(Symbol.species),r("@@species"),t}},83403:(ne,L,d)=>{"use strict";d.d(L,{g7:()=>c});var s=null,S={},h=1,r="@wry/context:Slot",n=Array,c=n[r]||function(){var D=function(){function D(){this.id=["slot",h++,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 V,q=((V={__proto__:null})[this.id]=A,V),G=s;s={parent:G,slots:q};try{return _.apply(B,I)}finally{s=G}},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}}()},38546:(ne,L,d)=>{"use strict";d.d(L,{D:()=>n});var s=Object.prototype,S=s.toString,h=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(T(P,D))return!0;var I=o(P),B=o(D),V=I.length;if(V!==B.length)return!1;for(var q=0;q<V;++q)if(!h.call(D,I[q]))return!1;for(q=0;q<V;++q){var G=I[q];if(!c(P[G],D[G]))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(T(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 j=P.byteLength;if(j===D.byteLength)for(;j--&&P[j]===D[j];);return-1===j;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var W=t.call(P);return W===t.call(D)&&!function(P,D){var A=P.length-D.length;return A>=0&&P.indexOf(D,A)===A}(W,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 T(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}},98007:(ne,L,d)=>{"use strict";d.r(L),d.d(L,{addTypenameToDocument:()=>bt,argumentsObjectFromField:()=>Q,assign:()=>Re,buildQueryFromSelectionSet:()=>Tt,canUseWeakMap:()=>Qt,checkDocument:()=>F,cloneDeep:()=>Mt,createFragmentMap:()=>Se,getDefaultValues:()=>Ie,getDirectiveInfoFromField:()=>K,getDirectiveNames:()=>se,getDirectivesFromDocument:()=>Rt,getEnv:()=>gr,getFragmentDefinition:()=>he,getFragmentDefinitions:()=>Ce,getFragmentQueryDocument:()=>Oe,getInclusionDirectives:()=>xe,getMainDefinition:()=>ve,getMutationDefinition:()=>H,getOperationDefinition:()=>U,getOperationDefinitionOrDie:()=>ue,getOperationName:()=>ye,getQueryDefinition:()=>z,getStoreKeyName:()=>ie,graphQLResultHasError:()=>cr,hasClientExports:()=>_e,hasDirectives:()=>ae,isDevelopment:()=>Bt,isEnv:()=>wt,isEqual:()=>I,isField:()=>J,isIdValue:()=>x,isInlineFragment:()=>ee,isJsonValue:()=>E,isNumberValue:()=>O,isProduction:()=>Ut,isScalarValue:()=>G,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:()=>l,tryFunctionOrLogError:()=>Lt,valueFromNode:()=>M,valueToObjectRepresentation:()=>me,variablesInOperation:()=>Me,warnOnceInDevelopment:()=>ze});var le,s=d(86729),S=d(48399),h="Invariant Violation",t=Object.setPrototypeOf,r=void 0===t?function(le,be){return le.__proto__=be,le}:t,n=function(le){function be(Ae){void 0===Ae&&(Ae=h);var Ne=le.call(this,"number"==typeof Ae?h+": "+Ae+" (see https://github.com/apollographql/invariant-packages)":Ae)||this;return Ne.framesToPop=1,Ne.name=h,r(Ne,be.prototype),Ne}return(0,S.ZT)(be,le),be}(Error);function c(le,be){if(!le)throw new n(be)}function o(le){return function(){return console[le].apply(console,arguments)}}(le=c||(c={})).warn=o("warn"),le.error=o("error");var u={env:{}};if("object"==typeof process)u=process;else try{Function("stub","process = stub")(u)}catch(le){}var T=d(75616),R=d.n(T),P=Object.prototype,D=P.toString,A=P.hasOwnProperty,_=new Map;function I(le,be){try{return B(le,be)}finally{_.clear()}}function B(le,be){if(le===be)return!0;var Ae=D.call(le);if(Ae!==D.call(be))return!1;switch(Ae){case"[object Array]":if(le.length!==be.length)return!1;case"[object Object]":if(V(le,be))return!0;var je=Object.keys(le),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(le[yt],be[yt]))return!1}return!0;case"[object Error]":return le.name===be.name&&le.message===be.message;case"[object Number]":if(le!=le)return be!=be;case"[object Boolean]":case"[object Date]":return+le==+be;case"[object RegExp]":case"[object String]":return le==""+be;case"[object Map]":case"[object Set]":if(le.size!==be.size)return!1;if(V(le,be))return!0;for(var _t=le.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 V(le,be){var Ae=_.get(le);if(Ae){if(Ae.has(be))return!0}else _.set(le,Ae=new Set);return Ae.add(be),!1}function G(le){return["StringValue","BooleanValue","EnumValue"].indexOf(le.kind)>-1}function O(le){return["IntValue","FloatValue"].indexOf(le.kind)>-1}function me(le,be,Ae,Ne){if(function(le){return"IntValue"===le.kind}(Ae)||function(le){return"FloatValue"===le.kind}(Ae))le[be.value]=Number(Ae.value);else if(function(le){return"BooleanValue"===le.kind}(Ae)||function(le){return"StringValue"===le.kind}(Ae))le[be.value]=Ae.value;else if(function(le){return"ObjectValue"===le.kind}(Ae)){var je={};Ae.fields.map(function(Xe){return me(je,Xe.name,Xe.value,Ne)}),le[be.value]=je}else if(function(le){return"Variable"===le.kind}(Ae))le[be.value]=(Ne||{})[Ae.name.value];else if(function(le){return"ListValue"===le.kind}(Ae))le[be.value]=Ae.values.map(function(Xe){var Ye={};return me(Ye,be,Xe,Ne),Ye[be.value]});else if(function(le){return"EnumValue"===le.kind}(Ae))le[be.value]=Ae.value;else{if(!function(le){return"NullValue"===le.kind}(Ae))throw new n(17);le[be.value]=null}}function X(le,be){var Ae=null;le.directives&&(Ae={},le.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 le.arguments&&le.arguments.length&&(Ne={},le.arguments.forEach(function(je){return me(Ne,je.name,je.value,be)})),ie(le.name.value,Ne,Ae)}var fe=["connection","include","skip","client","rest","export"];function ie(le,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=le;if(be){var Ye=R()(be);Xe+="("+Ye+")"}return Ae&&Object.keys(Ae).forEach(function(yt){-1===fe.indexOf(yt)&&(Ae[yt]&&Object.keys(Ae[yt]).length?Xe+="@"+yt+"("+JSON.stringify(Ae[yt])+")":Xe+="@"+yt)}),Xe}function Q(le,be){if(le.arguments&&le.arguments.length){var Ae={};return le.arguments.forEach(function(Ne){return me(Ae,Ne.name,Ne.value,be)}),Ae}return null}function re(le){return le.alias?le.alias.value:le.name.value}function J(le){return"Field"===le.kind}function ee(le){return"InlineFragment"===le.kind}function x(le){return le&&"id"===le.type&&"boolean"==typeof le.generated}function l(le,be){return void 0===be&&(be=!1),(0,S.pi)({type:"id",generated:be},"string"==typeof le?{id:le,typename:void 0}:le)}function E(le){return null!=le&&"object"==typeof le&&"json"===le.type}function b(le){throw new n(18)}function M(le,be){switch(void 0===be&&(be=b),le.kind){case"Variable":return be(le);case"NullValue":return null;case"IntValue":return parseInt(le.value,10);case"FloatValue":return parseFloat(le.value);case"ListValue":return le.values.map(function(Xe){return M(Xe,be)});case"ObjectValue":for(var Ae={},Ne=0,je=le.fields;Ne<je.length;Ne++){var We=je[Ne];Ae[We.name.value]=M(We.value,be)}return Ae;default:return le.value}}function K(le,be){if(le.directives&&le.directives.length){var Ae={};return le.directives.forEach(function(Ne){Ae[Ne.name.value]=Q(Ne,be)}),Ae}return null}function Z(le,be){return void 0===be&&(be={}),xe(le.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(le){var be=[];return(0,s.Vn)(le,{Directive:function(Ae){be.push(Ae.name.value)}}),be}function ae(le,be){return se(be).some(function(Ae){return le.indexOf(Ae)>-1})}function _e(le){return le&&ae(["client"],le)&&ae(["export"],le)}function Te(le){var be=le.name.value;return"skip"===be||"include"===be}function xe(le){return le?le.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(le,be){var Ae=be,Ne=[];return le.definitions.forEach(function(We){if("OperationDefinition"===We.kind)throw new n(11);"FragmentDefinition"===We.kind&&Ne.push(We)}),void 0===Ae&&(c(1===Ne.length,12),Ae=Ne[0].name.value),(0,S.pi)((0,S.pi)({},le),{definitions:(0,S.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:Ae}}]}}],le.definitions)})}function Re(le){for(var be=[],Ae=1;Ae<arguments.length;Ae++)be[Ae-1]=arguments[Ae];return be.forEach(function(Ne){null==Ne||Object.keys(Ne).forEach(function(je){le[je]=Ne[je]})}),le}function H(le){F(le);var be=le.definitions.filter(function(Ae){return"OperationDefinition"===Ae.kind&&"mutation"===Ae.operation})[0];return c(be,1),be}function F(le){return c(le&&"Document"===le.kind,2),c(le.definitions.filter(function(Ae){return"FragmentDefinition"!==Ae.kind}).map(function(Ae){if("OperationDefinition"!==Ae.kind)throw new n(3);return Ae}).length<=1,4),le}function U(le){return F(le),le.definitions.filter(function(be){return"OperationDefinition"===be.kind})[0]}function ue(le){var be=U(le);return c(be,5),be}function ye(le){return le.definitions.filter(function(be){return"OperationDefinition"===be.kind&&be.name}).map(function(be){return be.name.value})[0]||null}function Ce(le){return le.definitions.filter(function(be){return"FragmentDefinition"===be.kind})}function z(le){var be=U(le);return c(be&&"query"===be.operation,6),be}function he(le){c("Document"===le.kind,7),c(le.definitions.length<=1,8);var be=le.definitions[0];return c("FragmentDefinition"===be.kind,9),be}function ve(le){F(le);for(var be,Ae=0,Ne=le.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(le){void 0===le&&(le=[]);var be={};return le.forEach(function(Ae){be[Ae.name.value]=Ae}),be}function Ie(le){if(le&&le.variableDefinitions&&le.variableDefinitions.length){var be=le.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(le){var be=new Set;if(le.variableDefinitions)for(var Ae=0,Ne=le.variableDefinitions;Ae<Ne.length;Ae++)be.add(Ne[Ae].variable.name.value);return be}function Ke(le,be,Ae){var Ne=0;return le.forEach(function(je,We){be.call(this,je,We,le)&&(le[Ne++]=je)},Ae),le.length=Ne,le}var Ze={kind:"Field",name:{kind:"Name",value:"__typename"}};function $e(le,be){return le.selectionSet.selections.every(function(Ae){return"FragmentSpread"===Ae.kind&&$e(be[Ae.name.value],be)})}function gt(le){return $e(U(le)||he(le),Se(Ce(le)))?null:le}function qe(le){return function(Ae){return le.some(function(Ne){return Ne.name&&Ne.name===Ae.name.value||Ne.test&&Ne.test(Ae)})}}function ke(le,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(le&&Ye.directives&&le.some(function(_t){return _t.remove})&&Ye.directives&&Ye.directives.some(qe(le)))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(le)(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(le){return(0,s.Vn)(F(le),{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(le){var be="connection"===le.name.value;return be&&(!le.arguments||le.arguments.some(function(Ae){return"key"===Ae.name.value})),be}};function $t(le){return ke([yr],F(le))}function Gt(le,be,Ae){return void 0===Ae&&(Ae=!0),be&&be.selections&&be.selections.some(function(Ne){return Wt(le,Ne,Ae)})}function Wt(le,be,Ae){return void 0===Ae&&(Ae=!0),!J(be)||!!be.directives&&(be.directives.some(qe(le))||Ae&&Gt(le,be.selectionSet,Ae))}function Rt(le,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(le,_t)});return Gt(le,Ne,!1)&&(Ae=Ye),(0,S.pi)((0,S.pi)({},Ne),{selections:yt})}return null}}}}))}function ht(le,be){var Ae=function(le){return function(Ae){return le.some(function(Ne){return Ae.value&&"Variable"===Ae.value.kind&&Ae.value.name&&(Ne.name===Ae.value.name.value||Ne.test&&Ne.test(Ae))})}}(le);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!le.some(function(We){return We.name===je.variable.name.value})})})}},Field:{enter:function(Ne){if(le.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(le,be){function Ae(Ne){if(le.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(le){var be=[];return le.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(le){return"query"===ve(le).operation?le:(0,s.Vn)(le,{OperationDefinition:{enter:function(je){return(0,S.pi)((0,S.pi)({},je),{operation:"query"})}}})}function mt(le){F(le);var be=ke([{test:function(Ae){return"client"===Ae.name.value},remove:!0}],le);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(le){return Ht(le,new Map)}function Ht(le,be){switch(er.call(le)){case"[object Array]":if(be.has(le))return be.get(le);var Ae=le.slice(0);return be.set(le,Ae),Ae.forEach(function(je,We){Ae[We]=Ht(je,be)}),Ae;case"[object Object]":if(be.has(le))return be.get(le);var Ne=Object.create(Object.getPrototypeOf(le));return be.set(le,Ne),Object.keys(le).forEach(function(je){Ne[je]=Ht(le[je],be)}),Ne;default:return le}}function gr(){return"undefined"!=typeof process?"production":"development"}function wt(le){return gr()===le}function Ut(){return!0===wt("production")}function Bt(){return!0===wt("development")}function Er(){return!0===wt("test")}function Lt(le){try{return le()}catch(be){console.error&&console.error(be)}}function cr(le){return le.errors&&le.errors.length}function jr(le){return Object.freeze(le),Object.getOwnPropertyNames(le).forEach(function(be){null!==le[be]&&("object"==typeof le[be]||"function"==typeof le[be])&&!Object.isFrozen(le[be])&&jr(le[be])}),le}function zt(le){return!Bt()&&!Er()||"function"==typeof Symbol&&"string"==typeof Symbol("")?le:jr(le)}var an=Object.prototype.hasOwnProperty;function fr(){for(var le=[],be=0;be<arguments.length;be++)le[be]=arguments[be];return nr(le)}function nr(le){var be=le[0]||{},Ae=le.length;if(Ae>1){var Ne=[];be=br(be,Ne);for(var je=1;je<Ae;++je)be=lr(be,le[je],Ne)}return be}function jt(le){return null!==le&&"object"==typeof le}function lr(le,be,Ae){return jt(be)&&jt(le)?(Object.isExtensible&&!Object.isExtensible(le)&&(le=br(le,Ae)),Object.keys(be).forEach(function(Ne){var je=be[Ne];if(an.call(le,Ne)){var We=le[Ne];je!==We&&(le[Ne]=lr(br(We,Ae),je,Ae))}else le[Ne]=je}),le):be}function br(le,be){return null!==le&&"object"==typeof le&&be.indexOf(le)<0&&(le=Array.isArray(le)?le.slice(0):(0,S.pi)({__proto__:Object.getPrototypeOf(le)},le),be.push(le)),le}var Tr=Object.create({});function ze(le,be){void 0===be&&(be="warn"),!Ut()&&!Tr[le]&&(Er()||(Tr[le]=!0),"error"===be?console.error(le):console.warn(le))}function on(le){return JSON.parse(JSON.stringify(le))}},83280:function(ne,L,d){"use strict";var I,s=this&&this.__extends||(I=function(B,V){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,G){q.__proto__=G}||function(q,G){for(var O in G)G.hasOwnProperty(O)&&(q[O]=G[O])})(B,V)},function(B,V){function q(){this.constructor=B}I(B,V),B.prototype=null===V?Object.create(V):(q.prototype=V.prototype,new q)}),S=this&&this.__assign||function(){return(S=Object.assign||function(I){for(var B,V=1,q=arguments.length;V<q;V++)for(var G in B=arguments[V])Object.prototype.hasOwnProperty.call(B,G)&&(I[G]=B[G]);return I}).apply(this,arguments)},h=this&&this.__awaiter||function(I,B,V,q){return new(V||(V=Promise))(function(O,w){function f(N){try{p(q.next(N))}catch(j){w(j)}}function y(N){try{p(q.throw(N))}catch(j){w(j)}}function p(N){N.done?O(N.value):function(O){return O instanceof V?O:new V(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,G,O,w,V={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(p){if(q)throw new TypeError("Generator is already executing.");for(;V;)try{if(q=1,G&&(O=2&p[0]?G.return:p[0]?G.throw||((O=G.return)&&O.call(G),0):G.next)&&!(O=O.call(G,p[1])).done)return O;switch(G=0,O&&(p=[2&p[0],O.value]),p[0]){case 0:case 1:O=p;break;case 4:return V.label++,{value:p[1],done:!1};case 5:V.label++,G=p[1],p=[0];continue;case 7:p=V.ops.pop(),V.trys.pop();continue;default:if(!(O=(O=V.trys).length>0&&O[O.length-1])&&(6===p[0]||2===p[0])){V=0;continue}if(3===p[0]&&(!O||p[1]>O[0]&&p[1]<O[3])){V.label=p[1];break}if(6===p[0]&&V.label<O[1]){V.label=O[1],O=p;break}if(O&&V.label<O[2]){V.label=O[2],V.ops.push(p);break}O[2]&&V.ops.pop(),V.trys.pop();continue}p=B.call(I,V)}catch(N){p=[6,N],G=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 T,r=d(43821),n=d(71352),c=d(9585),o=d(53408),u=d(85058),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"}(T=L.AUTH_TYPE||(L.AUTH_TYPE={}));var R=function(I){function B(V){var q=I.call(this)||this;return q.link=L.authLink(V),q}return s(B,I),B.prototype.request=function(V,q){return this.link.request(V,q)},B}(r.ApolloLink);L.AuthLink=R;var P=function(I,B,V){var q=void 0===I?{header:"",value:""}:I,G=q.header,O=q.value;return h(void 0,void 0,void 0,function(){var w,f,p,N,j;return t(this,function(W){switch(W.label){case 0:return w=B.getContext(),f=S(S({},w.headers),((N={})[L.USER_AGENT_HEADER]=L.USER_AGENT,N)),G&&O?"function"!=typeof O?[3,2]:[4,O.call(void 0)]:[3,5];case 1:return p=W.sent(),[3,4];case 2:return[4,O];case 3:p=W.sent(),W.label=4;case 4:f=S(((j={})[G]=p,j),f),W.label=5;case 5:return B.setContext(S(S({},w),{headers:f})),[2,V(B)]}})})};L.authLink=function(I){var B=I.url,V=I.region,q=I.auth,G=(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(G){case T.NONE:N=P(void 0,w,f);break;case T.AWS_IAM:var j=O.credentials;N=function(I,B,V){var q=I.credentials,G=I.region,O=I.url;return h(void 0,void 0,void 0,function(){var w,f,y,p,N,j,W,$,oe,me,X,fe,ie;return t(this,function(Q){switch(Q.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:Q.sent(),Q.label=2;case 2:return[4,y];case 3:return p=Q.sent(),N=p.accessKeyId,j=p.secretAccessKey,W=p.sessionToken,$=o.parse(O),oe=$.host,me=$.path,X=S(S({},A(B,{})),{service:w,region:G,url:O,host:oe,path:me}),fe=c.Signer.sign(X,{access_key:N,secret_key:j,session_token:W}).headers,B.setContext(S(S({},f),{headers:S(S(S({},f.headers),fe),(ie={},ie[L.USER_AGENT_HEADER]=L.USER_AGENT,ie))})),[2,V(B)]}})})}({credentials:void 0===j?{}:j,region:V,url:B},w,f);break;case T.API_KEY:var $=O.apiKey;N=P({header:"X-Api-Key",value:void 0===$?"":$},w,f);break;case T.AMAZON_COGNITO_USER_POOLS:case T.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(ie){p=ie.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 G=I.query,O={operationName:I.operationName,variables:_(I.variables),query:n.print(G)};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,V){return B[V]=I[V],B},{})}},11984:(ne,L,d)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var s=d(83280);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(h){return new s.AuthLink({url:h.url,region:h.region,auth:h.auth})};var S=d(9585);L.Signer=S.Signer},85058:(ne,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.userAgent=""},9585:(ne,L,d)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0}),function(S){for(var h in S)L.hasOwnProperty(h)||(L[h]=S[h])}(d(10365))},10365:(ne,L,d)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0}),global.Buffer=global.Buffer||d(2341).lW;var s=d(53408),S=d(18426).util.crypto,h=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 V=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),q=V.substr(0,8),G="AWS4-HMAC-SHA256",O=s.parse(A.url);A.headers.host=O.host,A.headers["x-amz-date"]=V,_.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),f=function(A,_,I){return[A,_,I,"aws4_request"].join("/")}(q,(I=I||function(A){var V=(s.parse(A.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===V[1]&&(V=V.reverse()),{service:A.service||V[0],region:A.region||V[1]}}(A)).region,I.service),y=function(A,_,I,B){return[A,I,B,t(_)].join("\n")}(G,w,V,f),N=function(A,_){return h(A,_,"hex")}(function(A,_,I){void 0===A&&(A="");var V=h("AWS4"+A,_),q=h(V,I.region),G=h(q,I.service);return h(G,"aws4_request")}(_.secret_key,q,I),y),j=function(A,_,I,B,V){return void 0===_&&(_=""),["AWS4-HMAC-SHA256 Credential="+_+"/"+I,"SignedHeaders="+B,"Signature="+V].join(", ")}(0,_.access_key,f,n(A.headers),N);return A.headers.Authorization=j,A},D=function(){function A(){}return A.sign=P,A}();L.Signer=D,L.default=D},37490: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 T=0;for(m=Object.getOwnPropertySymbols(o);T<m.length;T++)u.indexOf(m[T])<0&&Object.prototype.propertyIsEnumerable.call(o,m[T])&&(v[m[T]]=o[m[T]])}return v};Object.defineProperty(L,"__esModule",{value:!0});var S=d(45597);L.CONTROL_EVENTS_KEY=S.CONTROL_EVENTS_KEY;var h=d(43821),t=d(98007),r=d(71797),n=d(34003);L.createSubscriptionHandshakeLink=function(o,u){var v,m;return"string"==typeof o?(v=u||h.createHttpLink({uri:o}),m=h.ApolloLink.from([new r.NonTerminatingLink("controlMessages",{link:new h.ApolloLink(function(R,P){return new h.Observable(function(D){var A,_=R.variables,I=S.CONTROL_EVENTS_KEY,B=_[I],V=s(_,["symbol"==typeof I?I:I+""]);return void 0!==B&&(R.variables=V),D.next(((A={})[S.CONTROL_EVENTS_KEY]=B,A)),function(){}})})}),new r.NonTerminatingLink("subsInfo",{link:v}),new S.SubscriptionHandshakeLink("subsInfo")])):(v=u||h.createHttpLink({uri:o.url}),m=new n.AppSyncRealTimeSubscriptionHandshakeLink(o)),h.ApolloLink.split(function(R){var D=t.getMainDefinition(R.query);return"OperationDefinition"===D.kind&&"subscription"===D.operation},m,v)}},71797: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,T){m.__proto__=T}||function(m,T){for(var R in T)T.hasOwnProperty(R)&&(m[R]=T[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 T in u=arguments[v])Object.prototype.hasOwnProperty.call(u,T)&&(o[T]=u[T]);return o}).apply(this,arguments)},h=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(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,T,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(_){if(m)throw new TypeError("Generator is already executing.");for(;v;)try{if(m=1,T&&(R=2&_[0]?T.return:_[0]?T.throw||((R=T.return)&&R.call(T),0):T.next)&&!(R=R.call(T,_[1])).done)return R;switch(T=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++,T=_[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],T=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(43821),n=d(42753),c=function(o){function u(v,m){var T=m.link,R=o.call(this)||this;return R.contextKey=v,R.link=T,R}return s(u,o),u.prototype.request=function(v,m){var T=this;return n.setContext(function(R,P){return h(T,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,V){_.link.request(v).subscribe({next:B,error:V})})];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},34003:function(ne,L,d){"use strict";var q,s=this&&this.__extends||(q=function(G,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])})(G,O)},function(G,O){function w(){this.constructor=G}q(G,O),G.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 G,O=1,w=arguments.length;O<w;O++)for(var f in G=arguments[O])Object.prototype.hasOwnProperty.call(G,f)&&(q[f]=G[f]);return q}).apply(this,arguments)},h=this&&this.__awaiter||function(q,G,O,w){return new(O||(O=Promise))(function(y,p){function N($){try{W(w.next($))}catch(oe){p(oe)}}function j($){try{W(w.throw($))}catch(oe){p(oe)}}function W($){$.done?y($.value):function(y){return y instanceof O?y:new O(function(p){p(y)})}($.value).then(N,j)}W((w=w.apply(q,G||[])).next())})},t=this&&this.__generator||function(q,G){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(W){return function($){return function(W){if(w)throw new TypeError("Generator is already executing.");for(;O;)try{if(w=1,f&&(y=2&W[0]?f.return:W[0]?f.throw||((y=f.return)&&y.call(f),0):f.next)&&!(y=y.call(f,W[1])).done)return y;switch(f=0,y&&(W=[2&W[0],y.value]),W[0]){case 0:case 1:y=W;break;case 4:return O.label++,{value:W[1],done:!1};case 5:O.label++,f=W[1],W=[0];continue;case 7:W=O.ops.pop(),O.trys.pop();continue;default:if(!(y=(y=O.trys).length>0&&y[y.length-1])&&(6===W[0]||2===W[0])){O=0;continue}if(3===W[0]&&(!y||W[1]>y[0]&&W[1]<y[3])){O.label=W[1];break}if(6===W[0]&&O.label<y[1]){O.label=y[1],y=W;break}if(y&&O.label<y[2]){O.label=y[2],O.ops.push(W);break}y[2]&&O.ops.pop(),O.trys.pop();continue}W=G.call(q,O)}catch($){W=[6,$],f=0}finally{w=y=0}if(5&W[0])throw W[1];return{value:W[0]?W[1]:void 0,done:!0}}([W,$])}}};Object.defineProperty(L,"__esModule",{value:!0});var r=d(43821),n=d(94464),c=d(11984),o=d(78687),u=d(53408),v=d(9721),m=d(60103),T=d(89256),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,V=function(q){function G(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(G,q),G.prototype.request=function(O){var w,f=this,y=O.query,p=O.variables,N=O.getContext(),j=N.controlMessages,W=L.CONTROL_EVENTS_KEY,$=(void 0===j?(w={},w[L.CONTROL_EVENTS_KEY]=void 0,w):j)[W],oe=N.headers;return new r.Observable(function(me){if(f.url){var X=v.v4(),fe={appSyncGraphqlEndpoint:f.url,authenticationType:f.auth.type,query:o.print(y),region:f.region,graphql_headers:function(){return oe},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:fe,observer:me,subscriptionId:X}),function(){return h(f,void 0,void 0,function(){return t(this,function(Q){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(re){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,fe=(void 0===X?{}:X).controlMsgType;return!0===$||!(void 0!==(void 0===fe?void 0:fe))})},G.prototype._verifySubscriptionAlreadyStarted=function(O){return h(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 j=f.subscriptionObserverMap.get(O);f.subscriptionObserverMap.set(O,{observer:j.observer,subscriptionState:j.subscriptionState,variables:j.variables,query:j.query,subscriptionReadyCallback:p,subscriptionFailedCallback:N})})]:[2]})})},G.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})}},G.prototype._removeSubscriptionObserver=function(O){this.subscriptionObserverMap.delete(O),0===this.subscriptionObserverMap.size&&this._closeSocketWhenFlushed()},G.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},G.prototype._startSubscriptionWithAWSAppSyncRealTime=function(O){var w=O.options,f=O.observer,y=O.subscriptionId;return h(this,void 0,void 0,function(){var p,N,j,W,$,oe,me,X,fe,ie,Q,re,J,ee,x,l,E,b,M,K,se,ae,xe,Oe=this;return t(this,function(Re){switch(Re.label){case 0:return p=w.appSyncGraphqlEndpoint,N=w.authenticationType,$=w.apiKey,oe=w.region,X=void 0===(me=w.graphql_headers)?function(){return{}}:me,fe=w.credentials,ie=w.jwtToken,re={query:j=w.query,variables:W=w.variables},this.subscriptionObserverMap.set(y,{observer:f,query:j,variables:W,subscriptionState:Q=m.SUBSCRIPTION_STATUS.PENDING,startAckTimeoutId:null}),J=JSON.stringify(re),x=[{}],[4,this._awsRealTimeHeaderBasedAuth({apiKey:$,appSyncGraphqlEndpoint:p,authenticationType:N,payload:J,canonicalUri:"",region:oe,credentials:fe,jwtToken:ie})];case 1:return l=[S.apply(void 0,x.concat([Re.sent()]))],[4,X()];case 2:ee=S.apply(void 0,[S.apply(void 0,l.concat([Re.sent()])),(xe={},xe[c.USER_AGENT_HEADER]=c.USER_AGENT,xe)]),E={id:y,payload:{data:J,extensions:{authorization:S({},ee)}},type:m.MESSAGE_TYPES.GQL_START},b=JSON.stringify(E),Re.label=3;case 3:return Re.trys.push([3,5,,6]),[4,this._initializeWebSocketConnection({apiKey:$,appSyncGraphqlEndpoint:p,authenticationType:N,region:oe,credentials:fe,jwtToken:ie})];case 4:return Re.sent(),[3,6];case 5:return M=Re.sent(),f.error({errors:[S({},new o.GraphQLError("Connection failed: "+(void 0===(K=M.message)?"":K)))]}),f.complete(),"function"==typeof(se=(this.subscriptionObserverMap.get(y)||{}).subscriptionFailedCallback)&&se(),[2];case 6:return ae=this.subscriptionObserverMap.get(y),this.subscriptionObserverMap.set(y,{observer:f,subscriptionState:Q,variables:W,query:j,subscriptionReadyCallback:ae.subscriptionReadyCallback,subscriptionFailedCallback:ae.subscriptionFailedCallback,startAckTimeoutId:setTimeout(function(){Oe._timeoutStartSubscriptionAck.call(Oe,y)},15e3)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send(b),[2]}})})},G.prototype._initializeWebSocketConnection=function(O){var w=this,f=O.appSyncGraphqlEndpoint,y=O.authenticationType,p=O.apiKey,N=O.region,j=O.credentials,W=O.jwtToken;if(this.socketStatus!==m.SOCKET_STATUS.READY)return new Promise(function($,oe){return h(w,void 0,void 0,function(){var me,X,fe,ie,Q,re,J,x;return t(this,function(l){switch(l.label){case 0:if(this.promiseArray.push({res:$,rej:oe}),this.socketStatus!==m.SOCKET_STATUS.CLOSED)return[3,5];l.label=1;case 1:return l.trys.push([1,4,,5]),this.socketStatus=m.SOCKET_STATUS.CONNECTING,me=G._discoverAppSyncRealTimeEndpoint(this.url),X="{}",Q=(ie=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:y,payload:X,canonicalUri:"/connect",apiKey:p,appSyncGraphqlEndpoint:f,region:N,credentials:j,jwtToken:W})];case 2:return fe=Q.apply(ie,[l.sent()]),re=Buffer.from(fe).toString("base64"),J=Buffer.from(X).toString("base64"),[4,this._initializeRetryableHandshake({awsRealTimeUrl:me+"?header="+re+"&payload="+J})];case 3:return l.sent(),this.promiseArray.forEach(function(E){var b=E.res;R("Notifying connection successful"),b()}),this.socketStatus=m.SOCKET_STATUS.READY,this.promiseArray=[],[3,5];case 4:return x=l.sent(),this.promiseArray.forEach(function(E){return(0,E.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]}})})})},G.prototype._awsRealTimeHeaderBasedAuth=function(O){var w=O.authenticationType,f=O.payload,y=O.canonicalUri,p=O.appSyncGraphqlEndpoint,N=O.apiKey,j=O.region,W=O.credentials,$=O.jwtToken;return h(this,void 0,void 0,function(){var oe,me,X;return t(this,function(ie){switch(ie.label){case 0:return oe={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=oe[w])?(R("Authentication type "+w+" not supported"),[2,{}]):(X=u.parse(p).host,[4,me({payload:f,canonicalUri:y,appSyncGraphqlEndpoint:p,apiKey:N,region:j,host:X,credentials:W,jwtToken:$})]);case 1:return[2,ie.sent()]}})})},G.prototype._awsRealTimeOPENIDHeader=function(O){var w=O.host,f=O.jwtToken;return h(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)]}})})},G.prototype._awsRealTimeApiKeyHeader=function(O){var w=O.apiKey,f=O.host;return h(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}]})})},G.prototype._awsRealTimeIAMHeader=function(O){var w=O.payload,f=O.canonicalUri,y=O.appSyncGraphqlEndpoint,p=O.region,N=O.credentials;return h(this,void 0,void 0,function(){var j,W,$,fe,ie;return t(this,function(re){switch(re.label){case 0:return j={region:p,service:"appsync"},(W="function"==typeof N?N.call():N||{})&&"function"==typeof W.getPromise?[4,W.getPromise()]:[3,2];case 1:re.sent(),re.label=2;case 2:if(!W)throw new Error("No credentials");return[4,W];case 3:return $=re.sent(),fe={access_key:$.accessKeyId,secret_key:$.secretAccessKey,session_token:$.sessionToken},ie={url:""+y+f,body:w,method:"POST",headers:S({},A)},[2,c.Signer.sign(ie,fe,j).headers]}})})},G.prototype._initializeRetryableHandshake=function(O){var w=O.awsRealTimeUrl;return h(this,void 0,void 0,function(){return t(this,function(f){switch(f.label){case 0:return R("Initializaling retryable Handshake"),[4,T.jitteredExponentialRetry(this._initializeHandshake.bind(this),[{awsRealTimeUrl:w}])];case 1:return f.sent(),[2]}})})},G.prototype._initializeHandshake=function(O){var w=O.awsRealTimeUrl;return h(this,void 0,void 0,function(){var f,y,N=this;return t(this,function(j){switch(j.label){case 0:R("Initializing handshake "+w),j.label=1;case 1:return j.trys.push([1,4,,5]),[4,new Promise(function(W,$){var oe=G.createWebSocket(w,"graphql-ws");oe.onerror=function(){R("WebSocket connection error")},oe.onclose=function(){$(new Error("Connection handshake error"))},oe.onopen=function(){return N.awsRealTimeSocket=oe,W()}})];case 2:return j.sent(),[4,new Promise(function(W,$){var oe=!1;N.awsRealTimeSocket.onerror=function(fe){R("WebSocket closed "+JSON.stringify(fe))},N.awsRealTimeSocket.onclose=function(fe){R("WebSocket closed "+fe.reason),$(new Error(JSON.stringify(fe)))},N.awsRealTimeSocket.onmessage=function(fe){R("subscription message from AWS AppSyncRealTime: "+fe.data+" ");var ie=JSON.parse(fe.data),Q=ie.type,re=ie.payload,J=(void 0===re?{}:re).connectionTimeoutMs;if(Q===m.MESSAGE_TYPES.GQL_CONNECTION_ACK)return oe=!0,N.keepAliveTimeout=void 0===J?B:J,N.awsRealTimeSocket.onmessage=N._handleIncomingSubscriptionMessage.bind(N),N.awsRealTimeSocket.onerror=function(ae){R(ae),N._errorDisconnect(m.CONTROL_MSG.CONNECTION_CLOSED)},N.awsRealTimeSocket.onclose=function(ae){R("WebSocket closed "+ae.reason),N._errorDisconnect(m.CONTROL_MSG.CONNECTION_CLOSED)},void W("Cool, connected to AWS AppSyncRealTime");if(Q===m.MESSAGE_TYPES.GQL_CONNECTION_ERROR){var x=ie.payload,l=(void 0===x?{}:x).errors,E=(void 0===l?[]:l)[0],b=void 0===E?{}:E,M=b.errorType,Z=b.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(){oe||$(new Error("Connection timeout: ack from AWSRealTime was not received on 15000 ms"))}.bind(N),15e3)})];case 3:return j.sent(),[3,5];case 4:throw f=j.sent(),y=f.errorType,P.indexOf(f.errorCode)>=0?new T.NonRetryableError(y):y?new Error(y):f;case 5:return[2]}})})},G.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,j=this.subscriptionObserverMap.get(y)||{},W=j.observer,$=void 0===W?null:W,oe=j.query,me=void 0===oe?"":oe,X=j.variables,fe=void 0===X?{}:X,ie=j.startAckTimeoutId,Q=void 0===ie?0:ie,re=j.subscriptionReadyCallback,J=void 0===re?null:re,ee=j.subscriptionFailedCallback,x=void 0===ee?null:ee;if(R({id:y,observer:$,query:me,variables:fe}),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:fe})),"function"==typeof J&&J(),clearTimeout(Q),$?$.next({data:p,extensions:{controlMsgType:"CONNECTED"}}):R("observer not found for id: "+y),void this.subscriptionObserverMap.set(y,{observer:$,query:me,variables:fe,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:fe,startAckTimeoutId:Q,subscriptionReadyCallback:J,subscriptionFailedCallback:x,subscriptionState:m.SUBSCRIPTION_STATUS.FAILED}),$.error({errors:[S({},new o.GraphQLError("Connection failed: "+JSON.stringify(p)))]}),clearTimeout(Q),$.complete(),"function"==typeof x&&x())}},G.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},G.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})))},G.createWebSocket=function(O,w){return new WebSocket(O,w)},G._discoverAppSyncRealTimeEndpoint=function(O){return O.replace("https://","wss://").replace("http://","ws://").replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta")},G}(r.ApolloLink);L.AppSyncRealTimeSubscriptionHandshakeLink=V},45597: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}).apply(this,arguments)},h=this&&this.__awaiter||function(R,P,D,A){return new(D||(D=Promise))(function(I,B){function V(O){try{G(A.next(O))}catch(w){B(w)}}function q(O){try{G(A.throw(O))}catch(w){B(w)}}function G(O){O.done?I(O.value):function(I){return I instanceof D?I:new D(function(B){B(I)})}(O.value).then(V,q)}G((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:V(0),throw:V(1),return:V(2)},"function"==typeof Symbol&&(B[Symbol.iterator]=function(){return this}),B;function V(G){return function(O){return function(G){if(A)throw new TypeError("Generator is already executing.");for(;D;)try{if(A=1,_&&(I=2&G[0]?_.return:G[0]?_.throw||((I=_.return)&&I.call(_),0):_.next)&&!(I=I.call(_,G[1])).done)return I;switch(_=0,I&&(G=[2&G[0],I.value]),G[0]){case 0:case 1:I=G;break;case 4:return D.label++,{value:G[1],done:!1};case 5:D.label++,_=G[1],G=[0];continue;case 7:G=D.ops.pop(),D.trys.pop();continue;default:if(!(I=(I=D.trys).length>0&&I[I.length-1])&&(6===G[0]||2===G[0])){D=0;continue}if(3===G[0]&&(!I||G[1]>I[0]&&G[1]<I[3])){D.label=G[1];break}if(6===G[0]&&D.label<I[1]){D.label=I[1],I=G;break}if(I&&D.label<I[2]){D.label=I[2],D.ops.push(G);break}I[2]&&D.ops.pop(),D.trys.pop();continue}G=P.call(R,D)}catch(O){G=[6,O],_=0}finally{A=I=0}if(5&G[0])throw G[1];return{value:G[0]?G[1]:void 0,done:!0}}([G,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(43821),c=d(94464),o=d(28715),u=d(98007),v=c.rootLogger.extend("subscriptions"),m=v.extend("mqtt");L.CONTROL_EVENTS_KEY="@@controlEvents";var T=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 V=JSON.parse(I),q=A.topicObservers.get(_),G=B.reduce(function(O,w){return O[w]=O[w]||null,O},V.data||{});v("Message received",{data:G,topic:_,observers:q}),q.forEach(function(O){try{O.next(S(S({},V),{data:G}))}catch(w){v(w)}})},A.subsInfoContextKey=D,A}return s(P,R),P.prototype.request=function(D){var A,_=this,I=D.getContext(),V=I[this.subsInfoContextKey],q=I.controlMessages,G=L.CONTROL_EVENTS_KEY,O=(void 0===q?(A={},A[L.CONTROL_EVENTS_KEY]=void 0,A):q)[G],w=V.extensions,f=(void 0===w?{subscription:{newSubscriptions:{},mqttConnections:[]}}:w).subscription,y=f.newSubscriptions,p=f.mqttConnections,N=V.errors,j=void 0===N?[]:N;if(j&&j.length)return new n.Observable(function(me){return me.error(new n.ApolloError({errorMessage:"Error during subscription handshake",extraInfo:{errors:j},graphQLErrors:j})),function(){}});var W=Object.keys(y).map(function(me){return y[me].topic}),$=new Set(W.filter(function(me){return _.topicObservers.has(me)})),oe=new Set(W.filter(function(me){return!$.has(me)}));return new n.Observable(function(me){$.forEach(function(fe){_.topicObservers.get(fe).add(me);var ie=Array.from(_.topicObservers.get(fe)).find(function(){return!0}),Q=Array.from(_.clientObservers).find(function(re){return re[1].observers.has(ie)})[0];_.clientObservers.get(Q).observers.add(me)});var X=p.filter(function(fe){return fe.topics.some(function(ie){return oe.has(ie)})}).map(function(fe){var ie=fe.topics,Q=r(fe,["topics"]);return S(S({},Q),{topics:ie.filter(function(re){return oe.has(re)})})});return _.connectNewClients(X,me,D),function(){Array.from(_.clientObservers).filter(function(ie){return ie[1].observers.has(me)}).forEach(function(ie){return _.clientObservers.get(ie[0]).observers.delete(me)}),_.clientObservers.forEach(function(ie){var re=ie.client;0===ie.observers.size&&(re.isConnected()&&re.disconnect(),_.clientObservers.delete(re.clientId))}),_.clientObservers=new Map(Array.from(_.clientObservers).filter(function(ie){return ie[1].observers.size>0})),_.topicObservers.forEach(function(ie){return ie.delete(me)}),_.topicObservers=new Map(Array.from(_.topicObservers).filter(function(ie){return ie[1].size>0}))}}).filter(function(me){var X=me.extensions,fe=(void 0===X?{}:X).controlMsgType;return!0===O||!(void 0!==(void 0===fe?void 0:fe))})},P.prototype.connectNewClients=function(D,A,_){return h(this,void 0,void 0,function(){var B,V,q,G=this;return t(this,function(O){return B=u.getMainDefinition(_.query).selectionSet.selections.map(function(w){return w.name.value}),V=Promise.all(D.map(function(w){return G.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,V]})})},P.prototype.connectNewClient=function(D,A,_){return h(this,void 0,void 0,function(){var I,B,V,q,G=this;return t(this,function(O){switch(O.label){case 0:return V=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&&V.forEach(function(p){G.topicObservers.has(p)&&G.topicObservers.get(p).forEach(function(N){return N.error(S(S({},y),{permanent:!0}))})}),V.forEach(function(p){return G.topicObservers.delete(p)})},q.onMessageArrived=function(w){return G.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,V,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,V){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:V})})},P}(n.ApolloLink);L.SubscriptionHandshakeLink=T},60103:(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={}))},94464:(ne,L,d)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var s=d(40913);L.rootLogger=s.default},40913: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,T=v.length;m<T;m++,u++)o[u]=v[m];return o};Object.defineProperty(L,"__esModule",{value:!0});var S=d(65771),h=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};h.extend=t.bind(h),L.default=h},89256:function(ne,L,d){"use strict";var m,s=this&&this.__extends||(m=function(T,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])})(T,R)},function(T,R){function P(){this.constructor=T}m(T,R),T.prototype=null===R?Object.create(R):(P.prototype=R.prototype,new P)}),S=this&&this.__awaiter||function(m,T,R,P){return new(R||(R=Promise))(function(A,_){function I(q){try{V(P.next(q))}catch(G){_(G)}}function B(q){try{V(P.throw(q))}catch(G){_(G)}}function V(q){q.done?A(q.value):function(A){return A instanceof R?A:new R(function(_){_(A)})}(q.value).then(I,B)}V((P=P.apply(m,T||[])).next())})},h=this&&this.__generator||function(m,T){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(V){return function(q){return function(V){if(P)throw new TypeError("Generator is already executing.");for(;R;)try{if(P=1,D&&(A=2&V[0]?D.return:V[0]?D.throw||((A=D.return)&&A.call(D),0):D.next)&&!(A=A.call(D,V[1])).done)return A;switch(D=0,A&&(V=[2&V[0],A.value]),V[0]){case 0:case 1:A=V;break;case 4:return R.label++,{value:V[1],done:!1};case 5:R.label++,D=V[1],V=[0];continue;case 7:V=R.ops.pop(),R.trys.pop();continue;default:if(!(A=(A=R.trys).length>0&&A[A.length-1])&&(6===V[0]||2===V[0])){R=0;continue}if(3===V[0]&&(!A||V[1]>A[0]&&V[1]<A[3])){R.label=V[1];break}if(6===V[0]&&R.label<A[1]){R.label=A[1],A=V;break}if(A&&R.label<A[2]){R.label=A[2],R.ops.push(V);break}A[2]&&R.ops.pop(),R.trys.pop();continue}V=T.call(m,R)}catch(q){V=[6,q],D=0}finally{P=A=0}if(5&V[0])throw V[1];return{value:V[0]?V[1]:void 0,done:!0}}([V,q])}}};Object.defineProperty(L,"__esModule",{value:!0});var r=d(94464).rootLogger.extend("retry"),c=function(m){function T(R){var P=m.call(this,R)||this;return P.nonRetryable=!0,P}return s(T,m),T}(Error);function u(m,T,R,P){return void 0===P&&(P=1),S(this,void 0,void 0,function(){var D,A;return h(this,function(_){switch(_.label){case 0:r("Attempt #"+P+" for this vars: "+JSON.stringify(T)),_.label=1;case 1:return _.trys.push([1,3,,8]),[4,m.apply(void 0,T)];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,T,D),r("retryIn ",A),!1===A?[3,6]:[4,new Promise(function(I){return setTimeout(I,A)})];case 4:return _.sent(),[4,u(m,T,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,T,R){return void 0===R&&(R=5e3),u(m,T,function(m){return function(P){var D=100*Math.pow(2,P)+100*Math.random();return!(D>m)&&D}}(R))}},28715:function(ne){var d;ne.exports=d=function(s){var y,h=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 j="Unknown property, "+N+". Valid properties are:";for(var W in p)p.hasOwnProperty(W)&&(j=j+" "+W);throw new Error(j)}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 j,W,$=0;$<p.length;$++)if((W=N.indexOf(j="{"+$+"}"))>0){var oe=N.substring(0,W),me=N.substring(W+j.length);N=oe+p[$]+me}return N},v=[0,6,77,81,73,115,100,112,3],m=[0,4,77,81,84,84,4],T=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,j=y[p],W=j>>4,$=j&=15;p+=1;var oe,me=0,X=1;do{if(p==y.length)return[null,N];me+=(127&(oe=y[p++]))*X,X*=128}while(0!=(128&oe));var fe=p+me;if(fe>y.length)return[null,N];var ie=new T(W);switch(W){case t_CONNACK:1&y[p++]&&(ie.sessionPresent=!0),ie.returnCode=y[p++];break;case t_PUBLISH:var re=$>>1&3,J=A(y,p),ee=V(y,p+=2,J);p+=J,re>0&&(ie.messageIdentifier=A(y,p),p+=2);var x=new d.Message(y.subarray(p,fe));1==(1&$)&&(x.retained=!0),8==(8&$)&&(x.duplicate=!0),x.qos=re,x.destinationName=ee,ie.payloadMessage=x;break;case t_PUBACK:case t_PUBREC:case t_PUBREL:case t_PUBCOMP:case t_UNSUBACK:ie.messageIdentifier=A(y,p);break;case t_SUBACK:ie.messageIdentifier=A(y,p),ie.returnCode=y.subarray(p+=2,fe)}return[ie,fe]}function P(y,p,N){return p[N++]=y>>8,p[N++]=y%256,N}function D(y,p,N,j){return B(y,N,j=P(p,N,j)),j+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 j=y.charCodeAt(N);j>2047?(55296<=j&&j<=56319&&(N++,p++),p+=3):j>127?p+=2:p++}return p}function B(y,p,N){for(var j=N,W=0;W<y.length;W++){var $=y.charCodeAt(W);if(55296<=$&&$<=56319){var oe=y.charCodeAt(++W);if(isNaN(oe))throw new Error(u(c.MALFORMED_UNICODE,[$,oe]));$=oe-56320+($-55296<<10)+65536}$<=127?p[j++]=$:$<=2047?(p[j++]=$>>6&31|192,p[j++]=63&$|128):$<=65535?(p[j++]=$>>12&15|224,p[j++]=$>>6&63|128,p[j++]=63&$|128):(p[j++]=$>>18&7|240,p[j++]=$>>12&63|128,p[j++]=$>>6&63|128,p[j++]=63&$|128)}return p}function V(y,p,N){for(var W,j="",$=p;$<p+N;){var oe=y[$++];if(oe<128)W=oe;else{var me=y[$++]-128;if(me<0)throw new Error(u(c.MALFORMED_UTF,[oe.toString(16),me.toString(16),""]));if(oe<224)W=64*(oe-192)+me;else{var X=y[$++]-128;if(X<0)throw new Error(u(c.MALFORMED_UTF,[oe.toString(16),me.toString(16),X.toString(16)]));if(oe<240)W=4096*(oe-224)+64*me+X;else{var fe=y[$++]-128;if(fe<0)throw new Error(u(c.MALFORMED_UTF,[oe.toString(16),me.toString(16),X.toString(16),fe.toString(16)]));if(!(oe<248))throw new Error(u(c.MALFORMED_UTF,[oe.toString(16),me.toString(16),X.toString(16),fe.toString(16)]));W=262144*(oe-240)+4096*me+64*X+fe}}}W>65535&&(W-=65536,j+=String.fromCharCode(55296+(W>>10)),W=56320+(1023&W)),j+=String.fromCharCode(W)}return j}T.prototype.encode=function(){var W,y=(15&this.type)<<4,p=0,N=[],j=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,(W=this.willMessage.payloadBytes)instanceof Uint8Array||(W=new Uint8Array(oe)),p+=W.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+=(j=I(this.payloadMessage.destinationName))+2;var oe=this.payloadMessage.payloadBytes;p+=oe.byteLength,oe instanceof ArrayBuffer?oe=new Uint8Array(oe):oe instanceof Uint8Array||(oe=new Uint8Array(oe.buffer))}var me=function(y){var p=new Array(1),N=0;do{var j=y%128;(y>>=7)>0&&(j|=128),p[N++]=j}while(y>0&&N<4);return p}(p),X=me.length+1,fe=new ArrayBuffer(p+X),ie=new Uint8Array(fe);if(ie[0]=y,ie.set(me,1),this.type==t_PUBLISH)X=D(this.payloadMessage.destinationName,j,ie,X);else if(this.type==t_CONNECT){switch(this.mqttVersion){case 3:ie.set(v,X),X+=v.length;break;case 4:ie.set(m,X),X+=m.length}var Q=0;this.cleanSession&&(Q=2),void 0!==this.willMessage&&(Q|=4,Q|=this.willMessage.qos<<3,this.willMessage.retained&&(Q|=32)),void 0!==this.userName&&(Q|=128),void 0!==this.password&&(Q|=64),ie[X++]=Q,X=P(this.keepAliveInterval,ie,X)}switch(void 0!==this.messageIdentifier&&(X=P(this.messageIdentifier,ie,X)),this.type){case t_CONNECT:X=D(this.clientId,I(this.clientId),ie,X),void 0!==this.willMessage&&(X=D(this.willMessage.destinationName,I(this.willMessage.destinationName),ie,X),X=P(W.byteLength,ie,X),ie.set(W,X),X+=W.byteLength),void 0!==this.userName&&(X=D(this.userName,I(this.userName),ie,X)),void 0!==this.password&&(X=D(this.password,I(this.password),ie,X));break;case t_PUBLISH:ie.set(oe,X);break;case t_SUBSCRIBE:for($=0;$<this.topics.length;$++)X=D(this.topics[$],N[$],ie,X),ie[X++]=this.requestedQos[$];break;case t_UNSUBSCRIBE:for($=0;$<this.topics.length;$++)X=D(this.topics[$],N[$],ie,X)}return fe};var q=function(y,p){this._client=y,this._keepAliveInterval=1e3*p,this.isReset=!1;var N=new T(t_PINGREQ).encode(),j=function($){return function(){return W.apply($)}},W=function(){this.isReset?(this.isReset=!1,this._client._trace("Pinger.doPing","send PINGREQ"),this._client.socket.send(N),this.timeout=setTimeout(j(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(j(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},G=function(y,p,N,j){var $,oe,me;p||(p=30),this.timeout=setTimeout(($=N,oe=y,me=j,function(){return $.apply(oe,me)}),1e3*p),this.cancel=function(){clearTimeout(this.timeout)}},O=function(y,p,N,j,W){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,j,W),this.host=p,this.port=N,this.path=j,this.uri=y,this.clientId=W,this._wsuri=null,this._localKey=p+":"+N+("/mqtt"!=j?":"+j:"")+":"+W+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,h)(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 T(t_SUBSCRIBE);N.topics=[y],N.requestedQos=void 0!==p.qos?[p.qos]:[0],p.onSuccess&&(N.onSuccess=function(j){p.onSuccess({invocationContext:p.invocationContext,grantedQos:j})}),p.onFailure&&(N.onFailure=function(j){p.onFailure({invocationContext:p.invocationContext,errorCode:j,errorMessage:u(j)})}),p.timeout&&(N.timeOut=new G(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 T(t_UNSUBSCRIBE);N.topics=[y],p.onSuccess&&(N.callback=function(){p.onSuccess({invocationContext:p.invocationContext})}),p.timeout&&(N.timeOut=new G(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 T(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 T(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 G(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};switch(p.type){case t_PUBLISH:p.pubRecReceived&&(N.pubRecReceived=!0),N.payloadMessage={};for(var j="",W=p.payloadMessage.payloadBytes,$=0;$<W.length;$++)W[$]<=15?j=j+"0"+W[$].toString(16):j+=W[$].toString(16);N.payloadMessage.payloadHex=j,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);break;default:throw Error(u(c.INVALID_STORED_DATA,[y+this._localKey+p.messageIdentifier,N]))}h.setItem(y+this._localKey+p.messageIdentifier,JSON.stringify(N))},O.prototype.restore=function(y){var p=h.getItem(y),N=JSON.parse(p),j=new T(N.type,N);switch(N.type){case t_PUBLISH:for(var W=N.payloadMessage.payloadHex,$=new ArrayBuffer(W.length/2),oe=new Uint8Array($),me=0;W.length>=2;){var X=parseInt(W.substring(0,2),16);W=W.substring(2,W.length),oe[me++]=X}var fe=new d.Message(oe);fe.qos=N.payloadMessage.qos,fe.destinationName=N.payloadMessage.destinationName,N.payloadMessage.duplicate&&(fe.duplicate=!0),N.payloadMessage.retained&&(fe.retained=!0),j.payloadMessage=fe;break;default:throw Error(u(c.INVALID_STORED_DATA,[y,p]))}0===y.indexOf("Sent:"+this._localKey)?(j.payloadMessage.duplicate=!0,this._sentMessages[j.messageIdentifier]=j):0===y.indexOf("Received:"+this._localKey)&&(this._receivedMessages[j.messageIdentifier]=j)},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 T(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 j=new Uint8Array(this.receiveBuffer.length+p.length);j.set(this.receiveBuffer),j.set(p,this.receiveBuffer.length),p=j,delete this.receiveBuffer}try{for(var W=0;W<p.length;){var $=R(p,W),oe=$[0];if(W=$[1],null===oe)break;N.push(oe)}W<p.length&&(this.receiveBuffer=p.subarray(W))}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)h.removeItem("Sent:"+this._localKey+(fe=this._sentMessages[p]).messageIdentifier);for(var p in this._sentMessages={},this._receivedMessages)h.removeItem("Received:"+this._localKey+(ie=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 N=[];for(var j in this._sentMessages)this._sentMessages.hasOwnProperty(j)&&N.push(this._sentMessages[j]);if(this._buffered_msg_queue.length>0)for(var W=null;W=this._buffered_msg_queue.pop();)N.push(W),this.onMessageDelivered&&(this._notify_msg_sent[W]=this.onMessageDelivered(W.payloadMessage));N=N.sort(function(J,ee){return J.sequence-ee.sequence});for(var $=0,oe=N.length;$<oe;$++)if((fe=N[$]).type==t_PUBLISH&&fe.pubRecReceived){var me=new T(t_PUBREL,{messageIdentifier:fe.messageIdentifier});this._schedule_message(me)}else this._schedule_message(fe);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:(fe=this._sentMessages[y.messageIdentifier])&&(delete this._sentMessages[y.messageIdentifier],h.removeItem("Sent:"+this._localKey+y.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(fe.payloadMessage));break;case t_PUBREC:(fe=this._sentMessages[y.messageIdentifier])&&(fe.pubRecReceived=!0,me=new T(t_PUBREL,{messageIdentifier:y.messageIdentifier}),this.store("Sent:",fe),this._schedule_message(me));break;case t_PUBREL:var ie=this._receivedMessages[y.messageIdentifier];h.removeItem("Received:"+this._localKey+y.messageIdentifier),ie&&(this._receiveMessage(ie),delete this._receivedMessages[y.messageIdentifier]);var Q=new T(t_PUBCOMP,{messageIdentifier:y.messageIdentifier});this._schedule_message(Q);break;case t_PUBCOMP:var fe=this._sentMessages[y.messageIdentifier];delete this._sentMessages[y.messageIdentifier],h.removeItem("Sent:"+this._localKey+y.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(fe.payloadMessage);break;case t_SUBACK:(fe=this._sentMessages[y.messageIdentifier])&&(fe.timeOut&&fe.timeOut.cancel(),128===y.returnCode[0]?fe.onFailure&&fe.onFailure(y.returnCode):fe.onSuccess&&fe.onSuccess(y.returnCode),delete this._sentMessages[y.messageIdentifier]);break;case t_UNSUBACK:(fe=this._sentMessages[y.messageIdentifier])&&(fe.timeOut&&fe.timeOut.cancel(),fe.callback&&fe.callback(),delete this._sentMessages[y.messageIdentifier]);break;case t_PINGRESP:this.sendPinger.reset();break;case t_DISCONNECT:this._disconnected(c.INVALID_MQTT_MESSAGE_TYPE.code,u(c.INVALID_MQTT_MESSAGE_TYPE,[y.type]));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 T(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 T(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 G(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)void 0!==y[p]&&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 j=arguments.length;p<j;p++)this._traceBuffer.length==this._MAX_TRACE_ENTRIES&&this._traceBuffer.shift(),this._traceBuffer.push(0===p||void 0===arguments[p]?arguments[p]:" "+JSON.stringify(arguments[p]))}},O.prototype._traceMask=function(y,p){var N={};for(var j in y)y.hasOwnProperty(j)&&(N[j]=j==p?"******":y[j]);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,j=0,W=!1,$=!1;Object.defineProperties(this,{payloadString:{enumerable:!0,get:function(){return"string"==typeof p?p:V(p,0,p.length)}},payloadBytes:{enumerable:!0,get:function(){if("string"==typeof p){var oe=new ArrayBuffer(I(p)),me=new Uint8Array(oe);return B(p,me,0),me}return p}},destinationName:{enumerable:!0,get:function(){return N},set:function(oe){if("string"!=typeof oe)throw new Error(u(c.INVALID_ARGUMENT,[oe,"newDestinationName"]));N=oe}},qos:{enumerable:!0,get:function(){return j},set:function(oe){if(0!==oe&&1!==oe&&2!==oe)throw new Error("Invalid argument:"+oe);j=oe}},retained:{enumerable:!0,get:function(){return W},set:function(oe){if("boolean"!=typeof oe)throw new Error(u(c.INVALID_ARGUMENT,[oe,"newRetained"]));W=oe}},topic:{enumerable:!0,get:function(){return N},set:function(oe){N=oe}},duplicate:{enumerable:!0,get:function(){return $},set:function(oe){$=oe}}})};return{Client:function(y,p,N,j){var W;if("string"!=typeof y)throw new Error(u(c.INVALID_TYPE,[typeof y,"host"]));if(2==arguments.length){j=p;var $=(W=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&&(j=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 oe=-1!==y.indexOf(":")&&"["!==y.slice(0,1)&&"]"!==y.slice(-1);W="ws://"+(oe?"["+y+"]":y)+":"+p+N}for(var me=0,X=0;X<j.length;X++){var fe=j.charCodeAt(X);55296<=fe&&fe<=56319&&X++,me++}if("string"!=typeof j||me>65535)throw new Error(u(c.INVALID_ARGUMENT,[j,"clientId"]));var ie=new O(W,y,p,N,j);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 W},set:function(){throw new Error(u(c.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return ie.clientId},set:function(){throw new Error(u(c.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return ie.onConnected},set:function(Q){if("function"!=typeof Q)throw new Error(u(c.INVALID_TYPE,[typeof Q,"onConnected"]));ie.onConnected=Q}},disconnectedPublishing:{get:function(){return ie.disconnectedPublishing},set:function(Q){ie.disconnectedPublishing=Q}},disconnectedBufferSize:{get:function(){return ie.disconnectedBufferSize},set:function(Q){ie.disconnectedBufferSize=Q}},onConnectionLost:{get:function(){return ie.onConnectionLost},set:function(Q){if("function"!=typeof Q)throw new Error(u(c.INVALID_TYPE,[typeof Q,"onConnectionLost"]));ie.onConnectionLost=Q}},onMessageDelivered:{get:function(){return ie.onMessageDelivered},set:function(Q){if("function"!=typeof Q)throw new Error(u(c.INVALID_TYPE,[typeof Q,"onMessageDelivered"]));ie.onMessageDelivered=Q}},onMessageArrived:{get:function(){return ie.onMessageArrived},set:function(Q){if("function"!=typeof Q)throw new Error(u(c.INVALID_TYPE,[typeof Q,"onMessageArrived"]));ie.onMessageArrived=Q}},trace:{get:function(){return ie.traceFunction},set:function(Q){if("function"!=typeof Q)throw new Error(u(c.INVALID_TYPE,[typeof Q,"onTrace"]));ie.traceFunction=Q}}}),this.connect=function(Q){if(r(Q=Q||{},{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===Q.keepAliveInterval&&(Q.keepAliveInterval=60),Q.mqttVersion>4||Q.mqttVersion<3)throw new Error(u(c.INVALID_ARGUMENT,[Q.mqttVersion,"connectOptions.mqttVersion"]));if(void 0===Q.mqttVersion?(Q.mqttVersionExplicit=!1,Q.mqttVersion=4):Q.mqttVersionExplicit=!0,void 0!==Q.password&&void 0===Q.userName)throw new Error(u(c.INVALID_ARGUMENT,[Q.password,"connectOptions.password"]));if(Q.willMessage){if(!(Q.willMessage instanceof f))throw new Error(u(c.INVALID_TYPE,[Q.willMessage,"connectOptions.willMessage"]));if(Q.willMessage.stringPayload=null,void 0===Q.willMessage.destinationName)throw new Error(u(c.INVALID_TYPE,[typeof Q.willMessage.destinationName,"connectOptions.willMessage.destinationName"]))}if(void 0===Q.cleanSession&&(Q.cleanSession=!0),Q.hosts){if(!(Q.hosts instanceof Array))throw new Error(u(c.INVALID_ARGUMENT,[Q.hosts,"connectOptions.hosts"]));if(Q.hosts.length<1)throw new Error(u(c.INVALID_ARGUMENT,[Q.hosts,"connectOptions.hosts"]));for(var re=!1,J=0;J<Q.hosts.length;J++){if("string"!=typeof Q.hosts[J])throw new Error(u(c.INVALID_TYPE,[typeof Q.hosts[J],"connectOptions.hosts["+J+"]"]));if(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/.test(Q.hosts[J])){if(0===J)re=!0;else if(!re)throw new Error(u(c.INVALID_ARGUMENT,[Q.hosts[J],"connectOptions.hosts["+J+"]"]))}else if(re)throw new Error(u(c.INVALID_ARGUMENT,[Q.hosts[J],"connectOptions.hosts["+J+"]"]))}if(re)Q.uris=Q.hosts;else{if(!Q.ports)throw new Error(u(c.INVALID_ARGUMENT,[Q.ports,"connectOptions.ports"]));if(!(Q.ports instanceof Array))throw new Error(u(c.INVALID_ARGUMENT,[Q.ports,"connectOptions.ports"]));if(Q.hosts.length!==Q.ports.length)throw new Error(u(c.INVALID_ARGUMENT,[Q.ports,"connectOptions.ports"]));for(Q.uris=[],J=0;J<Q.hosts.length;J++){if("number"!=typeof Q.ports[J]||Q.ports[J]<0)throw new Error(u(c.INVALID_TYPE,[typeof Q.ports[J],"connectOptions.ports["+J+"]"]));var ee=Q.hosts[J],x=Q.ports[J],l=-1!==ee.indexOf(":");Q.uris.push(W="ws://"+(l?"["+ee+"]":ee)+":"+x+N)}}}ie.connect(Q)},this.subscribe=function(Q,re){if("string"!=typeof Q)throw new Error("Invalid argument:"+Q);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(void 0!==re.qos&&0!==re.qos&&1!==re.qos&&2!==re.qos)throw new Error(u(c.INVALID_ARGUMENT,[re.qos,"subscribeOptions.qos"]));ie.subscribe(Q,re)},this.unsubscribe=function(Q,re){if("string"!=typeof Q)throw new Error("Invalid argument:"+Q);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.");ie.unsubscribe(Q,re)},this.send=function(Q,re,J,ee){var x;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(Q instanceof f)&&"string"!=typeof Q)throw new Error("Invalid argument:"+typeof Q);if(void 0===(x=Q).destinationName)throw new Error(u(c.INVALID_ARGUMENT,[x.destinationName,"Message.destinationName"]));ie.send(x)}else(x=new f(re)).destinationName=Q,arguments.length>=3&&(x.qos=J),arguments.length>=4&&(x.retained=ee),ie.send(x)},this.publish=function(Q,re,J,ee){var x;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(Q instanceof f)&&"string"!=typeof Q)throw new Error("Invalid argument:"+typeof Q);if(void 0===(x=Q).destinationName)throw new Error(u(c.INVALID_ARGUMENT,[x.destinationName,"Message.destinationName"]));ie.send(x)}else(x=new f(re)).destinationName=Q,arguments.length>=3&&(x.qos=J),arguments.length>=4&&(x.retained=ee),ie.send(x)},this.disconnect=function(){ie.disconnect()},this.getTraceLog=function(){return ie.getTraceLog()},this.startTrace=function(){ie.startTrace()},this.stopTrace=function(){ie.stopTrace()},this.isConnected=function(){return ie.connected}},Message:f}}("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},18426:(ne,L,d)=>{d(12885);var s=d(72338);"undefined"!=typeof window&&(window.AWS=s),ne.exports=s,"undefined"!=typeof self&&(self.AWS=s)},83073:(ne,L,d)=>{d(12885);var s=d(72338),S=s.Service,h=s.apiLoader;h.services.cognitoidentity={},s.CognitoIdentity=S.defineService("cognitoidentity",["2014-06-30"]),Object.defineProperty(h.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},84032:(ne,L,d)=>{d(12885);var s=d(72338),S=s.Service,h=s.apiLoader;h.services.sts={},s.STS=S.defineService("sts",["2011-06-15"]),d(25974),Object.defineProperty(h.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},29956: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},85856:(ne,L,d)=>{var s=d(28325),S=d(24593),h=d(7095),t=d(288);ne.exports={createHash:function(n){if("md5"===(n=n.toLowerCase()))return new S;if("sha256"===n)return new t;if("sha1"===n)return new h;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(h,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")}}},75513:(ne,L,d)=>{var s=d(2341).lW;"undefined"!=typeof ArrayBuffer&&void 0===ArrayBuffer.isView&&(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(r){return"string"==typeof r?0===r.length:0===r.byteLength},convertToBuffer:function(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)}}},28325:(ne,L,d)=>{var s=d(75513);function S(t,r){this.hash=new t,this.outer=new t;var n=function(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)}},24593:(ne,L,d)=>{var s=d(75513),S=d(2341).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(T,R,P,D,A,_){return((R=(R+T&4294967295)+(D+_&4294967295)&4294967295)<<A|R>>>32-A)+P&4294967295}function o(T,R,P,D,A,_,I){return c(R&P|~R&D,T,R,A,_,I)}function u(T,R,P,D,A,_,I){return c(R&D|P&~D,T,R,A,_,I)}function v(T,R,P,D,A,_,I){return c(R^P^D,T,R,A,_,I)}function m(T,R,P,D,A,_,I){return c(P^(R|~D),T,R,A,_,I)}ne.exports=n,n.BLOCK_SIZE=64,n.prototype.update=function(T){if(s.isEmptyData(T))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var R=s.convertToBuffer(T),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(T){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 V=new S(B.buffer,B.byteOffset,B.byteLength);return T?V.toString(T):V},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}},7095:(ne,L,d)=>{var s=d(2341).lW,S=d(75513);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),T=new DataView(m.buffer);return T.setUint32(0,this.h0,!1),T.setUint32(4,this.h1,!1),T.setUint32(8,this.h2,!1),T.setUint32(12,this.h3,!1),T.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,T=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=(T<<5|T>>>27)+_+A+I+(0|this.block[v]);A=D,D=P,P=R<<30|R>>>2,R=T,T=B}for(this.h0=this.h0+T|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}},288:(ne,L,d)=>{var s=d(2341).lW,S=d(75513),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),T=this.bufferLength;if(m.setUint8(this.bufferLength++,128),T%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,T=m[0],R=m[1],P=m[2],D=m[3],A=m[4],_=m[5],I=m[6],B=m[7],V=0;V<64;V++){if(V<16)this.temp[V]=(255&v[4*V])<<24|(255&v[4*V+1])<<16|(255&v[4*V+2])<<8|255&v[4*V+3];else{var q=this.temp[V-2];this.temp[V]=(((q>>>17|q<<15)^(q>>>19|q<<13)^q>>>10)+this.temp[V-7]|0)+((((q=this.temp[V-15])>>>7|q<<25)^(q>>>18|q<<14)^q>>>3)+this.temp[V-16]|0)}var w=(((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&_^~A&I)|0)+(B+(r[V]+this.temp[V]|0)|0)|0,f=((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+(T&R^T&P^R&P)|0;B=I,I=_,_=A,A=D+w|0,D=P,P=R,R=T,T=w+f|0}m[0]+=T,m[1]+=R,m[2]+=P,m[3]+=D,m[4]+=A,m[5]+=_,m[6]+=I,m[7]+=B}},12885:(ne,L,d)=>{var s=d(84964);s.crypto.lib=d(85856),s.Buffer=d(2341).lW,s.url=d(73934),s.querystring=d(93143),s.realClock=d(43984),s.environment="js",s.createEventStream=d(67681).createEventStream,s.isBrowser=function(){return!0},s.isNode=function(){return!1};var S=d(72338);if(ne.exports=S,d(43981),d(92567),d(25658),d(54876),d(19e3),d(6932),d(21640),S.XML.Parser=d(681),d(68214),void 0===h)var h={browser:!0}},91654:(ne,L,d)=>{var S,s=d(72338);d(43981),d(92567),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 v,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?r.credentials.get(function(v){v&&(v=c("Could not load credentials from "+r.credentials.constructor.name,v)),n(v)}):(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},98914:(ne,L,d)=>{var s=d(72338);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(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(m){}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}},72338:(ne,L,d)=>{var s={util:d(84964)};({}).toString(),ne.exports=s,s.util.update(s,{VERSION:"2.931.0",Signers:{},Protocol:{Json:d(80537),Query:d(78298),Rest:d(51888),RestJson:d(10673),RestXml:d(68683)},XML:{Builder:d(39244),Parser:null},JSON:{Builder:d(70720),Parser:d(46179)},Model:{Api:d(68734),Operation:d(65105),Shape:d(74822),Paginator:d(68140),ResourceWaiter:d(72820)},apiLoader:d(29956),EndpointCache:d(28937).$}),d(31893),d(70014),d(91654),d(99794),d(23758),d(60782),d(53871),d(11277),d(15198),d(65758),s.events=new s.SequentialExecutor,s.util.memoizedProperty(s,"endpointCache",function(){return new s.EndpointCache(s.config.endpointCacheSize)},!0)},43981:(ne,L,d)=>{var s=d(72338);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 h=arguments[0].credentials||arguments[0];this.accessKeyId=h.accessKeyId,this.secretAccessKey=h.secretAccessKey,this.sessionToken=h.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var h=s.util.date.getDate().getTime(),t=new Date(h+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||this.expired||!this.accessKeyId||!this.secretAccessKey},get:function(h){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),h&&h(r)}):h&&h()},refresh:function(h){this.expired=!1,h()},coalesceRefresh:function(h,t){var r=this;1===r.refreshCallbacks.push(h)&&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(h){h()}}),s.Credentials.addPromisesToClass=function(h){this.prototype.getPromise=s.util.promisifyMethod("get",h),this.prototype.refreshPromise=s.util.promisifyMethod("refresh",h)},s.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},s.util.addPromises(s.Credentials)},54876:(ne,L,d)=>{var s=d(72338),S=d(84032);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)}})},6932:(ne,L,d)=>{var s=d(72338),S=d(83073),h=d(84032);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 h(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(c){}},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(r){return{}}}()})},92567:(ne,L,d)=>{var s=d(72338);s.CredentialProviderChain=s.util.inherit(s.Credentials,{constructor:function(h){this.providers=h||s.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(h){var t=this;if(0===t.providers.length)return h(new Error("No providers")),t;if(1===t.resolveCallbacks.push(h)){let o=function(u,v){if(!u&&v||r===n.length)return s.util.arrayEach(t.resolveCallbacks,function(T){T(u,v)}),void(t.resolveCallbacks.length=0);var m=n[r++];(v="function"==typeof m?m.call():m).get?v.get(function(T){o(T,T?null:v)}):o(null,v)};var r=0,n=t.providers.slice(0);o()}return t}}),s.CredentialProviderChain.defaultProviders=[],s.CredentialProviderChain.addPromisesToClass=function(h){this.prototype.resolvePromise=s.util.promisifyMethod("resolve",h)},s.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},s.util.addPromises(s.CredentialProviderChain)},21640:(ne,L,d)=>{var s=d(72338),S=d(84032);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})}})},25658:(ne,L,d)=>{var s=d(72338),S=d(84032);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})}})},19e3:(ne,L,d)=>{var s=d(72338),S=d(84032);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 h=s.util.merge({},this._clientConfig);h.params=this.params,this.service=new S(h)}}})},73157:(ne,L,d)=>{var s=d(72338),S=d(84964),h=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function t(A){var _=A.service,I=_.api||{},V={};return _.config.region&&(V.region=_.config.region),I.serviceId&&(V.serviceId=I.serviceId),_.config.credentials.accessKeyId&&(V.accessKeyId=_.config.credentials.accessKeyId),V}function r(A,_,I){!I||null==_||"structure"===I.type&&I.required&&I.required.length>0&&S.arrayEach(I.required,function(B){var V=I.members[B];!0===V.endpointDiscoveryId?A[V.isLocationName?V.name:B]=String(_[B]):r(A,_[B],V)})}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),G=t(A);Object.keys(q).length>0&&(G=S.update(G,q),B&&(G.operation=B.name));var O=s.endpointCache.get(G);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(G,[{Address:"",CachePeriodInMinutes:1}]),w.send(function(f,y){y&&y.Endpoints?s.endpointCache.put(G,y.Endpoints):f&&s.endpointCache.put(G,[{Address:"",CachePeriodInMinutes:1}])})}}var o={};function u(A,_){var I=A.service,B=I.api,V=B.operations?B.operations[A.operation]:void 0,G=n(A,V?V.input:void 0),O=t(A);Object.keys(G).length>0&&(O=S.update(O,G),V&&(O.operation=V.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:V.name,Identifiers:G});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(W){W.request.response.error=S.error(p,{retryable:!1}),W.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,V=B.service.api.operations||{},G=n(B,V[B.operation]?V[B.operation].input:void 0),O=t(B);Object.keys(G).length>0&&(O=S.update(O,G),V[B.operation]&&(O.operation=V[B.operation].name)),s.endpointCache.remove(O)}}function R(A){return["false","0"].indexOf(A)>=0}ne.exports={discoverEndpoint:function(A,_){var I=A.service||{};if(function(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 V=(I.api.operations||{})[A.operation],q=V?V.endpointDiscoveryRequired:"NULL",G=function(A){var _=A.service||{};if(void 0!==_.config.endpointDiscoveryEnabled)return _.config.endpointDiscoveryEnabled;if(!S.isBrowser()){for(var I=0;I<h.length;I++){var B=h[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 V={};try{V=s.util.iniLoader?s.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[s.util.sharedConfigFileEnv]}):{}}catch(G){}var q=V[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((G||O)&&A.httpRequest.appendToUserAgent("endpoint-discovery"),q){case"OPTIONAL":(G||O)&&(c(A),A.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",m)),_();break;case"REQUIRED":if(!1===G){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;case"NULL":default:_()}},requiredDiscoverEndpoint:u,optionalDiscoverEndpoint:c,marshallCustomIdentifiers:n,getCacheKey:t,invalidateCachedEndpoint:m}},67681:(ne,L,d)=>{var s=d(36262).eventMessageChunker,S=d(26505).parseEvent;ne.exports={createEventStream:function(t,r,n){for(var c=s(t),o=[],u=0;u<c.length;u++)o.push(S(r,c[u],n));return o}}},36262:ne=>{ne.exports={eventMessageChunker:function(d){for(var s=[],S=0;S<d.length;){var h=d.readInt32BE(S),t=d.slice(S,h+S);S+=h,s.push(t)}return s}}},57976:(ne,L,d)=>{var s=d(72338).util,S=s.buffer.toBuffer;function h(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--);}h.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 h(n)},h.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)},h.prototype.toString=function(){return String(this.valueOf())},ne.exports={Int64:h}},26505:(ne,L,d)=>{var s=d(86147).parseMessage;ne.exports={parseEvent:function(t,r,n){var c=s(r),o=c.headers[":message-type"];if(o){if("error"===o.value)throw function(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={},T=v.eventPayloadMemberName;if(T){var R=v.members[T];m[T]="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,_}}}},86147:(ne,L,d)=>{var s=d(57976).Int64,S=d(30483).splitMessage,h="boolean";function T(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:h,value:!0};break;case 1:D[I]={type:h,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 V=P.readUInt16BE(A);D[I]={type:"string",value:P.slice(A+=2,A+V).toString()},A+=V;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(P){var D=S(P);return{headers:T(D.headers),body:D.body}}}},30483:(ne,L,d)=>{var s=d(72338).util,S=s.buffer.toBuffer;ne.exports={splitMessage:function(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 T=12+o.readUInt32BE(4);return{headers:o.slice(12,T),body:o.slice(T,o.length-4)}}}},23758:(ne,L,d)=>{var s=d(72338),S=d(31893),h=d(73157).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 T=s.util.copy(u.params),R=0,P=m.length;R<P;R++)T[m[R]]||(T[m[R]]=s.util.uuid.v4());u.params=T}}}}),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,T=m&&(s.util.Buffer.isBuffer(m)||"string"==typeof m),R=u.httpRequest.headers;if(v.httpChecksumRequired&&u.service.config.computeChecksums&&T&&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],T=m?m.authtype:"";if(!u.service.api.signatureVersion&&!T&&!u.service.config.signatureVersion)return v();if(u.service.getSignerClass(u)===s.Signers.V4){var R=u.httpRequest.body||"";if(T.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(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 T=s.util.string.byteLength(u.httpRequest.body);u.httpRequest.headers["Content-Length"]=T}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",h,!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(V){u.response.error=V}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(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,T){m.httpResponse.statusCode=u,m.httpResponse.statusMessage=T,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,T=!1;u.error&&(m=u.error.retryDelay||0,u.error.retryable&&u.retryCount<u.maxRetries?(u.retryCount++,T=!0):u.error.redirect&&u.redirectCount<u.maxRedirects&&(u.redirectCount++,T=!0)),T&&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){var v;"NetworkingError"===c.code&&("ENOTFOUND"===(v=c).errno||"number"==typeof v.errno&&"function"==typeof s.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(s.util.getSystemErrorName(v.errno)>=0))&&(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 T=function(){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(55620).inspect(_,!0,null),V="";return D&&(V+="\x1b[33m"),V+="[AWS "+o.service.serviceIdentifier+" "+A,V+=" "+P.toString()+"s "+c.retryCount+" retries]",D&&(V+="\x1b[0;1m"),V+=" "+s.util.string.lowerFirst(o.operation),V+="("+B+")",D&&(V+="\x1b[0m"),V}();"function"==typeof u.log?u.log(T):"function"==typeof u.write&&u.write(T+"\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(80537);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(51888);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(10673);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(68683);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(78298);r("BUILD","build",n.buildRequest),r("EXTRACT_DATA","extractData",n.extractData),r("EXTRACT_ERROR","extractError",n.extractError)})}},99794:(ne,L,d)=>{var s=d(72338),S=s.util.inherit;s.Endpoint=S({constructor:function(t,r){if(s.util.hideProperties(this,["slashes","auth","hash","search","query"]),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}},68214:(ne,L,d)=>{var s=d(72338),S=d(14943).EventEmitter;d(99794),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 T=new XMLHttpRequest,R=!1;t.stream=T,T.addEventListener("readystatechange",function(){try{if(0===T.status)return}catch(P){return}this.readyState>=this.HEADERS_RECEIVED&&!R&&(v.statusCode=T.status,v.headers=o.parseHeaders(T.getAllResponseHeaders()),v.emit("headers",v.statusCode,v.headers,T.statusText),R=!0),this.readyState===this.DONE&&o.finishRequest(T,v)},!1),T.upload.addEventListener("progress",function(P){v.emit("sendProgress",P)}),T.addEventListener("progress",function(P){v.emit("receiveProgress",P)},!1),T.addEventListener("timeout",function(){c(s.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),T.addEventListener("error",function(){c(s.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),T.addEventListener("abort",function(){c(s.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),n(v),T.open(t.method,m,!1!==r.xhrAsync),s.util.each(t.headers,function(P,D){"Content-Length"!==P&&"User-Agent"!==P&&"Host"!==P&&T.setRequestHeader(P,D)}),r.timeout&&!1!==r.xhrAsync&&(T.timeout=r.timeout),r.xhrWithCredentials&&(T.withCredentials=!0);try{T.responseType="arraybuffer"}catch(P){}try{t.body?T.send(t.body):T.send()}catch(P){if(!t.body||"object"!=typeof t.body.buffer)throw P;T.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(v){}n&&r.emit("data",n),r.emit("end")}}),s.HttpClient.prototype=s.XHRClient.prototype,s.HttpClient.streamsApiVersion=1},70720:(ne,L,d)=>{var s=d(84964);function S(){}function h(o,u){if(u&&null!=o)switch(u.type){case"structure":return function(o,u){var v={};return s.each(o,function(m,T){var R=u.members[m];if(R){if("body"!==R.location)return;var P=R.isLocationName?R.name:m,D=h(T,R);void 0!==D&&(v[P]=D)}}),v}(o,u);case"map":return function(o,u){var v={};return s.each(o,function(m,T){var R=h(T,u.value);void 0!==R&&(v[m]=R)}),v}(o,u);case"list":return function(o,u){var v=[];return s.arrayEach(o,function(m){var T=h(m,u.member);void 0!==T&&v.push(T)}),v}(o,u);default:return function(o,u){return u.toWireFormat(o)}(o,u)}}S.prototype.build=function(o,u){return JSON.stringify(h(o,u))},ne.exports=S},46179:(ne,L,d)=>{var s=d(84964);function S(){}function h(o,u){if(u&&void 0!==o)switch(u.type){case"structure":return function(o,u){if(null!=o){var v={};return s.each(u.members,function(T,R){var P=R.isLocationName?R.name:T;if(Object.prototype.hasOwnProperty.call(o,P)){var A=h(o[P],R);void 0!==A&&(v[T]=A)}}),v}}(o,u);case"map":return function(o,u){if(null!=o){var v={};return s.each(o,function(m,T){var R=h(T,u.value);v[m]=void 0===R?null:R}),v}}(o,u);case"list":return function(o,u){if(null!=o){var v=[];return s.arrayEach(o,function(m){var T=h(m,u.member);v.push(void 0===T?null:T)}),v}}(o,u);default:return function(o,u){return u.toType(o)}(o,u)}}S.prototype.parse=function(o,u){return h(JSON.parse(o),u)},ne.exports=S},68734:(ne,L,d)=>{var s=d(50767),S=d(65105),h=d(74822),t=d(68140),r=d(72820),n=d(65359),c=d(84964),o=c.property,u=c.memoizedProperty;ne.exports=function(m,T){var R=this;m=m||{},(T=T||{}).api=this,m.metadata=m.metadata||{};var P=T.serviceIdentifier;delete T.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,T,function(A,_){return new S(A,_,T)},c.string.lowerFirst,function(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,T,function(A,_){return h.create(_,T)})),o(this,"paginators",new s(m.paginators,T,function(A,_){return new t(A,_,T)})),o(this,"waiters",new s(m.waiters,T,function(A,_){return new r(A,_,T)},c.string.lowerFirst)),T.documentation&&(o(this,"documentation",m.documentation),o(this,"documentationUrl",m.documentationUrl))}},50767:(ne,L,d)=>{var s=d(84964).memoizedProperty;function S(t,r,n,c){s(this,c(t),function(){return n(t,r)})}ne.exports=function(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]))}},65105:(ne,L,d)=>{var s=d(74822),S=d(84964),h=S.property,t=S.memoizedProperty;ne.exports=function(c,o,u){var v=this;u=u||{},h(this,"name",o.name||c),h(this,"api",u.api,!1),o.http=o.http||{},h(this,"endpoint",o.endpoint),h(this,"httpMethod",o.http.method||"POST"),h(this,"httpPath",o.http.requestUri||"/"),h(this,"authtype",o.authtype||""),h(this,"endpointDiscoveryRequired",o.endpointdiscovery?o.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL"),h(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 T=0;T<o.errors.length;T++)m.push(s.create(o.errors[T],u));return m}),t(this,"paginator",function(){return u.api.paginators[c]}),u.documentation&&(h(this,"documentation",o.documentation),h(this,"documentationUrl",o.documentationUrl)),t(this,"idempotentMembers",function(){var m=[],T=v.input,R=T.members;if(!T.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(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)})}},68140:(ne,L,d)=>{var s=d(84964).property;ne.exports=function(h,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)}},72820:(ne,L,d)=>{var s=d(84964),S=s.property;ne.exports=function(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)})}},74822:(ne,L,d)=>{var s=d(50767),S=d(84964);function h(_,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||{},h(this,"shape",_.shape),h(this,"api",I.api,!1),h(this,"type",_.type),h(this,"enum",_.enum),h(this,"min",_.min),h(this,"max",_.max),h(this,"pattern",_.pattern),h(this,"location",_.location||this.location||"body"),h(this,"name",this.name||_.xmlName||_.queryName||_.locationName||B),h(this,"isStreaming",_.streaming||this.isStreaming||!1),h(this,"requiresLength",_.requiresLength,!1),h(this,"isComposite",_.isComposite||!1),h(this,"isShape",!0,!1),h(this,"isQueryName",Boolean(_.queryName),!1),h(this,"isLocationName",Boolean(_.locationName),!1),h(this,"isIdempotent",!0===_.idempotencyToken),h(this,"isJsonValue",!0===_.jsonvalue),h(this,"isSensitive",!0===_.sensitive||_.prototype&&!0===_.prototype.sensitive),h(this,"isEventStream",Boolean(_.eventstream),!1),h(this,"isEvent",Boolean(_.event),!1),h(this,"isEventPayload",Boolean(_.eventpayload),!1),h(this,"isEventHeader",Boolean(_.eventheader),!1),h(this,"isTimestampFormatSet",Boolean(_.timestampFormat)||_.prototype&&!0===_.prototype.isTimestampFormatSet,!1),h(this,"endpointDiscoveryId",Boolean(_.endpointdiscoveryid),!1),h(this,"hostLabel",Boolean(_.hostLabel),!1),I.documentation&&(h(this,"documentation",_.documentation),h(this,"documentationUrl",_.documentationUrl)),_.xmlAttribute&&h(this,"isXmlAttribute",_.xmlAttribute||!1),h(this,"defaultValue",null),this.toWireFormat=function(V){return null==V?"":V},this.toType=function(V){return V}}function n(_){r.apply(this,arguments),h(this,"isComposite",!0),_.flattened&&h(this,"flattened",_.flattened||!1)}function c(_,I){var B=this,V=null,q=!this.isShape;n.apply(this,arguments),q&&(h(this,"defaultValue",function(){return{}}),h(this,"members",{}),h(this,"memberNames",[]),h(this,"required",[]),h(this,"isRequired",function(){return!1})),_.members&&(h(this,"members",new s(_.members,I,function(G,O){return r.create(O,I,G)})),t(this,"memberNames",function(){return _.xmlOrder||Object.keys(_.members)}),_.event&&(t(this,"eventPayloadMemberName",function(){for(var G=B.members,O=B.memberNames,w=0,f=O.length;w<f;w++)if(G[O[w]].isEventPayload)return O[w]}),t(this,"eventHeaderMemberNames",function(){for(var G=B.members,O=B.memberNames,w=[],f=0,y=O.length;f<y;f++)G[O[f]].isEventHeader&&w.push(O[f]);return w}))),_.required&&(h(this,"required",_.required),h(this,"isRequired",function(G){if(!V){V={};for(var O=0;O<_.required.length;O++)V[_.required[O]]=!0}return V[G]},!1,!0)),h(this,"resultWrapper",_.resultWrapper||null),_.payload&&h(this,"payload",_.payload),"string"==typeof _.xmlNamespace?h(this,"xmlNamespaceUri",_.xmlNamespace):"object"==typeof _.xmlNamespace&&(h(this,"xmlNamespacePrefix",_.xmlNamespace.prefix),h(this,"xmlNamespaceUri",_.xmlNamespace.uri))}function o(_,I){var B=this,V=!this.isShape;if(n.apply(this,arguments),V&&h(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&&(h(this,"defaultValue",function(){return{}}),h(this,"key",r.create({type:"string"},I)),h(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(_){var I=this;if(r.apply(this,arguments),_.timestampFormat)h(this,"timestampFormat",_.timestampFormat);else if(I.isTimestampFormatSet&&this.timestampFormat)h(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)h(this,"timestampFormat","rfc822");else if("querystring"===this.location)h(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":h(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":h(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(){r.apply(this,arguments),this.toType=function(_){return null==_?null:parseFloat(_)},this.toWireFormat=this.toType},integer:function(){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 V=B.api.shapes[I.shape];if(!V)throw new Error("Cannot find shape reference: "+I.shape);return V}return null},r.create=function(I,B,V){if(I.isShape)return I;var q=r.resolve(I,B);if(q){var G=Object.keys(I);B.documentation||(G=G.filter(function(f){return!f.match(/documentation/)}));var O=function(){q.constructor.call(this,I,B,V)};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,V);throw new Error("Unrecognized shape type: "+w)},r.shapes={StructureShape:c,ListShape:o,MapShape:u,StringShape:m,BooleanShape:A,Base64Shape:D},ne.exports=r},65758:(ne,L,d)=>{var s=d(72338);s.ParamValidator=s.util.inherit({constructor:function(h){(!0===h||void 0===h)&&(h={min:!0}),this.validation=h},validate:function(h,t,r){if(this.errors=[],this.validateMember(h,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(h,t){this.errors.push(s.util.error(new Error(t),{code:h}))},validateStructure:function(h,t,r){this.validateType(t,r,["object"],"structure");for(var n,c=0;h.required&&c<h.required.length;c++)null==t[n=h.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=h.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(h,t,r){switch(h.type){case"structure":return this.validateStructure(h,t,r);case"list":return this.validateList(h,t,r);case"map":return this.validateMap(h,t,r);default:return this.validateScalar(h,t,r)}},validateList:function(h,t,r){if(this.validateType(t,r,[Array])){this.validateRange(h,t.length,r,"list member count");for(var n=0;n<t.length;n++)this.validateMember(h.member,t[n],r+"["+n+"]")}},validateMap:function(h,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(h.key,c,r+"[key='"+c+"']"),this.validateMember(h.value,t[c],r+"['"+c+"']"),n++);this.validateRange(h,n,r,"map member count")}},validateScalar:function(h,t,r){switch(h.type){case null:case void 0:case"string":return this.validateString(h,t,r);case"base64":case"binary":return this.validatePayload(t,r);case"integer":case"float":return this.validateNumber(h,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 "+h.type+" for "+r)}},validateString:function(h,t,r){var n=["string"];h.isJsonValue&&(n=n.concat(["number","object","boolean"])),null!==t&&this.validateType(t,r,n)&&(this.validateEnum(h,t,r),this.validateRange(h,t.length,r,"string length"),this.validatePattern(h,t,r),this.validateUri(h,t,r))},validateUri:function(h,t,r){"uri"===h.location&&0===t.length&&this.fail("UriParameterError",'Expected uri parameter to have length >= 1, but found "'+t+'" for '+r)},validatePattern:function(h,t,r){this.validation.pattern&&void 0!==h.pattern&&(new RegExp(h.pattern).test(t)||this.fail("PatternMatchError",'Provided value "'+t+'" does not match regex pattern /'+h.pattern+"/ for "+r))},validateRange:function(h,t,r,n){this.validation.min&&void 0!==h.min&&t<h.min&&this.fail("MinRangeError","Expected "+n+" >= "+h.min+", but found "+t+" for "+r),this.validation.max&&void 0!==h.max&&t>h.max&&this.fail("MaxRangeError","Expected "+n+" <= "+h.max+", but found "+t+" for "+r)},validateEnum:function(h,t,r){this.validation.enum&&void 0!==h.enum&&-1===h.enum.indexOf(t)&&this.fail("EnumError","Found string value of "+t+", but expected "+h.enum.join("|")+" for "+r)},validateType:function(h,t,r,n){if(null==h)return!1;for(var c=!1,o=0;o<r.length;o++){if("string"==typeof r[o]){if(typeof h===r[o])return!0}else if(r[o]instanceof RegExp){if((h||"").toString().match(r[o]))return!0}else{if(h instanceof r[o]||s.util.isType(h,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(h,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(h,t,r,"numeric value")}},validatePayload:function(h,t){if(null!=h&&"string"!=typeof h&&(!h||"number"!=typeof h.byteLength)){if(s.util.isNode()){var r=s.util.stream.Stream;if(s.util.Buffer.isBuffer(h)||h instanceof r)return}else if(void 0!==typeof Blob&&h instanceof Blob)return;var n=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(h)for(var c=0;c<n.length;c++)if(s.util.isType(h,n[c])||s.util.typeName(h.constructor)===n[c])return;this.fail("InvalidParameterType","Expected "+t+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},26545:(ne,L,d)=>{var s=d(84964),S=d(72338);ne.exports={populateHostPrefix:function(o){if(!o.service.config.hostPrefixEnabled)return o;var v=o.service.api.operations[o.operation];if(function(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 T=function(o,u,v){return s.each(v.members,function(m,T){if(!0===T.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(o,u){o.host&&(o.host=u+o.host),o.hostname&&(o.hostname=u+o.hostname)})(o.httpRequest.endpoint,T),function(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}}},80537:(ne,L,d)=>{var s=d(84964),S=d(70720),h=d(46179),t=d(26545).populateHostPrefix;ne.exports={buildRequest:function(o){var u=o.httpRequest,v=o.service.api,m=v.targetPrefix+"."+v.operations[o.operation].name,T=v.jsonVersion||"1.0",R=v.operations[o.operation].input,P=new S;1===T&&(T="1.0"),u.body=P.build(o.params||{},R),u.headers["Content-Type"]="application/x-amz-json-"+T,u.headers["X-Amz-Target"]=m,t(o)},extractError:function(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()),T=m.__type||m.code||m.Code;T&&(u.code=T.split("#").pop()),u.message="RequestEntityTooLarge"===u.code?"Request body must be less than 1 MB":m.message||m.Message||null}catch(R){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(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||{},T=new h;o.data=T.parse(u,m)}}}},78298:(ne,L,d)=>{var s=d(72338),S=d(84964),h=d(75277),t=d(74822),r=d(26545).populateHostPrefix;ne.exports={buildRequest:function(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 h).serialize(u.params,v.input,function(R,P){m.params[R]=P}),m.body=S.queryParamsToString(m.params),r(u)},extractError:function(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(T){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(u){var v=u.request,T=v.service.api.operations[v.operation].output||{},R=T;if(R.resultWrapper){var P=t.create({type:"structure"});P.members[R.resultWrapper]=T,P.memberNames=[R.resultWrapper],S.property(T,"name",T.resultWrapper),T=P}var D=new s.XML.Parser;if(T&&T.members&&!T.members._XAMZRequestId){var A=t.create({type:"string"},{api:{protocol:"query"}},"requestId");T.members._XAMZRequestId=A}var _=D.parse(u.httpResponse.body.toString(),T);u.requestId=_._XAMZRequestId||_.requestId,_._XAMZRequestId&&delete _._XAMZRequestId,R.resultWrapper&&_[R.resultWrapper]&&(S.update(_,_[R.resultWrapper]),delete _[R.resultWrapper]),u.data=_}}},51888:(ne,L,d)=>{var s=d(84964),S=d(26545).populateHostPrefix;function t(v,m,T,R){var P=[v,m].join("/");P=P.replace(/\/+/g,"/");var D={},A=!1;if(s.each(T.members,function(I,B){var V=R[I];if(null!=V)if("uri"===B.location){var q=new RegExp("\\{"+B.name+"(\\+)?\\}");P=P.replace(q,function(G,O){return(O?s.uriEscapePath:s.uriEscape)(String(V))})}else"querystring"===B.location&&(A=!0,"list"===B.type?D[B.name]=V.map(function(G){return s.uriEscape(B.member.toWireFormat(G).toString())}):"map"===B.type?s.each(V,function(G,O){D[G]=Array.isArray(O)?O.map(function(w){return s.uriEscape(String(w))}):s.uriEscape(String(O))}):D[B.name]=s.uriEscape(B.toWireFormat(V).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(v){(function(v){v.httpRequest.method=v.service.api.operations[v.operation].httpMethod})(v),function(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(v){s.each(v.service.api.operations[v.operation].input.members,function(T,R){var P=v.params[T];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(){},extractData:function(v){var m=v.request,T={},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){T[_]={};var q=new RegExp("^"+(I.isLocationName?I.name:"")+"(.+)","i");s.each(R.headers,function(O,w){var f=O.match(q);null!==f&&(T[_][f[1]]=w)})}else if("header"===I.location){if(void 0!==A[B]){var G=I.isJsonValue?s.base64.decode(A[B]):A[B];T[_]=I.toType(G)}}else"statusCode"===I.location&&(T[_]=parseInt(R.statusCode,10))}),v.data=T},generateURI:t}},10673:(ne,L,d)=>{var s=d(84964),S=d(51888),h=d(80537),t=d(70720),r=d(46179);function c(m,T){m.httpRequest.headers["Content-Type"]||(m.httpRequest.headers["Content-Type"]=T?"binary/octet-stream":"application/json")}ne.exports={buildRequest:function(m){S.buildRequest(m),["HEAD","DELETE"].indexOf(m.httpRequest.method)<0&&function(m){var T=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=T.build(P,D),c(m)):(m.httpRequest.body=P,("binary"===D.type||D.isStreaming)&&c(m,!0))}else{var A=T.build(m.params,R);("{}"!==A||"GET"!==m.httpRequest.method)&&(m.httpRequest.body=A),c(m)}}(m)},extractError:function(m){h.extractError(m)},extractData:function(m){S.extractData(m);var T=m.request,P=T.service.api.operations[T.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;h.extractData(m),m.data=s.merge(B,m.data)}}}},68683:(ne,L,d)=>{var s=d(72338),S=d(84964),h=d(51888);ne.exports={buildRequest:function(o){h.buildRequest(o),["GET","HEAD"].indexOf(o.httpRequest.method)<0&&function(o){var u=o.service.api.operations[o.operation].input,v=new s.XML.Builder,m=o.params,T=u.payload;if(T){var R=u.members[T];if(void 0===(m=m[T]))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(o){var u;h.extractError(o);try{u=(new s.XML.Parser).parse(o.httpResponse.body.toString())}catch(v){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(o){h.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,_)}}}},75277:(ne,L,d)=>{var s=d(84964);function S(){}function h(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(T,R){var P=u[T];if(null!=P){var D=h(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(o,u,v,m){var T=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(T.name){var A=o.split(".");A.pop(),A.push(h(T)),o=A.join(".")}}else D="."+(T.name?T.name:"member")+D;c(o+D,R,T,m)}):m.call(this,o,null)}(o,u,v,m):"map"===v.type?function(o,u,v,m){var T=1;s.each(u,function(R,P){var A=(v.flattened?".":".entry.")+T+++".",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},43984:ne=>{ne.exports={now:function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}}},32313:(ne,L,d)=>{var s=d(84964),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(o){for(var u=function(o){var u=o.config.region,v=function(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(T){return T[0]&&T[1]?T.join("/"):null})}(o),v=0;v<u.length;v++){var m=u[v];if(m&&Object.prototype.hasOwnProperty.call(S.rules,m)){var T=S.rules[m];return"string"==typeof T&&(T=S.patterns[T]),o.config.useDualstack&&s.isDualstackAvailable(o)&&((T=s.copy(T)).endpoint=T.endpoint.replace(/{service}\.({region}\.)?/,"{service}.dualstack.{region}.")),o.isGlobalEndpoint=!!T.globalEndpoint,T.signingRegion&&(o.signingRegion=T.signingRegion),T.signatureVersion||(T.signatureVersion="v4"),void r(o,T)}}},getEndpointSuffix:function(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),T=0;T<m.length;T++){var R=RegExp(m[T]),P=u[m[T]];if(R.test(o))return P}return"amazonaws.com"}}},60782:(ne,L,d)=>{var s=d(72338),S=d(18730),h=s.util.inherit,t=s.util.domain,r=d(94443),n={success:1,error:1,complete:1},o=new S;o.setupStates=function(){var u=function(v,m){var T=this;T._haltHandlersOnError=!1,T.emit(T._asm.currentState,function(R){if(R)if(function(u){return Object.prototype.hasOwnProperty.call(n,u._asm.currentState)}(T)){if(!(t&&T.domain instanceof t.Domain))throw R;R.domainEmitter=T,R.domain=T.domain,R.domainThrown=!1,T.domain.emit("error",R)}else T.response.error=R,m(R);else m(T.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=h({constructor:function(v,m,T){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=T||{},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(T){v.call(T,T.error,T.data,function(R){!1!==R&&(T.hasNextPage()?T.nextPage().on("complete",m).send():v.call(T,null,null,s.util.fn.noop))})}).send()},eachItem:function(v){var m=this;this.eachPage(function(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,T=null;return 2===s.HttpClient.streamsApiVersion?(T=new v.PassThrough,process.nextTick(function(){m.send()})):((T=new v.Stream).readable=!0,T.sent=!1,T.on("newListener",function(R){!T.sent&&"data"===R&&(T.sent=!0,process.nextTick(function(){m.send()}))})),this.on("error",function(R){T.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 V=function(){_&&B!==I?T.emit("error",s.util.error(new Error("Stream content length mismatch. Received "+B+" of "+I+" bytes."),{code:"StreamContentLengthMismatch"})):2===s.HttpClient.streamsApiVersion?T.end():T.emit("end")},q=A.httpResponse.createUnbufferedStream();if(2===s.HttpClient.streamsApiVersion)if(_){var G=new v.PassThrough;G._write=function(O){return O&&O.length&&(B+=O.length),v.PassThrough.prototype._write.apply(this,arguments)},G.on("end",V),T.on("error",function(O){_=!1,q.unpipe(G),G.emit("end"),G.end()}),q.pipe(G).pipe(T,{end:!1})}else q.pipe(T);else _&&q.on("data",function(O){O&&O.length&&(B+=O.length)}),q.on("data",function(O){T.emit("data",O)}),q.on("end",V);q.on("error",function(O){_=!1,T.emit("error",O)})}}),T},emitEvent:function(v,m,T){"function"==typeof m&&(T=m,m=null),T||(T=function(){}),m||(m=this.eventParameters(v,this.response)),s.SequentialExecutor.prototype.emit.call(this,v,m,function(P){P&&(this.response.error=P),T.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 T=this;return this.httpRequest.appendToUserAgent("promise"),new v(function(R,P){T.on("complete",function(D){D.error?P(D.error):R(Object.defineProperty(D.data||{},"$response",{value:D}))}),T.runTo()})}},s.Request.deletePromisesFromClass=function(){delete this.prototype.promise},s.util.addPromises(s.Request),s.util.mixin(s.Request,s.SequentialExecutor)},11277:(ne,L,d)=>{var s=d(72338),S=s.util.inherit,h=d(94443);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=h.search(r.data,c)}catch(u){return!1}return h.strictDeepEqual(o,n)},pathAll:function(r,n,c){try{var o=h.search(r.data,c)}catch(m){return!1}Array.isArray(o)||(o=[o]);var u=o.length;if(!u)return!1;for(var v=0;v<u;v++)if(!h.strictDeepEqual(o[v],n))return!1;return!0},pathAny:function(r,n,c){try{var o=h.search(r.data,c)}catch(m){return!1}Array.isArray(o)||(o=[o]);for(var u=o.length,v=0;v<u;v++)if(h.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])}})},53871:(ne,L,d)=>{var s=d(72338),S=s.util.inherit,h=d(94443);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(T){this.error=T}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&&!h.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=h.search(this.data,c);o&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(o))}),this.nextPageTokens}})},31893:(ne,L,d)=>{var s=d(72338);s.SequentialExecutor=s.util.inherit({constructor:function(){this._events={}},listeners:function(h){return this._events[h]?this._events[h].slice(0):[]},on:function(h,t,r){return this._events[h]?r?this._events[h].unshift(t):this._events[h].push(t):this._events[h]=[t],this},onAsync:function(h,t,r){return t._isAsync=!0,this.on(h,t,r)},removeListener:function(h,t){var r=this._events[h];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(h){return h?delete this._events[h]:this._events={},this},emit:function(h,t,r){r||(r=function(){});var n=this.listeners(h),c=n.length;return this.callListeners(n,t,r),c>0},callListeners:function(h,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(h,t,r,o)}for(;h.length>0;){var v=h.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(h){var t=this;return h._events&&(h=h._events),s.util.each(h,function(r,n){"function"==typeof n&&(n=[n]),s.util.arrayEach(n,function(c){t.on(r,c)})}),t},addNamedListener:function(h,t,r,n){return this[h]=r,this.addListener(t,r,n),this},addNamedAsyncListener:function(h,t,r,n){return r._isAsync=!0,this.addNamedListener(h,t,r,n)},addNamedListeners:function(h){var t=this;return h(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},70014:(ne,L,d)=>{var s=d(72338),S=d(68734),h=d(32313),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||h.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(T,R){v.input.members[T]&&null==o[T]&&(o[T]=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,T=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,T++},!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=T,!(I.AttemptCount<=0)){I.Timestamp=P;var B=Math.round(s.util.realClock.now()-m);I.Latency=B>=0?B:0;var V=c.response;V.error&&V.error.retryable&&"number"==typeof V.retryCount&&"number"==typeof V.maxRetries&&V.retryCount>=V.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,T){return this.makeUnauthenticatedRequest(u,m,T)}:function(m,T){return this.makeRequest(u,m,T)})})},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 T=s.util.clientSideMonitoring.Publisher,P=(0,s.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new T(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(T){v.prototype.api=T.isApi?T:new S(T,{serviceIdentifier:c.serviceIdentifier})}if("string"==typeof o){if(u)m(u);else try{m(s.apiLoader(c.serviceIdentifier,o))}catch(T){throw s.util.error(T,{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},25974:(ne,L,d)=>{var s=d(72338),S=d(98914);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}}})},57345:(ne,L,d)=>{var s=d(72338),h="presigned-expires";function t(n){var c=n.httpRequest.headers[h],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[h]=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[h]=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===h&&(R="Expires"),0===R.indexOf("x-amz-meta-")&&(delete u[R],R=R.toLowerCase()),u[R]=P}),delete n.httpRequest.headers[h],delete u.Authorization,delete u.Host;else if("AWS4-HMAC-SHA256"===v[0]){v.shift();var T=v.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];u["X-Amz-Signature"]=T,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[h]=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},15198:(ne,L,d)=>{var s=d(72338);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(44508),d(70434),d(62189),d(28479),d(27531),d(57345)},27531:(ne,L,d)=>{var s=d(72338);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],T=v.split("=")[1];if(this.subResources[m]||this.responseHeaders[m]){var R={name:m};void 0!==T&&(R.value=this.subResources[m]?T:decodeURIComponent(T)),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},44508:(ne,L,d)=>{var s=d(72338);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},70434:(ne,L,d)=>{var s=d(72338);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},62189:(ne,L,d)=>{var s=d(72338),S=s.util.inherit;d(70434),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},28479:(ne,L,d)=>{var s=d(72338),S=d(68703),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,T){if(m!==t&&this.isSignableHeader(m)){var R=m.toLowerCase();0===R.indexOf("x-amz-meta-")?u[R]=T:0===R.indexOf("x-amz-")&&(u[m]=T)}});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(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},68703:(ne,L,d)=>{var s=d(72338),S={},h=[],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]=_,h.push(R),h.length>50&&delete S[h.shift()]),_},emptyCache:function(){S={},h=[]}}},18730:ne=>{function L(d,s){this.currentState=s||null,this.states=d||{}}L.prototype.runTo=function(s,S,h,t){"function"==typeof s&&(t=h,h=S,S=s,s=null);var r=this,n=r.states[r.currentState];n.fn.call(h||r,t,function(c){if(c){if(!n.fail)return S?S.call(h,c):null;r.currentState=n.fail}else{if(!n.accept)return S?S.call(h):null;r.currentState=n.accept}if(r.currentState===s)return S?S.call(h,c):null;r.runTo(s,S,h,c)})},L.prototype.addState=function(s,S,h,t){return"function"==typeof S?(t=S,S=null,h=null):"function"==typeof h&&(t=h,h=null),this.currentState||(this.currentState=s),this.states[s]={accept:S,fail:h,fn:t},this},ne.exports=L},84964:(ne,L,d)=>{var s,S={environment:"nodejs",engine:function(){if(S.isBrowser()&&"undefined"!=typeof navigator)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(72338).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 T=[];S.arrayEach(u,function(R){T.push(n(R))}),m=v+"="+T.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?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?t:S.buffer.toBuffer(t,"base64")}},buffer:{toBuffer:function(h,t){return"function"==typeof S.Buffer.from&&S.Buffer.from!==Uint8Array.from?S.Buffer.from(h,t):new S.Buffer(h,t)},alloc:function(h,t,r){if("number"!=typeof h)throw new Error("size passed to alloc must be a number.");if("function"==typeof S.Buffer.alloc)return S.Buffer.alloc(h,t,r);var n=new S.Buffer(h);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(h){var n,c,t=0,r=0;for(c=0;c<h.length;c++)t+=h[c].length;for(n=S.buffer.alloc(t),c=0;c<h.length;c++)h[c].copy(n,r),r+=h[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(h){if(h)throw h},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(72338)),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(h,t,r,n){var c=S.crypto.createHash(h);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()&&"undefined"!=typeof ArrayBuffer&&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||"undefined"==typeof FileReader){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,T=new FileReader;T.onerror=function(){n(new Error("Failed to read data."))},T.onload=function(){var P=new S.Buffer(new Uint8Array(T.result));c.update(P),v+=P.length,T._continueReading()},T._continueReading=function(){if(v>=t.size)n(null,c.digest(r));else{var P=v+524288;P>t.size&&(P=t.size),T.readAsArrayBuffer(o.call(t,v,P))}},T._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,T){S.property(t.data,m,T,!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&&"undefined"!=typeof Promise&&(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,T){m?v(m):u(T)}),c[t].apply(c,o)})}},isDualstackAvailable:function(t){if(!t)return!1;var r=d(65359);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(T){var R=r.maxRetries||0;if(T&&"TimeoutError"===T.code&&(T.retryable=!0),T&&T.retryable&&u<R){var P=S.calculateRetryDelay(u,r.retryDelayOptions,T);if(P>=0)return u++,void setTimeout(m,P+(T.retryAfter||0))}n(T)},m=function(){var T="";c.handleRequest(t,o,function(R){R.on("data",function(P){T+=P.toString()}),R.on("end",function(){var P=R.statusCode;if(P<300)n(null,T);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(29459).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(T){if(!process.env[S.configOptInEnv])throw T}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(T,R){for(var P=0,D=Object.keys(R);P<D.length;P++)T[D[P]]=R[D[P]];return T}},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},681:(ne,L,d)=>{var s=d(84964),S=d(74822);function h(){}function t(m,T){for(var R=m.getElementsByTagName(T),P=0,D=R.length;P<D;P++)if(R[P].parentNode===m)return R[P]}function r(m,T){switch(T||(T={}),T.type){case"structure":return n(m,T);case"map":return function(m,T){for(var R={},P=T.key.name||"key",D=T.value.name||"value",A=T.flattened?T.name:"entry",_=m.firstElementChild;_;){if(_.nodeName===A){var I=t(_,P).textContent,B=t(_,D);R[I]=r(B,T.value)}_=_.nextElementSibling}return R}(m,T);case"list":return function(m,T){for(var R=[],P=T.flattened?T.name:T.member.name||"member",D=m.firstElementChild;D;)D.nodeName===P&&R.push(r(D,T.member)),D=D.nextElementSibling;return R}(m,T);case void 0:case null:return function(m){if(null==m)return"";if(!m.firstElementChild)return null===m.parentNode.parentNode?{}:0===m.childNodes.length?"":m.textContent;for(var T={type:"structure",members:{}},R=m.firstElementChild;R;){var P=R.nodeName;Object.prototype.hasOwnProperty.call(T.members,P)?T.members[P].type="list":T.members[P]={name:P},R=R.nextElementSibling}return n(m,T)}(m);default:return function(m,T){if(m.getAttribute){var R=m.getAttribute("encoding");"base64"===R&&(T=new S.create({type:R}))}var P=m.textContent;return""===P&&(P=null),"function"==typeof T.toType?T.toType(P):P}(m,T)}}function n(m,T){var R={};return null===m||s.each(T.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&&!T.api.xmlNoDefaultLists&&(R[P]=D.defaultValue)}}),R}h.prototype.parse=function(m,T){if(""===m.replace(/^\s+/,""))return{};var R,P;try{if(window.DOMParser){try{R=(new DOMParser).parseFromString(m,"text/xml")}catch(V){throw s.error(new Error("Parse error in document"),{originalError:V,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(V){P=V}if(R&&R.documentElement&&!P){var I=r(R.documentElement,T),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=h},39244:(ne,L,d)=>{var s=d(84964),S=d(51980).XmlNode,h=d(59758).XmlText;function t(){}function r(m,T,R){switch(R.type){case"structure":return function(m,T,R){s.arrayEach(R.memberNames,function(P){var D=R.members[P];if("body"===D.location){var A=T[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,T,R);case"map":return function(m,T,R){var P=R.key.name||"key",D=R.value.name||"value";s.each(T,function(A,_){var I=new S(R.flattened?R.name:"entry");m.addChildNode(I);var B=new S(P),V=new S(D);I.addChildNode(B),I.addChildNode(V),r(B,A,R.key),r(V,_,R.value)})}(m,T,R);case"list":return function(m,T,R){s.arrayEach(T,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,T,R);default:return function(m,T,R){m.addChildNode(new h(R.toWireFormat(T)))}(m,T,R)}}function v(m,T,R){var P,D="xmlns";T.xmlNamespaceUri?(P=T.xmlNamespaceUri,T.xmlNamespacePrefix&&(D+=":"+T.xmlNamespacePrefix)):R&&T.api.xmlNamespaceUri&&(P=T.api.xmlNamespaceUri),P&&m.addAttribute(D,P)}t.prototype.toXML=function(m,T,R,P){var D=new S(R);return v(D,T,!0),r(D,m,T),D.children.length>0||P?D.toString():""},ne.exports=t},70801:ne=>{ne.exports={escapeAttribute:function(d){return d.replace(/&/g,"&").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}}},98394:ne=>{ne.exports={escapeElement:function(d){return d.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}}},51980:(ne,L,d)=>{var s=d(70801).escapeAttribute;function S(h,t){void 0===t&&(t=[]),this.name=h,this.children=t,this.attributes={}}S.prototype.addAttribute=function(h,t){return this.attributes[h]=t,this},S.prototype.addChildNode=function(h){return this.children.push(h),this},S.prototype.removeAttribute=function(h){return delete this.attributes[h],this},S.prototype.toString=function(){for(var h=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];null!=u&&(t+=" "+o+'="'+s(""+u)+'"')}return t+(h?">"+this.children.map(function(v){return v.toString()}).join("")+"</"+this.name+">":"/>")},ne.exports={XmlNode:S}},59758:(ne,L,d)=>{var s=d(98394).escapeElement;function S(h){this.value=h}S.prototype.toString=function(){return s(""+this.value)},ne.exports={XmlText:S}},73934:(ne,L,d)=>{var s=d(61920);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(f,y){return _(f,!1,!0).resolve(y)},L.resolveObject=function(f,y){return f?_(f,!1,!0).resolveObject(y):y},L.format=function(f){return q(f)&&(f=_(f)),f instanceof S?f.format():S.prototype.format.call(f)},L.Url=S;var h=/^([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}$/,T=/^([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(93143);function _(f,y,p){if(f&&G(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 G(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 j=h.exec(N);if(j){var W=(j=j[0]).toLowerCase();this.protocol=W,N=N.substr(j.length)}if(p||j||N.match(/^\/\/[^@\/]+@[^@\/]+/)){var $="//"===N.substr(0,2);$&&(!j||!P[j])&&(N=N.substr(2),this.slashes=!0)}if(!P[j]&&($||j&&!D[j])){for(var oe=-1,me=0;me<u.length;me++)-1!==(X=N.indexOf(u[me]))&&(-1===oe||X<oe)&&(oe=X);var fe,ie;for(-1!==(ie=-1===oe?N.lastIndexOf("@"):N.lastIndexOf("@",oe))&&(fe=N.slice(0,ie),N=N.slice(ie+1),this.auth=decodeURIComponent(fe)),oe=-1,me=0;me<o.length;me++){var X;-1!==(X=N.indexOf(o[me]))&&(-1===oe||X<oe)&&(oe=X)}-1===oe&&(oe=N.length),this.host=N.slice(0,oe),N=N.slice(oe),this.parseHost(),this.hostname=this.hostname||"";var Q="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!Q)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="",l=0,E=ee.length;l<E;l++)ee.charCodeAt(l)>127?x+="x":x+=ee[l];if(!x.match(m)){var b=re.slice(0,me),M=re.slice(me+1),K=ee.match(T);K&&(b.push(K[1]),M.unshift(K[2])),M.length&&(N="/"+M.join(".")+N),this.hostname=b.join(".");break}}}if(this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),!Q){var Z=this.hostname.split("."),se=[];for(me=0;me<Z.length;++me)se.push((ae=Z[me]).match(/[^A-Za-z0-9_-]/)?"xn--"+s.encode(ae):ae);this.hostname=se.join(".")}this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,Q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==N[0]&&(N="/"+N))}if(!R[W])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 ae,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[W]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(ae=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||"",j=!1,W="";this.host?j=f+this.host:this.hostname&&(j=f+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(j+=":"+this.port)),this.query&&G(this.query)&&Object.keys(this.query).length&&(W=A.stringify(this.query));var $=this.search||W&&"?"+W||"";return y&&":"!==y.substr(-1)&&(y+=":"),this.slashes||(!y||D[y])&&!1!==j?(j="//"+(j||""),p&&"/"!==p.charAt(0)&&(p="/"+p)):j||(j=""),N&&"#"!==N.charAt(0)&&(N="#"+N),$&&"?"!==$.charAt(0)&&($="?"+$),y+j+(p=p.replace(/[?#]/g,function(oe){return encodeURIComponent(oe)}))+($=$.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(E){p[E]=this[E]},this),p.hash=f.hash,""===f.href)return p.href=p.format(),p;if(f.slashes&&!f.protocol)return Object.keys(f).forEach(function(E){"protocol"!==E&&(p[E]=f[E])}),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(E){p[E]=f[E]}),p.href=p.format(),p;if(p.protocol=f.protocol,f.host||P[f.protocol])p.pathname=f.pathname;else{for(var fe=(f.pathname||"").split("/");fe.length&&!(f.host=fe.shift()););f.host||(f.host=""),f.hostname||(f.hostname=""),""!==fe[0]&&fe.unshift(""),fe.length<2&&fe.unshift(""),p.pathname=fe.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 W=p.pathname&&"/"===p.pathname.charAt(0),$=f.host||f.pathname&&"/"===f.pathname.charAt(0),oe=$||W||p.host&&f.pathname,me=oe,X=p.pathname&&p.pathname.split("/")||[],ie=(fe=f.pathname&&f.pathname.split("/")||[],p.protocol&&!D[p.protocol]);if(ie&&(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&&(""===fe[0]?fe[0]=f.host:fe.unshift(f.host)),f.host=null),oe=oe&&(""===fe[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=fe;else if(fe.length)X||(X=[]),X.pop(),X=X.concat(fe),p.search=f.search,p.query=f.query;else if(!function(f){return null==f}(f.search))return ie&&(p.hostname=p.host=X.shift(),(Q=!!(p.host&&p.host.indexOf("@")>0)&&p.host.split("@"))&&(p.auth=Q.shift(),p.host=p.hostname=Q.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(!oe&&!me)for(;ee--;ee)X.unshift("..");oe&&""!==X[0]&&(!X[0]||"/"!==X[0].charAt(0))&&X.unshift(""),J&&"/"!==X.join("/").substr(-1)&&X.push("");var Q,l=""===X[0]||X[0]&&"/"===X[0].charAt(0);return ie&&(p.hostname=p.host=l?"":X.length?X.shift():"",(Q=!!(p.host&&p.host.indexOf("@")>0)&&p.host.split("@"))&&(p.auth=Q.shift(),p.host=p.hostname=Q.shift())),(oe=oe||p.host&&X.length)&&!l&&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)}},29459:(ne,L,d)=>{var s=d(80122),S=d(70879),h=S;h.v1=s,h.v4=S,ne.exports=h},70157:ne=>{for(var L=[],d=0;d<256;++d)L[d]=(d+256).toString(16).substr(1);ne.exports=function(S,h){var t=h||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("")}},39765:ne=>{var L="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"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,h=0;h<16;h++)0==(3&h)&&(t=4294967296*Math.random()),s[h]=t>>>((3&h)<<3)&255;return s}}},80122:(ne,L,d)=>{var h,t,s=d(39765),S=d(70157),r=0,n=0;ne.exports=function(o,u,v){var m=u&&v||0,T=u||[],R=(o=o||{}).node||h,P=void 0!==o.clockseq?o.clockseq:t;if(null==R||null==P){var D=s();null==R&&(R=h=[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;T[m++]=B>>>24&255,T[m++]=B>>>16&255,T[m++]=B>>>8&255,T[m++]=255&B;var V=A/4294967296*1e4&268435455;T[m++]=V>>>8&255,T[m++]=255&V,T[m++]=V>>>24&15|16,T[m++]=V>>>16&255,T[m++]=P>>>8|128,T[m++]=255&P;for(var q=0;q<6;++q)T[m+q]=R[q];return u||S(T)}},70879:(ne,L,d)=>{var s=d(39765),S=d(70157);ne.exports=function(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)}},28937:(ne,L,d)=>{"use strict";var S=d(561),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},561:(ne,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var d=function(h,t){this.key=h,this.value=t},s=function(){function S(h){if(this.nodeMap={},this.size=0,"number"!=typeof h||h<1)throw new Error("Cache size can only be positive number");this.sizeLimit=h}return Object.defineProperty(S.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),S.prototype.prependToList=function(h){this.headerNode?(this.headerNode.prev=h,h.next=this.headerNode):this.tailNode=h,this.headerNode=h,this.size++},S.prototype.removeFromTail=function(){if(this.tailNode){var h=this.tailNode,t=h.prev;return t&&(t.next=void 0),h.prev=void 0,this.tailNode=t,this.size--,h}},S.prototype.detachFromList=function(h){this.headerNode===h&&(this.headerNode=h.next),this.tailNode===h&&(this.tailNode=h.prev),h.prev&&(h.prev.next=h.next),h.next&&(h.next.prev=h.prev),h.next=void 0,h.prev=void 0,this.size--},S.prototype.get=function(h){if(this.nodeMap[h]){var t=this.nodeMap[h];return this.detachFromList(t),this.prependToList(t),t.value}},S.prototype.remove=function(h){this.nodeMap[h]&&(this.detachFromList(this.nodeMap[h]),delete this.nodeMap[h])},S.prototype.put=function(h,t){if(this.nodeMap[h])this.remove(h);else if(this.size===this.sizeLimit){var r=this.removeFromTail();delete this.nodeMap[r.key]}var c=new d(h,t);this.nodeMap[h]=c,this.prependToList(c)},S.prototype.empty=function(){for(var h=Object.keys(this.nodeMap),t=0;t<h.length;t++){var r=h[t];this.detachFromList(this.nodeMap[r]),delete this.nodeMap[r]}},S}();L.LRUCache=s},61210:(ne,L)=>{"use strict";L.byteLength=function(R){var P=n(R),A=P[1];return 3*(P[0]+A)/4-A},L.toByteArray=function(R){var P,q,D=n(R),A=D[0],_=D[1],I=new S(function(R,P,D){return 3*(P+D)/4-D}(0,A,_)),B=0,V=_>0?A-4:A;for(q=0;q<V;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(R){for(var P,D=R.length,A=D%3,_=[],I=16383,B=0,V=D-A;B<V;B+=I)_.push(m(R,B,B+I>V?V: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="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=h.length;t<r;++t)d[t]=h[t],s[h.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},2341:(ne,L,d)=>{"use strict";var S=d(61210),h=d(18427),t=d(50130);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 T(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"undefined"!=typeof ArrayBuffer&&F instanceof ArrayBuffer?function(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(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(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("undefined"!=typeof ArrayBuffer&&F.buffer instanceof ArrayBuffer||"length"in F)return"number"!=typeof F.length||function(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 T(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("undefined"!=typeof ArrayBuffer&&"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 ae(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 ae(H).length;F=(""+F).toLowerCase(),ue=!0}}function V(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 ie(this,F,U);case"utf8":case"utf-8":return $(this,F,U);case"ascii":return X(this,F,U);case"latin1":case"binary":return fe(this,F,U);case"base64":return W(this,F,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(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 G(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,he=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,he/=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===he)return Ie*Ce}else-1!==Ie&&(Se-=Se-Ie),Ie=-1}else for(U+he>z&&(U=z-he),Se=U;Se>=0;Se--){for(var Me=!0,Ke=0;Ke<he;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 he=parseInt(F.substr(2*z,2),16);if(isNaN(he))return z;H[U+z]=he}return z}function f(H,F,U,ue){return Oe(ae(F,H.length-U),H,U,ue)}function y(H,F,U,ue){return Oe(function(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 j(H,F,U,ue){return Oe(function(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 W(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,he=Ce>239?4:Ce>223?3:Ce>191?2:1;if(ye+he<=U)switch(he){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,he=1):z>65535&&(ue.push((z-=65536)>>>10&1023|55296),z=56320|1023&z),ue.push(z),ye+=he}return function(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 fe(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 ie(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 Q(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 l(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 E(H,F,U,ue,ye){return ye||l(H,0,U,4),h.write(H,F,U,ue,23,4),U+4}function b(H,F,U,ue,ye){return ye||l(H,0,U,8),h.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(){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(F){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,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(H,F,U){return function(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 T(null,H)},o.allocUnsafeSlow=function(H){return T(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):V.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),he=(ue>>>=0)-(U>>>=0),ve=Math.min(z,he),Se=this.slice(ye,Ce),Ie=F.slice(U,ue),Me=0;Me<ve;++Me)if(Se[Me]!==Ie[Me]){z=Se[Me],he=Ie[Me];break}return z<he?-1:he<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 G(this,F,U,ue,!0)},o.prototype.lastIndexOf=function(F,U,ue){return G(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 j(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),h.read(this,F,!0,23,4)},o.prototype.readFloatBE=function(F,U){return U||re(F,4,this.length),h.read(this,F,!1,23,4)},o.prototype.readDoubleLE=function(F,U){return U||re(F,8,this.length),h.read(this,F,!0,52,8)},o.prototype.readDoubleBE=function(F,U){return U||re(F,8,this.length),h.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,he=0;for(this[U]=255&F;++he<ue&&(z*=256);)this[U+he]=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,he=1;for(this[U+z]=255&F;--z>=0&&(he*=256);)this[U+z]=F/he&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,he=1,ve=0;for(this[U]=255&F;++z<ue&&(he*=256);)F<0&&0===ve&&0!==this[U+z-1]&&(ve=1),this[U+z]=(F/he>>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,he=1,ve=0;for(this[U+z]=255&F;--z>=0&&(he*=256);)F<0&&0===ve&&0!==this[U+z+1]&&(ve=1),this[U+z]=(F/he>>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 E(this,F,U,!0,ue)},o.prototype.writeFloatBE=function(F,U,ue){return E(this,F,U,!1,ue)},o.prototype.writeDoubleLE=function(F,U,ue){return b(this,F,U,!0,ue)},o.prototype.writeDoubleBE=function(F,U,ue){return b(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 he=o.isBuffer(F)?F:ae(new o(F,ye).toString()),ve=he.length;for(z=0;z<ue-U;++z)this[z+U]=he[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 ae(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(H){if((H=function(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}},18427:(ne,L)=>{L.read=function(d,s,S,h,t){var r,n,c=8*t-h-1,o=(1<<c)-1,u=o>>1,v=-7,m=S?t-1:0,T=S?-1:1,R=d[s+m];for(m+=T,r=R&(1<<-v)-1,R>>=-v,v+=c;v>0;r=256*r+d[s+m],m+=T,v-=8);for(n=r&(1<<-v)-1,r>>=-v,v+=h;v>0;n=256*n+d[s+m],m+=T,v-=8);if(0===r)r=1-u;else{if(r===o)return n?NaN:1/0*(R?-1:1);n+=Math.pow(2,h),r-=u}return(R?-1:1)*n*Math.pow(2,r-h)},L.write=function(d,s,S,h,t,r){var n,c,o,u=8*r-t-1,v=(1<<u)-1,m=v>>1,T=23===t?Math.pow(2,-24)-Math.pow(2,-77):0,R=h?0:r-1,P=h?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?T/o:T*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}},43653:(ne,L,d)=>{"use strict";var s=d(62976),S=d(67043),h=S(s("String.prototype.indexOf"));ne.exports=function(r,n){var c=s(r,!!n);return"function"==typeof c&&h(r,".prototype.")>-1?S(c):c}},67043:(ne,L,d)=>{"use strict";var s=d(4738),S=d(62976),h=S("%Function.prototype.apply%"),t=S("%Function.prototype.call%"),r=S("%Reflect.apply%",!0)||s.call(t,h),n=S("%Object.getOwnPropertyDescriptor%",!0),c=S("%Object.defineProperty%",!0),o=S("%Math.max%");if(c)try{c({},"a",{value:1})}catch(v){c=null}ne.exports=function(m){var T=r(s,t,arguments);if(n&&c){var R=n(T,"length");R.configurable&&c(T,"length",{value:1+o(0,m.length-(arguments.length-1))})}return T};var u=function(){return r(s,h,arguments)};c?c(ne.exports,"apply",{value:u}):ne.exports.apply=u},65771:(ne,L,d)=>{function r(){var c;try{c=L.storage.debug}catch(o){}return!c&&"undefined"!=typeof process&&"env"in process&&(c=process.env.DEBUG),c}(L=ne.exports=d(15578)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},L.formatArgs=function(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(T){"%%"!==T&&(v++,"%c"===T&&(m=v))}),c.splice(m,0,u)}},L.save=function(c){try{null==c?L.storage.removeItem("debug"):L.storage.debug=c}catch(o){}},L.load=r,L.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},L.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(c){}}(),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())},15578:(ne,L,d)=>{var s;function h(o){function u(){if(u.enabled){var v=u,m=+new Date,T=m-(s||m);v.diff=T,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(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=h.debug=h.default=h).coerce=function(o){return o instanceof Error?o.stack||o.message:o},L.disable=function(){L.enable("")},L.enable=function(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(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(67659),L.names=[],L.skips=[],L.formatters={}},14943: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 h(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(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(h(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=h(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)}},75616: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]})}}),h=[];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!==h.indexOf(r)){if(s)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var o=h.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 h.splice(o,1),"{"+c+"}"}}(L)}},88146:ne=>{var L=Object.prototype.hasOwnProperty,d=Object.prototype.toString;ne.exports=function(S,h,t){if("[object Function]"!==d.call(h))throw new TypeError("iterator must be a function");var r=S.length;if(r===+r)for(var n=0;n<r;n++)h.call(t,S[n],n,S);else for(var c in S)L.call(S,c)&&h.call(t,S[c],c,S)}},50145: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 T=function(){};T.prototype=r.prototype,c.prototype=new T,T.prototype=null}return c}},4738:(ne,L,d)=>{"use strict";var s=d(50145);ne.exports=Function.prototype.bind||s},62976:(ne,L,d)=>{"use strict";var s,S=SyntaxError,h=Function,t=TypeError,r=function(y){try{return h('"use strict"; return ('+y+").constructor;")()}catch(p){}},n=Object.getOwnPropertyDescriptor;if(n)try{n({},"")}catch(y){n=null}var c=function(){throw new t},o=n?function(){try{return c}catch(y){try{return n(arguments,"callee").get}catch(p){return c}}}():c,u=d(22452)(),v=Object.getPrototypeOf||function(y){return y.__proto__},m={},T="undefined"==typeof Uint8Array?s:v(Uint8Array),R={"%AggregateError%":"undefined"==typeof AggregateError?s:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?s:ArrayBuffer,"%ArrayIteratorPrototype%":u?v([][Symbol.iterator]()):s,"%AsyncFromSyncIteratorPrototype%":s,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":"undefined"==typeof Atomics?s:Atomics,"%BigInt%":"undefined"==typeof BigInt?s:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?s:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?s:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?s:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?s:FinalizationRegistry,"%Function%":h,"%GeneratorFunction%":m,"%Int8Array%":"undefined"==typeof Int8Array?s:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?s:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?s:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?v(v([][Symbol.iterator]())):s,"%JSON%":"object"==typeof JSON?JSON:s,"%Map%":"undefined"==typeof Map?s:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?v((new Map)[Symbol.iterator]()):s,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?s:Promise,"%Proxy%":"undefined"==typeof Proxy?s:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?s:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?s:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u?v((new Set)[Symbol.iterator]()):s,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?s:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?v(""[Symbol.iterator]()):s,"%Symbol%":u?Symbol:s,"%SyntaxError%":S,"%ThrowTypeError%":o,"%TypedArray%":T,"%TypeError%":t,"%Uint8Array%":"undefined"==typeof Uint8Array?s:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?s:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?s:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?s:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?s:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?s:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?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 j=y("%AsyncGeneratorFunction%");j&&(N=j.prototype)}else if("%AsyncIteratorPrototype%"===p){var W=y("%AsyncGenerator%");W&&(N=v(W.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(4738),_=d(59704),I=A.call(Function.call,Array.prototype.concat),B=A.call(Function.apply,Array.prototype.splice),V=A.call(Function.call,String.prototype.replace),q=A.call(Function.call,String.prototype.slice),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,w=function(p){var N=q(p,0,1),j=q(p,-1);if("%"===N&&"%"!==j)throw new S("invalid intrinsic syntax, expected closing `%`");if("%"===j&&"%"!==N)throw new S("invalid intrinsic syntax, expected opening `%`");var W=[];return V(p,G,function($,oe,me,X){W[W.length]=me?V(X,O,"$1"):oe||$}),W},f=function(p,N){var W,j=p;if(_(D,j)&&(j="%"+(W=D[j])[0]+"%"),_(R,j)){var $=R[j];if($===m&&($=P(j)),void 0===$&&!N)throw new t("intrinsic "+p+" exists, but is not available. Please file an issue!");return{alias:W,name:j,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 j=w(p),W=j.length>0?j[0]:"",$=f("%"+W+"%",N),oe=$.name,me=$.value,X=!1,fe=$.alias;fe&&(W=fe[0],B(j,I([0,1],fe)));for(var ie=1,Q=!0;ie<j.length;ie+=1){var re=j[ie],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||!Q)&&(X=!0),_(R,oe="%"+(W+="."+re)+"%"))me=R[oe];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&&ie+1>=j.length){var x=n(me,re);me=(Q=!!x)&&"get"in x&&!("originalValue"in x.get)?x.get:me[re]}else Q=_(me,re),me=me[re];Q&&!X&&(R[oe]=me)}}return me}},92886:(ne,L,d)=>{"use strict";d.d(L,{ZP:()=>E,J9:()=>x,_t:()=>J,wO:()=>ee,HW:()=>re});var h=function(){return(h=Object.assign||function(M){for(var K,Z=1,se=arguments.length;Z<se;Z++)for(var ae in K=arguments[Z])Object.prototype.hasOwnProperty.call(K,ae)&&(M[ae]=K[ae]);return M}).apply(this,arguments)},p=d(51724),N=new Map,j=new Map,W=!0,$=!1;function oe(b){return b.replace(/[\s,]+/g," ").trim()}function ie(b){var M=oe(b);if(!N.has(M)){var K=(0,p.Qc)(b,{experimentalFragmentVariables:$});if(!K||"Document"!==K.kind)throw new Error("Not a valid GraphQL document.");N.set(M,function(b){var M=new Set(b.definitions);M.forEach(function(Z){Z.loc&&delete Z.loc,Object.keys(Z).forEach(function(se){var ae=Z[se];ae&&"object"==typeof ae&&M.add(ae)})});var K=b.loc;return K&&(delete K.startToken,delete K.endToken),b}(function(b){var M=new Set,K=[];return b.definitions.forEach(function(Z){if("FragmentDefinition"===Z.kind){var se=Z.name.value,ae=function(b){return oe(b.source.body.substring(b.start,b.end))}(Z.loc),_e=j.get(se);_e&&!_e.has(ae)?W&&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||j.set(se,_e=new Set),_e.add(ae),M.has(ae)||(M.add(ae),K.push(Z))}else K.push(Z)}),h(h({},b),{definitions:K})}(K)))}return N.get(M)}function Q(b){for(var M=[],K=1;K<arguments.length;K++)M[K-1]=arguments[K];"string"==typeof b&&(b=[b]);var Z=b[0];return M.forEach(function(se,ae){Z+=se&&"Document"===se.kind?se.loc.source.body:se,Z+=b[ae+1]}),ie(Z)}function re(){N.clear(),j.clear()}function J(){W=!1}function ee(){$=!0}function x(){$=!1}var b,l_gql=Q,l_resetCaches=re,l_disableFragmentWarnings=J,l_enableExperimentalFragmentVariables=ee,l_disableExperimentalFragmentVariables=x;(b=Q||(Q={})).gql=l_gql,b.resetCaches=l_resetCaches,b.disableFragmentWarnings=l_disableFragmentWarnings,b.enableExperimentalFragmentVariables=l_enableExperimentalFragmentVariables,b.disableExperimentalFragmentVariables=l_disableExperimentalFragmentVariables,Q.default=Q;const E=Q},22452:(ne,L,d)=>{"use strict";var s="undefined"!=typeof Symbol&&Symbol,S=d(66203);ne.exports=function(){return"function"==typeof s&&"function"==typeof Symbol&&"symbol"==typeof s("foo")&&"symbol"==typeof Symbol("bar")&&S()}},66203: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}},59704:(ne,L,d)=>{"use strict";var s=d(4738);ne.exports=s.call(Function.call,Object.prototype.hasOwnProperty)},13057: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}}},66651:(ne,L,d)=>{"use strict";var s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,h=d(43653)("Object.prototype.toString"),t=function(o){return!(s&&o&&"object"==typeof o&&Symbol.toStringTag in o)&&"[object Arguments]"===h(o)},r=function(o){return!!t(o)||null!==o&&"object"==typeof o&&"number"==typeof o.length&&o.length>=0&&"[object Array]"!==h(o)&&"[object Function]"===h(o.callee)},n=function(){return t(arguments)}();t.isLegacyArguments=r,ne.exports=n?t:r},80142:ne=>{"use strict";var r,L=Object.prototype.toString,d=Function.prototype.toString,s=/^\s*(?:function)?\*/,S="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,h=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(!h)return!1;if(void 0===r){var u=function(){if(!S)return!1;try{return Function("return function*() {}")()}catch(n){}}();r=!!u&&h(u)}return h(c)===r}},65504:(ne,L,d)=>{"use strict";var s=d(88146),S=d(54674),h=d(43653),t=h("Object.prototype.toString"),n=d(22452)()&&"symbol"==typeof Symbol.toStringTag,c=S(),o=h("Array.prototype.indexOf",!0)||function(D,A){for(var _=0;_<D.length;_+=1)if(D[_]===A)return _;return-1},u=h("String.prototype.slice"),v={},m=d(35887),T=Object.getPrototypeOf;n&&m&&T&&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=T(D),_=m(A,Symbol.toStringTag);if(!_){var I=T(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(B){}}),A}(D)}},50130:ne=>{var L={}.toString;ne.exports=Array.isArray||function(d){return"[object Array]"==L.call(d)}},94443:(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 h(z,he){if(z===he)return!0;if(Object.prototype.toString.call(z)!==Object.prototype.toString.call(he))return!1;if(!0===s(z)){if(z.length!==he.length)return!1;for(var Se=0;Se<z.length;Se++)if(!1===h(z[Se],he[Se]))return!1;return!0}if(!0===S(z)){var Ie={};for(var Me in z)if(hasOwnProperty.call(z,Me)){if(!1===h(z[Me],he[Me]))return!1;Ie[Me]=!0}for(var Ke in he)if(hasOwnProperty.call(he,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 he in z)if(z.hasOwnProperty(he))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",V="QuotedIdentifier",q="Rbracket",G="Rparen",O="Comma",w="Colon",f="Rbrace",y="Number",p="Current",N="Expref",j="Pipe",$="And",X="LT",Q="NE",re="Flatten",J="Star",ee="Filter",x="Dot",l="Not",E="Lbrace",b="Lbracket",M="Lparen",K="Literal",Z={".":x,"*":J,",":O,":":w,"{":E,"}":f,"]":q,"(":M,")":G,"@":p},se={"<":!0,">":!0,"=":!0,"!":!0},ae={" ":!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,he=[];for(this._current=0;this._current<z.length;)if(_e(z[this._current]))ve=this._current,Se=this._consumeUnquotedIdentifier(z),he.push({type:B,value:Se,start:ve});else if(void 0!==Z[z[this._current]])he.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),he.push(Ie);else if("["===z[this._current])Ie=this._consumeLBracket(z),he.push(Ie);else if('"'===z[this._current])ve=this._current,Se=this._consumeQuotedIdentifier(z),he.push({type:V,value:Se,start:ve});else if("'"===z[this._current])ve=this._current,Se=this._consumeRawStringLiteral(z),he.push({type:K,value:Se,start:ve});else if("`"===z[this._current]){ve=this._current;var Me=this._consumeLiteral(z);he.push({type:K,value:Me,start:ve})}else if(void 0!==se[z[this._current]])he.push(this._consumeOperator(z));else if(void 0!==ae[z[this._current]])this._current++;else if("&"===z[this._current])ve=this._current,this._current++,"&"===z[this._current]?(this._current++,he.push({type:$,value:"&&",start:ve})):he.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++,he.push({type:"Or",value:"||",start:ve})):he.push({type:j,value:"|",start:ve})}return he},_consumeUnquotedIdentifier:function(z){var he=this._current;for(this._current++;this._current<z.length&&xe(z[this._current]);)this._current++;return z.slice(he,this._current)},_consumeQuotedIdentifier:function(z){var he=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(he,this._current))},_consumeRawStringLiteral:function(z){var he=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(he+1,this._current-1).replace("\\'","'")},_consumeNumber:function(z){var he=this._current;this._current++;for(var ve=z.length;Te(z[this._current])&&this._current<ve;)this._current++;var Se=parseInt(z.slice(he,this._current));return{type:y,value:Se,start:he}},_consumeLBracket:function(z){var he=this._current;return this._current++,"?"===z[this._current]?(this._current++,{type:ee,value:"[?",start:he}):"]"===z[this._current]?(this._current++,{type:re,value:"[]",start:he}):{type:b,value:"[",start:he}},_consumeOperator:function(z){var he=this._current,ve=z[he];return this._current++,"!"===ve?"="===z[this._current]?(this._current++,{type:Q,value:"!=",start:he}):{type:l,value:"!",start:he}:"<"===ve?"="===z[this._current]?(this._current++,{type:"LTE",value:"<=",start:he}):{type:X,value:"<",start:he}:">"===ve?"="===z[this._current]?(this._current++,{type:"GTE",value:">=",start:he}):{type:"GT",value:">",start:he}:"="===ve&&"="===z[this._current]?(this._current++,{type:"EQ",value:"==",start:he}):void 0},_consumeLiteral:function(z){this._current++;for(var Se,he=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(he,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(Ie){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[V]=0,Re[q]=0,Re[G]=0,Re[O]=0,Re[f]=0,Re[y]=0,Re[p]=0,Re[N]=0,Re[j]=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[l]=45,Re[E]=50,Re[b]=55,Re[M]=60,H.prototype={parse:function(z){this._loadTokens(z),this.index=0;var he=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 he},_loadTokens:function(z){var ve=(new Oe).tokenize(z);ve.push({type:I,value:"",start:z.length}),this.tokens=ve},expression:function(z){var he=this._lookaheadToken(0);this._advance();for(var ve=this.nud(he),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 K:return{type:"Literal",value:z.value};case B:return{type:"Field",name:z.value};case V: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 l: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 E:return this._parseMultiselectHash();case re:return{type:"Projection",children:[{type:re,children:[{type:"Identity"}]},ve=this._parseProjectionRHS(Re.Flatten)]};case b: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)!==G;)this._lookahead(0)===p?(Se={type:p},this._advance()):Se=this.expression(0),Me.push(Se);return this._match(G),Me[0];default:this._errorToken(z)}},led:function(z,he){var ve;switch(z){case x:var Se=Re.Dot;return this._lookahead(0)!==J?{type:"Subexpression",children:[he,ve=this._parseDotRHS(Se)]}:(this._advance(),{type:"ValueProjection",children:[he,ve=this._parseProjectionRHS(Se)]});case j:return ve=this.expression(Re.Pipe),{type:j,children:[he,ve]};case"Or":return{type:"OrExpression",children:[he,ve=this.expression(Re.Or)]};case $:return{type:"AndExpression",children:[he,ve=this.expression(Re.And)]};case M:for(var Ke,Ie=he.name,Me=[];this._lookahead(0)!==G;)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(G),{type:"Function",name:Ie,children:Me};case ee:var $e=this.expression(0);return this._match(q),{type:"FilterProjection",children:[he,ve=this._lookahead(0)===re?{type:"Identity"}:this._parseProjectionRHS(Re.Filter),$e]};case re:return{type:"Projection",children:[{type:re,children:[he]},this._parseProjectionRHS(Re.Flatten)]};case"EQ":case Q:case"GT":case"GTE":case X:case"LTE":return this._parseComparator(he,z);case b:var ke=this._lookaheadToken(0);return ke.type===y||ke.type===w?(ve=this._parseIndexExpression(),this._projectIfSlice(he,ve)):(this._match(J),this._match(q),{type:"Projection",children:[he,ve=this._parseProjectionRHS(Re.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(z){if(this._lookahead(0)!==z){var he=this._lookaheadToken(0),ve=new Error("Expected "+z+", got: "+he.type);throw ve.name="ParserError",ve}this._advance()},_errorToken:function(z){var he=new Error("Invalid token ("+z.type+'): "'+z.value+'"');throw he.name="ParserError",he},_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,he){var ve={type:"IndexExpression",children:[z,he]};return"Slice"===he.type?{type:"Projection",children:[ve,this._parseProjectionRHS(Re.Star)]}:ve},_parseSliceExpression:function(){for(var z=[null,null,null],he=0,ve=this._lookahead(0);ve!==q&&he<3;){if(ve===w)he++,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[he]=this._lookaheadToken(0).value,this._advance()}ve=this._lookahead(0)}return this._match(q),{type:"Slice",children:z}},_parseComparator:function(z,he){return{type:"Comparator",name:he,children:[z,this.expression(Re[he])]}},_parseDotRHS:function(z){var he=this._lookahead(0);return[B,V,J].indexOf(he)>=0?this.expression(z):he===b?(this._match(b),this._parseMultiselectList()):he===E?(this._match(E),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(z){var he;if(Re[this._lookahead(0)]<10)he={type:"Identity"};else if(this._lookahead(0)===b)he=this.expression(z);else if(this._lookahead(0)===ee)he=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),he=this._parseDotRHS(z)}return he},_parseMultiselectList:function(){for(var z=[];this._lookahead(0)!==q;){var he=this.expression(0);if(z.push(he),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=[],he=[B,V];;){if(ve=this._lookaheadToken(0),he.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,he){return this.visit(z,he)},visit:function(z,he){var ve,Se,Ie,Me,Ke,Ze,$e,qe,ke;switch(z.type){case"Field":return null===he?null:S(he)?void 0===(Ze=he[z.name])?null:Ze:null;case"Subexpression":for(Ie=this.visit(z.children[0],he),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],he),this.visit(z.children[1],$e);case"Index":if(!s(he))return null;var bt=z.value;return bt<0&&(bt=he.length+bt),void 0===(Ie=he[bt])&&(Ie=null),Ie;case"Slice":if(!s(he))return null;var yr=z.children.slice(0),$t=this.computeSliceParams(he.length,yr),Gt=$t[0],Wt=$t[1],Rt=$t[2];if(Ie=[],Rt>0)for(ke=Gt;ke<Wt;ke+=Rt)Ie.push(he[ke]);else for(ke=Gt;ke>Wt;ke+=Rt)Ie.push(he[ke]);return Ie;case"Projection":var St=this.visit(z.children[0],he);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],he)))return null;qe=[];var ht=function(z){for(var he=Object.keys(z),ve=[],Se=0;Se<he.length;Se++)ve.push(z[he[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],he)))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],he),Ke=this.visit(z.children[1],he),z.name){case"EQ":Ie=h(Me,Ke);break;case Q:Ie=!h(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],he);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 he;case"MultiSelectList":if(null===he)return null;for(qe=[],ke=0;ke<z.children.length;ke++)qe.push(this.visit(z.children[ke],he));return qe;case"MultiSelectHash":if(null===he)return null;var er;for(qe={},ke=0;ke<z.children.length;ke++)qe[(er=z.children[ke]).name]=this.visit(er.value,he);return qe;case"OrExpression":return t(ve=this.visit(z.children[0],he))&&(ve=this.visit(z.children[1],he)),ve;case"AndExpression":return!0===t(Me=this.visit(z.children[0],he))?Me:this.visit(z.children[1],he);case"NotExpression":return t(Me=this.visit(z.children[0],he));case"Literal":return z.value;case j:return $e=this.visit(z.children[0],he),this.visit(z.children[1],$e);case p:return he;case"Function":var Mt=[];for(ke=0;ke<z.children.length;ke++)Mt.push(this.visit(z.children[ke],he));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,he){var ve=he[0],Se=he[1],Ie=he[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,he,ve){return he<0?(he+=z)<0&&(he=ve<0?-1:0):he>=z&&(he=ve<0?z-1:z),he}},U.prototype={callFunction:function(z,he){var ve=this.functionTable[z];if(void 0===ve)throw new Error("Unknown function: "+z+"()");return this._validateArgs(z,he,ve._signature),ve._func.call(this,he)},_validateArgs:function(z,he,ve){var Se;if(ve[ve.length-1].variadic){if(he.length<ve.length)throw Se=1===ve.length?" argument":" arguments",new Error("ArgumentError: "+z+"() takes at least"+ve.length+Se+" but received "+he.length)}else if(he.length!==ve.length)throw Se=1===ve.length?" argument":" arguments",new Error("ArgumentError: "+z+"() takes "+ve.length+Se+" but received "+he.length);for(var Ie,Me,Ke,Ze=0;Ze<ve.length;Ze++){Ke=!1,Ie=ve[Ze].types,Me=this._getTypeName(he[Ze]);for(var $e=0;$e<Ie.length;$e++)if(this._typeMatches(Me,Ie[$e],he[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,he,ve){if(1===he)return!0;if(9!==he&&8!==he&&3!==he)return z===he;if(3===he)return 3===z;if(3===z){var Se;8===he?Se=o:9===he&&(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 he=z[0],ve=z[1];return-1!==he.indexOf(ve,he.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 he=0,ve=z[0],Se=0;Se<ve.length;Se++)he+=ve[Se];return he/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 he=[],ve=this._interpreter,Se=z[0],Ie=z[1],Me=0;Me<Ie.length;Me++)he.push(ve.visit(Se,Ie[Me]));return he},_functionMerge:function(z){for(var he={},ve=0;ve<z.length;ve++){var Se=z[ve];for(var Ie in Se)he[Ie]=Se[Ie]}return he},_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 he=0,ve=z[0],Se=0;Se<ve.length;Se++)he+=ve[Se];return he},_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 he=z[0],ve=Object.keys(he),Se=[],Ie=0;Ie<ve.length;Ie++)Se.push(he[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,he=this._getTypeName(z[0]);return he===o?z[0]:he!==v||(ve=+z[0],isNaN(ve))?null:ve},_functionNotNull:function(z){for(var he=0;he<z.length;he++)if(7!==this._getTypeName(z[he]))return z[he];return null},_functionSort:function(z){var he=z[0].slice(0);return he.sort(),he},_functionSortBy:function(z){var he=z[0].slice(0);if(0===he.length)return he;var ve=this._interpreter,Se=z[1],Ie=this._getTypeName(ve.visit(Se,he[0]));if([o,v].indexOf(Ie)<0)throw new Error("TypeError");for(var Me=this,Ke=[],Ze=0;Ze<he.length;Ze++)Ke.push([Ze,he[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++)he[$e]=Ke[$e][1];return he},_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,he){var ve=this,Se=this._interpreter;return function(Me){var Ke=Se.visit(z,Me);if(he.indexOf(ve._getTypeName(Ke))<0){var Ze="TypeError: expected one of "+he+", received "+ve._getTypeName(Ke);throw new Error(Ze)}return Ke}}},d.tokenize=function(z){return(new Oe).tokenize(z)},d.compile=function(z){return(new H).parse(z)},d.search=function(z,he){var ve=new H,Se=new U,Ie=new F(Se);Se._interpreter=Ie;var Me=ve.parse(he);return Ie.search(Me,z)},d.strictDeepEqual=h}(L)},67659: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(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(o){return c(o,S,"day")||c(o,s,"hour")||c(o,d,"minute")||c(o,L,"second")||o+" ms"}(o):function(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))}},14572: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(){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(u){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}},61920: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,G=String.fromCharCode;function w(ie){throw RangeError(B[ie])}function f(ie,Q){for(var re=ie.length,J=[];re--;)J[re]=Q(ie[re]);return J}function y(ie,Q){var re=ie.split("@"),J="";return re.length>1&&(J=re[0]+"@",ie=re[1]),J+f((ie=ie.replace(I,".")).split("."),Q).join(".")}function p(ie){for(var ee,x,Q=[],re=0,J=ie.length;re<J;)(ee=ie.charCodeAt(re++))>=55296&&ee<=56319&&re<J?56320==(64512&(x=ie.charCodeAt(re++)))?Q.push(((1023&ee)<<10)+(1023&x)+65536):(Q.push(ee),re--):Q.push(ee);return Q}function N(ie){return f(ie,function(Q){var re="";return Q>65535&&(re+=G((Q-=65536)>>>10&1023|55296),Q=56320|1023&Q),re+G(Q)}).join("")}function j(ie){return ie-48<10?ie-22:ie-65<26?ie-65:ie-97<26?ie-97:o}function W(ie,Q){return ie+22+75*(ie<26)-((0!=Q)<<5)}function $(ie,Q,re){var J=0;for(ie=re?q(ie/700):ie>>1,ie+=q(ie/Q);ie>455;J+=o)ie=q(ie/35);return q(J+36*ie/(ie+38))}function oe(ie){var J,E,b,M,K,Z,se,ae,_e,Te,Q=[],re=ie.length,ee=0,x=128,l=72;for((E=ie.lastIndexOf("-"))<0&&(E=0),b=0;b<E;++b)ie.charCodeAt(b)>=128&&w("not-basic"),Q.push(ie.charCodeAt(b));for(M=E>0?E+1:0;M<re;){for(K=ee,Z=1,se=o;M>=re&&w("invalid-input"),((ae=j(ie.charCodeAt(M++)))>=o||ae>q((c-ee)/Z))&&w("overflow"),ee+=ae*Z,!(ae<(_e=se<=l?1:se>=l+26?26:se-l));se+=o)Z>q(c/(Te=o-_e))&&w("overflow"),Z*=Te;l=$(ee-K,J=Q.length+1,0==K),q(ee/J)>c-x&&w("overflow"),x+=q(ee/J),ee%=J,Q.splice(ee++,0,x)}return N(Q)}function me(ie){var Q,re,J,ee,x,l,E,b,M,K,Z,ae,_e,Te,xe,se=[];for(ae=(ie=p(ie)).length,Q=128,re=0,x=72,l=0;l<ae;++l)(Z=ie[l])<128&&se.push(G(Z));for(J=ee=se.length,ee&&se.push("-");J<ae;){for(E=c,l=0;l<ae;++l)(Z=ie[l])>=Q&&Z<E&&(E=Z);for(E-Q>q((c-re)/(_e=J+1))&&w("overflow"),re+=(E-Q)*_e,Q=E,l=0;l<ae;++l)if((Z=ie[l])<Q&&++re>c&&w("overflow"),Z==Q){for(b=re,M=o;!(b<(K=M<=x?1:M>=x+26?26:M-x));M+=o)se.push(G(W(K+(xe=b-K)%(Te=o-K),0))),b=q(xe/Te);se.push(G(W(b,0))),x=$(re,_e,J==ee),re=0,++J}++re,++Q}return se.join("")}n={version:"1.3.2",ucs2:{decode:p,encode:N},decode:oe,encode:me,toASCII:function(ie){return y(ie,function(Q){return _.test(Q)?"xn--"+me(Q):Q})},toUnicode:function(ie){return y(ie,function(Q){return A.test(Q)?oe(Q.slice(4).toLowerCase()):Q})}},void 0!==(s=function(){return n}.call(L,d,L,ne))&&(ne.exports=s)}()},28378:ne=>{"use strict";function L(d,s){return Object.prototype.hasOwnProperty.call(d,s)}ne.exports=function(d,s,S,h){S=S||"=";var t={};if("string"!=typeof d||0===d.length)return t;var r=/\+/g;d=d.split(s=s||"&");var n=1e3;h&&"number"==typeof h.maxKeys&&(n=h.maxKeys);var c=d.length;n>0&&c>n&&(c=n);for(var o=0;o<c;++o){var m,T,R,P,u=d[o].replace(r,"%20"),v=u.indexOf(S);v>=0?(m=u.substr(0,v),T=u.substr(v+1)):(m=u,T=""),R=decodeURIComponent(m),P=decodeURIComponent(T),L(t,R)?Array.isArray(t[R])?t[R].push(P):t[R]=[t[R],P]:t[R]=P}return t}},22089: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,h){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):h?encodeURIComponent(L(h))+S+encodeURIComponent(L(d)):""}},93143:(ne,L,d)=>{"use strict";L.decode=L.parse=d(28378),L.encode=L.stringify=d(22089)},12261:(ne,L,d)=>{"use strict";var s=d(14572),S=60103,h=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"),h=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 T(X){for(var fe="https://reactjs.org/docs/error-decoder.html?invariant="+X,ie=1;ie<arguments.length;ie++)fe+="&args[]="+encodeURIComponent(arguments[ie]);return"Minified React error #"+X+"; visit "+fe+" 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,fe,ie){this.props=X,this.context=fe,this.refs=P,this.updater=ie||R}function A(){}function _(X,fe,ie){this.props=X,this.context=fe,this.refs=P,this.updater=ie||R}D.prototype.isReactComponent={},D.prototype.setState=function(X,fe){if("object"!=typeof X&&"function"!=typeof X&&null!=X)throw Error(T(85));this.updater.enqueueSetState(this,X,fe,"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},V=Object.prototype.hasOwnProperty,q={key:!0,ref:!0,__self:!0,__source:!0};function G(X,fe,ie){var Q,re={},J=null,ee=null;if(null!=fe)for(Q in void 0!==fe.ref&&(ee=fe.ref),void 0!==fe.key&&(J=""+fe.key),fe)V.call(fe,Q)&&!q.hasOwnProperty(Q)&&(re[Q]=fe[Q]);var x=arguments.length-2;if(1===x)re.children=ie;else if(1<x){for(var l=Array(x),E=0;E<x;E++)l[E]=arguments[E+2];re.children=l}if(X&&X.defaultProps)for(Q in x=X.defaultProps)void 0===re[Q]&&(re[Q]=x[Q]);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,fe){return"object"==typeof X&&null!==X&&null!=X.key?function(X){var fe={"=":"=0",":":"=2"};return"$"+X.replace(/[=:]/g,function(ie){return fe[ie]})}(""+X.key):fe.toString(36)}function N(X,fe,ie,Q,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 h:ee=!0}}if(ee)return re=re(ee=X),X=""===Q?"."+p(ee,0):Q,Array.isArray(re)?(ie="",null!=X&&(ie=X.replace(y,"$&/")+"/"),N(re,fe,ie,"",function(E){return E})):null!=re&&(w(re)&&(re=function(X,fe){return{$$typeof:S,type:X.type,key:fe,ref:X.ref,props:X.props,_owner:X._owner}}(re,ie+(!re.key||ee&&ee.key===re.key?"":(""+re.key).replace(y,"$&/")+"/")+X)),fe.push(re)),1;if(ee=0,Q=""===Q?".":Q+":",Array.isArray(X))for(var x=0;x<X.length;x++){var l=Q+p(J=X[x],x);ee+=N(J,fe,ie,l,re)}else if("function"==typeof(l=function(X){return null===X||"object"!=typeof X?null:"function"==typeof(X=v&&X[v]||X["@@iterator"])?X:null}(X)))for(X=l.call(X),x=0;!(J=X.next()).done;)ee+=N(J=J.value,fe,ie,l=Q+p(J,x++),re);else if("object"===J)throw fe=""+X,Error(T(31,"[object Object]"===fe?"object with keys {"+Object.keys(X).join(", ")+"}":fe));return ee}function j(X,fe,ie){if(null==X)return X;var Q=[],re=0;return N(X,Q,"","",function(J){return fe.call(ie,J,re++)}),Q}function W(X){if(-1===X._status){var fe=X._result;fe=fe(),X._status=0,X._result=fe,fe.then(function(ie){0===X._status&&(ie=ie.default,X._status=1,X._result=ie)},function(ie){0===X._status&&(X._status=2,X._result=ie)})}if(1===X._status)return X._result;throw X._result}var $={current:null};function oe(){var X=$.current;if(null===X)throw Error(T(321));return X}var me={ReactCurrentDispatcher:$,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:B,IsSomeRendererActing:{current:!1},assign:s};L.Children={map:j,forEach:function(X,fe,ie){j(X,function(){fe.apply(this,arguments)},ie)},count:function(X){var fe=0;return j(X,function(){fe++}),fe},toArray:function(X){return j(X,function(fe){return fe})||[]},only:function(X){if(!w(X))throw Error(T(143));return X}},L.Component=D,L.PureComponent=_,L.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=me,L.cloneElement=function(X,fe,ie){if(null==X)throw Error(T(267,X));var Q=s({},X.props),re=X.key,J=X.ref,ee=X._owner;if(null!=fe){if(void 0!==fe.ref&&(J=fe.ref,ee=B.current),void 0!==fe.key&&(re=""+fe.key),X.type&&X.type.defaultProps)var x=X.type.defaultProps;for(l in fe)V.call(fe,l)&&!q.hasOwnProperty(l)&&(Q[l]=void 0===fe[l]&&void 0!==x?x[l]:fe[l])}var l=arguments.length-2;if(1===l)Q.children=ie;else if(1<l){x=Array(l);for(var E=0;E<l;E++)x[E]=arguments[E+2];Q.children=x}return{$$typeof:S,type:X.type,key:re,ref:J,props:Q,_owner:ee}},L.createContext=function(X,fe){return void 0===fe&&(fe=null),(X={$$typeof:r,_calculateChangedBits:fe,_currentValue:X,_currentValue2:X,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:t,_context:X},X.Consumer=X},L.createElement=G,L.createFactory=function(X){var fe=G.bind(null,X);return fe.type=X,fe},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:W}},L.memo=function(X,fe){return{$$typeof:c,type:X,compare:void 0===fe?null:fe}},L.useCallback=function(X,fe){return oe().useCallback(X,fe)},L.useContext=function(X,fe){return oe().useContext(X,fe)},L.useDebugValue=function(){},L.useEffect=function(X,fe){return oe().useEffect(X,fe)},L.useImperativeHandle=function(X,fe,ie){return oe().useImperativeHandle(X,fe,ie)},L.useLayoutEffect=function(X,fe){return oe().useLayoutEffect(X,fe)},L.useMemo=function(X,fe){return oe().useMemo(X,fe)},L.useReducer=function(X,fe,ie){return oe().useReducer(X,fe,ie)},L.useRef=function(X){return oe().useRef(X)},L.useState=function(X){return oe().useState(X)},L.version="17.0.2"},3904:(ne,L,d)=>{"use strict";ne.exports=d(12261)},53408:(ne,L,d)=>{"use strict";var s=d(61920),S=d(47430);function h(){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(O,w){return B(O,!1,!0).resolve(w)},L.resolveObject=function(O,w){return O?B(O,!1,!0).resolveObject(w):w},L.format=function(O){return S.isString(O)&&(O=B(O)),O instanceof h?O.format():h.prototype.format.call(O)},L.Url=h;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(93143);function B(O,w,f){if(O&&S.isObject(O)&&O instanceof h)return O;var y=new h;return y.parse(O,w,f),y}h.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 W=O=N.join(p);if(W=W.trim(),!f&&1===O.split("#").length){var $=n.exec(W);if($)return this.path=W,this.href=W,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 oe=t.exec(W);if(oe){var me=(oe=oe[0]).toLowerCase();this.protocol=me,W=W.substr(oe.length)}if(f||oe||W.match(/^\/\/[^@\/]+@[^@\/]+/)){var X="//"===W.substr(0,2);X&&(!oe||!A[oe])&&(W=W.substr(2),this.slashes=!0)}if(!A[oe]&&(X||oe&&!_[oe])){for(var fe=-1,ie=0;ie<m.length;ie++)-1!==(Q=W.indexOf(m[ie]))&&(-1===fe||Q<fe)&&(fe=Q);var re,J;for(-1!==(J=-1===fe?W.lastIndexOf("@"):W.lastIndexOf("@",fe))&&(re=W.slice(0,J),W=W.slice(J+1),this.auth=decodeURIComponent(re)),fe=-1,ie=0;ie<v.length;ie++){var Q;-1!==(Q=W.indexOf(v[ie]))&&(-1===fe||Q<fe)&&(fe=Q)}-1===fe&&(fe=W.length),this.host=W.slice(0,fe),W=W.slice(fe),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(/\./),l=(ie=0,x.length);ie<l;ie++){var E=x[ie];if(E&&!E.match(R)){for(var b="",M=0,K=E.length;M<K;M++)E.charCodeAt(M)>127?b+="x":b+=E[M];if(!b.match(R)){var Z=x.slice(0,ie),se=x.slice(ie+1),ae=E.match(P);ae&&(Z.push(ae[1]),se.unshift(ae[2])),se.length&&(W="/"+se.join(".")+W),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),"/"!==W[0]&&(W="/"+W))}if(!D[me])for(ie=0,l=u.length;ie<l;ie++){var xe=u[ie];if(-1!==W.indexOf(xe)){var Oe=encodeURIComponent(xe);Oe===xe&&(Oe=escape(xe)),W=W.split(xe).join(Oe)}}var Re=W.indexOf("#");-1!==Re&&(this.hash=W.substr(Re),W=W.slice(0,Re));var H=W.indexOf("?");return-1!==H?(this.search=W.substr(H),this.query=W.substr(H+1),w&&(this.query=I.parse(this.query)),W=W.slice(0,H)):w&&(this.search="",this.query={}),W&&(this.pathname=W),_[me]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(this.search||"")),this.href=this.format(),this},h.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 j=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),j&&"?"!==j.charAt(0)&&(j="?"+j),w+p+(f=f.replace(/[?#]/g,function(W){return encodeURIComponent(W)}))+(j=j.replace("#","%23"))+y},h.prototype.resolve=function(O){return this.resolveObject(B(O,!1,!0)).format()},h.prototype.resolveObject=function(O){if(S.isString(O)){var w=new h;w.parse(O,!1,!0),O=w}for(var f=new h,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 j=Object.keys(O),W=0;W<j.length;W++){var $=j[W];"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 oe=Object.keys(O),me=0;me<oe.length;me++){var X=oe[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 l=(O.pathname||"").split("/");l.length&&!(O.host=l.shift()););O.host||(O.host=""),O.hostname||(O.hostname=""),""!==l[0]&&l.unshift(""),l.length<2&&l.unshift(""),f.pathname=l.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 Q=f.pathname&&"/"===f.pathname.charAt(0),re=O.host||O.pathname&&"/"===O.pathname.charAt(0),J=re||Q||f.host&&O.pathname,ee=J,x=f.pathname&&f.pathname.split("/")||[],E=(l=O.pathname&&O.pathname.split("/")||[],f.protocol&&!_[f.protocol]);if(E&&(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&&(""===l[0]?l[0]=O.host:l.unshift(O.host)),O.host=null),J=J&&(""===l[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=l;else if(l.length)x||(x=[]),x.pop(),x=x.concat(l),f.search=O.search,f.query=O.query;else if(!S.isNullOrUndefined(O.search))return E&&(f.hostname=f.host=x.shift(),(b=!!(f.host&&f.host.indexOf("@")>0)&&f.host.split("@"))&&(f.auth=b.shift(),f.host=f.hostname=b.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],K=(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(""),K&&"/"!==x.join("/").substr(-1)&&x.push("");var b,ae=""===x[0]||x[0]&&"/"===x[0].charAt(0);return E&&(f.hostname=f.host=ae?"":x.length?x.shift():"",(b=!!(f.host&&f.host.indexOf("@")>0)&&f.host.split("@"))&&(f.auth=b.shift(),f.host=f.hostname=b.shift())),(J=J||f.host&&x.length)&&!ae&&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},h.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)}},47430: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}}},63488:ne=>{ne.exports=function(d){return d&&"object"==typeof d&&"function"==typeof d.copy&&"function"==typeof d.fill&&"function"==typeof d.readUInt8}},48563:(ne,L,d)=>{"use strict";var s=d(66651),S=d(80142),h=d(53353),t=d(65504);function r(H){return H.call.bind(H)}var n="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,o=r(Object.prototype.toString),u=r(Number.prototype.valueOf),v=r(String.prototype.valueOf),m=r(Boolean.prototype.valueOf);if(n)var T=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(U){return!1}}function N(H){return"[object Map]"===o(H)}function W(H){return"[object Set]"===o(H)}function oe(H){return"[object WeakMap]"===o(H)}function X(H){return"[object WeakSet]"===o(H)}function ie(H){return"[object ArrayBuffer]"===o(H)}function Q(H){return"undefined"!=typeof ArrayBuffer&&(ie.working?ie(H):H instanceof ArrayBuffer)}function re(H){return"[object DataView]"===o(H)}function J(H){return"undefined"!=typeof DataView&&(re.working?re(H):H instanceof DataView)}L.isArgumentsObject=s,L.isGeneratorFunction=S,L.isTypedArray=t,L.isPromise=function(H){return"undefined"!=typeof Promise&&H instanceof Promise||null!==H&&"object"==typeof H&&"function"==typeof H.then&&"function"==typeof H.catch},L.isArrayBufferView=function(H){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(H):t(H)||J(H)},L.isUint8Array=function(H){return"Uint8Array"===h(H)},L.isUint8ClampedArray=function(H){return"Uint8ClampedArray"===h(H)},L.isUint16Array=function(H){return"Uint16Array"===h(H)},L.isUint32Array=function(H){return"Uint32Array"===h(H)},L.isInt8Array=function(H){return"Int8Array"===h(H)},L.isInt16Array=function(H){return"Int16Array"===h(H)},L.isInt32Array=function(H){return"Int32Array"===h(H)},L.isFloat32Array=function(H){return"Float32Array"===h(H)},L.isFloat64Array=function(H){return"Float64Array"===h(H)},L.isBigInt64Array=function(H){return"BigInt64Array"===h(H)},L.isBigUint64Array=function(H){return"BigUint64Array"===h(H)},N.working="undefined"!=typeof Map&&N(new Map),L.isMap=function(H){return"undefined"!=typeof Map&&(N.working?N(H):H instanceof Map)},W.working="undefined"!=typeof Set&&W(new Set),L.isSet=function(H){return"undefined"!=typeof Set&&(W.working?W(H):H instanceof Set)},oe.working="undefined"!=typeof WeakMap&&oe(new WeakMap),L.isWeakMap=function(H){return"undefined"!=typeof WeakMap&&(oe.working?oe(H):H instanceof WeakMap)},X.working="undefined"!=typeof WeakSet&&X(new WeakSet),L.isWeakSet=function(H){return X(H)},ie.working="undefined"!=typeof ArrayBuffer&&ie(new ArrayBuffer),L.isArrayBuffer=Q,re.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&re(new DataView(new ArrayBuffer(1),0,1)),L.isDataView=J;var ee="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function x(H){return"[object SharedArrayBuffer]"===o(H)}function l(H){return void 0!==ee&&(void 0===x.working&&(x.working=x(new ee)),x.working?x(H):H instanceof ee)}function se(H){return P(H,u)}function ae(H){return P(H,v)}function _e(H){return P(H,m)}function Te(H){return n&&P(H,T)}function xe(H){return c&&P(H,R)}L.isSharedArrayBuffer=l,L.isAsyncFunction=function(H){return"[object AsyncFunction]"===o(H)},L.isMapIterator=function(H){return"[object Map Iterator]"===o(H)},L.isSetIterator=function(H){return"[object Set Iterator]"===o(H)},L.isGeneratorObject=function(H){return"[object Generator]"===o(H)},L.isWebAssemblyCompiledModule=function(H){return"[object WebAssembly.Module]"===o(H)},L.isNumberObject=se,L.isStringObject=ae,L.isBooleanObject=_e,L.isBigIntObject=Te,L.isSymbolObject=xe,L.isBoxedPrimitive=function(H){return se(H)||ae(H)||_e(H)||Te(H)||xe(H)},L.isAnyArrayBuffer=function(H){return"undefined"!=typeof Uint8Array&&(Q(H)||l(H))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(H){Object.defineProperty(L,H,{enumerable:!1,value:function(){throw new Error(H+" is not supported in userland")}})})},55620:(ne,L,d)=>{var s=Object.getOwnPropertyDescriptors||function(J){for(var ee=Object.keys(J),x={},l=0;l<ee.length;l++)x[ee[l]]=Object.getOwnPropertyDescriptor(J,ee[l]);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,l=x.length,E=String(re).replace(S,function(M){if("%%"===M)return"%";if(ee>=l)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(K){return"[Circular]"}default:return M}}),b=x[ee];ee<l;b=x[++ee])I(b)||!f(b)?E+=" "+b:E+=" "+n(b);return E},L.deprecate=function(re,J){if("undefined"!=typeof process&&!0===process.noDeprecation)return re;if("undefined"==typeof process)return function(){return L.deprecate(re,J).apply(this,arguments)};var ee=!1;return function(){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 h={},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 l=function(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 V(J)?re.stylize(""+J,"number"):_(J)?re.stylize(""+J,"boolean"):I(J)?re.stylize("null","null"):void 0}(re,J);if(l)return l;var E=Object.keys(J),b=function(re){var J={};return re.forEach(function(ee,x){J[ee]=!0}),J}(E);if(re.showHidden&&(E=Object.getOwnPropertyNames(J)),p(J)&&(E.indexOf("message")>=0||E.indexOf("description")>=0))return T(J);if(0===E.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 T(J)}var _e,K="",Z=!1,se=["{","}"];return A(J)&&(Z=!0,se=["[","]"]),N(J)&&(K=" [Function"+(J.name?": "+J.name:"")+"]"),w(J)&&(K=" "+RegExp.prototype.toString.call(J)),y(J)&&(K=" "+Date.prototype.toUTCString.call(J)),p(J)&&(K=" "+T(J)),0!==E.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(re,J,ee,x,l){for(var E=[],b=0,M=J.length;b<M;++b)X(J,String(b))?E.push(P(re,J,ee,x,String(b),!0)):E.push("");return l.forEach(function(K){K.match(/^\d+$/)||E.push(P(re,J,ee,x,K,!0))}),E}(re,J,ee,b,E):E.map(function(Te){return P(re,J,ee,b,Te,Z)}),re.seen.pop(),function(re,J,ee){return re.reduce(function(E,b){return b.indexOf("\n"),E+b.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?ee[0]+(""===J?"":J+"\n ")+" "+re.join(",\n ")+" "+ee[1]:ee[0]+J+" "+re.join(", ")+" "+ee[1]}(_e,K,se)):se[0]+K+se[1]}function T(re){return"["+Error.prototype.toString.call(re)+"]"}function P(re,J,ee,x,l,E){var b,M,K;if((K=Object.getOwnPropertyDescriptor(J,l)||{value:J[l]}).get?M=re.stylize(K.set?"[Getter/Setter]":"[Getter]","special"):K.set&&(M=re.stylize("[Setter]","special")),X(x,l)||(b="["+l+"]"),M||(re.seen.indexOf(K.value)<0?(M=I(ee)?v(re,K.value,null):v(re,K.value,ee-1)).indexOf("\n")>-1&&(M=E?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(b)){if(E&&l.match(/^\d+$/))return M;(b=JSON.stringify(""+l)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(b=b.substr(1,b.length-2),b=re.stylize(b,"name")):(b=b.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),b=re.stylize(b,"string"))}return b+": "+M}function A(re){return Array.isArray(re)}function _(re){return"boolean"==typeof re}function I(re){return null===re}function V(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]"===W(re)}function f(re){return"object"==typeof re&&null!==re}function y(re){return f(re)&&"[object Date]"===W(re)}function p(re){return f(re)&&("[object Error]"===W(re)||re instanceof Error)}function N(re){return"function"==typeof re}function W(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(),!h[re])if(t.test(re)){var J=process.pid;h[re]=function(){var ee=L.format.apply(L,arguments);console.error("%s %d: %s",re,J,ee)}}else h[re]=function(){};return h[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(48563),L.isArray=A,L.isBoolean=_,L.isNull=I,L.isNullOrUndefined=function(re){return null==re},L.isNumber=V,L.isString=q,L.isSymbol=function(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(re){return null===re||"boolean"==typeof re||"number"==typeof re||"string"==typeof re||"symbol"==typeof re||void 0===re},L.isBuffer=d(63488);var oe=["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(),oe[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(13057),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 fe="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function ie(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(fe&&J[fe]){var ee;if("function"!=typeof(ee=J[fe]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ee,fe,{value:ee,enumerable:!1,writable:!1,configurable:!0}),ee}function ee(){for(var x,l,E=new Promise(function(K,Z){x=K,l=Z}),b=[],M=0;M<arguments.length;M++)b.push(arguments[M]);b.push(function(K,Z){K?l(K):x(Z)});try{J.apply(this,b)}catch(K){l(K)}return E}return Object.setPrototypeOf(ee,Object.getPrototypeOf(J)),fe&&Object.defineProperty(ee,fe,{value:ee,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(ee,s(J))},L.promisify.custom=fe,L.callbackify=function(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 l=ee.pop();if("function"!=typeof l)throw new TypeError("The last argument must be of type Function");var E=this,b=function(){return l.apply(E,arguments)};re.apply(this,ee).then(function(M){process.nextTick(b.bind(null,null,M))},function(M){process.nextTick(ie.bind(null,M,b))})}return Object.setPrototypeOf(J,Object.getPrototypeOf(re)),Object.defineProperties(J,s(re)),J}},9721:(ne,L,d)=>{"use strict";d.r(L),d.d(L,{NIL:()=>re,parse:()=>m,stringify:()=>S.Z,v1:()=>o,v3:()=>W,v4:()=>$.Z,v5:()=>Q,validate:()=>u.Z,version:()=>ee});var h,t,s=d(9302),S=d(17693),r=0,n=0;const o=function(x,l,E){var b=l&&E||0,M=l||new Array(16),K=(x=x||{}).node||h,Z=void 0!==x.clockseq?x.clockseq:t;if(null==K||null==Z){var se=x.random||(x.rng||s.Z)();null==K&&(K=h=[1|se[0],se[1],se[2],se[3],se[4],se[5]]),null==Z&&(Z=t=16383&(se[6]<<8|se[7]))}var ae=void 0!==x.msecs?x.msecs:Date.now(),_e=void 0!==x.nsecs?x.nsecs:n+1,Te=ae-r+(_e-n)/1e4;if(Te<0&&void 0===x.clockseq&&(Z=Z+1&16383),(Te<0||ae>r)&&void 0===x.nsecs&&(_e=0),_e>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");r=ae,n=_e,t=Z;var xe=(1e4*(268435455&(ae+=122192928e5))+_e)%4294967296;M[b++]=xe>>>24&255,M[b++]=xe>>>16&255,M[b++]=xe>>>8&255,M[b++]=255&xe;var Oe=ae/4294967296*1e4&268435455;M[b++]=Oe>>>8&255,M[b++]=255&Oe,M[b++]=Oe>>>24&15|16,M[b++]=Oe>>>16&255,M[b++]=Z>>>8|128,M[b++]=255&Z;for(var Re=0;Re<6;++Re)M[b+Re]=K[Re];return l||(0,S.Z)(M)};var u=d(6610);const m=function(x){if(!(0,u.Z)(x))throw TypeError("Invalid UUID");var l,E=new Uint8Array(16);return E[0]=(l=parseInt(x.slice(0,8),16))>>>24,E[1]=l>>>16&255,E[2]=l>>>8&255,E[3]=255&l,E[4]=(l=parseInt(x.slice(9,13),16))>>>8,E[5]=255&l,E[6]=(l=parseInt(x.slice(14,18),16))>>>8,E[7]=255&l,E[8]=(l=parseInt(x.slice(19,23),16))>>>8,E[9]=255&l,E[10]=(l=parseInt(x.slice(24,36),16))/1099511627776&255,E[11]=l/4294967296&255,E[12]=l>>>24&255,E[13]=l>>>16&255,E[14]=l>>>8&255,E[15]=255&l,E};function D(x,l,E){function b(M,K,Z,se){if("string"==typeof M&&(M=function(x){x=unescape(encodeURIComponent(x));for(var l=[],E=0;E<x.length;++E)l.push(x.charCodeAt(E));return l}(M)),"string"==typeof K&&(K=m(K)),16!==K.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var ae=new Uint8Array(16+M.length);if(ae.set(K),ae.set(M,K.length),(ae=E(ae))[6]=15&ae[6]|l,ae[8]=63&ae[8]|128,Z){se=se||0;for(var _e=0;_e<16;++_e)Z[se+_e]=ae[_e];return Z}return(0,S.Z)(ae)}try{b.name=x}catch(M){}return b.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",b.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",b}function I(x){return 14+(x+64>>>9<<4)+1}function q(x,l){var E=(65535&x)+(65535&l);return(x>>16)+(l>>16)+(E>>16)<<16|65535&E}function O(x,l,E,b,M,K){return q(function(x,l){return x<<l|x>>>32-l}(q(q(l,x),q(b,K)),M),E)}function w(x,l,E,b,M,K,Z){return O(l&E|~l&b,x,l,M,K,Z)}function f(x,l,E,b,M,K,Z){return O(l&b|E&~b,x,l,M,K,Z)}function y(x,l,E,b,M,K,Z){return O(l^E^b,x,l,M,K,Z)}function p(x,l,E,b,M,K,Z){return O(E^(l|~b),x,l,M,K,Z)}const W=D("v3",48,function(x){if("string"==typeof x){var l=unescape(encodeURIComponent(x));x=new Uint8Array(l.length);for(var E=0;E<l.length;++E)x[E]=l.charCodeAt(E)}return function(x){for(var l=[],E=32*x.length,b="0123456789abcdef",M=0;M<E;M+=8){var K=x[M>>5]>>>M%32&255,Z=parseInt(b.charAt(K>>>4&15)+b.charAt(15&K),16);l.push(Z)}return l}(function(x,l){x[l>>5]|=128<<l%32,x[I(l)-1]=l;for(var E=1732584193,b=-271733879,M=-1732584194,K=271733878,Z=0;Z<x.length;Z+=16){var se=E,ae=b,_e=M,Te=K;E=w(E,b,M,K,x[Z],7,-680876936),K=w(K,E,b,M,x[Z+1],12,-389564586),M=w(M,K,E,b,x[Z+2],17,606105819),b=w(b,M,K,E,x[Z+3],22,-1044525330),E=w(E,b,M,K,x[Z+4],7,-176418897),K=w(K,E,b,M,x[Z+5],12,1200080426),M=w(M,K,E,b,x[Z+6],17,-1473231341),b=w(b,M,K,E,x[Z+7],22,-45705983),E=w(E,b,M,K,x[Z+8],7,1770035416),K=w(K,E,b,M,x[Z+9],12,-1958414417),M=w(M,K,E,b,x[Z+10],17,-42063),b=w(b,M,K,E,x[Z+11],22,-1990404162),E=w(E,b,M,K,x[Z+12],7,1804603682),K=w(K,E,b,M,x[Z+13],12,-40341101),M=w(M,K,E,b,x[Z+14],17,-1502002290),E=f(E,b=w(b,M,K,E,x[Z+15],22,1236535329),M,K,x[Z+1],5,-165796510),K=f(K,E,b,M,x[Z+6],9,-1069501632),M=f(M,K,E,b,x[Z+11],14,643717713),b=f(b,M,K,E,x[Z],20,-373897302),E=f(E,b,M,K,x[Z+5],5,-701558691),K=f(K,E,b,M,x[Z+10],9,38016083),M=f(M,K,E,b,x[Z+15],14,-660478335),b=f(b,M,K,E,x[Z+4],20,-405537848),E=f(E,b,M,K,x[Z+9],5,568446438),K=f(K,E,b,M,x[Z+14],9,-1019803690),M=f(M,K,E,b,x[Z+3],14,-187363961),b=f(b,M,K,E,x[Z+8],20,1163531501),E=f(E,b,M,K,x[Z+13],5,-1444681467),K=f(K,E,b,M,x[Z+2],9,-51403784),M=f(M,K,E,b,x[Z+7],14,1735328473),E=y(E,b=f(b,M,K,E,x[Z+12],20,-1926607734),M,K,x[Z+5],4,-378558),K=y(K,E,b,M,x[Z+8],11,-2022574463),M=y(M,K,E,b,x[Z+11],16,1839030562),b=y(b,M,K,E,x[Z+14],23,-35309556),E=y(E,b,M,K,x[Z+1],4,-1530992060),K=y(K,E,b,M,x[Z+4],11,1272893353),M=y(M,K,E,b,x[Z+7],16,-155497632),b=y(b,M,K,E,x[Z+10],23,-1094730640),E=y(E,b,M,K,x[Z+13],4,681279174),K=y(K,E,b,M,x[Z],11,-358537222),M=y(M,K,E,b,x[Z+3],16,-722521979),b=y(b,M,K,E,x[Z+6],23,76029189),E=y(E,b,M,K,x[Z+9],4,-640364487),K=y(K,E,b,M,x[Z+12],11,-421815835),M=y(M,K,E,b,x[Z+15],16,530742520),E=p(E,b=y(b,M,K,E,x[Z+2],23,-995338651),M,K,x[Z],6,-198630844),K=p(K,E,b,M,x[Z+7],10,1126891415),M=p(M,K,E,b,x[Z+14],15,-1416354905),b=p(b,M,K,E,x[Z+5],21,-57434055),E=p(E,b,M,K,x[Z+12],6,1700485571),K=p(K,E,b,M,x[Z+3],10,-1894986606),M=p(M,K,E,b,x[Z+10],15,-1051523),b=p(b,M,K,E,x[Z+1],21,-2054922799),E=p(E,b,M,K,x[Z+8],6,1873313359),K=p(K,E,b,M,x[Z+15],10,-30611744),M=p(M,K,E,b,x[Z+6],15,-1560198380),b=p(b,M,K,E,x[Z+13],21,1309151649),E=p(E,b,M,K,x[Z+4],6,-145523070),K=p(K,E,b,M,x[Z+11],10,-1120210379),M=p(M,K,E,b,x[Z+2],15,718787259),b=p(b,M,K,E,x[Z+9],21,-343485551),E=q(E,se),b=q(b,ae),M=q(M,_e),K=q(K,Te)}return[E,b,M,K]}(function(x){if(0===x.length)return[];for(var l=8*x.length,E=new Uint32Array(I(l)),b=0;b<l;b+=8)E[b>>5]|=(255&x[b/8])<<b%32;return E}(x),8*x.length))});var $=d(63152);function oe(x,l,E,b){switch(x){case 0:return l&E^~l&b;case 1:return l^E^b;case 2:return l&E^l&b^E&b;case 3:return l^E^b}}function me(x,l){return x<<l|x>>>32-l}const Q=D("v5",80,function(x){var l=[1518500249,1859775393,2400959708,3395469782],E=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof x){var b=unescape(encodeURIComponent(x));x=[];for(var M=0;M<b.length;++M)x.push(b.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),ae=0;ae<Z;++ae){for(var _e=new Uint32Array(16),Te=0;Te<16;++Te)_e[Te]=x[64*ae+4*Te]<<24|x[64*ae+4*Te+1]<<16|x[64*ae+4*Te+2]<<8|x[64*ae+4*Te+3];se[ae]=_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=E[0],U=E[1],ue=E[2],ye=E[3],Ce=E[4],z=0;z<80;++z){var he=Math.floor(z/20),ve=me(F,5)+oe(he,U,ue,ye)+Ce+l[he]+Oe[z]>>>0;Ce=ye,ye=ue,ue=me(U,30)>>>0,U=F,F=ve}E[0]=E[0]+F>>>0,E[1]=E[1]+U>>>0,E[2]=E[2]+ue>>>0,E[3]=E[3]+ye>>>0,E[4]=E[4]+Ce>>>0}return[E[0]>>24&255,E[0]>>16&255,E[0]>>8&255,255&E[0],E[1]>>24&255,E[1]>>16&255,E[1]>>8&255,255&E[1],E[2]>>24&255,E[2]>>16&255,E[2]>>8&255,255&E[2],E[3]>>24&255,E[3]>>16&255,E[3]>>8&255,255&E[3],E[4]>>24&255,E[4]>>16&255,E[4]>>8&255,255&E[4]]}),re="00000000-0000-0000-0000-000000000000",ee=function(x){if(!(0,u.Z)(x))throw TypeError("Invalid UUID");return parseInt(x.substr(14,1),16)}},53353:(ne,L,d)=>{"use strict";var s=d(88146),S=d(54674),h=d(43653),t=h("Object.prototype.toString"),n=d(22452)()&&"symbol"==typeof Symbol.toStringTag,c=S(),o=h("String.prototype.slice"),u={},v=d(35887),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(65504);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(V){}}),A}(D):o(t(D),8,-1))}},42677:(ne,L,d)=>{ne.exports=d(70057).Observable},70057:(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 h(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:G}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 V=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 h(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 h(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}(),G=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 h(O,[{key:"subscribe",value:function(f){return("object"!=typeof f||null===f)&&(f={next:f,error:arguments[1],complete:arguments[2]}),new V(f,this._subscriber)}},{key:"forEach",value:function(f){var y=this;return new Promise(function(p,N){if("function"==typeof f)var W=y.subscribe({next:function($){try{f($,j)}catch(oe){N(oe),W.unsubscribe()}},error:N,complete:p});else N(new TypeError(f+" is not a function"));function j(){W.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(j){try{j=f(j)}catch(W){return N.error(W)}N.next(j)},error:function(j){N.error(j)},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(j){try{if(!f(j))return}catch(W){return N.error(W)}N.next(j)},error:function(j){N.error(j)},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,j=!1,W=arguments[1],$=W;return new p(function(oe){return y.subscribe({next:function(me){var X=!j;if(j=!0,!X||N)try{$=f($,me)}catch(fe){return oe.error(fe)}else $=me},error:function(me){oe.error(me)},complete:function(){if(!j&&!N)return oe.error(new TypeError("Cannot reduce an empty sequence"));oe.next($),oe.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 j=m(this);return new j(function(W){var $,oe=0;return function me(X){$=X.subscribe({next:function(fe){W.next(fe)},error:function(fe){W.error(fe)},complete:function(){oe===p.length?($=void 0,W.complete()):me(j.from(p[oe++]))}})}(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 j=[],W=y.subscribe({next:function(oe){if(f)try{oe=f(oe)}catch(X){return N.error(X)}var me=p.from(oe).subscribe({next:function(X){N.next(X)},error:function(X){N.error(X)},complete:function(){var X=j.indexOf(me);X>=0&&j.splice(X,1),$()}});j.push(me)},error:function(oe){N.error(oe)},complete:function(){$()}});function $(){W.closed&&0===j.length&&N.complete()}return function(){j.forEach(function(oe){return oe.unsubscribe()}),W.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(O){return O instanceof G}(N)&&N.constructor===y?N:new y(function(j){return N.subscribe(j)})}if(r("iterator")&&(p=v(f,c)))return new y(function(j){P(function(){if(!j.closed){var W=!0,$=!1,oe=void 0;try{for(var X,me=p.call(f)[Symbol.iterator]();!(W=(X=me.next()).done);W=!0)if(j.next(X.value),j.closed)return}catch(ie){$=!0,oe=ie}finally{try{!W&&null!=me.return&&me.return()}finally{if($)throw oe}}j.complete()}})});if(Array.isArray(f))return new y(function(j){P(function(){if(!j.closed){for(var W=0;W<f.length;++W)if(j.next(f[W]),j.closed)return;j.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(j){P(function(){if(!j.closed){for(var W=0;W<y.length;++W)if(j.next(y[W]),j.closed)return;j.complete()}})})}},{key:u,get:function(){return this}}]),O}();L.Observable=G,t()&&Object.defineProperty(G,Symbol("extensions"),{value:{symbol:o,hostReportError:R},configurable:!0})},48399:(ne,L,d)=>{"use strict";d.d(L,{ZT:()=>S,pi:()=>h,_T:()=>t,mG:()=>o,Jh:()=>u,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 j in N)N.hasOwnProperty(j)&&(p[j]=N[j])})(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 h=function(){return(h=Object.assign||function(y){for(var p,N=1,j=arguments.length;N<j;N++)for(var W in p=arguments[N])Object.prototype.hasOwnProperty.call(p,W)&&(y[W]=p[W]);return y}).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 j=0;for(N=Object.getOwnPropertySymbols(f);j<N.length;j++)y.indexOf(N[j])<0&&Object.prototype.propertyIsEnumerable.call(f,N[j])&&(p[N[j]]=f[N[j]])}return p}function o(f,y,p,N){return new(p||(p=Promise))(function(W,$){function oe(fe){try{X(N.next(fe))}catch(ie){$(ie)}}function me(fe){try{X(N.throw(fe))}catch(ie){$(ie)}}function X(fe){fe.done?W(fe.value):function(W){return W instanceof p?W:new p(function($){$(W)})}(fe.value).then(oe,me)}X((N=N.apply(f,y||[])).next())})}function u(f,y){var N,j,W,$,p={label:0,sent:function(){if(1&W[0])throw W[1];return W[1]},trys:[],ops:[]};return $={next:oe(0),throw:oe(1),return:oe(2)},"function"==typeof Symbol&&($[Symbol.iterator]=function(){return this}),$;function oe(X){return function(fe){return function(X){if(N)throw new TypeError("Generator is already executing.");for(;p;)try{if(N=1,j&&(W=2&X[0]?j.return:X[0]?j.throw||((W=j.return)&&W.call(j),0):j.next)&&!(W=W.call(j,X[1])).done)return W;switch(j=0,W&&(X=[2&X[0],W.value]),X[0]){case 0:case 1:W=X;break;case 4:return p.label++,{value:X[1],done:!1};case 5:p.label++,j=X[1],X=[0];continue;case 7:X=p.ops.pop(),p.trys.pop();continue;default:if(!(W=(W=p.trys).length>0&&W[W.length-1])&&(6===X[0]||2===X[0])){p=0;continue}if(3===X[0]&&(!W||X[1]>W[0]&&X[1]<W[3])){p.label=X[1];break}if(6===X[0]&&p.label<W[1]){p.label=W[1],W=X;break}if(W&&p.label<W[2]){p.label=W[2],p.ops.push(X);break}W[2]&&p.ops.pop(),p.trys.pop();continue}X=y.call(f,p)}catch(fe){X=[6,fe],j=0}finally{N=W=0}if(5&X[0])throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}([X,fe])}}}function D(){for(var f=0,y=0,p=arguments.length;y<p;y++)f+=arguments[y].length;var N=Array(f),j=0;for(y=0;y<p;y++)for(var W=arguments[y],$=0,oe=W.length;$<oe;$++,j++)N[j]=W[$];return N}},94659:()=>{},54674: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}},35887:(ne,L,d)=>{"use strict";var S=d(62976)("%Object.getOwnPropertyDescriptor%");if(S)try{S([],"length")}catch(h){S=null}ne.exports=S},89790:(ne,L,d)=>{"use strict";d.d(L,{_:()=>B,O:()=>V});var s=d(67650),S=d(63952),h=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,G){for(var O=0;O<G.length;O++){var w=G[O];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(q,w.key,w)}}function m(q,G){return!G||"object"!==r(G)&&"function"!=typeof G?T(q):G}function T(q){if(void 0===q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q}function R(q){var G="function"==typeof Map?new Map:void 0;return(R=function(w){if(null===w||!function(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(void 0!==G){if(G.has(w))return G.get(w);G.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)})(q)}function P(q,G,O){return(P=D()?Reflect.construct:function(f,y,p){var N=[null];N.push.apply(N,y);var W=new(Function.bind.apply(f,N));return p&&_(W,p.prototype),W}).apply(null,arguments)}function D(){if("undefined"==typeof Reflect||!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(q){return!1}}function _(q,G){return(_=Object.setPrototypeOf||function(w,f){return w.__proto__=f,w})(q,G)}function I(q){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)})(q)}var B=function(q){!function(q,G){if("function"!=typeof G&&null!==G)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(G&&G.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),G&&_(q,G)}(O,q);var G=function(q){var G=D();return function(){var f,w=I(q);if(G){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,j,W){var $,oe,me,X,fe;(function(q,G){if(!(q instanceof G))throw new TypeError("Cannot call a class as a function")})(this,O),fe=G.call(this,w);var re,ie=Array.isArray(f)?0!==f.length?f:void 0:f?[f]:void 0,Q=y;!Q&&ie&&(Q=null===(re=ie[0].loc)||void 0===re?void 0:re.source);var ee,J=p;!J&&ie&&(J=ie.reduce(function(E,b){return b.loc&&E.push(b.loc.start),E},[])),J&&0===J.length&&(J=void 0),p&&y?ee=p.map(function(E){return(0,h.k)(y,E)}):ie&&(ee=ie.reduce(function(E,b){return b.loc&&E.push((0,h.k)(b.loc.source,b.loc.start)),E},[]));var x=W;if(null==x&&null!=j){var l=j.extensions;(0,s.Z)(l)&&(x=l)}return Object.defineProperties(T(fe),{name:{value:"GraphQLError"},message:{value:w,enumerable:!0,writable:!0},locations:{value:null!==($=ee)&&void 0!==$?$:void 0,enumerable:null!=ee},path:{value:null!=N?N:void 0,enumerable:null!=N},nodes:{value:null!=ie?ie:void 0},source:{value:null!==(oe=Q)&&void 0!==oe?oe:void 0},positions:{value:null!==(me=J)&&void 0!==me?me:void 0},originalError:{value:j},extensions:{value:null!==(X=x)&&void 0!==X?X:void 0,enumerable:null!=x}}),null!=j&&j.stack?(Object.defineProperty(T(fe),"stack",{value:j.stack,writable:!0,configurable:!0}),m(fe)):(Error.captureStackTrace?Error.captureStackTrace(T(fe),O):Object.defineProperty(T(fe),"stack",{value:Error().stack,writable:!0,configurable:!0}),fe)}return function(q,G,O){G&&c(q.prototype,G)}(O,[{key:"toString",value:function(){return V(this)}},{key:S.YF,get:function(){return"Object"}}]),O}(R(Error));function V(q){var G=q.message;if(q.nodes)for(var O=0,w=q.nodes;O<w.length;O++){var f=w[O];f.loc&&(G+="\n\n"+(0,t.Q)(f.loc))}else if(q.source&&q.locations)for(var y=0,p=q.locations;y<p.length;y++)G+="\n\n"+(0,t.z)(q.source,p[y]);return G}},73153:(ne,L,d)=>{"use strict";d.d(L,{h:()=>S});var s=d(89790);function S(h,t,r){return new s._("Syntax Error: ".concat(r),void 0,h,[t])}},78687:(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:()=>Q.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:()=>he,assertInterfaceType:()=>_e,assertLeafType:()=>Me,assertListType:()=>ue,assertNamedType:()=>St,assertNonNullType:()=>Ce,assertNullableType:()=>Gt,assertObjectType:()=>se,assertOutputType:()=>Se,assertScalarType:()=>K,assertSchema:()=>bn,assertType:()=>b,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:()=>ae,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:()=>E,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 h(e){return"function"==typeof(null==e?void 0: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 T=d(95897);function R(e,a,i){var g,C=e instanceof Error?e:new Error("Unexpected error value: "+(0,T.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 V(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 G(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 j=d(44461);function W(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 fe(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:W(ce,pe)})}var fe=function(){function e(i){this._input=i,this._inputLowerCase=i.toLowerCase(),this._inputArray=ie(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=ie(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 ie(e){for(var a=e.length,i=new Array(a),g=0;g<a;++g)i[g]=e.charCodeAt(g);return i}var Q=d(87948),re=d(71352),J=d(34248);function ee(e,a){switch(e.kind){case Q.h.NULL:return null;case Q.h.INT:return parseInt(e.value,10);case Q.h.FLOAT:return parseFloat(e.value);case Q.h.STRING:case Q.h.ENUM:case Q.h.BOOLEAN:return e.value;case Q.h.LIST:return e.values.map(function(i){return ee(i,a)});case Q.h.OBJECT:return O(e.fields,function(i){return i.name.value},function(i){return ee(i.value,a)});case Q.h.VARIABLE:return null==a?void 0:a[e.name.value]}(0,J.Z)(0,"Unexpected value node: "+(0,T.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 l(e,a,i){return a&&x(e.prototype,a),i&&x(e,i),e}function E(e){return M(e)||Z(e)||ae(e)||Te(e)||Oe(e)||H(e)||U(e)||ye(e)}function b(e){if(!E(e))throw new Error("Expected ".concat((0,T.Z)(e)," to be a GraphQL type."));return e}function M(e){return(0,w.Z)(e,Tt)}function K(e){if(!M(e))throw new Error("Expected ".concat((0,T.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,T.Z)(e)," to be a GraphQL Object type."));return e}function ae(e){return(0,w.Z)(e,Ut)}function _e(e){if(!ae(e))throw new Error("Expected ".concat((0,T.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,T.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,T.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,T.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,T.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,T.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 he(e){if(!z(e))throw new Error("Expected ".concat((0,T.Z)(e)," to be a GraphQL input type."));return e}function ve(e){return M(e)||Z(e)||ae(e)||Te(e)||Oe(e)||bt(e)&&ve(e.ofType)}function Se(e){if(!ve(e))throw new Error("Expected ".concat((0,T.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,T.Z)(e)," to be a GraphQL leaf type."));return e}function Ke(e){return Z(e)||ae(e)||Te(e)}function Ze(e){if(!Ke(e))throw new Error("Expected ".concat((0,T.Z)(e)," to be a GraphQL composite type."));return e}function $e(e){return ae(e)||Te(e)}function gt(e){if(!$e(e))throw new Error("Expected ".concat((0,T.Z)(e)," to be a GraphQL abstract type."));return e}function qe(e){if(!(this instanceof qe))return new qe(e);this.ofType=b(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,T.Z)(e)," to be a GraphQL wrapping type."));return e}function $t(e){return E(e)&&!ye(e)}function Gt(e){if(!$t(e))throw new Error("Expected ".concat((0,T.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)||ae(e)||Te(e)||Oe(e)||H(e)}function St(e){if(!Rt(e))throw new Error("Expected ".concat((0,T.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,j.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,j.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&&G(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,T.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()},l(e,[{key:B.YF,get:function(){return"GraphQLScalarType"}}]),e}();(0,j.Z)(Tt);var mt=function(){function e(i){this.name=i.name,this.description=i.description,this.isTypeOf=i.isTypeOf,this.extensions=i.extensions&&G(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,T.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()},l(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,T.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&&G(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&&G(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,j.Z)(mt);var Ut=function(){function e(i){this.name=i.name,this.description=i.description,this.resolveType=i.resolveType,this.extensions=i.extensions&&G(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,T.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()},l(e,[{key:B.YF,get:function(){return"GraphQLInterfaceType"}}]),e}();(0,j.Z)(Ut);var Bt=function(){function e(i){this.name=i.name,this.description=i.description,this.resolveType=i.resolveType,this.extensions=i.extensions&&G(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,T.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()},l(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,j.Z)(Bt);var Lt=function(){function e(i){this.name=i.name,this.description=i.description,this.extensions=i.extensions&&G(i.extensions),this.astNode=i.astNode,this.extensionASTNodes=Dt(i.extensionASTNodes),this._values=function(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,T.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&&G(C.extensions),astNode:C.astNode}})}(this.name,i.values),this._valueLookup=new Map(this._values.map(function(g){return[g.value,g]})),this._nameLookup=V(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,T.Z)(g)));return C.name},a.parseValue=function(g){if("string"!=typeof g){var C=(0,T.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!==Q.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()},l(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,j.Z)(Lt);var zt=function(){function e(i){this.name=i.name,this.description=i.description,this.extensions=i.extensions&&G(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()},l(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&&G(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)&&(ae(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,j.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 le=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(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,T.Z)(a)));if(i>We||i<Xe)throw new n._("Int cannot represent non 32-bit signed integer value: "+(0,T.Z)(a));return i},parseValue:function(e){if(!je(e))throw new n._("Int cannot represent non-integer value: ".concat((0,T.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!==Q.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(e){var a=tr(e);if("boolean"==typeof a)return a?1:0;var i=a;if("string"==typeof a&&""!==a&&(i=Number(a)),!le(i))throw new n._("Float cannot represent non numeric value: ".concat((0,T.Z)(a)));return i},parseValue:function(e){if(!le(e))throw new n._("Float cannot represent non numeric value: ".concat((0,T.Z)(e)));return e},parseLiteral:function(a){if(a.kind!==Q.h.FLOAT&&a.kind!==Q.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(e){var a=tr(e);if("string"==typeof a)return a;if("boolean"==typeof a)return a?"true":"false";if(le(a))return a.toString();throw new n._("String cannot represent value: ".concat((0,T.Z)(e)))},parseValue:function(e){if("string"!=typeof e)throw new n._("String cannot represent a non string value: ".concat((0,T.Z)(e)));return e},parseLiteral:function(a){if(a.kind!==Q.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(e){var a=tr(e);if("boolean"==typeof a)return a;if(le(a))return 0!==a;throw new n._("Boolean cannot represent a non boolean value: ".concat((0,T.Z)(a)))},parseValue:function(e){if("boolean"!=typeof e)throw new n._("Boolean cannot represent a non boolean value: ".concat((0,T.Z)(e)));return e},parseLiteral:function(a){if(a.kind!==Q.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(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,T.Z)(e)))},parseValue:function(e){if("string"==typeof e)return e;if(je(e))return e.toString();throw new n._("ID cannot represent value: ".concat((0,T.Z)(e)))},parseLiteral:function(a){if(a.kind!==Q.h.STRING&&a.kind!==Q.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(null==i?void 0:i.kind)===Q.h.NULL?null:i}if(null===e)return{kind:Q.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:Q.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:Q.h.OBJECT_FIELD,name:{kind:Q.h.NAME,value:Ee.name},value:we})}return{kind:Q.h.OBJECT,fields:pe}}if(Ie(a)){var De=a.serialize(e);if(null==De)return null;if("boolean"==typeof De)return{kind:Q.h.BOOLEAN,value:De};if("number"==typeof De&&le(De)){var Pe=String(De);return ei.test(Pe)?{kind:Q.h.INT,value:Pe}:{kind:Q.h.FLOAT,value:Pe}}if("string"==typeof De)return Oe(a)?{kind:Q.h.ENUM,value:De}:a===cn&&ei.test(De)?{kind:Q.h.INT,value:De}:{kind:Q.h.STRING,value:De};throw new TypeError("Cannot convert value to AST: ".concat((0,T.Z)(De),"."))}(0,J.Z)(0,"Unexpected input type: "+(0,T.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:ae(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,T.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)||ae(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)||ae(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,T.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&&G(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&&G(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(e,a,i){a&&ti(e.prototype,a)}(e,[{key:B.YF,get:function(){return"GraphQLDirective"}}]),e}();(0,j.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,T.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,T.Z)(i.types),".")),!i.directives||Array.isArray(i.directives)||(0,r.Z)(0,'"directives" must be Array if provided but got: '+"".concat((0,T.Z)(i.directives),".")),this.description=i.description,this.extensions=i.extensions&&G(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,ae(Ue))for(var Ge=0,Je=Ue.getInterfaces();Ge<Je.length;Ge++){var tt=Je[Ge];if(ae(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(ae(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){var C=this._implementationsMap[g.name];return null!=C?C:{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(e,a,i){a&&ri(e.prototype,a)}(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)||ae(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(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,T.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,T.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,T.Z)(Y),"."),null!==(te=_n(a,"subscription"))&&void 0!==te?te:Y.astNode)})(a),function(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,T.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,T.Z)(g),"."),null==g?void 0:g.astNode)}}(a),function(e){for(var a=function(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)||ae(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,T.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,T.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,T.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];ae(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,T.Z)(a)," must only implement Interface types, ")+"it cannot implement ".concat((0,T.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,T.Z)(Y.type)," but ").concat(a.name,".").concat(te," ")+"is type ".concat((0,T.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,T.Z)(et.type)," but ")+"".concat(a.name,".").concat(te,"(").concat(ct,":) is type ")+"".concat((0,T.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,T.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,T.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]:null!=i?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===Q.h.LIST_TYPE?(i=Ot(e,a.type))&&new qe(i):a.kind===Q.h.NON_NULL_TYPE?(i=Ot(e,a.type))&&new ke(i):a.kind===Q.h.NAMED_TYPE?e.getType(a.name.value):void(0,J.Z)(0,"Unexpected type node: "+(0,T.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=null!=g?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 Q.h.SELECTION_SET:var k=ht(this.getType());this._parentTypeStack.push(Ke(k)?k:void 0);break;case Q.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 Q.h.DIRECTIVE:this._directive=C.getDirective(g.name.value);break;case Q.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 Q.h.INLINE_FRAGMENT:case Q.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 Q.h.VARIABLE_DEFINITION:var Ee=Ot(C,g.type);this._inputTypeStack.push(z(Ee)?Ee:void 0);break;case Q.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 Q.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 Q.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 Q.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 Q.h.SELECTION_SET:this._parentTypeStack.pop();break;case Q.h.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Q.h.DIRECTIVE:this._directive=null;break;case Q.h.OPERATION_DEFINITION:case Q.h.INLINE_FRAGMENT:case Q.h.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Q.h.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Q.h.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Q.h.LIST:case Q.h.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Q.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)||ae(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===Q.h.OPERATION_DEFINITION||e.kind===Q.h.FRAGMENT_DEFINITION}function So(e){return e.kind===Q.h.FIELD||e.kind===Q.h.FRAGMENT_SPREAD||e.kind===Q.h.INLINE_FRAGMENT}function _o(e){return e.kind===Q.h.VARIABLE||e.kind===Q.h.INT||e.kind===Q.h.FLOAT||e.kind===Q.h.STRING||e.kind===Q.h.BOOLEAN||e.kind===Q.h.NULL||e.kind===Q.h.ENUM||e.kind===Q.h.LIST||e.kind===Q.h.OBJECT}function Oo(e){return e.kind===Q.h.NAMED_TYPE||e.kind===Q.h.LIST_TYPE||e.kind===Q.h.NON_NULL_TYPE}function xn(e){return e.kind===Q.h.SCHEMA_DEFINITION||dr(e)||e.kind===Q.h.DIRECTIVE_DEFINITION}function dr(e){return e.kind===Q.h.SCALAR_TYPE_DEFINITION||e.kind===Q.h.OBJECT_TYPE_DEFINITION||e.kind===Q.h.INTERFACE_TYPE_DEFINITION||e.kind===Q.h.UNION_TYPE_DEFINITION||e.kind===Q.h.ENUM_TYPE_DEFINITION||e.kind===Q.h.INPUT_OBJECT_TYPE_DEFINITION}function Cn(e){return e.kind===Q.h.SCHEMA_EXTENSION||Hr(e)}function Hr(e){return e.kind===Q.h.SCALAR_TYPE_EXTENSION||e.kind===Q.h.OBJECT_TYPE_EXTENSION||e.kind===Q.h.INTERFACE_TYPE_EXTENSION||e.kind===Q.h.UNION_TYPE_EXTENSION||e.kind===Q.h.ENUM_TYPE_EXTENSION||e.kind===Q.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===Q.h.SCHEMA_DEFINITION||k.kind===Q.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===Q.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(e){return!Array.isArray(e)&&(xn(e)||Cn(e))}(Ue);if(Be&&function(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,T.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,T.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(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:ae(Ee)&&e.isSubType(Ee,we)?-1:ae(we)&&e.isSubType(we,Ee)?1:W(Ee.name,we.name)}).map(function(Ee){return Ee.name})}(k,g,Y));""===te&&(te=y(function(e,a){return Z(e)||ae(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,T.Z)(C),Y=(0,T.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(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,T.Z)(k),te=(0,T.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===Q.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(e){var a=e[e.length-1];switch(!Array.isArray(a)||(0,J.Z)(0),a.kind){case Q.h.OPERATION_DEFINITION:return function(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,T.Z)(e))}(a.operation);case Q.h.FIELD:return ze.B.FIELD;case Q.h.FRAGMENT_SPREAD:return ze.B.FRAGMENT_SPREAD;case Q.h.INLINE_FRAGMENT:return ze.B.INLINE_FRAGMENT;case Q.h.FRAGMENT_DEFINITION:return ze.B.FRAGMENT_DEFINITION;case Q.h.VARIABLE_DEFINITION:return ze.B.VARIABLE_DEFINITION;case Q.h.SCHEMA_DEFINITION:case Q.h.SCHEMA_EXTENSION:return ze.B.SCHEMA;case Q.h.SCALAR_TYPE_DEFINITION:case Q.h.SCALAR_TYPE_EXTENSION:return ze.B.SCALAR;case Q.h.OBJECT_TYPE_DEFINITION:case Q.h.OBJECT_TYPE_EXTENSION:return ze.B.OBJECT;case Q.h.FIELD_DEFINITION:return ze.B.FIELD_DEFINITION;case Q.h.INTERFACE_TYPE_DEFINITION:case Q.h.INTERFACE_TYPE_EXTENSION:return ze.B.INTERFACE;case Q.h.UNION_TYPE_DEFINITION:case Q.h.UNION_TYPE_EXTENSION:return ze.B.UNION;case Q.h.ENUM_TYPE_DEFINITION:case Q.h.ENUM_TYPE_EXTENSION:return ze.B.ENUM;case Q.h.ENUM_VALUE_DEFINITION:return ze.B.ENUM_VALUE;case Q.h.INPUT_OBJECT_TYPE_DEFINITION:case Q.h.INPUT_OBJECT_TYPE_EXTENSION:return ze.B.INPUT_OBJECT;case Q.h.INPUT_VALUE_DEFINITION:return e[e.length-3].kind===Q.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===Q.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===Q.h.SCHEMA_DEFINITION||Ee.kind===Q.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===Q.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=V(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,T.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,T.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,T.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,T.Z)(i);e.reportError(new n._('Expected value of type "'.concat(Y,'", found ').concat((0,re.print)(a),"."),a))}}catch(ce){var te=(0,T.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=V(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,T.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]=V(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===Q.h.DIRECTIVE_DEFINITION){var pe,de=null!==(pe=ce.arguments)&&void 0!==pe?pe:[];a[ce.name.value]=V(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=V(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=E(et)?(0,T.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===Q.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,T.Z)(we),Pe=(0,T.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!==Q.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(e,a,i,g,C){var k=[],Y=Zr(e,a,g,C),te=Y[0],ce=Y[1];if(function(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(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(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=null==pe?void 0:pe.type,et=null==Ee?void 0:Ee.type;if(tt&&et&&Fn(tt,et))return[[C,'they return conflicting types "'.concat((0,T.Z)(tt),'" and "').concat((0,T.Z)(et),'"')],[ce],[ge]];var ct=ce.selectionSet,lt=ge.selectionSet;return ct&<?function(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])]}(function(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),C,ce,ge):void 0}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 Q.h.FIELD:var ce=te.name.value,pe=void 0;(Z(a)||ae(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 Q.h.FRAGMENT_SPREAD:C[te.name.value]=!0;break;case Q.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||(Y=Object.create(null),this._data[g]=Y),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=null==C?void 0:C.astNode)&&void 0!==g?g:null==C?void 0:C.getQueryType())&&void 0!==i?i:null==C?void 0:C.getMutationType())&&void 0!==a?a:null==C?void 0: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)||ae(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=null==a?void 0:a.getType(ce);if(pe?ge=Wo[pe.kind]:de&&(ge=function(e){return M(e)?Q.h.SCALAR_TYPE_EXTENSION:Z(e)?Q.h.OBJECT_TYPE_EXTENSION:ae(e)?Q.h.INTERFACE_TYPE_EXTENSION:Te(e)?Q.h.UNION_TYPE_EXTENSION:Oe(e)?Q.h.ENUM_TYPE_EXTENSION:H(e)?Q.h.INPUT_OBJECT_TYPE_EXTENSION:void(0,J.Z)(0,"Unexpected type: "+(0,T.Z)(e))}(de)),ge){if(ge!==te.kind){var Ee=function(e){switch(e){case Q.h.SCALAR_TYPE_EXTENSION:return"scalar";case Q.h.OBJECT_TYPE_EXTENSION:return"object";case Q.h.INTERFACE_TYPE_EXTENSION:return"interface";case Q.h.UNION_TYPE_EXTENSION:return"union";case Q.h.ENUM_TYPE_EXTENSION:return"enum";case Q.h.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}(0,J.Z)(0,"Unexpected kind: "+(0,T.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={},Q.h.SCALAR_TYPE_DEFINITION,Q.h.SCALAR_TYPE_EXTENSION),vr(rr,Q.h.OBJECT_TYPE_DEFINITION,Q.h.OBJECT_TYPE_EXTENSION),vr(rr,Q.h.INTERFACE_TYPE_DEFINITION,Q.h.INTERFACE_TYPE_EXTENSION),vr(rr,Q.h.UNION_TYPE_DEFINITION,Q.h.UNION_TYPE_EXTENSION),vr(rr,Q.h.ENUM_TYPE_DEFINITION,Q.h.ENUM_TYPE_EXTENSION),vr(rr,Q.h.INPUT_OBJECT_TYPE_DEFINITION,Q.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===Q.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===Q.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===Q.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===Q.h.NULL?void 0:Kt(e,a.ofType,i);if(e.kind===Q.h.NULL)return null;if(U(a)){var k=a.ofType;if(e.kind===Q.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!==Q.h.OBJECT)return;for(var Ee=Object.create(null),we=V(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(tt){return}return void 0===Je?void 0:Je}(0,J.Z)(0,"Unexpected input type: "+(0,T.Z)(a))}}function Ji(e,a){return e.kind===Q.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,T.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,T.Z)(a),'" not to be null.')));if(null==e)return null;if(U(a)){var C=a.ofType,k=Ae(e,function(Ge,Je){var tt=mr(g,Je,void 0);return xr(Ge,C,i,tt)});return null!=k?k:[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,T.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,T.Z)(a))}function Kn(e,a,i){for(var g,C={},Y=V(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===Q.h.NULL;if(we.kind===Q.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,T.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,T.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,T.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(h(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(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(e,a,i,g,C){return function(e,a,i){return e.reduce(function(g,C){return h(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(undefined,Y,a.name),pe=oa(e,a,i,te,ce);return void 0===pe?k:h(pe)?pe.then(function(de){return k[Y]=de,k}):(k[Y]=pe,k)},Object.create(null))}(e,g,i,0,C):ia(e,g,i,k,C);return h(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 h(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 Q.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 Q.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(e,a,i,g){var C=[],k=null==g?void 0:g.maxErrors;try{var Y=function(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,T.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,T.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,T.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:[],null!=C?C:{},{maxErrors:50});return Ue.errors?Ue.errors:{schema:e,fragments:ge,rootValue:i,contextValue:g,operation:de,variableValues:Ue.coerced,fieldResolver:null!=Y?Y:ha,typeResolver:null!=te?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,h(Ee)&&(Y=!0))}return Y?function(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 Q.h.FIELD:if(!Qn(e,te))continue;var ce=as(te);g[ce]||(g[ce]=[]),g[ce].push(te);break;case Q.h.INLINE_FRAGMENT:if(!Qn(e,te)||!aa(e,te,a))continue;Pr(e,a,te.selectionSet,g,C);break;case Q.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){var i=Cr(mn,a,e.variableValues);if(!0===(null==i?void 0:i.if))return!1;var g=Cr(vn,a,e.variableValues);return!1!==(null==g?void 0:g.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=h(De)?De.then(function(Be){return Nr(e,pe,g,ge,C,Be)}):Nr(e,pe,g,ge,C,De),h(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(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=h(pe)?pe.then(function(De){return Nr(e,Y,i,g,ge,De)}):Nr(e,Y,i,g,ge,pe),h(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(e,a){var i=e.serialize(a);if(void 0===i)throw new Error('Expected a value of type "'.concat((0,T.Z)(e),'" but ')+"received: ".concat((0,T.Z)(a)));return i}(a,k):$e(a)?function(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 h(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,T.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,T.Z)(k),', received "').concat((0,T.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(h(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,T.Z)(a),"."),i)}function fa(e,a,i,g,C){return ia(e,a,C,g,cs(e,a,i))}var e,a,cs=(e=function(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},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 Y=new WeakMap,a.set(g,Y);te||(te=new WeakMap,Y.set(C,te));var pe=e(g,C,k);return te.set(k,pe),pe}),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(h(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(h(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(null==e?void 0: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(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(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(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,T.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=null==g?void 0: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=null==g?void 0: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=null==C?void 0: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=null==g?void 0: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(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(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,T.Z)(e),"."));for(var i=e.__schema,g=O(i.types,function(Fe){return Fe.name},function(Fe){return function(Fe){if(null!=Fe&&null!=Fe.name&&null!=Fe.kind)switch(Fe.kind){case ut.SCALAR:return function(Fe){return new Tt({name:Fe.name,description:Fe.description,specifiedByUrl:Fe.specifiedByUrl})}(Fe);case ut.OBJECT:return function(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(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(Fe){if(!Fe.possibleTypes){var rt=(0,T.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(Fe){if(!Fe.enumValues){var rt=(0,T.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(Fe){if(!Fe.inputFields){var rt=(0,T.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,T.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(Fe){if(!Fe.args){var rt=(0,T.Z)(Fe);throw new Error("Introspection result missing directive args: ".concat(rt,"."))}if(!Fe.locations){var vt=(0,T.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:null==a?void 0: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,T.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,T.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,T.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,T.Z)(rt);throw new Error("Introspection must provide output type for fields, but received: ".concat(vt,"."))}if(!Fe.args){var ur=(0,T.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,T.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===Q.h.DOCUMENT||(0,r.Z)(0,"Must provide valid Document AST."),!0!==(null==i?void 0:i.assumeValid)&&!0!==(null==i?void 0:i.assumeValidSDL)&&function(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===Q.h.SCHEMA_DEFINITION)de=De;else if(De.kind===Q.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===Q.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(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(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):ae(Le)?function(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(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(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(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,T.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(Le){var He=Le.toConfig();return new kt(it(it({},He),{},{args:q(He.args,Ha)}))}),pe.map(function(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=null==i?void 0: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===Q.h.LIST_TYPE?new qe(Fr(Le.type)):Le.kind===Q.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=null!=Le?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 Q.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 Q.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 Q.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 Q.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 Q.h.SCALAR_TYPE_DEFINITION:var mu=nt;return new Tt({name:Ve,description:Qe,specifiedByUrl:Ra(Le),astNode:Le,extensionASTNodes:mu});case Q.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,T.Z)(Le))}}var Ia=V(_r.concat(Rr),function(e){return e.name});function $r(e){var a=Cr(Qr,e);return null==a?void 0:a.reason}function Ra(e){var a=Cr(gn,e);return null==a?void 0:a.url}function sr(e,a){if(e.description)return e.description.value;if(!0===(null==a?void 0:a.commentDescriptions)){var i=function(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===Q.h.DOCUMENT||(0,r.Z)(0,"Must provide valid Document AST."),!0!==(null==a?void 0:a.assumeValid)&&!0!==(null==a?void 0:a.assumeValidSDL)&&function(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:null==a?void 0:a.noLocation,allowLegacySDLEmptyFields:null==a?void 0:a.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:null==a?void 0:a.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:null==a?void 0:a.experimentalFragmentVariables}),{commentDescriptions:null==a?void 0:a.commentDescriptions,assumeValidSDL:null==a?void 0:a.assumeValidSDL,assumeValid:null==a?void 0: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(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(ae(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(Ee){return en(Ee,function(we){return pt(pt({},we),{},{type:g(we.type)})})}(Be.fields)}}))}(0,J.Z)(0,"Unexpected type: "+(0,T.Z)(Ee))});return new hr(pt(pt({},a),{},{types:m(i),directives:Zn(a.directives).map(function(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 W(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(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(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(e,a){return Pt(a,e)+"scalar ".concat(e.name)+function(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(e,a){return Pt(a,e)+"type ".concat(e.name)+Na(e)+Ma(a,e)}(e,a):ae(e)?function(e,a){return Pt(a,e)+"interface ".concat(e.name)+Na(e)+Ma(a,e)}(e,a):Te(e)?function(e,a){var i=e.getTypes(),g=i.length?" = "+i.join(" | "):"";return Pt(a,e)+"union "+e.name+g}(e,a):Oe(e)?function(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(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,T.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===(null==e?void 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 Q.h.OPERATION_DEFINITION:a.push(k);break;case Q.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:Q.h.DOCUMENT,definitions:e.definitions.filter(function(Be){return Be===ge||Be.kind===Q.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(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)||ae(de)&&ae(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(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":ae(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,T.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 W(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=V(e,function(Ee){return Ee.name}),Y=V(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,h){if(!Boolean(S))throw new Error(h)}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(h){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})(h)}function S(h){return"object"==s(h)&&null!==h}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),h=d(92495),t=d(33951),r=function(){function B(q){var G=new S.WU(h.T.SOF,0,0,0,0,null);this.source=q,this.lastToken=G,this.token=G,this.line=1,this.lineStart=0}var V=B.prototype;return V.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},V.lookahead=function(){var G=this.token;if(G.kind!==h.T.EOF)do{var O;G=null!==(O=G.next)&&void 0!==O?O:G.next=o(this,G)}while(G.kind===h.T.COMMENT);return G},B}();function n(B){return B===h.T.BANG||B===h.T.DOLLAR||B===h.T.AMP||B===h.T.PAREN_L||B===h.T.PAREN_R||B===h.T.SPREAD||B===h.T.COLON||B===h.T.EQUALS||B===h.T.AT||B===h.T.BRACKET_L||B===h.T.BRACKET_R||B===h.T.BRACE_L||B===h.T.PIPE||B===h.T.BRACE_R}function c(B){return isNaN(B)?h.T.EOF:B<127?JSON.stringify(String.fromCharCode(B)):'"\\u'.concat(("00"+B.toString(16).toUpperCase()).slice(-4),'"')}function o(B,V){for(var q=B.source,G=q.body,O=G.length,w=V.end;w<O;){var f=G.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===G.charCodeAt(w+1)?w+=2:++w,++B.line,B.lineStart=w;continue;case 33:return new S.WU(h.T.BANG,w,w+1,y,p,V);case 35:return v(q,w,y,p,V);case 36:return new S.WU(h.T.DOLLAR,w,w+1,y,p,V);case 38:return new S.WU(h.T.AMP,w,w+1,y,p,V);case 40:return new S.WU(h.T.PAREN_L,w,w+1,y,p,V);case 41:return new S.WU(h.T.PAREN_R,w,w+1,y,p,V);case 46:if(46===G.charCodeAt(w+1)&&46===G.charCodeAt(w+2))return new S.WU(h.T.SPREAD,w,w+3,y,p,V);break;case 58:return new S.WU(h.T.COLON,w,w+1,y,p,V);case 61:return new S.WU(h.T.EQUALS,w,w+1,y,p,V);case 64:return new S.WU(h.T.AT,w,w+1,y,p,V);case 91:return new S.WU(h.T.BRACKET_L,w,w+1,y,p,V);case 93:return new S.WU(h.T.BRACKET_R,w,w+1,y,p,V);case 123:return new S.WU(h.T.BRACE_L,w,w+1,y,p,V);case 124:return new S.WU(h.T.PIPE,w,w+1,y,p,V);case 125:return new S.WU(h.T.BRACE_R,w,w+1,y,p,V);case 34:return 34===G.charCodeAt(w+1)&&34===G.charCodeAt(w+2)?P(q,w,y,p,V,B):R(q,w,y,p,V);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,V);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,V)}throw(0,s.h)(q,w,u(f))}return new S.WU(h.T.EOF,O,O,B.line,1+w-B.lineStart,V)}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,V,q,G,O){var f,w=B.body,y=V;do{f=w.charCodeAt(++y)}while(!isNaN(f)&&(f>31||9===f));return new S.WU(h.T.COMMENT,V,y,q,G,O,w.slice(V+1,y))}function m(B,V,q,G,O,w){var f=B.body,y=q,p=V,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=T(B,p,y),y=f.charCodeAt(p);if(46===y&&(N=!0,y=f.charCodeAt(++p),p=T(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=T(B,p,y),y=f.charCodeAt(p)),46===y||function(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?h.T.FLOAT:h.T.INT,V,p,G,O,w,f.slice(V,p))}function T(B,V,q){var G=B.body,O=V,w=q;if(w>=48&&w<=57){do{w=G.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,V,q,G,O){for(var w=B.body,f=V+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(h.T.STRING,V,f+1,q,G,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 j=D(w.charCodeAt(f+1),w.charCodeAt(f+2),w.charCodeAt(f+3),w.charCodeAt(f+4));if(j<0){var W=w.slice(f+1,f+5);throw(0,s.h)(B,f,"Invalid character escape sequence: \\u".concat(W,"."))}N+=String.fromCharCode(j),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,V,q,G,O,w){for(var f=B.body,y=V+3,p=y,N=0,j="";y<f.length&&!isNaN(N=f.charCodeAt(y));){if(34===N&&34===f.charCodeAt(y+1)&&34===f.charCodeAt(y+2))return j+=f.slice(p,y),new S.WU(h.T.BLOCK_STRING,V,y+3,q,G,O,(0,t.W7)(j));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)?(j+=f.slice(p,y)+'"""',p=y+=4):++y}throw(0,s.h)(B,y,"Unterminated string.")}function D(B,V,q,G){return A(B)<<12|A(V)<<8|A(q)<<4|A(G)}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,V,q,G,O){for(var w=B.body,f=w.length,y=V+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(h.T.NAME,V,y,q,G,O,w.slice(V,y))}},74051:(ne,L,d)=>{"use strict";function s(S,h){for(var c,t=/\r\n|[\n\r]/g,r=1,n=h+1;(c=t.exec(S.body))&&c.index<h;)r+=1,n=h+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,{Qc:()=>o,H2:()=>u,gZ:()=>v});var s=d(73153),S=d(87948),h=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,V,_=this._lexer.token,I=this.parseName();return this.expectOptionalToken(t.T.COLON)?(B=I,V=this.parseName()):V=I,{kind:S.h.FIELD,alias:B,name:V,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),V=this.many(t.T.BRACE_L,this.parseOperationTypeDefinition,t.T.BRACE_R);return{kind:S.h.SCHEMA_DEFINITION,description:I,directives:B,operationTypes:V,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(),V=this.parseDirectives(!0);return{kind:S.h.SCALAR_TYPE_DEFINITION,description:I,name:B,directives:V,loc:this.loc(_)}},D.parseObjectTypeDefinition=function(){var _=this._lexer.token,I=this.parseDescription();this.expectKeyword("type");var B=this.parseName(),V=this.parseImplementsInterfaces(),q=this.parseDirectives(!0),G=this.parseFieldsDefinition();return{kind:S.h.OBJECT_TYPE_DEFINITION,description:I,name:B,interfaces:V,directives:q,fields:G,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(),V=this.parseArgumentDefs();this.expectToken(t.T.COLON);var q=this.parseTypeReference(),G=this.parseDirectives(!0);return{kind:S.h.FIELD_DEFINITION,description:I,name:B,arguments:V,type:q,directives:G,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,V=this.parseTypeReference();this.expectOptionalToken(t.T.EQUALS)&&(q=this.parseValueLiteral(!0));var G=this.parseDirectives(!0);return{kind:S.h.INPUT_VALUE_DEFINITION,description:I,name:B,type:V,defaultValue:q,directives:G,loc:this.loc(_)}},D.parseInterfaceTypeDefinition=function(){var _=this._lexer.token,I=this.parseDescription();this.expectKeyword("interface");var B=this.parseName(),V=this.parseImplementsInterfaces(),q=this.parseDirectives(!0),G=this.parseFieldsDefinition();return{kind:S.h.INTERFACE_TYPE_DEFINITION,description:I,name:B,interfaces:V,directives:q,fields:G,loc:this.loc(_)}},D.parseUnionTypeDefinition=function(){var _=this._lexer.token,I=this.parseDescription();this.expectKeyword("union");var B=this.parseName(),V=this.parseDirectives(!0),q=this.parseUnionMemberTypes();return{kind:S.h.UNION_TYPE_DEFINITION,description:I,name:B,directives:V,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(),V=this.parseDirectives(!0),q=this.parseEnumValuesDefinition();return{kind:S.h.ENUM_TYPE_DEFINITION,description:I,name:B,directives:V,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(),V=this.parseDirectives(!0);return{kind:S.h.ENUM_VALUE_DEFINITION,description:I,name:B,directives:V,loc:this.loc(_)}},D.parseInputObjectTypeDefinition=function(){var _=this._lexer.token,I=this.parseDescription();this.expectKeyword("input");var B=this.parseName(),V=this.parseDirectives(!0),q=this.parseInputFieldsDefinition();return{kind:S.h.INPUT_OBJECT_TYPE_DEFINITION,description:I,name:B,directives:V,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(),V=this.parseDirectives(!0),q=this.parseFieldsDefinition();if(0===B.length&&0===V.length&&0===q.length)throw this.unexpected();return{kind:S.h.OBJECT_TYPE_EXTENSION,name:I,interfaces:B,directives:V,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(),V=this.parseDirectives(!0),q=this.parseFieldsDefinition();if(0===B.length&&0===V.length&&0===q.length)throw this.unexpected();return{kind:S.h.INTERFACE_TYPE_EXTENSION,name:I,interfaces:B,directives:V,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),V=this.parseUnionMemberTypes();if(0===B.length&&0===V.length)throw this.unexpected();return{kind:S.h.UNION_TYPE_EXTENSION,name:I,directives:B,types:V,loc:this.loc(_)}},D.parseEnumTypeExtension=function(){var _=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var I=this.parseName(),B=this.parseDirectives(!0),V=this.parseEnumValuesDefinition();if(0===B.length&&0===V.length)throw this.unexpected();return{kind:S.h.ENUM_TYPE_EXTENSION,name:I,directives:B,values:V,loc:this.loc(_)}},D.parseInputObjectTypeExtension=function(){var _=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var I=this.parseName(),B=this.parseDirectives(!0),V=this.parseInputFieldsDefinition();if(0===B.length&&0===V.length)throw this.unexpected();return{kind:S.h.INPUT_OBJECT_TYPE_EXTENSION,name:I,directives:B,fields:V,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(),V=this.parseArgumentDefs(),q=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var G=this.parseDirectiveLocations();return{kind:S.h.DIRECTIVE_DEFINITION,description:I,name:B,arguments:V,repeatable:q,locations:G,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 h.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(T(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(T(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=null!=_?_:this._lexer.token;return(0,s.h)(this._lexer.source,I.start,"Unexpected ".concat(T(I),"."))},D.any=function(_,I,B){this.expectToken(_);for(var V=[];!this.expectOptionalToken(B);)V.push(I.call(this));return V},D.optionalMany=function(_,I,B){if(this.expectOptionalToken(_)){var V=[];do{V.push(I.call(this))}while(!this.expectOptionalToken(B));return V}return[]},D.many=function(_,I,B){this.expectToken(_);var V=[];do{V.push(I.call(this))}while(!this.expectOptionalToken(B));return V},D.delimitedMany=function(_,I){this.expectOptionalToken(_);var B=[];do{B.push(I.call(this))}while(this.expectOptionalToken(_));return B},P}();function T(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:()=>h});var s=d(74051);function S(c){return h(c.source,(0,s.k)(c.source,c.start))}function h(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),V=D%80,q=[],G=0;G<I.length;G+=80)q.push(I.slice(G,G+80));return A+t([["".concat(R),q[0]]].concat(q.slice(1,B+1).map(function(O){return["",O]}),[[" ",r(V-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 T=v[1];return function(c,o){return r(c-o.length)+o}(u,v[0])+(T?" | "+T:" |")}).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),h=d(60488),t=d(44104);function r(u,v){for(var m=0;m<v.length;m++){var T=v[m];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(u,T.key,T)}}var c=function(){function u(v){var m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof v||(0,h.Z)(0,"Body must be a string. Received: ".concat((0,S.Z)(v),".")),this.body=v,this.name=m,this.locationOffset=T,this.locationOffset.line>0||(0,h.Z)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,h.Z)(0,"column in locationOffset is 1-indexed and must be positive.")}return function(u,v,m){v&&r(u.prototype,v)}(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,{Xr:()=>s,PA:()=>S,YF:()=>h});var s="function"==typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:"@@iterator",S="function"==typeof Symbol&&null!=Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator",h="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"}}}')},65359: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"}}}')}}]);
|