!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=445)}([function(e,t,r){var n=r(669),i=r(182);e.exports=function(e,t){var r=i(e);return null==t?r:n(r,t)}},function(e,t,r){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var n=r(458),i=r(459),o=r(460);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(e).length;default:if(n)return B(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=r;os&&(r=s-u),o=r;o>=0;o--){for(var p=!0,d=0;di&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function T(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+p<=r)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=p}return function(e){var t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return _(this,t,r);case"latin1":case"binary":return C(this,t,r);case"base64":return T(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,s=Math.min(o,a),c=this.slice(n,i),l=e.slice(t,r),p=0;pi)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return S(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function _(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function P(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function D(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function L(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(e,t,r,n,o){return o||L(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function q(e,t,r,n,o){return o||L(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||R(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);R(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);R(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return q(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return q(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(22))},function(e,t,r){var n={util:r(15)};({}).toString(),e.exports=n,n.util.update(n,{VERSION:"2.291.0",Signers:{},Protocol:{Json:r(148),Query:r(232),Rest:r(106),RestJson:r(234),RestXml:r(235)},XML:{Builder:r(467),Parser:null},JSON:{Builder:r(149),Parser:r(150)},Model:{Api:r(236),Operation:r(237),Shape:r(80),Paginator:r(238),ResourceWaiter:r(239)},apiLoader:r(472)}),r(473),r(476),r(242),r(243),r(477),r(480),r(482),r(483),r(484),r(490),n.events=new n.SequentialExecutor},function(e,t,r){var n={util:r(19)};({}).toString(),e.exports=n,n.util.update(n,{VERSION:"2.198.0",Signers:{},Protocol:{Json:r(201),Query:r(356),Rest:r(133),RestJson:r(358),RestXml:r(359)},XML:{Builder:r(800),Parser:null},JSON:{Builder:r(202),Parser:r(203)},Model:{Api:r(366),Operation:r(367),Shape:r(99),Paginator:r(368),ResourceWaiter:r(369)},apiLoader:r(811)}),r(812),r(815),r(372),r(373),r(816),r(817),r(819),r(820),r(821),r(828),n.events=new n.SequentialExecutor},function(e,t,r){var n={util:r(20)};({}).toString(),e.exports=n,n.util.update(n,{VERSION:"2.198.0",Signers:{},Protocol:{Json:r(209),Query:r(378),Rest:r(136),RestJson:r(380),RestXml:r(381)},XML:{Builder:r(874),Parser:null},JSON:{Builder:r(210),Parser:r(211)},Model:{Api:r(388),Operation:r(389),Shape:r(100),Paginator:r(390),ResourceWaiter:r(391)},apiLoader:r(885)}),r(886),r(889),r(394),r(395),r(890),r(891),r(893),r(894),r(895),r(901),n.events=new n.SequentialExecutor},function(e,t,r){var n={util:r(18)};({}).toString(),e.exports=n,n.util.update(n,{VERSION:"2.198.0",Signers:{},Protocol:{Json:r(187),Query:r(317),Rest:r(119),RestJson:r(319),RestXml:r(320)},XML:{Builder:r(655),Parser:null},JSON:{Builder:r(188),Parser:r(189)},Model:{Api:r(340),Operation:r(341),Shape:r(95),Paginator:r(342),ResourceWaiter:r(343)},apiLoader:r(743)}),r(744),r(747),r(346),r(347),r(748),r(749),r(751),r(752),r(753),r(760),n.events=new n.SequentialExecutor},function(e,t,r){var n={util:r(21)};({}).toString(),e.exports=n,n.util.update(n,{VERSION:"2.198.0",Signers:{},Protocol:{Json:r(217),Query:r(413),Rest:r(139),RestJson:r(415),RestXml:r(416)},XML:{Builder:r(972),Parser:null},JSON:{Builder:r(218),Parser:r(219)},Model:{Api:r(423),Operation:r(424),Shape:r(101),Paginator:r(425),ResourceWaiter:r(426)},apiLoader:r(983)}),r(984),r(987),r(429),r(430),r(988),r(989),r(991),r(992),r(993),r(1e3),n.events=new n.SequentialExecutor},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(56);Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return n.GraphQLError}});var i=r(528);Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return i.syntaxError}});var o=r(251);Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return o.locatedError}});var a=r(529);Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return a.formatError}})},function(e,t,r){"use strict";r.r(t);var n=r(102),i=r.n(n).a,o=r(67),a=r(10),s=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0||(0,o.default)(0,e.name+" fields must be an object with field names as keys or a function which returns such an object.");var a=Object.create(null);return n.forEach(function(t){(0,u.assertValidName)(t);var n=r[t];x(n)||(0,o.default)(0,e.name+"."+t+" field config must be an object"),n.hasOwnProperty("isDeprecated")&&(0,o.default)(0,e.name+"."+t+' should provide "deprecationReason" instead of "isDeprecated".');var s=i({},n,{isDeprecated:Boolean(n.deprecationReason),name:t});f(s.type)||(0,o.default)(0,e.name+"."+t+" field type must be Output Type but got: "+String(s.type)+"."),!function(e){return null==e||"function"==typeof e}(s.resolve)&&(0,o.default)(0,e.name+"."+t+" field resolver must be a function if provided, but got: "+String(s.resolve)+".");var c=n.args;c?(x(c)||(0,o.default)(0,e.name+"."+t+" args must be an object with argument names as keys."),s.args=Object.keys(c).map(function(r){(0,u.assertValidName)(r);var n=c[r];return d(n.type)||(0,o.default)(0,e.name+"."+t+"("+r+":) argument type must be Input Type but got: "+String(n.type)+"."),{name:r,description:void 0===n.description?null:n.description,type:n.type,defaultValue:n.defaultValue,astNode:n.astNode}})):s.args=[],a[t]=s}),a}function x(e){return e&&"object"===(void 0===e?"undefined":n(e))&&!Array.isArray(e)}w.prototype.toJSON=w.prototype.inspect=w.prototype.toString;var E=t.GraphQLInterfaceType=function(){function e(t){l(this,e),(0,u.assertValidName)(t.name),this.name=t.name,this.description=t.description,this.astNode=t.astNode,t.resolveType&&"function"!=typeof t.resolveType&&(0,o.default)(0,this.name+' must provide "resolveType" as a function.'),this.resolveType=t.resolveType,this._typeConfig=t}return e.prototype.getFields=function(){return this._fields||(this._fields=S(this,this._typeConfig.fields))},e.prototype.toString=function(){return this.name},e}();E.prototype.toJSON=E.prototype.inspect=E.prototype.toString;var T=t.GraphQLUnionType=function(){function e(t){l(this,e),(0,u.assertValidName)(t.name),this.name=t.name,this.description=t.description,this.astNode=t.astNode,t.resolveType&&"function"!=typeof t.resolveType&&(0,o.default)(0,this.name+' must provide "resolveType" as a function.'),this.resolveType=t.resolveType,this._typeConfig=t}return e.prototype.getTypes=function(){return this._types||(this._types=function(e,t){var r=v(t);Array.isArray(r)&&r.length>0||(0,o.default)(0,"Must provide Array of types or a function which returns such an array for Union "+e.name+".");var n=Object.create(null);return r.forEach(function(t){t instanceof w||(0,o.default)(0,e.name+" may only contain Object types, it cannot contain: "+String(t)+"."),n[t.name]&&(0,o.default)(0,e.name+" can include "+t.name+" type only once."),n[t.name]=!0,"function"!=typeof e.resolveType&&"function"!=typeof t.isTypeOf&&(0,o.default)(0,'Union type "'+e.name+'" does not provide a "resolveType" function and possible type "'+t.name+'" does not provide an "isTypeOf" function. There is no way to resolve this possible type during execution.')}),r}(this,this._typeConfig.types))},e.prototype.toString=function(){return this.name},e}();T.prototype.toJSON=T.prototype.inspect=T.prototype.toString;var k=t.GraphQLEnumType=function(){function e(t){l(this,e),this.name=t.name,(0,u.assertValidName)(t.name,t.isIntrospection),this.description=t.description,this.astNode=t.astNode,this._values=function(e,t){x(t)||(0,o.default)(0,e.name+" values must be an object with value names as keys.");var r=Object.keys(t);return r.length>0||(0,o.default)(0,e.name+" values must be an object with value names as keys."),r.map(function(r){(0,u.assertValidName)(r),-1!==["true","false","null"].indexOf(r)&&(0,o.default)(0,'Name "'+r+'" can not be used as an Enum value.');var n=t[r];return x(n)||(0,o.default)(0,e.name+"."+r+' must refer to an object with a "value" key representing an internal value but got: '+String(n)+"."),n.hasOwnProperty("isDeprecated")&&(0,o.default)(0,e.name+"."+r+' should provide "deprecationReason" instead of "isDeprecated".'),{name:r,description:n.description,isDeprecated:Boolean(n.deprecationReason),deprecationReason:n.deprecationReason,astNode:n.astNode,value:n.hasOwnProperty("value")?n.value:r}})}(this,t.values),this._enumConfig=t}return e.prototype.getValues=function(){return this._values},e.prototype.getValue=function(e){return this._getNameLookup()[e]},e.prototype.serialize=function(e){var t=this._getValueLookup().get(e);return t?t.name:null},e.prototype.isValidValue=function(e){return"string"==typeof e&&void 0!==this._getNameLookup()[e]},e.prototype.parseValue=function(e){if("string"==typeof e){var t=this._getNameLookup()[e];if(t)return t.value}},e.prototype.isValidLiteral=function(e){return e.kind===s.ENUM&&void 0!==this._getNameLookup()[e.value]},e.prototype.parseLiteral=function(e){if(e.kind===s.ENUM){var t=this._getNameLookup()[e.value];if(t)return t.value}},e.prototype._getValueLookup=function(){if(!this._valueLookup){var e=new Map;this.getValues().forEach(function(t){e.set(t.value,t)}),this._valueLookup=e}return this._valueLookup},e.prototype._getNameLookup=function(){if(!this._nameLookup){var e=Object.create(null);this.getValues().forEach(function(t){e[t.name]=t}),this._nameLookup=e}return this._nameLookup},e.prototype.toString=function(){return this.name},e}();k.prototype.toJSON=k.prototype.inspect=k.prototype.toString;var I=t.GraphQLInputObjectType=function(){function e(t){l(this,e),(0,u.assertValidName)(t.name),this.name=t.name,this.description=t.description,this.astNode=t.astNode,this._typeConfig=t}return e.prototype.getFields=function(){return this._fields||(this._fields=this._defineFieldMap())},e.prototype._defineFieldMap=function(){var e=this,t=v(this._typeConfig.fields);x(t)||(0,o.default)(0,this.name+" fields must be an object with field names as keys or a function which returns such an object.");var r=Object.keys(t);r.length>0||(0,o.default)(0,this.name+" fields must be an object with field names as keys or a function which returns such an object.");var n=Object.create(null);return r.forEach(function(r){(0,u.assertValidName)(r);var a=i({},t[r],{name:r});d(a.type)||(0,o.default)(0,e.name+"."+r+" field type must be Input Type but got: "+String(a.type)+"."),null!=a.resolve&&(0,o.default)(0,e.name+"."+r+" field type has a resolve property, but Input Types cannot define resolvers."),n[r]=a}),n},e.prototype.toString=function(){return this.name},e}();I.prototype.toJSON=I.prototype.inspect=I.prototype.toString;var _=t.GraphQLList=function(){function e(t){l(this,e),p(t)||(0,o.default)(0,"Can only create List of a GraphQLType but got: "+String(t)+"."),this.ofType=t}return e.prototype.toString=function(){return"["+String(this.ofType)+"]"},e}();_.prototype.toJSON=_.prototype.inspect=_.prototype.toString;var C=t.GraphQLNonNull=function(){function e(t){l(this,e),(!p(t)||t instanceof e)&&(0,o.default)(0,"Can only create NonNull of a Nullable GraphQLType but got: "+String(t)+"."),this.ofType=t}return e.prototype.toString=function(){return this.ofType.toString()+"!"},e}();C.prototype.toJSON=C.prototype.inspect=C.prototype.toString},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,n.visit)(e,{leave:i})};var n=r(79);var i={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return o(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,r=e.name,n=s("(",o(e.variableDefinitions,", "),")"),i=o(e.directives," "),a=e.selectionSet;return r||i||n||"query"!==t?o([t,o([r,n]),i,a]," "):a},VariableDefinition:function(e){return e.variable+": "+e.type+s(" = ",e.defaultValue)},SelectionSet:function(e){return a(e.selections)},Field:function(e){var t=e.alias,r=e.name,n=e.arguments,i=e.directives,a=e.selectionSet;return o([s("",t,": ")+r+s("(",o(n,", "),")"),o(i," "),a]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+s(" ",o(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,r=e.directives,n=e.selectionSet;return o(["...",s("on ",t),o(r," "),n]," ")},FragmentDefinition:function(e){var t=e.name,r=e.typeCondition,n=e.directives,i=e.selectionSet;return"fragment "+t+" on "+r+" "+s("",o(n," ")," ")+i},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e){var t=e.value;return JSON.stringify(t)},BooleanValue:function(e){var t=e.value;return JSON.stringify(t)},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+o(e.values,", ")+"]"},ObjectValue:function(e){return"{"+o(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+s("(",o(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.directives,r=e.operationTypes;return o(["schema",o(t," "),a(r)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:function(e){return o(["scalar",e.name,o(e.directives," ")]," ")},ObjectTypeDefinition:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return o(["type",t,s("implements ",o(r,", ")),o(n," "),a(i)]," ")},FieldDefinition:function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+s("(",o(r,", "),")")+": "+n+s(" ",o(i," "))},InputValueDefinition:function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return o([t+": "+r,s("= ",n),o(i," ")]," ")},InterfaceTypeDefinition:function(e){var t=e.name,r=e.directives,n=e.fields;return o(["interface",t,o(r," "),a(n)]," ")},UnionTypeDefinition:function(e){var t=e.name,r=e.directives,n=e.types;return o(["union",t,o(r," "),"= "+o(n," | ")]," ")},EnumTypeDefinition:function(e){var t=e.name,r=e.directives,n=e.values;return o(["enum",t,o(r," "),a(n)]," ")},EnumValueDefinition:function(e){return o([e.name,o(e.directives," ")]," ")},InputObjectTypeDefinition:function(e){var t=e.name,r=e.directives,n=e.fields;return o(["input",t,o(r," "),a(n)]," ")},TypeExtensionDefinition:function(e){return"extend "+e.definition},DirectiveDefinition:function(e){var t=e.name,r=e.arguments,n=e.locations;return"directive @"+t+s("(",o(r,", "),")")+" on "+o(n," | ")}};function o(e,t){return e?e.filter(function(e){return e}).join(t||""):""}function a(e){return e&&0!==e.length?function(e){return e&&e.replace(/\n/g,"\n ")}("{\n"+o(e,"\n"))+"\n}":"{}"}function s(e,t,r){return t?e+t+(r||""):""}},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0});var i=r(118),o=r(29);r(131);var a=r(132);n(r(118));var s=r(785);t.ClientDevice=s.default,n(r(29)),n(r(787));var u=r(351);t.Hub=u.default;var c=r(788);t.I18n=c.default;var l=r(352);t.JS=l.default;var p=r(790);t.Signer=p.default;var d=r(791);t.Parser=d.default;var f=r(353);t.FacebookOAuth=f.FacebookOAuth,t.GoogleOAuth=f.GoogleOAuth,n(r(794));var h=r(795);t.Credentials=h.default;var m=r(796);t.ServiceWorker=m.default;var g=r(200);t.StorageHelper=g.default,t.MemoryStorage=g.MemoryStorage;var y=r(354);t.Platform=y.default;var v=r(354);t.Constants={userAgent:v.default.userAgent},t.default=a.default;var b=new o.ConsoleLogger("Core");i.AWS.util?i.AWS.util.userAgent=function(){return t.Constants.userAgent}:i.AWS.config?i.AWS.config.update({customUserAgent:t.Constants.userAgent}):b.warn("No AWS.config")},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u,c=[],l=!1,p=-1;function d(){l&&u&&(l=!1,u.length?c=u.concat(c):p=-1,c.length&&f())}function f(){if(!l){var e=s(d);l=!0;for(var t=c.length;t;){for(u=c,c=[];++p1)for(var r=1;r=0&&t%1==0}function a(e){var t=s(e);if(t)return t.call(e)}function s(e){if(null!=e){var t=r&&e[r]||e["@@iterator"];if("function"==typeof t)return t}}function u(e){if(null!=e){var t=a(e);if(t)return t;if(o(e))return new c(e)}}function c(e){this._o=e,this._i=0}t.$$iterator=n,t.isIterable=i,t.isArrayLike=o,t.isCollection=function(e){return Object(e)===e&&(o(e)||i(e))},t.getIterator=a,t.getIteratorMethod=s,t.createIterator=u,c.prototype[n]=function(){return this},c.prototype.next=function(){return void 0===this._o||this._i>=this._o.length?(this._o=void 0,{value:void 0,done:!0}):{value:this._o[this._i++],done:!1}},t.forEach=function(e,t,r){if(null!=e){if("function"==typeof e.forEach)return e.forEach(t,r);var n=0,i=a(e);if(i){for(var s;!(s=i.next()).done;)if(t.call(r,s.value,n++,e),n>9999999)throw new TypeError("Near-infinite iteration.")}else if(o(e))for(;n=e.length)return t.push(null);var i=r+n;i>e.length&&(i=e.length),t.push(e.slice(r,i)),r=i},t},concat:function(e){var t,r,n=0,i=0;for(r=0;r>>8^t[255&(r^e.readUInt8(n))]}return(-1^r)>>>0},hmac:function(e,t,r,n){return r||(r="binary"),"buffer"===r&&(r=void 0),n||(n="sha256"),"string"==typeof t&&(t=new o.Buffer(t)),o.crypto.lib.createHmac(n,e).update(t).digest(r)},md5:function(e,t,r){return o.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return o.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,n){var i=o.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=new o.Buffer(t));var a=o.arraySliceFn(t),s=o.Buffer.isBuffer(t);if(o.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),n&&"object"==typeof t&&"function"==typeof t.on&&!s)t.on("data",function(e){i.update(e)}),t.on("error",function(e){n(e)}),t.on("end",function(){n(null,i.digest(r))});else{if(!n||!a||s||"undefined"==typeof FileReader){o.isBrowser()&&"object"==typeof t&&!s&&(t=new o.Buffer(new Uint8Array(t)));var u=i.update(t).digest(r);return n&&n(null,u),u}var c=0,l=new FileReader;l.onerror=function(){n(new Error("Failed to read data."))},l.onload=function(){var e=new o.Buffer(new Uint8Array(l.result));i.update(e),c+=e.length,l._continueReading()},l._continueReading=function(){if(c>=t.size)n(null,i.digest(r));else{var e=c+524288;e>t.size&&(e=t.size),l.readAsArrayBuffer(a.call(t,c,e))}},l._continueReading()}},toHex:function(e){for(var t=[],r=0;r=3e5,!1),i.config.isClockSkewed},applyClockOffset:function(e){e&&(i.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 r=!1;void 0===t&&i&&i.config&&(t=i.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(r=!0),Array.isArray(e)||(e=[e]);for(var n=0;n=500||429===n});i&&a.retryable&&(a.retryAfter=i),u(a)}})},u)};i.util.defer(c)},uuid:{v4:function(){return r(492).v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,n=t.service.api.operations[r].output||{};n.payload&&e.data[n.payload]&&(e.data[n.payload]=e.data[n.payload].toString())},defer:function(e){"object"==typeof t&&"function"==typeof t.nextTick?t.nextTick(e):"function"==typeof n?n(e):setTimeout(e,0)},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=o}).call(this,r(13),r(55).setImmediate)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)throw new Error(t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.VARIABLE="Variable",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.TYPE_EXTENSION_DEFINITION="TypeExtensionDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition"},function(e,t,r){(function(t,n){var i,o={environment:"nodejs",engine:function(){if(o.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var e=t.platform+"/"+t.version;return t.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+t.env.AWS_EXECUTION_ENV),e},userAgent:function(){var e=o.environment,t="aws-sdk-"+e+"/"+r(5).VERSION;return"nodejs"===e&&(t+=" "+o.engine()),t},isBrowser:function(){return t&&t.browser},isNode:function(){return!o.isBrowser()},uriEscape:function(e){var t=encodeURIComponent(e);return t=(t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(e){var t=[];return o.arrayEach(e.split("/"),function(e){t.push(o.uriEscape(e))}),t.join("/")},urlParse:function(e){return o.url.parse(e)},urlFormat:function(e){return o.url.format(e)},queryStringParse:function(e){return o.querystring.parse(e)},queryParamsToString:function(e){var t=[],r=o.uriEscape,n=Object.keys(e).sort();return o.arrayEach(n,function(n){var i=e[n],a=r(n),s=a+"=";if(Array.isArray(i)){var u=[];o.arrayEach(i,function(e){u.push(r(e))}),s=a+"="+u.sort().join("&"+a+"=")}else void 0!==i&&null!==i&&(s=a+"="+r(i));t.push(s)}),t.join("&")},readFileSync:function(e){return o.isBrowser()?null:r(199).readFileSync(e,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw o.error(new Error("Cannot base64 encode number "+e));return null===e||void 0===e?e:("function"==typeof o.Buffer.from&&o.Buffer.from!==Uint8Array.from?o.Buffer.from(e):new o.Buffer(e)).toString("base64")},decode:function(e){if("number"==typeof e)throw o.error(new Error("Cannot base64 decode number "+e));return null===e||void 0===e?e:"function"==typeof o.Buffer.from&&o.Buffer.from!==Uint8Array.from?o.Buffer.from(e,"base64"):new o.Buffer(e,"base64")}},buffer:{toStream:function(e){o.Buffer.isBuffer(e)||(e=new o.Buffer(e));var t=new o.stream.Readable,r=0;return t._read=function(n){if(r>=e.length)return t.push(null);var i=r+n;i>e.length&&(i=e.length),t.push(e.slice(r,i)),r=i},t},concat:function(e){var t,r,n=0,i=0;for(r=0;r>>8^t[255&(r^e.readUInt8(n))]}return(-1^r)>>>0},hmac:function(e,t,r,n){return r||(r="binary"),"buffer"===r&&(r=void 0),n||(n="sha256"),"string"==typeof t&&(t=new o.Buffer(t)),o.crypto.lib.createHmac(n,e).update(t).digest(r)},md5:function(e,t,r){return o.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return o.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,n){var i=o.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=new o.Buffer(t));var a=o.arraySliceFn(t),s=o.Buffer.isBuffer(t);if(o.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),n&&"object"==typeof t&&"function"==typeof t.on&&!s)t.on("data",function(e){i.update(e)}),t.on("error",function(e){n(e)}),t.on("end",function(){n(null,i.digest(r))});else{if(!n||!a||s||"undefined"==typeof FileReader){o.isBrowser()&&"object"==typeof t&&!s&&(t=new o.Buffer(new Uint8Array(t)));var u=i.update(t).digest(r);return n&&n(null,u),u}var c=0,l=new FileReader;l.onerror=function(){n(new Error("Failed to read data."))},l.onload=function(){var e=new o.Buffer(new Uint8Array(l.result));i.update(e),c+=e.length,l._continueReading()},l._continueReading=function(){if(c>=t.size)n(null,i.digest(r));else{var e=c+524288;e>t.size&&(e=t.size),l.readAsArrayBuffer(a.call(t,c,e))}},l._continueReading()}},toHex:function(e){for(var t=[],r=0;r=3e5,!1),i.config.isClockSkewed},applyClockOffset:function(e){e&&(i.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){if(void 0===t&&i&&i.config&&(t=i.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t)var r=!0;Array.isArray(e)||(e=[e]);for(var n=0;n=500||429===n});i&&a.retryable&&(a.retryAfter=i),u(a)}})},u)};i.util.defer(c)},uuid:{v4:function(){return r(762).v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,n=t.service.api.operations[r].output||{};n.payload&&e.data[n.payload]&&(e.data[n.payload]=e.data[n.payload].toString())},defer:function(e){"object"==typeof t&&"function"==typeof t.nextTick?t.nextTick(e):"function"==typeof n?n(e):setTimeout(e,0)},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=o}).call(this,r(13),r(55).setImmediate)},function(e,t,r){(function(t,n){var i,o={environment:"nodejs",engine:function(){if(o.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var e=t.platform+"/"+t.version;return t.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+t.env.AWS_EXECUTION_ENV),e},userAgent:function(){var e=o.environment,t="aws-sdk-"+e+"/"+r(3).VERSION;return"nodejs"===e&&(t+=" "+o.engine()),t},isBrowser:function(){return t&&t.browser},isNode:function(){return!o.isBrowser()},uriEscape:function(e){var t=encodeURIComponent(e);return t=(t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(e){var t=[];return o.arrayEach(e.split("/"),function(e){t.push(o.uriEscape(e))}),t.join("/")},urlParse:function(e){return o.url.parse(e)},urlFormat:function(e){return o.url.format(e)},queryStringParse:function(e){return o.querystring.parse(e)},queryParamsToString:function(e){var t=[],r=o.uriEscape,n=Object.keys(e).sort();return o.arrayEach(n,function(n){var i=e[n],a=r(n),s=a+"=";if(Array.isArray(i)){var u=[];o.arrayEach(i,function(e){u.push(r(e))}),s=a+"="+u.sort().join("&"+a+"=")}else void 0!==i&&null!==i&&(s=a+"="+r(i));t.push(s)}),t.join("&")},readFileSync:function(e){return o.isBrowser()?null:r(204).readFileSync(e,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw o.error(new Error("Cannot base64 encode number "+e));return null===e||void 0===e?e:("function"==typeof o.Buffer.from&&o.Buffer.from!==Uint8Array.from?o.Buffer.from(e):new o.Buffer(e)).toString("base64")},decode:function(e){if("number"==typeof e)throw o.error(new Error("Cannot base64 decode number "+e));return null===e||void 0===e?e:"function"==typeof o.Buffer.from&&o.Buffer.from!==Uint8Array.from?o.Buffer.from(e,"base64"):new o.Buffer(e,"base64")}},buffer:{toStream:function(e){o.Buffer.isBuffer(e)||(e=new o.Buffer(e));var t=new o.stream.Readable,r=0;return t._read=function(n){if(r>=e.length)return t.push(null);var i=r+n;i>e.length&&(i=e.length),t.push(e.slice(r,i)),r=i},t},concat:function(e){var t,r,n=0,i=0;for(r=0;r>>8^t[255&(r^e.readUInt8(n))]}return(-1^r)>>>0},hmac:function(e,t,r,n){return r||(r="binary"),"buffer"===r&&(r=void 0),n||(n="sha256"),"string"==typeof t&&(t=new o.Buffer(t)),o.crypto.lib.createHmac(n,e).update(t).digest(r)},md5:function(e,t,r){return o.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return o.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,n){var i=o.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=new o.Buffer(t));var a=o.arraySliceFn(t),s=o.Buffer.isBuffer(t);if(o.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),n&&"object"==typeof t&&"function"==typeof t.on&&!s)t.on("data",function(e){i.update(e)}),t.on("error",function(e){n(e)}),t.on("end",function(){n(null,i.digest(r))});else{if(!n||!a||s||"undefined"==typeof FileReader){o.isBrowser()&&"object"==typeof t&&!s&&(t=new o.Buffer(new Uint8Array(t)));var u=i.update(t).digest(r);return n&&n(null,u),u}var c=0,l=new FileReader;l.onerror=function(){n(new Error("Failed to read data."))},l.onload=function(){var e=new o.Buffer(new Uint8Array(l.result));i.update(e),c+=e.length,l._continueReading()},l._continueReading=function(){if(c>=t.size)n(null,i.digest(r));else{var e=c+524288;e>t.size&&(e=t.size),l.readAsArrayBuffer(a.call(t,c,e))}},l._continueReading()}},toHex:function(e){for(var t=[],r=0;r=3e5,!1),i.config.isClockSkewed},applyClockOffset:function(e){e&&(i.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){if(void 0===t&&i&&i.config&&(t=i.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t)var r=!0;Array.isArray(e)||(e=[e]);for(var n=0;n=500||429===n});i&&a.retryable&&(a.retryAfter=i),u(a)}})},u)};i.util.defer(c)},uuid:{v4:function(){return r(830).v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,n=t.service.api.operations[r].output||{};n.payload&&e.data[n.payload]&&(e.data[n.payload]=e.data[n.payload].toString())},defer:function(e){"object"==typeof t&&"function"==typeof t.nextTick?t.nextTick(e):"function"==typeof n?n(e):setTimeout(e,0)},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=o}).call(this,r(13),r(55).setImmediate)},function(e,t,r){(function(t,n){var i,o={environment:"nodejs",engine:function(){if(o.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var e=t.platform+"/"+t.version;return t.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+t.env.AWS_EXECUTION_ENV),e},userAgent:function(){var e=o.environment,t="aws-sdk-"+e+"/"+r(4).VERSION;return"nodejs"===e&&(t+=" "+o.engine()),t},isBrowser:function(){return t&&t.browser},isNode:function(){return!o.isBrowser()},uriEscape:function(e){var t=encodeURIComponent(e);return t=(t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(e){var t=[];return o.arrayEach(e.split("/"),function(e){t.push(o.uriEscape(e))}),t.join("/")},urlParse:function(e){return o.url.parse(e)},urlFormat:function(e){return o.url.format(e)},queryStringParse:function(e){return o.querystring.parse(e)},queryParamsToString:function(e){var t=[],r=o.uriEscape,n=Object.keys(e).sort();return o.arrayEach(n,function(n){var i=e[n],a=r(n),s=a+"=";if(Array.isArray(i)){var u=[];o.arrayEach(i,function(e){u.push(r(e))}),s=a+"="+u.sort().join("&"+a+"=")}else void 0!==i&&null!==i&&(s=a+"="+r(i));t.push(s)}),t.join("&")},readFileSync:function(e){return o.isBrowser()?null:r(212).readFileSync(e,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw o.error(new Error("Cannot base64 encode number "+e));return null===e||void 0===e?e:("function"==typeof o.Buffer.from&&o.Buffer.from!==Uint8Array.from?o.Buffer.from(e):new o.Buffer(e)).toString("base64")},decode:function(e){if("number"==typeof e)throw o.error(new Error("Cannot base64 decode number "+e));return null===e||void 0===e?e:"function"==typeof o.Buffer.from&&o.Buffer.from!==Uint8Array.from?o.Buffer.from(e,"base64"):new o.Buffer(e,"base64")}},buffer:{toStream:function(e){o.Buffer.isBuffer(e)||(e=new o.Buffer(e));var t=new o.stream.Readable,r=0;return t._read=function(n){if(r>=e.length)return t.push(null);var i=r+n;i>e.length&&(i=e.length),t.push(e.slice(r,i)),r=i},t},concat:function(e){var t,r,n=0,i=0;for(r=0;r>>8^t[255&(r^e.readUInt8(n))]}return(-1^r)>>>0},hmac:function(e,t,r,n){return r||(r="binary"),"buffer"===r&&(r=void 0),n||(n="sha256"),"string"==typeof t&&(t=new o.Buffer(t)),o.crypto.lib.createHmac(n,e).update(t).digest(r)},md5:function(e,t,r){return o.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return o.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,n){var i=o.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=new o.Buffer(t));var a=o.arraySliceFn(t),s=o.Buffer.isBuffer(t);if(o.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),n&&"object"==typeof t&&"function"==typeof t.on&&!s)t.on("data",function(e){i.update(e)}),t.on("error",function(e){n(e)}),t.on("end",function(){n(null,i.digest(r))});else{if(!n||!a||s||"undefined"==typeof FileReader){o.isBrowser()&&"object"==typeof t&&!s&&(t=new o.Buffer(new Uint8Array(t)));var u=i.update(t).digest(r);return n&&n(null,u),u}var c=0,l=new FileReader;l.onerror=function(){n(new Error("Failed to read data."))},l.onload=function(){var e=new o.Buffer(new Uint8Array(l.result));i.update(e),c+=e.length,l._continueReading()},l._continueReading=function(){if(c>=t.size)n(null,i.digest(r));else{var e=c+524288;e>t.size&&(e=t.size),l.readAsArrayBuffer(a.call(t,c,e))}},l._continueReading()}},toHex:function(e){for(var t=[],r=0;r=3e5,!1),i.config.isClockSkewed},applyClockOffset:function(e){e&&(i.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){if(void 0===t&&i&&i.config&&(t=i.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t)var r=!0;Array.isArray(e)||(e=[e]);for(var n=0;n=500||429===n});i&&a.retryable&&(a.retryAfter=i),u(a)}})},u)};i.util.defer(c)},uuid:{v4:function(){return r(903).v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,n=t.service.api.operations[r].output||{};n.payload&&e.data[n.payload]&&(e.data[n.payload]=e.data[n.payload].toString())},defer:function(e){"object"==typeof t&&"function"==typeof t.nextTick?t.nextTick(e):"function"==typeof n?n(e):setTimeout(e,0)},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=o}).call(this,r(13),r(55).setImmediate)},function(e,t,r){(function(t,n){var i,o={environment:"nodejs",engine:function(){if(o.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var e=t.platform+"/"+t.version;return t.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+t.env.AWS_EXECUTION_ENV),e},userAgent:function(){var e=o.environment,t="aws-sdk-"+e+"/"+r(6).VERSION;return"nodejs"===e&&(t+=" "+o.engine()),t},isBrowser:function(){return t&&t.browser},isNode:function(){return!o.isBrowser()},uriEscape:function(e){var t=encodeURIComponent(e);return t=(t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(e){var t=[];return o.arrayEach(e.split("/"),function(e){t.push(o.uriEscape(e))}),t.join("/")},urlParse:function(e){return o.url.parse(e)},urlFormat:function(e){return o.url.format(e)},queryStringParse:function(e){return o.querystring.parse(e)},queryParamsToString:function(e){var t=[],r=o.uriEscape,n=Object.keys(e).sort();return o.arrayEach(n,function(n){var i=e[n],a=r(n),s=a+"=";if(Array.isArray(i)){var u=[];o.arrayEach(i,function(e){u.push(r(e))}),s=a+"="+u.sort().join("&"+a+"=")}else void 0!==i&&null!==i&&(s=a+"="+r(i));t.push(s)}),t.join("&")},readFileSync:function(e){return o.isBrowser()?null:r(220).readFileSync(e,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw o.error(new Error("Cannot base64 encode number "+e));return null===e||void 0===e?e:("function"==typeof o.Buffer.from&&o.Buffer.from!==Uint8Array.from?o.Buffer.from(e):new o.Buffer(e)).toString("base64")},decode:function(e){if("number"==typeof e)throw o.error(new Error("Cannot base64 decode number "+e));return null===e||void 0===e?e:"function"==typeof o.Buffer.from&&o.Buffer.from!==Uint8Array.from?o.Buffer.from(e,"base64"):new o.Buffer(e,"base64")}},buffer:{toStream:function(e){o.Buffer.isBuffer(e)||(e=new o.Buffer(e));var t=new o.stream.Readable,r=0;return t._read=function(n){if(r>=e.length)return t.push(null);var i=r+n;i>e.length&&(i=e.length),t.push(e.slice(r,i)),r=i},t},concat:function(e){var t,r,n=0,i=0;for(r=0;r>>8^t[255&(r^e.readUInt8(n))]}return(-1^r)>>>0},hmac:function(e,t,r,n){return r||(r="binary"),"buffer"===r&&(r=void 0),n||(n="sha256"),"string"==typeof t&&(t=new o.Buffer(t)),o.crypto.lib.createHmac(n,e).update(t).digest(r)},md5:function(e,t,r){return o.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return o.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,n){var i=o.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=new o.Buffer(t));var a=o.arraySliceFn(t),s=o.Buffer.isBuffer(t);if(o.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),n&&"object"==typeof t&&"function"==typeof t.on&&!s)t.on("data",function(e){i.update(e)}),t.on("error",function(e){n(e)}),t.on("end",function(){n(null,i.digest(r))});else{if(!n||!a||s||"undefined"==typeof FileReader){o.isBrowser()&&"object"==typeof t&&!s&&(t=new o.Buffer(new Uint8Array(t)));var u=i.update(t).digest(r);return n&&n(null,u),u}var c=0,l=new FileReader;l.onerror=function(){n(new Error("Failed to read data."))},l.onload=function(){var e=new o.Buffer(new Uint8Array(l.result));i.update(e),c+=e.length,l._continueReading()},l._continueReading=function(){if(c>=t.size)n(null,i.digest(r));else{var e=c+524288;e>t.size&&(e=t.size),l.readAsArrayBuffer(a.call(t,c,e))}},l._continueReading()}},toHex:function(e){for(var t=[],r=0;r=3e5,!1),i.config.isClockSkewed},applyClockOffset:function(e){e&&(i.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){if(void 0===t&&i&&i.config&&(t=i.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t)var r=!0;Array.isArray(e)||(e=[e]);for(var n=0;n=500||429===n});i&&a.retryable&&(a.retryAfter=i),u(a)}})},u)};i.util.defer(c)},uuid:{v4:function(){return r(1002).v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,n=t.service.api.operations[r].output||{};n.payload&&e.data[n.payload]&&(e.data[n.payload]=e.data[n.payload].toString())},defer:function(e){"object"==typeof t&&"function"==typeof t.nextTick?t.nextTick(e):"function"==typeof n?n(e):setTimeout(e,0)},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=o}).call(this,r(13),r(55).setImmediate)},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";r.r(t);var n=r(75),i=r(77),o=r(67),a=r(74),s=r(66),u=r(68),c=r(69),l=r(65),p=r(73),d=r(71),f=r(72),h=r(76);function m(e){return JSON.parse(JSON.stringify(e))}r.d(t,"getDirectiveInfoFromField",function(){return n.b}),r.d(t,"shouldInclude",function(){return n.e}),r.d(t,"flattenSelections",function(){return n.a}),r.d(t,"getDirectiveNames",function(){return n.c}),r.d(t,"hasDirectives",function(){return n.d}),r.d(t,"getFragmentQueryDocument",function(){return i.a}),r.d(t,"getMutationDefinition",function(){return o.g}),r.d(t,"checkDocument",function(){return o.a}),r.d(t,"getOperationDefinition",function(){return o.h}),r.d(t,"getOperationDefinitionOrDie",function(){return o.i}),r.d(t,"getOperationName",function(){return o.j}),r.d(t,"getFragmentDefinitions",function(){return o.e}),r.d(t,"getQueryDefinition",function(){return o.k}),r.d(t,"getFragmentDefinition",function(){return o.d}),r.d(t,"getMainDefinition",function(){return o.f}),r.d(t,"createFragmentMap",function(){return o.b}),r.d(t,"getDefaultValues",function(){return o.c}),r.d(t,"variablesInOperation",function(){return o.l}),r.d(t,"removeDirectivesFromDocument",function(){return a.d}),r.d(t,"addTypenameToDocument",function(){return a.a}),r.d(t,"removeConnectionDirectiveFromDocument",function(){return a.c}),r.d(t,"getDirectivesFromDocument",function(){return a.b}),r.d(t,"isScalarValue",function(){return s.h}),r.d(t,"isNumberValue",function(){return s.g}),r.d(t,"valueToObjectRepresentation",function(){return s.m}),r.d(t,"storeKeyNameFromField",function(){return s.j}),r.d(t,"getStoreKeyName",function(){return s.b}),r.d(t,"argumentsObjectFromField",function(){return s.a}),r.d(t,"resultKeyNameFromField",function(){return s.i}),r.d(t,"isField",function(){return s.c}),r.d(t,"isInlineFragment",function(){return s.e}),r.d(t,"isIdValue",function(){return s.d}),r.d(t,"toIdValue",function(){return s.k}),r.d(t,"isJsonValue",function(){return s.f}),r.d(t,"valueFromNode",function(){return s.l}),r.d(t,"assign",function(){return u.a}),r.d(t,"cloneDeep",function(){return c.a}),r.d(t,"getEnv",function(){return l.a}),r.d(t,"isEnv",function(){return l.c}),r.d(t,"isProduction",function(){return l.d}),r.d(t,"isDevelopment",function(){return l.b}),r.d(t,"isTest",function(){return l.e}),r.d(t,"tryFunctionOrLogError",function(){return p.b}),r.d(t,"graphQLResultHasError",function(){return p.a}),r.d(t,"isEqual",function(){return d.a}),r.d(t,"maybeDeepFreeze",function(){return f.a}),r.d(t,"warnOnceInDevelopment",function(){return h.a}),r.d(t,"stripSymbols",function(){return m})},function(e,t,r){!function(e){"use strict";function t(e){return null!==e&&"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function n(e,i){if(e===i)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(i))return!1;if(!0===t(e)){if(e.length!==i.length)return!1;for(var o=0;o":!0,"=":!0,"!":!0},g={" ":!0,"\t":!0,"\n":!0};function y(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"_"===e}function v(e){return e>="0"&&e<="9"||"-"===e}function b(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"_"===e}function w(){}w.prototype={tokenize:function(e){var t,r,n,i=[];for(this._current=0;this._current"===r?"="===e[this._current]?(this._current++,{type:"GTE",value:">=",start:t}):{type:"GT",value:">",start:t}:"="===r&&"="===e[this._current]?(this._current++,{type:"EQ",value:"==",start:t}):void 0},_consumeLiteral:function(e){this._current++;for(var t,r=this._current,n=e.length;"`"!==e[this._current]&&this._current=0)return!0;if(["true","false","null"].indexOf(e)>=0)return!0;if(!("-0123456789".indexOf(e[0])>=0))return!1;try{return JSON.parse(e),!0}catch(e){return!1}}};var S={};function x(){}function E(e){this.runtime=e}function T(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[a]}]},avg:{_func:this._functionAvg,_signature:[{types:[d]}]},ceil:{_func:this._functionCeil,_signature:[{types:[a]}]},contains:{_func:this._functionContains,_signature:[{types:[u,c]},{types:[s]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[u]},{types:[u]}]},floor:{_func:this._functionFloor,_signature:[{types:[a]}]},length:{_func:this._functionLength,_signature:[{types:[u,c,l]}]},map:{_func:this._functionMap,_signature:[{types:[p]},{types:[c]}]},max:{_func:this._functionMax,_signature:[{types:[d,f]}]},merge:{_func:this._functionMerge,_signature:[{types:[l],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[c]},{types:[p]}]},sum:{_func:this._functionSum,_signature:[{types:[d]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[u]},{types:[u]}]},min:{_func:this._functionMin,_signature:[{types:[d,f]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[c]},{types:[p]}]},type:{_func:this._functionType,_signature:[{types:[s]}]},keys:{_func:this._functionKeys,_signature:[{types:[l]}]},values:{_func:this._functionValues,_signature:[{types:[l]}]},sort:{_func:this._functionSort,_signature:[{types:[f,d]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[c]},{types:[p]}]},join:{_func:this._functionJoin,_signature:[{types:[u]},{types:[f]}]},reverse:{_func:this._functionReverse,_signature:[{types:[u,c]}]},to_array:{_func:this._functionToArray,_signature:[{types:[s]}]},to_string:{_func:this._functionToString,_signature:[{types:[s]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[s]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[s],variadic:!0}]}}}S.EOF=0,S.UnquotedIdentifier=0,S.QuotedIdentifier=0,S.Rbracket=0,S.Rparen=0,S.Comma=0,S.Rbrace=0,S.Number=0,S.Current=0,S.Expref=0,S.Pipe=1,S.Or=2,S.And=3,S.EQ=5,S.GT=5,S.LT=5,S.GTE=5,S.LTE=5,S.NE=5,S.Flatten=9,S.Star=20,S.Filter=21,S.Dot=40,S.Not=45,S.Lbrace=50,S.Lbracket=55,S.Lparen=60,x.prototype={parse:function(e){this._loadTokens(e),this.index=0;var t=this.expression(0);if("EOF"!==this._lookahead(0)){var r=this._lookaheadToken(0),n=new Error("Unexpected token type: "+r.type+", value: "+r.value);throw n.name="ParserError",n}return t},_loadTokens:function(e){var t=(new w).tokenize(e);t.push({type:"EOF",value:"",start:e.length}),this.tokens=t},expression:function(e){var t=this._lookaheadToken(0);this._advance();for(var r=this.nud(t),n=this._lookahead(0);e=0?this.expression(e):"Lbracket"===t?(this._match("Lbracket"),this._parseMultiselectList()):"Lbrace"===t?(this._match("Lbrace"),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(S[this._lookahead(0)]<10)t={type:"Identity"};else if("Lbracket"===this._lookahead(0))t=this.expression(e);else if("Filter"===this._lookahead(0))t=this.expression(e);else{if("Dot"!==this._lookahead(0)){var r=this._lookaheadToken(0),n=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");throw n.name="ParserError",n}this._match("Dot"),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];"Rbracket"!==this._lookahead(0);){var t=this.expression(0);if(e.push(t),"Comma"===this._lookahead(0)&&(this._match("Comma"),"Rbracket"===this._lookahead(0)))throw new Error("Unexpected token Rbracket")}return this._match("Rbracket"),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,r,n=[],i=["UnquotedIdentifier","QuotedIdentifier"];;){if(e=this._lookaheadToken(0),i.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(t=e.value,this._advance(),this._match("Colon"),r={type:"KeyValuePair",name:t,value:this.expression(0)},n.push(r),"Comma"===this._lookahead(0))this._match("Comma");else if("Rbrace"===this._lookahead(0)){this._match("Rbrace");break}}return{type:"MultiSelectHash",children:n}}},E.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,o){var a,s,u,c,l,p,d,f,h;switch(e.type){case"Field":return null===o?null:r(o)?void 0===(p=o[e.name])?null:p:null;case"Subexpression":for(u=this.visit(e.children[0],o),h=1;h0)for(h=v;hb;h+=w)u.push(o[h]);return u;case"Projection":var S=this.visit(e.children[0],o);if(!t(S))return null;for(f=[],h=0;hl;break;case"GTE":u=c>=l;break;case"LT":u=c=e&&(t=r<0?e-1:e),t}},T.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(void 0===r)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,r._signature),r._func.call(this,t)},_validateArgs:function(e,t,r){var n,i,o,a;if(r[r.length-1].variadic){if(t.length=0;n--)r+=t[n];return r}var i=e[0].slice(0);return i.reverse(),i},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,r=e[0],n=0;n=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return r(e[0])?Object.keys(e[0]).length:e[0].length},_functionMap:function(e){for(var t=[],r=this._interpreter,n=e[0],i=e[1],o=0;o0){if(this._getTypeName(e[0][0])===a)return Math.max.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;n0){if(this._getTypeName(e[0][0])===a)return Math.min.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;ns?1:as&&(s=r,t=i[c]);return t},_functionMinBy:function(e){for(var t,r,n=e[1],i=e[0],o=this.createKeyFunction(n,[a,u]),s=1/0,c=0;c",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),p=["%","/","?",";","#"].concat(l),d=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(54);function b(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?P+="x":P+=R[D];if(!P.match(f)){var M=A.slice(0,_),q=A.slice(_+1),U=R.match(h);U&&(M.push(U[1]),q.unshift(U[2])),q.length&&(b="/"+q.join(".")+b),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),N||(this.hostname=n.toASCII(this.hostname));var j=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+j,this.href+=this.host,N&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[x])for(_=0,O=l.length;_0)&&r.host.split("@"))&&(r.auth=N.shift(),r.host=r.hostname=N.shift());return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!E.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=E.slice(-1)[0],I=(r.host||e.host||E.length>1)&&("."===k||".."===k)||""===k,_=0,C=E.length;C>=0;C--)"."===(k=E[C])?E.splice(C,1):".."===k?(E.splice(C,1),_++):_&&(E.splice(C,1),_--);if(!S&&!x)for(;_--;_)E.unshift("..");!S||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),I&&"/"!==E.join("/").substr(-1)&&E.push("");var N,A=""===E[0]||E[0]&&"/"===E[0].charAt(0);T&&(r.hostname=r.host=A?"":E.length?E.shift():"",(N=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=N.shift(),r.host=r.hostname=N.shift()));return(S=S||r.host&&E.length)&&!A&&E.unshift(""),E.length?r.pathname=E.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLSchema=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=r(9),o=r(36),a=r(46),s=l(r(57)),u=l(r(16)),c=r(109);function l(e){return e&&e.__esModule?e:{default:e}}t.GraphQLSchema=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"object"!==(void 0===t?"undefined":n(t))&&(0,u.default)(0,"Must provide configuration object."),t.query instanceof i.GraphQLObjectType||(0,u.default)(0,"Schema query must be Object Type but got: "+String(t.query)+"."),this._queryType=t.query,!t.mutation||t.mutation instanceof i.GraphQLObjectType||(0,u.default)(0,"Schema mutation must be Object Type if provided but got: "+String(t.mutation)+"."),this._mutationType=t.mutation,!t.subscription||t.subscription instanceof i.GraphQLObjectType||(0,u.default)(0,"Schema subscription must be Object Type if provided but got: "+String(t.subscription)+"."),this._subscriptionType=t.subscription,t.types&&!Array.isArray(t.types)&&(0,u.default)(0,"Schema types must be Array if provided but got: "+String(t.types)+"."),!t.directives||Array.isArray(t.directives)&&t.directives.every(function(e){return e instanceof o.GraphQLDirective})||(0,u.default)(0,"Schema directives must be Array if provided but got: "+String(t.directives)+"."),this._directives=t.directives||o.specifiedDirectives,this.astNode=t.astNode||null;var l=[this.getQueryType(),this.getMutationType(),this.getSubscriptionType(),a.__Schema],d=t.types;d&&(l=l.concat(d)),this._typeMap=l.reduce(p,Object.create(null)),this._implementations=Object.create(null),Object.keys(this._typeMap).forEach(function(e){var t=r._typeMap[e];t instanceof i.GraphQLObjectType&&t.getInterfaces().forEach(function(e){var n=r._implementations[e.name];n?n.push(t):r._implementations[e.name]=[t]})}),Object.keys(this._typeMap).forEach(function(e){var t=r._typeMap[e];t instanceof i.GraphQLObjectType&&t.getInterfaces().forEach(function(e){return function(e,t,r){var n=t.getFields(),o=r.getFields();Object.keys(o).forEach(function(a){var l=n[a],p=o[a];l||(0,u.default)(0,'"'+r.name+'" expects field "'+a+'" but "'+t.name+'" does not provide it.'),(0,c.isTypeSubTypeOf)(e,l.type,p.type)||(0,u.default)(0,r.name+"."+a+' expects type "'+String(p.type)+'" but '+t.name+"."+a+' provides type "'+String(l.type)+'".'),p.args.forEach(function(e){var n=e.name,i=(0,s.default)(l.args,function(e){return e.name===n});i||(0,u.default)(0,r.name+"."+a+' expects argument "'+n+'" but '+t.name+"."+a+" does not provide it."),(0,c.isEqualType)(e.type,i.type)||(0,u.default)(0,r.name+"."+a+"("+n+':) expects type "'+String(e.type)+'" but '+t.name+"."+a+"("+n+':) provides type "'+String(i.type)+'".')}),l.args.forEach(function(e){var n=e.name,o=(0,s.default)(p.args,function(e){return e.name===n});o||e.type instanceof i.GraphQLNonNull&&(0,u.default)(0,t.name+"."+a+"("+n+':) is of required type "'+String(e.type)+'" but is not also provided by the interface '+r.name+"."+a+".")})})}(r,t,e)})})}return e.prototype.getQueryType=function(){return this._queryType},e.prototype.getMutationType=function(){return this._mutationType},e.prototype.getSubscriptionType=function(){return this._subscriptionType},e.prototype.getTypeMap=function(){return this._typeMap},e.prototype.getType=function(e){return this.getTypeMap()[e]},e.prototype.getPossibleTypes=function(e){return e instanceof i.GraphQLUnionType?e.getTypes():(e instanceof i.GraphQLInterfaceType||(0,u.default)(0),this._implementations[e.name])},e.prototype.isPossibleType=function(e,t){var r=this._possibleTypeMap;if(r||(this._possibleTypeMap=r=Object.create(null)),!r[e.name]){var n=this.getPossibleTypes(e);Array.isArray(n)||(0,u.default)(0,"Could not find possible implementing types for "+e.name+" in schema. Check that schema.types is defined and is an array of all possible types in the schema."),r[e.name]=n.reduce(function(e,t){return e[t.name]=!0,e},Object.create(null))}return Boolean(r[e.name][t.name])},e.prototype.getDirectives=function(){return this._directives},e.prototype.getDirective=function(e){return(0,s.default)(this.getDirectives(),function(t){return t.name===e})},e}();function p(e,t){if(!t)return e;if(t instanceof i.GraphQLList||t instanceof i.GraphQLNonNull)return p(e,t.ofType);if(e[t.name])return e[t.name]!==t&&(0,u.default)(0,'Schema must contain unique named types but contains multiple types named "'+t.name+'".'),e;e[t.name]=t;var r=e;if(t instanceof i.GraphQLUnionType&&(r=t.getTypes().reduce(p,r)),t instanceof i.GraphQLObjectType&&(r=t.getInterfaces().reduce(p,r)),t instanceof i.GraphQLObjectType||t instanceof i.GraphQLInterfaceType){var n=t.getFields();Object.keys(n).forEach(function(e){var t=n[e];if(t.args){var i=t.args.map(function(e){return e.type});r=i.reduce(p,r)}r=p(r,t.type)})}if(t instanceof i.GraphQLInputObjectType){var o=t.getFields();Object.keys(o).forEach(function(e){var t=o[e];r=p(r,t.type)})}return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.specifiedDirectives=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=t.GraphQLSkipDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.DirectiveLocation=void 0;var n=r(9),i=r(40),o=function(e){return e&&e.__esModule?e:{default:e}}(r(16)),a=r(154);var s=t.DirectiveLocation={QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",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"},u=t.GraphQLDirective=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t.name||(0,o.default)(0,"Directive must be named."),(0,a.assertValidName)(t.name),Array.isArray(t.locations)||(0,o.default)(0,"Must provide locations for directive."),this.name=t.name,this.description=t.description,this.locations=t.locations,this.astNode=t.astNode;var r=t.args;r?(Array.isArray(r)&&(0,o.default)(0,"@"+t.name+" args must be an object with argument names as keys."),this.args=Object.keys(r).map(function(e){(0,a.assertValidName)(e);var i=r[e];return(0,n.isInputType)(i.type)||(0,o.default)(0,"@"+t.name+"("+e+":) argument type must be Input Type but got: "+String(i.type)+"."),{name:e,description:void 0===i.description?null:i.description,type:i.type,defaultValue:i.defaultValue,astNode:i.astNode}})):this.args=[]},c=t.GraphQLIncludeDirective=new u({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[s.FIELD,s.FRAGMENT_SPREAD,s.INLINE_FRAGMENT],args:{if:{type:new n.GraphQLNonNull(i.GraphQLBoolean),description:"Included when true."}}}),l=t.GraphQLSkipDirective=new u({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[s.FIELD,s.FRAGMENT_SPREAD,s.INLINE_FRAGMENT],args:{if:{type:new n.GraphQLNonNull(i.GraphQLBoolean),description:"Skipped when true."}}}),p=t.DEFAULT_DEPRECATION_REASON="No longer supported",d=t.GraphQLDeprecatedDirective=new u({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[s.FIELD_DEFINITION,s.ENUM_VALUE],args:{reason:{type:i.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted in [Markdown](https://daringfireball.net/projects/markdown/).",defaultValue:p}}});t.specifiedDirectives=[c,l,d]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeFromAST=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(16)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(17)),o=r(9);var a=t.typeFromAST=function(e,t){var r=void 0;return t.kind===i.LIST_TYPE?(r=a(e,t.type))&&new o.GraphQLList(r):t.kind===i.NON_NULL_TYPE?(r=a(e,t.type))&&new o.GraphQLNonNull(r):(t.kind!==i.NAMED_TYPE&&(0,n.default)(0,"Must be a named type."),e.getType(t.name.value))}},function(e,t,r){var n=r(309),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.OFFLINE_STATUS_CHANGED="Offline/STATUS_CHANGED",t.OFFLINE_SCHEDULE_RETRY="Offline/SCHEDULE_RETRY",t.OFFLINE_COMPLETE_RETRY="Offline/COMPLETE_RETRY",t.OFFLINE_SEND="Offline/SEND",t.OFFLINE_BUSY="Offline/BUSY",t.RESET_STATE="Offline/RESET_STATE",t.PERSIST_REHYDRATE="persist/REHYDRATE",t.JS_ERROR="Offline/JS_ERROR",t.DEFAULT_COMMIT="Offline/DEFAULT_COMMIT",t.DEFAULT_ROLLBACK="Offline/DEFAULT_ROLLBACK"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLID=t.GraphQLBoolean=t.GraphQLString=t.GraphQLFloat=t.GraphQLInt=void 0;var n=r(9),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(17));var o=2147483647,a=-2147483648;function s(e){if(""===e)throw new TypeError("Int cannot represent non 32-bit signed integer value: (empty string)");var t=Number(e);if(t!=t||t>o||t=a)return t}return null}});function u(e){if(""===e)throw new TypeError("Float cannot represent non numeric value: (empty string)");var t=Number(e);if(t==t)return t;throw new TypeError("Float cannot represent non numeric value: "+String(e))}t.GraphQLFloat=new n.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). ",serialize:u,parseValue:u,parseLiteral:function(e){return e.kind===i.FLOAT||e.kind===i.INT?parseFloat(e.value):null}});function c(e){if(Array.isArray(e))throw new TypeError("String cannot represent an array value: ["+String(e)+"]");return String(e)}t.GraphQLString=new n.GraphQLScalarType({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:c,parseValue:c,parseLiteral:function(e){return e.kind===i.STRING?e.value:null}}),t.GraphQLBoolean=new n.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:Boolean,parseValue:Boolean,parseLiteral:function(e){return e.kind===i.BOOLEAN?e.value:null}}),t.GraphQLID=new n.GraphQLScalarType({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:String,parseValue:String,parseLiteral:function(e){return e.kind===i.STRING||e.kind===i.INT?e.value:null}})},function(e,t,r){var n=r(42),i=r(284),o=r(166),a=Object.defineProperty;t.f=r(50)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(49);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,i,o,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,o,a,s],l=0;(u=new Error(t.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,r){"use strict";(function(e){var r=void 0!==e&&void 0!==e.setImmediate?function(t,r){return e.setImmediate(t,r)}:function(e,t){return setTimeout(e,t)};t.a=r}).call(this,r(22))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null===e||void 0===e||e!=e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.SchemaMetaFieldDef=t.__TypeKind=t.TypeKind=t.__EnumValue=t.__InputValue=t.__Field=t.__Type=t.__DirectiveLocation=t.__Directive=t.__Schema=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(84)),i=r(155),o=r(10),a=r(9),s=r(40),u=r(36);var c=t.__Schema=new a.GraphQLObjectType({name:"__Schema",isIntrospection:!0,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{types:{description:"A list of all types supported by this server.",type:new a.GraphQLNonNull(new a.GraphQLList(new a.GraphQLNonNull(d))),resolve:function(e){var t=e.getTypeMap();return Object.keys(t).map(function(e){return t[e]})}},queryType:{description:"The type that query operations will be rooted at.",type:new a.GraphQLNonNull(d),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:d,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:d,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new a.GraphQLNonNull(new a.GraphQLList(new a.GraphQLNonNull(l))),resolve:function(e){return e.getDirectives()}}}}}),l=t.__Directive=new a.GraphQLObjectType({name:"__Directive",isIntrospection:!0,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 a.GraphQLNonNull(s.GraphQLString)},description:{type:s.GraphQLString},locations:{type:new a.GraphQLNonNull(new a.GraphQLList(new a.GraphQLNonNull(p)))},args:{type:new a.GraphQLNonNull(new a.GraphQLList(new a.GraphQLNonNull(h))),resolve:function(e){return e.args||[]}},onOperation:{deprecationReason:"Use `locations`.",type:new a.GraphQLNonNull(s.GraphQLBoolean),resolve:function(e){return-1!==e.locations.indexOf(u.DirectiveLocation.QUERY)||-1!==e.locations.indexOf(u.DirectiveLocation.MUTATION)||-1!==e.locations.indexOf(u.DirectiveLocation.SUBSCRIPTION)}},onFragment:{deprecationReason:"Use `locations`.",type:new a.GraphQLNonNull(s.GraphQLBoolean),resolve:function(e){return-1!==e.locations.indexOf(u.DirectiveLocation.FRAGMENT_SPREAD)||-1!==e.locations.indexOf(u.DirectiveLocation.INLINE_FRAGMENT)||-1!==e.locations.indexOf(u.DirectiveLocation.FRAGMENT_DEFINITION)}},onField:{deprecationReason:"Use `locations`.",type:new a.GraphQLNonNull(s.GraphQLBoolean),resolve:function(e){return-1!==e.locations.indexOf(u.DirectiveLocation.FIELD)}}}}}),p=t.__DirectiveLocation=new a.GraphQLEnumType({name:"__DirectiveLocation",isIntrospection:!0,description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:u.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:u.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:u.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:u.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:u.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:u.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:u.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},SCHEMA:{value:u.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:u.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:u.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:u.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:u.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:u.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:u.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:u.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:u.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:u.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:u.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),d=t.__Type=new a.GraphQLObjectType({name:"__Type",isIntrospection:!0,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 and description, 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 a.GraphQLNonNull(y),resolve:function(e){if(e instanceof a.GraphQLScalarType)return g.SCALAR;if(e instanceof a.GraphQLObjectType)return g.OBJECT;if(e instanceof a.GraphQLInterfaceType)return g.INTERFACE;if(e instanceof a.GraphQLUnionType)return g.UNION;if(e instanceof a.GraphQLEnumType)return g.ENUM;if(e instanceof a.GraphQLInputObjectType)return g.INPUT_OBJECT;if(e instanceof a.GraphQLList)return g.LIST;if(e instanceof a.GraphQLNonNull)return g.NON_NULL;throw new Error("Unknown kind of type: "+e)}},name:{type:s.GraphQLString},description:{type:s.GraphQLString},fields:{type:new a.GraphQLList(new a.GraphQLNonNull(f)),args:{includeDeprecated:{type:s.GraphQLBoolean,defaultValue:!1}},resolve:function(e,t){var r=t.includeDeprecated;if(e instanceof a.GraphQLObjectType||e instanceof a.GraphQLInterfaceType){var n=e.getFields(),i=Object.keys(n).map(function(e){return n[e]});return r||(i=i.filter(function(e){return!e.deprecationReason})),i}return null}},interfaces:{type:new a.GraphQLList(new a.GraphQLNonNull(d)),resolve:function(e){if(e instanceof a.GraphQLObjectType)return e.getInterfaces()}},possibleTypes:{type:new a.GraphQLList(new a.GraphQLNonNull(d)),resolve:function(e,t,r,n){var i=n.schema;if((0,a.isAbstractType)(e))return i.getPossibleTypes(e)}},enumValues:{type:new a.GraphQLList(new a.GraphQLNonNull(m)),args:{includeDeprecated:{type:s.GraphQLBoolean,defaultValue:!1}},resolve:function(e,t){var r=t.includeDeprecated;if(e instanceof a.GraphQLEnumType){var n=e.getValues();return r||(n=n.filter(function(e){return!e.deprecationReason})),n}}},inputFields:{type:new a.GraphQLList(new a.GraphQLNonNull(h)),resolve:function(e){if(e instanceof a.GraphQLInputObjectType){var t=e.getFields();return Object.keys(t).map(function(e){return t[e]})}}},ofType:{type:d}}}}),f=t.__Field=new a.GraphQLObjectType({name:"__Field",isIntrospection:!0,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 a.GraphQLNonNull(s.GraphQLString)},description:{type:s.GraphQLString},args:{type:new a.GraphQLNonNull(new a.GraphQLList(new a.GraphQLNonNull(h))),resolve:function(e){return e.args||[]}},type:{type:new a.GraphQLNonNull(d)},isDeprecated:{type:new a.GraphQLNonNull(s.GraphQLBoolean)},deprecationReason:{type:s.GraphQLString}}}}),h=t.__InputValue=new a.GraphQLObjectType({name:"__InputValue",isIntrospection:!0,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 a.GraphQLNonNull(s.GraphQLString)},description:{type:s.GraphQLString},type:{type:new a.GraphQLNonNull(d)},defaultValue:{type:s.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){return(0,n.default)(e.defaultValue)?null:(0,o.print)((0,i.astFromValue)(e.defaultValue,e.type))}}}}}),m=t.__EnumValue=new a.GraphQLObjectType({name:"__EnumValue",isIntrospection:!0,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 a.GraphQLNonNull(s.GraphQLString)},description:{type:s.GraphQLString},isDeprecated:{type:new a.GraphQLNonNull(s.GraphQLBoolean)},deprecationReason:{type:s.GraphQLString}}}}),g=t.TypeKind={SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"},y=t.__TypeKind=new a.GraphQLEnumType({name:"__TypeKind",isIntrospection:!0,description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:g.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:g.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:g.INTERFACE,description:"Indicates this type is an interface. `fields` and `possibleTypes` are valid fields."},UNION:{value:g.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:g.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:g.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:g.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:g.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.SchemaMetaFieldDef={name:"__schema",type:new a.GraphQLNonNull(c),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,r,n){return n.schema}},t.TypeMetaFieldDef={name:"__type",type:d,description:"Request the type information of a single type.",args:[{name:"name",type:new a.GraphQLNonNull(s.GraphQLString)}],resolve:function(e,t,r,n){var i=t.name;return n.schema.getType(i)}},t.TypeNameMetaFieldDef={name:"__typename",type:new a.GraphQLNonNull(s.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,r,n){return n.parentType.name}}},function(e,t,r){var n=r(26),i=r(31),o=r(87),a=r(48),s=r(51),u=function(e,t,r){var c,l,p,d=e&u.F,f=e&u.G,h=e&u.S,m=e&u.P,g=e&u.B,y=e&u.W,v=f?i:i[t]||(i[t]={}),b=v.prototype,w=f?n:h?n[t]:(n[t]||{}).prototype;for(c in f&&(r=t),r)(l=!d&&w&&void 0!==w[c])&&s(v,c)||(p=l?w[c]:r[c],v[c]=f&&"function"!=typeof w[c]?r[c]:g&&l?o(p,n):y&&w[c]==p?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(p):m&&"function"==typeof p?o(Function.call,p):p,m&&((v.virtual||(v.virtual={}))[c]=p,e&u.R&&b&&!b[c]&&a(b,c,p)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,r){var n=r(41),i=r(89);e.exports=r(50)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){e.exports=!r(88)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(638),i=r(641);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},function(e,t,r){var n,i; /*! * JavaScript Cookie v2.2.0 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */!function(o){if(void 0===(i="function"==typeof(n=o)?n.call(t,r,t,e):n)||(e.exports=i),!0,e.exports=o(),!!0){var a=window.Cookies,s=window.Cookies=o();s.noConflict=function(){return window.Cookies=a,s}}}(function(){function e(){for(var e=0,t={};e1){if("number"==typeof(o=e({path:"/"},n.defaults,o)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*o.expires),o.expires=s}o.expires=o.expires?o.expires.toUTCString():"";try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}catch(e){}i=r.write?r.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var u="";for(var c in o)o[c]&&(u+="; "+c,!0!==o[c]&&(u+="="+o[c]));return document.cookie=t+"="+i+u}t||(a={});for(var l=document.cookie?document.cookie.split("; "):[],p=/(%[0-9A-Z]{2})+/g,d=0;d=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(228),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(22))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=i;var n=r(152);function i(e,t,r,o,a,s){var u=r;if(!u&&t&&t.length>0){var c=t[0];u=c&&c.loc&&c.loc.source}var l=o;!l&&t&&(l=t.filter(function(e){return Boolean(e.loc)}).map(function(e){return e.loc.start})),l&&0===l.length&&(l=void 0);var p=void 0,d=u;d&&l&&(p=l.map(function(e){return(0,n.getLocation)(d,e)})),Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:p||void 0,enumerable:!0},path:{value:a||void 0,enumerable:!0},nodes:{value:t||void 0},source:{value:u||void 0},positions:{value:l||void 0},originalError:{value:s}}),s&&s.stack?Object.defineProperty(this,"stack",{value:s.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,i):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}i.prototype=Object.create(Error.prototype,{constructor:{value:i},name:{value:"GraphQLError"}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var r=0;r-1}function s(e){return["IntValue","FloatValue"].indexOf(e.kind)>-1}function u(e,t,r,n){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var i={};r.fields.map(function(e){return u(i,e.name,e.value,n)}),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(r)){var o=(n||{})[r.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map(function(e){var r={};return u(r,t,e,n),r[t.value]});else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw new Error('The inline argument "'+t.value+'" of kind "'+r.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.');e[t.value]=null}}function c(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var i=n.name,o=n.value;return u(r[e.name.value],i,o,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var r=e.name,i=e.value;return u(n,r,i,t)})),p(e.name.value,n,r)}var l=["connection","include","skip","client","rest","export"];function p(e,t,r){if(r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var o=t,a={};return n.forEach(function(e){a[e]=o[e]}),r.connection.key+"("+JSON.stringify(a)+")"}return r.connection.key}var s=e;if(t){var u=i()(t);s+="("+u+")"}return r&&Object.keys(r).forEach(function(e){-1===l.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?s+="@"+e+"("+JSON.stringify(r[e])+")":s+="@"+e)}),s}function d(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){var n=e.name,i=e.value;return u(r,n,i,t)}),r}return null}function f(e){return e.alias?e.alias.value:e.name.value}function h(e){return"Field"===e.kind}function m(e){return"InlineFragment"===e.kind}function g(e){return e&&"id"===e.type}function y(e,t){return void 0===t&&(t=!1),o({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)}function v(e){return null!=e&&"object"==typeof e&&"json"===e.type}function b(e){throw new Error("Variable nodes are not supported by valueFromNode")}function w(e,t){switch(void 0===t&&(t=b),e.kind){case"Variable":return t(e);case"NullValue":return null;case"IntValue":return parseInt(e.value,10);case"FloatValue":return parseFloat(e.value);case"ListValue":return e.values.map(function(e){return w(e,t)});case"ObjectValue":for(var r={},n=0,i=e.fields;n1)throw new Error("Ambiguous GraphQL document: contains "+t.length+" operations")}function s(e){return a(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function u(e){var t=s(e);if(!t)throw new Error("GraphQL document is missing an operation");return t}function c(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function l(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function p(e){var t=s(e);if(!t||"query"!==t.operation)throw new Error("Must contain a query definition.");return t}function d(e){if("Document"!==e.kind)throw new Error('Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql');if(e.definitions.length>1)throw new Error("Fragment must have exactly one definition.");var t=e.definitions[0];if("FragmentDefinition"!==t.kind)throw new Error("Must be a fragment definition.");return t}function f(e){var t;a(e);for(var r=0,n=e.definitions;r0}function s(e){return function(t){return e.some(function(e){return!(!e.name||e.name!==t.name.value)||!(!e.test||!e.test(t))})}}function u(e,t){var r=Object(n.a)(t);return r.definitions.forEach(function(t){!function e(t,r){if(!r.selections)return r;var n=t.some(function(e){return e.remove});return r.selections=r.selections.map(function(e){if("Field"!==e.kind||!e||!e.directives)return e;var r,i=s(t);return e.directives=e.directives.filter(function(e){var t=!i(e);return r||t||!n||(r=!0),t}),r?null:e}).filter(function(e){return!!e}),r.selections.forEach(function(r){"Field"!==r.kind&&"InlineFragment"!==r.kind||!r.selectionSet||e(t,r.selectionSet)}),r}(e,t.selectionSet)}),a(Object(i.i)(r),Object(i.b)(Object(i.e)(r)))?r:null}function c(e){Object(i.a)(e);var t=Object(n.a)(e);return t.definitions.forEach(function(e){var t="OperationDefinition"===e.kind;!function e(t,r){void 0===r&&(r=!1),t.selections&&(r||t.selections.some(function(e){return"Field"===e.kind&&"__typename"===e.name.value})||t.selections.push(o),t.selections.forEach(function(t){"Field"===t.kind?0!==t.name.value.lastIndexOf("__",0)&&t.selectionSet&&e(t.selectionSet):"InlineFragment"===t.kind&&t.selectionSet&&e(t.selectionSet)}))}(e.selectionSet,t)}),t}var l={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some(function(e){return"key"===e.name.value})||console.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),t}};function p(e){return Object(i.a)(e),u([l],e)}function d(e,t,r){if(void 0===r&&(r=!0),"Field"!==t.kind||!t)return!0;if(!t.directives)return!1;var n=s(e);return t.directives.filter(n).length>0||r&&function(e,t,r){return void 0===r&&(r=!0),!(!t||!t.selections)&&t.selections.filter(function(t){return d(e,t,r)}).length>0}(e,t.selectionSet,r)}function f(e,t,r){void 0===r&&(r=!1),Object(i.a)(t);var o=Object(n.a)(t);return o.definitions=o.definitions.map(function(t){return("OperationDefinition"===t.kind||"FragmentDefinition"===t.kind&&!r)&&t.selectionSet&&(t.selectionSet=function e(t,r){return r.selections=r.selections.filter(function(e){return d(t,e,!0)}).map(function(r){return d(t,r,!1)?r:("Field"!==r.kind&&"InlineFragment"!==r.kind||!r.selectionSet||(r.selectionSet=e(t,r.selectionSet)),r)}),r}(e,t.selectionSet)),t}),a(Object(i.i)(o),Object(i.b)(Object(i.e)(o)))?o:null}},function(e,t,r){"use strict";r.d(t,"b",function(){return i}),r.d(t,"e",function(){return o}),r.d(t,"a",function(){return a}),r.d(t,"c",function(){return s}),r.d(t,"d",function(){return u});var n=r(66);function i(e,t){if(e.directives&&e.directives.length){var r={};return e.directives.forEach(function(e){r[e.name.value]=Object(n.a)(e,t)}),r}return null}function o(e,t){if(void 0===t&&(t={}),!e.directives)return!0;var r=!0;return e.directives.forEach(function(e){if("skip"===e.name.value||"include"===e.name.value){var n=e.arguments||[],i=e.name.value;if(1!==n.length)throw new Error("Incorrect number of arguments for the @"+i+" directive.");var o=n[0];if(!o.name||"if"!==o.name.value)throw new Error("Invalid argument for the @"+i+" directive.");var a=n[0].value,s=!1;if(a&&"BooleanValue"===a.kind)s=a.value;else{if("Variable"!==a.kind)throw new Error("Argument for the @"+i+" directive must be a variable or a boolean value.");if(void 0===(s=t[a.name.value]))throw new Error("Invalid variable referenced in @"+i+" directive.")}"skip"===i&&(s=!s),s||(r=!1)}}),r}function a(e){return e.selectionSet&&e.selectionSet.selections.length>0?[e].concat(e.selectionSet.selections.map(function(e){return[e].concat(a(e))}).reduce(function(e,t){return e.concat(t)},[])):[e]}function s(e){return e.definitions.filter(function(e){return e.selectionSet&&e.selectionSet.selections}).map(function(e){return a(e)}).reduce(function(e,t){return e.concat(t)},[]).filter(function(e){return e.directives&&e.directives.length>0}).map(function(e){return e.directives}).reduce(function(e,t){return e.concat(t)},[]).map(function(e){return e.name.value})}function u(e,t){return s(t).some(function(t){return e.indexOf(t)>-1})}},function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r(65),i=Object.create({});function o(e,t){if(void 0===t&&(t="warn"),!Object(n.d)()&&!i[e])switch(Object(n.e)()||(i[e]=!0),t){case"error":console.error(e);break;default:console.warn(e)}}},function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=Object.assign||function(e){for(var t,r=1,n=arguments.length;ru?t=e(t):t.length-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function f(){s.apply(this,arguments),this.toType=i.base64.decode,this.toWireFormat=i.base64.encode}function h(){f.apply(this,arguments)}function m(){s.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null===e||void 0===e?null:"true"===e}}s.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},s.types={structure:c,list:l,map:p,boolean:m,timestamp:function(e){var t=this;if(s.apply(this,arguments),e.timestampFormat)o(this,"timestampFormat",e.timestampFormat);else if(t.isTimestampFormatSet&&this.timestampFormat)o(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)o(this,"timestampFormat","rfc822");else if("querystring"===this.location)o(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":o(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":o(this,"timestampFormat","iso8601")}this.toType=function(e){return null===e||void 0===e?null:"function"==typeof e.toUTCString?e:"string"==typeof e||"number"==typeof e?i.date.parseTimestamp(e):null},this.toWireFormat=function(e){return i.date.format(e,t.timestampFormat)}},float:function(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseFloat(e)},this.toWireFormat=this.toType},integer:function(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseInt(e,10)},this.toWireFormat=this.toType},string:d,base64:h,binary:f},s.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},s.create=function(e,t,r){if(e.isShape)return e;var n=s.resolve(e,t);if(n){var i=Object.keys(e);t.documentation||(i=i.filter(function(e){return!e.match(/documentation/)}));var o=function(){n.constructor.call(this,e,t,r)};return o.prototype=n,new o}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var a=e.type;if(s.normalizedTypes[e.type]&&(e.type=s.normalizedTypes[e.type]),s.types[e.type])return new s.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+a)},s.shapes={StructureShape:c,ListShape:l,MapShape:p,StringShape:d,BooleanShape:m,Base64Shape:h},e.exports=s},function(e,t,r){(function(e,n){var i=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],r=0;r=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),u=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),h(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),l(n,e,n.depth)}function u(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function c(e,t){return e}function l(e,r,n){if(e.customInspect&&r&&E(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return y(i)||(i=l(e,i,n)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(y(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),x(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(r);if(0===a.length){if(E(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(b(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return e.stylize(Date.prototype.toString.call(r),"date");if(x(r))return p(r)}var c,w="",T=!1,k=["{","}"];(f(r)&&(T=!0,k=["[","]"]),E(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return b(r)&&(w=" "+RegExp.prototype.toString.call(r)),S(r)&&(w=" "+Date.prototype.toUTCString.call(r)),x(r)&&(w=" "+p(r)),0!==a.length||T&&0!=r.length?n<0?b(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=T?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,w,k)):k[0]+w+k[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),_(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=m(r)?l(e,u.value,null):l(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function f(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function y(e){return"string"==typeof e}function v(e){return void 0===e}function b(e){return w(e)&&"[object RegExp]"===T(e)}function w(e){return"object"==typeof e&&null!==e}function S(e){return w(e)&&"[object Date]"===T(e)}function x(e){return w(e)&&("[object Error]"===T(e)||e instanceof Error)}function E(e){return"function"==typeof e}function T(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(v(o)&&(o=n.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=f,t.isBoolean=h,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=b,t.isObject=w,t.isDate=S,t.isError=x,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(478);var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",function(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),I[e.getMonth()],t].join(" ")}(),t.format.apply(t,arguments))},t.inherits=r(479),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this,r(22),r(13))},function(e,t){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.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},r.prototype.emit=function(e){var t,r,a,s,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(o(r=this._events[e]))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),r.apply(this,s)}else if(i(r))for(s=Array.prototype.slice.call(arguments,1),a=(c=r.slice()).length,u=0;u0&&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},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},r.prototype.removeListener=function(e,t){var r,o,a,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(r=this._events[e]).length,o=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(r)){for(s=a;s-- >0;)if(r[s]===t||r[s].listener&&r[s].listener===t){o=s;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;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(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e,t){var r="string"==typeof e?new n.Source(e):e;if(!(r instanceof n.Source))throw new TypeError("Must provide Source. Received: "+String(r));return function(e){var t=e.token;M(e,o.TokenKind.SOF);var r=[];do{r.push(u(e))}while(!L(e,o.TokenKind.EOF));return{kind:a.DOCUMENT,definitions:r,loc:R(e,t)}}((0,o.createLexer)(r,t||{}))},t.parseValue=function(e,t){var r="string"==typeof e?new n.Source(e):e,i=(0,o.createLexer)(r,t||{});M(i,o.TokenKind.SOF);var a=v(i,!1);return M(i,o.TokenKind.EOF),a},t.parseType=function(e,t){var r="string"==typeof e?new n.Source(e):e,i=(0,o.createLexer)(r,t||{});M(i,o.TokenKind.SOF);var a=T(i);return M(i,o.TokenKind.EOF),a},t.parseConstValue=b,t.parseTypeReference=T,t.parseNamedType=k;var n=r(250),i=r(7),o=r(153),a=r(17);function s(e){var t=M(e,o.TokenKind.NAME);return{kind:a.NAME,value:t.value,loc:R(e,t)}}function u(e){if(D(e,o.TokenKind.BRACE_L))return c(e);if(D(e,o.TokenKind.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return c(e);case"fragment":return function(e){var t=e.token;return q(e,"fragment"),{kind:a.FRAGMENT_DEFINITION,name:y(e),typeCondition:(q(e,"on"),k(e)),directives:x(e),selectionSet:f(e),loc:R(e,t)}}(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"extend":case"directive":return function(e){if(D(e,o.TokenKind.NAME))switch(e.token.value){case"schema":return function(e){var t=e.token;q(e,"schema");var r=x(e),n=B(e,o.TokenKind.BRACE_L,I,o.TokenKind.BRACE_R);return{kind:a.SCHEMA_DEFINITION,directives:r,operationTypes:n,loc:R(e,t)}}(e);case"scalar":return function(e){var t=e.token;q(e,"scalar");var r=s(e),n=x(e);return{kind:a.SCALAR_TYPE_DEFINITION,name:r,directives:n,loc:R(e,t)}}(e);case"type":return _(e);case"interface":return function(e){var t=e.token;q(e,"interface");var r=s(e),n=x(e),i=j(e,o.TokenKind.BRACE_L,C,o.TokenKind.BRACE_R);return{kind:a.INTERFACE_TYPE_DEFINITION,name:r,directives:n,fields:i,loc:R(e,t)}}(e);case"union":return function(e){var t=e.token;q(e,"union");var r=s(e),n=x(e);M(e,o.TokenKind.EQUALS);var i=function(e){L(e,o.TokenKind.PIPE);var t=[];do{t.push(k(e))}while(L(e,o.TokenKind.PIPE));return t}(e);return{kind:a.UNION_TYPE_DEFINITION,name:r,directives:n,types:i,loc:R(e,t)}}(e);case"enum":return function(e){var t=e.token;q(e,"enum");var r=s(e),n=x(e),i=B(e,o.TokenKind.BRACE_L,O,o.TokenKind.BRACE_R);return{kind:a.ENUM_TYPE_DEFINITION,name:r,directives:n,values:i,loc:R(e,t)}}(e);case"input":return function(e){var t=e.token;q(e,"input");var r=s(e),n=x(e),i=j(e,o.TokenKind.BRACE_L,A,o.TokenKind.BRACE_R);return{kind:a.INPUT_OBJECT_TYPE_DEFINITION,name:r,directives:n,fields:i,loc:R(e,t)}}(e);case"extend":return function(e){var t=e.token;q(e,"extend");var r=_(e);return{kind:a.TYPE_EXTENSION_DEFINITION,definition:r,loc:R(e,t)}}(e);case"directive":return function(e){var t=e.token;q(e,"directive"),M(e,o.TokenKind.AT);var r=s(e),n=N(e);q(e,"on");var i=function(e){L(e,o.TokenKind.PIPE);var t=[];do{t.push(s(e))}while(L(e,o.TokenKind.PIPE));return t}(e);return{kind:a.DIRECTIVE_DEFINITION,name:r,arguments:n,locations:i,loc:R(e,t)}}(e)}throw U(e)}(e)}throw U(e)}function c(e){var t=e.token;if(D(e,o.TokenKind.BRACE_L))return{kind:a.OPERATION_DEFINITION,operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:f(e),loc:R(e,t)};var r=l(e),n=void 0;return D(e,o.TokenKind.NAME)&&(n=s(e)),{kind:a.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:function(e){return D(e,o.TokenKind.PAREN_L)?B(e,o.TokenKind.PAREN_L,p,o.TokenKind.PAREN_R):[]}(e),directives:x(e),selectionSet:f(e),loc:R(e,t)}}function l(e){var t=M(e,o.TokenKind.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw U(e,t)}function p(e){var t=e.token;return{kind:a.VARIABLE_DEFINITION,variable:d(e),type:(M(e,o.TokenKind.COLON),T(e)),defaultValue:L(e,o.TokenKind.EQUALS)?v(e,!0):null,loc:R(e,t)}}function d(e){var t=e.token;return M(e,o.TokenKind.DOLLAR),{kind:a.VARIABLE,name:s(e),loc:R(e,t)}}function f(e){var t=e.token;return{kind:a.SELECTION_SET,selections:B(e,o.TokenKind.BRACE_L,h,o.TokenKind.BRACE_R),loc:R(e,t)}}function h(e){return D(e,o.TokenKind.SPREAD)?function(e){var t=e.token;if(M(e,o.TokenKind.SPREAD),D(e,o.TokenKind.NAME)&&"on"!==e.token.value)return{kind:a.FRAGMENT_SPREAD,name:y(e),directives:x(e),loc:R(e,t)};var r=null;"on"===e.token.value&&(e.advance(),r=k(e));return{kind:a.INLINE_FRAGMENT,typeCondition:r,directives:x(e),selectionSet:f(e),loc:R(e,t)}}(e):function(e){var t=e.token,r=s(e),n=void 0,i=void 0;L(e,o.TokenKind.COLON)?(n=r,i=s(e)):(n=null,i=r);return{kind:a.FIELD,alias:n,name:i,arguments:m(e),directives:x(e),selectionSet:D(e,o.TokenKind.BRACE_L)?f(e):null,loc:R(e,t)}}(e)}function m(e){return D(e,o.TokenKind.PAREN_L)?B(e,o.TokenKind.PAREN_L,g,o.TokenKind.PAREN_R):[]}function g(e){var t=e.token;return{kind:a.ARGUMENT,name:s(e),value:(M(e,o.TokenKind.COLON),v(e,!1)),loc:R(e,t)}}function y(e){if("on"===e.token.value)throw U(e);return s(e)}function v(e,t){var r=e.token;switch(r.kind){case o.TokenKind.BRACKET_L:return function(e,t){var r=e.token,n=t?b:w;return{kind:a.LIST,values:j(e,o.TokenKind.BRACKET_L,n,o.TokenKind.BRACKET_R),loc:R(e,r)}}(e,t);case o.TokenKind.BRACE_L:return function(e,t){var r=e.token;M(e,o.TokenKind.BRACE_L);var n=[];for(;!L(e,o.TokenKind.BRACE_R);)n.push(S(e,t));return{kind:a.OBJECT,fields:n,loc:R(e,r)}}(e,t);case o.TokenKind.INT:return e.advance(),{kind:a.INT,value:r.value,loc:R(e,r)};case o.TokenKind.FLOAT:return e.advance(),{kind:a.FLOAT,value:r.value,loc:R(e,r)};case o.TokenKind.STRING:return e.advance(),{kind:a.STRING,value:r.value,loc:R(e,r)};case o.TokenKind.NAME:return"true"===r.value||"false"===r.value?(e.advance(),{kind:a.BOOLEAN,value:"true"===r.value,loc:R(e,r)}):"null"===r.value?(e.advance(),{kind:a.NULL,loc:R(e,r)}):(e.advance(),{kind:a.ENUM,value:r.value,loc:R(e,r)});case o.TokenKind.DOLLAR:if(!t)return d(e)}throw U(e)}function b(e){return v(e,!0)}function w(e){return v(e,!1)}function S(e,t){var r=e.token;return{kind:a.OBJECT_FIELD,name:s(e),value:(M(e,o.TokenKind.COLON),v(e,t)),loc:R(e,r)}}function x(e){for(var t=[];D(e,o.TokenKind.AT);)t.push(E(e));return t}function E(e){var t=e.token;return M(e,o.TokenKind.AT),{kind:a.DIRECTIVE,name:s(e),arguments:m(e),loc:R(e,t)}}function T(e){var t=e.token,r=void 0;return L(e,o.TokenKind.BRACKET_L)?(r=T(e),M(e,o.TokenKind.BRACKET_R),r={kind:a.LIST_TYPE,type:r,loc:R(e,t)}):r=k(e),L(e,o.TokenKind.BANG)?{kind:a.NON_NULL_TYPE,type:r,loc:R(e,t)}:r}function k(e){var t=e.token;return{kind:a.NAMED_TYPE,name:s(e),loc:R(e,t)}}function I(e){var t=e.token,r=l(e);M(e,o.TokenKind.COLON);var n=k(e);return{kind:a.OPERATION_TYPE_DEFINITION,operation:r,type:n,loc:R(e,t)}}function _(e){var t=e.token;q(e,"type");var r=s(e),n=function(e){var t=[];if("implements"===e.token.value){e.advance();do{t.push(k(e))}while(D(e,o.TokenKind.NAME))}return t}(e),i=x(e),u=j(e,o.TokenKind.BRACE_L,C,o.TokenKind.BRACE_R);return{kind:a.OBJECT_TYPE_DEFINITION,name:r,interfaces:n,directives:i,fields:u,loc:R(e,t)}}function C(e){var t=e.token,r=s(e),n=N(e);M(e,o.TokenKind.COLON);var i=T(e),u=x(e);return{kind:a.FIELD_DEFINITION,name:r,arguments:n,type:i,directives:u,loc:R(e,t)}}function N(e){return D(e,o.TokenKind.PAREN_L)?B(e,o.TokenKind.PAREN_L,A,o.TokenKind.PAREN_R):[]}function A(e){var t=e.token,r=s(e);M(e,o.TokenKind.COLON);var n=T(e),i=null;L(e,o.TokenKind.EQUALS)&&(i=b(e));var u=x(e);return{kind:a.INPUT_VALUE_DEFINITION,name:r,type:n,defaultValue:i,directives:u,loc:R(e,t)}}function O(e){var t=e.token,r=s(e),n=x(e);return{kind:a.ENUM_VALUE_DEFINITION,name:r,directives:n,loc:R(e,t)}}function R(e,t){if(!e.options.noLocation)return new P(t,e.lastToken,e.source)}function P(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}function D(e,t){return e.token.kind===t}function L(e,t){var r=e.token.kind===t;return r&&e.advance(),r}function M(e,t){var r=e.token;if(r.kind===t)return e.advance(),r;throw(0,i.syntaxError)(e.source,r.start,"Expected "+t+", found "+(0,o.getTokenDesc)(r))}function q(e,t){var r=e.token;if(r.kind===o.TokenKind.NAME&&r.value===t)return e.advance(),r;throw(0,i.syntaxError)(e.source,r.start,'Expected "'+t+'", found '+(0,o.getTokenDesc)(r))}function U(e,t){var r=t||e.token;return(0,i.syntaxError)(e.source,r.start,"Unexpected "+(0,o.getTokenDesc)(r))}function j(e,t,r,n){M(e,t);for(var i=[];!L(e,n);)i.push(r(e));return i}function B(e,t,r,n){M(e,t);for(var i=[r(e)];!L(e,n);)i.push(r(e));return i}P.prototype.toJSON=P.prototype.inspect=function(){return{start:this.start,end:this.end}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return void 0===e||e!=e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromAST=function e(t,r,c){if(!t)return;if(r instanceof u.GraphQLNonNull){if(t.kind===s.NULL)return;return e(t,r.ofType,c)}if(t.kind===s.NULL)return null;if(t.kind===s.VARIABLE){var p=t.name.value;if(!c||(0,a.default)(c[p]))return;return c[p]}if(r instanceof u.GraphQLList){var d=r.ofType;if(t.kind===s.LIST){for(var f=[],h=t.values,m=0;m-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function f(){s.apply(this,arguments),this.toType=i.base64.decode,this.toWireFormat=i.base64.encode}function h(){f.apply(this,arguments)}function m(){s.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null===e||void 0===e?null:"true"===e}}s.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},s.types={structure:c,list:l,map:p,boolean:m,timestamp:function(e){var t=this;if(s.apply(this,arguments),"header"===this.location)o(this,"timestampFormat","rfc822");else if(e.timestampFormat)o(this,"timestampFormat",e.timestampFormat);else if(!this.timestampFormat&&this.api)if(this.api.timestampFormat)o(this,"timestampFormat",this.api.timestampFormat);else switch(this.api.protocol){case"json":case"rest-json":o(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":o(this,"timestampFormat","iso8601")}this.toType=function(e){return null===e||void 0===e?null:"function"==typeof e.toUTCString?e:"string"==typeof e||"number"==typeof e?i.date.parseTimestamp(e):null},this.toWireFormat=function(e){return i.date.format(e,t.timestampFormat)}},float:function(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseFloat(e)},this.toWireFormat=this.toType},integer:function(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseInt(e,10)},this.toWireFormat=this.toType},string:d,base64:h,binary:f},s.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},s.create=function(e,t,r){if(e.isShape)return e;var n=s.resolve(e,t);if(n){var i=Object.keys(e);t.documentation||(i=i.filter(function(e){return!e.match(/documentation/)}));var o=function(){n.constructor.call(this,e,t,r)};return o.prototype=n,new o}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var a=e.type;if(s.normalizedTypes[e.type]&&(e.type=s.normalizedTypes[e.type]),s.types[e.type])return new s.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+a)},s.shapes={StructureShape:c,ListShape:l,MapShape:p,StringShape:d,BooleanShape:m,Base64Shape:h},e.exports=s},function(e,t,r){var n=r(33),i=r(190);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},function(e,t,r){var n=r(659),i=r(325),o=r(96);e.exports=function(e){return o(e)?n(e):i(e)}},function(e,t,r){(function(t){var n=r(19);n.crypto.lib=r(833),n.Buffer=r(1).Buffer,n.url=r(34),n.querystring=r(54),n.environment="js";var i=r(3);e.exports=i,r(370),r(371),r(838),r(842),r(843),r(848),i.XML.Parser=r(849),r(850),void 0===t&&(t={browser:!0})}).call(this,r(13))},function(e,t,r){var n=r(357),i=r(19);function o(e,t,r){null!==r&&void 0!==r&&i.property.apply(this,arguments)}function a(e,t){e.constructor.prototype[t]||i.memoizedProperty.apply(this,arguments)}function s(e,t,r){t=t||{},o(this,"shape",e.shape),o(this,"api",t.api,!1),o(this,"type",e.type),o(this,"enum",e.enum),o(this,"min",e.min),o(this,"max",e.max),o(this,"pattern",e.pattern),o(this,"location",e.location||this.location||"body"),o(this,"name",this.name||e.xmlName||e.queryName||e.locationName||r),o(this,"isStreaming",e.streaming||this.isStreaming||!1),o(this,"isComposite",e.isComposite||!1),o(this,"isShape",!0,!1),o(this,"isQueryName",Boolean(e.queryName),!1),o(this,"isLocationName",Boolean(e.locationName),!1),o(this,"isIdempotent",!0===e.idempotencyToken),o(this,"isJsonValue",!0===e.jsonvalue),o(this,"isSensitive",!0===e.sensitive||e.prototype&&!0===e.prototype.sensitive),t.documentation&&(o(this,"documentation",e.documentation),o(this,"documentationUrl",e.documentationUrl)),e.xmlAttribute&&o(this,"isXmlAttribute",e.xmlAttribute||!1),o(this,"defaultValue",null),this.toWireFormat=function(e){return null===e||void 0===e?"":e},this.toType=function(e){return e}}function u(e){s.apply(this,arguments),o(this,"isComposite",!0),e.flattened&&o(this,"flattened",e.flattened||!1)}function c(e,t){var r=null,i=!this.isShape;u.apply(this,arguments),i&&(o(this,"defaultValue",function(){return{}}),o(this,"members",{}),o(this,"memberNames",[]),o(this,"required",[]),o(this,"isRequired",function(){return!1})),e.members&&(o(this,"members",new n(e.members,t,function(e,r){return s.create(r,t,e)})),a(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)})),e.required&&(o(this,"required",e.required),o(this,"isRequired",function(t){if(!r){r={};for(var n=0;n-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function f(){s.apply(this,arguments),this.toType=i.base64.decode,this.toWireFormat=i.base64.encode}function h(){f.apply(this,arguments)}function m(){s.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null===e||void 0===e?null:"true"===e}}s.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},s.types={structure:c,list:l,map:p,boolean:m,timestamp:function(e){var t=this;if(s.apply(this,arguments),"header"===this.location)o(this,"timestampFormat","rfc822");else if(e.timestampFormat)o(this,"timestampFormat",e.timestampFormat);else if(!this.timestampFormat&&this.api)if(this.api.timestampFormat)o(this,"timestampFormat",this.api.timestampFormat);else switch(this.api.protocol){case"json":case"rest-json":o(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":o(this,"timestampFormat","iso8601")}this.toType=function(e){return null===e||void 0===e?null:"function"==typeof e.toUTCString?e:"string"==typeof e||"number"==typeof e?i.date.parseTimestamp(e):null},this.toWireFormat=function(e){return i.date.format(e,t.timestampFormat)}},float:function(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseFloat(e)},this.toWireFormat=this.toType},integer:function(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseInt(e,10)},this.toWireFormat=this.toType},string:d,base64:h,binary:f},s.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},s.create=function(e,t,r){if(e.isShape)return e;var n=s.resolve(e,t);if(n){var i=Object.keys(e);t.documentation||(i=i.filter(function(e){return!e.match(/documentation/)}));var o=function(){n.constructor.call(this,e,t,r)};return o.prototype=n,new o}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var a=e.type;if(s.normalizedTypes[e.type]&&(e.type=s.normalizedTypes[e.type]),s.types[e.type])return new s.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+a)},s.shapes={StructureShape:c,ListShape:l,MapShape:p,StringShape:d,BooleanShape:m,Base64Shape:h},e.exports=s},function(e,t,r){var n=r(379),i=r(20);function o(e,t,r){null!==r&&void 0!==r&&i.property.apply(this,arguments)}function a(e,t){e.constructor.prototype[t]||i.memoizedProperty.apply(this,arguments)}function s(e,t,r){t=t||{},o(this,"shape",e.shape),o(this,"api",t.api,!1),o(this,"type",e.type),o(this,"enum",e.enum),o(this,"min",e.min),o(this,"max",e.max),o(this,"pattern",e.pattern),o(this,"location",e.location||this.location||"body"),o(this,"name",this.name||e.xmlName||e.queryName||e.locationName||r),o(this,"isStreaming",e.streaming||this.isStreaming||!1),o(this,"isComposite",e.isComposite||!1),o(this,"isShape",!0,!1),o(this,"isQueryName",Boolean(e.queryName),!1),o(this,"isLocationName",Boolean(e.locationName),!1),o(this,"isIdempotent",!0===e.idempotencyToken),o(this,"isJsonValue",!0===e.jsonvalue),o(this,"isSensitive",!0===e.sensitive||e.prototype&&!0===e.prototype.sensitive),t.documentation&&(o(this,"documentation",e.documentation),o(this,"documentationUrl",e.documentationUrl)),e.xmlAttribute&&o(this,"isXmlAttribute",e.xmlAttribute||!1),o(this,"defaultValue",null),this.toWireFormat=function(e){return null===e||void 0===e?"":e},this.toType=function(e){return e}}function u(e){s.apply(this,arguments),o(this,"isComposite",!0),e.flattened&&o(this,"flattened",e.flattened||!1)}function c(e,t){var r=null,i=!this.isShape;u.apply(this,arguments),i&&(o(this,"defaultValue",function(){return{}}),o(this,"members",{}),o(this,"memberNames",[]),o(this,"required",[]),o(this,"isRequired",function(){return!1})),e.members&&(o(this,"members",new n(e.members,t,function(e,r){return s.create(r,t,e)})),a(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)})),e.required&&(o(this,"required",e.required),o(this,"isRequired",function(t){if(!r){r={};for(var n=0;n-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function f(){s.apply(this,arguments),this.toType=i.base64.decode,this.toWireFormat=i.base64.encode}function h(){f.apply(this,arguments)}function m(){s.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null===e||void 0===e?null:"true"===e}}s.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},s.types={structure:c,list:l,map:p,boolean:m,timestamp:function(e){var t=this;if(s.apply(this,arguments),"header"===this.location)o(this,"timestampFormat","rfc822");else if(e.timestampFormat)o(this,"timestampFormat",e.timestampFormat);else if(!this.timestampFormat&&this.api)if(this.api.timestampFormat)o(this,"timestampFormat",this.api.timestampFormat);else switch(this.api.protocol){case"json":case"rest-json":o(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":o(this,"timestampFormat","iso8601")}this.toType=function(e){return null===e||void 0===e?null:"function"==typeof e.toUTCString?e:"string"==typeof e||"number"==typeof e?i.date.parseTimestamp(e):null},this.toWireFormat=function(e){return i.date.format(e,t.timestampFormat)}},float:function(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseFloat(e)},this.toWireFormat=this.toType},integer:function(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseInt(e,10)},this.toWireFormat=this.toType},string:d,base64:h,binary:f},s.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},s.create=function(e,t,r){if(e.isShape)return e;var n=s.resolve(e,t);if(n){var i=Object.keys(e);t.documentation||(i=i.filter(function(e){return!e.match(/documentation/)}));var o=function(){n.constructor.call(this,e,t,r)};return o.prototype=n,new o}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var a=e.type;if(s.normalizedTypes[e.type]&&(e.type=s.normalizedTypes[e.type]),s.types[e.type])return new s.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+a)},s.shapes={StructureShape:c,ListShape:l,MapShape:p,StringShape:d,BooleanShape:m,Base64Shape:h},e.exports=s},function(e,t,r){var n=r(414),i=r(21);function o(e,t,r){null!==r&&void 0!==r&&i.property.apply(this,arguments)}function a(e,t){e.constructor.prototype[t]||i.memoizedProperty.apply(this,arguments)}function s(e,t,r){t=t||{},o(this,"shape",e.shape),o(this,"api",t.api,!1),o(this,"type",e.type),o(this,"enum",e.enum),o(this,"min",e.min),o(this,"max",e.max),o(this,"pattern",e.pattern),o(this,"location",e.location||this.location||"body"),o(this,"name",this.name||e.xmlName||e.queryName||e.locationName||r),o(this,"isStreaming",e.streaming||this.isStreaming||!1),o(this,"isComposite",e.isComposite||!1),o(this,"isShape",!0,!1),o(this,"isQueryName",Boolean(e.queryName),!1),o(this,"isLocationName",Boolean(e.locationName),!1),o(this,"isIdempotent",!0===e.idempotencyToken),o(this,"isJsonValue",!0===e.jsonvalue),o(this,"isSensitive",!0===e.sensitive||e.prototype&&!0===e.prototype.sensitive),t.documentation&&(o(this,"documentation",e.documentation),o(this,"documentationUrl",e.documentationUrl)),e.xmlAttribute&&o(this,"isXmlAttribute",e.xmlAttribute||!1),o(this,"defaultValue",null),this.toWireFormat=function(e){return null===e||void 0===e?"":e},this.toType=function(e){return e}}function u(e){s.apply(this,arguments),o(this,"isComposite",!0),e.flattened&&o(this,"flattened",e.flattened||!1)}function c(e,t){var r=null,i=!this.isShape;u.apply(this,arguments),i&&(o(this,"defaultValue",function(){return{}}),o(this,"members",{}),o(this,"memberNames",[]),o(this,"required",[]),o(this,"isRequired",function(){return!1})),e.members&&(o(this,"members",new n(e.members,t,function(e,r){return s.create(r,t,e)})),a(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)})),e.required&&(o(this,"required",e.required),o(this,"isRequired",function(t){if(!r){r={};for(var n=0;n-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function f(){s.apply(this,arguments),this.toType=i.base64.decode,this.toWireFormat=i.base64.encode}function h(){f.apply(this,arguments)}function m(){s.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null===e||void 0===e?null:"true"===e}}s.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},s.types={structure:c,list:l,map:p,boolean:m,timestamp:function(e){var t=this;if(s.apply(this,arguments),"header"===this.location)o(this,"timestampFormat","rfc822");else if(e.timestampFormat)o(this,"timestampFormat",e.timestampFormat);else if(!this.timestampFormat&&this.api)if(this.api.timestampFormat)o(this,"timestampFormat",this.api.timestampFormat);else switch(this.api.protocol){case"json":case"rest-json":o(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":o(this,"timestampFormat","iso8601")}this.toType=function(e){return null===e||void 0===e?null:"function"==typeof e.toUTCString?e:"string"==typeof e||"number"==typeof e?i.date.parseTimestamp(e):null},this.toWireFormat=function(e){return i.date.format(e,t.timestampFormat)}},float:function(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseFloat(e)},this.toWireFormat=this.toType},integer:function(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseInt(e,10)},this.toWireFormat=this.toType},string:d,base64:h,binary:f},s.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},s.create=function(e,t,r){if(e.isShape)return e;var n=s.resolve(e,t);if(n){var i=Object.keys(e);t.documentation||(i=i.filter(function(e){return!e.match(/documentation/)}));var o=function(){n.constructor.call(this,e,t,r)};return o.prototype=n,new o}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var a=e.type;if(s.normalizedTypes[e.type]&&(e.type=s.normalizedTypes[e.type]),s.types[e.type])return new s.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+a)},s.shapes={StructureShape:c,ListShape:l,MapShape:p,StringShape:d,BooleanShape:m,Base64Shape:h},e.exports=s},function(e,t,r){e.exports=r(455).Observable},function(e,t,r){"use strict";(function(e,n){var i,o=r(441);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var a=Object(o.a)(i);t.a=a}).call(this,r(22),r(456)(e))},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty;function i(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,t){if(i(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(var a=0;a=0?"&":"?";var u=[];n.arrayEach(Object.keys(a).sort(),function(e){Array.isArray(a[e])||(a[e]=[a[e]]);for(var t=0;t-1});var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];e.exports={isEmptyData:function(e){return"string"==typeof e?0===e.length:0===e.byteLength},convertToBuffer:function(e){return"string"==typeof e&&(e=new n(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}},function(e,t,r){r(105);var n=r(2),i=n.Service,o=n.apiLoader;o.services.sts={},n.STS=i.defineService("sts",["2011-06-15"]),r(507),Object.defineProperty(o.services.sts,"2011-06-15",{get:function(){var e=r(508);return e.paginators=r(509).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.STS},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEqualType=function e(t,r){if(t===r)return!0;if(t instanceof n.GraphQLNonNull&&r instanceof n.GraphQLNonNull)return e(t.ofType,r.ofType);if(t instanceof n.GraphQLList&&r instanceof n.GraphQLList)return e(t.ofType,r.ofType);return!1},t.isTypeSubTypeOf=function e(t,r,i){if(r===i)return!0;if(i instanceof n.GraphQLNonNull)return r instanceof n.GraphQLNonNull&&e(t,r.ofType,i.ofType);if(r instanceof n.GraphQLNonNull)return e(t,r.ofType,i);if(i instanceof n.GraphQLList)return r instanceof n.GraphQLList&&e(t,r.ofType,i.ofType);if(r instanceof n.GraphQLList)return!1;if((0,n.isAbstractType)(i)&&r instanceof n.GraphQLObjectType&&t.isPossibleType(i,r))return!0;return!1},t.doTypesOverlap=function(e,t,r){var i=r;if(t===i)return!0;if((0,n.isAbstractType)(t))return(0,n.isAbstractType)(i)?e.getPossibleTypes(t).some(function(t){return e.isPossibleType(i,t)}):e.isPossibleType(t,i);if((0,n.isAbstractType)(i))return e.isPossibleType(i,t);return!1};var n=r(9)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidLiteralValue=function e(t,r){if(t instanceof o.GraphQLNonNull)return r&&r.kind!==i.NULL?e(t.ofType,r):['Expected "'+String(t)+'", found null.'];if(!r||r.kind===i.NULL)return[];if(r.kind===i.VARIABLE)return[];if(t instanceof o.GraphQLList){var u=t.ofType;return r.kind===i.LIST?r.values.reduce(function(t,r,n){var i=e(u,r);return t.concat(i.map(function(e){return"In element #"+n+": "+e}))},[]):e(u,r)}if(t instanceof o.GraphQLInputObjectType){if(r.kind!==i.OBJECT)return['Expected "'+t.name+'", found not an object.'];var c=t.getFields(),l=[],p=r.fields;p.forEach(function(e){c[e.name.value]||l.push('In field "'+e.name.value+'": Unknown field.')});var d=(0,s.default)(p,function(e){return e.name.value});return Object.keys(c).forEach(function(t){var r=e(c[t].type,d[t]&&d[t].value);l.push.apply(l,r.map(function(e){return'In field "'+t+'": '+e}))}),l}t instanceof o.GraphQLScalarType||t instanceof o.GraphQLEnumType||(0,a.default)(0,"Must be input type");if(!t.isValidLiteral(r))return['Expected type "'+t.name+'", found '+(0,n.print)(r)+"."];return[]};var n=r(10),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(17)),o=r(9),a=u(r(16)),s=u(r(58));function u(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){var n=r(287),i=r(170);e.exports=Object.keys||function(e){return n(e,i)}},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},function(e,t,r){var n=r(41).f,i=r(51),o=r(27)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,l=c&&c(Object);e.exports=function e(t,r,p){if("string"!=typeof r){if(l){var d=c(r);d&&d!==l&&e(t,d,p)}var f=a(r);s&&(f=f.concat(s(r)));for(var h=0;h=0?"&":"?";var u=[];n.arrayEach(Object.keys(a).sort(),function(e){Array.isArray(a[e])||(a[e]=[a[e]]);for(var t=0;t-1});var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];e.exports={isEmptyData:function(e){return"string"==typeof e?0===e.length:0===e.byteLength},convertToBuffer:function(e){return"string"==typeof e&&(e=new n(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}},function(e,t,r){r(186);var n=r(5),i=n.Service,o=n.apiLoader;o.services.sts={},n.STS=i.defineService("sts",["2011-06-15"]),r(771),Object.defineProperty(o.services.sts,"2011-06-15",{get:function(){var e=r(772);return e.paginators=r(773).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.STS},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(784)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(29),i=new n.ConsoleLogger("Amplify"),o=function(){function e(){}return e.register=function(t){i.debug("component registered in amplify",t),this._components.push(t),"function"==typeof t.getModuleName?e[t.getModuleName()]=t:i.debug("no getModuleName method for component",t)},e.configure=function(e){var t=this;return e?(this._config=Object.assign(this._config,e),i.debug("amplify config",this._config),this._components.map(function(e){e.configure(t._config)}),this._config):this._config},e.addPluggable=function(e){e&&e.getCategory&&"function"==typeof e.getCategory&&this._components.map(function(t){t.addPluggable&&"function"==typeof t.addPluggable&&t.addPluggable(e)})},e._components=[],e._config={},e.Auth=null,e.Analytics=null,e.API=null,e.Storage=null,e.I18n=null,e.Cache=null,e.PubSub=null,e.Interactions=null,e.Pushnotification=null,e.Logger=n.ConsoleLogger,e.ServiceWorker=null,e}();t.default=o},function(e,t,r){var n=r(19);function i(e,t,r,i){var o=[e,t].join("/");o=o.replace(/\/+/g,"/");var a={},s=!1;if(n.each(r.members,function(e,t){var r=i[e];if(null!==r&&void 0!==r)if("uri"===t.location){var u=new RegExp("\\{"+t.name+"(\\+)?\\}");o=o.replace(u,function(e,t){return(t?n.uriEscapePath:n.uriEscape)(String(r))})}else"querystring"===t.location&&(s=!0,"list"===t.type?a[t.name]=r.map(function(e){return n.uriEscape(String(e))}):"map"===t.type?n.each(r,function(e,t){Array.isArray(t)?a[e]=t.map(function(e){return n.uriEscape(String(e))}):a[e]=n.uriEscape(String(t))}):a[t.name]=n.uriEscape(String(r)))}),s){o+=o.indexOf("?")>=0?"&":"?";var u=[];n.arrayEach(Object.keys(a).sort(),function(e){Array.isArray(a[e])||(a[e]=[a[e]]);for(var t=0;t-1});var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];e.exports={isEmptyData:function(e){return"string"==typeof e?0===e.length:0===e.byteLength},convertToBuffer:function(e){return"string"==typeof e&&(e=new n(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}},function(e,t,r){r(98);var n=r(3),i=n.Service,o=n.apiLoader;o.services.sts={},n.STS=i.defineService("sts",["2011-06-15"]),r(839),Object.defineProperty(o.services.sts,"2011-06-15",{get:function(){var e=r(840);return e.paginators=r(841).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.STS},function(e,t,r){var n=r(20);function i(e,t,r,i){var o=[e,t].join("/");o=o.replace(/\/+/g,"/");var a={},s=!1;if(n.each(r.members,function(e,t){var r=i[e];if(null!==r&&void 0!==r)if("uri"===t.location){var u=new RegExp("\\{"+t.name+"(\\+)?\\}");o=o.replace(u,function(e,t){return(t?n.uriEscapePath:n.uriEscape)(String(r))})}else"querystring"===t.location&&(s=!0,"list"===t.type?a[t.name]=r.map(function(e){return n.uriEscape(String(e))}):"map"===t.type?n.each(r,function(e,t){Array.isArray(t)?a[e]=t.map(function(e){return n.uriEscape(String(e))}):a[e]=n.uriEscape(String(t))}):a[t.name]=n.uriEscape(String(r)))}),s){o+=o.indexOf("?")>=0?"&":"?";var u=[];n.arrayEach(Object.keys(a).sort(),function(e){Array.isArray(a[e])||(a[e]=[a[e]]);for(var t=0;t-1});var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];e.exports={isEmptyData:function(e){return"string"==typeof e?0===e.length:0===e.byteLength},convertToBuffer:function(e){return"string"==typeof e&&(e=new n(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}},function(e,t,r){r(208);var n=r(4),i=n.Service,o=n.apiLoader;o.services.sts={},n.STS=i.defineService("sts",["2011-06-15"]),r(912),Object.defineProperty(o.services.sts,"2011-06-15",{get:function(){var e=r(913);return e.paginators=r(914).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.STS},function(e,t,r){var n=r(21);function i(e,t,r,i){var o=[e,t].join("/");o=o.replace(/\/+/g,"/");var a={},s=!1;if(n.each(r.members,function(e,t){var r=i[e];if(null!==r&&void 0!==r)if("uri"===t.location){var u=new RegExp("\\{"+t.name+"(\\+)?\\}");o=o.replace(u,function(e,t){return(t?n.uriEscapePath:n.uriEscape)(String(r))})}else"querystring"===t.location&&(s=!0,"list"===t.type?a[t.name]=r.map(function(e){return n.uriEscape(String(e))}):"map"===t.type?n.each(r,function(e,t){Array.isArray(t)?a[e]=t.map(function(e){return n.uriEscape(String(e))}):a[e]=n.uriEscape(String(t))}):a[t.name]=n.uriEscape(String(r)))}),s){o+=o.indexOf("?")>=0?"&":"?";var u=[];n.arrayEach(Object.keys(a).sort(),function(e){Array.isArray(a[e])||(a[e]=[a[e]]);for(var t=0;t-1});var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];e.exports={isEmptyData:function(e){return"string"==typeof e?0===e.length:0===e.byteLength},convertToBuffer:function(e){return"string"==typeof e&&(e=new n(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}},function(e,t,r){r(216);var n=r(6),i=n.Service,o=n.apiLoader;o.services.sts={},n.STS=i.defineService("sts",["2011-06-15"]),r(1011),Object.defineProperty(o.services.sts,"2011-06-15",{get:function(){var e=r(1012);return e.paginators=r(1013).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.STS},,function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}); /*! * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. A copy of * the License is located at * http://aws.amazon.com/asl/ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, express or implied. See the License for the specific language governing permissions and limitations under the License. */ var i=r(144);n(r(144));var o=r(146);t.Signer=o.Signer,n(r(618)),t.default=i.default},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)try{var i=JSON.parse(r.body.toString());(i.__type||i.code)&&(t.code=(i.__type||i.code).split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=i.message||i.Message||null}catch(i){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=n.error(new Error,t)},extractData:function(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation].output||{},n=new o;e.data=n.parse(t,r)}}}},function(e,t,r){var n=r(15);function i(){}function o(e,t){if(t&&void 0!==e&&null!==e)switch(t.type){case"structure":return function(e,t){var r={};return n.each(e,function(e,n){var i=t.members[e];if(i){if("body"!==i.location)return;var a=i.isLocationName?i.name:e,s=o(n,i);void 0!==s&&(r[a]=s)}}),r}(e,t);case"map":return function(e,t){var r={};return n.each(e,function(e,n){var i=o(n,t.value);void 0!==i&&(r[e]=i)}),r}(e,t);case"list":return function(e,t){var r=[];return n.arrayEach(e,function(e){var n=o(e,t.member);void 0!==n&&r.push(n)}),r}(e,t);default:return function(e,t){return t.toWireFormat(e)}(e,t)}}i.prototype.build=function(e,t){return JSON.stringify(o(e,t))},e.exports=i},function(e,t,r){var n=r(15);function i(){}function o(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return function(e,t){if(null==e)return;var r={},i=t.members;return n.each(i,function(t,n){var i=n.isLocationName?n.name:t;if(Object.prototype.hasOwnProperty.call(e,i)){var a=o(e[i],n);void 0!==a&&(r[t]=a)}}),r}(e,t);case"map":return function(e,t){if(null==e)return;var r={};return n.each(e,function(e,n){var i=o(n,t.value);r[e]=void 0===i?null:i}),r}(e,t);case"list":return function(e,t){if(null==e)return;var r=[];return n.arrayEach(e,function(e){var n=o(e,t.member);void 0===n?r.push(null):r.push(n)}),r}(e,t);default:return function(e,t){return t.toType(e)}(e,t)}}i.prototype.parse=function(e,t){return o(JSON.parse(e),t)},e.exports=i},function(e,t){},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){var r=/\r\n|[\n\r]/g,n=1,i=t+1,o=void 0;for(;(o=r.exec(e.body))&&o.index=o)return new _(a,o,o,R,P,t);var D=k.call(i,N);if(D<32&&9!==D&&10!==D&&13!==D)throw(0,n.syntaxError)(r,N,"Cannot contain the invalid character "+C(D)+".");switch(D){case 33:return new _(s,N,N+1,R,P,t);case 35:return function(e,t,r,n,i){var o=e.body,a=void 0,s=t;do{a=k.call(o,++s)}while(null!==a&&(a>31||9===a));return new _(T,t,s,r,n,i,I.call(o,t+1,s))}(r,N,R,P,t);case 36:return new _(u,N,N+1,R,P,t);case 40:return new _(c,N,N+1,R,P,t);case 41:return new _(l,N,N+1,R,P,t);case 46:if(46===k.call(i,N+1)&&46===k.call(i,N+2))return new _(p,N,N+3,R,P,t);break;case 58:return new _(d,N,N+1,R,P,t);case 61:return new _(f,N,N+1,R,P,t);case 64:return new _(h,N,N+1,R,P,t);case 91:return new _(m,N,N+1,R,P,t);case 93:return new _(g,N,N+1,R,P,t);case 123:return new _(y,N,N+1,R,P,t);case 124:return new _(v,N,N+1,R,P,t);case 125:return new _(b,N,N+1,R,P,t);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 function(e,t,r,n,i){var o=e.body,a=o.length,s=t+1,u=0;for(;s!==a&&null!==(u=k.call(o,s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new _(w,t,s,r,n,i,I.call(o,t,s))}(r,N,R,P,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,r,i,o,a){var s=e.body,u=r,c=t,l=!1;45===u&&(u=k.call(s,++c));if(48===u){if((u=k.call(s,++c))>=48&&u<=57)throw(0,n.syntaxError)(e,c,"Invalid number, unexpected digit after 0: "+C(u)+".")}else c=A(e,c,u),u=k.call(s,c);46===u&&(l=!0,u=k.call(s,++c),c=A(e,c,u),u=k.call(s,c));69!==u&&101!==u||(l=!0,43!==(u=k.call(s,++c))&&45!==u||(u=k.call(s,++c)),c=A(e,c,u));return new _(l?x:S,t,c,i,o,a,I.call(s,t,c))}(r,N,D,R,P,t);case 34:return function(e,t,r,i,o){var a=e.body,s=t+1,u=s,c=0,l="";for(;s=48&&a<=57){do{a=k.call(i,++o)}while(a>=48&&a<=57);return o}throw(0,n.syntaxError)(e,o,"Invalid number, expected digit but got: "+C(a)+".")}function O(e,t,r,n){return R(e)<<12|R(t)<<8|R(r)<<4|R(n)}function R(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}_.prototype.toJSON=_.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidName=function(e,t){if(!e||"string"!=typeof e)throw new Error("Must be named. Unexpected name: "+e+".");if(!t&&!o&&!i&&"__"===e.slice(0,2)&&(o=!0,console&&console.warn)){var n=new Error('Name "'+e+'" must not begin with "__", which is reserved by GraphQL introspection. In a future release of graphql this will become a hard error.');console.warn(a(n))}if(!r.test(e))throw new Error('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'+e+'" does not.')},t.formatWarning=a;var r=/^[_a-zA-Z][_a-zA-Z0-9]*$/,n=/^Error: /,i=Boolean(e&&e.env&&e.env.GRAPHQL_NO_NAME_WARNING),o=!1;function a(e){var t="",r=String(e).replace(n,""),i=e.stack;return i&&(t=i.replace(n,"")),-1===t.indexOf(r)&&(t=r+"\n"+t),t.trim()}}).call(this,r(13))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.astFromValue=function e(t,r){var p=t;if(r instanceof c.GraphQLNonNull){var d=e(p,r.ofType);return d&&d.kind===u.NULL?null:d}if(null===p)return{kind:u.NULL};if((0,s.default)(p))return null;if(r instanceof c.GraphQLList){var f=r.ofType;if((0,i.isCollection)(p)){var h=[];return(0,i.forEach)(p,function(t){var r=e(t,f);r&&h.push(r)}),{kind:u.LIST,values:h}}return e(p,f)}if(r instanceof c.GraphQLInputObjectType){if(null===p||"object"!==(void 0===p?"undefined":n(p)))return null;var m=r.getFields(),g=[];return Object.keys(m).forEach(function(t){var r=m[t].type,n=e(p[t],r);n&&g.push({kind:u.OBJECT_FIELD,name:{kind:u.NAME,value:t},value:n})}),{kind:u.OBJECT,fields:g}}r instanceof c.GraphQLScalarType||r instanceof c.GraphQLEnumType||(0,o.default)(0,"Must provide Input Type, cannot use: "+String(r));var y=r.serialize(p);if((0,a.default)(y))return null;if("boolean"==typeof y)return{kind:u.BOOLEAN,value:y};if("number"==typeof y){var v=String(y);return/^[0-9]+$/.test(v)?{kind:u.INT,value:v}:{kind:u.FLOAT,value:v}}if("string"==typeof y)return r instanceof c.GraphQLEnumType?{kind:u.ENUM,value:y}:r===l.GraphQLID&&/^[0-9]+$/.test(y)?{kind:u.INT,value:y}:{kind:u.STRING,value:JSON.stringify(y).slice(1,-1)};throw new TypeError("Cannot convert value to AST: "+String(y))};var i=r(14),o=p(r(16)),a=p(r(45)),s=p(r(84)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(17)),c=r(9),l=r(40);function p(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeInfo=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(17)),i=r(9),o=r(46),a=r(37),s=function(e){return e&&e.__esModule?e:{default:e}}(r(57));t.TypeInfo=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r||u}return e.prototype.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},e.prototype.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},e.prototype.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},e.prototype.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},e.prototype.getDirective=function(){return this._directive},e.prototype.getArgument=function(){return this._argument},e.prototype.getEnumValue=function(){return this._enumValue},e.prototype.enter=function(e){var t=this._schema;switch(e.kind){case n.SELECTION_SET:var r=(0,i.getNamedType)(this.getType());this._parentTypeStack.push((0,i.isCompositeType)(r)?r:void 0);break;case n.FIELD:var o=this.getParentType(),u=void 0;o&&(u=this._getFieldDef(t,o,e)),this._fieldDefStack.push(u),this._typeStack.push(u&&u.type);break;case n.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case n.OPERATION_DEFINITION:var c=void 0;"query"===e.operation?c=t.getQueryType():"mutation"===e.operation?c=t.getMutationType():"subscription"===e.operation&&(c=t.getSubscriptionType()),this._typeStack.push(c);break;case n.INLINE_FRAGMENT:case n.FRAGMENT_DEFINITION:var l=e.typeCondition,p=l?(0,a.typeFromAST)(t,l):this.getType();this._typeStack.push((0,i.isOutputType)(p)?p:void 0);break;case n.VARIABLE_DEFINITION:var d=(0,a.typeFromAST)(t,e.type);this._inputTypeStack.push((0,i.isInputType)(d)?d:void 0);break;case n.ARGUMENT:var f=void 0,h=void 0,m=this.getDirective()||this.getFieldDef();m&&(f=(0,s.default)(m.args,function(t){return t.name===e.name.value}))&&(h=f.type),this._argument=f,this._inputTypeStack.push(h);break;case n.LIST:var g=(0,i.getNullableType)(this.getInputType());this._inputTypeStack.push(g instanceof i.GraphQLList?g.ofType:void 0);break;case n.OBJECT_FIELD:var y=(0,i.getNamedType)(this.getInputType()),v=void 0;if(y instanceof i.GraphQLInputObjectType){var b=y.getFields()[e.name.value];v=b?b.type:void 0}this._inputTypeStack.push(v);break;case n.ENUM:var w=(0,i.getNamedType)(this.getInputType()),S=void 0;w instanceof i.GraphQLEnumType&&(S=w.getValue(e.value)),this._enumValue=S}},e.prototype.leave=function(e){switch(e.kind){case n.SELECTION_SET:this._parentTypeStack.pop();break;case n.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case n.DIRECTIVE:this._directive=null;break;case n.OPERATION_DEFINITION:case n.INLINE_FRAGMENT:case n.FRAGMENT_DEFINITION:this._typeStack.pop();break;case n.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case n.ARGUMENT:this._argument=null,this._inputTypeStack.pop();break;case n.LIST:case n.OBJECT_FIELD:this._inputTypeStack.pop();break;case n.ENUM:this._enumValue=null}},e}();function u(e,t,r){var n=r.name.value;return n===o.SchemaMetaFieldDef.name&&e.getQueryType()===t?o.SchemaMetaFieldDef:n===o.TypeMetaFieldDef.name&&e.getQueryType()===t?o.TypeMetaFieldDef:n===o.TypeNameMetaFieldDef.name&&(0,i.isCompositeType)(t)?o.TypeNameMetaFieldDef:t instanceof i.GraphQLObjectType||t instanceof i.GraphQLInterfaceType?t.getFields()[n]:void 0}},function(e,t,r){"use strict";function n(e,t){var r=void 0,n=void 0,i=[],o=e.length,a=t.length;for(r=0;r<=o;r++)i[r]=[r];for(n=1;n<=a;n++)i[0][n]=n;for(r=1;r<=o;r++)for(n=1;n<=a;n++){var s=e[r-1]===t[n-1]?0:1;i[r][n]=Math.min(i[r-1][n]+1,i[r][n-1]+1,i[r-1][n-1]+s),r>1&&n>1&&e[r-1]===t[n-2]&&e[r-2]===t[n-1]&&(i[r][n]=Math.min(i[r][n],i[r-2][n-2]+s))}return i[o][a]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var r=Object.create(null),i=t.length,o=e.length/2,a=0;a2?", ":" ")+(n===t.length-1?"or ":"")+r})};var n=5},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultFieldResolver=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.execute=function(e,t,r,n,i,o,a){return 1===arguments.length?g(e.schema,e.document,e.rootValue,e.contextValue,e.variableValues,e.operationName,e.fieldResolver):g(e,t,r,n,i,o,a)},t.responsePathAsArray=y,t.addPath=v,t.assertValidExecutionArguments=b,t.buildExecutionContext=w,t.getOperationRootType=S,t.collectFields=E,t.buildResolveInfo=C,t.resolveFieldValueOrError=N,t.getFieldDef=U;var i=r(14),o=r(7),a=m(r(16)),s=m(r(45)),u=r(37),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(17)),l=r(160),p=r(9),d=r(35),f=r(46),h=r(36);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,r,n,i,o,a){b(e,t,i);var s=void 0;try{s=w(e,t,r,n,i,o,a)}catch(e){return Promise.resolve({errors:[e]})}return Promise.resolve(function(e,t,r){var n=S(e.schema,t),i=E(e,n,t.selectionSet,Object.create(null),Object.create(null)),o=void 0;try{var a="mutation"===t.operation?function(e,t,r,n,i){return Object.keys(i).reduce(function(o,a){return o.then(function(o){var s=i[a],u=v(n,a),c=_(e,t,r,s,u);if(void 0===c)return o;var l=q(c);return l?l.then(function(e){return o[a]=e,o}):(o[a]=c,o)})},Promise.resolve({}))}(e,n,r,o,i):x(e,n,r,o,i),s=q(a);return s?s.then(void 0,function(t){return e.errors.push(t),Promise.resolve(null)}):a}catch(t){return e.errors.push(t),null}}(s,s.operation,r)).then(function(e){return 0===s.errors.length?{data:e}:{errors:s.errors,data:e}})}function y(e){for(var t=[],r=e;r;)t.push(r.key),r=r.prev;return t.reverse()}function v(e,t){return{prev:e,key:t}}function b(e,t,r){e||(0,a.default)(0,"Must provide schema"),t||(0,a.default)(0,"Must provide document"),e instanceof d.GraphQLSchema||(0,a.default)(0,"Schema must be an instance of GraphQLSchema. Also ensure that there are not multiple versions of GraphQL installed in your node_modules directory."),r&&"object"!==(void 0===r?"undefined":n(r))&&(0,a.default)(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 w(e,t,r,n,i,a,s){var u=void 0,p=Object.create(null);if(t.definitions.forEach(function(e){switch(e.kind){case c.OPERATION_DEFINITION:if(!a&&u)throw new o.GraphQLError("Must provide operation name if query contains multiple operations.");(!a||e.name&&e.name.value===a)&&(u=e);break;case c.FRAGMENT_DEFINITION:p[e.name.value]=e;break;default:throw new o.GraphQLError("GraphQL cannot execute a request containing a "+e.kind+".",[e])}}),!u)throw a?new o.GraphQLError('Unknown operation named "'+a+'".'):new o.GraphQLError("Must provide an operation.");var d=(0,l.getVariableValues)(e,u.variableDefinitions||[],i||{});return{schema:e,fragments:p,rootValue:r,contextValue:n,operation:u,variableValues:d,fieldResolver:s||M,errors:[]}}function S(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":var r=e.getMutationType();if(!r)throw new o.GraphQLError("Schema is not configured for mutations",[t]);return r;case"subscription":var n=e.getSubscriptionType();if(!n)throw new o.GraphQLError("Schema is not configured for subscriptions",[t]);return n;default:throw new o.GraphQLError("Can only execute queries, mutations and subscriptions",[t])}}function x(e,t,r,n,i){var o=!1,a=Object.keys(i).reduce(function(a,s){var u=i[s],c=v(n,s),l=_(e,t,r,u,c);return void 0===l?a:(a[s]=l,q(l)&&(o=!0),a)},Object.create(null));return o?function(e){var t=Object.keys(e),r=t.map(function(t){return e[t]});return Promise.all(r).then(function(e){return e.reduce(function(e,r,n){return e[t[n]]=r,e},Object.create(null))})}(a):a}function E(e,t,r,n,i){for(var o=0;o=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(49),i=r(26).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,r){var n=r(49);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(163),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){var n=r(169)("keys"),i=r(113);e.exports=function(e){return n[e]||(n[e]=i(e))}},function(e,t,r){var n=r(31),i=r(26),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(86)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(164);e.exports=function(e){return Object(n(e))}},function(e,t,r){t.f=r(27)},function(e,t,r){var n=r(26),i=r(31),o=r(86),a=r(172),s=r(41).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){e.exports={default:r(580),__esModule:!0}},function(e,t,r){"use strict";var n=r(111);e.exports.f=function(e){return new function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)}(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.busy=t.completeRetry=t.scheduleRetry=t.networkStatusChanged=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(282)),i=r(39);t.networkStatusChanged=function(e){var t=void 0;return t="object"===(void 0===e?"undefined":(0,n.default)(e))?e:{online:e},{type:i.OFFLINE_STATUS_CHANGED,payload:t}},t.scheduleRetry=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{type:i.OFFLINE_SCHEDULE_RETRY,payload:{delay:e}}},t.completeRetry=function(e){return{type:i.OFFLINE_COMPLETE_RETRY,payload:e}},t.busy=function(e){return{type:i.OFFLINE_BUSY,payload:{busy:e}}}},function(e,t,r){var n=r(619),i=r(620),o=i;o.v1=n,o.v4=i,e.exports=o},function(e,t,r){e.exports=r(623)()},function(e,t,r){!function(e,t,n,i){"use strict";function o(e,r,n){if(Array.isArray(e))e.forEach(function(e){return o(e,r,n)});else if(e)if(function(e){return!!e.type}(e))if("function"==typeof e.type){var i=e.type,a=Object.assign({},i.defaultProps,function(e){return e.props||e.attributes}(e)),s=r,u=void 0;if(function(e){return e.prototype&&(e.prototype.render||e.prototype.isReactComponent)}(i)){var c=new i(a,r);if(Object.defineProperty(c,"props",{value:c.props||a}),c.context=c.context||r,c.state=c.state||null,c.setState=function(e){"function"==typeof e&&(e=e(c.state,c.props,c.context)),c.state=Object.assign({},c.state,e)},i.getDerivedStateFromProps){var l=i.getDerivedStateFromProps(c.props,c.state);null!==l&&(c.state=Object.assign({},c.state,l))}else c.UNSAFE_componentWillMount?c.UNSAFE_componentWillMount():c.componentWillMount&&c.componentWillMount();if(function(e){return!!e.getChildContext}(c)&&(s=Object.assign({},r,c.getChildContext())),!1===n(e,c,r,s))return;u=c.render()}else{if(!1===n(e,null,r))return;u=i(a,r)}u&&(Array.isArray(u)?u.forEach(function(e){return o(e,s,n)}):o(u,s,n))}else if(e.type._context||e.type.Consumer){if(!1===n(e,null,r))return;var u=void 0;e.type._context?(e.type._context._currentValue=e.props.value,u=e.props.children):u=e.props.children(e.type._currentValue),u&&(Array.isArray(u)?u.forEach(function(e){return o(e,r,n)}):o(u,r,n))}else{if(!1===n(e,null,r))return;e.props&&e.props.children&&t.Children.forEach(e.props.children,function(e){e&&o(e,r,n)})}else"string"!=typeof e&&"number"!=typeof e||n(e,null,r)}function a(e,t,r){void 0===t&&(t={});var n=function(e){var t=e.rootElement,r=e.rootContext,n=[];return o(t,void 0===r?{}:r,function(e,t,r,i){if(t&&function(e){return"function"==typeof e.fetchData}(t)){var o=t.fetchData();if(function(e){return"function"==typeof e.then}(o))return n.push({promise:o,context:i||r,instance:t}),!1}}),n}({rootElement:e,rootContext:t});if(!n.length)return Promise.resolve();var i=n.map(function(e){var t=e.promise,n=e.context,i=e.instance;return t.then(function(e){return a(i.render(),n,r)}).catch(function(e){return r(e)})});return Promise.all(i)}var s=r(43),u=function(e,t){return s(!!t.client,'Could not find "client" in the context of ApolloConsumer. Wrap the root component in an '),e.children(t.client)};u.contextTypes={client:n.object.isRequired},u.propTypes={children:n.func.isRequired};var c,l=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),p=r(43),d=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.operations=new Map,p(t.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'),t.client.__operations_cache__||(t.client.__operations_cache__=n.operations),n}return l(t,e),t.prototype.getChildContext=function(){return{client:this.props.client,operations:this.props.client.__operations_cache__}},t.prototype.render=function(){return this.props.children},t.propTypes={client:n.object.isRequired,children:n.node.isRequired},t.childContextTypes={client:n.object.isRequired,operations:n.object},t}(t.Component),f=r(43);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(c||(c={}));var h=new Map;function m(e){var t,r,n=h.get(e);if(n)return n;f(!!e&&!!e.kind,"Argument of "+e+" passed to parser was not a valid GraphQL DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document");var i=e.definitions.filter(function(e){return"FragmentDefinition"===e.kind}),o=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"query"===e.operation}),a=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}),s=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation});f(!i.length||o.length||a.length||s.length,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"),f(o.length+a.length+s.length<=1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+e+" had "+o.length+" queries, "+s.length+" subscriptions and "+a.length+" mutations. You can use 'compose' to join multiple operation types to a component"),r=o.length?c.Query:c.Mutation,o.length||a.length||(r=c.Subscription);var u=o.length?o:a.length?a:s;f(1===u.length,"react-apollo only supports one defintion per HOC. "+e+" had "+u.length+" definitions. You can use 'compose' to join multiple operation types to a component");var l=u[0];t=l.variableDefinitions||[];var p={name:l.name&&"Name"===l.name.kind?l.name.value:"data",type:r,variables:t};return h.set(e,p),p}var g=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&(s=new i.ApolloError({graphQLErrors:a})),Object.assign(e,{loading:r,networkStatus:o,error:s}),r?Object.assign(e.data,n.previousData,t.data):s?Object.assign(e,{data:(n.queryObservable.getLastResult()||{}).data}):(Object.assign(e.data,t.data),n.previousData=t.data),!n.querySubscription){var u=e.refetch;e.refetch=function(e){return n.querySubscription?u(e):new Promise(function(t,r){n.refetcherQueue={resolve:t,reject:r,args:e}})}}return e.client=n.client,e},n.client=t.client||r.client,w(!!n.client,'Could not find "client" in the context of Query or as passed props. Wrap the root component in an '),n.initializeQueryObservable(t),n}return g(t,e),t.prototype.fetchData=function(){if(this.props.skip)return!1;var e=this.props,t=(e.children,e.ssr),r=(e.displayName,e.skip,e.client,e.onCompleted,e.onError,v(e,["children","ssr","displayName","skip","client","onCompleted","onError"])),n=r.fetchPolicy;if(!1===t)return!1;"network-only"!==n&&"cache-and-network"!==n||(n="cache-first");var i=this.client.watchQuery(y({},r,{fetchPolicy:n})),o=this.queryObservable.currentResult();return!!o.loading&&i.result()},t.prototype.componentDidMount=function(){if(this.hasMounted=!0,!this.props.skip&&(this.startQuerySubscription(),this.refetcherQueue)){var e=this.refetcherQueue,t=e.args,r=e.resolve,n=e.reject;this.queryObservable.refetch(t).then(r).catch(n)}},t.prototype.componentWillReceiveProps=function(e,t){if(!e.skip||this.props.skip){var r=e.client;(!b(this.props,e)||this.client!==r&&this.client!==t.client)&&(this.client!==r&&this.client!==t.client&&(this.client=r||t.client,this.removeQuerySubscription(),this.queryObservable=null,this.previousData={},this.updateQuery(e)),this.props.query!==e.query&&this.removeQuerySubscription(),this.updateQuery(e),e.skip||this.startQuerySubscription())}else this.removeQuerySubscription()},t.prototype.componentWillUnmount=function(){this.removeQuerySubscription(),this.hasMounted=!1},t.prototype.render=function(){var e=this.props.children,t=this.getQueryResult();return e(t)},t.prototype.extractOptsFromProps=function(e){var t=e.variables,r=e.pollInterval,n=e.fetchPolicy,i=e.errorPolicy,o=e.notifyOnNetworkStatusChange,a=e.query,s=e.displayName,u=void 0===s?"Query":s,l=e.context,p=void 0===l?{}:l;return this.operation=m(a),w(this.operation.type===c.Query,"The component requires a graphql query, but got a "+(this.operation.type===c.Mutation?"mutation":"subscription")+"."),function(e){return Object.keys(e).reduce(function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t},{})}({variables:t,pollInterval:r,query:a,fetchPolicy:n,errorPolicy:i,notifyOnNetworkStatusChange:o,metadata:{reactComponent:{displayName:u}},context:p})},t.prototype.initializeQueryObservable=function(e){var t=this.extractOptsFromProps(e);this.context.operations&&this.context.operations.set(this.operation.name,{query:t.query,variables:t.variables}),this.queryObservable=this.client.watchQuery(t)},t.prototype.updateQuery=function(e){this.queryObservable||this.initializeQueryObservable(e),this.queryObservable.setOptions(this.extractOptsFromProps(e)).catch(function(){return null})},t.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var e=this.queryObservable.getLastError(),t=this.queryObservable.getLastResult();this.queryObservable.resetLastResults(),this.startQuerySubscription(),Object.assign(this.queryObservable,{lastError:e,lastResult:t})},t.contextTypes={client:n.object.isRequired,operations:n.object},t.propTypes={children:n.func.isRequired,fetchPolicy:n.string,notifyOnNetworkStatusChange:n.bool,onCompleted:n.func,onError:n.func,pollInterval:n.number,query:n.object.isRequired,variables:n.object,ssr:n.bool},t}(t.Component),x=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),E=Object.assign||function(e){for(var t,r=1,n=arguments.length;r component requires a graphql mutation, but got a "+(t.type===c.Query?"query":"subscription")+".")},n.client=t.client||r.client,T(!!n.client,'Could not find "client" in the context or props of Mutation. Wrap the root component in an , or pass an ApolloClient instance in via props.'),n.verifyDocumentIsMutation(t.mutation),n.mostRecentMutationId=0,n.state=I,n}return x(t,e),t.prototype.componentDidMount=function(){this.hasMounted=!0},t.prototype.componentWillUnmount=function(){this.hasMounted=!1},t.prototype.componentWillReceiveProps=function(e,t){var r=e.client;(!k(this.props,e)||this.client!==r&&this.client!==t.client)&&(this.props.mutation!==e.mutation&&this.verifyDocumentIsMutation(e.mutation),this.client!==r&&this.client!==t.client&&(this.client=r||t.client,this.setState(I)))},t.prototype.render=function(){var e=this.props.children,t=this.state,r=t.loading,n=t.data,i=t.error,o=t.called,a={called:o,loading:r,data:n,error:i,client:this.client};return e(this.runMutation,a)},t.contextTypes={client:n.object.isRequired,operations:n.object},t.propTypes={mutation:n.object.isRequired,variables:n.object,optimisticResponse:n.object,refetchQueries:n.oneOfType([n.arrayOf(n.oneOfType([n.string,n.object])),n.func]),awaitRefetchQueries:n.bool,update:n.func,children:n.func.isRequired,onCompleted:n.func,onError:n.func},t}(t.Component),C=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),N=r(104),A=r(43),O=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.initialize=function(e){n.queryObservable||(n.queryObservable=n.client.subscribe({query:e.subscription,variables:e.variables}))},n.startSubscription=function(){n.querySubscription||(n.querySubscription=n.queryObservable.subscribe({next:n.updateCurrentData,error:n.updateError}))},n.getInitialState=function(){return{loading:!0,error:void 0,data:void 0}},n.updateCurrentData=function(e){n.setState({data:e.data,loading:!1,error:void 0})},n.updateError=function(e){n.setState({error:e,loading:!1})},n.endSubscription=function(){n.querySubscription&&(n.querySubscription.unsubscribe(),delete n.querySubscription)},A(!!r.client,'Could not find "client" in the context of Subscription. Wrap the root component in an '),n.client=r.client,n.initialize(t),n.state=n.getInitialState(),n}return C(t,e),t.prototype.componentDidMount=function(){this.startSubscription()},t.prototype.componentWillReceiveProps=function(e,t){if(!N(this.props.variables,e.variables)||this.client!==t.client||this.props.subscription!==e.subscription){var r=e.shouldResubscribe;"function"==typeof r&&(r=!!r(this.props,e));var n=!1===r;if(this.client!==t.client&&(this.client=t.client),!n)return this.endSubscription(),delete this.queryObservable,this.initialize(e),this.startSubscription(),void this.setState(this.getInitialState());this.initialize(e),this.startSubscription()}},t.prototype.componentWillUnmount=function(){this.endSubscription()},t.prototype.render=function(){var e=Object.assign({},this.state,{variables:this.props.variables});return this.props.children(e)},t.contextTypes={client:n.object.isRequired},t.propTypes={subscription:n.object.isRequired,variables:n.object,children:n.func.isRequired,shouldResubscribe:n.oneOfType([n.func,n.bool])},t}(t.Component),R=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),P=r(43),D=function(){return{}},L=function(){return!1};function M(e){return e.displayName||e.name||"Component"}function q(e,t,r,n){for(var i={},o=0,a=e.variables;o0&&(s.variables=q(n,a,o,M(i))),t.createElement(_,K({},s,{mutation:e,ignoreResults:!0}),function(e,n){var o,s,u=r.name||"mutate",c=((o={})[u]=e,o);if(r.props){var l=((s={})[u]=e,s.ownProps=a,s);c=r.props(l)}return t.createElement(i,K({},a,c))})},s.displayName=o,s.WrappedComponent=i,s}(U);return G(a,i,{})}}(e,r);case c.Subscription:return function(e,r){void 0===r&&(r={});var n=m(e),i=r.options,o=void 0===i?D:i,a=r.skip,s=void 0===a?L:a,u=r.alias,c=void 0===u?"Apollo":u,l=r.shouldResubscribe,p=o;"function"!=typeof p&&(p=function(){return o});var d,f=s;return"function"!=typeof f&&(f=function(){return s}),function(i){var o=c+"("+M(i)+")",a=function(a){function s(e){var t=a.call(this,e)||this;return t.state={resubscribe:!1},t}return Q(s,a),s.prototype.componentWillReceiveProps=function(e){l&&this.setState({resubscribe:l(this.props,e)})},s.prototype.render=function(){var a=this,s=this.props,u=f(s),c=u?Object.create(null):p(s);return!u&&!c.variables&&n.variables.length>0&&(c.variables=q(n,s,o,M(i))),t.createElement(O,H({},c,{displayName:o,skip:u,subscription:e,shouldResubscribe:this.state.resubscribe}),function(e){var n,o,c=e.data,l=W(e,["data"]);if(r.withRef&&(a.withRef=!0,s=Object.assign({},s,{ref:a.setWrappedInstance})),u)return t.createElement(i,H({},s));var p=Object.assign(l,c||{}),f=r.name||"data",h=((n={})[f]=p,n);if(r.props){var m=((o={})[f]=p,o.ownProps=s,o);d=r.props(m,d),h=d}return t.createElement(i,H({},s,h))})},s.displayName=o,s.WrappedComponent=i,s}(U);return X(a,i,{})}}(e,r);case c.Query:default:return function(e,r){void 0===r&&(r={});var n=m(e),i=r.options,o=void 0===i?D:i,a=r.skip,s=void 0===a?L:a,u=r.alias,c=void 0===u?"Apollo":u,l=o;"function"!=typeof l&&(l=function(){return o});var p,d=s;return"function"!=typeof d&&(d=function(){return s}),function(i){var o=c+"("+M(i)+")",a=function(a){function s(){return null!==a&&a.apply(this,arguments)||this}return j(s,a),s.prototype.render=function(){var a=this,s=this.props,u=d(s),c=u?Object.create(null):l(s);return!u&&!c.variables&&n.variables.length>0&&(c.variables=q(n,s,o,M(i))),t.createElement(S,B({},c,{displayName:o,skip:u,query:e,warnUnhandledError:!0}),function(e){e.client;var n,o,c=e.data,l=F(e,["client","data"]);if(r.withRef&&(a.withRef=!0,s=Object.assign({},s,{ref:a.setWrappedInstance})),u)return t.createElement(i,B({},s));var d=Object.assign(l,c||{}),f=r.name||"data",h=((n={})[f]=d,n);if(r.props){var m=((o={})[f]=d,o.ownProps=s,o);p=r.props(m,p),h=p}return t.createElement(i,B({},s,h))})},s.displayName=o,s.WrappedComponent=i,s}(U);return z(a,i,{})}}(e,r)}},e.withApollo=function(e,r){void 0===r&&(r={});var n="withApollo("+function(e){return e.displayName||e.name||"Component"}(e)+")",i=function(i){function o(e){var t=i.call(this,e)||this;return t.setWrappedInstance=t.setWrappedInstance.bind(t),t}return J(o,i),o.prototype.getWrappedInstance=function(){return $(r.withRef,"To access the wrapped instance, you need to specify { withRef: true } in the options"),this.wrappedInstance},o.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},o.prototype.render=function(){var n=this;return t.createElement(u,null,function(i){var o=Object.assign({},n.props,{client:i,ref:r.withRef?n.setWrappedInstance:void 0});return t.createElement(e,Y({},o))})},o.displayName=n,o.WrappedComponent=e,o}(t.Component);return Z(i,e,{})},e.walkTree=o,Object.defineProperty(e,"__esModule",{value:!0})}(t,r(25),r(179),r(222))},function(e,t,r){var n=r(182),i=r(183);function o(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}o.prototype=n(i.prototype),o.prototype.constructor=o,e.exports=o},function(e,t,r){var n=r(12),i=Object.create,o=function(){function e(){}return function(t){if(!n(t))return{};if(i)return i(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=o},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e){return e}},function(e,t,r){var n=r(182),i=r(183),o=4294967295;function a(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=o,this.__views__=[]}a.prototype=n(i.prototype),a.prototype.constructor=a,e.exports=a},function(e,t,r){(function(t){var n=r(18);n.crypto.lib=r(765),n.Buffer=r(1).Buffer,n.url=r(34),n.querystring=r(54),n.environment="js";var i=r(5);e.exports=i,r(344),r(345),r(770),r(774),r(775),r(780),i.XML.Parser=r(781),r(782),void 0===t&&(t={browser:!0})}).call(this,r(13))},function(e,t,r){var n=r(18),i=r(188),o=r(189);e.exports={buildRequest:function(e){var t=e.httpRequest,r=e.service.api,n=r.targetPrefix+"."+r.operations[e.operation].name,o=r.jsonVersion||"1.0",a=r.operations[e.operation].input,s=new i;1===o&&(o="1.0"),t.body=s.build(e.params||{},a),t.headers["Content-Type"]="application/x-amz-json-"+o,t.headers["X-Amz-Target"]=n},extractError:function(e){var t={},r=e.httpResponse;if(t.code=r.headers["x-amzn-errortype"]||"UnknownError","string"==typeof t.code&&(t.code=t.code.split(":")[0]),r.body.length>0)try{var i=JSON.parse(r.body.toString());(i.__type||i.code)&&(t.code=(i.__type||i.code).split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=i.message||i.Message||null}catch(i){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=n.error(new Error,t)},extractData:function(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation].output||{},n=new o;e.data=n.parse(t,r)}}}},function(e,t,r){var n=r(18);function i(){}function o(e,t){if(t&&void 0!==e&&null!==e)switch(t.type){case"structure":return function(e,t){var r={};return n.each(e,function(e,n){var i=t.members[e];if(i){if("body"!==i.location)return;var a=i.isLocationName?i.name:e,s=o(n,i);void 0!==s&&(r[a]=s)}}),r}(e,t);case"map":return function(e,t){var r={};return n.each(e,function(e,n){var i=o(n,t.value);void 0!==i&&(r[e]=i)}),r}(e,t);case"list":return function(e,t){var r=[];return n.arrayEach(e,function(e){var n=o(e,t.member);void 0!==n&&r.push(n)}),r}(e,t);default:return function(e,t){return t.toWireFormat(e)}(e,t)}}i.prototype.build=function(e,t){return JSON.stringify(o(e,t))},e.exports=i},function(e,t,r){var n=r(18);function i(){}function o(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return function(e,t){if(null==e)return;var r={},i=t.members;return n.each(i,function(t,n){var i=n.isLocationName?n.name:t;if(Object.prototype.hasOwnProperty.call(e,i)){var a=o(e[i],n);void 0!==a&&(r[t]=a)}}),r}(e,t);case"map":return function(e,t){if(null==e)return;var r={};return n.each(e,function(e,n){var i=o(n,t.value);r[e]=void 0===i?null:i}),r}(e,t);case"list":return function(e,t){if(null==e)return;var r=[];return n.arrayEach(e,function(e){var n=o(e,t.member);void 0===n?r.push(null):r.push(n)}),r}(e,t);default:return function(e,t){return t.toType(e)}(e,t)}}i.prototype.parse=function(e,t){return o(JSON.parse(e),t)},e.exports=i},function(e,t){var r=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}},function(e,t){var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var i=typeof e;return!!(t=null==t?r:t)&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e0)try{var i=JSON.parse(r.body.toString());(i.__type||i.code)&&(t.code=(i.__type||i.code).split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=i.message||i.Message||null}catch(i){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=n.error(new Error,t)},extractData:function(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation].output||{},n=new o;e.data=n.parse(t,r)}}}},function(e,t,r){var n=r(19);function i(){}function o(e,t){if(t&&void 0!==e&&null!==e)switch(t.type){case"structure":return function(e,t){var r={};return n.each(e,function(e,n){var i=t.members[e];if(i){if("body"!==i.location)return;var a=i.isLocationName?i.name:e,s=o(n,i);void 0!==s&&(r[a]=s)}}),r}(e,t);case"map":return function(e,t){var r={};return n.each(e,function(e,n){var i=o(n,t.value);void 0!==i&&(r[e]=i)}),r}(e,t);case"list":return function(e,t){var r=[];return n.arrayEach(e,function(e){var n=o(e,t.member);void 0!==n&&r.push(n)}),r}(e,t);default:return function(e,t){return t.toWireFormat(e)}(e,t)}}i.prototype.build=function(e,t){return JSON.stringify(o(e,t))},e.exports=i},function(e,t,r){var n=r(19);function i(){}function o(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return function(e,t){if(null==e)return;var r={},i=t.members;return n.each(i,function(t,n){var i=n.isLocationName?n.name:t;if(Object.prototype.hasOwnProperty.call(e,i)){var a=o(e[i],n);void 0!==a&&(r[t]=a)}}),r}(e,t);case"map":return function(e,t){if(null==e)return;var r={};return n.each(e,function(e,n){var i=o(n,t.value);r[e]=void 0===i?null:i}),r}(e,t);case"list":return function(e,t){if(null==e)return;var r=[];return n.arrayEach(e,function(e){var n=o(e,t.member);void 0===n?r.push(null):r.push(n)}),r}(e,t);default:return function(e,t){return t.toType(e)}(e,t)}}i.prototype.parse=function(e,t){return o(JSON.parse(e),t)},e.exports=i},function(e,t){},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(11),i=r(854);t.BrowserStorageCache=i.default;var o=r(857);t.InMemoryCache=o.default,t.default=i.default,n.default.register(i.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(855));var n=r(856);t.CacheList=n.default},function(e,t,r){var n=r(1).Buffer,i=4,o=new n(i);o.fill(0);var a=8;e.exports={hash:function(e,t,r,s){return n.isBuffer(e)||(e=new n(e)),function(e,t,r){for(var i=new n(t),o=r?i.writeInt32BE:i.writeInt32LE,a=0;a0)try{var i=JSON.parse(r.body.toString());(i.__type||i.code)&&(t.code=(i.__type||i.code).split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=i.message||i.Message||null}catch(i){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=n.error(new Error,t)},extractData:function(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation].output||{},n=new o;e.data=n.parse(t,r)}}}},function(e,t,r){var n=r(20);function i(){}function o(e,t){if(t&&void 0!==e&&null!==e)switch(t.type){case"structure":return function(e,t){var r={};return n.each(e,function(e,n){var i=t.members[e];if(i){if("body"!==i.location)return;var a=i.isLocationName?i.name:e,s=o(n,i);void 0!==s&&(r[a]=s)}}),r}(e,t);case"map":return function(e,t){var r={};return n.each(e,function(e,n){var i=o(n,t.value);void 0!==i&&(r[e]=i)}),r}(e,t);case"list":return function(e,t){var r=[];return n.arrayEach(e,function(e){var n=o(e,t.member);void 0!==n&&r.push(n)}),r}(e,t);default:return function(e,t){return t.toWireFormat(e)}(e,t)}}i.prototype.build=function(e,t){return JSON.stringify(o(e,t))},e.exports=i},function(e,t,r){var n=r(20);function i(){}function o(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return function(e,t){if(null==e)return;var r={},i=t.members;return n.each(i,function(t,n){var i=n.isLocationName?n.name:t;if(Object.prototype.hasOwnProperty.call(e,i)){var a=o(e[i],n);void 0!==a&&(r[t]=a)}}),r}(e,t);case"map":return function(e,t){if(null==e)return;var r={};return n.each(e,function(e,n){var i=o(n,t.value);r[e]=void 0===i?null:i}),r}(e,t);case"list":return function(e,t){if(null==e)return;var r=[];return n.arrayEach(e,function(e){var n=o(e,t.member);void 0===n?r.push(null):r.push(n)}),r}(e,t);default:return function(e,t){return t.toType(e)}(e,t)}}i.prototype.parse=function(e,t){return o(JSON.parse(e),t)},e.exports=i},function(e,t){},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=o;var n=r(402),i=r(403);function o(e,t,r,n,a,s,u){var c=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,l=r;if(!l&&c){var p=c[0];l=p&&p.loc&&p.loc.source}var d=n;!d&&c&&(d=c.reduce(function(e,t){return t.loc&&e.push(t.loc.start),e},[])),d&&0===d.length&&(d=void 0);var f=void 0;if(n&&r){var h=r;f=n.map(function(e){return(0,i.getLocation)(h,e)})}else c&&(f=c.reduce(function(e,t){return t.loc&&e.push((0,i.getLocation)(t.loc.source,t.loc.start)),e},[]));Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:f||void 0,enumerable:!0},path:{value:a||void 0,enumerable:!0},nodes:{value:c||void 0},source:{value:l||void 0},positions:{value:d||void 0},originalError:{value:s},extensions:{value:u||s&&s.extensions}}),s&&s.stack?Object.defineProperty(this,"stack",{value:s.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,o):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}o.prototype=Object.create(Error.prototype,{constructor:{value:o},name:{value:"GraphQLError"},toString:{value:function(){return(0,n.printError)(this)}}})},function(e,t,r){"use strict";(function(t){var n=r(32),i=r(947),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s={adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=r(405):void 0!==t&&(e=r(405)),e}(),transformRequest:[function(e,t){return i(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],function(e){s.headers[e]={}}),n.forEach(["post","put","patch"],function(e){s.headers[e]=n.merge(o)}),e.exports=s}).call(this,r(13))},function(e,t,r){"use strict";(function(e){var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)try{var i=JSON.parse(r.body.toString());(i.__type||i.code)&&(t.code=(i.__type||i.code).split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=i.message||i.Message||null}catch(i){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=n.error(new Error,t)},extractData:function(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation].output||{},n=new o;e.data=n.parse(t,r)}}}},function(e,t,r){var n=r(21);function i(){}function o(e,t){if(t&&void 0!==e&&null!==e)switch(t.type){case"structure":return function(e,t){var r={};return n.each(e,function(e,n){var i=t.members[e];if(i){if("body"!==i.location)return;var a=i.isLocationName?i.name:e,s=o(n,i);void 0!==s&&(r[a]=s)}}),r}(e,t);case"map":return function(e,t){var r={};return n.each(e,function(e,n){var i=o(n,t.value);void 0!==i&&(r[e]=i)}),r}(e,t);case"list":return function(e,t){var r=[];return n.arrayEach(e,function(e){var n=o(e,t.member);void 0!==n&&r.push(n)}),r}(e,t);default:return function(e,t){return t.toWireFormat(e)}(e,t)}}i.prototype.build=function(e,t){return JSON.stringify(o(e,t))},e.exports=i},function(e,t,r){var n=r(21);function i(){}function o(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return function(e,t){if(null==e)return;var r={},i=t.members;return n.each(i,function(t,n){var i=n.isLocationName?n.name:t;if(Object.prototype.hasOwnProperty.call(e,i)){var a=o(e[i],n);void 0!==a&&(r[t]=a)}}),r}(e,t);case"map":return function(e,t){if(null==e)return;var r={};return n.each(e,function(e,n){var i=o(n,t.value);r[e]=void 0===i?null:i}),r}(e,t);case"list":return function(e,t){if(null==e)return;var r=[];return n.arrayEach(e,function(e){var n=o(e,t.member);void 0===n?r.push(null):r.push(n)}),r}(e,t);default:return function(e,t){return t.toType(e)}(e,t)}}i.prototype.parse=function(e,t){return o(JSON.parse(e),t)},e.exports=i},function(e,t){},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r0&&"none"===t||e.networkError)}(e,this.options.errorPolicy))return{data:{},loading:!1,networkStatus:e.networkStatus,error:new g({graphQLErrors:e.graphQLErrors,networkError:e.networkError})};var t,r=this.queryManager.getCurrentQueryResult(this),i=r.data,o=r.partial,a=!e||e.networkStatus===n.loading,s="network-only"===this.options.fetchPolicy&&a||o&&"cache-only"!==this.options.fetchPolicy,c={data:i,loading:u(t=e?e.networkStatus:s?n.loading:n.ready),networkStatus:t};if(e&&e.graphQLErrors&&"all"===this.options.errorPolicy&&(c.errors=e.graphQLErrors),!o){this.lastResult=v({},c,{stale:!1})}return v({},c,{partial:o})},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastError,this.isTornDown=!1},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;if("cache-only"===t)return Promise.reject(new Error("cache-only fetchPolicy option should not be used together with query refetch."));Object(o.a)(this.variables,e)||(this.variables=Object.assign({},this.variables,e)),Object(o.a)(this.options.variables,this.variables)||(this.options.variables=Object.assign({},this.options.variables,this.variables));var r="network-only"===t||"no-cache"===t,n=v({},this.options,{fetchPolicy:r?t:"network-only"});return this.queryManager.fetchQuery(this.queryId,n,h.refetch).then(function(e){return Object(a.a)(e)})},t.prototype.fetchMore=function(e){var t,r=this;if(!e.updateQuery)throw new Error("updateQuery option is required. This function defines how to update the query data with the new results.");return Promise.resolve().then(function(){var n=r.queryManager.generateQueryId();return(t=e.query?e:v({},r.options,e,{variables:Object.assign({},r.variables,e.variables)})).fetchPolicy="network-only",r.queryManager.fetchQuery(n,t,h.normal,r.queryId)}).then(function(n){return r.updateQuery(function(r){return e.updateQuery(r,{fetchMoreResult:n.data,variables:t.variables})}),n})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(r){e.updateQuery&&t.updateQuery(function(t,n){var i=n.variables;return e.updateQuery(t,{subscriptionData:r,variables:i})})},error:function(t){e.onError?e.onError(t):console.error("Unhandled GraphQL subscription error",t)}});return this.subscriptionHandles.push(r),function(){var e=t.subscriptionHandles.indexOf(r);e>=0&&(t.subscriptionHandles.splice(e,1),r.unsubscribe())}},t.prototype.setOptions=function(e){var t=this.options;this.options=Object.assign({},this.options,e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var r="network-only"!==t.fetchPolicy&&"network-only"===e.fetchPolicy||"cache-only"===t.fetchPolicy&&"cache-only"!==e.fetchPolicy||"standby"===t.fetchPolicy&&"standby"!==e.fetchPolicy||!1;return this.setVariables(this.options.variables,r,e.fetchResults)},t.prototype.setVariables=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),this.isTornDown=!1;var n=e||this.variables;return Object(o.a)(n,this.variables)&&!t?0!==this.observers.length&&r?this.result():new Promise(function(e){return e()}):(this.variables=n,this.options.variables=n,0===this.observers.length?new Promise(function(e){return e()}):this.queryManager.fetchQuery(this.queryId,v({},this.options,{variables:this.variables})).then(function(e){return Object(a.a)(e)}))},t.prototype.updateQuery=function(e){var t=this.queryManager.getQueryWithPreviousResult(this.queryId),r=t.previousResult,n=t.variables,i=t.document,o=Object(s.b)(function(){return e(r,{variables:n})});o&&(this.queryManager.dataStore.markUpdateQueryResult(i,n,o),this.queryManager.broadcastQueries())},t.prototype.stopPolling=function(){this.isCurrentlyPolling&&(this.scheduler.stopPollingQuery(this.queryId),this.options.pollInterval=void 0,this.isCurrentlyPolling=!1)},t.prototype.startPolling=function(e){if("cache-first"===this.options.fetchPolicy||"cache-only"===this.options.fetchPolicy)throw new Error("Queries that specify the cache-first and cache-only fetchPolicies cannot also be polling queries.");this.isCurrentlyPolling&&(this.scheduler.stopPollingQuery(this.queryId),this.isCurrentlyPolling=!1),this.options.pollInterval=e,this.isCurrentlyPolling=!0,this.scheduler.startPollingQuery(this.options,this.queryId)},t.prototype.onSubscribe=function(e){var t=this;return e._subscription&&e._subscription._observer&&!e._subscription._observer.error&&(e._subscription._observer.error=function(e){console.error("Unhandled error",e.message,e.stack)}),this.observers.push(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),1===this.observers.length&&this.setUpQuery(),function(){t.observers=t.observers.filter(function(t){return t!==e}),0===t.observers.length&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this;if(this.shouldSubscribe&&this.queryManager.addObservableQuery(this.queryId,this),this.options.pollInterval){if("cache-first"===this.options.fetchPolicy||"cache-only"===this.options.fetchPolicy)throw new Error("Queries that specify the cache-first and cache-only fetchPolicies cannot also be polling queries.");this.isCurrentlyPolling=!0,this.scheduler.startPollingQuery(this.options,this.queryId)}var t={next:function(t){e.lastResult=t,e.observers.forEach(function(e){return e.next&&e.next(t)})},error:function(t){e.lastError=t,e.observers.forEach(function(e){return e.error&&e.error(t)})}};this.queryManager.startQuery(this.queryId,this.options,this.queryManager.queryListenerForObserver(this.queryId,this.options,t))},t.prototype.tearDownQuery=function(){this.isTornDown=!0,this.isCurrentlyPolling&&(this.scheduler.stopPollingQuery(this.queryId),this.isCurrentlyPolling=!1),this.subscriptionHandles.forEach(function(e){return e.unsubscribe()}),this.subscriptionHandles=[],this.queryManager.removeObservableQuery(this.queryId),this.queryManager.stopQuery(this.queryId),this.observers=[]},t}(d),w=r(74),S=r(65),x=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inFlightRequestObservables=new Map,t.subscribers=new Map,t}return x(t,e),t.prototype.request=function(e,t){var r=this;if(e.getContext().forceFetch)return t(e);var n=e.toKey(),i=function(e){return r.inFlightRequestObservables.delete(e),r.subscribers.get(e)};if(!this.inFlightRequestObservables.get(n)){var o,a=t(e),s=new c.Observable(function(e){var t=r.subscribers.get(n);return t||(t={next:[],error:[],complete:[]}),r.subscribers.set(n,{next:t.next.concat([e.next.bind(e)]),error:t.error.concat([e.error.bind(e)]),complete:t.complete.concat([e.complete.bind(e)])}),o||(o=a.subscribe({next:function(e){var t=i(n);r.subscribers.delete(n),t&&(t.next.forEach(function(t){return t(e)}),t.complete.forEach(function(e){return e()}))},error:function(e){var t=i(n);r.subscribers.delete(n),t&&t.error.forEach(function(t){return t(e)})}})),function(){o&&o.unsubscribe(),r.inFlightRequestObservables.delete(n)}});this.inFlightRequestObservables.set(n,s)}return this.inFlightRequestObservables.get(n)},t}(c.ApolloLink),T=r(68),k=r(67),I=r(75),_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?this.intervalQueries[n].push(e):(this.intervalQueries[n]=[e],this.pollingTimers[n]=setInterval(function(){r.fetchQueriesOnInterval(n)},n))},e.prototype.registerPollingQuery=function(e){if(!e.pollInterval)throw new Error("Attempted to register a non-polling query with the scheduler.");return new b({scheduler:this,options:e})},e}(),N=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,r){this.store[e]={mutationString:t,variables:r||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var r=this.store[e];r&&(r.loading=!1,r.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),A=Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1}).reduce(function(e,r){return e[r]=A({},t.store[r],{networkStatus:n.loading}),e},{})},e}(),R=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=(r||1)&&(o.queryStore.markQueryError(e,t,n),o.invalidate(!0,e,n),o.broadcastQueries()),o.removeFetchQueryPromise(w),new g({networkError:t})});if("cache-and-network"!==p)return x;x.catch(function(){})}return Promise.resolve({data:i})},e.prototype.queryListenerForObserver=function(e,t,r){var n=this,o=!1;return function(s,c){if(n.invalidate(!1,e),s){var l=n.getQuery(e).observableQuery,p=l?l.options.fetchPolicy:t.fetchPolicy;if("standby"!==p){var d=l?l.options.errorPolicy:t.errorPolicy,f=l?l.getLastResult():null,h=l?l.getLastError():null,m=!c&&null!=s.previousVariables||"cache-only"===p||"cache-and-network"===p,y=Boolean(f&&s.networkStatus!==f.networkStatus),v=d&&(h&&h.graphQLErrors)!==s.graphQLErrors&&"none"!==d;if(!u(s.networkStatus)||y&&t.notifyOnNetworkStatusChange||m){if((!d||"none"===d)&&s.graphQLErrors&&s.graphQLErrors.length>0||s.networkError){var b=new g({graphQLErrors:s.graphQLErrors,networkError:s.networkError});if(o=!0,r.error)try{r.error(b)}catch(e){setTimeout(function(){throw e},0)}else setTimeout(function(){throw b},0),Object(S.d)()||console.info("An unhandled error was thrown because no error handler is registered for the query "+Object(i.print)(s.document));return}try{var w=void 0,x=void 0;if(c)n.setQuery(e,function(){return{newData:null}}),w=c.result,x=!c.complete||!1;else if(f&&f.data&&!v)w=f.data,x=!1;else{var E=n.getQuery(e).document,T=n.dataStore.getCache().diff({query:E,variables:s.previousVariables||s.variables,optimistic:!0});w=T.result,x=!T.complete}var k=void 0;if(k=x&&"cache-only"!==p?{data:f&&f.data,loading:u(s.networkStatus),networkStatus:s.networkStatus,stale:!0}:{data:w,loading:u(s.networkStatus),networkStatus:s.networkStatus,stale:!1},"all"===d&&s.graphQLErrors&&s.graphQLErrors.length>0&&(k.errors=s.graphQLErrors),r.next)if(!(f&&k&&f.networkStatus===k.networkStatus&&f.stale===k.stale&&f.data===k.data)||o)try{r.next(Object(a.a)(k))}catch(e){setTimeout(function(){throw e},0)}o=!1}catch(e){return o=!0,void(r.error&&r.error(new g({networkError:e})))}}}}}},e.prototype.watchQuery=function(e,t){if(void 0===t&&(t=!0),"standby"===e.fetchPolicy)throw new Error('client.watchQuery cannot be called with fetchPolicy set to "standby"');var r=Object(k.k)(e.query);if(r.variableDefinitions&&r.variableDefinitions.length){var n=Object(k.c)(r);e.variables=Object(T.a)({},n,e.variables)}void 0===e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var i=R({},e);return new b({scheduler:this.scheduler,options:i,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;if(!e.query)throw new Error("query option is required. You must specify your GraphQL document in the query option.");if("Document"!==e.query.kind)throw new Error('You must wrap the query string in a "gql" tag.');if(e.returnPartialData)throw new Error("returnPartialData option only supported on watchQuery.");if(e.pollInterval)throw new Error("pollInterval option only supported on watchQuery.");var r=this.idCounter;return new Promise(function(n,i){return t.addFetchQueryPromise(r,n,i),t.watchQuery(e,!1).result().then(function(e){t.removeFetchQueryPromise(r),n(e)}).catch(function(e){t.removeFetchQueryPromise(r),i(e)})})},e.prototype.generateQueryId=function(){var e=this.idCounter.toString();return this.idCounter++,e},e.prototype.stopQueryInStore=function(e){this.queryStore.stopQuery(e),this.invalidate(!0,e),this.broadcastQueries()},e.prototype.addQueryListener=function(e,t){this.setQuery(e,function(e){var r=e.listeners;return{listeners:(void 0===r?[]:r).concat([t]),invalidate:!1}})},e.prototype.updateQueryWatch=function(e,t,r){var n=this,i=this.getQuery(e).cancel;i&&i();return this.dataStore.getCache().watch({query:t,variables:r.variables,optimistic:!0,previousResult:function(){var t=null,r=n.getQuery(e).observableQuery;if(r){var i=r.getLastResult();i&&(t=i.data)}return t},callback:function(t){n.setQuery(e,function(){return{invalidated:!0,newData:t}})}})},e.prototype.addFetchQueryPromise=function(e,t,r){this.fetchQueryPromises.set(e.toString(),{resolve:t,reject:r})},e.prototype.removeFetchQueryPromise=function(e){this.fetchQueryPromises.delete(e.toString())},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,function(){return{observableQuery:t}});var r=Object(k.k)(t.options.query);if(r.name&&r.name.value){var n=r.name.value;this.queryIdsByName[n]=this.queryIdsByName[n]||[],this.queryIdsByName[n].push(t.queryId)}},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e),r=t.observableQuery,n=t.cancel;if(n&&n(),r){var i=Object(k.k)(r.options.query),o=i.name?i.name.value:null;this.setQuery(e,function(){return{observableQuery:null}}),o&&(this.queryIdsByName[o]=this.queryIdsByName[o].filter(function(e){return!(r.queryId===e)}))}},e.prototype.clearStore=function(){this.fetchQueryPromises.forEach(function(e){(0,e.reject)(new Error("Store reset while query was in flight(not completed in link chain)"))});var e=[];return this.queries.forEach(function(t,r){t.observableQuery&&e.push(r)}),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then(function(){return e.reFetchObservableQueries()})},e.prototype.getObservableQueryPromises=function(e){var t=this,r=[];return this.queries.forEach(function(n,i){var o=n.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||r.push(o.refetch()),t.setQuery(i,function(){return{newData:null}}),t.invalidate(!0,i)}}),r},e.prototype.reFetchObservableQueries=function(e){var t=this.getObservableQueryPromises(e);return this.broadcastQueries(),Promise.all(t)},e.prototype.startQuery=function(e,t,r){return this.addQueryListener(e,r),this.fetchQuery(e,t).catch(function(){}),e},e.prototype.startGraphQLSubscription=function(e){var t,r=this,n=e.query,i=this.dataStore.getCache().transformDocument(n),o=Object(T.a)({},Object(k.c)(Object(k.h)(n)),e.variables),a=[];return new d(function(e){if(a.push(e),1===a.length){var n={next:function(e){r.dataStore.markSubscriptionResult(e,i,o),r.broadcastQueries(),a.forEach(function(t){t.next&&t.next(e)})},error:function(e){a.forEach(function(t){t.error&&t.error(e)})}},s=r.buildOperationForLink(i,o);t=Object(c.execute)(r.link,s).subscribe(n)}return function(){0===(a=a.filter(function(t){return t!==e})).length&&t&&t.unsubscribe()}})},e.prototype.stopQuery=function(e){this.stopQueryInStore(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.getQuery(e).subscriptions.forEach(function(e){return e.unsubscribe()}),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var r=e.options,n=r.variables,i=r.query,o=e.getLastResult(),s=this.getQuery(e.queryId).newData;if(s)return Object(a.a)({data:s.result,partial:!1});try{var u=this.dataStore.getCache().read({query:i,variables:n,previousResult:o?o.data:void 0,optimistic:t});return Object(a.a)({data:u,partial:!1})}catch(e){return Object(a.a)({data:{},partial:!0})}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"==typeof e){var r=this.getQuery(e).observableQuery;if(!r)throw new Error("ObservableQuery with this id doesn't exist: "+e);t=r}else t=e;var n=t.options,i=n.variables,o=n.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach(function(t,r){t.invalidated&&t.listeners&&t.listeners.filter(function(e){return!!e}).forEach(function(n){n(e.queryStore.get(r),t.newData)})})},e.prototype.fetchRequest=function(e){var t,r,i=this,o=e.requestId,a=e.queryId,s=e.document,u=e.options,l=e.fetchMoreForQueryId,p=u.variables,d=u.context,f=u.errorPolicy,h=void 0===f?"none":f,m=u.fetchPolicy,y=this.buildOperationForLink(s,p,R({},d,{forceFetch:!this.queryDeduplication}));return new Promise(function(e,u){i.addFetchQueryPromise(o,e,u);var d=Object(c.execute)(i.deduplicator,y).subscribe({next:function(e){var n=i.getQuery(a).lastRequestId;if(o>=(n||1)){if("no-cache"!==m)try{i.dataStore.markQueryResult(e,s,p,l,"ignore"===h||"all"===h)}catch(e){return void u(e)}else i.setQuery(a,function(){return{newData:{result:e.data,complete:!0}}});i.queryStore.markQueryResult(a,e,l),i.invalidate(!0,a,l),i.broadcastQueries()}if(e.errors&&"none"===h)u(new g({graphQLErrors:e.errors}));else if("all"===h&&(r=e.errors),l||"no-cache"===m)t=e.data;else try{t=i.dataStore.getCache().read({variables:p,query:s,optimistic:!1})}catch(e){}},error:function(e){i.removeFetchQueryPromise(o),i.setQuery(a,function(e){return{subscriptions:e.subscriptions.filter(function(e){return e!==d})}}),u(e)},complete:function(){i.removeFetchQueryPromise(o),i.setQuery(a,function(e){return{subscriptions:e.subscriptions.filter(function(e){return e!==d})}}),e({data:t,errors:r,loading:!1,networkStatus:n.ready,stale:!1})}});i.setQuery(a,function(e){return{subscriptions:e.subscriptions.concat([d])}})})},e.prototype.refetchQueryByName=function(e){var t=this,r=this.queryIdsByName[e];if(void 0!==r)return Promise.all(r.map(function(e){return t.getQuery(e).observableQuery}).filter(function(e){return!!e}).map(function(e){return e.refetch()}))},e.prototype.generateRequestId=function(){var e=this.idCounter;return this.idCounter++,e},e.prototype.getQuery=function(e){return this.queries.get(e)||R({},L)},e.prototype.setQuery=function(e,t){var r=this.getQuery(e),n=R({},r,t(r));this.queries.set(e,n)},e.prototype.invalidate=function(e,t,r){t&&this.setQuery(t,function(){return{invalidated:e}}),r&&this.setQuery(r,function(){return{invalidated:e}})},e.prototype.buildOperationForLink=function(e,t,r){var n=this.dataStore.getCache();return{query:n.transformForLink?n.transformForLink(e):e,variables:t,operationName:Object(k.j)(e)||void 0,context:R({},r,{cache:n,getCacheKey:function(e){if(n.config)return n.config.dataIdFromObject(e);throw new Error("To use context.getCacheKey, you need to use a cache that has a configurable dataIdFromObject, like apollo-cache-inmemory.")}})}},e}(),q=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,r,n,i){void 0===i&&(i=!1);var o=!Object(s.a)(e);i&&Object(s.a)(e)&&e.data&&(o=!0),!n&&o&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:r})},e.prototype.markSubscriptionResult=function(e,t,r){Object(s.a)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:r})},e.prototype.markMutationInit=function(e){var t=this;if(e.optimisticResponse){var r;r="function"==typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse;this.cache.recordOptimisticTransaction(function(n){var i=t.cache;t.cache=n;try{t.markMutationResult({mutationId:e.mutationId,result:{data:r},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{t.cache=i}},e.mutationId)}},e.prototype.markMutationResult=function(e){var t=this;if(!Object(s.a)(e.result)){var r=[];r.push({result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),e.updateQueries&&Object.keys(e.updateQueries).filter(function(t){return e.updateQueries[t]}).forEach(function(n){var i=e.updateQueries[n],o=i.query,a=i.updater,u=t.cache.diff({query:o.document,variables:o.variables,returnPartialData:!0,optimistic:!1}),c=u.result;if(u.complete){var l=Object(s.b)(function(){return a(c,{mutationResult:e.result,queryName:Object(k.j)(o.document)||void 0,queryVariables:o.variables})});l&&r.push({result:l,dataId:"ROOT_QUERY",query:o.document,variables:o.variables})}}),this.cache.performTransaction(function(e){r.forEach(function(t){return e.write(t)})});var n=e.update;n&&this.cache.performTransaction(function(t){Object(s.b)(function(){return n(t,e.result)})})}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),U=r(442),j=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0,this.queryDeduplication=l,this.ssrMode=o,this.defaultOptions=p||{},s&&setTimeout(function(){return t.disableNetworkFetches=!1},s),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);var d=!Object(S.d)()&&"undefined"!=typeof window&&!window.__APOLLO_CLIENT__;(void 0===u?d:u&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),B||Object(S.d)()||(B=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&void 0===window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__&&window.navigator&&window.navigator.userAgent.indexOf("Chrome")>-1&&console.debug("Download the Apollo DevTools for a better development experience: https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm")),this.version=U.version}return e.prototype.watchQuery=function(e){return this.initQueryManager(),this.defaultOptions.watchQuery&&(e=j({},this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=j({},e,{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){if(this.initQueryManager(),this.defaultOptions.query&&(e=j({},this.defaultOptions.query,e)),"cache-and-network"===e.fetchPolicy)throw new Error("cache-and-network fetchPolicy can only be used with watchQuery");return this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=j({},e,{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.initQueryManager(),this.defaultOptions.mutate&&(e=j({},this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.initQueryManager(),this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e){return this.initProxy().readQuery(e)},e.prototype.readFragment=function(e){return this.initProxy().readFragment(e)},e.prototype.writeQuery=function(e){var t=this.initProxy().writeQuery(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.initProxy().writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.initProxy().writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Object(c.execute)(this.link,e)},e.prototype.initQueryManager=function(){var e=this;this.queryManager||(this.queryManager=new M({link:this.link,store:this.store,queryDeduplication:this.queryDeduplication,ssrMode:this.ssrMode,onBroadcast:function(){e.devToolsHookCb&&e.devToolsHookCb({action:{},state:{queries:e.queryManager.queryStore.getStore(),mutations:e.queryManager.mutationStore.getStore()},dataWithOptimisticResults:e.cache.extract(!0)})}}))},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager?e.queryManager.clearStore():Promise.resolve(null)}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.queryManager&&e.queryManager.reFetchObservableQueries?e.queryManager.reFetchObservableQueries():Promise.resolve(null)})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager?this.queryManager.reFetchObservableQueries(e):Promise.resolve(null)},e.prototype.extract=function(e){return this.initProxy().extract(e)},e.prototype.restore=function(e){return this.initProxy().restore(e)},e.prototype.initProxy=function(){return this.proxy||(this.initQueryManager(),this.proxy=this.cache),this.proxy},e}();r.d(t,"printAST",function(){return i.print}),r.d(t,"ObservableQuery",function(){return b}),r.d(t,"NetworkStatus",function(){return n}),r.d(t,"FetchType",function(){return h}),r.d(t,"ApolloError",function(){return g}),r.d(t,"ApolloClient",function(){return z});t.default=z},function(e,t,r){"use strict";r.r(t);var n=r(77);function i(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||void 0===e||null===e)return null;if(Array.isArray(e))return i(e[0]);var t=[];return Object.keys(e).forEach(function(r){var n={kind:"Field",name:{kind:"Name",value:r}},o=i(e[r]);o&&(n.selectionSet=o),t.push(n)}),{kind:"SelectionSet",selections:t}}var o={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},a=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:Object(n.a)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Object(n.a)(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t=e.id,r=e.data;if(void 0!==t){var n=null;try{n=this.read({rootId:t,optimistic:!1,query:o})}catch(e){}var a=n&&n.__typename||"__ClientData",s=Object.assign({__typename:a},r);this.writeFragment({id:t,fragment:function(e,t){return{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:t||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:i(e)}]}}(s,a),data:s})}else this.writeQuery({query:function(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:i(e)}]}}(r),data:r})},e}(),s=r(74),u=r(65),c=r(76),l=!1,p=function(){function e(){}return e.prototype.ensureReady=function(){return Promise.resolve()},e.prototype.canBypassInit=function(){return!0},e.prototype.match=function(e,t,r){var n=r.store.get(e.id);return!n&&"ROOT_QUERY"===e.id||!!n&&(n.__typename?n.__typename===t||(Object(c.a)("You are using the simple (heuristic) fragment matcher, but your queries contain union or interface types.\n Apollo Client will not be able to able to accurately map fragments.To make this error go away, use the IntrospectionFragmentMatcher as described in the docs: https://www.apollographql.com/docs/react/recipes/fragment-matching.html","error"),r.returnPartialData=!0,!0):(l||(console.warn("You're using fragments in your queries, but either don't have the addTypename:\n true option set in Apollo Client, or you are trying to write a fragment to the store without the __typename.\n Please turn on the addTypename option and include __typename when writing fragments so that Apollo Client\n can accurately match fragments."),console.warn("Could not find __typename on Fragment ",t,n),console.warn("DEPRECATION WARNING: using fragments without __typename is unsupported behavior and will be removed in future versions of Apollo client. You should fix this and set addTypename to true now."),Object(u.e)()||(l=!0)),r.returnPartialData=!0,!0))},e}(),d=function(){function e(e){e&&e.introspectionQueryResultData?(this.possibleTypesMap=this.parseIntrospectionResult(e.introspectionQueryResultData),this.isReady=!0):this.isReady=!1,this.match=this.match.bind(this)}return e.prototype.match=function(e,t,r){if(!this.isReady)throw new Error("FragmentMatcher.match() was called before FragmentMatcher.init()");var n=r.store.get(e.id);if(!n)return!1;if(!n.__typename)throw new Error("Cannot match fragment because __typename property is missing: "+JSON.stringify(n));if(n.__typename===t)return!0;var i=this.possibleTypesMap[t];return!!(i&&i.indexOf(n.__typename)>-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach(function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map(function(e){return e.name}))}),t},e}(),f=r(10),h=r(67),m=r(68),g=r(75),y=r(66),v=function(){function e(e){void 0===e&&(e=Object.create(null)),this.data=e}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){this.data[e]=t},e.prototype.delete=function(e){this.data[e]=void 0},e.prototype.clear=function(){this.data=Object.create(null)},e.prototype.replace=function(e){this.data=e||Object.create(null)},e}();function b(e){return new v(e)}var w=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),S=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0)return!0;r[e].push(t)}else r[e]=[t];return!1}function N(e,t,r){var n=r.fragmentMap,i=r.contextValue,o=r.variableValues,a={};return e.selections.forEach(function(e){if(Object(g.e)(e,o))if(Object(y.c)(e)){var s=function(e,t,r){var n=r.variableValues,i=r.contextValue,o=r.resolver,a=e.name.value,s=Object(y.a)(e,n),u={isLeaf:!e.selectionSet,resultKey:Object(y.i)(e),directives:Object(g.b)(e,n)},c=o(a,t,s,i,u);if(!e.selectionSet)return c;if(null==c)return c;if(Array.isArray(c))return function e(t,r,n){return r.map(function(r){return null===r?null:Array.isArray(r)?e(t,r,n):N(t.selectionSet,r,n)})}(e,c,r);return N(e.selectionSet,c,r)}(e,t,r),u=Object(y.i)(e);void 0!==s&&(void 0===a[u]?a[u]=s:O(a[u],s))}else{var c=void 0;if(Object(y.e)(e))c=e;else if(!(c=n[e.name.value]))throw new Error("No fragment named "+e.name.value);var l=c.typeCondition.name.value;if(r.fragmentMatcher(t,l,i)){var p=N(c.selectionSet,t,r);O(a,p)}}}),r.resultMapper?r.resultMapper(a,t):a}var A=Object.prototype.hasOwnProperty;function O(e,t){null!==t&&"object"==typeof t&&Object.keys(t).forEach(function(r){var n=t[r];A.call(e,r)?O(e[r],n):e[r]=n})}var R=function(e,t,r,n,i,o){void 0===o&&(o={});var a=Object(h.f)(t),s=Object(h.e)(t),u={fragmentMap:Object(h.b)(s),contextValue:n,variableValues:i,resultMapper:o.resultMapper,resolver:e,fragmentMatcher:o.fragmentMatcher||function(){return!0}};return N(a.selectionSet,r,u)},P=r(71),D=Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1})&&r.every(function(r){return function e(t,r){if(t===r)return!0;if(!Array.isArray(t)||!Array.isArray(r)||t.length!==r.length)return!1;return t.every(function(t,n){return e(t,r[n])})}(e[r],t.previousResult[r])}))return t.previousResult}return Object.defineProperty(e,L,{enumerable:!1,configurable:!0,writable:!1,value:t.id}),e}var F=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0){var t=this.optimistic.map(function(e){return e.data});return Object.assign.apply(Object,[{},this.data.toObject()].concat(t))}return this.data.toObject()},t.prototype.read=function(e){return e.rootId&&void 0===this.data.get(e.rootId)?null:M({store:this.config.storeFactory(this.extract(e.optimistic)),query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:this.config.fragmentMatcher.match,previousResult:e.previousResult,config:this.config})},t.prototype.write=function(e){k({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:this.config.fragmentMatcher.match}),this.broadcastWatches()},t.prototype.diff=function(e){return U({store:this.config.storeFactory(this.extract(e.optimistic)),query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:this.config.fragmentMatcher.match,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.push(e),function(){t.watches=t.watches.filter(function(t){return t!==e})}},t.prototype.evict=function(e){throw new Error("eviction is not implemented on InMemory Cache")},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this,r=this.optimistic.filter(function(t){return t.id!==e});this.optimistic=[],r.forEach(function(e){t.recordOptimisticTransaction(e.transaction,e.id)}),this.broadcastWatches()},t.prototype.performTransaction=function(e){var t=this.silenceBroadcast;this.silenceBroadcast=!0,e(this),t||(this.silenceBroadcast=!1),this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){var r=this;this.silenceBroadcast=!0;var n=V(this.extract(!0),function(t){var n=r.data;r.data=t,r.performTransaction(e),r.data=n});this.optimistic.push({id:t,transaction:e,data:n}),this.silenceBroadcast=!1,this.broadcastWatches()},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||this.typenameDocumentCache.set(e,t=Object(s.a)(e)),t}return e},t.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},t.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:this.transformDocument(Object(n.a)(e.fragment,e.fragmentName)),variables:e.variables,rootId:e.id,optimistic:t})},t.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:this.transformDocument(e.query),variables:e.variables})},t.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,query:this.transformDocument(Object(n.a)(e.fragment,e.fragmentName)),variables:e.variables})},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach(function(t){var r=e.diff({query:t.query,variables:t.variables,previousResult:t.previousResult&&t.previousResult(),optimistic:t.optimistic});t.callback(r)})},t}(a);r.d(t,"InMemoryCache",function(){return W}),r.d(t,"defaultDataIdFromObject",function(){return H}),r.d(t,"ID_KEY",function(){return L}),r.d(t,"readQueryFromStore",function(){return M}),r.d(t,"diffQueryAgainstStore",function(){return U}),r.d(t,"assertIdValue",function(){return j}),r.d(t,"WriteError",function(){return x}),r.d(t,"enhanceErrorWithDocument",function(){return E}),r.d(t,"writeQueryToStore",function(){return T}),r.d(t,"writeResultToStore",function(){return k}),r.d(t,"writeSelectionSetToStore",function(){return I}),r.d(t,"HeuristicFragmentMatcher",function(){return p}),r.d(t,"IntrospectionFragmentMatcher",function(){return d}),r.d(t,"ObjectCache",function(){return v}),r.d(t,"defaultNormalizedCacheFactory",function(){return b}),r.d(t,"RecordingCache",function(){return z}),r.d(t,"record",function(){return V})},function(e,t,r){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0){var p=(t=new n.XML.Parser).parse(a.toString(),u);i.update(e.data,p)}}}},function(e,t,r){var n=r(233),i=r(237),o=r(80),a=r(238),s=r(239),u=r(15),c=u.property,l=u.memoizedProperty;e.exports=function(e,t){e=e||{},(t=t||{}).api=this,e.metadata=e.metadata||{},c(this,"isApi",!0,!1),c(this,"apiVersion",e.metadata.apiVersion),c(this,"endpointPrefix",e.metadata.endpointPrefix),c(this,"signingName",e.metadata.signingName),c(this,"globalEndpoint",e.metadata.globalEndpoint),c(this,"signatureVersion",e.metadata.signatureVersion),c(this,"jsonVersion",e.metadata.jsonVersion),c(this,"targetPrefix",e.metadata.targetPrefix),c(this,"protocol",e.metadata.protocol),c(this,"timestampFormat",e.metadata.timestampFormat),c(this,"xmlNamespaceUri",e.metadata.xmlNamespace),c(this,"abbreviation",e.metadata.serviceAbbreviation),c(this,"fullName",e.metadata.serviceFullName),l(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;return t?("ElasticLoadBalancing"===(t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(t="ELB"),t):null}),c(this,"operations",new n(e.operations,t,function(e,r){return new i(e,r,t)},u.string.lowerFirst)),c(this,"shapes",new n(e.shapes,t,function(e,r){return o.create(r,t)})),c(this,"paginators",new n(e.paginators,t,function(e,r){return new a(e,r,t)})),c(this,"waiters",new n(e.waiters,t,function(e,r){return new s(e,r,t)},u.string.lowerFirst)),t.documentation&&(c(this,"documentation",e.documentation),c(this,"documentationUrl",e.documentationUrl))}},function(e,t,r){var n=r(80),i=r(15),o=i.property,a=i.memoizedProperty;e.exports=function(e,t,r){var i=this;r=r||{},o(this,"name",t.name||e),o(this,"api",r.api,!1),t.http=t.http||{},o(this,"httpMethod",t.http.method||"POST"),o(this,"httpPath",t.http.requestUri||"/"),o(this,"authtype",t.authtype||""),a(this,"input",function(){return t.input?n.create(t.input,r):new n.create({type:"structure"},r)}),a(this,"output",function(){return t.output?n.create(t.output,r):new n.create({type:"structure"},r)}),a(this,"errors",function(){var e=[];if(!t.errors)return null;for(var i=0;ithis.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),e&&e(r)}):e&&e()},refresh:function(e){this.expired=!1,e()}}),n.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=n.util.promisifyMethod("get",e),this.prototype.refreshPromise=n.util.promisifyMethod("refresh",e)},n.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},n.util.addPromises(n.Credentials)},function(e,t,r){var n=r(2);n.CredentialProviderChain=n.util.inherit(n.Credentials,{constructor:function(e){this.providers=e||n.CredentialProviderChain.defaultProviders.slice(0)},resolve:function(e){if(0===this.providers.length)return e(new Error("No providers")),this;var t=0,r=this.providers.slice(0);return function n(i,o){if(!i&&o||t===r.length)e(i,o);else{var a=r[t++];(o="function"==typeof a?a.call():a).get?o.get(function(e){n(e,e?null:o)}):n(null,o)}}(),this}}),n.CredentialProviderChain.defaultProviders=[],n.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=n.util.promisifyMethod("resolve",e)},n.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},n.util.addPromises(n.CredentialProviderChain)},function(e,t,r){var n=r(2),i=n.util.inherit;n.Endpoint=i({constructor:function(e,t){if(n.util.hideProperties(this,["slashes","auth","hash","search","query"]),void 0===e||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):this.port="https:"===this.protocol?443:80}}),n.HttpRequest=i({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)):""}}),n.HttpResponse=i({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=i({}),n.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},function(e,t,r){var n=r(2);n.SequentialExecutor=n.util.inherit({constructor:function(){this._events={}},listeners:function(e){return this._events[e]?this._events[e].slice(0):[]},on:function(e,t){return this._events[e]?this._events[e].push(t):this._events[e]=[t],this},onAsync:function(e,t){return t._isAsync=!0,this.on(e,t)},removeListener:function(e,t){var r=this._events[e];if(r){for(var n=r.length,i=-1,o=0;o-1&&r.splice(i,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var n=this.listeners(e),i=n.length;return this.callListeners(n,t,r),i>0},callListeners:function(e,t,r,i){var o=this,a=i||null;function s(i){if(i&&(a=n.util.error(a||new Error,i),o._haltHandlersOnError))return r.call(o,a);o.callListeners(e,t,r,a)}for(;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(o,t.concat([s]));try{u.apply(o,t)}catch(e){a=n.util.error(a||new Error,e)}if(a&&o._haltHandlersOnError)return void r.call(o,a)}r.call(o,a)},addListeners:function(e){var t=this;return e._events&&(e=e._events),n.util.each(e,function(e,r){"function"==typeof r&&(r=[r]),n.util.arrayEach(r,function(r){t.on(e,r)})}),t},addNamedListener:function(e,t,r){return this[e]=r,this.addListener(t,r),this},addNamedAsyncListener:function(e,t,r){return r._isAsync=!0,this.addNamedListener(e,t,r)},addNamedListeners:function(e){var t=this;return e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)}),this}}),n.SequentialExecutor.prototype.addListener=n.SequentialExecutor.prototype.on,e.exports=n.SequentialExecutor},function(e,t,r){var n=r(2),i=n.util.inherit;n.Signers.V3=i(n.Signers.RequestSigner,{addAuthorization:function(e,t){var r=n.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},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(t){e.push(t.toLowerCase())}),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return n.util.arrayEach(this.headersToSign(),function(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())}),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return n.util.each(this.request.headers,function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)}),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"))}}),e.exports=n.Signers.V3},function(e,t,r){var n=r(2),i={},o=[],a="aws4_request";e.exports={createScope:function(e,t,r){return[e.substr(0,8),t,r,a].join("/")},getSigningKey:function(e,t,r,s,u){var c=[n.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),t,r,s].join("_");if((u=!1!==u)&&c in i)return i[c];var l=n.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer"),p=n.util.crypto.hmac(l,r,"buffer"),d=n.util.crypto.hmac(p,s,"buffer"),f=n.util.crypto.hmac(d,a,"buffer");return u&&(i[c]=f,o.push(c),o.length>50&&delete i[o.shift()]),f},emptyCache:function(){i={},o=[]}}},function(e,t,r){(function(t){var r,n=t.crypto||t.msCrypto;if(n&&n.getRandomValues){var i=new Uint8Array(16);r=function(){return n.getRandomValues(i),i}}if(!r){var o=new Array(16);r=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}e.exports=r}).call(this,r(22))},function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,i=r;return i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]}},function(e,t,r){var n=r(2).util.Buffer;e.exports={toBuffer:function(e,t){return"function"==typeof n.from&&n.from!==Uint8Array.from?n.from(e,t):new n(e,t)}}},function(e,t,r){"use strict";(function(e){var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r10}},t.replaceUsingMap=function(e,r){if(void 0===r&&(r={}),!e||!r)return e;var n=r[e];return n?e=n:(Object.keys(e).forEach(function(n){var i=e[n];if(Array.isArray(i))i.forEach(function(e,n){return t.replaceUsingMap(e,r)});else if("object"==typeof i)t.replaceUsingMap(i,r);else{var o=r[i];o&&(e[n]=o)}}),e)};var T=function(e,t,r,n){if(void 0===r&&(r=""),void 0===n&&(n={}),!t)return n;var i=e(t);if(i){var o=i.split(":")[1];n[r]=o}return Object.keys(t).forEach(function(i){var o=t[i];Array.isArray(o)?o.forEach(function(t,o){return T(e,t,r+"."+i+"["+o+"]",n)}):"object"==typeof o&&T(e,o,""+r+(r&&".")+i,n)}),T(e,null,r,n)},k=function(e,t){return function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var r=Object.keys(e),n=Object.keys(t);return r.filter(function(e){return-1!==n.indexOf(e)})}(e,t).reduce(function(r,n){return r[e[n]]=t[n],r},{})}}).call(this,r(55).setImmediate)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(16));t.Source=function e(t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.body=t,this.name=r||"GraphQL request",this.locationOffset=i||{line:1,column:1},this.locationOffset.line>0||(0,n.default)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||(0,n.default)(0,"column in locationOffset is 1-indexed and must be positive")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.locatedError=function(e,t,r){if(e&&e.path)return e;var i=e?e.message||String(e):"An unknown error occurred.";return new n.GraphQLError(i,e&&e.nodes||t,e&&e.source,e&&e.positions,r,e)};var n=r(56)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationContext=void 0,t.validate=function(e,t,r,o){return e||(0,n.default)(0,"Must provide schema"),!t&&(0,n.default)(0,"Must provide document"),!(e instanceof a.GraphQLSchema)&&(0,n.default)(0,"Schema must be an instance of GraphQLSchema. Also ensure that there are not multiple versions of GraphQL installed in your node_modules directory."),function(e,t,r,n){var o=new c(e,r,t),a=n.map(function(e){return e(o)});return(0,i.visit)(r,(0,i.visitWithTypeInfo)(t,(0,i.visitInParallel)(a))),o.getErrors()}(e,o||new s.TypeInfo(e),t,r||u.specifiedRules)};var n=function(e){return e&&e.__esModule?e:{default:e}}(r(16)),i=(r(7),r(79)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(17)),a=r(35),s=r(156),u=r(253);var c=t.ValidationContext=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._schema=t,this._ast=r,this._typeInfo=n,this._errors=[],this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}return e.prototype.reportError=function(e){this._errors.push(e)},e.prototype.getErrors=function(){return this._errors},e.prototype.getSchema=function(){return this._schema},e.prototype.getDocument=function(){return this._ast},e.prototype.getFragment=function(e){var t=this._fragments;return t||(this._fragments=t=this.getDocument().definitions.reduce(function(e,t){return t.kind===o.FRAGMENT_DEFINITION&&(e[t.name.value]=t),e},Object.create(null))),t[e]},e.prototype.getFragmentSpreads=function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var r=[e];0!==r.length;)for(var n=r.pop(),i=0;i1&&e.reportError(new n.GraphQLError("This anonymous operation must be the only defined operation.",[r]))}}};var n=r(7),i=r(17);function o(){return"This anonymous operation must be the only defined operation."}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.singleFieldOnlyMessage=i,t.SingleFieldSubscriptions=function(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new n.GraphQLError(i(t.name&&t.name.value),t.selectionSet.selections.slice(1)))}}};var n=r(7);function i(e){return(e?'Subscription "'+e+'" ':"Anonymous Subscription ")+"must select only one top level field."}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unknownTypeMessage=s,t.KnownTypeNames=function(e){return{ObjectTypeDefinition:function(){return!1},InterfaceTypeDefinition:function(){return!1},UnionTypeDefinition:function(){return!1},InputObjectTypeDefinition:function(){return!1},NamedType:function(t){var r=e.getSchema(),o=t.name.value,a=r.getType(o);a||e.reportError(new n.GraphQLError(s(o,(0,i.default)(o,Object.keys(r.getTypeMap()))),[t]))}}};var n=r(7),i=a(r(157)),o=a(r(158));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var r='Unknown type "'+String(e)+'".';return t.length&&(r+=" Did you mean "+(0,o.default)(t)+"?"),r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inlineFragmentOnNonCompositeErrorMessage=s,t.fragmentOnNonCompositeErrorMessage=u,t.FragmentsOnCompositeTypes=function(e){return{InlineFragment:function(t){if(t.typeCondition){var r=(0,a.typeFromAST)(e.getSchema(),t.typeCondition);r&&!(0,o.isCompositeType)(r)&&e.reportError(new n.GraphQLError(s((0,i.print)(t.typeCondition)),[t.typeCondition]))}},FragmentDefinition:function(t){var r=(0,a.typeFromAST)(e.getSchema(),t.typeCondition);r&&!(0,o.isCompositeType)(r)&&e.reportError(new n.GraphQLError(u(t.name.value,(0,i.print)(t.typeCondition)),[t.typeCondition]))}}};var n=r(7),i=r(10),o=r(9),a=r(37);function s(e){return'Fragment cannot condition on non composite type "'+String(e)+'".'}function u(e,t){return'Fragment "'+e+'" cannot condition on non composite type "'+String(t)+'".'}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nonInputTypeOnVarMessage=s,t.VariablesAreInputTypes=function(e){return{VariableDefinition:function(t){var r=(0,a.typeFromAST)(e.getSchema(),t.type);if(r&&!(0,o.isInputType)(r)){var u=t.variable.name.value;e.reportError(new n.GraphQLError(s(u,(0,i.print)(t.type)),[t.type]))}}}};var n=r(7),i=r(10),o=r(9),a=r(37);function s(e,t){return'Variable "$'+e+'" cannot be non-input type "'+t+'".'}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noSubselectionAllowedMessage=o,t.requiredSubselectionMessage=a,t.ScalarLeafs=function(e){return{Field:function(t){var r=e.getType();r&&((0,i.isLeafType)((0,i.getNamedType)(r))?t.selectionSet&&e.reportError(new n.GraphQLError(o(t.name.value,r),[t.selectionSet])):t.selectionSet||e.reportError(new n.GraphQLError(a(t.name.value,r),[t])))}}};var n=r(7),i=r(9);function o(e,t){return'Field "'+e+'" must not have a selection since type "'+String(t)+'" has no subfields.'}function a(e,t){return'Field "'+e+'" of type "'+String(t)+'" must have a selection of subfields. Did you mean "'+e+' { ... }"?'}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.undefinedFieldMessage=u,t.FieldsOnCorrectType=function(e){return{Field:function(t){var r=e.getParentType();if(r){var o=e.getFieldDef();if(!o){var s=e.getSchema(),c=t.name.value,l=function(e,t,r){if((0,a.isAbstractType)(t)){var n=[],i=Object.create(null);e.getPossibleTypes(t).forEach(function(e){e.getFields()[r]&&(n.push(e.name),e.getInterfaces().forEach(function(e){e.getFields()[r]&&(i[e.name]=(i[e.name]||0)+1)}))});var o=Object.keys(i).sort(function(e,t){return i[t]-i[e]});return o.concat(n)}return[]}(s,r,c),p=0!==l.length?[]:function(e,t,r){if(t instanceof a.GraphQLObjectType||t instanceof a.GraphQLInterfaceType){var n=Object.keys(t.getFields());return(0,i.default)(r,n)}return[]}(0,r,c);e.reportError(new n.GraphQLError(u(c,r.name,l,p),[t]))}}}}};var n=r(7),i=s(r(157)),o=s(r(158)),a=r(9);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,r,n){var i='Cannot query field "'+e+'" on type "'+t+'".';0!==r.length?i+=" Did you mean to use an inline fragment on "+(0,o.default)(r)+"?":0!==n.length&&(i+=" Did you mean "+(0,o.default)(n)+"?");return i}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateFragmentNameMessage=i,t.UniqueFragmentNames=function(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(r){var o=r.name.value;return t[o]?e.reportError(new n.GraphQLError(i(o),[t[o],r.name])):t[o]=r.name,!1}}};var n=r(7);function i(e){return'There can be only one fragment named "'+e+'".'}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unknownFragmentMessage=i,t.KnownFragmentNames=function(e){return{FragmentSpread:function(t){var r=t.name.value,o=e.getFragment(r);o||e.reportError(new n.GraphQLError(i(r),[t.name]))}}};var n=r(7);function i(e){return'Unknown fragment "'+e+'".'}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unusedFragMessage=i,t.NoUnusedFragments=function(e){var t=[],r=[];return{OperationDefinition:function(e){return t.push(e),!1},FragmentDefinition:function(e){return r.push(e),!1},Document:{leave:function(){var o=Object.create(null);t.forEach(function(t){e.getRecursivelyReferencedFragments(t).forEach(function(e){o[e.name.value]=!0})}),r.forEach(function(t){var r=t.name.value;!0!==o[r]&&e.reportError(new n.GraphQLError(i(r),[t]))})}}}};var n=r(7);function i(e){return'Fragment "'+e+'" is never used.'}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeIncompatibleSpreadMessage=s,t.typeIncompatibleAnonSpreadMessage=u,t.PossibleFragmentSpreads=function(e){return{InlineFragment:function(t){var r=e.getType(),o=e.getParentType();(0,a.isCompositeType)(r)&&(0,a.isCompositeType)(o)&&!(0,i.doTypesOverlap)(e.getSchema(),r,o)&&e.reportError(new n.GraphQLError(u(o,r),[t]))},FragmentSpread:function(t){var r=t.name.value,a=function(e,t){var r=e.getFragment(t);return r&&(0,o.typeFromAST)(e.getSchema(),r.typeCondition)}(e,r),u=e.getParentType();a&&u&&!(0,i.doTypesOverlap)(e.getSchema(),a,u)&&e.reportError(new n.GraphQLError(s(r,u,a),[t]))}}};var n=r(7),i=r(109),o=r(37),a=r(9);function s(e,t,r){return'Fragment "'+e+'" cannot be spread here as objects of type "'+String(t)+'" can never be of type "'+String(r)+'".'}function u(e,t){return'Fragment cannot be spread here as objects of type "'+String(e)+'" can never be of type "'+String(t)+'".'}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cycleErrorMessage=i,t.NoFragmentCycles=function(e){var t=Object.create(null),r=[],o=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(a){return t[a.name.value]||function a(s){var u=s.name.value;t[u]=!0;var c=e.getFragmentSpreads(s.selectionSet);if(0===c.length)return;o[u]=r.length;for(var l=0;l0&&e.reportError(new n.GraphQLError(a(t.name.value,r.type,(0,i.print)(t.value),s),[t.value]))}return!1}}};var n=r(7),i=r(10),o=r(110);function a(e,t,r,n){return'Argument "'+e+'" has invalid value '+r+"."+(n?"\n"+n.join("\n"):"")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.missingFieldArgMessage=a,t.missingDirectiveArgMessage=s,t.ProvidedNonNullArguments=function(e){return{Field:{leave:function(t){var r=e.getFieldDef();if(!r)return!1;var s=t.arguments||[],u=(0,i.default)(s,function(e){return e.name.value});r.args.forEach(function(r){var i=u[r.name];!i&&r.type instanceof o.GraphQLNonNull&&e.reportError(new n.GraphQLError(a(t.name.value,r.name,r.type),[t]))})}},Directive:{leave:function(t){var r=e.getDirective();if(!r)return!1;var a=t.arguments||[],u=(0,i.default)(a,function(e){return e.name.value});r.args.forEach(function(r){var i=u[r.name];!i&&r.type instanceof o.GraphQLNonNull&&e.reportError(new n.GraphQLError(s(t.name.value,r.name,r.type),[t]))})}}}};var n=r(7),i=function(e){return e&&e.__esModule?e:{default:e}}(r(58)),o=r(9);function a(e,t,r){return'Field "'+e+'" argument "'+t+'" of type "'+String(r)+'" is required but not provided.'}function s(e,t,r){return'Directive "@'+e+'" argument "'+t+'" of type "'+String(r)+'" is required but not provided.'}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultForNonNullArgMessage=s,t.badValueForDefaultArgMessage=u,t.DefaultValuesOfCorrectType=function(e){return{VariableDefinition:function(t){var r=t.variable.name.value,c=t.defaultValue,l=e.getInputType();if(l instanceof o.GraphQLNonNull&&c&&e.reportError(new n.GraphQLError(s(r,l,l.ofType),[c])),l&&c){var p=(0,a.isValidLiteralValue)(l,c);p&&p.length>0&&e.reportError(new n.GraphQLError(u(r,l,(0,i.print)(c),p),[c]))}return!1},SelectionSet:function(){return!1},FragmentDefinition:function(){return!1}}};var n=r(7),i=r(10),o=r(9),a=r(110);function s(e,t,r){return'Variable "$'+e+'" of type "'+String(t)+'" is required and will not use the default value. Perhaps you meant to use type "'+String(r)+'".'}function u(e,t,r,n){var i=n?"\n"+n.join("\n"):"";return'Variable "$'+e+'" of type "'+String(t)+'" has invalid default value '+r+"."+i}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.badVarPosMessage=s,t.VariablesInAllowedPosition=function(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(r){var u=e.getRecursiveVariableUsages(r);u.forEach(function(r){var u=r.node,c=r.type,l=u.name.value,p=t[l];if(p&&c){var d=e.getSchema(),f=(0,a.typeFromAST)(d,p.type);f&&!(0,o.isTypeSubTypeOf)(d,function(e,t){return!t.defaultValue||e instanceof i.GraphQLNonNull?e:new i.GraphQLNonNull(e)}(f,p),c)&&e.reportError(new n.GraphQLError(s(l,f,c),[p,u]))}})}},VariableDefinition:function(e){t[e.variable.name.value]=e}}};var n=r(7),i=r(9),o=r(109),a=r(37);function s(e,t,r){return'Variable "$'+e+'" of type "'+String(t)+'" used in position expecting type "'+String(r)+'".'}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fieldsConflictMessage=c,t.OverlappingFieldsCanBeMerged=function(e){var t=new g,r=new Map;return{SelectionSet:function(i){var o=function(e,t,r,n,i){var o=[],a=h(e,t,n,i),s=a[0],u=a[1];!function(e,t,r,n,i){Object.keys(i).forEach(function(o){var a=i[o];if(a.length>1)for(var s=0;s0)return[[t,e.map(function(e){var t=e[0];return t})],e.reduce(function(e,t){var r=t[1];return e.concat(r)},[r]),e.reduce(function(e,t){var r=t[2];return e.concat(r)},[n])]}(function(e,t,r,n,i,o,a,s){var u=[],c=h(e,t,i,o),f=c[0],m=c[1],g=h(e,t,a,s),y=g[0],v=g[1];d(e,u,t,r,n,f,y);for(var b=0;bdocument.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[o[n]];return u()};e.exports=Object.create||function(e,t){var r;return null!==e?(s.prototype=n(e),r=new s,s.prototype=null,r[a]=e):r=u(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(51),i=r(59),o=r(563)(!1),a=r(168)("IE_PROTO");e.exports=function(e,t){var r,s=i(e),u=0,c=[];for(r in s)r!=a&&n(s,r)&&c.push(r);for(;t.length>u;)n(s,r=t[u++])&&(~o(c,r)||c.push(r));return c}},function(e,t,r){var n=r(91);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t,r){var n=r(26).document;e.exports=n&&n.documentElement},function(e,t,r){r(566);for(var n=r(26),i=r(48),o=r(90),a=r(27)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;ur;)t.push(arguments[r++]);return y[++g]=function(){s("function"==typeof e?e:Function(e),t)},n(g),g},f=function(e){delete y[e]},"process"==r(91)(p)?n=function(e){p.nextTick(a(v,e,1))}:m&&m.now?n=function(e){m.now(a(v,e,1))}:h?(o=(i=new h).port2,i.port1.onmessage=b,n=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):n="onreadystatechange"in c("script")?function(e){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),e.exports={set:d,clear:f}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){var n=r(42),i=r(49),o=r(176);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){var n=r(27)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},e(o)}catch(e){}return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(602)),i=f(r(603)),o=f(r(303)),a=f(r(604)),s=f(r(605)),u=f(r(606)),c=f(r(607)),l=f(r(608)),p=f(r(609)),d=f(r(610));function f(e){return e&&e.__esModule?e:{default:e}}t.default={rehydrate:!0,persist:n.default,detectNetwork:i.default,effect:o.default,retry:a.default,discard:s.default,defaultCommit:u.default,defaultRollback:c.default,persistAutoRehydrate:l.default,offlineStateLens:p.default,queue:d.default,returnPromises:!1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(92)),i=o(r(304));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){this.name="NetworkError",this.status=t,this.response=e}t.NetworkError=a,a.prototype=Error.prototype;var s=function(e){if(!e)return null;try{return JSON.parse(e)}catch(t){throw new Error("Failed to parse unexpected JSON response: "+e)}},u=function(e){var t=e.headers.get("content-type")||!1;return t&&t.indexOf("json")>=0?e.text().then(s):e.text()};t.default=function(e,t){var r=e.url,o=(0,i.default)(e,["url"]),s=(0,n.default)({"content-type":"application/json"},o.headers);return fetch(r,(0,n.default)({},o,{headers:s})).then(function(e){return e.ok?u(e):u(e).then(function(t){throw new a(t||"",e.status)})})}},function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}},function(e,t,r){e.exports={default:r(612),__esModule:!0}},function(e,t){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);e.exports=function(){return r(n),n}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,i=r;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}},function(e,t){e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r0){var l=(t=new n.XML.Parser).parse(a.toString(),s);i.update(e.data,l)}}}},function(e,t,r){var n=r(322),i=r(121),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];o.call(e,t)&&i(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},function(e,t,r){var n=r(312);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},function(e,t,r){var n=r(321),i=r(322);e.exports=function(e,t,r,o){var a=!r;r||(r={});for(var s=-1,u=t.length;++s",d&&(f+=l);else if(d&&1===this.children.length&&null!=this.children[0].value)f+=">",f+=this.children[0].value,f+="",f+=l;else{for(f+=">",d&&(f+=l),i=0,s=(b=this.children).length;i",d&&(f+=l)}return f},r.prototype.att=function(e,t){return this.attribute(e,t)},r.prototype.ins=function(e,t){return this.instruction(e,t)},r.prototype.a=function(e,t){return this.attribute(e,t)},r.prototype.i=function(e,t){return this.instruction(e,t)},r}()}).call(this)},function(e,t,r){var n=r(124),i=r(688),o=r(689),a=r(690),s=r(691),u=r(692);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},function(e,t,r){var n=r(705),i=r(60);e.exports=function e(t,r,o,a,s){return t===r||(null==t||null==r||!i(t)&&!i(r)?t!=t&&r!=r:n(t,r,o,a,e,s))}},function(e,t,r){var n=r(706),i=r(709),o=r(710),a=1,s=2;e.exports=function(e,t,r,u,c,l){var p=r&a,d=e.length,f=t.length;if(d!=f&&!(p&&f>d))return!1;var h=l.get(e);if(h&&l.get(t))return h==t;var m=-1,g=!0,y=r&s?new n:void 0;for(l.set(e,t),l.set(t,e);++m",o&&(a+=n),a},r}()}).call(this)},function(e,t,r){(function(){var t,n,i={}.hasOwnProperty;n=r(0),t=r(61),e.exports=function(e){function r(e,t){if(r.__super__.constructor.call(this,e),null==t)throw new Error("Missing comment text");this.text=this.stringify.comment(t)}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype.clone=function(){return n(r.prototype,this)},r.prototype.toString=function(e,t){var r,n,i,o,a,s,u,c,l;return o=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",i=null!=(u=null!=e?e.offset:void 0)?u:0,n=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),l=new Array(t+i+1).join(r),a="",o&&(a+=l),a+="\x3c!-- "+this.text+" --\x3e",o&&(a+=n),a},r}()}).call(this)},function(e,t,r){(function(){var t,n,i,o,a,s,u,c;r(0),c=r(12),t=r(337),n=r(338),i=r(737),a=r(738),o=r(739),s=r(740),u=r(336),e.exports=function(){function e(e,t,r){var n,i;this.documentObject=e,this.stringify=this.documentObject.stringify,this.children=[],c(t)&&(t=(n=t).pubID,r=n.sysID),null==r&&(r=(i=[t,r])[0],t=i[1]),null!=t&&(this.pubID=this.stringify.dtdPubID(t)),null!=r&&(this.sysID=this.stringify.dtdSysID(r))}return e.prototype.element=function(e,t){var r;return r=new o(this,e,t),this.children.push(r),this},e.prototype.attList=function(e,t,r,n,o){var a;return a=new i(this,e,t,r,n,o),this.children.push(a),this},e.prototype.entity=function(e,t){var r;return r=new a(this,!1,e,t),this.children.push(r),this},e.prototype.pEntity=function(e,t){var r;return r=new a(this,!0,e,t),this.children.push(r),this},e.prototype.notation=function(e,t){var r;return r=new s(this,e,t),this.children.push(r),this},e.prototype.cdata=function(e){var r;return r=new t(this,e),this.children.push(r),this},e.prototype.comment=function(e){var t;return t=new n(this,e),this.children.push(t),this},e.prototype.instruction=function(e,t){var r;return r=new u(this,e,t),this.children.push(r),this},e.prototype.root=function(){return this.documentObject.root()},e.prototype.document=function(){return this.documentObject},e.prototype.toString=function(e,t){var r,n,i,o,a,s,u,c,l,p,d,f;if(s=(null!=e?e.pretty:void 0)||!1,n=null!=(c=null!=e?e.indent:void 0)?c:" ",a=null!=(l=null!=e?e.offset:void 0)?l:0,o=null!=(p=null!=e?e.newline:void 0)?p:"\n",t||(t=0),f=new Array(t+a+1).join(n),u="",s&&(u+=f),u+="0){for(u+=" [",s&&(u+=o),r=0,i=(d=this.children).length;rthis.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),e&&e(r)}):e&&e()},refresh:function(e){this.expired=!1,e()}}),n.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=n.util.promisifyMethod("get",e),this.prototype.refreshPromise=n.util.promisifyMethod("refresh",e)},n.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},n.util.addPromises(n.Credentials)},function(e,t,r){var n=r(5);n.CredentialProviderChain=n.util.inherit(n.Credentials,{constructor:function(e){this.providers=e||n.CredentialProviderChain.defaultProviders.slice(0)},resolve:function(e){if(0===this.providers.length)return e(new Error("No providers")),this;var t=0,r=this.providers.slice(0);return function n(i,o){if(!i&&o||t===r.length)e(i,o);else{var a=r[t++];(o="function"==typeof a?a.call():a).get?o.get(function(e){n(e,e?null:o)}):n(null,o)}}(),this}}),n.CredentialProviderChain.defaultProviders=[],n.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=n.util.promisifyMethod("resolve",e)},n.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},n.util.addPromises(n.CredentialProviderChain)},function(e,t,r){var n=r(5),i=n.util.inherit;n.Endpoint=i({constructor:function(e,t){if(n.util.hideProperties(this,["slashes","auth","hash","search","query"]),void 0===e||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):this.port="https:"===this.protocol?443:80}}),n.HttpRequest=i({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)):""}}),n.HttpResponse=i({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=i({}),n.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},function(e,t,r){var n=r(5);n.SequentialExecutor=n.util.inherit({constructor:function(){this._events={}},listeners:function(e){return this._events[e]?this._events[e].slice(0):[]},on:function(e,t){return this._events[e]?this._events[e].push(t):this._events[e]=[t],this},onAsync:function(e,t){return t._isAsync=!0,this.on(e,t)},removeListener:function(e,t){var r=this._events[e];if(r){for(var n=r.length,i=-1,o=0;o-1&&r.splice(i,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var n=this.listeners(e),i=n.length;return this.callListeners(n,t,r),i>0},callListeners:function(e,t,r,i){var o=this,a=i||null;function s(i){if(i&&(a=n.util.error(a||new Error,i),o._haltHandlersOnError))return r.call(o,a);o.callListeners(e,t,r,a)}for(;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(o,t.concat([s]));try{u.apply(o,t)}catch(e){a=n.util.error(a||new Error,e)}if(a&&o._haltHandlersOnError)return void r.call(o,a)}r.call(o,a)},addListeners:function(e){var t=this;return e._events&&(e=e._events),n.util.each(e,function(e,r){"function"==typeof r&&(r=[r]),n.util.arrayEach(r,function(r){t.on(e,r)})}),t},addNamedListener:function(e,t,r){return this[e]=r,this.addListener(t,r),this},addNamedAsyncListener:function(e,t,r){return r._isAsync=!0,this.addNamedListener(e,t,r)},addNamedListeners:function(e){var t=this;return e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)}),this}}),n.SequentialExecutor.prototype.addListener=n.SequentialExecutor.prototype.on,e.exports=n.SequentialExecutor},function(e,t,r){var n=r(5),i=n.util.inherit;n.Signers.V3=i(n.Signers.RequestSigner,{addAuthorization:function(e,t){var r=n.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},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(t){e.push(t.toLowerCase())}),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return n.util.arrayEach(this.headersToSign(),function(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())}),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return n.util.each(this.request.headers,function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)}),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"))}}),e.exports=n.Signers.V3},function(e,t,r){(function(t){var r,n=t.crypto||t.msCrypto;if(n&&n.getRandomValues){var i=new Uint8Array(16);r=function(){return n.getRandomValues(i),i}}if(!r){var o=new Array(16);r=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}e.exports=r}).call(this,r(22))},function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,i=r;return i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=new(r(29).ConsoleLogger)("Hub"),i=function(){function e(e){this.bus=[],this.listeners={},this.name=e}return e.createHub=function(t){return new e(t)},e.prototype.dispatch=function(e,t,r){void 0===r&&(r="");var i={channel:e,payload:Object.assign({},t),source:r};try{this.bus.push(i),this.toListeners(i)}catch(e){n.warn("Hub dispatch error",e)}},e.prototype.listen=function(e,t,r){void 0===r&&(r="noname"),n.debug(r+" listening "+e);var i=this.listeners[e];i||(i=[],this.listeners[e]=i),i.push({name:r,listener:t})},e.prototype.toListeners=function(e){var t=e.channel,r=(e.payload,e.source,this.listeners[t]);r&&(r.forEach(function(r){try{r.listener.onHubCapsule(e)}catch(e){n.warn("error dispatching "+t+" event to "+r.name)}}),this.bus.pop())},e}();t.HubClass=i;var o=new i("__default__");t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=[{type:"text/plain",ext:"txt"},{type:"text/html",ext:"html"},{type:"text/javascript",ext:"js"},{type:"text/css",ext:"css"},{type:"text/csv",ext:"csv"},{type:"text/yaml",ext:"yml"},{type:"text/yaml",ext:"yaml"},{type:"text/calendar",ext:"ics"},{type:"text/calendar",ext:"ical"},{type:"image/png",ext:"png"},{type:"image/gif",ext:"gif"},{type:"image/jpeg",ext:"jpg"},{type:"image/jpeg",ext:"jpeg"},{type:"image/bmp",ext:"bmp"},{type:"image/x-icon",ext:"ico"},{type:"image/tiff",ext:"tif"},{type:"image/tiff",ext:"tiff"},{type:"image/svg+xml",ext:"svg"},{type:"application/json",ext:"json"},{type:"application/xml",ext:"xml"},{type:"application/x-sh",ext:"sh"},{type:"application/zip",ext:"zip"},{type:"application/x-rar-compressed",ext:"rar"},{type:"application/x-tar",ext:"tar"},{type:"application/x-bzip",ext:"bz"},{type:"application/x-bzip2",ext:"bz2"},{type:"application/pdf",ext:"pdf"},{type:"application/java-archive",ext:"jar"},{type:"application/msword",ext:"doc"},{type:"application/vnd.ms-excel",ext:"xls"},{type:"application/vnd.ms-excel",ext:"xlsx"},{type:"message/rfc822",ext:"eml"}],i=function(){function e(){}return e.isEmpty=function(e){return 0===Object.keys(e).length},e.sortByField=function(e,t,r){if(!e||!e.sort)return!1;var n=r&&"desc"===r?-1:1;return e.sort(function(e,r){var i=e[t],o=r[t];return void 0===o?void 0===i?0:1*n:void 0===i?-1*n:io?1*n:0}),!0},e.objectLessAttributes=function(e,t){var r=Object.assign({},e);return t&&("string"==typeof t?delete r[t]:t.forEach(function(e){delete r[e]})),r},e.filenameToContentType=function(e,t){void 0===t&&(t="application/octet-stream");var r=e.toLowerCase(),i=n.filter(function(e){return r.endsWith("."+e.ext)});return i.length>0?i[0].type:t},e.isTextFile=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},e.generateRandomString=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",r=32;r>0;r-=1)e+=t[Math.floor(Math.random()*t.length)];return e},e.makeQuerablePromise=function(e){if(e.isResolved)return e;var t=!0,r=!1,n=!1,i=e.then(function(e){return n=!0,t=!1,e},function(e){throw r=!0,t=!1,e});return i.isFullfilled=function(){return n},i.isPending=function(){return t},i.isRejected=function(){return r},i},e}();t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(792),i=r(793),o=new n.default;t.GoogleOAuth=o;var a=new i.default;t.FacebookOAuth=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={userAgent:"aws-amplify/0.4.x js",product:"",navigator:null,isReactNative:!1};if("undefined"!=typeof navigator&&navigator.product)switch(n.product=navigator.product||"",n.navigator=navigator||null,navigator.product){case"ReactNative":n.userAgent="aws-amplify/0.4.x react-native",n.isReactNative=!0;break;default:n.userAgent="aws-amplify/0.4.x js",n.isReactNative=!1}t.default=n},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((n=n.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0?(l.debug("resending event "+e.eventName+" with "+e.resendLimits+" retry times left"),e.resendLimits-=1,this._putToBuffer(e)):l.debug("retry times used up for event "+e.eventName)),[2]}})})},e.prototype.getCategory=function(){return e.category},e.prototype.getProviderName=function(){return e.providerName},e.prototype.configure=function(e){l.debug("configure Analytics",e);var t=e||{};return this._config=Object.assign({},this._config,t),this._setupTimer(),this._config},e.prototype.record=function(e){return n(this,void 0,void 0,function(){var t,r;return i(this,function(n){switch(n.label){case 0:return[4,this._getCredentials()];case 1:return(t=n.sent())?(r=(new Date).getTime(),Object.assign(e,{timestamp:r,config:this._config,credentials:t}),[2,this._putToBuffer(e)]):[2,Promise.resolve(!1)]}})})},e.prototype._startSession=function(e){return n(this,void 0,void 0,function(){var t,r,n,o,a,s,u=this;return i(this,function(i){return t=e.timestamp,r=e.config,n=e.credentials,this._initClients(r,n),l.debug("record session start"),this._sessionId=c.v1(),o=this._sessionId,a=this._generateClientContext(r),s={clientContext:a,events:[{eventType:"_session.start",timestamp:new Date(t).toISOString(),session:{id:o,startTimestamp:new Date(t).toISOString()}}]},[2,new Promise(function(e,t){u.mobileAnalytics.putEvents(s,function(t,r){t?(l.debug("record event failed. ",t),e(!1)):(l.debug("record event success. ",r),e(!0))})})]})})},e.prototype._stopSession=function(e){return n(this,void 0,void 0,function(){var t,r,n,o,a,s,u=this;return i(this,function(i){return t=e.timestamp,r=e.config,n=e.credentials,this._initClients(r,n),l.debug("record session stop"),o=this._sessionId?this._sessionId:c.v1(),a=this._generateClientContext(r),s={clientContext:a,events:[{eventType:"_session.stop",timestamp:new Date(t).toISOString(),session:{id:o,startTimestamp:new Date(t).toISOString()}}]},[2,new Promise(function(e,t){u.mobileAnalytics.putEvents(s,function(t,r){t?(l.debug("record event failed. ",t),e(!1)):(l.debug("record event success. ",r),e(!0))})})]})})},e.prototype._updateEndpoint=function(e){return n(this,void 0,void 0,function(){var t,r,n,o,a,s,u,c;return i(this,function(i){return e.timestamp,t=e.config,r=e.credentials,n=e.event,o=t.appId,t.region,a=t.endpointId,this._initClients(t,r),s=this._endpointRequest(t,n),u={ApplicationId:o,EndpointId:a,EndpointRequest:s},c=this,l.debug("updateEndpoint with params: ",u),[2,new Promise(function(e,t){c.pinpointClient.updateEndpoint(u,function(t,r){t?(l.debug("updateEndpoint failed",t),e(!1)):(l.debug("updateEndpoint success",r),e(!0))})})]})})},e.prototype._recordCustomEvent=function(e){return n(this,void 0,void 0,function(){var t,r,n,o,a,s,u,c,p,d=this;return i(this,function(i){return t=e.event,r=e.timestamp,n=e.config,o=e.credentials,a=t.name,s=t.attributes,u=t.metrics,this._initClients(n,o),c=this._generateClientContext(n),p={clientContext:c,events:[{eventType:a,timestamp:new Date(r).toISOString(),attributes:s,metrics:u}]},l.debug("record event with params",p),[2,new Promise(function(e,t){d.mobileAnalytics.putEvents(p,function(t,r){t?(l.debug("record event failed. ",t),e(!1)):(l.debug("record event success. ",r),e(!0))})})]})})},e.prototype._initClients=function(e,t){return n(this,void 0,void 0,function(){var r;return i(this,function(n){return l.debug("init clients"),this.mobileAnalytics&&this.pinpointClient&&this._config.credentials&&this._config.credentials.sessionToken===t.sessionToken&&this._config.credentials.identityId===t.identityId?(l.debug("no change for aws credentials, directly return from init"),[2]):(this._config.credentials=t,r=e.region,l.debug("init clients with credentials",t),this.mobileAnalytics=new a({credentials:t,region:r}),this.pinpointClient=new s({region:r,credentials:t}),[2])})})},e.prototype._getEndpointId=function(e){return n(this,void 0,void 0,function(){var t;return i(this,function(r){switch(r.label){case 0:return[4,u.default.getItem(e)];case 1:return t=r.sent(),l.debug("endpointId from cache",t,"type",typeof t),t||(t=c.v1(),u.default.setItem(e,t)),[2,t]}})})},e.prototype._endpointRequest=function(e,t){var r=e.credentials,n=this._clientInfo,i=t.Address,o=t.RequestId,a=t.Attributes,s=t.UserAttributes,u=t.UserId,c=t.OptOut;return{Address:i,Attributes:a,ChannelType:i?"android"===n.platform?"GCM":"APNS":void 0,Demographic:{AppVersion:t.appVersion||n.appVersion,Make:n.make,Model:n.model,ModelVersion:n.version,Platform:n.platform},OptOut:c,RequestId:o,EffectiveDate:i?(new Date).toISOString():void 0,User:{UserId:u||r.identityId,UserAttributes:s}}},e.prototype._generateClientContext=function(e){var t=e.endpointId,r=e.appId,n=e.clientContext||{},i=this._clientInfo,a={client:{client_id:n.clientId||t,app_title:n.appTitle,app_version_name:n.appVersionName,app_version_code:n.appVersionCode,app_package_name:n.appPackageName},env:{platform:n.platform||i.platform,platform_version:n.platformVersion||i.version,model:n.model||i.model,make:n.make||i.make,locale:n.locale},services:{mobile_analytics:{app_id:r,sdk_name:o.Platform.userAgent}}};return JSON.stringify(a)},e.prototype._getCredentials=function(){return o.Credentials.get().then(function(e){return e?(l.debug("set credentials for analytics",e),o.Credentials.shear(e)):null}).catch(function(e){return l.debug("ensure credentials error",e),null})},e.category="Analytics",e.providerName="AWSPinpoint",e}();t.default=m},function(e,t,r){var n=r(3),i=r(19),o=r(799),a=r(99);e.exports={buildRequest:function(e){var t=e.service.api.operations[e.operation],r=e.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",r.params={Version:e.service.api.apiVersion,Action:t.name},(new o).serialize(e.params,t.input,function(e,t){r.params[e]=t}),r.body=i.queryParamsToString(r.params)},extractError:function(e){var t,r=e.httpResponse.body.toString();if(r.match("0){var l=(t=new n.XML.Parser).parse(a.toString(),s);i.update(e.data,l)}}}},function(e,t,r){(function(){var t,n,i={}.hasOwnProperty;r(0),n=r(12),t=r(62),e.exports=function(e){function r(e,t,i,o){var a;r.__super__.constructor.call(this,e),n(t)&&(t=(a=t).version,i=a.encoding,o=a.standalone),t||(t="1.0"),this.version=this.stringify.xmlVersion(t),null!=i&&(this.encoding=this.stringify.xmlEncoding(i)),null!=o&&(this.standalone=this.stringify.xmlStandalone(o))}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype.toString=function(e,t){var r,n,i,o,a,s,u,c,l;return o=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",i=null!=(u=null!=e?e.offset:void 0)?u:0,n=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),l=new Array(t+i+1).join(r),a="",o&&(a+=l),a+="",o&&(a+=n),a},r}()}).call(this)},function(e,t,r){(function(){var t,n,i,o,a,s,u,c={}.hasOwnProperty;o=r(0),u=r(12),s=r(33),a=r(123),n=r(62),t=r(804),i=r(362),e.exports=function(e){function r(e,t,n){if(r.__super__.constructor.call(this,e),null==t)throw new Error("Missing element name");this.name=this.stringify.eleName(t),this.children=[],this.instructions=[],this.attributes={},null!=n&&this.attribute(n)}return function(e,t){for(var r in t)c.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,n),r.prototype.clone=function(){var e,t,n,i,a,s,u,l;for(t in(n=o(r.prototype,this)).isRoot&&(n.documentObject=null),n.attributes={},u=this.attributes)c.call(u,t)&&(e=u[t],n.attributes[t]=e.clone());for(n.instructions=[],i=0,a=(l=this.instructions).length;i",d&&(f+=l);else if(d&&1===this.children.length&&null!=this.children[0].value)f+=">",f+=this.children[0].value,f+="",f+=l;else{for(f+=">",d&&(f+=l),i=0,s=(b=this.children).length;i",d&&(f+=l)}return f},r.prototype.att=function(e,t){return this.attribute(e,t)},r.prototype.ins=function(e,t){return this.instruction(e,t)},r.prototype.a=function(e,t){return this.attribute(e,t)},r.prototype.i=function(e,t){return this.instruction(e,t)},r}()}).call(this)},function(e,t,r){(function(){var t;t=r(0),e.exports=function(){function e(e,t,r){if(this.stringify=e.stringify,null==t)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(t),r&&(this.value=this.stringify.insValue(r))}return e.prototype.clone=function(){return t(e.prototype,this)},e.prototype.toString=function(e,t){var r,n,i,o,a,s,u,c,l;return o=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",i=null!=(u=null!=e?e.offset:void 0)?u:0,n=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),l=new Array(t+i+1).join(r),a="",o&&(a+=l),a+="",o&&(a+=n),a},e}()}).call(this)},function(e,t,r){(function(){var t,n,i={}.hasOwnProperty;n=r(0),t=r(62),e.exports=function(e){function r(e,t){if(r.__super__.constructor.call(this,e),null==t)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(t)}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype.clone=function(){return n(r.prototype,this)},r.prototype.toString=function(e,t){var r,n,i,o,a,s,u,c,l;return o=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",i=null!=(u=null!=e?e.offset:void 0)?u:0,n=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),l=new Array(t+i+1).join(r),a="",o&&(a+=l),a+="",o&&(a+=n),a},r}()}).call(this)},function(e,t,r){(function(){var t,n,i={}.hasOwnProperty;n=r(0),t=r(62),e.exports=function(e){function r(e,t){if(r.__super__.constructor.call(this,e),null==t)throw new Error("Missing comment text");this.text=this.stringify.comment(t)}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype.clone=function(){return n(r.prototype,this)},r.prototype.toString=function(e,t){var r,n,i,o,a,s,u,c,l;return o=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",i=null!=(u=null!=e?e.offset:void 0)?u:0,n=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),l=new Array(t+i+1).join(r),a="",o&&(a+=l),a+="\x3c!-- "+this.text+" --\x3e",o&&(a+=n),a},r}()}).call(this)},function(e,t,r){(function(){var t,n,i,o,a,s,u,c;r(0),c=r(12),t=r(363),n=r(364),i=r(805),a=r(806),o=r(807),s=r(808),u=r(362),e.exports=function(){function e(e,t,r){var n,i;this.documentObject=e,this.stringify=this.documentObject.stringify,this.children=[],c(t)&&(t=(n=t).pubID,r=n.sysID),null==r&&(r=(i=[t,r])[0],t=i[1]),null!=t&&(this.pubID=this.stringify.dtdPubID(t)),null!=r&&(this.sysID=this.stringify.dtdSysID(r))}return e.prototype.element=function(e,t){var r;return r=new o(this,e,t),this.children.push(r),this},e.prototype.attList=function(e,t,r,n,o){var a;return a=new i(this,e,t,r,n,o),this.children.push(a),this},e.prototype.entity=function(e,t){var r;return r=new a(this,!1,e,t),this.children.push(r),this},e.prototype.pEntity=function(e,t){var r;return r=new a(this,!0,e,t),this.children.push(r),this},e.prototype.notation=function(e,t){var r;return r=new s(this,e,t),this.children.push(r),this},e.prototype.cdata=function(e){var r;return r=new t(this,e),this.children.push(r),this},e.prototype.comment=function(e){var t;return t=new n(this,e),this.children.push(t),this},e.prototype.instruction=function(e,t){var r;return r=new u(this,e,t),this.children.push(r),this},e.prototype.root=function(){return this.documentObject.root()},e.prototype.document=function(){return this.documentObject},e.prototype.toString=function(e,t){var r,n,i,o,a,s,u,c,l,p,d,f;if(s=(null!=e?e.pretty:void 0)||!1,n=null!=(c=null!=e?e.indent:void 0)?c:" ",a=null!=(l=null!=e?e.offset:void 0)?l:0,o=null!=(p=null!=e?e.newline:void 0)?p:"\n",t||(t=0),f=new Array(t+a+1).join(n),u="",s&&(u+=f),u+="0){for(u+=" [",s&&(u+=o),r=0,i=(d=this.children).length;rthis.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),e&&e(r)}):e&&e()},refresh:function(e){this.expired=!1,e()}}),n.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=n.util.promisifyMethod("get",e),this.prototype.refreshPromise=n.util.promisifyMethod("refresh",e)},n.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},n.util.addPromises(n.Credentials)},function(e,t,r){var n=r(3);n.CredentialProviderChain=n.util.inherit(n.Credentials,{constructor:function(e){this.providers=e||n.CredentialProviderChain.defaultProviders.slice(0)},resolve:function(e){if(0===this.providers.length)return e(new Error("No providers")),this;var t=0,r=this.providers.slice(0);return function n(i,o){if(!i&&o||t===r.length)e(i,o);else{var a=r[t++];(o="function"==typeof a?a.call():a).get?o.get(function(e){n(e,e?null:o)}):n(null,o)}}(),this}}),n.CredentialProviderChain.defaultProviders=[],n.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=n.util.promisifyMethod("resolve",e)},n.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},n.util.addPromises(n.CredentialProviderChain)},function(e,t,r){var n=r(3),i=n.util.inherit;n.Endpoint=i({constructor:function(e,t){if(n.util.hideProperties(this,["slashes","auth","hash","search","query"]),void 0===e||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):this.port="https:"===this.protocol?443:80}}),n.HttpRequest=i({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)):""}}),n.HttpResponse=i({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=i({}),n.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},function(e,t,r){var n=r(3);n.SequentialExecutor=n.util.inherit({constructor:function(){this._events={}},listeners:function(e){return this._events[e]?this._events[e].slice(0):[]},on:function(e,t){return this._events[e]?this._events[e].push(t):this._events[e]=[t],this},onAsync:function(e,t){return t._isAsync=!0,this.on(e,t)},removeListener:function(e,t){var r=this._events[e];if(r){for(var n=r.length,i=-1,o=0;o-1&&r.splice(i,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var n=this.listeners(e),i=n.length;return this.callListeners(n,t,r),i>0},callListeners:function(e,t,r,i){var o=this,a=i||null;function s(i){if(i&&(a=n.util.error(a||new Error,i),o._haltHandlersOnError))return r.call(o,a);o.callListeners(e,t,r,a)}for(;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(o,t.concat([s]));try{u.apply(o,t)}catch(e){a=n.util.error(a||new Error,e)}if(a&&o._haltHandlersOnError)return void r.call(o,a)}r.call(o,a)},addListeners:function(e){var t=this;return e._events&&(e=e._events),n.util.each(e,function(e,r){"function"==typeof r&&(r=[r]),n.util.arrayEach(r,function(r){t.on(e,r)})}),t},addNamedListener:function(e,t,r){return this[e]=r,this.addListener(t,r),this},addNamedAsyncListener:function(e,t,r){return r._isAsync=!0,this.addNamedListener(e,t,r)},addNamedListeners:function(e){var t=this;return e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)}),this}}),n.SequentialExecutor.prototype.addListener=n.SequentialExecutor.prototype.on,e.exports=n.SequentialExecutor},function(e,t,r){var n=r(3),i=n.util.inherit;n.Signers.V3=i(n.Signers.RequestSigner,{addAuthorization:function(e,t){var r=n.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},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(t){e.push(t.toLowerCase())}),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return n.util.arrayEach(this.headersToSign(),function(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())}),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return n.util.each(this.request.headers,function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)}),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"))}}),e.exports=n.Signers.V3},function(e,t,r){(function(t){var r,n=t.crypto||t.msCrypto;if(n&&n.getRandomValues){var i=new Uint8Array(16);r=function(){return n.getRandomValues(i),i}}if(!r){var o=new Array(16);r=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}e.exports=r}).call(this,r(22))},function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,i=r;return i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(206),i=new(r(11).ConsoleLogger)("StorageCache"),o=function(){function e(e){this.config=Object.assign({},e),this.cacheCurSizeKey=this.config.keyPrefix+"CurSize",this.checkConfig()}return e.prototype.getModuleName=function(){return"Cache"},e.prototype.checkConfig=function(){n.isInteger(this.config.capacityInBytes)||(i.error("Invalid parameter: capacityInBytes. It should be an Integer. Setting back to default."),this.config.capacityInBytes=n.defaultConfig.capacityInBytes),n.isInteger(this.config.itemMaxSize)||(i.error("Invalid parameter: itemMaxSize. It should be an Integer. Setting back to default."),this.config.itemMaxSize=n.defaultConfig.itemMaxSize),n.isInteger(this.config.defaultTTL)||(i.error("Invalid parameter: defaultTTL. It should be an Integer. Setting back to default."),this.config.defaultTTL=n.defaultConfig.defaultTTL),n.isInteger(this.config.defaultPriority)||(i.error("Invalid parameter: defaultPriority. It should be an Integer. Setting back to default."),this.config.defaultPriority=n.defaultConfig.defaultPriority),this.config.itemMaxSize>this.config.capacityInBytes&&(i.error("Invalid parameter: itemMaxSize. It should be smaller than capacityInBytes. Setting back to default."),this.config.itemMaxSize=n.defaultConfig.itemMaxSize),(this.config.defaultPriority>5||this.config.defaultPriority<1)&&(i.error("Invalid parameter: defaultPriority. It should be between 1 and 5. Setting back to default."),this.config.defaultPriority=n.defaultConfig.defaultPriority),(Number(this.config.warningThreshold)>1||Number(this.config.warningThreshold)<0)&&(i.error("Invalid parameter: warningThreshold. It should be between 0 and 1. Setting back to default."),this.config.warningThreshold=n.defaultConfig.warningThreshold);this.config.capacityInBytes>5242880&&(i.error("Cache Capacity should be less than 5MB. Setting back to default. Setting back to default."),this.config.capacityInBytes=n.defaultConfig.capacityInBytes)},e.prototype.fillCacheItem=function(e,t,r){var i={key:e,data:t,timestamp:n.getCurrTime(),visitedTime:n.getCurrTime(),priority:r.priority,expires:r.expires,type:typeof t,byteSize:0};return i.byteSize=n.getByteLength(JSON.stringify(i)),i.byteSize=n.getByteLength(JSON.stringify(i)),i},e.prototype.configure=function(e){return e?(e.keyPrefix&&i.warn("Don't try to configure keyPrefix!"),this.config=Object.assign({},this.config,e,e.Cache),this.checkConfig(),this.config):this.config},e}();t.default=o},function(e,t,r){var n=r(4),i=r(20),o=r(873),a=r(100);e.exports={buildRequest:function(e){var t=e.service.api.operations[e.operation],r=e.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",r.params={Version:e.service.api.apiVersion,Action:t.name},(new o).serialize(e.params,t.input,function(e,t){r.params[e]=t}),r.body=i.queryParamsToString(r.params)},extractError:function(e){var t,r=e.httpResponse.body.toString();if(r.match("0){var l=(t=new n.XML.Parser).parse(a.toString(),s);i.update(e.data,l)}}}},function(e,t,r){(function(){var t,n,i={}.hasOwnProperty;r(0),n=r(12),t=r(63),e.exports=function(e){function r(e,t,i,o){var a;r.__super__.constructor.call(this,e),n(t)&&(t=(a=t).version,i=a.encoding,o=a.standalone),t||(t="1.0"),this.version=this.stringify.xmlVersion(t),null!=i&&(this.encoding=this.stringify.xmlEncoding(i)),null!=o&&(this.standalone=this.stringify.xmlStandalone(o))}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype.toString=function(e,t){var r,n,i,o,a,s,u,c,l;return o=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",i=null!=(u=null!=e?e.offset:void 0)?u:0,n=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),l=new Array(t+i+1).join(r),a="",o&&(a+=l),a+="",o&&(a+=n),a},r}()}).call(this)},function(e,t,r){(function(){var t,n,i,o,a,s,u,c={}.hasOwnProperty;o=r(0),u=r(12),s=r(33),a=r(123),n=r(63),t=r(878),i=r(384),e.exports=function(e){function r(e,t,n){if(r.__super__.constructor.call(this,e),null==t)throw new Error("Missing element name");this.name=this.stringify.eleName(t),this.children=[],this.instructions=[],this.attributes={},null!=n&&this.attribute(n)}return function(e,t){for(var r in t)c.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,n),r.prototype.clone=function(){var e,t,n,i,a,s,u,l;for(t in(n=o(r.prototype,this)).isRoot&&(n.documentObject=null),n.attributes={},u=this.attributes)c.call(u,t)&&(e=u[t],n.attributes[t]=e.clone());for(n.instructions=[],i=0,a=(l=this.instructions).length;i",d&&(f+=l);else if(d&&1===this.children.length&&null!=this.children[0].value)f+=">",f+=this.children[0].value,f+="",f+=l;else{for(f+=">",d&&(f+=l),i=0,s=(b=this.children).length;i",d&&(f+=l)}return f},r.prototype.att=function(e,t){return this.attribute(e,t)},r.prototype.ins=function(e,t){return this.instruction(e,t)},r.prototype.a=function(e,t){return this.attribute(e,t)},r.prototype.i=function(e,t){return this.instruction(e,t)},r}()}).call(this)},function(e,t,r){(function(){var t;t=r(0),e.exports=function(){function e(e,t,r){if(this.stringify=e.stringify,null==t)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(t),r&&(this.value=this.stringify.insValue(r))}return e.prototype.clone=function(){return t(e.prototype,this)},e.prototype.toString=function(e,t){var r,n,i,o,a,s,u,c,l;return o=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",i=null!=(u=null!=e?e.offset:void 0)?u:0,n=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),l=new Array(t+i+1).join(r),a="",o&&(a+=l),a+="",o&&(a+=n),a},e}()}).call(this)},function(e,t,r){(function(){var t,n,i={}.hasOwnProperty;n=r(0),t=r(63),e.exports=function(e){function r(e,t){if(r.__super__.constructor.call(this,e),null==t)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(t)}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype.clone=function(){return n(r.prototype,this)},r.prototype.toString=function(e,t){var r,n,i,o,a,s,u,c,l;return o=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",i=null!=(u=null!=e?e.offset:void 0)?u:0,n=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),l=new Array(t+i+1).join(r),a="",o&&(a+=l),a+="",o&&(a+=n),a},r}()}).call(this)},function(e,t,r){(function(){var t,n,i={}.hasOwnProperty;n=r(0),t=r(63),e.exports=function(e){function r(e,t){if(r.__super__.constructor.call(this,e),null==t)throw new Error("Missing comment text");this.text=this.stringify.comment(t)}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype.clone=function(){return n(r.prototype,this)},r.prototype.toString=function(e,t){var r,n,i,o,a,s,u,c,l;return o=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",i=null!=(u=null!=e?e.offset:void 0)?u:0,n=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),l=new Array(t+i+1).join(r),a="",o&&(a+=l),a+="\x3c!-- "+this.text+" --\x3e",o&&(a+=n),a},r}()}).call(this)},function(e,t,r){(function(){var t,n,i,o,a,s,u,c;r(0),c=r(12),t=r(385),n=r(386),i=r(879),a=r(880),o=r(881),s=r(882),u=r(384),e.exports=function(){function e(e,t,r){var n,i;this.documentObject=e,this.stringify=this.documentObject.stringify,this.children=[],c(t)&&(t=(n=t).pubID,r=n.sysID),null==r&&(r=(i=[t,r])[0],t=i[1]),null!=t&&(this.pubID=this.stringify.dtdPubID(t)),null!=r&&(this.sysID=this.stringify.dtdSysID(r))}return e.prototype.element=function(e,t){var r;return r=new o(this,e,t),this.children.push(r),this},e.prototype.attList=function(e,t,r,n,o){var a;return a=new i(this,e,t,r,n,o),this.children.push(a),this},e.prototype.entity=function(e,t){var r;return r=new a(this,!1,e,t),this.children.push(r),this},e.prototype.pEntity=function(e,t){var r;return r=new a(this,!0,e,t),this.children.push(r),this},e.prototype.notation=function(e,t){var r;return r=new s(this,e,t),this.children.push(r),this},e.prototype.cdata=function(e){var r;return r=new t(this,e),this.children.push(r),this},e.prototype.comment=function(e){var t;return t=new n(this,e),this.children.push(t),this},e.prototype.instruction=function(e,t){var r;return r=new u(this,e,t),this.children.push(r),this},e.prototype.root=function(){return this.documentObject.root()},e.prototype.document=function(){return this.documentObject},e.prototype.toString=function(e,t){var r,n,i,o,a,s,u,c,l,p,d,f;if(s=(null!=e?e.pretty:void 0)||!1,n=null!=(c=null!=e?e.indent:void 0)?c:" ",a=null!=(l=null!=e?e.offset:void 0)?l:0,o=null!=(p=null!=e?e.newline:void 0)?p:"\n",t||(t=0),f=new Array(t+a+1).join(n),u="",s&&(u+=f),u+="0){for(u+=" [",s&&(u+=o),r=0,i=(d=this.children).length;rthis.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),e&&e(r)}):e&&e()},refresh:function(e){this.expired=!1,e()}}),n.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=n.util.promisifyMethod("get",e),this.prototype.refreshPromise=n.util.promisifyMethod("refresh",e)},n.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},n.util.addPromises(n.Credentials)},function(e,t,r){var n=r(4);n.CredentialProviderChain=n.util.inherit(n.Credentials,{constructor:function(e){this.providers=e||n.CredentialProviderChain.defaultProviders.slice(0)},resolve:function(e){if(0===this.providers.length)return e(new Error("No providers")),this;var t=0,r=this.providers.slice(0);return function n(i,o){if(!i&&o||t===r.length)e(i,o);else{var a=r[t++];(o="function"==typeof a?a.call():a).get?o.get(function(e){n(e,e?null:o)}):n(null,o)}}(),this}}),n.CredentialProviderChain.defaultProviders=[],n.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=n.util.promisifyMethod("resolve",e)},n.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},n.util.addPromises(n.CredentialProviderChain)},function(e,t,r){var n=r(4),i=n.util.inherit;n.Endpoint=i({constructor:function(e,t){if(n.util.hideProperties(this,["slashes","auth","hash","search","query"]),void 0===e||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):this.port="https:"===this.protocol?443:80}}),n.HttpRequest=i({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)):""}}),n.HttpResponse=i({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=i({}),n.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},function(e,t,r){var n=r(4);n.SequentialExecutor=n.util.inherit({constructor:function(){this._events={}},listeners:function(e){return this._events[e]?this._events[e].slice(0):[]},on:function(e,t){return this._events[e]?this._events[e].push(t):this._events[e]=[t],this},onAsync:function(e,t){return t._isAsync=!0,this.on(e,t)},removeListener:function(e,t){var r=this._events[e];if(r){for(var n=r.length,i=-1,o=0;o-1&&r.splice(i,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var n=this.listeners(e),i=n.length;return this.callListeners(n,t,r),i>0},callListeners:function(e,t,r,i){var o=this,a=i||null;function s(i){if(i&&(a=n.util.error(a||new Error,i),o._haltHandlersOnError))return r.call(o,a);o.callListeners(e,t,r,a)}for(;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(o,t.concat([s]));try{u.apply(o,t)}catch(e){a=n.util.error(a||new Error,e)}if(a&&o._haltHandlersOnError)return void r.call(o,a)}r.call(o,a)},addListeners:function(e){var t=this;return e._events&&(e=e._events),n.util.each(e,function(e,r){"function"==typeof r&&(r=[r]),n.util.arrayEach(r,function(r){t.on(e,r)})}),t},addNamedListener:function(e,t,r){return this[e]=r,this.addListener(t,r),this},addNamedAsyncListener:function(e,t,r){return r._isAsync=!0,this.addNamedListener(e,t,r)},addNamedListeners:function(e){var t=this;return e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)}),this}}),n.SequentialExecutor.prototype.addListener=n.SequentialExecutor.prototype.on,e.exports=n.SequentialExecutor},function(e,t,r){var n=r(4),i=n.util.inherit;n.Signers.V3=i(n.Signers.RequestSigner,{addAuthorization:function(e,t){var r=n.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},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(t){e.push(t.toLowerCase())}),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return n.util.arrayEach(this.headersToSign(),function(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())}),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return n.util.each(this.request.headers,function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)}),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"))}}),e.exports=n.Signers.V3},function(e,t,r){var n=r(4),i={},o=[],a="aws4_request";e.exports={createScope:function(e,t,r){return[e.substr(0,8),t,r,a].join("/")},getSigningKey:function(e,t,r,s,u){var c=[n.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),t,r,s].join("_");if((u=!1!==u)&&c in i)return i[c];var l=n.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer"),p=n.util.crypto.hmac(l,r,"buffer"),d=n.util.crypto.hmac(p,s,"buffer"),f=n.util.crypto.hmac(d,a,"buffer");return u&&(i[c]=f,o.push(c),o.length>50&&delete i[o.shift()]),f},emptyCache:function(){i={},o=[]}}},function(e,t,r){(function(t){var r,n=t.crypto||t.msCrypto;if(n&&n.getRandomValues){var i=new Uint8Array(16);r=function(){return n.getRandomValues(i),i}}if(!r){var o=new Array(16);r=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}e.exports=r}).call(this,r(22))},function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,i=r;return i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)throw new Error(t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(213);Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return n.GraphQLError}});var i=r(935);Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return i.syntaxError}});var o=r(936);Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return o.locatedError}});var a=r(402);Object.defineProperty(t,"printError",{enumerable:!0,get:function(){return a.printError}});var s=r(937);Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return s.formatError}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printError=function(e){var t=[];if(e.nodes)e.nodes.forEach(function(e){e.loc&&t.push(i(e.loc.source,(0,n.getLocation)(e.loc.source,e.loc.start)))});else if(e.source&&e.locations){var r=e.source;e.locations.forEach(function(e){t.push(i(r,e))})}return 0===t.length?e.message:[e.message].concat(t).join("\n\n")+"\n"};var n=r(403);function i(e,t){var r=t.line,n=e.locationOffset.line-1,i=function(e,t){return 1===t.line?e.locationOffset.column-1:0}(e,t),s=r+n,u=t.column+i,c=(s-1).toString(),l=s.toString(),p=(s+1).toString(),d=p.length,f=e.body.split(/\r\n|[\n\r]/g);return f[0]=o(e.locationOffset.column-1)+f[0],[e.name+" ("+s+":"+u+")",r>=2&&a(d,c)+": "+f[r-2],a(d,l)+": "+f[r-1],o(2+d+u-1)+"^",r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0){var l=(t=new n.XML.Parser).parse(a.toString(),s);i.update(e.data,l)}}}},function(e,t,r){(function(){var t,n,i={}.hasOwnProperty;r(0),n=r(12),t=r(64),e.exports=function(e){function r(e,t,i,o){var a;r.__super__.constructor.call(this,e),n(t)&&(t=(a=t).version,i=a.encoding,o=a.standalone),t||(t="1.0"),this.version=this.stringify.xmlVersion(t),null!=i&&(this.encoding=this.stringify.xmlEncoding(i)),null!=o&&(this.standalone=this.stringify.xmlStandalone(o))}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype.toString=function(e,t){var r,n,i,o,a,s,u,c,l;return o=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",i=null!=(u=null!=e?e.offset:void 0)?u:0,n=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),l=new Array(t+i+1).join(r),a="",o&&(a+=l),a+="",o&&(a+=n),a},r}()}).call(this)},function(e,t,r){(function(){var t,n,i,o,a,s,u,c={}.hasOwnProperty;o=r(0),u=r(12),s=r(33),a=r(123),n=r(64),t=r(976),i=r(419),e.exports=function(e){function r(e,t,n){if(r.__super__.constructor.call(this,e),null==t)throw new Error("Missing element name");this.name=this.stringify.eleName(t),this.children=[],this.instructions=[],this.attributes={},null!=n&&this.attribute(n)}return function(e,t){for(var r in t)c.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,n),r.prototype.clone=function(){var e,t,n,i,a,s,u,l;for(t in(n=o(r.prototype,this)).isRoot&&(n.documentObject=null),n.attributes={},u=this.attributes)c.call(u,t)&&(e=u[t],n.attributes[t]=e.clone());for(n.instructions=[],i=0,a=(l=this.instructions).length;i",d&&(f+=l);else if(d&&1===this.children.length&&null!=this.children[0].value)f+=">",f+=this.children[0].value,f+="",f+=l;else{for(f+=">",d&&(f+=l),i=0,s=(b=this.children).length;i",d&&(f+=l)}return f},r.prototype.att=function(e,t){return this.attribute(e,t)},r.prototype.ins=function(e,t){return this.instruction(e,t)},r.prototype.a=function(e,t){return this.attribute(e,t)},r.prototype.i=function(e,t){return this.instruction(e,t)},r}()}).call(this)},function(e,t,r){(function(){var t;t=r(0),e.exports=function(){function e(e,t,r){if(this.stringify=e.stringify,null==t)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(t),r&&(this.value=this.stringify.insValue(r))}return e.prototype.clone=function(){return t(e.prototype,this)},e.prototype.toString=function(e,t){var r,n,i,o,a,s,u,c,l;return o=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",i=null!=(u=null!=e?e.offset:void 0)?u:0,n=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),l=new Array(t+i+1).join(r),a="",o&&(a+=l),a+="",o&&(a+=n),a},e}()}).call(this)},function(e,t,r){(function(){var t,n,i={}.hasOwnProperty;n=r(0),t=r(64),e.exports=function(e){function r(e,t){if(r.__super__.constructor.call(this,e),null==t)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(t)}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype.clone=function(){return n(r.prototype,this)},r.prototype.toString=function(e,t){var r,n,i,o,a,s,u,c,l;return o=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",i=null!=(u=null!=e?e.offset:void 0)?u:0,n=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),l=new Array(t+i+1).join(r),a="",o&&(a+=l),a+="",o&&(a+=n),a},r}()}).call(this)},function(e,t,r){(function(){var t,n,i={}.hasOwnProperty;n=r(0),t=r(64),e.exports=function(e){function r(e,t){if(r.__super__.constructor.call(this,e),null==t)throw new Error("Missing comment text");this.text=this.stringify.comment(t)}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype.clone=function(){return n(r.prototype,this)},r.prototype.toString=function(e,t){var r,n,i,o,a,s,u,c,l;return o=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",i=null!=(u=null!=e?e.offset:void 0)?u:0,n=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),l=new Array(t+i+1).join(r),a="",o&&(a+=l),a+="\x3c!-- "+this.text+" --\x3e",o&&(a+=n),a},r}()}).call(this)},function(e,t,r){(function(){var t,n,i,o,a,s,u,c;r(0),c=r(12),t=r(420),n=r(421),i=r(977),a=r(978),o=r(979),s=r(980),u=r(419),e.exports=function(){function e(e,t,r){var n,i;this.documentObject=e,this.stringify=this.documentObject.stringify,this.children=[],c(t)&&(t=(n=t).pubID,r=n.sysID),null==r&&(r=(i=[t,r])[0],t=i[1]),null!=t&&(this.pubID=this.stringify.dtdPubID(t)),null!=r&&(this.sysID=this.stringify.dtdSysID(r))}return e.prototype.element=function(e,t){var r;return r=new o(this,e,t),this.children.push(r),this},e.prototype.attList=function(e,t,r,n,o){var a;return a=new i(this,e,t,r,n,o),this.children.push(a),this},e.prototype.entity=function(e,t){var r;return r=new a(this,!1,e,t),this.children.push(r),this},e.prototype.pEntity=function(e,t){var r;return r=new a(this,!0,e,t),this.children.push(r),this},e.prototype.notation=function(e,t){var r;return r=new s(this,e,t),this.children.push(r),this},e.prototype.cdata=function(e){var r;return r=new t(this,e),this.children.push(r),this},e.prototype.comment=function(e){var t;return t=new n(this,e),this.children.push(t),this},e.prototype.instruction=function(e,t){var r;return r=new u(this,e,t),this.children.push(r),this},e.prototype.root=function(){return this.documentObject.root()},e.prototype.document=function(){return this.documentObject},e.prototype.toString=function(e,t){var r,n,i,o,a,s,u,c,l,p,d,f;if(s=(null!=e?e.pretty:void 0)||!1,n=null!=(c=null!=e?e.indent:void 0)?c:" ",a=null!=(l=null!=e?e.offset:void 0)?l:0,o=null!=(p=null!=e?e.newline:void 0)?p:"\n",t||(t=0),f=new Array(t+a+1).join(n),u="",s&&(u+=f),u+="0){for(u+=" [",s&&(u+=o),r=0,i=(d=this.children).length;rthis.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),e&&e(r)}):e&&e()},refresh:function(e){this.expired=!1,e()}}),n.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=n.util.promisifyMethod("get",e),this.prototype.refreshPromise=n.util.promisifyMethod("refresh",e)},n.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},n.util.addPromises(n.Credentials)},function(e,t,r){var n=r(6);n.CredentialProviderChain=n.util.inherit(n.Credentials,{constructor:function(e){this.providers=e||n.CredentialProviderChain.defaultProviders.slice(0)},resolve:function(e){if(0===this.providers.length)return e(new Error("No providers")),this;var t=0,r=this.providers.slice(0);return function n(i,o){if(!i&&o||t===r.length)e(i,o);else{var a=r[t++];(o="function"==typeof a?a.call():a).get?o.get(function(e){n(e,e?null:o)}):n(null,o)}}(),this}}),n.CredentialProviderChain.defaultProviders=[],n.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=n.util.promisifyMethod("resolve",e)},n.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},n.util.addPromises(n.CredentialProviderChain)},function(e,t,r){var n=r(6),i=n.util.inherit;n.Endpoint=i({constructor:function(e,t){if(n.util.hideProperties(this,["slashes","auth","hash","search","query"]),void 0===e||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):this.port="https:"===this.protocol?443:80}}),n.HttpRequest=i({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)):""}}),n.HttpResponse=i({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=i({}),n.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},function(e,t,r){var n=r(6);n.SequentialExecutor=n.util.inherit({constructor:function(){this._events={}},listeners:function(e){return this._events[e]?this._events[e].slice(0):[]},on:function(e,t){return this._events[e]?this._events[e].push(t):this._events[e]=[t],this},onAsync:function(e,t){return t._isAsync=!0,this.on(e,t)},removeListener:function(e,t){var r=this._events[e];if(r){for(var n=r.length,i=-1,o=0;o-1&&r.splice(i,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var n=this.listeners(e),i=n.length;return this.callListeners(n,t,r),i>0},callListeners:function(e,t,r,i){var o=this,a=i||null;function s(i){if(i&&(a=n.util.error(a||new Error,i),o._haltHandlersOnError))return r.call(o,a);o.callListeners(e,t,r,a)}for(;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(o,t.concat([s]));try{u.apply(o,t)}catch(e){a=n.util.error(a||new Error,e)}if(a&&o._haltHandlersOnError)return void r.call(o,a)}r.call(o,a)},addListeners:function(e){var t=this;return e._events&&(e=e._events),n.util.each(e,function(e,r){"function"==typeof r&&(r=[r]),n.util.arrayEach(r,function(r){t.on(e,r)})}),t},addNamedListener:function(e,t,r){return this[e]=r,this.addListener(t,r),this},addNamedAsyncListener:function(e,t,r){return r._isAsync=!0,this.addNamedListener(e,t,r)},addNamedListeners:function(e){var t=this;return e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)}),this}}),n.SequentialExecutor.prototype.addListener=n.SequentialExecutor.prototype.on,e.exports=n.SequentialExecutor},function(e,t,r){var n=r(6),i=n.util.inherit;n.Signers.V3=i(n.Signers.RequestSigner,{addAuthorization:function(e,t){var r=n.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},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(t){e.push(t.toLowerCase())}),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return n.util.arrayEach(this.headersToSign(),function(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())}),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return n.util.each(this.request.headers,function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)}),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"))}}),e.exports=n.Signers.V3},function(e,t,r){(function(t){var r,n=t.crypto||t.msCrypto;if(n&&n.getRandomValues){var i=new Uint8Array(16);r=function(){return n.getRandomValues(i),i}}if(!r){var o=new Array(16);r=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}e.exports=r}).call(this,r(22))},function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,i=r;return i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=function(e,t){var r=e[1]||"",n=e[3];if(!n)return r;if(t&&"function"==typeof btoa){var i=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(n),o=n.sources.map(function(e){return"/*# sourceURL="+n.sourceRoot+e+" */"});return[r].concat(o).concat([i]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,r){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},i=0;i=0&&u.splice(t,1)}function h(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var n=function(){0;return r.nc}();n&&(e.attrs.nonce=n)}return m(t,e.attrs),d(e,t),t}function m(e,t){Object.keys(t).forEach(function(r){e.setAttribute(r,t[r])})}function g(e,t){var r,n,i,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var u=s++;r=a||(a=h(t)),n=v.bind(null,r,u,!1),i=v.bind(null,r,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",m(t,e.attrs),d(e,t),t}(t),n=function(e,t,r){var n=r.css,i=r.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(n=c(n));i&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([n],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,r,t),i=function(){f(r),r.href&&URL.revokeObjectURL(r.href)}):(r=h(t),n=function(e,t){var r=t.css,n=t.media;n&&e.setAttribute("media",n);if(e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}.bind(null,r),i=function(){f(r)});return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=i()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var r=p(e,t);return l(r,t),function(e){for(var i=[],o=0;o>15;--o>=0;){var u=32767&this[e],c=this[e++]>>15,l=s*u+c*a;i=((u=a*u+((32767&l)<<15)+r[n]+(1073741823&i))>>>30)+(l>>>15)+s*c+(i>>>30),r[n++]=1073741823&u}return i},n=30):l&&"Netscape"!=navigator.appName?(u.prototype.am=function(e,t,r,n,i,o){for(;--o>=0;){var a=t*this[e++]+r[n]+i;i=Math.floor(a/67108864),r[n++]=67108863&a}return i},n=26):(u.prototype.am=function(e,t,r,n,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],c=this[e++]>>14,l=s*u+c*a;i=((u=a*u+((16383&l)<<14)+r[n]+i)>>28)+(l>>14)+s*c,r[n++]=268435455&u}return i},n=28),u.prototype.DB=n,u.prototype.DM=(1<>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function b(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t},b.prototype.revert=function(e){var t=c();return e.copyTo(t),this.reduce(t),t},b.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,n,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},b.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},b.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},u.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},u.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},u.prototype.fromString=function(e,t){var r;if(16==t)r=4;else if(8==t)r=3;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");r=2}this.t=0,this.s=0;for(var n=e.length,i=!1,o=0;--n>=0;){var a=g(e,n);a<0?"-"==e.charAt(n)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+r>this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB))}this.clamp(),i&&u.ZERO.subTo(this,this)},u.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},u.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},u.prototype.drShiftTo=function(e,t){for(var r=e;r=0;--r)t[r+a+1]=this[r]>>i|s,s=(this[r]&o)<=0;--r)t[r]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},u.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var n=e%this.DB,i=this.DB-n,o=(1<>n;for(var a=r+1;a>n;n>0&&(t[this.t-r-1]|=(this.s&o)<>=this.DB;if(e.t>=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[r++]=this.DV+n:n>0&&(t[r++]=n),t.t=r,t.clamp()},u.prototype.multiplyTo=function(e,t){var r=this.abs(),n=e.abs(),i=r.t;for(t.t=i+n.t;--i>=0;)t[i]=0;for(i=0;i=0;)e[r]=0;for(r=0;r=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},u.prototype.divRemTo=function(e,t,r){var n=e.abs();if(!(n.t<=0)){var i=this.abs();if(i.t0?(n.lShiftTo(l,o),i.lShiftTo(l,r)):(n.copyTo(o),i.copyTo(r));var p=o.t,d=o[p-1];if(0!=d){var f=d*(1<1?o[p-2]>>this.F2:0),h=this.FV/f,m=(1<=0&&(r[r.t++]=1,r.subTo(w,r)),u.ONE.dlShiftTo(p,w),w.subTo(o,o);o.t=0;){var S=r[--y]==d?this.DM:Math.floor(r[y]*h+(r[y-1]+g)*m);if((r[y]+=o.am(0,S,r,b,0,p))0&&r.rShiftTo(l,r),a<0&&u.ZERO.subTo(r,r)}}},u.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},u.prototype.addTo=function(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);r>=this.DB;if(e.t>=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n+=e.s}t.s=n<0?-1:0,n>0?t[r++]=n:n<-1&&(t[r++]=this.DV+n),t.t=r,t.clamp()},u.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString();var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");t=2}var r,n=(1<0)for(s>s)>0&&(i=!0,o=m(r));a>=0;)s>(s+=this.DB-t)):(r=this[a]>>(s-=t)&n,s<=0&&(s+=this.DB,--a)),r>0&&(i=!0),i&&(o+=m(r));return i?o:"0"},u.prototype.negate=function(){var e=c();return u.ZERO.subTo(this,e),e},u.prototype.abs=function(){return this.s<0?this.negate():this},u.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return this.s<0?-t:t;for(;--r>=0;)if(0!=(t=this[r]-e[r]))return t;return 0},u.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+v(this[this.t-1]^this.s&this.DM)},u.prototype.mod=function(e){var t=c();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(u.ZERO)>0&&e.subTo(t,t),t},u.prototype.equals=function(e){return 0==this.compareTo(e)},u.prototype.add=function(e){var t=c();return this.addTo(e,t),t},u.prototype.subtract=function(e){var t=c();return this.subTo(e,t),t},u.prototype.multiply=function(e){var t=c();return this.multiplyTo(e,t),t},u.prototype.divide=function(e){var t=c();return this.divRemTo(e,t,null),t},u.prototype.modPow=function(e,t,r){var n,i=e.bitLength(),o=y(1),a=new b(t);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6;var s=new Array,u=3,l=n-1,p=(1<1){var d=c();for(a.sqrTo(s[1],d);u<=p;)s[u]=c(),a.mulTo(d,s[u-2],s[u]),u+=2}var f,h,m=e.t-1,g=!0,w=c();for(i=v(e[m])-1;m>=0;){for(i>=l?f=e[m]>>i-l&p:(f=(e[m]&(1<0&&(f|=e[m-1]>>this.DB+i-l)),u=n;0==(1&f);)f>>=1,--u;if((i-=u)<0&&(i+=this.DB,--m),g)s[f].copyTo(o),g=!1;else{for(;u>1;)a.sqrTo(o,w),a.sqrTo(w,o),u-=2;u>0?a.sqrTo(o,w):(h=o,o=w,w=h),a.mulTo(w,s[f],o)}for(;m>=0&&0==(e[m]&1<0&&void 0!==arguments[0]?arguments[0]:{}).AccessToken;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r||""))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(k); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ var _=function(e){function t(){var r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).IdToken;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r||""))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(k); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ var C=function(){function e(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).RefreshToken;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.token=t||""}return e.prototype.getToken=function(){return this.token},e}(); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ var N=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.IdToken,n=t.RefreshToken,i=t.AccessToken,o=t.ClockDrift;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null==i||null==r)throw new Error("Id token and Access Token must be present.");this.idToken=r,this.refreshToken=n,this.accessToken=i,this.clockDrift=void 0===o?this.calculateClockDrift():o}return e.prototype.getIdToken=function(){return this.idToken},e.prototype.getRefreshToken=function(){return this.refreshToken},e.prototype.getAccessToken=function(){return this.accessToken},e.prototype.getClockDrift=function(){return this.clockDrift},e.prototype.calculateClockDrift=function(){return Math.floor(new Date/1e3)-Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt())},e.prototype.isValid=function(){var e=Math.floor(new Date/1e3)-this.clockDrift;return e0&&void 0!==arguments[0]?arguments[0]:{},r=t.Name,n=t.Value;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.Name=r||"",this.Value=n||""}return e.prototype.getValue=function(){return this.Value},e.prototype.setValue=function(e){return this.Value=e,this},e.prototype.getName=function(){return this.Name},e.prototype.setName=function(e){return this.Name=e,this},e.prototype.toString=function(){return JSON.stringify(this)},e.prototype.toJSON=function(){return{Name:this.Name,Value:this.Value}},e}();function D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")} /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */var L={},M=function(){function e(){D(this,e)}return e.setItem=function(e,t){return L[e]=t,L[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(L,e)?L[e]:void 0},e.removeItem=function(e){return delete L[e]},e.clear=function(){return L={}},e}(),q=function(){function e(){D(this,e);try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch(e){this.storageWindow=M}}return e.prototype.getStorage=function(){return this.storageWindow},e}(); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ var U=a.createHmac,j=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null==t||null==t.Username||null==t.Pool)throw new Error("Username and pool information are required.");this.username=t.Username||"",this.pool=t.Pool,this.Session=null,this.client=t.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=t.Storage||(new q).getStorage()}return e.prototype.setSignInUserSession=function(e){this.clearCachedTokens(),this.signInUserSession=e,this.cacheTokens()},e.prototype.getSignInUserSession=function(){return this.signInUserSession},e.prototype.getUsername=function(){return this.username},e.prototype.getAuthenticationFlowType=function(){return this.authenticationFlowType},e.prototype.setAuthenticationFlowType=function(e){this.authenticationFlowType=e},e.prototype.initiateAuth=function(e,t){var r=this,n=e.getAuthParameters();n.USERNAME=this.username;var i={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:n,ClientMetadata:e.getValidationData()};this.getUserContextData()&&(i.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",i,function(e,n){if(e)return t.onFailure(e);var i=n.ChallengeName,o=n.ChallengeParameters;return"CUSTOM_CHALLENGE"===i?(r.Session=n.Session,t.customChallenge(o)):(r.signInUserSession=r.getCognitoUserSession(n.AuthenticationResult),r.cacheTokens(),t.onSuccess(r.signInUserSession))})},e.prototype.authenticateUser=function(e,t){return"USER_PASSWORD_AUTH"===this.authenticationFlowType?this.authenticateUserPlainUsernamePassword(e,t):"USER_SRP_AUTH"===this.authenticationFlowType?this.authenticateUserDefaultAuth(e,t):t.onFailure(new Error("Authentication flow type is invalid."))},e.prototype.authenticateUserDefaultAuth=function(e,t){var r=this,n=new T(this.pool.getUserPoolId().split("_")[1]),i=new R,a=void 0,u=void 0,c={};null!=this.deviceKey&&(c.DEVICE_KEY=this.deviceKey),c.USERNAME=this.username,n.getLargeAValue(function(l,p){l&&t.onFailure(l),c.SRP_A=p.toString(16),"CUSTOM_AUTH"===r.authenticationFlowType&&(c.CHALLENGE_NAME="SRP_A");var d={AuthFlow:r.authenticationFlowType,ClientId:r.pool.getClientId(),AuthParameters:c,ClientMetadata:e.getValidationData()};r.getUserContextData(r.username)&&(d.UserContextData=r.getUserContextData(r.username)),r.client.request("InitiateAuth",d,function(c,l){if(c)return t.onFailure(c);var p=l.ChallengeParameters;r.username=p.USER_ID_FOR_SRP,a=new s(p.SRP_B,16),u=new s(p.SALT,16),r.getCachedDeviceKeyAndPassword(),n.getPasswordAuthenticationKey(r.username,e.getPassword(),a,u,function(e,a){e&&t.onFailure(e);var s=i.getNowString(),u=U("sha256",a).update(o.Buffer.concat([o.Buffer.from(r.pool.getUserPoolId().split("_")[1],"utf8"),o.Buffer.from(r.username,"utf8"),o.Buffer.from(p.SECRET_BLOCK,"base64"),o.Buffer.from(s,"utf8")])).digest("base64"),c={};c.USERNAME=r.username,c.PASSWORD_CLAIM_SECRET_BLOCK=p.SECRET_BLOCK,c.TIMESTAMP=s,c.PASSWORD_CLAIM_SIGNATURE=u,null!=r.deviceKey&&(c.DEVICE_KEY=r.deviceKey);var d={ChallengeName:"PASSWORD_VERIFIER",ClientId:r.pool.getClientId(),ChallengeResponses:c,Session:l.Session};r.getUserContextData()&&(d.UserContextData=r.getUserContextData()),function e(t,n){return r.client.request("RespondToAuthChallenge",t,function(i,o){return i&&"ResourceNotFoundException"===i.code&&-1!==i.message.toLowerCase().indexOf("device")?(c.DEVICE_KEY=null,r.deviceKey=null,r.randomPassword=null,r.deviceGroupKey=null,r.clearCachedDeviceKeyAndPassword(),e(t,n)):n(i,o)})}(d,function(e,i){return e?t.onFailure(e):r.authenticateUserInternal(i,n,t)})})})})},e.prototype.authenticateUserPlainUsernamePassword=function(e,t){var r=this,n={};if(n.USERNAME=this.username,n.PASSWORD=e.getPassword(),n.PASSWORD){var i=new T(this.pool.getUserPoolId().split("_")[1]);this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(n.DEVICE_KEY=this.deviceKey);var o={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:n,ClientMetadata:e.getValidationData()};this.getUserContextData(this.username)&&(o.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",o,function(e,n){return e?t.onFailure(e):r.authenticateUserInternal(n,i,t)})}else t.onFailure(new Error("PASSWORD parameter is required"))},e.prototype.authenticateUserInternal=function(e,t,r){var n=this,i=e.ChallengeName,a=e.ChallengeParameters;if("SMS_MFA"===i)return this.Session=e.Session,r.mfaRequired(i,a);if("SELECT_MFA_TYPE"===i)return this.Session=e.Session,r.selectMFAType(i,a);if("MFA_SETUP"===i)return this.Session=e.Session,r.mfaSetup(i,a);if("SOFTWARE_TOKEN_MFA"===i)return this.Session=e.Session,r.totpRequired(i,a);if("CUSTOM_CHALLENGE"===i)return this.Session=e.Session,r.customChallenge(a);if("NEW_PASSWORD_REQUIRED"===i){this.Session=e.Session;var s=null,u=null,c=[],l=t.getNewPasswordRequiredChallengeUserAttributePrefix();if(a&&(s=JSON.parse(e.ChallengeParameters.userAttributes),u=JSON.parse(e.ChallengeParameters.requiredAttributes)),u)for(var p=0;p0&&void 0!==arguments[0]?arguments[0]:{},t=e.stateReconciler||p;return function(e){return function(t,n,i){var o=e(r(t),n,i);return c({},o,{replaceReducer:function(e){return o.replaceReducer(r(e))}})}};function r(r){var n=!1,o=[];return function(a,s){if(s.type!==i)return e.log&&!n&&o.push(s),r(a,s);e.log&&!n&&function(e){var t=e.slice(1);t.length>0&&console.log("\n redux-persist/autoRehydrate: %d actions were fired before rehydration completed. This can be a symptom of a race\n condition where the rehydrate action may overwrite the previously affected state. Consider running these actions\n after rehydration:\n ",t.length,t)}(o),n=!0;var u=s.payload,c=r(a,s);return t(a,u,c,e.log)}}}function p(e,t,r,n){var i=c({},r);return Object.keys(t).forEach(function(o){if(e.hasOwnProperty(o))if("object"!==u(e[o])||t[o]){if(e[o]!==r[o])return n&&console.log("redux-persist/autoRehydrate: sub state for key `%s` modified, skipping autoRehydrate.",o),void(i[o]=r[o]);s(t[o])&&s(e[o])?i[o]=c({},e[o],t[o]):i[o]=t[o],n&&console.log("redux-persist/autoRehydrate: key `%s`, rehydrated to ",o,i[o])}else n&&console.log("redux-persist/autoRehydrate: sub state for key `%s` is falsy but initial state is an object, skipping autoRehydrate.",o)}),i}var d=r(44),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=function(){return null};function m(e){if("object"!==("undefined"==typeof window?"undefined":f(window))||!(e in window))return!1;try{var t=window[e],r="redux-persist "+e+" test";t.setItem(r,"test"),t.getItem(r),t.removeItem(r)}catch(e){return!1}return!0}function g(e){return"local"===e?m("localStorage")?window.localStorage:{getItem:h,setItem:h,removeItem:h,getAllKeys:h}:"session"===e?m("sessionStorage")?window.sessionStorage:{getItem:h,setItem:h,removeItem:h,getAllKeys:h}:void 0}var y=function(e,t){var r=g(e);return{getAllKeys:function(e){return new Promise(function(t,n){try{for(var i=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:{}).serial?d(t,function(e,t){try{var n=o(e),i=u.reduceRight(function(e,r){return r.out(e,t)},n);r=h(r,t,i)}catch(e){}}):r=t,e.dispatch(function(e){return{type:i,payload:e}}(r)),r},pause:function(){b=!0},resume:function(){b=!1},purge:function(e){return v({storage:m,keyPrefix:l},e)}}}function x(e){return w()(e,null,null,function(e,t){throw new Error('\n redux-persist: cannot process cyclical state.\n Consider changing your state structure to have no cycles.\n Alternatively blacklist the corresponding reducer key.\n Cycle encounted at key "'+e+'" with value "'+t+'".\n ')})}function E(e){return JSON.parse(e)}function T(e,t){return Object.keys(e).forEach(function(r){return t(e[r],r)})}function k(e,t){return e[t]}function I(e,t,r){return e[t]=r,e}var _=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.whitelist||null,i=r.blacklist||null;function o(e){return!(!n||-1!==n.indexOf(e))||!(!i||-1===i.indexOf(e))}return{in:function(t,r){return!o(r)&&e?e(t,r):t},out:function(e,r){return!o(r)&&t?t(e,r):e}}},C=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],n=!t.skipRestore;var o=null,a=S(e,t);function s(e,t){a.resume(),r&&r(e,t)}return a.pause(),n?Object(d.a)(function(){N(t,function(t,r){if(t)s(t);else{o&&("*"===o?r={}:o.forEach(function(e){return delete r[e]}));try{e.dispatch(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:i,payload:e,error:t}}(r,t))}finally{s(t,r)}}})}):Object(d.a)(s),O({},a,{purge:function(e){return o=e||"*",a.purge(e)}})}r.d(t,"storages",function(){return L}),r.d(t,"autoRehydrate",function(){return l}),r.d(t,"createPersistor",function(){return S}),r.d(t,"createTransform",function(){return _}),r.d(t,"getStoredState",function(){return N}),r.d(t,"persistStore",function(){return R}),r.d(t,"purgeStoredState",function(){return v});var P=function(e,t,r){console.error('redux-persist: this method of importing storages has been removed. instead use `import { asyncLocalStorage } from "redux-persist/storages"`'),"function"==typeof e&&e(),"function"==typeof t&&t(),"function"==typeof r&&r()},D={getAllKeys:P,getItem:P,setItem:P,removeItem:P},L={asyncLocalStorage:D,asyncSessionStorage:D}},function(e,t,r){"use strict";r.r(t);var n=r(70),i=r(103),o={INIT:"@@redux/INIT"};function a(e,t,r){var s;if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(a)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var u=e,c=t,l=[],p=l,d=!1;function f(){p===l&&(p=l.slice())}function h(){return c}function m(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return f(),p.push(e),function(){if(t){t=!1,f();var r=p.indexOf(e);p.splice(r,1)}}}function g(e){if(!Object(n.a)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,c=u(c,e)}finally{d=!1}for(var t=l=p,r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(u)throw u;for(var n=!1,i={},o=0;o=300&&s(t,r,"Response not successful: Received status code "+t.status),Array.isArray(r)||r.hasOwnProperty("data")||r.hasOwnProperty("errors")||s(t,r,"Server response was missing for query '"+(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName)+"'."),r})}}(e)).then(function(e){return r.next(e),r.complete(),e}).catch(function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e))}),function(){t&&t.abort()}})})};var d=function(e){function t(t){return e.call(this,p(t).request)||this}return c(t,e),t}(n.ApolloLink);r.d(t,"createHttpLink",function(){return p}),r.d(t,"HttpLink",function(){return d})},function(e,t,r){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&function(e){return function(t){return function(r,n){var i={key:r,value:t[r]},o={key:n,value:t[n]};return e(i,o)}}}(t.cmp),i=[];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 o,a;if(Array.isArray(t)){for(a="[",o=0;o0){var a=r.indexOf(this);~a?r.splice(a+1):r.push(this),~a?n.splice(a,1/0,i):n.push(i),~r.indexOf(o)&&(o=t.call(this,i,o))}else r.push(o);return null==e?o:e.call(this,i,o)}}(e.exports=function(e,t,n,i){return JSON.stringify(e,r(t,i),n)}).getSerialize=r},function(e,t,r){"use strict";var n=a(r(25)),i=a(r(447)),o=a(r(454));a(r(1033));function a(e){return e&&e.__esModule?e:{default:e}}r(1034),r(1037),i.default.render(n.default.createElement(o.default,null),document.getElementById("root"))},function(e,t,r){"use strict"; /** @license React v16.4.2 * react.production.min.js * * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var n=r(224),i=r(225),o=r(226),a=r(227),s="function"==typeof Symbol&&Symbol.for,u=s?Symbol.for("react.element"):60103,c=s?Symbol.for("react.portal"):60106,l=s?Symbol.for("react.fragment"):60107,p=s?Symbol.for("react.strict_mode"):60108,d=s?Symbol.for("react.profiler"):60114,f=s?Symbol.for("react.provider"):60109,h=s?Symbol.for("react.context"):60110,m=s?Symbol.for("react.async_mode"):60111,g=s?Symbol.for("react.forward_ref"):60112;s&&Symbol.for("react.timeout");var y="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t=arguments.length-1,r="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=0;nA.length&&A.push(e)}function P(e,t,r,n){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var o=!1;if(null===e)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case u:case c:o=!0}}if(o)return r(n,e,""===t?"."+D(e,0):t),1;if(o=0,t=""===t?".":t+":",Array.isArray(e))for(var a=0;athis.eventPool.length&&this.eventPool.push(e)}function Ee(e){e.eventPool=[],e.getPooled=Se,e.release=xe}a(we.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=s.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=s.thatReturnsTrue)},persist:function(){this.isPersistent=s.thatReturnsTrue},isPersistent:s.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t=Ce),Oe=String.fromCharCode(32),Re={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Pe=!1;function De(e,t){switch(e){case"keyup":return-1!==Ie.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Le(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Me=!1;var qe={eventTypes:Re,extractEvents:function(e,t,r,n){var i=void 0,o=void 0;if(_e)e:{switch(e){case"compositionstart":i=Re.compositionStart;break e;case"compositionend":i=Re.compositionEnd;break e;case"compositionupdate":i=Re.compositionUpdate;break e}i=void 0}else Me?De(e,r)&&(i=Re.compositionEnd):"keydown"===e&&229===r.keyCode&&(i=Re.compositionStart);return i?(Ae&&(Me||i!==Re.compositionStart?i===Re.compositionEnd&&Me&&(o=ge()):(me._root=n,me._startText=ye(),Me=!0)),i=Te.getPooled(i,t,r,n),o?i.data=o:null!==(o=Le(r))&&(i.data=o),ee(i),o=i):o=null,(e=Ne?function(e,t){switch(e){case"compositionend":return Le(t);case"keypress":return 32!==t.which?null:(Pe=!0,Oe);case"textInput":return(e=t.data)===Oe&&Pe?null:e;default:return null}}(e,r):function(e,t){if(Me)return"compositionend"===e||!_e&&De(e,t)?(e=ge(),me._root=null,me._startText=null,me._fallbackText=null,Me=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1