(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5834],{25687:function(t,n,i){"use strict";function invariant(t,n,i){if(void 0===i&&(i=Error),!t)throw new i(n)}i.d(n,{kG:function(){return invariant}})},95957:function(t,n,i){"use strict";function memoize(t,n){var i=n&&n.cache?n.cache:o,a=n&&n.serializer?n.serializer:serializerDefault;return(n&&n.strategy?n.strategy:function(t,n){var i,o,a=1===t.length?monadic:variadic;return i=n.cache.create(),o=n.serializer,a.bind(this,t,i,o)})(t,{cache:i,serializer:a})}function monadic(t,n,i,o){var a=null==o||"number"==typeof o||"boolean"==typeof o?o:i(o),u=n.get(a);return void 0===u&&(u=t.call(this,o),n.set(a,u)),u}function variadic(t,n,i){var o=Array.prototype.slice.call(arguments,3),a=i(o),u=n.get(a);return void 0===u&&(u=t.apply(this,o),n.set(a,u)),u}i.d(n,{A:function(){return a},H:function(){return memoize}});var serializerDefault=function(){return JSON.stringify(arguments)};function ObjectWithoutPrototypeCache(){this.cache=Object.create(null)}ObjectWithoutPrototypeCache.prototype.get=function(t){return this.cache[t]},ObjectWithoutPrototypeCache.prototype.set=function(t,n){this.cache[t]=n};var o={create:function(){return new ObjectWithoutPrototypeCache}},a={variadic:function(t,n){var i,o;return i=n.cache.create(),o=n.serializer,variadic.bind(this,t,i,o)},monadic:function(t,n){var i,o;return i=n.cache.create(),o=n.serializer,monadic.bind(this,t,i,o)}}},56096:function(t,n,i){"use strict";i.d(n,{wD:function(){return f},VG:function(){return isArgumentElement},rp:function(){return isDateElement},Ii:function(){return isDateTimeSkeleton},O4:function(){return isLiteralElement},uf:function(){return isNumberElement},Wh:function(){return isNumberSkeleton},Jo:function(){return isPluralElement},yx:function(){return isPoundElement},Wi:function(){return isSelectElement},HI:function(){return isTagElement},pe:function(){return isTimeElement},Qc:function(){return parse}});var o,a,u,c,f,p,y,m,v=i(97582);function isLiteralElement(t){return t.type===f.literal}function isArgumentElement(t){return t.type===f.argument}function isNumberElement(t){return t.type===f.number}function isDateElement(t){return t.type===f.date}function isTimeElement(t){return t.type===f.time}function isSelectElement(t){return t.type===f.select}function isPluralElement(t){return t.type===f.plural}function isPoundElement(t){return t.type===f.pound}function isTagElement(t){return t.type===f.tag}function isNumberSkeleton(t){return!!(t&&"object"==typeof t&&t.type===p.number)}function isDateTimeSkeleton(t){return!!(t&&"object"==typeof t&&t.type===p.dateTime)}(o=c||(c={}))[o.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",o[o.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",o[o.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",o[o.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",o[o.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",o[o.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",o[o.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",o[o.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",o[o.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",o[o.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",o[o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",o[o.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",o[o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",o[o.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",o[o.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",o[o.INVALID_TAG=23]="INVALID_TAG",o[o.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",o[o.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",o[o.UNCLOSED_TAG=27]="UNCLOSED_TAG",(a=f||(f={}))[a.literal=0]="literal",a[a.argument=1]="argument",a[a.number=2]="number",a[a.date=3]="date",a[a.time=4]="time",a[a.select=5]="select",a[a.plural=6]="plural",a[a.pound=7]="pound",a[a.tag=8]="tag",(u=p||(p={}))[u.number=0]="number",u[u.dateTime=1]="dateTime";var g=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,b=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,T=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,_=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,E=/^(@+)?(\+|#+)?[rs]?$/g,S=/(\*)(0+)|(#+)(0+)|(0+)/g,I=/^(0+)$/;function parseSignificantPrecision(t){var n={};return"r"===t[t.length-1]?n.roundingPriority="morePrecision":"s"===t[t.length-1]&&(n.roundingPriority="lessPrecision"),t.replace(E,function(t,i,o){return"string"!=typeof o?(n.minimumSignificantDigits=i.length,n.maximumSignificantDigits=i.length):"+"===o?n.minimumSignificantDigits=i.length:"#"===i[0]?n.maximumSignificantDigits=i.length:(n.minimumSignificantDigits=i.length,n.maximumSignificantDigits=i.length+("string"==typeof o?o.length:0)),""}),n}function parseSign(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function parseNotationOptions(t){return parseSign(t)||{}}var O={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},N=new RegExp("^".concat(g.source,"*")),w=new RegExp("".concat(g.source,"*$"));function createLocation(t,n){return{start:t,end:n}}var A=!!String.prototype.startsWith&&"_a".startsWith("a",1),R=!!String.fromCodePoint,k=!!Object.fromEntries,C=!!String.prototype.codePointAt,D=!!String.prototype.trimStart,L=!!String.prototype.trimEnd,F=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&9007199254740991>=Math.abs(t)},M=!0;try{var P=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");M=(null===(y=P.exec("a"))||void 0===y?void 0:y[0])==="a"}catch(t){M=!1}var x=A?function(t,n,i){return t.startsWith(n,i)}:function(t,n,i){return t.slice(i,i+n.length)===n},j=R?String.fromCodePoint:function(){for(var t,n=[],i=0;iu;){if((t=n[u++])>1114111)throw RangeError(t+" is not a valid code point");o+=t<65536?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10)+55296,t%1024+56320)}return o},U=k?Object.fromEntries:function(t){for(var n={},i=0;i=o)){var a=t.charCodeAt(n);return a<55296||a>56319||n+1===o||(i=t.charCodeAt(n+1))<56320||i>57343?a:(a-55296<<10)+(i-56320)+65536}},B=D?function(t){return t.trimStart()}:function(t){return t.replace(N,"")},q=L?function(t){return t.trimEnd()}:function(t){return t.replace(w,"")};function RE(t,n){return new RegExp(t,n)}if(M){var Q=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");m=function(t,n){var i;return Q.lastIndex=n,null!==(i=Q.exec(t)[1])&&void 0!==i?i:""}}else m=function(t,n){for(var i=[];;){var o,a=V(t,n);if(void 0===a||_isWhiteSpace(a)||(o=a)>=33&&o<=35||36===o||o>=37&&o<=39||40===o||41===o||42===o||43===o||44===o||45===o||o>=46&&o<=47||o>=58&&o<=59||o>=60&&o<=62||o>=63&&o<=64||91===o||92===o||93===o||94===o||96===o||123===o||124===o||125===o||126===o||161===o||o>=162&&o<=165||166===o||167===o||169===o||171===o||172===o||174===o||176===o||177===o||182===o||187===o||191===o||215===o||247===o||o>=8208&&o<=8213||o>=8214&&o<=8215||8216===o||8217===o||8218===o||o>=8219&&o<=8220||8221===o||8222===o||8223===o||o>=8224&&o<=8231||o>=8240&&o<=8248||8249===o||8250===o||o>=8251&&o<=8254||o>=8257&&o<=8259||8260===o||8261===o||8262===o||o>=8263&&o<=8273||8274===o||8275===o||o>=8277&&o<=8286||o>=8592&&o<=8596||o>=8597&&o<=8601||o>=8602&&o<=8603||o>=8604&&o<=8607||8608===o||o>=8609&&o<=8610||8611===o||o>=8612&&o<=8613||8614===o||o>=8615&&o<=8621||8622===o||o>=8623&&o<=8653||o>=8654&&o<=8655||o>=8656&&o<=8657||8658===o||8659===o||8660===o||o>=8661&&o<=8691||o>=8692&&o<=8959||o>=8960&&o<=8967||8968===o||8969===o||8970===o||8971===o||o>=8972&&o<=8991||o>=8992&&o<=8993||o>=8994&&o<=9e3||9001===o||9002===o||o>=9003&&o<=9083||9084===o||o>=9085&&o<=9114||o>=9115&&o<=9139||o>=9140&&o<=9179||o>=9180&&o<=9185||o>=9186&&o<=9254||o>=9255&&o<=9279||o>=9280&&o<=9290||o>=9291&&o<=9311||o>=9472&&o<=9654||9655===o||o>=9656&&o<=9664||9665===o||o>=9666&&o<=9719||o>=9720&&o<=9727||o>=9728&&o<=9838||9839===o||o>=9840&&o<=10087||10088===o||10089===o||10090===o||10091===o||10092===o||10093===o||10094===o||10095===o||10096===o||10097===o||10098===o||10099===o||10100===o||10101===o||o>=10132&&o<=10175||o>=10176&&o<=10180||10181===o||10182===o||o>=10183&&o<=10213||10214===o||10215===o||10216===o||10217===o||10218===o||10219===o||10220===o||10221===o||10222===o||10223===o||o>=10224&&o<=10239||o>=10240&&o<=10495||o>=10496&&o<=10626||10627===o||10628===o||10629===o||10630===o||10631===o||10632===o||10633===o||10634===o||10635===o||10636===o||10637===o||10638===o||10639===o||10640===o||10641===o||10642===o||10643===o||10644===o||10645===o||10646===o||10647===o||10648===o||o>=10649&&o<=10711||10712===o||10713===o||10714===o||10715===o||o>=10716&&o<=10747||10748===o||10749===o||o>=10750&&o<=11007||o>=11008&&o<=11055||o>=11056&&o<=11076||o>=11077&&o<=11078||o>=11079&&o<=11084||o>=11085&&o<=11123||o>=11124&&o<=11125||o>=11126&&o<=11157||11158===o||o>=11159&&o<=11263||o>=11776&&o<=11777||11778===o||11779===o||11780===o||11781===o||o>=11782&&o<=11784||11785===o||11786===o||11787===o||11788===o||11789===o||o>=11790&&o<=11798||11799===o||o>=11800&&o<=11801||11802===o||11803===o||11804===o||11805===o||o>=11806&&o<=11807||11808===o||11809===o||11810===o||11811===o||11812===o||11813===o||11814===o||11815===o||11816===o||11817===o||o>=11818&&o<=11822||11823===o||o>=11824&&o<=11833||o>=11834&&o<=11835||o>=11836&&o<=11839||11840===o||11841===o||11842===o||o>=11843&&o<=11855||o>=11856&&o<=11857||11858===o||o>=11859&&o<=11903||o>=12289&&o<=12291||12296===o||12297===o||12298===o||12299===o||12300===o||12301===o||12302===o||12303===o||12304===o||12305===o||o>=12306&&o<=12307||12308===o||12309===o||12310===o||12311===o||12312===o||12313===o||12314===o||12315===o||12316===o||12317===o||o>=12318&&o<=12319||12320===o||12336===o||64830===o||64831===o||o>=65093&&o<=65094)break;i.push(a),n+=a>=65536?2:1}return j.apply(void 0,i)};var G=function(){function Parser(t,n){void 0===n&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return Parser.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Parser.prototype.parseMessage=function(t,n,i){for(var o=[];!this.isEOF();){var a=this.char();if(123===a){var u=this.parseArgument(t,i);if(u.err)return u;o.push(u.val)}else if(125===a&&t>0)break;else if(35===a&&("plural"===n||"selectordinal"===n)){var p=this.clonePosition();this.bump(),o.push({type:f.pound,location:createLocation(p,this.clonePosition())})}else if(60!==a||this.ignoreTag||47!==this.peek()){if(60===a&&!this.ignoreTag&&_isAlpha(this.peek()||0)){var u=this.parseTag(t,n);if(u.err)return u;o.push(u.val)}else{var u=this.parseLiteral(t,n);if(u.err)return u;o.push(u.val)}}else{if(!i)return this.error(c.UNMATCHED_CLOSING_TAG,createLocation(this.clonePosition(),this.clonePosition()));break}}return{val:o,err:null}},Parser.prototype.parseTag=function(t,n){var i=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:f.literal,value:"<".concat(o,"/>"),location:createLocation(i,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(c.INVALID_TAG,createLocation(i,this.clonePosition()));var a=this.parseMessage(t+1,n,!0);if(a.err)return a;var u=a.val,p=this.clonePosition();if(!this.bumpIf(""))?{val:{type:f.tag,value:o,children:u,location:createLocation(i,this.clonePosition())},err:null}:this.error(c.INVALID_TAG,createLocation(p,this.clonePosition()))},Parser.prototype.parseTagName=function(){var t,n=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039);)this.bump();return this.message.slice(n,this.offset())},Parser.prototype.parseLiteral=function(t,n){for(var i=this.clonePosition(),o="";;){var a=this.tryParseQuote(n);if(a){o+=a;continue}var u=this.tryParseUnquoted(t,n);if(u){o+=u;continue}var c=this.tryParseLeftAngleBracket();if(c){o+=c;continue}break}var p=createLocation(i,this.clonePosition());return{val:{type:f.literal,value:o,location:p},err:null}},Parser.prototype.tryParseLeftAngleBracket=function(){var t;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(_isAlpha(t=this.peek()||0)||47===t)?null:(this.bump(),"<")},Parser.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i){if(39===this.peek())n.push(39),this.bump();else{this.bump();break}}else n.push(i);this.bump()}return j.apply(void 0,n)},Parser.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var i=this.char();return 60===i||123===i||35===i&&("plural"===n||"selectordinal"===n)||125===i&&t>0?null:(this.bump(),j(i))},Parser.prototype.parseArgument=function(t,n){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(c.EMPTY_ARGUMENT,createLocation(i,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(c.MALFORMED_ARGUMENT,createLocation(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:f.argument,value:o,location:createLocation(i,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(i,this.clonePosition()));return this.parseArgumentOptions(t,n,o,i);default:return this.error(c.MALFORMED_ARGUMENT,createLocation(i,this.clonePosition()))}},Parser.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),i=m(this.message,n),o=n+i.length;return this.bumpTo(o),{value:i,location:createLocation(t,this.clonePosition())}},Parser.prototype.parseArgumentOptions=function(t,n,i,o){var a,u=this.clonePosition(),y=this.parseIdentifierIfPossible().value,m=this.clonePosition();switch(y){case"":return this.error(c.EXPECT_ARGUMENT_TYPE,createLocation(u,m));case"number":case"date":case"time":this.bumpSpace();var g=null;if(this.bumpIf(",")){this.bumpSpace();var T=this.clonePosition(),_=this.parseSimpleArgStyleIfPossible();if(_.err)return _;var E=q(_.val);if(0===E.length)return this.error(c.EXPECT_ARGUMENT_STYLE,createLocation(this.clonePosition(),this.clonePosition()));g={style:E,styleLocation:createLocation(T,this.clonePosition())}}var S=this.tryParseArgumentClose(o);if(S.err)return S;var I=createLocation(o,this.clonePosition());if(g&&x(null==g?void 0:g.style,"::",0)){var N,w=B(g.style.slice(2));if("number"===y){var _=this.parseNumberSkeletonFromString(w,g.styleLocation);if(_.err)return _;return{val:{type:f.number,value:i,location:I,style:_.val},err:null}}if(0===w.length)return this.error(c.EXPECT_DATE_TIME_SKELETON,I);var A=w;this.locale&&(A=function(t,n){for(var i="",o=0;o>1),p=function(t){var n,i=t.hourCycle;if(void 0===i&&t.hourCycles&&t.hourCycles.length&&(i=t.hourCycles[0]),i)switch(i){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var o=t.language;return"root"!==o&&(n=t.maximize().region),(O[n||""]||O[o||""]||O["".concat(o,"-001")]||O["001"])[0]}(n);for(("H"==p||"k"==p)&&(f=0);f-- >0;)i+="a";for(;c-- >0;)i=p+i}else"J"===a?i+="H":i+=a}return i}(w,this.locale));var E={type:p.dateTime,pattern:A,location:g.styleLocation,parsedOptions:this.shouldParseSkeletons?(N={},A.replace(b,function(t){var n=t.length;switch(t[0]){case"G":N.era=4===n?"long":5===n?"narrow":"short";break;case"y":N.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":N.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":N.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":N.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");N.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");N.weekday=["short","long","narrow","short"][n-4];break;case"a":N.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":N.hourCycle="h12",N.hour=["numeric","2-digit"][n-1];break;case"H":N.hourCycle="h23",N.hour=["numeric","2-digit"][n-1];break;case"K":N.hourCycle="h11",N.hour=["numeric","2-digit"][n-1];break;case"k":N.hourCycle="h24",N.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":N.minute=["numeric","2-digit"][n-1];break;case"s":N.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":N.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),N):{}};return{val:{type:"date"===y?f.date:f.time,value:i,location:I,style:E},err:null}}return{val:{type:"number"===y?f.number:"date"===y?f.date:f.time,value:i,location:I,style:null!==(a=null==g?void 0:g.style)&&void 0!==a?a:null},err:null};case"plural":case"selectordinal":case"select":var R=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(c.EXPECT_SELECT_ARGUMENT_OPTIONS,createLocation(R,(0,v.pi)({},R)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),C=0;if("select"!==y&&"offset"===k.value){if(!this.bumpIf(":"))return this.error(c.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,createLocation(this.clonePosition(),this.clonePosition()));this.bumpSpace();var _=this.tryParseDecimalInteger(c.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,c.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(_.err)return _;this.bumpSpace(),k=this.parseIdentifierIfPossible(),C=_.val}var D=this.tryParsePluralOrSelectOptions(t,y,n,k);if(D.err)return D;var S=this.tryParseArgumentClose(o);if(S.err)return S;var L=createLocation(o,this.clonePosition());if("select"===y)return{val:{type:f.select,value:i,options:U(D.val),location:L},err:null};return{val:{type:f.plural,value:i,options:U(D.val),offset:C,pluralType:"plural"===y?"cardinal":"ordinal",location:L},err:null};default:return this.error(c.INVALID_ARGUMENT_TYPE,createLocation(u,m))}},Parser.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(c.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},Parser.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(c.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,createLocation(i,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(n.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(n.offset,this.offset()),err:null}},Parser.prototype.parseNumberSkeletonFromString=function(t,n){var i=[];try{i=function(t){if(0===t.length)throw Error("Number skeleton cannot be empty");for(var n=t.split(T).filter(function(t){return t.length>0}),i=[],o=0;o1)throw RangeError("integer-width stems only accept a single optional option");o.options[0].replace(S,function(t,i,o,a,u,c){if(i)n.minimumIntegerDigits=o.length;else if(a&&u)throw Error("We currently do not support maximum integer digits");else if(c)throw Error("We currently do not support exact integer digits");return""});continue}if(I.test(o.stem)){n.minimumIntegerDigits=o.stem.length;continue}if(_.test(o.stem)){if(o.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(_,function(t,i,o,a,u,c){return"*"===o?n.minimumFractionDigits=i.length:a&&"#"===a[0]?n.maximumFractionDigits=a.length:u&&c?(n.minimumFractionDigits=u.length,n.maximumFractionDigits=u.length+c.length):(n.minimumFractionDigits=i.length,n.maximumFractionDigits=i.length),""});var a=o.options[0];"w"===a?n=(0,v.pi)((0,v.pi)({},n),{trailingZeroDisplay:"stripIfInteger"}):a&&(n=(0,v.pi)((0,v.pi)({},n),parseSignificantPrecision(a)));continue}if(E.test(o.stem)){n=(0,v.pi)((0,v.pi)({},n),parseSignificantPrecision(o.stem));continue}var u=parseSign(o.stem);u&&(n=(0,v.pi)((0,v.pi)({},n),u));var c=function(t){var n;if("E"===t[0]&&"E"===t[1]?(n={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(n={notation:"scientific"},t=t.slice(1)),n){var i=t.slice(0,2);if("+!"===i?(n.signDisplay="always",t=t.slice(2)):"+?"===i&&(n.signDisplay="exceptZero",t=t.slice(2)),!I.test(t))throw Error("Malformed concise eng/scientific notation");n.minimumIntegerDigits=t.length}return n}(o.stem);c&&(n=(0,v.pi)((0,v.pi)({},n),c))}return n}(i):{}},err:null}},Parser.prototype.tryParsePluralOrSelectOptions=function(t,n,i,o){for(var a,u=!1,f=[],p=new Set,y=o.value,m=o.location;;){if(0===y.length){var v=this.clonePosition();if("select"!==n&&this.bumpIf("=")){var g=this.tryParseDecimalInteger(c.EXPECT_PLURAL_ARGUMENT_SELECTOR,c.INVALID_PLURAL_ARGUMENT_SELECTOR);if(g.err)return g;m=createLocation(v,this.clonePosition()),y=this.message.slice(v.offset,this.offset())}else break}if(p.has(y))return this.error("select"===n?c.DUPLICATE_SELECT_ARGUMENT_SELECTOR:c.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,m);"other"===y&&(u=!0),this.bumpSpace();var b=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===n?c.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:c.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,createLocation(this.clonePosition(),this.clonePosition()));var T=this.parseMessage(t+1,n,i);if(T.err)return T;var _=this.tryParseArgumentClose(b);if(_.err)return _;f.push([y,{value:T.val,location:createLocation(b,this.clonePosition())}]),p.add(y),this.bumpSpace(),y=(a=this.parseIdentifierIfPossible()).value,m=a.location}return 0===f.length?this.error("select"===n?c.EXPECT_SELECT_ARGUMENT_SELECTOR:c.EXPECT_PLURAL_ARGUMENT_SELECTOR,createLocation(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!u?this.error(c.MISSING_OTHER_CLAUSE,createLocation(this.clonePosition(),this.clonePosition())):{val:f,err:null}},Parser.prototype.tryParseDecimalInteger=function(t,n){var i=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var a=!1,u=0;!this.isEOF();){var c=this.char();if(c>=48&&c<=57)a=!0,u=10*u+(c-48),this.bump();else break}var f=createLocation(o,this.clonePosition());return a?F(u*=i)?{val:u,err:null}:this.error(n,f):this.error(t,f)},Parser.prototype.offset=function(){return this.position.offset},Parser.prototype.isEOF=function(){return this.offset()===this.message.length},Parser.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Parser.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=V(this.message,t);if(void 0===n)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},Parser.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},Parser.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},Parser.prototype.bumpIf=function(t){if(x(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},Parser.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},Parser.prototype.bumpSpace=function(){for(;!this.isEOF()&&_isWhiteSpace(this.char());)this.bump()},Parser.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),i=this.message.charCodeAt(n+(t>=65536?2:1));return null!=i?i:null},Parser}();function _isAlpha(t){return t>=97&&t<=122||t>=65&&t<=90}function _isWhiteSpace(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function parse(t,n){void 0===n&&(n={}),n=(0,v.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},n);var i=new G(t,n).parse();if(i.err){var o=SyntaxError(c[i.err.kind]);throw o.location=i.err.location,o.originalMessage=i.err.message,o}return(null==n?void 0:n.captureLocation)||function pruneLocation(t){t.forEach(function(t){if(delete t.location,isSelectElement(t)||isPluralElement(t))for(var n in t.options)delete t.options[n].location,pruneLocation(t.options[n].value);else isNumberElement(t)&&isNumberSkeleton(t.style)?delete t.style.location:(isDateElement(t)||isTimeElement(t))&&isDateTimeSkeleton(t.style)?delete t.style.location:isTagElement(t)&&pruneLocation(t.children)})}(i.val),i.val}},88222:function(t,n,i){"use strict";i.d(n,{$6:function(){return g},OV:function(){return p},Qe:function(){return m},X9:function(){return v},gb:function(){return y},wI:function(){return f}});var o,a,u=i(97582);(o=a||(a={})).FORMAT_ERROR="FORMAT_ERROR",o.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",o.INVALID_CONFIG="INVALID_CONFIG",o.MISSING_DATA="MISSING_DATA",o.MISSING_TRANSLATION="MISSING_TRANSLATION";var c=function(t){function IntlError(n,i,o){var a=this,u=o?o instanceof Error?o:Error(String(o)):void 0;return(a=t.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(i,"\n").concat(u?"\n".concat(u.message,"\n").concat(u.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,IntlError),a}return(0,u.ZT)(IntlError,t),IntlError}(Error),f=function(t){function UnsupportedFormatterError(n,i){return t.call(this,a.UNSUPPORTED_FORMATTER,n,i)||this}return(0,u.ZT)(UnsupportedFormatterError,t),UnsupportedFormatterError}(c),p=function(t){function InvalidConfigError(n,i){return t.call(this,a.INVALID_CONFIG,n,i)||this}return(0,u.ZT)(InvalidConfigError,t),InvalidConfigError}(c),y=function(t){function MissingDataError(n,i){return t.call(this,a.MISSING_DATA,n,i)||this}return(0,u.ZT)(MissingDataError,t),MissingDataError}(c),m=function(t){function IntlFormatError(n,i,o){var u=t.call(this,a.FORMAT_ERROR,"".concat(n,"\nLocale: ").concat(i,"\n"),o)||this;return u.locale=i,u}return(0,u.ZT)(IntlFormatError,t),IntlFormatError}(c),v=function(t){function MessageFormatError(n,i,o,a){var u=t.call(this,"".concat(n,"\nMessageID: ").concat(null==o?void 0:o.id,"\nDefault Message: ").concat(null==o?void 0:o.defaultMessage,"\nDescription: ").concat(null==o?void 0:o.description,"\n"),i,a)||this;return u.descriptor=o,u.locale=i,u}return(0,u.ZT)(MessageFormatError,t),MessageFormatError}(m),g=function(t){function MissingTranslationError(n,i){var o=t.call(this,a.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(i,'", using ').concat(n.defaultMessage?"default message (".concat("string"==typeof n.defaultMessage?n.defaultMessage:n.defaultMessage.map(function(t){var n;return null!==(n=t.value)&&void 0!==n?n:JSON.stringify(t)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=n,o}return(0,u.ZT)(MissingTranslationError,t),MissingTranslationError}(c)},82644:function(t,n,i){"use strict";i.d(n,{L6:function(){return filterProps},Sn:function(){return createIntlCache},TB:function(){return getNamedFormat},Z0:function(){return f},ax:function(){return createFormatters}});var o=i(97582),a=i(16284),u=i(95957),c=i(88222);function filterProps(t,n,i){return void 0===i&&(i={}),n.reduce(function(n,o){return o in t?n[o]=t[o]:o in i&&(n[o]=i[o]),n},{})}var f={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(t){},onWarn:function(t){}};function createIntlCache(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function createFastMemoizeCache(t){return{create:function(){return{get:function(n){return t[n]},set:function(n,i){t[n]=i}}}}}function createFormatters(t){void 0===t&&(t=createIntlCache());var n=Intl.RelativeTimeFormat,i=Intl.ListFormat,c=Intl.DisplayNames,f=(0,u.H)(function(){for(var t,n=[],i=0;i0&&a[a.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]0&&a[a.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]this.maxSize&&!this.paused))return[3,4];return[4,this.purge()];case 3:return i.sent(),this.paused=!0,[2];case 4:if(this.paused)return[2];return[4,this.storage.write(t)];case 5:return i.sent(),this.log.info("string"==typeof t?"Persisted cache of size "+t.length+" characters":"Persisted cache"),[3,7];case 6:throw n=i.sent(),this.log.error("Error persisting cache",n),n;case 7:return[2]}})})},Persistor.prototype.restore=function(){return Persistor_awaiter(this,void 0,void 0,function(){var t,n;return Persistor_generator(this,function(i){switch(i.label){case 0:return i.trys.push([0,5,,6]),[4,this.storage.read()];case 1:if(!(null!=(t=i.sent())))return[3,3];return[4,this.cache.restore(t)];case 2:return i.sent(),this.log.info("string"==typeof t?"Restored cache of size "+t.length+" characters":"Restored cache"),[3,4];case 3:this.log.info("No stored cache to restore"),i.label=4;case 4:return[3,6];case 5:throw n=i.sent(),this.log.error("Error restoring cache",n),n;case 6:return[2]}})})},Persistor.prototype.purge=function(){return Persistor_awaiter(this,void 0,void 0,function(){var t;return Persistor_generator(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.storage.purge()];case 1:return n.sent(),this.log.info("Purged cache storage"),[3,3];case 2:throw t=n.sent(),this.log.error("Error purging cache storage",t),t;case 3:return[2]}})})},Persistor}(),onCacheWrite=function(t){var n=t.cache;return function(t){var i=n.write,o=n.evict,a=n.modify;return n.write=function(){for(var o=[],a=0;a0&&a[a.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]o.MAX_HASHABLE_LENGTH)throw Error("Cannot hash more than 2^53 - 1 bits");for(;i>0;)this.buffer[this.bufferLength++]=t[n++],i--,this.bufferLength===o.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},RawSha256.prototype.digest=function(){if(!this.finished){var t=8*this.bytesHashed,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),i=this.bufferLength;if(n.setUint8(this.bufferLength++,128),i%o.BLOCK_SIZE>=o.BLOCK_SIZE-8){for(var a=this.bufferLength;a>>24&255,u[4*a+1]=this.state[a]>>>16&255,u[4*a+2]=this.state[a]>>>8&255,u[4*a+3]=this.state[a]>>>0&255;return u},RawSha256.prototype.hashBuffer=function(){for(var t=this.buffer,n=this.state,i=n[0],a=n[1],u=n[2],c=n[3],f=n[4],p=n[5],y=n[6],m=n[7],v=0;v>>17|g<<15)^(g>>>19|g<<13)^g>>>10,T=((g=this.temp[v-15])>>>7|g<<25)^(g>>>18|g<<14)^g>>>3;this.temp[v]=(b+this.temp[v-7]|0)+(T+this.temp[v-16]|0)}var _=(((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&p^~f&y)|0)+(m+(o.KEY[v]+this.temp[v]|0)|0)|0,E=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&a^i&u^a&u)|0;m=y,y=p,p=f,f=c+_|0,c=u,u=a,a=i,i=_+E|0}n[0]+=i,n[1]+=a,n[2]+=u,n[3]+=c,n[4]+=f,n[5]+=p,n[6]+=y,n[7]+=m},RawSha256}();n.RawSha256=a},11278:function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MAX_HASHABLE_LENGTH=n.INIT=n.KEY=n.DIGEST_LENGTH=n.BLOCK_SIZE=void 0,n.BLOCK_SIZE=64,n.DIGEST_LENGTH=32,n.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),n.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],n.MAX_HASHABLE_LENGTH=9007199254740991},20830:function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),(0,i(1526).__exportStar)(i(86879),n)},86879:function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Sha256=void 0;var o=i(1526),a=i(11278),u=i(86693),c=i(18159),f=function(){function Sha256(t){if(this.hash=new u.RawSha256,t){this.outer=new u.RawSha256;var n=function(t){var n=(0,c.convertToBuffer)(t);if(n.byteLength>a.BLOCK_SIZE){var i=new u.RawSha256;i.update(n),n=i.digest()}var o=new Uint8Array(a.BLOCK_SIZE);return o.set(n),o}(t),i=new Uint8Array(a.BLOCK_SIZE);i.set(n);for(var o=0;on.indexOf(o)&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(t);an.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(t,o[a])&&(i[o[a]]=t[o[a]]);return i}function __decorate(t,n,i,o){var a,u=arguments.length,c=u<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,n,i,o);else for(var f=t.length-1;f>=0;f--)(a=t[f])&&(c=(u<3?a(c):u>3?a(n,i,c):a(n,i))||c);return u>3&&c&&Object.defineProperty(n,i,c),c}function __param(t,n){return function(i,o){n(i,o,t)}}function __metadata(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)}function __awaiter(t,n,i,o){return new(i||(i=Promise))(function(a,u){function fulfilled(t){try{step(o.next(t))}catch(t){u(t)}}function rejected(t){try{step(o.throw(t))}catch(t){u(t)}}function step(t){var n;t.done?a(t.value):((n=t.value)instanceof i?n:new i(function(t){t(n)})).then(fulfilled,rejected)}step((o=o.apply(t,n||[])).next())})}function __generator(t,n){var i,o,a,u,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function verb(u){return function(f){return function(u){if(i)throw TypeError("Generator is already executing.");for(;c;)try{if(i=1,o&&(a=2&u[0]?o.return:u[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,u[1])).done)return a;switch(o=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,o=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(!(a=(a=c.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(t,n){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var o,a,u=i.call(t),c=[];try{for(;(void 0===n||n-- >0)&&!(o=u.next()).done;)c.push(o.value)}catch(t){a={error:t}}finally{try{o&&!o.done&&(i=u.return)&&i.call(u)}finally{if(a)throw a.error}}return c}function __spread(){for(var t=[],n=0;n1||resume(t,n)})})}function resume(t,n){try{var i;(i=a[t](n)).value instanceof __await?Promise.resolve(i.value.v).then(fulfill,reject):settle(u[0][2],i)}catch(t){settle(u[0][3],t)}}function fulfill(t){resume("next",t)}function reject(t){resume("throw",t)}function settle(t,n){t(n),u.shift(),u.length&&resume(u[0][0],u[0][1])}}function __asyncDelegator(t){var n,i;return n={},verb("next"),verb("throw",function(t){throw t}),verb("return"),n[Symbol.iterator]=function(){return this},n;function verb(o,a){n[o]=t[o]?function(n){return(i=!i)?{value:__await(t[o](n)),done:"return"===o}:a?a(n):n}:a}}function __asyncValues(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=t[Symbol.asyncIterator];return i?i.call(t):(t=__values(t),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(i){n[i]=t[i]&&function(n){return new Promise(function(o,a){!function(t,n,i,o){Promise.resolve(o).then(function(n){t({value:n,done:i})},n)}(o,a,(n=t[i](n)).done,n.value)})}}}function __makeTemplateObject(t,n){return Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,t}function __importStar(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var i in t)Object.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n.default=t,n}function __importDefault(t){return t&&t.__esModule?t:{default:t}}function __classPrivateFieldGet(t,n){if(!n.has(t))throw TypeError("attempted to get private field on non-instance");return n.get(t)}function __classPrivateFieldSet(t,n,i){if(!n.has(t))throw TypeError("attempted to set private field on non-instance");return n.set(t,i),i}},1123:function(t,n,i){"use strict";var o=i(48764).lW;Object.defineProperty(n,"__esModule",{value:!0}),n.convertToBuffer=void 0;var a=i(98143),u=void 0!==o&&o.from?function(t){return o.from(t,"utf8")}:a.fromUtf8;n.convertToBuffer=function(t){return t instanceof Uint8Array?t:"string"==typeof t?u(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}},18159:function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.uint32ArrayFrom=n.numToUint8=n.isEmptyData=n.convertToBuffer=void 0;var o=i(1123);Object.defineProperty(n,"convertToBuffer",{enumerable:!0,get:function(){return o.convertToBuffer}});var a=i(89007);Object.defineProperty(n,"isEmptyData",{enumerable:!0,get:function(){return a.isEmptyData}});var u=i(97589);Object.defineProperty(n,"numToUint8",{enumerable:!0,get:function(){return u.numToUint8}});var c=i(42157);Object.defineProperty(n,"uint32ArrayFrom",{enumerable:!0,get:function(){return c.uint32ArrayFrom}})},89007:function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isEmptyData=void 0,n.isEmptyData=function(t){return"string"==typeof t?0===t.length:0===t.byteLength}},97589:function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.numToUint8=void 0,n.numToUint8=function(t){return new Uint8Array([(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t])}},42157:function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.uint32ArrayFrom=void 0,n.uint32ArrayFrom=function(t){if(!Array.from){for(var n=new Uint32Array(t.length);0n.indexOf(o)&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(t);an.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(t,o[a])&&(i[o[a]]=t[o[a]]);return i};Object.defineProperty(n,"__esModule",{value:!0});var a=i(85149);n.CONTROL_EVENTS_KEY=a.CONTROL_EVENTS_KEY;var u=i(42451),c=i(38802),f=i(10269),p=i(75171),y=i(41663);n.createSubscriptionHandshakeLink=function(t,n){var i,m;if("string"==typeof t)i=n||c.createHttpLink({uri:t}),m=u.ApolloLink.from([new p.NonTerminatingLink("controlMessages",{link:new u.ApolloLink(function(t,n){return new u.Observable(function(n){var i,u=t.variables,c=a.CONTROL_EVENTS_KEY,f=u[c],p=o(u,["symbol"==typeof c?c:c+""]);return void 0!==f&&(t.variables=p),n.next(((i={})[a.CONTROL_EVENTS_KEY]=f,i)),function(){}})})}),new p.NonTerminatingLink("subsInfo",{link:i}),new a.SubscriptionHandshakeLink("subsInfo")]);else{var v=t.url;i=n||c.createHttpLink({uri:v}),m=new y.AppSyncRealTimeSubscriptionHandshakeLink(t)}return u.ApolloLink.split(function(t){var n=t.query,i=f.getMainDefinition(n),o=i.kind,a=i.operation;return"OperationDefinition"===o&&"subscription"===a},m,i)}},75171:function(t,n,i){"use strict";var o,a=this&&this.__extends||(o=function(t,n){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])})(t,n)},function(t,n){function __(){this.constructor=t}o(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),u=this&&this.__assign||function(){return(u=Object.assign||function(t){for(var n,i=1,o=arguments.length;i0&&a[a.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]0&&a[a.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]0)){if(!this.awsRealTimeSocket){this.socketStatus=_.SOCKET_STATUS.CLOSED;return}this.awsRealTimeSocket.bufferedAmount>0?setTimeout(this._closeSocketIfRequired.bind(this),1e3):(S("closing WebSocket..."),clearTimeout(this.keepAliveTimeoutId),this.awsRealTimeSocket.close(1e3),this.awsRealTimeSocket=null,this.socketStatus=_.SOCKET_STATUS.CLOSED)}},AppSyncRealTimeSubscriptionHandshakeLink.prototype._startSubscriptionWithAWSAppSyncRealTime=function(t){var n=t.options,i=t.observer,o=t.subscriptionId;return f(this,void 0,void 0,function(){var t,a,u,f,y,m,b,T,E,S,I,O,N,w,A,R,k,C,D,L,F,M,P,x=this;return p(this,function(p){switch(p.label){case 0:return t=n.appSyncGraphqlEndpoint,a=n.authenticationType,u=n.query,f=n.variables,y=n.apiKey,m=n.region,T=void 0===(b=n.graphql_headers)?function(){return{}}:b,E=n.credentials,S=n.token,I=_.SUBSCRIPTION_STATUS.PENDING,O={query:u,variables:f},this.subscriptionObserverMap.set(o,{observer:i,query:u,variables:f,subscriptionState:I,startAckTimeoutId:null}),N=JSON.stringify(O),A=[{}],[4,this._awsRealTimeHeaderBasedAuth({apiKey:y,appSyncGraphqlEndpoint:t,authenticationType:a,payload:N,canonicalUri:"",region:m,credentials:E,token:S,graphql_headers:T})];case 1:w=c.apply(void 0,[c.apply(void 0,A.concat([p.sent()])),((P={})[v.USER_AGENT_HEADER]=v.USER_AGENT,P)]),R=JSON.stringify({id:o,payload:{data:N,extensions:{authorization:c({},w)}},type:_.MESSAGE_TYPES.GQL_START}),p.label=2;case 2:return p.trys.push([2,4,,5]),[4,this._initializeWebSocketConnection({apiKey:y,appSyncGraphqlEndpoint:t,authenticationType:a,region:m,credentials:E,token:S})];case 3:return p.sent(),[3,5];case 4:return C=void 0===(k=p.sent().message)?"":k,i.error({errors:[c({},new g.GraphQLError("Connection failed: "+C))]}),i.complete(),"function"==typeof(D=(this.subscriptionObserverMap.get(o)||{}).subscriptionFailedCallback)&&D(),[2];case 5:return F=(L=this.subscriptionObserverMap.get(o)).subscriptionFailedCallback,M=L.subscriptionReadyCallback,this.subscriptionObserverMap.set(o,{observer:i,subscriptionState:I,variables:f,query:u,subscriptionReadyCallback:M,subscriptionFailedCallback:F,startAckTimeoutId:setTimeout(function(){x._timeoutStartSubscriptionAck.call(x,o)},15e3)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send(R),[2]}})})},AppSyncRealTimeSubscriptionHandshakeLink.prototype._initializeWebSocketConnection=function(t){var n=this,i=t.appSyncGraphqlEndpoint,o=t.authenticationType,u=t.apiKey,c=t.region,y=t.credentials,m=t.token;if(this.socketStatus!==_.SOCKET_STATUS.READY)return new Promise(function(t,v){return f(n,void 0,void 0,function(){var n,f,g,b,T,E,I,O,N;return p(this,function(p){switch(p.label){case 0:if(this.promiseArray.push({res:t,rej:v}),this.socketStatus!==_.SOCKET_STATUS.CLOSED)return[3,5];p.label=1;case 1:return p.trys.push([1,4,,5]),this.socketStatus=_.SOCKET_STATUS.CONNECTING,n="{}",b=(g=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:o,payload:n,canonicalUri:"/connect",apiKey:u,appSyncGraphqlEndpoint:i,region:c,credentials:y,token:m,graphql_headers:function(){}})];case 2:return f=b.apply(g,[p.sent()]),T=a.from(f).toString("base64"),E=a.from(n).toString("base64"),I=i,O=(I=(I=this.isCustomDomain(I)?I.concat("/realtime"):I.replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta")).replace("https://","wss://").replace("http://","ws://"))+"?header="+T+"&payload="+E,[4,this._initializeRetryableHandshake({awsRealTimeUrl:O})];case 3:return p.sent(),this.promiseArray.forEach(function(t){var n=t.res;S("Notifying connection successful"),n()}),this.socketStatus=_.SOCKET_STATUS.READY,this.promiseArray=[],[3,5];case 4:return N=p.sent(),this.promiseArray.forEach(function(t){return(0,t.rej)(N)}),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=null,this.socketStatus=_.SOCKET_STATUS.CLOSED,[3,5];case 5:return[2]}})})})},AppSyncRealTimeSubscriptionHandshakeLink.prototype._awsRealTimeHeaderBasedAuth=function(t){var n=t.authenticationType,i=t.payload,o=t.canonicalUri,a=t.appSyncGraphqlEndpoint,u=t.apiKey,c=t.region,y=t.credentials,m=t.token,v=t.graphql_headers;return f(this,void 0,void 0,function(){var t,f;return p(this,function(p){switch(p.label){case 0:if("function"!=typeof(t=({API_KEY:this._awsRealTimeApiKeyHeader.bind(this),AWS_IAM:this._awsRealTimeIAMHeader.bind(this),OPENID_CONNECT:this._awsRealTimeAuthorizationHeader.bind(this),AMAZON_COGNITO_USER_POOLS:this._awsRealTimeAuthorizationHeader.bind(this),AWS_LAMBDA:this._awsRealTimeAuthorizationHeader.bind(this)})[n]))return S("Authentication type "+n+" not supported"),[2,{}];return f=b.parse(a).host,[4,t({payload:i,canonicalUri:o,appSyncGraphqlEndpoint:a,apiKey:u,region:c,host:f,credentials:y,token:m,graphql_headers:v})];case 1:return[2,p.sent()]}})})},AppSyncRealTimeSubscriptionHandshakeLink.prototype._awsRealTimeAuthorizationHeader=function(t){var n=t.host,i=t.token,o=t.graphql_headers;return f(this,void 0,void 0,function(){var t,a,u;return p(this,function(f){switch(f.label){case 0:if(t={},"function"!=typeof i)return[3,2];return[4,i.call(void 0)];case 1:return a=f.sent(),[3,4];case 2:return[4,i];case 3:a=f.sent(),f.label=4;case 4:return u=[(t.Authorization=a,t.host=n,t)],[4,o()];case 5:return[2,c.apply(void 0,u.concat([f.sent()]))]}})})},AppSyncRealTimeSubscriptionHandshakeLink.prototype._awsRealTimeApiKeyHeader=function(t){var n=t.apiKey,i=t.host,o=t.graphql_headers;return f(this,void 0,void 0,function(){var t;return p(this,function(a){switch(a.label){case 0:return t=[{host:i,"x-amz-date":new Date().toISOString().replace(/[:\-]|\.\d{3}/g,""),"x-api-key":n}],[4,o()];case 1:return[2,c.apply(void 0,t.concat([a.sent()]))]}})})},AppSyncRealTimeSubscriptionHandshakeLink.prototype._awsRealTimeIAMHeader=function(t){var n=t.payload,i=t.canonicalUri,o=t.appSyncGraphqlEndpoint,a=t.region,u=t.credentials;return f(this,void 0,void 0,function(){var t,f,y,m,g;return p(this,function(p){switch(p.label){case 0:if(t={region:a,service:"appsync"},!((f="function"==typeof u?u.call():u||{})&&"function"==typeof f.getPromise))return[3,2];return[4,f.getPromise()];case 1:p.sent(),p.label=2;case 2:if(!f)throw Error("No credentials");return[4,f];case 3:return m={access_key:(y=p.sent()).accessKeyId,secret_key:y.secretAccessKey,session_token:y.sessionToken},g={url:""+o+i,body:n,method:"POST",headers:c({},O)},[2,v.Signer.sign(g,m,t).headers]}})})},AppSyncRealTimeSubscriptionHandshakeLink.prototype._initializeRetryableHandshake=function(t){var n=t.awsRealTimeUrl;return f(this,void 0,void 0,function(){return p(this,function(t){switch(t.label){case 0:return S("Initializaling retryable Handshake"),[4,E.jitteredExponentialRetry(this._initializeHandshake.bind(this),[{awsRealTimeUrl:n}])];case 1:return t.sent(),[2]}})})},AppSyncRealTimeSubscriptionHandshakeLink.prototype._initializeHandshake=function(t){var n=t.awsRealTimeUrl;return f(this,void 0,void 0,function(){var t,i,o,a=this;return p(this,function(u){switch(u.label){case 0:S("Initializing handshake "+n),u.label=1;case 1:return u.trys.push([1,4,,5]),[4,new Promise(function(t,i){var o=AppSyncRealTimeSubscriptionHandshakeLink.createWebSocket(n,"graphql-ws");o.onerror=function(){S("WebSocket connection error")},o.onclose=function(){i(Error("Connection handshake error"))},o.onopen=function(){return a.awsRealTimeSocket=o,t()}})];case 2:return u.sent(),[4,new Promise(function(t,n){var i=!1;a.awsRealTimeSocket.onerror=function(t){S("WebSocket closed "+JSON.stringify(t))},a.awsRealTimeSocket.onclose=function(t){S("WebSocket closed "+t.reason),n(Error(JSON.stringify(t)))},a.awsRealTimeSocket.onmessage=function(o){S("subscription message from AWS AppSyncRealTime: "+o.data+" ");var u,c=JSON.parse(o.data),f=c.type,p=c.payload,y=(void 0===p?{}:p).connectionTimeoutMs;if(f===_.MESSAGE_TYPES.GQL_CONNECTION_ACK){i=!0,a.keepAliveTimeout=null!==(u=a.keepAliveTimeout)&&void 0!==u?u:void 0===y?3e5:y,a.awsRealTimeSocket.onmessage=a._handleIncomingSubscriptionMessage.bind(a),a.awsRealTimeSocket.onerror=function(t){S(t),a._errorDisconnect(_.CONTROL_MSG.CONNECTION_CLOSED)},a.awsRealTimeSocket.onclose=function(t){S("WebSocket closed "+t.reason),a._errorDisconnect(_.CONTROL_MSG.CONNECTION_CLOSED)},t("Cool, connected to AWS AppSyncRealTime");return}if(f===_.MESSAGE_TYPES.GQL_CONNECTION_ERROR){var m=c.payload,v=(void 0===m?{}:m).errors,g=(void 0===v?[]:v)[0],b=void 0===g?{}:g,T=b.errorType,E=b.errorCode;n({errorType:void 0===T?"":T,errorCode:void 0===E?0:E})}};var o={type:_.MESSAGE_TYPES.GQL_CONNECTION_INIT};a.awsRealTimeSocket.send(JSON.stringify(o)),setTimeout((function(){i||n(Error("Connection timeout: ack from AWSRealTime was not received on 15000 ms"))}).bind(a),15e3)})];case 3:return u.sent(),[3,5];case 4:if(i=(t=u.sent()).errorType,o=t.errorCode,I.indexOf(o)>=0)throw new E.NonRetryableError(i);if(i)throw Error(i);throw t;case 5:return[2]}})})},AppSyncRealTimeSubscriptionHandshakeLink.prototype._handleIncomingSubscriptionMessage=function(t){S("subscription message from AWS AppSync RealTime: "+t.data);var n=JSON.parse(t.data),i=n.id,o=void 0===i?"":i,a=n.payload,u=n.type,f=this.subscriptionObserverMap.get(o)||{},p=f.observer,y=void 0===p?null:p,m=f.query,v=void 0===m?"":m,b=f.variables,T=void 0===b?{}:b,E=f.startAckTimeoutId,I=void 0===E?0:E,O=f.subscriptionReadyCallback,N=void 0===O?null:O,w=f.subscriptionFailedCallback,A=void 0===w?null:w;if(S({id:o,observer:y,query:v,variables:T}),u===_.MESSAGE_TYPES.GQL_DATA&&a&&a.data){y?y.next(a):S("observer not found for id: "+o);return}if(u===_.MESSAGE_TYPES.GQL_START_ACK){S("subscription ready for "+JSON.stringify({query:v,variables:T})),"function"==typeof N&&N(),clearTimeout(I),y?y.next({data:a,extensions:{controlMsgType:"CONNECTED"}}):S("observer not found for id: "+o);var R=_.SUBSCRIPTION_STATUS.CONNECTED;this.subscriptionObserverMap.set(o,{observer:y,query:v,variables:T,startAckTimeoutId:null,subscriptionState:R,subscriptionReadyCallback:N,subscriptionFailedCallback:A});return}if(u===_.MESSAGE_TYPES.GQL_CONNECTION_KEEP_ALIVE){clearTimeout(this.keepAliveTimeoutId),this.keepAliveTimeoutId=setTimeout(this._errorDisconnect.bind(this,_.CONTROL_MSG.TIMEOUT_DISCONNECT),this.keepAliveTimeout);return}if(u===_.MESSAGE_TYPES.GQL_ERROR){var R=_.SUBSCRIPTION_STATUS.FAILED;this.subscriptionObserverMap.set(o,{observer:y,query:v,variables:T,startAckTimeoutId:I,subscriptionReadyCallback:N,subscriptionFailedCallback:A,subscriptionState:R}),clearTimeout(I),y?(y.error({errors:[c({},new g.GraphQLError("Connection failed: "+JSON.stringify(a)))]}),y.complete()):S("observer not found for id: "+o),"function"==typeof A&&A()}},AppSyncRealTimeSubscriptionHandshakeLink.prototype._errorDisconnect=function(t){S("Disconnect error: "+t),this.subscriptionObserverMap.forEach(function(n){var i=n.observer;i&&!i.closed&&i.error({errors:[c({},new g.GraphQLError(t))]})}),this.subscriptionObserverMap.clear(),this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=_.SOCKET_STATUS.CLOSED},AppSyncRealTimeSubscriptionHandshakeLink.prototype._timeoutStartSubscriptionAck=function(t){var n=this.subscriptionObserverMap.get(t)||{},i=n.observer,o=n.query,a=n.variables;i&&(this.subscriptionObserverMap.set(t,{observer:i,query:o,variables:a,subscriptionState:_.SUBSCRIPTION_STATUS.FAILED}),i&&!i.closed&&(i.error({errors:[c({},new g.GraphQLError("Subscription timeout "+JSON.stringify({query:o,variables:a})))]}),i.complete()),S("timeoutStartSubscription",JSON.stringify({query:o,variables:a})))},AppSyncRealTimeSubscriptionHandshakeLink.createWebSocket=function(t,n){return new WebSocket(t,n)},AppSyncRealTimeSubscriptionHandshakeLink}(y.ApolloLink);n.AppSyncRealTimeSubscriptionHandshakeLink=w},85149:function(t,n,i){"use strict";var o,a=this&&this.__extends||(o=function(t,n){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])})(t,n)},function(t,n){function __(){this.constructor=t}o(t,n),t.prototype=null===n?Object.create(n):(__.prototype=n.prototype,new __)}),u=this&&this.__assign||function(){return(u=Object.assign||function(t){for(var n,i=1,o=arguments.length;i0&&a[a.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]n.indexOf(o)&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(t);an.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(t,o[a])&&(i[o[a]]=t[o[a]]);return i};Object.defineProperty(n,"__esModule",{value:!0});/*! * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */var y=i(42451),m=i(12801),v=i(9135),g=i(10269),b=m.rootLogger.extend("subscriptions"),T=b.extend("mqtt");n.CONTROL_EVENTS_KEY="@@controlEvents";var _=function(t){function SubscriptionHandshakeLink(n){var i=t.call(this)||this;return i.topicObservers=new Map,i.clientObservers=new Map,i.onMessage=function(t,n,o){var a=JSON.parse(n),c=i.topicObservers.get(t),f=o.reduce(function(t,n){return t[n]=t[n]||null,t},a.data||{});b("Message received",{data:f,topic:t,observers:c}),c.forEach(function(t){try{t.next(u(u({},a),{data:f}))}catch(t){b(t)}})},i.subsInfoContextKey=n,i}return a(SubscriptionHandshakeLink,t),SubscriptionHandshakeLink.prototype.request=function(t){var i,o=this,a=t.getContext(),c=a[this.subsInfoContextKey],f=a.controlMessages,m=n.CONTROL_EVENTS_KEY,v=(void 0===f?((i={})[n.CONTROL_EVENTS_KEY]=void 0,i):f)[m],g=c.extensions,b=(void 0===g?{subscription:{newSubscriptions:{},mqttConnections:[]}}:g).subscription,T=b.newSubscriptions,_=b.mqttConnections,E=c.errors,S=void 0===E?[]:E;if(S&&S.length)return new y.Observable(function(t){return t.error(new y.ApolloError({errorMessage:"Error during subscription handshake",extraInfo:{errors:S},graphQLErrors:S})),function(){}});var I=Object.keys(T).map(function(t){return T[t].topic}),O=new Set(I.filter(function(t){return o.topicObservers.has(t)})),N=new Set(I.filter(function(t){return!O.has(t)}));return new y.Observable(function(n){O.forEach(function(t){o.topicObservers.get(t).add(n);var i=Array.from(o.topicObservers.get(t)).find(function(){return!0}),a=Array.from(o.clientObservers).find(function(t){return t[1].observers.has(i)})[0];o.clientObservers.get(a).observers.add(n)});var i=_.filter(function(t){return t.topics.some(function(t){return N.has(t)})}).map(function(t){var n=t.topics,i=p(t,["topics"]);return u(u({},i),{topics:n.filter(function(t){return N.has(t)})})});return o.connectNewClients(i,n,t),function(){Array.from(o.clientObservers).filter(function(t){return t[1].observers.has(n)}).forEach(function(t){var i=t[0];return o.clientObservers.get(i).observers.delete(n)}),o.clientObservers.forEach(function(t){var n=t.observers,i=t.client;0===n.size&&(i.isConnected()&&i.disconnect(),o.clientObservers.delete(i.clientId))}),o.clientObservers=new Map(Array.from(o.clientObservers).filter(function(t){return t[1].observers.size>0})),o.topicObservers.forEach(function(t){return t.delete(n)}),o.topicObservers=new Map(Array.from(o.topicObservers).filter(function(t){return t[1].size>0}))}}).filter(function(t){var n=t.extensions,i=(void 0===n?{}:n).controlMsgType;return!0===v||!(void 0!==(void 0===i?void 0:i))})},SubscriptionHandshakeLink.prototype.connectNewClients=function(t,n,i){return c(this,void 0,void 0,function(){var o,a,u,c,p=this;return f(this,function(f){return o=i.query,a=g.getMainDefinition(o).selectionSet.selections.map(function(t){return t.name.value}),u=Promise.all(t.map(function(t){return p.connectNewClient(t,n,a)})),c=a.reduce(function(t,n){return t[n]=t[n]||null,t},{}),n.next({data:c,extensions:{controlMsgType:"CONNECTED",controlMsgInfo:{connectionInfo:t}}}),[2,u]})})},SubscriptionHandshakeLink.prototype.connectNewClient=function(t,n,i){return c(this,void 0,void 0,function(){var o,a,c,y,m=this;return f(this,function(f){switch(f.label){case 0:return o=t.client,a=t.url,c=t.topics,(y=new v.Client(a,o)).trace=T.bind(null,o),y.onConnectionLost=function(t){var n=t.errorCode,i=p(t,["errorCode"]);0!==n&&c.forEach(function(t){m.topicObservers.has(t)&&m.topicObservers.get(t).forEach(function(t){return t.error(u(u({},i),{permanent:!0}))})}),c.forEach(function(t){return m.topicObservers.delete(t)})},y.onMessageArrived=function(t){var n=t.destinationName,o=t.payloadString;return m.onMessage(n,o,i)},[4,new Promise(function(t,n){y.connect({useSSL:0===a.indexOf("wss://"),mqttVersion:3,onSuccess:function(){return t(y)},onFailure:n})})];case 1:return f.sent(),[4,this.subscribeToTopics(y,c,n)];case 2:return f.sent(),[2,y]}})})},SubscriptionHandshakeLink.prototype.subscribeToTopics=function(t,n,i){var o=this;return Promise.all(n.map(function(n){return o.subscribeToTopic(t,n,i)}))},SubscriptionHandshakeLink.prototype.subscribeToTopic=function(t,n,i){var o=this;return new Promise(function(a,u){t.subscribe(n,{onSuccess:function(){o.topicObservers.has(n)||o.topicObservers.set(n,new Set),o.clientObservers.has(t.clientId)||o.clientObservers.set(t.clientId,{client:t,observers:new Set}),o.topicObservers.get(n).add(i),o.clientObservers.get(t.clientId).observers.add(i),a(n)},onFailure:u})})},SubscriptionHandshakeLink}(y.ApolloLink);n.SubscriptionHandshakeLink=_},14633:function(t,n){"use strict";var i,o,a,u;Object.defineProperty(n,"__esModule",{value:!0}),(i=n.SUBSCRIPTION_STATUS||(n.SUBSCRIPTION_STATUS={}))[i.PENDING=0]="PENDING",i[i.CONNECTED=1]="CONNECTED",i[i.FAILED=2]="FAILED",(o=n.SOCKET_STATUS||(n.SOCKET_STATUS={}))[o.CLOSED=0]="CLOSED",o[o.READY=1]="READY",o[o.CONNECTING=2]="CONNECTING",(a=n.MESSAGE_TYPES||(n.MESSAGE_TYPES={})).GQL_CONNECTION_INIT="connection_init",a.GQL_CONNECTION_ERROR="connection_error",a.GQL_CONNECTION_ACK="connection_ack",a.GQL_START="start",a.GQL_START_ACK="start_ack",a.GQL_DATA="data",a.GQL_CONNECTION_KEEP_ALIVE="ka",a.GQL_STOP="stop",a.GQL_COMPLETE="complete",a.GQL_ERROR="error",(u=n.CONTROL_MSG||(n.CONTROL_MSG={})).CONNECTION_CLOSED="Connection closed",u.TIMEOUT_DISCONNECT="Timeout disconnect",u.SUBSCRIPTION_ACK="Subscription ack"},12801:function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});/*! * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */var o=i(10397);n.rootLogger=o.default},10397:function(t,n,i){"use strict";var o=this&&this.__spreadArrays||function(){for(var t=0,n=0,i=arguments.length;n0&&a[a.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]o)&&n}))}},9135:function(t,n,i){var o;t.exports=o=function(t){var n,i=t.localStorage||(n={},{setItem:function(t,i){n[t]=i},getItem:function(t){return n[t]},removeItem:function(t){delete n[t]}}),a={CONNECT:1,CONNACK:2,PUBLISH:3,PUBACK:4,PUBREC:5,PUBREL:6,PUBCOMP:7,SUBSCRIBE:8,SUBACK:9,UNSUBSCRIBE:10,UNSUBACK:11,PINGREQ:12,PINGRESP:13,DISCONNECT:14},validate=function(t,n){for(var i in t)if(t.hasOwnProperty(i)){if(n.hasOwnProperty(i)){if(typeof t[i]!==n[i])throw Error(format(u.INVALID_TYPE,[typeof t[i],i]))}else{var o="Unknown property, "+i+". Valid properties are:";for(var a in n)n.hasOwnProperty(a)&&(o=o+" "+a);throw Error(o)}}},scope=function(t,n){return function(){return t.apply(n,arguments)}},u={OK:{code:0,text:"AMQJSC0000I OK."},CONNECT_TIMEOUT:{code:1,text:"AMQJSC0001E Connect timed out."},SUBSCRIBE_TIMEOUT:{code:2,text:"AMQJS0002E Subscribe timed out."},UNSUBSCRIBE_TIMEOUT:{code:3,text:"AMQJS0003E Unsubscribe timed out."},PING_TIMEOUT:{code:4,text:"AMQJS0004E Ping timed out."},INTERNAL_ERROR:{code:5,text:"AMQJS0005E Internal error. Error Message: {0}, Stack trace: {1}"},CONNACK_RETURNCODE:{code:6,text:"AMQJS0006E Bad Connack return code:{0} {1}."},SOCKET_ERROR:{code:7,text:"AMQJS0007E Socket error:{0}."},SOCKET_CLOSE:{code:8,text:"AMQJS0008I Socket closed."},MALFORMED_UTF:{code:9,text:"AMQJS0009E Malformed UTF data:{0} {1} {2}."},UNSUPPORTED:{code:10,text:"AMQJS0010E {0} is not supported by this browser."},INVALID_STATE:{code:11,text:"AMQJS0011E Invalid state {0}."},INVALID_TYPE:{code:12,text:"AMQJS0012E Invalid type {0} for {1}."},INVALID_ARGUMENT:{code:13,text:"AMQJS0013E Invalid argument {0} for {1}."},UNSUPPORTED_OPERATION:{code:14,text:"AMQJS0014E Unsupported operation."},INVALID_STORED_DATA:{code:15,text:"AMQJS0015E Invalid data in local storage key={0} value={1}."},INVALID_MQTT_MESSAGE_TYPE:{code:16,text:"AMQJS0016E Invalid MQTT message type {0}."},MALFORMED_UNICODE:{code:17,text:"AMQJS0017E Malformed Unicode string:{0} {1}."},BUFFER_FULL:{code:18,text:"AMQJS0018E Message buffer is full, maximum buffer size: {0}."}},c={0:"Connection Accepted",1:"Connection Refused: unacceptable protocol version",2:"Connection Refused: identifier rejected",3:"Connection Refused: server unavailable",4:"Connection Refused: bad user name or password",5:"Connection Refused: not authorized"},format=function(t,n){var i,o,a=t.text;if(n){for(var u=0;u0){var c=a.substring(0,o),f=a.substring(o+i.length);a=c+n[u]+f}}return a},f=[0,6,77,81,73,115,100,112,3],p=[0,4,77,81,84,84,4],WireMessage=function(t,n){for(var i in this.type=t,n)n.hasOwnProperty(i)&&(this[i]=n[i])};function writeUint16(t,n,i){return n[i++]=t>>8,n[i++]=t%256,i}function writeString(t,n,i,o){return o=writeUint16(n,i,o),stringToUTF8(t,i,o),o+n}function readUint16(t,n){return 256*t[n]+t[n+1]}function UTF8Length(t){for(var n=0,i=0;i2047?(55296<=o&&o<=56319&&(i++,n++),n+=3):o>127?n+=2:n++}return n}function stringToUTF8(t,n,i){for(var o=i,a=0;a>6&31|192:(c<=65535?n[o++]=c>>12&15|224:(n[o++]=c>>18&7|240,n[o++]=c>>12&63|128),n[o++]=c>>6&63|128),n[o++]=63&c|128)}return n}function parseUTF8(t,n,i){for(var o,a="",c=n;c65535&&(o-=65536,a+=String.fromCharCode(55296+(o>>10)),o=56320+(1023&o)),a+=String.fromCharCode(o)}return a}WireMessage.prototype.encode=function(){var t,n=(15&this.type)<<4,i=0,o=[],u=0;switch(void 0!==this.messageIdentifier&&(i+=2),this.type){case a.CONNECT:switch(this.mqttVersion){case 3:i+=f.length+3;break;case 4:i+=p.length+3}i+=UTF8Length(this.clientId)+2,void 0!==this.willMessage&&(i+=UTF8Length(this.willMessage.destinationName)+2,(t=this.willMessage.payloadBytes)instanceof Uint8Array||(t=new Uint8Array(y)),i+=t.byteLength+2),void 0!==this.userName&&(i+=UTF8Length(this.userName)+2),void 0!==this.password&&(i+=UTF8Length(this.password)+2);break;case a.SUBSCRIBE:n|=2;for(var c=0;c>=7)>0&&(o|=128),n[i++]=o}while(t>0&&i<4);return n}(i),v=m.length+1,g=new ArrayBuffer(i+v),b=new Uint8Array(g);if(b[0]=n,b.set(m,1),this.type==a.PUBLISH)v=writeString(this.payloadMessage.destinationName,u,b,v);else if(this.type==a.CONNECT){switch(this.mqttVersion){case 3:b.set(f,v),v+=f.length;break;case 4:b.set(p,v),v+=p.length}var T=0;this.cleanSession&&(T=2),void 0!==this.willMessage&&(T|=4,T|=this.willMessage.qos<<3,this.willMessage.retained&&(T|=32)),void 0!==this.userName&&(T|=128),void 0!==this.password&&(T|=64),b[v++]=T,v=writeUint16(this.keepAliveInterval,b,v)}switch(void 0!==this.messageIdentifier&&(v=writeUint16(this.messageIdentifier,b,v)),this.type){case a.CONNECT:v=writeString(this.clientId,UTF8Length(this.clientId),b,v),void 0!==this.willMessage&&(v=writeString(this.willMessage.destinationName,UTF8Length(this.willMessage.destinationName),b,v),v=writeUint16(t.byteLength,b,v),b.set(t,v),v+=t.byteLength),void 0!==this.userName&&(v=writeString(this.userName,UTF8Length(this.userName),b,v)),void 0!==this.password&&(v=writeString(this.password,UTF8Length(this.password),b,v));break;case a.PUBLISH:b.set(y,v);break;case a.SUBSCRIBE:for(var c=0;c0&&(this.timeout=setTimeout(doTimeout(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},Timeout=function(t,n,i,o){n||(n=30),this.timeout=setTimeout(function(){return i.apply(t,o)},1e3*n),this.cancel=function(){clearTimeout(this.timeout)}},ClientImpl=function(n,o,a,c,f){if(!("WebSocket"in t&&null!==t.WebSocket))throw Error(format(u.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in t&&null!==t.ArrayBuffer))throw Error(format(u.UNSUPPORTED,["ArrayBuffer"]));for(var p in this._trace("Paho.Client",n,o,a,c,f),this.host=o,this.port=a,this.path=c,this.uri=n,this.clientId=f,this._wsuri=null,this._localKey=o+":"+a+("/mqtt"!=c?":"+c:"")+":"+f+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,i)(0===p.indexOf("Sent:"+this._localKey)||0===p.indexOf("Received:"+this._localKey))&&this.restore(p)};ClientImpl.prototype.host=null,ClientImpl.prototype.port=null,ClientImpl.prototype.path=null,ClientImpl.prototype.uri=null,ClientImpl.prototype.clientId=null,ClientImpl.prototype.socket=null,ClientImpl.prototype.connected=!1,ClientImpl.prototype.maxMessageIdentifier=65536,ClientImpl.prototype.connectOptions=null,ClientImpl.prototype.hostIndex=null,ClientImpl.prototype.onConnected=null,ClientImpl.prototype.onConnectionLost=null,ClientImpl.prototype.onMessageDelivered=null,ClientImpl.prototype.onMessageArrived=null,ClientImpl.prototype.traceFunction=null,ClientImpl.prototype._msg_queue=null,ClientImpl.prototype._buffered_msg_queue=null,ClientImpl.prototype._connectTimeout=null,ClientImpl.prototype.sendPinger=null,ClientImpl.prototype.receivePinger=null,ClientImpl.prototype._reconnectInterval=1,ClientImpl.prototype._reconnecting=!1,ClientImpl.prototype._reconnectTimeout=null,ClientImpl.prototype.disconnectedPublishing=!1,ClientImpl.prototype.disconnectedBufferSize=5e3,ClientImpl.prototype.receiveBuffer=null,ClientImpl.prototype._traceBuffer=null,ClientImpl.prototype._MAX_TRACE_ENTRIES=100,ClientImpl.prototype.connect=function(t){var n=this._traceMask(t,"password");if(this._trace("Client.connect",n,this.socket,this.connected),this.connected||this.socket)throw Error(format(u.INVALID_STATE,["already connected"]));this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),this.connectOptions=t,this._reconnectInterval=1,this._reconnecting=!1,t.uris?(this.hostIndex=0,this._doConnect(t.uris[0])):this._doConnect(this.uri)},ClientImpl.prototype.subscribe=function(t,n){if(this._trace("Client.subscribe",t,n),!this.connected)throw Error(format(u.INVALID_STATE,["not connected"]));var i=new WireMessage(a.SUBSCRIBE);i.topics=[t],void 0!==n.qos?i.requestedQos=[n.qos]:i.requestedQos=[0],n.onSuccess&&(i.onSuccess=function(t){n.onSuccess({invocationContext:n.invocationContext,grantedQos:t})}),n.onFailure&&(i.onFailure=function(t){n.onFailure({invocationContext:n.invocationContext,errorCode:t,errorMessage:format(t)})}),n.timeout&&(i.timeOut=new Timeout(this,n.timeout,n.onFailure,[{invocationContext:n.invocationContext,errorCode:u.SUBSCRIBE_TIMEOUT.code,errorMessage:format(u.SUBSCRIBE_TIMEOUT)}])),this._requires_ack(i),this._schedule_message(i)},ClientImpl.prototype.unsubscribe=function(t,n){if(this._trace("Client.unsubscribe",t,n),!this.connected)throw Error(format(u.INVALID_STATE,["not connected"]));var i=new WireMessage(a.UNSUBSCRIBE);i.topics=[t],n.onSuccess&&(i.callback=function(){n.onSuccess({invocationContext:n.invocationContext})}),n.timeout&&(i.timeOut=new Timeout(this,n.timeout,n.onFailure,[{invocationContext:n.invocationContext,errorCode:u.UNSUBSCRIBE_TIMEOUT.code,errorMessage:format(u.UNSUBSCRIBE_TIMEOUT)}])),this._requires_ack(i),this._schedule_message(i)},ClientImpl.prototype.send=function(t){this._trace("Client.send",t);var n=new WireMessage(a.PUBLISH);if(n.payloadMessage=t,this.connected)t.qos>0?this._requires_ack(n):this.onMessageDelivered&&(this._notify_msg_sent[n]=this.onMessageDelivered(n.payloadMessage)),this._schedule_message(n);else if(this._reconnecting&&this.disconnectedPublishing){if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw Error(format(u.BUFFER_FULL,[this.disconnectedBufferSize]));t.qos>0?this._requires_ack(n):(n.sequence=++this._sequence,this._buffered_msg_queue.unshift(n))}else throw Error(format(u.INVALID_STATE,["not connected"]))},ClientImpl.prototype.disconnect=function(){if(this._trace("Client.disconnect"),this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),!this.socket)throw Error(format(u.INVALID_STATE,["not connecting or connected"]));var t=new WireMessage(a.DISCONNECT);this._notify_msg_sent[t]=scope(this._disconnected,this),this._schedule_message(t)},ClientImpl.prototype.getTraceLog=function(){if(null!==this._traceBuffer){for(var t in this._trace("Client.getTraceLog",new Date),this._trace("Client.getTraceLog in flight messages",this._sentMessages.length),this._sentMessages)this._trace("_sentMessages ",t,this._sentMessages[t]);for(var t in this._receivedMessages)this._trace("_receivedMessages ",t,this._receivedMessages[t]);return this._traceBuffer}},ClientImpl.prototype.startTrace=function(){null===this._traceBuffer&&(this._traceBuffer=[]),this._trace("Client.startTrace",new Date,"@VERSION@-@BUILDLEVEL@")},ClientImpl.prototype.stopTrace=function(){delete this._traceBuffer},ClientImpl.prototype._doConnect=function(t){if(this.connectOptions.useSSL){var n=t.split(":");n[0]="wss",t=n.join(":")}this._wsuri=t,this.connected=!1,this.connectOptions.mqttVersion<4?this.socket=new WebSocket(t,["mqttv3.1"]):this.socket=new WebSocket(t,["mqtt"]),this.socket.binaryType="arraybuffer",this.socket.onopen=scope(this._on_socket_open,this),this.socket.onmessage=scope(this._on_socket_message,this),this.socket.onerror=scope(this._on_socket_error,this),this.socket.onclose=scope(this._on_socket_close,this),this.sendPinger=new Pinger(this,this.connectOptions.keepAliveInterval),this.receivePinger=new Pinger(this,this.connectOptions.keepAliveInterval),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._connectTimeout=new Timeout(this,this.connectOptions.timeout,this._disconnected,[u.CONNECT_TIMEOUT.code,format(u.CONNECT_TIMEOUT)])},ClientImpl.prototype._schedule_message=function(t){this._msg_queue.unshift(t),this.connected&&this._process_queue()},ClientImpl.prototype.store=function(t,n){var o={type:n.type,messageIdentifier:n.messageIdentifier,version:1};if(n.type===a.PUBLISH){n.pubRecReceived&&(o.pubRecReceived=!0),o.payloadMessage={};for(var c="",f=n.payloadMessage.payloadBytes,p=0;p=2;){var g=parseInt(p.substring(0,2),16);p=p.substring(2,p.length),m[v++]=g}var b=new o.Message(m);b.qos=c.payloadMessage.qos,b.destinationName=c.payloadMessage.destinationName,c.payloadMessage.duplicate&&(b.duplicate=!0),c.payloadMessage.retained&&(b.retained=!0),f.payloadMessage=b}else throw Error(format(u.INVALID_STORED_DATA,[t,n]));0===t.indexOf("Sent:"+this._localKey)?(f.payloadMessage.duplicate=!0,this._sentMessages[f.messageIdentifier]=f):0===t.indexOf("Received:"+this._localKey)&&(this._receivedMessages[f.messageIdentifier]=f)},ClientImpl.prototype._process_queue=function(){for(var t=null;t=this._msg_queue.pop();)this._socket_send(t),this._notify_msg_sent[t]&&(this._notify_msg_sent[t](),delete this._notify_msg_sent[t])},ClientImpl.prototype._requires_ack=function(t){var n=Object.keys(this._sentMessages).length;if(n>this.maxMessageIdentifier)throw Error("Too many messages:"+n);for(;void 0!==this._sentMessages[this._message_identifier];)this._message_identifier++;t.messageIdentifier=this._message_identifier,this._sentMessages[t.messageIdentifier]=t,t.type===a.PUBLISH&&this.store("Sent:",t),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},ClientImpl.prototype._on_socket_open=function(){var t=new WireMessage(a.CONNECT,this.connectOptions);t.clientId=this.clientId,this._socket_send(t)},ClientImpl.prototype._on_socket_message=function(t){this._trace("Client._on_socket_message",t.data);for(var n=this._deframeMessages(t.data),i=0;i>4,p=c&=15;n+=1;var y=0,m=1;do{if(n==t.length)return[null,u];y+=(127&(i=t[n++]))*m,m*=128}while((128&i)!=0);var v=n+y;if(v>t.length)return[null,u];var g=new WireMessage(f);switch(f){case a.CONNACK:1&t[n++]&&(g.sessionPresent=!0),g.returnCode=t[n++];break;case a.PUBLISH:var b=p>>1&3,T=readUint16(t,n),_=parseUTF8(t,n+=2,T);n+=T,b>0&&(g.messageIdentifier=readUint16(t,n),n+=2);var E=new o.Message(t.subarray(n,v));(1&p)==1&&(E.retained=!0),(8&p)==8&&(E.duplicate=!0),E.qos=b,E.destinationName=_,g.payloadMessage=E;break;case a.PUBACK:case a.PUBREC:case a.PUBREL:case a.PUBCOMP:case a.UNSUBACK:g.messageIdentifier=readUint16(t,n);break;case a.SUBACK:g.messageIdentifier=readUint16(t,n),n+=2,g.returnCode=t.subarray(n,v)}return[g,v]}(n,f),y=p[0];if(f=p[1],null!==y)i.push(y);else break}f0)for(var m=null;m=this._buffered_msg_queue.pop();)p.push(m),this.onMessageDelivered&&(this._notify_msg_sent[m]=this.onMessageDelivered(m.payloadMessage));for(var p=p.sort(function(t,n){return t.sequence-n.sequence}),v=0,g=p.length;v65535)throw Error(format(u.INVALID_ARGUMENT,[o,"clientId"]));var m=new ClientImpl(a,t,n,i,o);Object.defineProperties(this,{host:{get:function(){return t},set:function(){throw Error(format(u.UNSUPPORTED_OPERATION))}},port:{get:function(){return n},set:function(){throw Error(format(u.UNSUPPORTED_OPERATION))}},path:{get:function(){return i},set:function(){throw Error(format(u.UNSUPPORTED_OPERATION))}},uri:{get:function(){return a},set:function(){throw Error(format(u.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return m.clientId},set:function(){throw Error(format(u.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return m.onConnected},set:function(t){if("function"==typeof t)m.onConnected=t;else throw Error(format(u.INVALID_TYPE,[typeof t,"onConnected"]))}},disconnectedPublishing:{get:function(){return m.disconnectedPublishing},set:function(t){m.disconnectedPublishing=t}},disconnectedBufferSize:{get:function(){return m.disconnectedBufferSize},set:function(t){m.disconnectedBufferSize=t}},onConnectionLost:{get:function(){return m.onConnectionLost},set:function(t){if("function"==typeof t)m.onConnectionLost=t;else throw Error(format(u.INVALID_TYPE,[typeof t,"onConnectionLost"]))}},onMessageDelivered:{get:function(){return m.onMessageDelivered},set:function(t){if("function"==typeof t)m.onMessageDelivered=t;else throw Error(format(u.INVALID_TYPE,[typeof t,"onMessageDelivered"]))}},onMessageArrived:{get:function(){return m.onMessageArrived},set:function(t){if("function"==typeof t)m.onMessageArrived=t;else throw Error(format(u.INVALID_TYPE,[typeof t,"onMessageArrived"]))}},trace:{get:function(){return m.traceFunction},set:function(t){if("function"==typeof t)m.traceFunction=t;else throw Error(format(u.INVALID_TYPE,[typeof t,"onTrace"]))}}}),this.connect=function(t){if(validate(t=t||{},{timeout:"number",userName:"string",password:"string",willMessage:"object",keepAliveInterval:"number",cleanSession:"boolean",useSSL:"boolean",invocationContext:"object",onSuccess:"function",onFailure:"function",hosts:"object",ports:"object",reconnect:"boolean",mqttVersion:"number",mqttVersionExplicit:"boolean",uris:"object"}),void 0===t.keepAliveInterval&&(t.keepAliveInterval=60),t.mqttVersion>4||t.mqttVersion<3)throw Error(format(u.INVALID_ARGUMENT,[t.mqttVersion,"connectOptions.mqttVersion"]));if(void 0===t.mqttVersion?(t.mqttVersionExplicit=!1,t.mqttVersion=4):t.mqttVersionExplicit=!0,void 0!==t.password&&void 0===t.userName)throw Error(format(u.INVALID_ARGUMENT,[t.password,"connectOptions.password"]));if(t.willMessage){if(!(t.willMessage instanceof Message))throw Error(format(u.INVALID_TYPE,[t.willMessage,"connectOptions.willMessage"]));if(t.willMessage.stringPayload=null,void 0===t.willMessage.destinationName)throw Error(format(u.INVALID_TYPE,[typeof t.willMessage.destinationName,"connectOptions.willMessage.destinationName"]))}if(void 0===t.cleanSession&&(t.cleanSession=!0),t.hosts){if(!(t.hosts instanceof Array)||t.hosts.length<1)throw Error(format(u.INVALID_ARGUMENT,[t.hosts,"connectOptions.hosts"]));for(var n=!1,o=0;o=3&&(a.qos=i),arguments.length>=4&&(a.retained=o),m.send(a)},this.publish=function(t,n,i,o){var a;if(0==arguments.length)throw Error("Invalid argument.length");if(1==arguments.length){if(!(t instanceof Message)&&"string"!=typeof t)throw Error("Invalid argument:"+typeof t);if(void 0===(a=t).destinationName)throw Error(format(u.INVALID_ARGUMENT,[a.destinationName,"Message.destinationName"]));m.send(a)}else(a=new Message(n)).destinationName=t,arguments.length>=3&&(a.qos=i),arguments.length>=4&&(a.retained=o),m.send(a)},this.disconnect=function(){m.disconnect()},this.getTraceLog=function(){return m.getTraceLog()},this.startTrace=function(){m.startTrace()},this.stopTrace=function(){m.stopTrace()},this.isConnected=function(){return m.connected}},Message:Message}}(void 0!==i.g?i.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},11227:function(t,n,i){var o=i(34155);function load(){var t;try{t=n.storage.debug}catch(t){}return!t&&void 0!==o&&"env"in o&&(t=o.env.DEBUG),t}(n=t.exports=i(11658)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},n.formatArgs=function(t){var i=this.useColors;if(t[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+t[0]+(i?"%c ":" ")+"+"+n.humanize(this.diff),i){var o="color: "+this.color;t.splice(1,0,o,"color: inherit");var a=0,u=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(a++,"%c"===t&&(u=a))}),t.splice(u,0,o)}},n.save=function(t){try{null==t?n.storage.removeItem("debug"):n.storage.debug=t}catch(t){}},n.load=load,n.useColors=function(){return"undefined"!=typeof window&&!!window.process&&"renderer"===window.process.type||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},n.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},n.enable(load())},11658:function(t,n,i){var o;function createDebug(t){function debug(){if(debug.enabled){var t=+new Date,i=t-(o||t);debug.diff=i,debug.prev=o,debug.curr=t,o=t;for(var a=Array(arguments.length),u=0;u0?n[0]:"string"==typeof t?t:t[0])}},IntlMessageFormat.__parse=a.Qc,IntlMessageFormat.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},IntlMessageFormat}()},11050:function(t,n,i){"use strict";i.d(n,{C8:function(){return f},HR:function(){return y},YR:function(){return p},jK:function(){return a},u_:function(){return c}});var o,a,u=i(97582);(o=a||(a={})).MISSING_VALUE="MISSING_VALUE",o.INVALID_VALUE="INVALID_VALUE",o.MISSING_INTL_API="MISSING_INTL_API";var c=function(t){function FormatError(n,i,o){var a=t.call(this,n)||this;return a.code=i,a.originalMessage=o,a}return(0,u.ZT)(FormatError,t),FormatError.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},FormatError}(Error),f=function(t){function InvalidValueError(n,i,o,u){return t.call(this,'Invalid values for "'.concat(n,'": "').concat(i,'". Options are "').concat(Object.keys(o).join('", "'),'"'),a.INVALID_VALUE,u)||this}return(0,u.ZT)(InvalidValueError,t),InvalidValueError}(c),p=function(t){function InvalidValueTypeError(n,i,o){return t.call(this,'Value for "'.concat(n,'" must be of type ').concat(i),a.INVALID_VALUE,o)||this}return(0,u.ZT)(InvalidValueTypeError,t),InvalidValueTypeError}(c),y=function(t){function MissingValueError(n,i){return t.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(i,'"'),a.MISSING_VALUE,i)||this}return(0,u.ZT)(MissingValueError,t),MissingValueError}(c)},61092:function(t,n,i){"use strict";i.d(n,{FK:function(){return function formatToParts(t,n,i,o,f,p,y){if(1===t.length&&(0,u.O4)(t[0]))return[{type:a.literal,value:t[0].value}];for(var m=[],v=0;vt.db.version;if(o&&(t.version!==n&&console.warn('The database "'+t.name+"\" can't be downgraded from version "+t.db.version+" to version "+t.version+"."),t.version=t.db.version),a||i){if(i){var u=t.db.version+1;u>t.version&&(t.version=u)}return!0}return!1}function _decodeBlob(t){return createBlob([function(t){for(var n=t.length,i=new ArrayBuffer(n),o=new Uint8Array(i),a=0;a0&&(!t.db||"InvalidStateError"===a.name||"NotFoundError"===a.name))return u.resolve().then(function(){if(!t.db||"NotFoundError"===a.name&&!t.db.objectStoreNames.contains(t.storeName)&&t.version<=t.db.version)return t.db&&(t.version=t.db.version+1),_getConnection(t,!0)}).then(function(){return(function(t){_deferReadiness(t);for(var n=p[t.name],i=n.forages,o=0;o=43)}}).catch(function(){return!1}).then(function(t){return f=t})).then(function(t){return t?n:new u(function(t,i){var o=new FileReader;o.onerror=i,o.onloadend=function(i){t({__local_forage_encoded_blob:!0,data:btoa(i.target.result||""),type:n.type})},o.readAsBinaryString(n)})}):n}).then(function(n){createTransaction(o._dbInfo,v,function(u,c){if(u)return a(u);try{var f=c.objectStore(o._dbInfo.storeName);null===n&&(n=void 0);var p=f.put(n,t);c.oncomplete=function(){void 0===n&&(n=null),i(n)},c.onabort=c.onerror=function(){var t=p.error?p.error:p.transaction.error;a(t)}}catch(t){a(t)}})}).catch(a)});return executeCallback(a,i),a},removeItem:function(t,n){var i=this;t=normalizeKey(t);var o=new u(function(n,o){i.ready().then(function(){createTransaction(i._dbInfo,v,function(a,u){if(a)return o(a);try{var c=u.objectStore(i._dbInfo.storeName).delete(t);u.oncomplete=function(){n()},u.onerror=function(){o(c.error)},u.onabort=function(){var t=c.error?c.error:c.transaction.error;o(t)}}catch(t){o(t)}})}).catch(o)});return executeCallback(o,n),o},clear:function(t){var n=this,i=new u(function(t,i){n.ready().then(function(){createTransaction(n._dbInfo,v,function(o,a){if(o)return i(o);try{var u=a.objectStore(n._dbInfo.storeName).clear();a.oncomplete=function(){t()},a.onabort=a.onerror=function(){var t=u.error?u.error:u.transaction.error;i(t)}}catch(t){i(t)}})}).catch(i)});return executeCallback(i,t),i},length:function(t){var n=this,i=new u(function(t,i){n.ready().then(function(){createTransaction(n._dbInfo,m,function(o,a){if(o)return i(o);try{var u=a.objectStore(n._dbInfo.storeName).count();u.onsuccess=function(){t(u.result)},u.onerror=function(){i(u.error)}}catch(t){i(t)}})}).catch(i)});return executeCallback(i,t),i},key:function(t,n){var i=this,o=new u(function(n,o){if(t<0){n(null);return}i.ready().then(function(){createTransaction(i._dbInfo,m,function(a,u){if(a)return o(a);try{var c=u.objectStore(i._dbInfo.storeName),f=!1,p=c.openKeyCursor();p.onsuccess=function(){var i=p.result;if(!i){n(null);return}0===t?n(i.key):f?n(i.key):(f=!0,i.advance(t))},p.onerror=function(){o(p.error)}}catch(t){o(t)}})}).catch(o)});return executeCallback(o,n),o},keys:function(t){var n=this,i=new u(function(t,i){n.ready().then(function(){createTransaction(n._dbInfo,m,function(o,a){if(o)return i(o);try{var u=a.objectStore(n._dbInfo.storeName).openKeyCursor(),c=[];u.onsuccess=function(){var n=u.result;if(!n){t(c);return}c.push(n.key),n.continue()},u.onerror=function(){i(u.error)}}catch(t){i(t)}})}).catch(i)});return executeCallback(i,t),i},dropInstance:function(t,n){n=getCallback.apply(this,arguments);var i,o=this.config();if((t="function"!=typeof t&&t||{}).name||(t.name=t.name||o.name,t.storeName=t.storeName||o.storeName),t.name){var c=t.name===o.name&&this._dbInfo.db?u.resolve(this._dbInfo.db):_getConnection(t,!1).then(function(n){var i=p[t.name],o=i.forages;i.db=n;for(var a=0;a>4,m[p++]=(15&o)<<4|a>>2,m[p++]=(3&a)<<6|63&u;return y}function bufferToString(t){var n,i=new Uint8Array(t),o="";for(n=0;n>2]+b[(3&i[n])<<4|i[n+1]>>4]+b[(15&i[n+1])<<2|i[n+2]>>6]+b[63&i[n+2]];return i.length%3==2?o=o.substring(0,o.length-1)+"=":i.length%3==1&&(o=o.substring(0,o.length-2)+"=="),o}var P={serialize:function(t,n){var i="";if(t&&(i=M.call(t)),t&&("[object ArrayBuffer]"===i||t.buffer&&"[object ArrayBuffer]"===M.call(t.buffer))){var o,a=_;t instanceof ArrayBuffer?(o=t,a+=S):(o=t.buffer,"[object Int8Array]"===i?a+=O:"[object Uint8Array]"===i?a+=N:"[object Uint8ClampedArray]"===i?a+=w:"[object Int16Array]"===i?a+=A:"[object Uint16Array]"===i?a+=k:"[object Int32Array]"===i?a+=R:"[object Uint32Array]"===i?a+=C:"[object Float32Array]"===i?a+=D:"[object Float64Array]"===i?a+=L:n(Error("Failed to get type for BinaryArray"))),n(a+bufferToString(o))}else if("[object Blob]"===i){var u=new FileReader;u.onload=function(){n(_+I+("~~local_forage_type~"+t.type)+"~"+bufferToString(this.result))},u.readAsArrayBuffer(t)}else try{n(JSON.stringify(t))}catch(i){console.error("Couldn't convert value into a JSON string: ",t),n(null,i)}},deserialize:function(t){if(t.substring(0,E)!==_)return JSON.parse(t);var n,i=t.substring(F),o=t.substring(E,F);if(o===I&&T.test(i)){var a=i.match(T);n=a[1],i=i.substring(a[0].length)}var u=stringToBuffer(i);switch(o){case S:return u;case I:return createBlob([u],{type:n});case O:return new Int8Array(u);case N:return new Uint8Array(u);case w:return new Uint8ClampedArray(u);case A:return new Int16Array(u);case k:return new Uint16Array(u);case R:return new Int32Array(u);case C:return new Uint32Array(u);case D:return new Float32Array(u);case L:return new Float64Array(u);default:throw Error("Unkown type: "+o)}},stringToBuffer:stringToBuffer,bufferToString:bufferToString};function createDbTable(t,n,i,o){t.executeSql("CREATE TABLE IF NOT EXISTS "+n.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],i,o)}function tryExecuteSql(t,n,i,o,a,u){t.executeSql(i,o,a,function(t,c){c.code===c.SYNTAX_ERR?t.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[n.storeName],function(t,f){f.rows.length?u(t,c):createDbTable(t,n,function(){t.executeSql(i,o,a,u)},u)},u):u(t,c)},u)}function _setItem(t,n,i,o){var a=this;t=normalizeKey(t);var c=new u(function(u,c){a.ready().then(function(){void 0===n&&(n=null);var f=n,p=a._dbInfo;p.serializer.serialize(n,function(n,y){y?c(y):p.db.transaction(function(i){tryExecuteSql(i,p,"INSERT OR REPLACE INTO "+p.storeName+" (key, value) VALUES (?, ?)",[t,n],function(){u(f)},function(t,n){c(n)})},function(n){if(n.code===n.QUOTA_ERR){if(o>0){u(_setItem.apply(a,[t,f,i,o-1]));return}c(n)}})})}).catch(c)});return executeCallback(c,i),c}var x={_driver:"webSQLStorage",_initStorage:function(t){var n=this,i={db:null};if(t)for(var o in t)i[o]="string"!=typeof t[o]?t[o].toString():t[o];var a=new u(function(t,o){try{i.db=openDatabase(i.name,String(i.version),i.description,i.size)}catch(t){return o(t)}i.db.transaction(function(a){createDbTable(a,i,function(){n._dbInfo=i,t()},function(t,n){o(n)})},o)});return i.serializer=P,a},_support:"function"==typeof openDatabase,iterate:function(t,n){var i=this,o=new u(function(n,o){i.ready().then(function(){var a=i._dbInfo;a.db.transaction(function(i){tryExecuteSql(i,a,"SELECT * FROM "+a.storeName,[],function(i,o){for(var u=o.rows,c=u.length,f=0;f '__WebKitDatabaseInfoTable__'",[],function(n,o){for(var a=[],u=0;u0)?(this._dbInfo=n,n.serializer=P,u.resolve()):u.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(t){return!1}}(),iterate:function(t,n){var i=this,o=i.ready().then(function(){for(var n=i._dbInfo,o=n.keyPrefix,a=o.length,u=localStorage.length,c=1,f=0;f=0;i--){var o=localStorage.key(i);0===o.indexOf(t)&&localStorage.removeItem(o)}});return executeCallback(i,t),i},length:function(t){var n=this.keys().then(function(t){return t.length});return executeCallback(n,t),n},key:function(t,n){var i=this,o=i.ready().then(function(){var n,o=i._dbInfo;try{n=localStorage.key(t)}catch(t){n=null}return n&&(n=n.substring(o.keyPrefix.length)),n});return executeCallback(o,n),o},keys:function(t){var n=this,i=n.ready().then(function(){for(var t=n._dbInfo,i=localStorage.length,o=[],a=0;a=0;n--){var i=localStorage.key(n);0===i.indexOf(t)&&localStorage.removeItem(i)}}):u.reject("Invalid arguments"),n),i}},includes=function(t,n){for(var i,o=t.length,a=0;a0)return function(t){if(!((t=String(t)).length>100)){var n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(n){var i=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*i;case"days":case"day":case"d":return 864e5*i;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*i;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*i;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}(t);if("number"===i&&!1===isNaN(t))return n.long?plural(t,864e5,"day")||plural(t,36e5,"hour")||plural(t,6e4,"minute")||plural(t,1e3,"second")||t+" ms":t>=864e5?Math.round(t/864e5)+"d":t>=36e5?Math.round(t/36e5)+"h":t>=6e4?Math.round(t/6e4)+"m":t>=1e3?Math.round(t/1e3)+"s":t+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},11987:function(t,n,i){!function(){var n={452:function(t){"use strict";t.exports=i(97334)}},o={};function __nccwpck_require__(t){var i=o[t];if(void 0!==i)return i.exports;var a=o[t]={exports:{}},u=!0;try{n[t](a,a.exports,__nccwpck_require__),u=!1}finally{u&&delete o[t]}return a.exports}__nccwpck_require__.ab="//";var a={};!function(){var t,n=(t=__nccwpck_require__(452))&&"object"==typeof t&&"default"in t?t.default:t,i=/https?|ftp|gopher|file/;function r(t){"string"==typeof t&&(t=d(t));var o,a,u,c,f,p,y,m,v,g=(a=(o=t).auth,u=o.hostname,c=o.protocol||"",f=o.pathname||"",p=o.hash||"",y=o.query||"",m=!1,a=a?encodeURIComponent(a).replace(/%3A/i,":")+"@":"",o.host?m=a+o.host:u&&(m=a+(~u.indexOf(":")?"["+u+"]":u),o.port&&(m+=":"+o.port)),y&&"object"==typeof y&&(y=n.encode(y)),v=o.search||y&&"?"+y||"",c&&":"!==c.substr(-1)&&(c+=":"),o.slashes||(!c||i.test(c))&&!1!==m?(m="//"+(m||""),f&&"/"!==f[0]&&(f="/"+f)):m||(m=""),p&&"#"!==p[0]&&(p="#"+p),v&&"?"!==v[0]&&(v="?"+v),{protocol:c,host:m,pathname:f=f.replace(/[?#]/g,encodeURIComponent),search:v=v.replace("#","%23"),hash:p});return""+g.protocol+g.host+g.pathname+g.search+g.hash}var o="http://",u=o+"w.w",c=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,f=/https?|ftp|gopher|file/;function h(t,n){var i="string"==typeof t?d(t):t;t="object"==typeof t?r(t):t;var a=d(n),p="";i.protocol&&!i.slashes&&(p=i.protocol,t=t.replace(i.protocol,""),p+="/"===n[0]||"/"===t[0]?"/":""),p&&a.protocol&&(p="",a.slashes||(p=a.protocol,n=n.replace(a.protocol,"")));var y=t.match(c);y&&!a.protocol&&(t=t.substr((p=y[1]+(y[2]||"")).length),/^\/\/[^/]/.test(n)&&(p=p.slice(0,-1)));var m=new URL(t,u+"/"),v=new URL(n,m).toString().replace(u,""),g=a.protocol||i.protocol;return g+=i.slashes||a.slashes?"//":"",!p&&g?v=v.replace(o,g):p&&(v=v.replace(o,"")),f.test(v)||~n.indexOf(".")||"/"===t.slice(-1)||"/"===n.slice(-1)||"/"!==v.slice(-1)||(v=v.slice(0,-1)),p&&(v=p+("/"===v[0]?v.substr(1):v)),v}function l(){}l.prototype.parse=d,l.prototype.format=r,l.prototype.resolve=h,l.prototype.resolveObject=h;var p=/^https?|ftp|gopher|file/,y=/^(.*?)([#?].*)/,m=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,v=/^([a-z0-9.+-]*:)?\/\/\/*/i,g=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function d(t,i,o){if(void 0===i&&(i=!1),void 0===o&&(o=!1),t&&"object"==typeof t&&t instanceof l)return t;var a=(t=t.trim()).match(y);t=a?a[1].replace(/\\/g,"/")+a[2]:t.replace(/\\/g,"/"),g.test(t)&&"/"!==t.slice(-1)&&(t+="/");var c=!/(^javascript)/.test(t)&&t.match(m),f=v.test(t),b="";c&&(p.test(c[1])||(b=c[1].toLowerCase(),t=""+c[2]+c[3]),c[2]||(f=!1,p.test(c[1])?(b=c[1],t=""+c[3]):t="//"+c[3]),3!==c[2].length&&1!==c[2].length||(b=c[1],t="/"+c[3]));var T,_=(a?a[1]:t).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),E=_&&_[1],S=new l,I="",O="";try{T=new URL(t)}catch(n){I=n,b||o||!/^\/\//.test(t)||/^\/\/.+[@.]/.test(t)||(O="/",t=t.substr(1));try{T=new URL(t,u)}catch(t){return S.protocol=b,S.href=b,S}}S.slashes=f&&!O,S.host="w.w"===T.host?"":T.host,S.hostname="w.w"===T.hostname?"":T.hostname.replace(/(\[|\])/g,""),S.protocol=I?b||null:T.protocol,S.search=T.search.replace(/\\/g,"%5C"),S.hash=T.hash.replace(/\\/g,"%5C");var N=t.split("#");!S.search&&~N[0].indexOf("?")&&(S.search="?"),S.hash||""!==N[1]||(S.hash="#"),S.query=i?n.decode(T.search.substr(1)):S.search.substr(1),S.pathname=O+(c?T.pathname.replace(/['^|`]/g,function(t){return"%"+t.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(t,n){try{return decodeURIComponent(n).split("").map(function(t){var n=t.charCodeAt();return n>256||/^[a-z0-9]$/i.test(t)?t:"%"+n.toString(16).toUpperCase()}).join("")}catch(t){return n}}):T.pathname),"about:"===S.protocol&&"blank"===S.pathname&&(S.protocol="",S.pathname=""),I&&"/"!==t[0]&&(S.pathname=S.pathname.substr(1)),b&&!p.test(b)&&"/"!==t.slice(-1)&&"/"===S.pathname&&(S.pathname=""),S.path=S.pathname+S.search,S.auth=[T.username,T.password].map(decodeURIComponent).filter(Boolean).join(":"),S.port=T.port,E&&!S.host.endsWith(E)&&(S.host+=E,S.port=E.slice(1)),S.href=O?""+S.pathname+S.search+S.hash:r(S);var w=/^(file)/.test(S.href)?["host","hostname"]:[];return Object.keys(S).forEach(function(t){~w.indexOf(t)||(S[t]=S[t]||null)}),S}a.parse=d,a.format=r,a.resolve=h,a.resolveObject=function(t,n){return d(h(t,n))},a.Url=l}(),t.exports=a}()},97334:function(t){!function(){"use strict";var n={815:function(t){t.exports=function(t,i,o,a){i=i||"&",o=o||"=";var u={};if("string"!=typeof t||0===t.length)return u;var c=/\+/g;t=t.split(i);var f=1e3;a&&"number"==typeof a.maxKeys&&(f=a.maxKeys);var p=t.length;f>0&&p>f&&(p=f);for(var y=0;y=0?(m=T.substr(0,_),v=T.substr(_+1)):(m=T,v=""),g=decodeURIComponent(m),b=decodeURIComponent(v),Object.prototype.hasOwnProperty.call(u,g))?n(u[g])?u[g].push(b):u[g]=[u[g],b]:u[g]=b}return u};var n=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},577:function(t){var stringifyPrimitive=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,o,a,u){return(o=o||"&",a=a||"=",null===t&&(t=void 0),"object"==typeof t)?map(i(t),function(i){var u=encodeURIComponent(stringifyPrimitive(i))+a;return n(t[i])?map(t[i],function(t){return u+encodeURIComponent(stringifyPrimitive(t))}).join(o):u+encodeURIComponent(stringifyPrimitive(t[i]))}).join(o):u?encodeURIComponent(stringifyPrimitive(u))+a+encodeURIComponent(stringifyPrimitive(t)):""};var n=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function map(t,n){if(t.map)return t.map(n);for(var i=[],o=0;o needs to exist in the component ancestry.")}var f=(0,o.pi)((0,o.pi)({},c.Z0),{textComponent:a.Fragment});function assignUniqueKeysToParts(t){return function(n){return t(a.Children.toArray(n))}}function shallowEqual(t,n){if(t===n)return!0;if(!t||!n)return!1;var i=Object.keys(t),o=Object.keys(n),a=i.length;if(o.length!==a)return!1;for(var u=0;u>>9<<4)+14+1}function safeAdd(t,n){let i=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(i>>16)<<16|65535&i}function md5cmn(t,n,i,o,a,u){var c;return safeAdd((c=safeAdd(safeAdd(n,t),safeAdd(o,u)))<>>32-a,i)}function md5ff(t,n,i,o,a,u,c){return md5cmn(n&i|~n&o,t,n,a,u,c)}function md5gg(t,n,i,o,a,u,c){return md5cmn(n&o|i&~o,t,n,a,u,c)}function md5hh(t,n,i,o,a,u,c){return md5cmn(n^i^o,t,n,a,u,c)}function md5ii(t,n,i,o,a,u,c){return md5cmn(i^(n|~o),t,n,a,u,c)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(t){if("string"==typeof t){let n=unescape(encodeURIComponent(t));t=new Uint8Array(n.length);for(let i=0;i>5]>>>a%32&255,u=parseInt(o.charAt(i>>>4&15)+o.charAt(15&i),16);n.push(u)}return n}(function(t,n){t[n>>5]|=128<>5]|=(255&t[o/8])<>>24,i[1]=n>>>16&255,i[2]=n>>>8&255,i[3]=255&n,i[4]=(n=parseInt(t.slice(9,13),16))>>>8,i[5]=255&n,i[6]=(n=parseInt(t.slice(14,18),16))>>>8,i[7]=255&n,i[8]=(n=parseInt(t.slice(19,23),16))>>>8,i[9]=255&n,i[10]=(n=parseInt(t.slice(24,36),16))/1099511627776&255,i[11]=n/4294967296&255,i[12]=n>>>24&255,i[13]=n>>>16&255,i[14]=n>>>8&255,i[15]=255&n,i}},70058:function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},33319:function(t,n){"use strict";let i;Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(o)};let o=new Uint8Array(16)},93757:function(t,n){"use strict";function ROTL(t,n){return t<>>32-n}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=function(t){let n=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){let n=unescape(encodeURIComponent(t));t=[];for(let i=0;i>>0;y=p,p=f,f=ROTL(c,30)>>>0,c=a,a=u}i[0]=i[0]+a>>>0,i[1]=i[1]+c>>>0,i[2]=i[2]+f>>>0,i[3]=i[3]+p>>>0,i[4]=i[4]+y>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]}},73990:function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.unsafeStringify=unsafeStringify;var o,a=(o=i(46435))&&o.__esModule?o:{default:o};let u=[];for(let t=0;t<256;++t)u.push((t+256).toString(16).slice(1));function unsafeStringify(t,n=0){return u[t[n+0]]+u[t[n+1]]+u[t[n+2]]+u[t[n+3]]+"-"+u[t[n+4]]+u[t[n+5]]+"-"+u[t[n+6]]+u[t[n+7]]+"-"+u[t[n+8]]+u[t[n+9]]+"-"+u[t[n+10]]+u[t[n+11]]+u[t[n+12]]+u[t[n+13]]+u[t[n+14]]+u[t[n+15]]}n.default=function(t,n=0){let i=unsafeStringify(t,n);if(!(0,a.default)(i))throw TypeError("Stringified UUID is invalid");return i}},63990:function(t,n,i){"use strict";let o,a;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u,c=(u=i(33319))&&u.__esModule?u:{default:u},f=i(73990);let p=0,y=0;n.default=function(t,n,i){let u=n&&i||0,m=n||Array(16),v=(t=t||{}).node||o,g=void 0!==t.clockseq?t.clockseq:a;if(null==v||null==g){let n=t.random||(t.rng||c.default)();null==v&&(v=o=[1|n[0],n[1],n[2],n[3],n[4],n[5]]),null==g&&(g=a=(n[6]<<8|n[7])&16383)}let b=void 0!==t.msecs?t.msecs:Date.now(),T=void 0!==t.nsecs?t.nsecs:y+1,_=b-p+(T-y)/1e4;if(_<0&&void 0===t.clockseq&&(g=g+1&16383),(_<0||b>p)&&void 0===t.nsecs&&(T=0),T>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");p=b,y=T,a=g,b+=122192928e5;let E=((268435455&b)*1e4+T)%4294967296;m[u++]=E>>>24&255,m[u++]=E>>>16&255,m[u++]=E>>>8&255,m[u++]=255&E;let S=b/4294967296*1e4&268435455;m[u++]=S>>>8&255,m[u++]=255&S,m[u++]=S>>>24&15|16,m[u++]=S>>>16&255,m[u++]=g>>>8|128,m[u++]=255&g;for(let t=0;t<6;++t)m[u+t]=v[t];return n||(0,f.unsafeStringify)(m)}},8237:function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=_interopRequireDefault(i(17925)),a=_interopRequireDefault(i(94163));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}let u=(0,o.default)("v3",48,a.default);n.default=u},17925:function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.URL=n.DNS=void 0,n.default=function(t,n,i){function generateUUID(t,o,c,f){var p;if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));let n=[];for(let i=0;i=0;--f)c.missing=((u={})[c.path[f]]=c.missing,u)}else c.missing=c.path;return c.__proto__=MissingFieldError.prototype,c}return(0,o.ZT)(MissingFieldError,t),MissingFieldError}(Error)},49641:function(t,n,i){"use strict";i.d(n,{$O:function(){return b},E_:function(){return fieldNameFromStoreName},Is:function(){return extractFragmentContext},RC:function(){return function selectionSetMatchesResult(t,n,i){return!!(0,u.s)(n)&&((0,c.k)(n)?n.every(function(n){return selectionSetMatchesResult(t,n,i)}):t.selections.every(function(t){if((0,a.My)(t)&&(0,f.LZ)(t,i)){var o=(0,a.u2)(t);return v.call(n,o)&&(!t.selectionSet||selectionSetMatchesResult(t.selectionSet,n[o],i))}return!0}))}},RI:function(){return v},ig:function(){return makeProcessedFieldsMerger},j:function(){return storeValueIsStoreObject},jS:function(){return normalizeConfig},jp:function(){return getTypenameFromStoreObject},lg:function(){return shouldCanonizeResults},uG:function(){return defaultDataIdFromObject}});var o=i(53712),a=i(51761),u=i(13154),c=i(21436),f=i(19065),p=i(182),y=i(23361),m=i(36765),v=Object.prototype.hasOwnProperty;function isNullish(t){return null==t}function defaultDataIdFromObject(t,n){var i=t.__typename,o=t.id,a=t._id;if("string"==typeof i&&(n&&(n.keyObject=isNullish(o)?isNullish(a)?void 0:{_id:a}:{id:o}),isNullish(o)&&!isNullish(a)&&(o=a),!isNullish(o)))return"".concat(i,":").concat("number"==typeof o||"string"==typeof o?o:JSON.stringify(o))}var g={dataIdFromObject:defaultDataIdFromObject,addTypename:!0,resultCaching:!0,canonizeResults:!1};function normalizeConfig(t){return(0,o.o)(g,t)}function shouldCanonizeResults(t){var n=t.canonizeResults;return void 0===n?g.canonizeResults:n}function getTypenameFromStoreObject(t,n){return(0,a.Yk)(n)?t.get(n.__ref,"__typename"):n&&n.__typename}var b=/^[_a-z][_0-9a-z]*/i;function fieldNameFromStoreName(t){var n=t.match(b);return n?n[0]:t}function storeValueIsStoreObject(t){return(0,u.s)(t)&&!(0,a.Yk)(t)&&!(0,c.k)(t)}function makeProcessedFieldsMerger(){return new p.w0}function extractFragmentContext(t,n){var i=(0,y.F)((0,m.kU)(t));return{fragmentMap:i,lookupFragment:function(t){var o=i[t];return!o&&n&&(o=n.lookup(t)),o||null}}}},32393:function(t,n,i){"use strict";i.d(n,{h:function(){return K}});var o,a,u=i(97582),c=i(16459),f=i(33893),p=i(30020),y=i(11294),m=i(75727),v=i(18056),g=i(76487),b=i(51761),T=i(97359),_=i(30320),E=i(53712),S=i(36765),I=i(182),O=i(19065),N=i(23361),w=i(10542),A=i(13154),R=i(75028),k=i(49641),C=Object.create(null),delModifier=function(){return C},D=Object.create(null),L=function(){function EntityStore(t,n){var i=this;this.policies=t,this.group=n,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(t,n){return(0,w.J)((0,b.Yk)(t)?i.get(t.__ref,n):t&&t[n])},this.canRead=function(t){return(0,b.Yk)(t)?i.has(t.__ref):"object"==typeof t},this.toReference=function(t,n){if("string"==typeof t)return(0,b.kQ)(t);if((0,b.Yk)(t))return t;var o=i.policies.identify(t)[0];if(o){var a=(0,b.kQ)(o);return n&&i.merge(o,t),a}}}return EntityStore.prototype.toObject=function(){return(0,u.pi)({},this.data)},EntityStore.prototype.has=function(t){return void 0!==this.lookup(t,!0)},EntityStore.prototype.get=function(t,n){if(this.group.depend(t,n),k.RI.call(this.data,t)){var i=this.data[t];if(i&&k.RI.call(i,n))return i[n]}return"__typename"===n&&k.RI.call(this.policies.rootTypenamesById,t)?this.policies.rootTypenamesById[t]:this instanceof M?this.parent.get(t,n):void 0},EntityStore.prototype.lookup=function(t,n){return(n&&this.group.depend(t,"__exists"),k.RI.call(this.data,t))?this.data[t]:this instanceof M?this.parent.lookup(t,n):this.policies.rootTypenamesById[t]?Object.create(null):void 0},EntityStore.prototype.merge=function(t,n){var i,o=this;(0,b.Yk)(t)&&(t=t.__ref),(0,b.Yk)(n)&&(n=n.__ref);var a="string"==typeof t?this.lookup(i=t):t,u="string"==typeof n?this.lookup(i=n):n;if(u){(0,c.kG)("string"==typeof i,1);var f=new I.w0(storeObjectReconciler).merge(a,u);if(this.data[i]=f,f!==a&&(delete this.refs[i],this.group.caching)){var p=Object.create(null);a||(p.__exists=1),Object.keys(u).forEach(function(t){if(!a||a[t]!==f[t]){p[t]=1;var n=(0,k.E_)(t);n===t||o.policies.hasKeyArgs(f.__typename,n)||(p[n]=1),void 0!==f[t]||o instanceof M||delete f[t]}}),p.__typename&&!(a&&a.__typename)&&this.policies.rootTypenamesById[i]===f.__typename&&delete p.__typename,Object.keys(p).forEach(function(t){return o.group.dirty(i,t)})}}},EntityStore.prototype.modify=function(t,n){var i=this,o=this.lookup(t);if(o){var a=Object.create(null),c=!1,f=!0,p={DELETE:C,INVALIDATE:D,isReference:b.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(n,o){return i.policies.readField("string"==typeof n?{fieldName:n,from:o||(0,b.kQ)(t)}:n,{store:i})}};if(Object.keys(o).forEach(function(y){var m=(0,k.E_)(y),v=o[y];if(void 0!==v){var g="function"==typeof n?n:n[y]||n[m];if(g){var b=g===delModifier?C:g((0,w.J)(v),(0,u.pi)((0,u.pi)({},p),{fieldName:m,storeFieldName:y,storage:i.getStorage(t,y)}));b===D?i.group.dirty(t,y):(b===C&&(b=void 0),b!==v&&(a[y]=b,c=!0,v=b))}void 0!==v&&(f=!1)}}),c)return this.merge(t,a),f&&(this instanceof M?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},EntityStore.prototype.delete=function(t,n,i){var o,a=this.lookup(t);if(a){var u=this.getFieldValue(a,"__typename"),c=n&&i?this.policies.getStoreFieldName({typename:u,fieldName:n,args:i}):n;return this.modify(t,c?((o={})[c]=delModifier,o):delModifier)}return!1},EntityStore.prototype.evict=function(t,n){var i=!1;return t.id&&(k.RI.call(this.data,t.id)&&(i=this.delete(t.id,t.fieldName,t.args)),this instanceof M&&this!==n&&(i=this.parent.evict(t,n)||i),(t.fieldName||i)&&this.group.dirty(t.id,t.fieldName||"__exists")),i},EntityStore.prototype.clear=function(){this.replace(null)},EntityStore.prototype.extract=function(){var t=this,n=this.toObject(),i=[];return this.getRootIdSet().forEach(function(n){k.RI.call(t.policies.rootTypenamesById,n)||i.push(n)}),i.length&&(n.__META={extraRootIds:i.sort()}),n},EntityStore.prototype.replace=function(t){var n=this;if(Object.keys(this.data).forEach(function(i){t&&k.RI.call(t,i)||n.delete(i)}),t){var i=t.__META,o=(0,u._T)(t,["__META"]);Object.keys(o).forEach(function(t){n.merge(t,o[t])}),i&&i.extraRootIds.forEach(this.retain,this)}},EntityStore.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},EntityStore.prototype.release=function(t){if(this.rootIds[t]>0){var n=--this.rootIds[t];return n||delete this.rootIds[t],n}return 0},EntityStore.prototype.getRootIdSet=function(t){return void 0===t&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof M?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},EntityStore.prototype.gc=function(){var t=this,n=this.getRootIdSet(),i=this.toObject();n.forEach(function(o){k.RI.call(i,o)&&(Object.keys(t.findChildRefIds(o)).forEach(n.add,n),delete i[o])});var o=Object.keys(i);if(o.length){for(var a=this;a instanceof M;)a=a.parent;o.forEach(function(t){return a.delete(t)})}return o},EntityStore.prototype.findChildRefIds=function(t){if(!k.RI.call(this.refs,t)){var n=this.refs[t]=Object.create(null),i=this.data[t];if(!i)return n;var o=new Set([i]);o.forEach(function(t){(0,b.Yk)(t)&&(n[t.__ref]=!0),(0,A.s)(t)&&Object.keys(t).forEach(function(n){var i=t[n];(0,A.s)(i)&&o.add(i)})})}return this.refs[t]},EntityStore.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},EntityStore}(),F=function(){function CacheGroup(t,n){void 0===n&&(n=null),this.caching=t,this.parent=n,this.d=null,this.resetCaching()}return CacheGroup.prototype.resetCaching=function(){this.d=this.caching?(0,f.dP)():null,this.keyMaker=new R.B(_.mr)},CacheGroup.prototype.depend=function(t,n){if(this.d){this.d(n+"#"+t);var i=(0,k.E_)(n);i!==n&&this.d(i+"#"+t),this.parent&&this.parent.depend(t,n)}},CacheGroup.prototype.dirty=function(t,n){this.d&&this.d.dirty(n+"#"+t,"__exists"===n?"forget":"setDirty")},CacheGroup}();function maybeDependOnExistenceOfEntity(t,n){supportsResultCaching(t)&&t.group.depend(n,"__exists")}a=function(t){function Root(n){var i=n.policies,o=n.resultCaching,a=n.seed,u=t.call(this,i,new F(void 0===o||o))||this;return u.stump=new P(u),u.storageTrie=new R.B(_.mr),a&&u.replace(a),u}return(0,u.ZT)(Root,t),Root.prototype.addLayer=function(t,n){return this.stump.addLayer(t,n)},Root.prototype.removeLayer=function(){return this},Root.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},Root}(o=L||(L={})),o.Root=a;var M=function(t){function Layer(n,i,o,a){var u=t.call(this,i.policies,a)||this;return u.id=n,u.parent=i,u.replay=o,u.group=a,o(u),u}return(0,u.ZT)(Layer,t),Layer.prototype.addLayer=function(t,n){return new Layer(t,this,n,this.group)},Layer.prototype.removeLayer=function(t){var n=this,i=this.parent.removeLayer(t);return t===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(t){var o=n.data[t],a=i.lookup(t);a?o?o!==a&&Object.keys(o).forEach(function(i){(0,p.D)(o[i],a[i])||n.group.dirty(t,i)}):(n.group.dirty(t,"__exists"),Object.keys(a).forEach(function(i){n.group.dirty(t,i)})):n.delete(t)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},Layer.prototype.toObject=function(){return(0,u.pi)((0,u.pi)({},this.parent.toObject()),this.data)},Layer.prototype.findChildRefIds=function(n){var i=this.parent.findChildRefIds(n);return k.RI.call(this.data,n)?(0,u.pi)((0,u.pi)({},i),t.prototype.findChildRefIds.call(this,n)):i},Layer.prototype.getStorage=function(){for(var t=this.parent;t.parent;)t=t.parent;return t.getStorage.apply(t,arguments)},Layer}(L),P=function(t){function Stump(n){return t.call(this,"EntityStore.Stump",n,function(){},new F(n.group.caching,n.group))||this}return(0,u.ZT)(Stump,t),Stump.prototype.removeLayer=function(){return this},Stump.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},Stump}(M);function storeObjectReconciler(t,n,i){var o=t[i],a=n[i];return(0,p.D)(o,a)?o:a}function supportsResultCaching(t){return!!(t instanceof L&&t.group.caching)}var x=i(21436),j=i(80900);function execSelectionSetKeyArgs(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var U=function(){function StoreReader(t){var n=this;this.knownResults=new(_.mr?WeakMap:Map),this.config=(0,E.o)(t,{addTypename:!1!==t.addTypename,canonizeResults:(0,k.lg)(t)}),this.canon=t.canon||new j.h,this.executeSelectionSet=(0,f.re)(function(t){var i,o=t.context.canonizeResults,a=execSelectionSetKeyArgs(t);a[3]=!o;var c=(i=n.executeSelectionSet).peek.apply(i,a);return c?o?(0,u.pi)((0,u.pi)({},c),{result:n.canon.admit(c.result)}):c:(maybeDependOnExistenceOfEntity(t.context.store,t.enclosingRef.__ref),n.execSelectionSetImpl(t))},{max:this.config.resultCacheMaxSize,keyArgs:execSelectionSetKeyArgs,makeCacheKey:function(t,n,i,o){if(supportsResultCaching(i.store))return i.store.makeCacheKey(t,(0,b.Yk)(n)?n.__ref:n,i.varString,o)}}),this.executeSubSelectedArray=(0,f.re)(function(t){return maybeDependOnExistenceOfEntity(t.context.store,t.enclosingRef.__ref),n.execSubSelectedArrayImpl(t)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(t){var n=t.field,i=t.array,o=t.context;if(supportsResultCaching(o.store))return o.store.makeCacheKey(n,i,o.varString)}})}return StoreReader.prototype.resetCanon=function(){this.canon=new j.h},StoreReader.prototype.diffQueryAgainstStore=function(t){var n,i=t.store,o=t.query,a=t.rootId,c=void 0===a?"ROOT_QUERY":a,f=t.variables,p=t.returnPartialData,y=t.canonizeResults,v=void 0===y?this.config.canonizeResults:y,g=this.config.cache.policies;f=(0,u.pi)((0,u.pi)({},(0,S.O4)((0,S.iW)(o))),f);var T=(0,b.kQ)(c),_=this.executeSelectionSet({selectionSet:(0,S.p$)(o).selectionSet,objectOrReference:T,enclosingRef:T,context:(0,u.pi)({store:i,query:o,policies:g,variables:f,varString:(0,j.B)(f),canonizeResults:v},(0,k.Is)(o,this.config.fragments))});if(_.missing&&(n=[new m.y(function(t){try{JSON.stringify(t,function(t,n){if("string"==typeof n)throw n;return n})}catch(t){return t}}(_.missing),_.missing,o,f)],!(void 0===p||p)))throw n[0];return{result:_.result,complete:!n,missing:n}},StoreReader.prototype.isFresh=function(t,n,i,o){if(supportsResultCaching(o.store)&&this.knownResults.get(t)===i){var a=this.executeSelectionSet.peek(i,n,o,this.canon.isKnown(t));if(a&&t===a.result)return!0}return!1},StoreReader.prototype.execSelectionSetImpl=function(t){var n,i=this,o=t.selectionSet,a=t.objectOrReference,u=t.enclosingRef,f=t.context;if((0,b.Yk)(a)&&!f.policies.rootTypenamesById[a.__ref]&&!f.store.has(a.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(a.__ref," object")};var p=f.variables,y=f.policies,m=f.store.getFieldValue(a,"__typename"),v=[],_=new I.w0;function handleMissing(t,i){var o;return t.missing&&(n=_.merge(n,((o={})[i]=t.missing,o))),t.result}this.config.addTypename&&"string"==typeof m&&!y.rootIdsByTypename[m]&&v.push({__typename:m});var E=new Set(o.selections);E.forEach(function(t){var o,S;if((0,O.LZ)(t,p)){if((0,b.My)(t)){var I=y.readField({fieldName:t.name.value,field:t,variables:f.variables,from:a},f),w=(0,b.u2)(t);void 0===I?g.Gw.added(t)||(n=_.merge(n,((o={})[w]="Can't find field '".concat(t.name.value,"' on ").concat((0,b.Yk)(a)?a.__ref+" object":"object "+JSON.stringify(a,null,2)),o))):(0,x.k)(I)?I=handleMissing(i.executeSubSelectedArray({field:t,array:I,enclosingRef:u,context:f}),w):t.selectionSet?null!=I&&(I=handleMissing(i.executeSelectionSet({selectionSet:t.selectionSet,objectOrReference:I,enclosingRef:(0,b.Yk)(I)?I:u,context:f}),w)):f.canonizeResults&&(I=i.canon.pass(I)),void 0!==I&&v.push(((S={})[w]=I,S))}else{var A=(0,N.hi)(t,f.lookupFragment);if(!A&&t.kind===T.h.FRAGMENT_SPREAD)throw(0,c._K)(7,t.name.value);A&&y.fragmentMatches(A,m)&&A.selectionSet.selections.forEach(E.add,E)}}});var S={result:(0,I.bw)(v),missing:n},A=f.canonizeResults?this.canon.admit(S):(0,w.J)(S);return A.result&&this.knownResults.set(A.result,o),A},StoreReader.prototype.execSubSelectedArrayImpl=function(t){var n,i=this,o=t.field,a=t.array,u=t.enclosingRef,f=t.context,p=new I.w0;function handleMissing(t,i){var o;return t.missing&&(n=p.merge(n,((o={})[i]=t.missing,o))),t.result}return o.selectionSet&&(a=a.filter(f.store.canRead)),a=a.map(function(t,n){return null===t?null:(0,x.k)(t)?handleMissing(i.executeSubSelectedArray({field:o,array:t,enclosingRef:u,context:f}),n):o.selectionSet?handleMissing(i.executeSelectionSet({selectionSet:o.selectionSet,objectOrReference:t,enclosingRef:(0,b.Yk)(t)?t:u,context:f}),n):(!1!==globalThis.__DEV__&&function(t,n,i){if(!n.selectionSet){var o=new Set([i]);o.forEach(function(i){(0,A.s)(i)&&((0,c.kG)(!(0,b.Yk)(i),8,(0,k.jp)(t,i),n.name.value),Object.values(i).forEach(o.add,o))})}}(f.store,o,t),t)}),{result:f.canonizeResults?this.canon.admit(a):a,missing:n}},StoreReader}(),V=i(79487),B=i(13887),q=i(66438),Q=Object.create(null);function lookupSpecifierInfo(t){var n=JSON.stringify(t);return Q[n]||(Q[n]=Object.create(null))}function keyFieldsFnFromSpecifier(t){var n=lookupSpecifierInfo(t);return n.keyFieldsFn||(n.keyFieldsFn=function(n,i){var extract=function(t,n){return i.readField(n,t)},o=i.keyObject=collectSpecifierPaths(t,function(t){var o=extractKeyPath(i.storeObject,t,extract);return void 0===o&&n!==i.storeObject&&k.RI.call(n,t[0])&&(o=extractKeyPath(n,t,extractKey)),(0,c.kG)(void 0!==o,2,t.join("."),n),o});return"".concat(i.typename,":").concat(JSON.stringify(o))})}function keyArgsFnFromSpecifier(t){var n=lookupSpecifierInfo(t);return n.keyArgsFn||(n.keyArgsFn=function(n,i){var o=i.field,a=i.variables,u=i.fieldName,c=JSON.stringify(collectSpecifierPaths(t,function(t){var i=t[0],u=i.charAt(0);if("@"===u){if(o&&(0,x.O)(o.directives)){var c=i.slice(1),f=o.directives.find(function(t){return t.name.value===c}),p=f&&(0,b.NC)(f,a);return p&&extractKeyPath(p,t.slice(1))}return}if("$"===u){var y=i.slice(1);if(a&&k.RI.call(a,y)){var m=t.slice(0);return m[0]=y,extractKeyPath(a,m)}return}if(n)return extractKeyPath(n,t)}));return(n||"{}"!==c)&&(u+=":"+c),u})}function collectSpecifierPaths(t,n){var i=new I.w0;return(function getSpecifierPaths(t){var n=lookupSpecifierInfo(t);if(!n.paths){var i=n.paths=[],o=[];t.forEach(function(n,a){(0,x.k)(n)?(getSpecifierPaths(n).forEach(function(t){return i.push(o.concat(t))}),o.length=0):(o.push(n),(0,x.k)(t[a+1])||(i.push(o.slice(0)),o.length=0))})}return n.paths})(t).reduce(function(t,o){var a,u=n(o);if(void 0!==u){for(var c=o.length-1;c>=0;--c)(a={})[o[c]]=u,u=a;t=i.merge(t,u)}return t},Object.create(null))}function extractKey(t,n){return t[n]}function extractKeyPath(t,n,i){return i=i||extractKey,function normalize(t){return(0,A.s)(t)?(0,x.k)(t)?t.map(normalize):collectSpecifierPaths(Object.keys(t).sort(),function(n){return extractKeyPath(t,n)}):t}(n.reduce(function reducer(t,n){return(0,x.k)(t)?t.map(function(t){return reducer(t,n)}):t&&i(t,n)},t))}function argsFromFieldSpecifier(t){return void 0!==t.args?t.args:t.field?(0,b.NC)(t.field,t.variables):null}b.PT.setStringify(j.B);var nullKeyFieldsFn=function(){},simpleKeyArgsFn=function(t,n){return n.fieldName},mergeTrueFn=function(t,n,i){return(0,i.mergeObjects)(t,n)},mergeFalseFn=function(t,n){return n},G=function(){function Policies(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,u.pi)({dataIdFromObject:k.uG},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return Policies.prototype.identify=function(t,n){var i,o,a=this,c=n&&(n.typename||(null===(i=n.storeObject)||void 0===i?void 0:i.__typename))||t.__typename;if(c===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var f=n&&n.storeObject||t,p=(0,u.pi)((0,u.pi)({},n),{typename:c,storeObject:f,readField:n&&n.readField||function(){var t=normalizeReadFieldOptions(arguments,f);return a.readField(t,{store:a.cache.data,variables:t.variables})}}),y=c&&this.getTypePolicy(c),m=y&&y.keyFn||this.config.dataIdFromObject;m;){var v=m((0,u.pi)((0,u.pi)({},t),f),p);if((0,x.k)(v))m=keyFieldsFnFromSpecifier(v);else{o=v;break}}return o=o?String(o):void 0,p.keyObject?[o,p.keyObject]:[o]},Policies.prototype.addTypePolicies=function(t){var n=this;Object.keys(t).forEach(function(i){var o=t[i],a=o.queryType,c=o.mutationType,f=o.subscriptionType,p=(0,u._T)(o,["queryType","mutationType","subscriptionType"]);a&&n.setRootTypename("Query",i),c&&n.setRootTypename("Mutation",i),f&&n.setRootTypename("Subscription",i),k.RI.call(n.toBeAdded,i)?n.toBeAdded[i].push(p):n.toBeAdded[i]=[p]})},Policies.prototype.updateTypePolicy=function(t,n){var i=this,o=this.getTypePolicy(t),a=n.keyFields,u=n.fields;function setMerge(t,n){t.merge="function"==typeof n?n:!0===n?mergeTrueFn:!1===n?mergeFalseFn:t.merge}setMerge(o,n.merge),o.keyFn=!1===a?nullKeyFieldsFn:(0,x.k)(a)?keyFieldsFnFromSpecifier(a):"function"==typeof a?a:o.keyFn,u&&Object.keys(u).forEach(function(n){var o=i.getFieldPolicy(t,n,!0),a=u[n];if("function"==typeof a)o.read=a;else{var c=a.keyArgs,f=a.read,p=a.merge;o.keyFn=!1===c?simpleKeyArgsFn:(0,x.k)(c)?keyArgsFnFromSpecifier(c):"function"==typeof c?c:o.keyFn,"function"==typeof f&&(o.read=f),setMerge(o,p)}o.read&&o.merge&&(o.keyFn=o.keyFn||simpleKeyArgsFn)})},Policies.prototype.setRootTypename=function(t,n){void 0===n&&(n=t);var i="ROOT_"+t.toUpperCase(),o=this.rootTypenamesById[i];n!==o&&((0,c.kG)(!o||o===t,3,t),o&&delete this.rootIdsByTypename[o],this.rootIdsByTypename[n]=i,this.rootTypenamesById[i]=n)},Policies.prototype.addPossibleTypes=function(t){var n=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(i){n.getSupertypeSet(i,!0),t[i].forEach(function(t){n.getSupertypeSet(t,!0).add(i);var o=t.match(k.$O);o&&o[0]===t||n.fuzzySubtypes.set(t,new RegExp(t))})})},Policies.prototype.getTypePolicy=function(t){var n=this;if(!k.RI.call(this.typePolicies,t)){var i=this.typePolicies[t]=Object.create(null);i.fields=Object.create(null);var o=this.supertypeMap.get(t);!o&&this.fuzzySubtypes.size&&(o=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(i,a){if(i.test(t)){var u=n.supertypeMap.get(a);u&&u.forEach(function(t){return o.add(t)})}})),o&&o.size&&o.forEach(function(t){var o=n.getTypePolicy(t),a=o.fields;Object.assign(i,(0,u._T)(o,["fields"])),Object.assign(i.fields,a)})}var a=this.toBeAdded[t];return a&&a.length&&a.splice(0).forEach(function(i){n.updateTypePolicy(t,i)}),this.typePolicies[t]},Policies.prototype.getFieldPolicy=function(t,n,i){if(t){var o=this.getTypePolicy(t).fields;return o[n]||i&&(o[n]=Object.create(null))}},Policies.prototype.getSupertypeSet=function(t,n){var i=this.supertypeMap.get(t);return!i&&n&&this.supertypeMap.set(t,i=new Set),i},Policies.prototype.fragmentMatches=function(t,n,i,o){var a=this;if(!t.typeCondition)return!0;if(!n)return!1;var u=t.typeCondition.name.value;if(n===u)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(u))for(var f=this.getSupertypeSet(n,!0),p=[f],maybeEnqueue_1=function(t){var n=a.getSupertypeSet(t,!1);n&&n.size&&0>p.indexOf(n)&&p.push(n)},y=!!(i&&this.fuzzySubtypes.size),m=!1,v=0;v1?f:n}:(o=(0,u.pi)({},a),k.RI.call(o,"from")||(o.from=n)),!1!==globalThis.__DEV__&&void 0===o.from&&!1!==globalThis.__DEV__&&c.kG.warn(5,(0,B.v)(Array.from(t))),void 0===o.variables&&(o.variables=i),o}function makeMergeObjectsFunction(t){return function(n,i){if((0,x.k)(n)||(0,x.k)(i))throw(0,c._K)(6);if((0,A.s)(n)&&(0,A.s)(i)){var o=t.getFieldValue(n,"__typename"),a=t.getFieldValue(i,"__typename");if(o&&a&&o!==a)return i;if((0,b.Yk)(n)&&(0,k.j)(i))return t.merge(n.__ref,i),n;if((0,k.j)(n)&&(0,b.Yk)(i))return t.merge(n,i.__ref),i;if((0,k.j)(n)&&(0,k.j)(i))return(0,u.pi)((0,u.pi)({},n),i)}return i}}function getContextFlavor(t,n,i){var o="".concat(n).concat(i),a=t.flavors.get(o);return a||t.flavors.set(o,a=t.clientOnly===n&&t.deferred===i?t:(0,u.pi)((0,u.pi)({},t),{clientOnly:n,deferred:i})),a}var H=function(){function StoreWriter(t,n,i){this.cache=t,this.reader=n,this.fragments=i}return StoreWriter.prototype.writeToStore=function(t,n){var i=this,o=n.query,a=n.result,f=n.dataId,y=n.variables,m=n.overwrite,v=(0,S.$H)(o),g=(0,k.ig)();y=(0,u.pi)((0,u.pi)({},(0,S.O4)(v)),y);var T=(0,u.pi)((0,u.pi)({store:t,written:Object.create(null),merge:function(t,n){return g.merge(t,n)},variables:y,varString:(0,j.B)(y)},(0,k.Is)(o,this.fragments)),{overwrite:!!m,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),_=this.processSelectionSet({result:a||Object.create(null),dataId:f,selectionSet:v.selectionSet,mergeTree:{map:new Map},context:T});if(!(0,b.Yk)(_))throw(0,c._K)(9,a);return T.incomingById.forEach(function(n,o){var a=n.storeObject,u=n.mergeTree,f=n.fieldNodeSet,y=(0,b.kQ)(o);if(u&&u.map.size){var m=i.applyMerges(u,y,a,T);if((0,b.Yk)(m))return;a=m}if(!1!==globalThis.__DEV__&&!T.overwrite){var v=Object.create(null);f.forEach(function(t){t.selectionSet&&(v[t.name.value]=!0)});var hasMergeFunction_1=function(t){var n=u&&u.map.get(t);return!!(n&&n.info&&n.info.merge)};Object.keys(a).forEach(function(t){!0!==v[(0,k.E_)(t)]||hasMergeFunction_1(t)||function(t,n,i,o){var getChild=function(t){var n=o.getFieldValue(t,i);return"object"==typeof n&&n},a=getChild(t);if(a){var u=getChild(n);if(!(!u||(0,b.Yk)(a)||(0,p.D)(a,u)||Object.keys(a).every(function(t){return void 0!==o.getFieldValue(u,t)}))){var f=o.getFieldValue(t,"__typename")||o.getFieldValue(n,"__typename"),y=(0,k.E_)(i),m="".concat(f,".").concat(y);if(!z.has(m)){z.add(m);var v=[];(0,x.k)(a)||(0,x.k)(u)||[a,u].forEach(function(t){var n=o.getFieldValue(t,"__typename");"string"!=typeof n||v.includes(n)||v.push(n)}),!1!==globalThis.__DEV__&&c.kG.warn(12,y,f,v.length?"either ensure all objects of type "+v.join(" and ")+" have an ID or a custom merge function, or ":"",m,a,u)}}}}(y,a,t,T.store)})}t.merge(o,a)}),t.retain(_.__ref),_},StoreWriter.prototype.processSelectionSet=function(t){var n=this,i=t.dataId,o=t.result,a=t.selectionSet,f=t.context,p=t.mergeTree,y=this.cache.policies,m=Object.create(null),v=i&&y.rootTypenamesById[i]||(0,b.qw)(o,a,f.fragmentMap)||i&&f.store.get(i,"__typename");"string"==typeof v&&(m.__typename=v);var readField=function(){var t=normalizeReadFieldOptions(arguments,m,f.variables);if((0,b.Yk)(t.from)){var n=f.incomingById.get(t.from.__ref);if(n){var i=y.readField((0,u.pi)((0,u.pi)({},t),{from:n.storeObject}),f);if(void 0!==i)return i}}return y.readField(t,f)},T=new Set;this.flattenFields(a,o,f,v).forEach(function(t,i){var a,u=o[(0,b.u2)(i)];if(T.add(i),void 0!==u){var f=y.getStoreFieldName({typename:v,fieldName:i.name.value,field:i,variables:t.variables}),_=getChildMergeTree(p,f),E=n.processFieldValue(u,i,i.selectionSet?getContextFlavor(t,!1,!1):t,_),S=void 0;i.selectionSet&&((0,b.Yk)(E)||(0,k.j)(E))&&(S=readField("__typename",E));var I=y.getMergeFunction(v,i.name.value,S);I?_.info={field:i,typename:v,merge:I}:maybeRecycleChildMergeTree(p,f),m=t.merge(m,((a={})[f]=E,a))}else!1===globalThis.__DEV__||t.clientOnly||t.deferred||g.Gw.added(i)||y.getReadFunction(v,i.name.value)||!1===globalThis.__DEV__||c.kG.error(10,(0,b.u2)(i),o)});try{var _=y.identify(o,{typename:v,selectionSet:a,fragmentMap:f.fragmentMap,storeObject:m,readField:readField}),E=_[0],S=_[1];i=i||E,S&&(m=f.merge(m,S))}catch(t){if(!i)throw t}if("string"==typeof i){var I=(0,b.kQ)(i),O=f.written[i]||(f.written[i]=[]);if(O.indexOf(a)>=0||(O.push(a),this.reader&&this.reader.isFresh(o,I,a,f)))return I;var N=f.incomingById.get(i);return N?(N.storeObject=f.merge(N.storeObject,m),N.mergeTree=function mergeMergeTrees(t,n){if(t===n||!n||mergeTreeIsEmpty(n))return t;if(!t||mergeTreeIsEmpty(t))return n;var i=t.info&&n.info?(0,u.pi)((0,u.pi)({},t.info),n.info):t.info||n.info,o=t.map.size&&n.map.size,a={info:i,map:o?new Map:t.map.size?t.map:n.map};if(o){var c=new Set(n.map.keys());t.map.forEach(function(t,i){a.map.set(i,mergeMergeTrees(t,n.map.get(i))),c.delete(i)}),c.forEach(function(i){a.map.set(i,mergeMergeTrees(n.map.get(i),t.map.get(i)))})}return a}(N.mergeTree,p),T.forEach(function(t){return N.fieldNodeSet.add(t)})):f.incomingById.set(i,{storeObject:m,mergeTree:mergeTreeIsEmpty(p)?void 0:p,fieldNodeSet:T}),I}return m},StoreWriter.prototype.processFieldValue=function(t,n,i,o){var a=this;return n.selectionSet&&null!==t?(0,x.k)(t)?t.map(function(t,u){var c=a.processFieldValue(t,n,i,getChildMergeTree(o,u));return maybeRecycleChildMergeTree(o,u),c}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:i,mergeTree:o}):!1!==globalThis.__DEV__?(0,V.X)(t):t},StoreWriter.prototype.flattenFields=function(t,n,i,o){void 0===o&&(o=(0,b.qw)(n,t,i.fragmentMap));var a=new Map,u=this.cache.policies,f=new R.B(!1);return function flatten(t,p){var y=f.lookup(t,p.clientOnly,p.deferred);y.visited||(y.visited=!0,t.selections.forEach(function(t){if((0,O.LZ)(t,i.variables)){var f=p.clientOnly,y=p.deferred;if(!(f&&y)&&(0,x.O)(t.directives)&&t.directives.forEach(function(t){var n=t.name.value;if("client"===n&&(f=!0),"defer"===n){var o=(0,b.NC)(t,i.variables);o&&!1===o.if||(y=!0)}}),(0,b.My)(t)){var m=a.get(t);m&&(f=f&&m.clientOnly,y=y&&m.deferred),a.set(t,getContextFlavor(i,f,y))}else{var v=(0,N.hi)(t,i.lookupFragment);if(!v&&t.kind===T.h.FRAGMENT_SPREAD)throw(0,c._K)(11,t.name.value);v&&u.fragmentMatches(v,o,n,i.variables)&&flatten(v.selectionSet,getContextFlavor(i,f,y))}}}))}(t,i),a},StoreWriter.prototype.applyMerges=function(t,n,i,o,a){var f=this;if(t.map.size&&!(0,b.Yk)(i)){var p,y,m=!(0,x.k)(i)&&((0,b.Yk)(n)||(0,k.j)(n))?n:void 0,v=i;m&&!a&&(a=[(0,b.Yk)(m)?m.__ref:m]);var getValue_1=function(t,n){return(0,x.k)(t)?"number"==typeof n?t[n]:void 0:o.store.getFieldValue(t,String(n))};t.map.forEach(function(t,n){var i=getValue_1(m,n),u=getValue_1(v,n);if(void 0!==u){a&&a.push(n);var p=f.applyMerges(t,i,u,o,a);p!==u&&(y=y||new Map).set(n,p),a&&(0,c.kG)(a.pop()===n)}}),y&&(i=(0,x.k)(v)?v.slice(0):(0,u.pi)({},v),y.forEach(function(t,n){i[n]=t}))}return t.info?this.cache.policies.runMergeFunction(n,i,t.info,o,a&&(p=o.store).getStorage.apply(p,a)):i},StoreWriter}(),$=[];function getChildMergeTree(t,n){var i=t.map;return i.has(n)||i.set(n,$.pop()||{map:new Map}),i.get(n)}function mergeTreeIsEmpty(t){return!t||!(t.info||t.map.size)}function maybeRecycleChildMergeTree(t,n){var i=t.map,o=i.get(n);o&&mergeTreeIsEmpty(o)&&($.push(o),i.delete(n))}var z=new Set,K=function(t){function InMemoryCache(n){void 0===n&&(n={});var i=t.call(this)||this;return i.watches=new Set,i.addTypenameTransform=new v.A(g.Gw),i.assumeImmutableResults=!0,i.makeVar=q.QS,i.txCount=0,i.config=(0,k.jS)(n),i.addTypename=!!i.config.addTypename,i.policies=new G({cache:i,dataIdFromObject:i.config.dataIdFromObject,possibleTypes:i.config.possibleTypes,typePolicies:i.config.typePolicies}),i.init(),i}return(0,u.ZT)(InMemoryCache,t),InMemoryCache.prototype.init=function(){var t=this.data=new L.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=t.stump,this.resetResultCache()},InMemoryCache.prototype.resetResultCache=function(t){var n=this,i=this.storeReader,o=this.config.fragments;this.storeWriter=new H(this,this.storeReader=new U({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,k.lg)(this.config),canon:t?void 0:i&&i.canon,fragments:o}),o),this.maybeBroadcastWatch=(0,f.re)(function(t,i){return n.broadcastWatch(t,i)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(t){var i=t.optimistic?n.optimisticData:n.data;if(supportsResultCaching(i)){var o=t.optimistic,a=t.id,u=t.variables;return i.makeCacheKey(t.query,t.callback,(0,j.B)({optimistic:o,id:a,variables:u}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(t){return t.resetCaching()})},InMemoryCache.prototype.restore=function(t){return this.init(),t&&this.data.replace(t),this},InMemoryCache.prototype.extract=function(t){return void 0===t&&(t=!1),(t?this.optimisticData:this.data).extract()},InMemoryCache.prototype.read=function(t){var n=t.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,u.pi)((0,u.pi)({},t),{store:t.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==n&&n})).result||null}catch(t){if(t instanceof m.y)return null;throw t}},InMemoryCache.prototype.write=function(t){try{return++this.txCount,this.storeWriter.writeToStore(this.data,t)}finally{--this.txCount||!1===t.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.modify=function(t){if(k.RI.call(t,"id")&&!t.id)return!1;var n=t.optimistic?this.optimisticData:this.data;try{return++this.txCount,n.modify(t.id||"ROOT_QUERY",t.fields)}finally{--this.txCount||!1===t.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.diff=function(t){return this.storeReader.diffQueryAgainstStore((0,u.pi)((0,u.pi)({},t),{store:t.optimistic?this.optimisticData:this.data,rootId:t.id||"ROOT_QUERY",config:this.config}))},InMemoryCache.prototype.watch=function(t){var n=this;return this.watches.size||(0,q._v)(this),this.watches.add(t),t.immediate&&this.maybeBroadcastWatch(t),function(){n.watches.delete(t)&&!n.watches.size&&(0,q.li)(n),n.maybeBroadcastWatch.forget(t)}},InMemoryCache.prototype.gc=function(t){j.B.reset();var n=this.optimisticData.gc();return t&&!this.txCount&&(t.resetResultCache?this.resetResultCache(t.resetResultIdentities):t.resetResultIdentities&&this.storeReader.resetCanon()),n},InMemoryCache.prototype.retain=function(t,n){return(n?this.optimisticData:this.data).retain(t)},InMemoryCache.prototype.release=function(t,n){return(n?this.optimisticData:this.data).release(t)},InMemoryCache.prototype.identify=function(t){if((0,b.Yk)(t))return t.__ref;try{return this.policies.identify(t)[0]}catch(t){!1!==globalThis.__DEV__&&c.kG.warn(t)}},InMemoryCache.prototype.evict=function(t){if(!t.id){if(k.RI.call(t,"id"))return!1;t=(0,u.pi)((0,u.pi)({},t),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(t,this.data)}finally{--this.txCount||!1===t.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.reset=function(t){var n=this;return this.init(),j.B.reset(),t&&t.discardWatches?(this.watches.forEach(function(t){return n.maybeBroadcastWatch.forget(t)}),this.watches.clear(),(0,q.li)(this)):this.broadcastWatches(),Promise.resolve()},InMemoryCache.prototype.removeOptimistic=function(t){var n=this.optimisticData.removeLayer(t);n!==this.optimisticData&&(this.optimisticData=n,this.broadcastWatches())},InMemoryCache.prototype.batch=function(t){var n,i=this,o=t.update,a=t.optimistic,c=void 0===a||a,f=t.removeOptimistic,p=t.onWatchUpdated,perform=function(t){var a=i.data,u=i.optimisticData;++i.txCount,t&&(i.data=i.optimisticData=t);try{return n=o(i)}finally{--i.txCount,i.data=a,i.optimisticData=u}},y=new Set;return p&&!this.txCount&&this.broadcastWatches((0,u.pi)((0,u.pi)({},t),{onWatchUpdated:function(t){return y.add(t),!1}})),"string"==typeof c?this.optimisticData=this.optimisticData.addLayer(c,perform):!1===c?perform(this.data):perform(),"string"==typeof f&&(this.optimisticData=this.optimisticData.removeLayer(f)),p&&y.size?(this.broadcastWatches((0,u.pi)((0,u.pi)({},t),{onWatchUpdated:function(t,n){var i=p.call(this,t,n);return!1!==i&&y.delete(t),i}})),y.size&&y.forEach(function(t){return i.maybeBroadcastWatch.dirty(t)})):this.broadcastWatches(t),n},InMemoryCache.prototype.performTransaction=function(t,n){return this.batch({update:t,optimistic:n||null!==n})},InMemoryCache.prototype.transformDocument=function(t){return this.addTypenameToDocument(this.addFragmentsToDocument(t))},InMemoryCache.prototype.broadcastWatches=function(t){var n=this;this.txCount||this.watches.forEach(function(i){return n.maybeBroadcastWatch(i,t)})},InMemoryCache.prototype.addFragmentsToDocument=function(t){var n=this.config.fragments;return n?n.transform(t):t},InMemoryCache.prototype.addTypenameToDocument=function(t){return this.addTypename?this.addTypenameTransform.transformDocument(t):t},InMemoryCache.prototype.broadcastWatch=function(t,n){var i=t.lastDiff,o=this.diff(t);(!n||(t.optimistic&&"string"==typeof n.optimistic&&(o.fromOptimisticTransaction=!0),!n.onWatchUpdated||!1!==n.onWatchUpdated.call(this,t,o,i)))&&(i&&(0,p.D)(i.result,o.result)||t.callback(t.lastDiff=o,i))},InMemoryCache}(y.R)},80900:function(t,n,i){"use strict";i.d(n,{B:function(){return v},h:function(){return m}});var o,a,u=i(97582),c=i(75028),f=i(13154),p=i(30320),y=i(21436),m=function(){function ObjectCanon(){this.known=new(p.sy?WeakSet:Set),this.pool=new c.B(p.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return ObjectCanon.prototype.isKnown=function(t){return(0,f.s)(t)&&this.known.has(t)},ObjectCanon.prototype.pass=function(t){if((0,f.s)(t)){var n=(0,f.s)(t)?(0,y.k)(t)?t.slice(0):(0,u.pi)({__proto__:Object.getPrototypeOf(t)},t):t;return this.passes.set(n,t),n}return t},ObjectCanon.prototype.admit=function(t){var n=this;if((0,f.s)(t)){var i=this.passes.get(t);if(i)return i;switch(Object.getPrototypeOf(t)){case Array.prototype:if(this.known.has(t))break;var o=t.map(this.admit,this),a=this.pool.lookupArray(o);return a.array||(this.known.add(a.array=o),!1!==globalThis.__DEV__&&Object.freeze(o)),a.array;case null:case Object.prototype:if(this.known.has(t))break;var u=Object.getPrototypeOf(t),c=[u],p=this.sortedKeys(t);c.push(p.json);var y=c.length;p.sorted.forEach(function(i){c.push(n.admit(t[i]))});var a=this.pool.lookupArray(c);if(!a.object){var m=a.object=Object.create(u);this.known.add(m),p.sorted.forEach(function(t,n){m[t]=c[y+n]}),!1!==globalThis.__DEV__&&Object.freeze(m)}return a.object}}return t},ObjectCanon.prototype.sortedKeys=function(t){var n=Object.keys(t),i=this.pool.lookupArray(n);if(!i.keys){n.sort();var o=JSON.stringify(n);(i.keys=this.keysByJSON.get(o))||this.keysByJSON.set(o,i.keys={sorted:n,json:o})}return i.keys},ObjectCanon}(),v=Object.assign(function(t){if((0,f.s)(t)){void 0===o&&resetCanonicalStringify();var n=o.admit(t),i=a.get(n);return void 0===i&&a.set(n,i=JSON.stringify(n)),i}return JSON.stringify(t)},{reset:resetCanonicalStringify});function resetCanonicalStringify(){o=new m,a=new(p.mr?WeakMap:Map)}},66438:function(t,n,i){"use strict";i.d(n,{QS:function(){return makeVar},_v:function(){return recallCache},ab:function(){return a},li:function(){return forgetCache}});var o=i(33893),a=new(i(70093)).g7,u=new WeakMap;function getCacheInfo(t){var n=u.get(t);return n||u.set(t,n={vars:new Set,dep:(0,o.dP)()}),n}function forgetCache(t){getCacheInfo(t).vars.forEach(function(n){return n.forgetCache(t)})}function recallCache(t){getCacheInfo(t).vars.forEach(function(n){return n.attachCache(t)})}function makeVar(t){var n=new Set,i=new Set,rv=function(u){if(arguments.length>0){if(t!==u){t=u,n.forEach(function(t){getCacheInfo(t).dep.dirty(rv),t.broadcastWatches&&t.broadcastWatches()});var c=Array.from(i);i.clear(),c.forEach(function(n){return n(t)})}}else{var f=a.getValue();f&&(o(f),getCacheInfo(f).dep(rv))}return t};rv.onNextChange=function(t){return i.add(t),function(){i.delete(t)}};var o=rv.attachCache=function(t){return n.add(t),getCacheInfo(t).vars.add(rv),rv};return rv.forgetCache=function(t){return n.delete(t)},rv}},38854:function(t,n,i){"use strict";i.d(n,{f:function(){return z}});var o=i(97582),a=i(16459),u=i(48702),c=i(47037),f=i(49379),p=i(72198),y=i(30020),m=i(37280),v=i(19065),g=i(76487),b=i(80900),T=i(30320),_=i(18056),E=i(46951),S=i(69383),I=i(21436),O=i(36765),N=i(51761),w=i(13154),A=i(60897),R=i(48216),k=i(55687),C=i(30990),D=i(14642),L=i(1644),F=i(77304),M=i(75844),P=i(182),x=i(23361),j=i(66438),U=function(){function LocalState(t){var n=t.cache,i=t.client,o=t.resolvers,a=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=n,i&&(this.client=i),o&&this.addResolvers(o),a&&this.setFragmentMatcher(a)}return LocalState.prototype.addResolvers=function(t){var n=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(t){n.resolvers=(0,P.Ee)(n.resolvers,t)}):this.resolvers=(0,P.Ee)(this.resolvers,t)},LocalState.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},LocalState.prototype.getResolvers=function(){return this.resolvers||{}},LocalState.prototype.runResolvers=function(t){var n=t.document,i=t.remoteResult,a=t.context,u=t.variables,c=t.onlyRunForcedResolvers,f=void 0!==c&&c;return(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(t){return n?[2,this.resolveDocument(n,i.data,a,u,this.fragmentMatcher,f).then(function(t){return(0,o.pi)((0,o.pi)({},i),{data:t.result})})]:[2,i]})})},LocalState.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},LocalState.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},LocalState.prototype.clientQuery=function(t){return(0,v.FS)(["client"],t)&&this.resolvers?t:null},LocalState.prototype.serverQuery=function(t){return(0,g.ob)(t)},LocalState.prototype.prepareContext=function(t){var n=this.cache;return(0,o.pi)((0,o.pi)({},t),{cache:n,getCacheKey:function(t){return n.identify(t)}})},LocalState.prototype.addExportedVariables=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(a){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,n)||{},this.prepareContext(i),n).then(function(t){return(0,o.pi)((0,o.pi)({},n),t.exportedVariables)})]:[2,(0,o.pi)({},n)]})})},LocalState.prototype.shouldForceResolvers=function(t){var n=!1;return(0,F.Vn)(t,{Directive:{enter:function(t){if("client"===t.name.value&&t.arguments&&(n=t.arguments.some(function(t){return"always"===t.name.value&&"BooleanValue"===t.value.kind&&!0===t.value.value})))return F.$_}}}),n},LocalState.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:(0,g.aL)(t),variables:n,returnPartialData:!0,optimistic:!1}).result},LocalState.prototype.resolveDocument=function(t,n,i,a,u,c){return void 0===i&&(i={}),void 0===a&&(a={}),void 0===u&&(u=function(){return!0}),void 0===c&&(c=!1),(0,o.mG)(this,void 0,void 0,function(){var f,p,y,m,v,g,b,T,_,E;return(0,o.Jh)(this,function(S){return f=(0,O.p$)(t),p=(0,O.kU)(t),y=(0,x.F)(p),m=this.collectSelectionsToResolve(f,y),g=(v=f.operation)?v.charAt(0).toUpperCase()+v.slice(1):"Query",b=this,T=b.cache,_=b.client,E={fragmentMap:y,context:(0,o.pi)((0,o.pi)({},i),{cache:T,client:_}),variables:a,fragmentMatcher:u,defaultOperationType:g,exportedVariables:{},selectionsToResolve:m,onlyRunForcedResolvers:c},[2,this.resolveSelectionSet(f.selectionSet,!1,n,E).then(function(t){return{result:t,exportedVariables:E.exportedVariables}})]})})},LocalState.prototype.resolveSelectionSet=function(t,n,i,u){return(0,o.mG)(this,void 0,void 0,function(){var c,f,p,y,m,g=this;return(0,o.Jh)(this,function(b){return c=u.fragmentMap,f=u.context,p=u.variables,y=[i],m=function(t){return(0,o.mG)(g,void 0,void 0,function(){var m,g;return(0,o.Jh)(this,function(o){return(n||u.selectionsToResolve.has(t))&&(0,v.LZ)(t,p)?(0,N.My)(t)?[2,this.resolveField(t,n,i,u).then(function(n){var i;void 0!==n&&y.push(((i={})[(0,N.u2)(t)]=n,i))})]:((0,N.Ao)(t)?m=t:(m=c[t.name.value],(0,a.kG)(m,16,t.name.value)),m&&m.typeCondition&&(g=m.typeCondition.name.value,u.fragmentMatcher(i,g,f)))?[2,this.resolveSelectionSet(m.selectionSet,n,i,u).then(function(t){y.push(t)})]:[2]:[2]})})},[2,Promise.all(t.selections.map(m)).then(function(){return(0,P.bw)(y)})]})})},LocalState.prototype.resolveField=function(t,n,i,a){return(0,o.mG)(this,void 0,void 0,function(){var u,c,f,p,y,m,v,g,b,T=this;return(0,o.Jh)(this,function(o){return i?(u=a.variables,p=(c=t.name.value)!==(f=(0,N.u2)(t)),m=Promise.resolve(y=i[f]||i[c]),(!a.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(v=i.__typename||a.defaultOperationType,(g=this.resolvers&&this.resolvers[v])&&(b=g[p?c:f])&&(m=Promise.resolve(j.ab.withValue(this.cache,b,[i,(0,N.NC)(t,u),a.context,{field:t,fragmentMap:a.fragmentMap}])))),[2,m.then(function(i){if(void 0===i&&(i=y),t.directives&&t.directives.forEach(function(t){"export"===t.name.value&&t.arguments&&t.arguments.forEach(function(t){"as"===t.name.value&&"StringValue"===t.value.kind&&(a.exportedVariables[t.value.value]=i)})}),!t.selectionSet||null==i)return i;var o,u,c=null!==(u=null===(o=t.directives)||void 0===o?void 0:o.some(function(t){return"client"===t.name.value}))&&void 0!==u&&u;return Array.isArray(i)?T.resolveSubSelectedArray(t,n||c,i,a):t.selectionSet?T.resolveSelectionSet(t.selectionSet,n||c,i,a):void 0})]):[2,null]})})},LocalState.prototype.resolveSubSelectedArray=function(t,n,i,o){var a=this;return Promise.all(i.map(function(i){return null===i?null:Array.isArray(i)?a.resolveSubSelectedArray(t,n,i,o):t.selectionSet?a.resolveSelectionSet(t.selectionSet,n,i,o):void 0}))},LocalState.prototype.collectSelectionsToResolve=function(t,n){var isSingleASTNode=function(t){return!Array.isArray(t)},i=this.selectionsToResolveCache;return function collectByDefinition(t){if(!i.has(t)){var o=new Set;i.set(t,o),(0,F.Vn)(t,{Directive:function(t,n,i,a,u){"client"===t.name.value&&u.forEach(function(t){isSingleASTNode(t)&&(0,M.pO)(t)&&o.add(t)})},FragmentSpread:function(t,i,u,c,f){var p=n[t.name.value];(0,a.kG)(p,17,t.name.value);var y=collectByDefinition(p);y.size>0&&(f.forEach(function(t){isSingleASTNode(t)&&(0,M.pO)(t)&&o.add(t)}),o.add(t),y.forEach(function(t){o.add(t)}))}})}return i.get(t)}(t)},LocalState}(),V=new(T.mr?WeakMap:Map);function wrapDestructiveCacheMethod(t,n){var i=t[n];"function"==typeof i&&(t[n]=function(){return V.set(t,(V.get(t)+1)%1e15),i.apply(this,arguments)})}function cancelNotifyTimeout(t){t.notifyTimeout&&(clearTimeout(t.notifyTimeout),t.notifyTimeout=void 0)}var B=function(){function QueryInfo(t,n){void 0===n&&(n=t.generateQueryId()),this.queryId=n,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var i=this.cache=t.cache;V.has(i)||(V.set(i,0),wrapDestructiveCacheMethod(i,"evict"),wrapDestructiveCacheMethod(i,"modify"),wrapDestructiveCacheMethod(i,"reset"))}return QueryInfo.prototype.init=function(t){var n=t.networkStatus||L.Ie.loading;return this.variables&&this.networkStatus!==L.Ie.loading&&!(0,y.D)(this.variables,t.variables)&&(n=L.Ie.setVariables),(0,y.D)(t.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},QueryInfo.prototype.reset=function(){cancelNotifyTimeout(this),this.dirty=!1},QueryInfo.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&(0,y.D)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var i=this.cache.diff(t);return this.updateLastDiff(i,t),i},QueryInfo.prototype.updateLastDiff=function(t,n){this.lastDiff=t?{diff:t,options:n||this.getDiffOptions()}:void 0},QueryInfo.prototype.getDiffOptions=function(t){var n;return void 0===t&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:null===(n=this.observableQuery)||void 0===n?void 0:n.options.canonizeResults}},QueryInfo.prototype.setDiff=function(t){var n=this,i=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(t),this.dirty||(0,y.D)(i&&i.result,t&&t.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0)))},QueryInfo.prototype.setObservableQuery=function(t){var n=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){n.getDiff().fromOptimisticTransaction?t.observe():(0,D.vj)(t)})):delete this.oqListener)},QueryInfo.prototype.notify=function(){var t=this;cancelNotifyTimeout(this),this.shouldNotify()&&this.listeners.forEach(function(n){return n(t)}),this.dirty=!1},QueryInfo.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,L.Oj)(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if("cache-only"!==t&&"cache-and-network"!==t)return!1}return!0},QueryInfo.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=QueryInfo.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},QueryInfo.prototype.cancel=function(){},QueryInfo.prototype.updateWatch=function(t){var n=this;void 0===t&&(t=this.variables);var i=this.observableQuery;if(!i||"no-cache"!==i.options.fetchPolicy){var a=(0,o.pi)((0,o.pi)({},this.getDiffOptions(t)),{watcher:this,callback:function(t){return n.setDiff(t)}});this.lastWatch&&(0,y.D)(a,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=a))}},QueryInfo.prototype.resetLastWrite=function(){this.lastWrite=void 0},QueryInfo.prototype.shouldWrite=function(t,n){var i=this.lastWrite;return!(i&&i.dmCount===V.get(this.cache)&&(0,y.D)(n,i.variables)&&(0,y.D)(t.data,i.result.data))},QueryInfo.prototype.markResult=function(t,n,i,o){var a=this,u=new P.w0,c=(0,I.O)(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&(0,I.O)(t.incremental)){var f=(0,m.mT)(this.getDiff().result,t);t.data=f}else if("hasNext"in t&&t.hasNext){var p=this.getDiff();t.data=u.merge(p.result,t.data)}this.graphQLErrors=c,"no-cache"===i.fetchPolicy?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(i.variables)):0!==o&&(shouldWriteResult(t,i.errorPolicy)?this.cache.performTransaction(function(u){if(a.shouldWrite(t,i.variables))u.writeQuery({query:n,data:t.data,variables:i.variables,overwrite:1===o}),a.lastWrite={result:t,variables:i.variables,dmCount:V.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete){t.data=a.lastDiff.diff.result;return}var c=a.getDiffOptions(i.variables),f=u.diff(c);!a.stopped&&(0,y.D)(a.variables,i.variables)&&a.updateWatch(i.variables),a.updateLastDiff(f,c),f.complete&&(t.data=f.result)}):this.lastWrite=void 0)},QueryInfo.prototype.markReady=function(){return this.networkError=null,this.networkStatus=L.Ie.ready},QueryInfo.prototype.markError=function(t){return this.networkStatus=L.Ie.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},QueryInfo}();function shouldWriteResult(t,n){void 0===n&&(n="none");var i="ignore"===n||"all"===n,o=!(0,S.d)(t);return!o&&i&&t.data&&(o=!0),o}var q=i(68470),Q=Object.prototype.hasOwnProperty,G=function(){function QueryManager(t){var n=this,i=t.cache,o=t.link,a=t.defaultOptions,u=t.documentTransform,c=t.queryDeduplication,f=t.onBroadcast,p=t.ssrMode,y=t.clientAwareness,m=t.localState,v=t.assumeImmutableResults,g=void 0===v?!!i.assumeImmutableResults:v;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(T.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var b=new _.A(function(t){return n.cache.transformDocument(t)},{cache:!1});this.cache=i,this.link=o,this.defaultOptions=a||Object.create(null),this.queryDeduplication=void 0!==c&&c,this.clientAwareness=void 0===y?{}:y,this.localState=m||new U({cache:i}),this.ssrMode=void 0!==p&&p,this.assumeImmutableResults=g,this.documentTransform=u?b.concat(u).concat(b):b,(this.onBroadcast=f)&&(this.mutationStore=Object.create(null))}return QueryManager.prototype.stop=function(){var t=this;this.queries.forEach(function(n,i){t.stopQueryNoBroadcast(i)}),this.cancelPendingFetches((0,a._K)(23))},QueryManager.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},QueryManager.prototype.mutate=function(t){var n,i,u=t.mutation,c=t.variables,f=t.optimisticResponse,p=t.updateQueries,y=t.refetchQueries,m=void 0===y?[]:y,v=t.awaitRefetchQueries,g=void 0!==v&&v,b=t.update,T=t.onQueryUpdated,_=t.fetchPolicy,I=void 0===_?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.fetchPolicy)||"network-only":_,O=t.errorPolicy,N=void 0===O?(null===(i=this.defaultOptions.mutate)||void 0===i?void 0:i.errorPolicy)||"none":O,w=t.keepRootFields,A=t.context;return(0,o.mG)(this,void 0,void 0,function(){var t,n,i,y;return(0,o.Jh)(this,function(v){switch(v.label){case 0:if((0,a.kG)(u,24),(0,a.kG)("network-only"===I||"no-cache"===I,25),t=this.generateMutationId(),u=this.cache.transformForLink(this.transform(u)),n=this.getDocumentInfo(u).hasClientExports,c=this.getVariables(u,c),!n)return[3,2];return[4,this.localState.addExportedVariables(u,c,A)];case 1:c=v.sent(),v.label=2;case 2:return i=this.mutationStore&&(this.mutationStore[t]={mutation:u,variables:c,loading:!0,error:null}),f&&this.markMutationOptimistic(f,{mutationId:t,document:u,variables:c,fetchPolicy:I,errorPolicy:N,context:A,updateQueries:p,update:b,keepRootFields:w}),this.broadcastQueries(),y=this,[2,new Promise(function(n,a){return(0,E.s)(y.getObservableFromLink(u,(0,o.pi)((0,o.pi)({},A),{optimisticResponse:f}),c,!1),function(n){if((0,S.d)(n)&&"none"===N)throw new C.cA({graphQLErrors:(0,S.K)(n)});i&&(i.loading=!1,i.error=null);var a=(0,o.pi)({},n);return"function"==typeof m&&(m=m(a)),"ignore"===N&&(0,S.d)(a)&&delete a.errors,y.markMutationResult({mutationId:t,result:a,document:u,variables:c,fetchPolicy:I,errorPolicy:N,context:A,update:b,updateQueries:p,awaitRefetchQueries:g,refetchQueries:m,removeOptimistic:f?t:void 0,onQueryUpdated:T,keepRootFields:w})}).subscribe({next:function(t){y.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||n(t)},error:function(n){i&&(i.loading=!1,i.error=n),f&&y.cache.removeOptimistic(t),y.broadcastQueries(),a(n instanceof C.cA?n:new C.cA({networkError:n}))}})})]}})})},QueryManager.prototype.markMutationResult=function(t,n){var i=this;void 0===n&&(n=this.cache);var a=t.result,u=[],c="no-cache"===t.fetchPolicy;if(!c&&shouldWriteResult(a,t.errorPolicy)){if((0,m.GG)(a)||u.push({result:a.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),(0,m.GG)(a)&&(0,I.O)(a.incremental)){var f=n.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),p=void 0;f.result&&(p=(0,m.mT)(f.result,a)),void 0!==p&&(a.data=p,u.push({result:p,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var y=t.updateQueries;y&&this.queries.forEach(function(t,o){var c=t.observableQuery,f=c&&c.queryName;if(f&&Q.call(y,f)){var p=y[f],m=i.queries.get(o),v=m.document,g=m.variables,b=n.diff({query:v,variables:g,returnPartialData:!0,optimistic:!1}),T=b.result;if(b.complete&&T){var _=p(T,{mutationResult:a,queryName:v&&(0,O.rY)(v)||void 0,queryVariables:g});_&&u.push({result:_,dataId:"ROOT_QUERY",query:v,variables:g})}}})}if(u.length>0||t.refetchQueries||t.update||t.onQueryUpdated||t.removeOptimistic){var v=[];if(this.refetchQueries({updateCache:function(n){c||u.forEach(function(t){return n.write(t)});var f=t.update,p=!(0,m.M0)(a)||(0,m.GG)(a)&&!a.hasNext;if(f){if(!c){var y=n.diff({id:"ROOT_MUTATION",query:i.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});y.complete&&("incremental"in(a=(0,o.pi)((0,o.pi)({},a),{data:y.result}))&&delete a.incremental,"hasNext"in a&&delete a.hasNext)}p&&f(n,a,{context:t.context,variables:t.variables})}c||t.keepRootFields||!p||n.modify({id:"ROOT_MUTATION",fields:function(t,n){var i=n.fieldName,o=n.DELETE;return"__typename"===i?t:o}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(t){return v.push(t)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(v).then(function(){return a})}return Promise.resolve(a)},QueryManager.prototype.markMutationOptimistic=function(t,n){var i=this,u="function"==typeof t?t(n.variables):t;return this.cache.recordOptimisticTransaction(function(t){try{i.markMutationResult((0,o.pi)((0,o.pi)({},n),{result:{data:u}}),t)}catch(t){!1!==globalThis.__DEV__&&a.kG.error(t)}},n.mutationId)},QueryManager.prototype.fetchQuery=function(t,n,i){return this.fetchConcastWithInfo(t,n,i).concast.promise},QueryManager.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(n,i){t[i]={variables:n.variables,networkStatus:n.networkStatus,networkError:n.networkError,graphQLErrors:n.graphQLErrors}}),t},QueryManager.prototype.resetErrors=function(t){var n=this.queries.get(t);n&&(n.networkError=void 0,n.graphQLErrors=[])},QueryManager.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},QueryManager.prototype.getDocumentInfo=function(t){var n=this.transformCache;if(!n.has(t)){var i={hasClientExports:(0,v.mj)(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:(0,v.FS)(["nonreactive"],t),clientQuery:this.localState.clientQuery(t),serverQuery:(0,g.bi)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],t),defaultVars:(0,O.O4)((0,O.$H)(t)),asQuery:(0,o.pi)((0,o.pi)({},t),{definitions:t.definitions.map(function(t){return"OperationDefinition"===t.kind&&"query"!==t.operation?(0,o.pi)((0,o.pi)({},t),{operation:"query"}):t})})};n.set(t,i)}return n.get(t)},QueryManager.prototype.getVariables=function(t,n){return(0,o.pi)((0,o.pi)({},this.getDocumentInfo(t).defaultVars),n)},QueryManager.prototype.watchQuery=function(t){var n=this.transform(t.query);void 0===(t=(0,o.pi)((0,o.pi)({},t),{variables:this.getVariables(n,t.variables)})).notifyOnNetworkStatusChange&&(t.notifyOnNetworkStatusChange=!1);var i=new B(this),a=new D.ue({queryManager:this,queryInfo:i,options:t});return a.lastQuery=n,this.queries.set(a.queryId,i),i.init({document:n,observableQuery:a,variables:a.variables}),a},QueryManager.prototype.query=function(t,n){var i=this;return void 0===n&&(n=this.generateQueryId()),(0,a.kG)(t.query,26),(0,a.kG)("Document"===t.query.kind,27),(0,a.kG)(!t.returnPartialData,28),(0,a.kG)(!t.pollInterval,29),this.fetchQuery(n,(0,o.pi)((0,o.pi)({},t),{query:this.transform(t.query)})).finally(function(){return i.stopQuery(n)})},QueryManager.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},QueryManager.prototype.generateRequestId=function(){return this.requestIdCounter++},QueryManager.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},QueryManager.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},QueryManager.prototype.stopQueryInStoreNoBroadcast=function(t){var n=this.queries.get(t);n&&n.stop()},QueryManager.prototype.clearStore=function(t){return void 0===t&&(t={discardWatches:!0}),this.cancelPendingFetches((0,a._K)(30)),this.queries.forEach(function(t){t.observableQuery?t.networkStatus=L.Ie.loading:t.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},QueryManager.prototype.getObservableQueries=function(t){var n=this;void 0===t&&(t="active");var i=new Map,u=new Map,c=new Set;return Array.isArray(t)&&t.forEach(function(t){"string"==typeof t?u.set(t,!1):(0,N.JW)(t)?u.set(n.transform(t),!1):(0,w.s)(t)&&t.query&&c.add(t)}),this.queries.forEach(function(n,o){var a=n.observableQuery,c=n.document;if(a){if("all"===t){i.set(o,a);return}var f=a.queryName;if("standby"===a.options.fetchPolicy||"active"===t&&!a.hasObservers())return;("active"===t||f&&u.has(f)||c&&u.has(c))&&(i.set(o,a),f&&u.set(f,!0),c&&u.set(c,!0))}}),c.size&&c.forEach(function(t){var u=(0,A.X)("legacyOneTimeQuery"),c=n.getQuery(u).init({document:t.query,variables:t.variables}),f=new D.ue({queryManager:n,queryInfo:c,options:(0,o.pi)((0,o.pi)({},t),{fetchPolicy:"network-only"})});(0,a.kG)(f.queryId===u),c.setObservableQuery(f),i.set(u,f)}),!1!==globalThis.__DEV__&&u.size&&u.forEach(function(t,n){t||!1===globalThis.__DEV__||a.kG.warn("string"==typeof n?31:32,n)}),i},QueryManager.prototype.reFetchObservableQueries=function(t){var n=this;void 0===t&&(t=!1);var i=[];return this.getObservableQueries(t?"all":"active").forEach(function(o,a){var u=o.options.fetchPolicy;o.resetLastResults(),(t||"standby"!==u&&"cache-only"!==u)&&i.push(o.refetch()),n.getQuery(a).setDiff(null)}),this.broadcastQueries(),Promise.all(i)},QueryManager.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},QueryManager.prototype.startGraphQLSubscription=function(t){var n=this,i=t.query,o=t.fetchPolicy,a=t.errorPolicy,u=void 0===a?"none":a,c=t.variables,f=t.context,p=void 0===f?{}:f;i=this.transform(i),c=this.getVariables(i,c);var makeObservable=function(t){return n.getObservableFromLink(i,p,t).map(function(a){"no-cache"!==o&&(shouldWriteResult(a,u)&&n.cache.write({query:i,result:a.data,dataId:"ROOT_SUBSCRIPTION",variables:t}),n.broadcastQueries());var c=(0,S.d)(a),f=(0,C.ls)(a);if(c||f){var p={};if(c&&(p.graphQLErrors=a.errors),f&&(p.protocolErrors=a.extensions[C.YG]),"none"===u||f)throw new C.cA(p)}return"ignore"===u&&delete a.errors,a})};if(this.getDocumentInfo(i).hasClientExports){var y=this.localState.addExportedVariables(i,c,p).then(makeObservable);return new R.y(function(t){var n=null;return y.then(function(i){return n=i.subscribe(t)},t.error),function(){return n&&n.unsubscribe()}})}return makeObservable(c)},QueryManager.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},QueryManager.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},QueryManager.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.queries.has(t)&&(this.getQuery(t).stop(),this.queries.delete(t))},QueryManager.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){return t.notify()})},QueryManager.prototype.getLocalState=function(){return this.localState},QueryManager.prototype.getObservableFromLink=function(t,n,i,a){var u,f,p=this;void 0===a&&(a=null!==(u=null==n?void 0:n.queryDeduplication)&&void 0!==u?u:this.queryDeduplication);var y=this.getDocumentInfo(t),m=y.serverQuery,v=y.clientQuery;if(m){var g=this.inFlightLinkObservables,T=this.link,_={query:m,variables:i,operationName:(0,O.rY)(m)||void 0,context:this.prepareContext((0,o.pi)((0,o.pi)({},n),{forceFetch:!a}))};if(n=_.context,a){var S=(0,q.S)(m),I=g.get(S)||new Map;g.set(S,I);var N=(0,b.B)(i);if(!(f=I.get(N))){var w=new k.X([(0,c.h)(T,_)]);I.set(N,f=w),w.beforeNext(function(){I.delete(N)&&I.size<1&&g.delete(S)})}}else f=new k.X([(0,c.h)(T,_)])}else f=new k.X([R.y.of({data:{}})]),n=this.prepareContext(n);return v&&(f=(0,E.s)(f,function(t){return p.localState.runResolvers({document:v,remoteResult:t,context:n,variables:i})})),f},QueryManager.prototype.getResultsFromLink=function(t,n,i){var o=t.lastRequestId=this.generateRequestId(),a=this.cache.transformForLink(i.query);return(0,E.s)(this.getObservableFromLink(a,i.context,i.variables),function(u){var c=(0,S.K)(u),f=c.length>0;if(o>=t.lastRequestId){if(f&&"none"===i.errorPolicy)throw t.markError(new C.cA({graphQLErrors:c}));t.markResult(u,a,i,n),t.markReady()}var p={data:u.data,loading:!1,networkStatus:L.Ie.ready};return f&&"ignore"!==i.errorPolicy&&(p.errors=c,p.networkStatus=L.Ie.error),p},function(n){var i=(0,C.MS)(n)?n:new C.cA({networkError:n});throw o>=t.lastRequestId&&t.markError(i),i})},QueryManager.prototype.fetchConcastWithInfo=function(t,n,i,o){var a,u,c=this;void 0===i&&(i=L.Ie.loading),void 0===o&&(o=n.query);var f=this.getVariables(o,n.variables),p=this.getQuery(t),y=this.defaultOptions.watchQuery,m=n.fetchPolicy,v=void 0===m?y&&y.fetchPolicy||"cache-first":m,g=n.errorPolicy,b=void 0===g?y&&y.errorPolicy||"none":g,T=n.returnPartialData,_=n.notifyOnNetworkStatusChange,E=n.context,S=Object.assign({},n,{query:o,variables:f,fetchPolicy:v,errorPolicy:b,returnPartialData:void 0!==T&&T,notifyOnNetworkStatusChange:void 0!==_&&_,context:void 0===E?{}:E}),fromVariables=function(t){S.variables=t;var o=c.fetchQueryByPolicy(p,S,i);return"standby"!==S.fetchPolicy&&o.sources.length>0&&p.observableQuery&&p.observableQuery.applyNextFetchPolicy("after-fetch",n),o},cleanupCancelFn=function(){return c.fetchCancelFns.delete(t)};if(this.fetchCancelFns.set(t,function(t){cleanupCancelFn(),setTimeout(function(){return a.cancel(t)})}),this.getDocumentInfo(S.query).hasClientExports)a=new k.X(this.localState.addExportedVariables(S.query,S.variables,S.context).then(fromVariables).then(function(t){return t.sources})),u=!0;else{var I=fromVariables(S.variables);u=I.fromLink,a=new k.X(I.sources)}return a.promise.then(cleanupCancelFn,cleanupCancelFn),{concast:a,fromLink:u}},QueryManager.prototype.refetchQueries=function(t){var n=this,i=t.updateCache,o=t.include,a=t.optimistic,u=void 0!==a&&a,c=t.removeOptimistic,f=void 0===c?u?(0,A.X)("refetchQueries"):void 0:c,p=t.onQueryUpdated,y=new Map;o&&this.getObservableQueries(o).forEach(function(t,i){y.set(i,{oq:t,lastDiff:n.getQuery(i).getDiff()})});var m=new Map;return i&&this.cache.batch({update:i,optimistic:u&&f||!1,removeOptimistic:f,onWatchUpdated:function(t,n,i){var o=t.watcher instanceof B&&t.watcher.observableQuery;if(o){if(p){y.delete(o.queryId);var a=p(o,n,i);return!0===a&&(a=o.refetch()),!1!==a&&m.set(o,a),a}null!==p&&y.set(o.queryId,{oq:o,lastDiff:i,diff:n})}}}),y.size&&y.forEach(function(t,i){var o,a=t.oq,u=t.lastDiff,c=t.diff;if(p){if(!c){var f=a.queryInfo;f.reset(),c=f.getDiff()}o=p(a,c,u)}p&&!0!==o||(o=a.refetch()),!1!==o&&m.set(a,o),i.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(i)}),f&&this.cache.removeOptimistic(f),m},QueryManager.prototype.fetchQueryByPolicy=function(t,n,i){var a=this,u=n.query,c=n.variables,f=n.fetchPolicy,p=n.refetchWritePolicy,m=n.errorPolicy,v=n.returnPartialData,g=n.context,b=n.notifyOnNetworkStatusChange,T=t.networkStatus;t.init({document:u,variables:c,networkStatus:i});var readCache=function(){return t.getDiff()},resultsFromCache=function(n,i){void 0===i&&(i=t.networkStatus||L.Ie.loading);var f=n.result;!1===globalThis.__DEV__||v||(0,y.D)(f,{})||(0,D.DC)(n.missing);var fromData=function(t){return R.y.of((0,o.pi)({data:t,loading:(0,L.Oj)(i),networkStatus:i},n.complete?null:{partial:!0}))};return f&&a.getDocumentInfo(u).hasForcedResolvers?a.localState.runResolvers({document:u,remoteResult:{data:f},context:g,variables:c,onlyRunForcedResolvers:!0}).then(function(t){return fromData(t.data||void 0)}):"none"===m&&i===L.Ie.refetch&&Array.isArray(n.missing)?fromData(void 0):fromData(f)},_="no-cache"===f?0:i===L.Ie.refetch&&"merge"!==p?1:2,resultsFromLink=function(){return a.getResultsFromLink(t,_,{query:u,variables:c,context:g,fetchPolicy:f,errorPolicy:m})},E=b&&"number"==typeof T&&T!==i&&(0,L.Oj)(i);switch(f){default:case"cache-first":var S=readCache();if(S.complete)return{fromLink:!1,sources:[resultsFromCache(S,t.markReady())]};if(v||E)return{fromLink:!0,sources:[resultsFromCache(S),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"cache-and-network":var S=readCache();if(S.complete||v||E)return{fromLink:!0,sources:[resultsFromCache(S),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"cache-only":return{fromLink:!1,sources:[resultsFromCache(readCache(),t.markReady())]};case"network-only":if(E)return{fromLink:!0,sources:[resultsFromCache(readCache()),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"no-cache":if(E)return{fromLink:!0,sources:[resultsFromCache(t.getDiff()),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"standby":return{fromLink:!1,sources:[]}}},QueryManager.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new B(this,t)),this.queries.get(t)},QueryManager.prototype.prepareContext=function(t){void 0===t&&(t={});var n=this.localState.prepareContext(t);return(0,o.pi)((0,o.pi)({},n),{clientAwareness:this.clientAwareness})},QueryManager}(),H=i(14012),$=!1,z=function(){function ApolloClient(t){var n=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw(0,a._K)(13);var i=t.uri,o=t.credentials,c=t.headers,y=t.cache,m=t.documentTransform,v=t.ssrMode,g=void 0!==v&&v,b=t.ssrForceFetchDelay,T=void 0===b?0:b,_=t.connectToDevTools,E=void 0===_?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:_,S=t.queryDeduplication,I=void 0===S||S,O=t.defaultOptions,N=t.assumeImmutableResults,w=void 0===N?y.assumeImmutableResults:N,A=t.resolvers,R=t.typeDefs,k=t.fragmentMatcher,C=t.name,D=t.version,L=t.link;L||(L=i?new p.u({uri:i,credentials:o,headers:c}):u.i.empty()),this.link=L,this.cache=y,this.disableNetworkFetches=g||T>0,this.queryDeduplication=I,this.defaultOptions=O||Object.create(null),this.typeDefs=R,T&&setTimeout(function(){return n.disableNetworkFetches=!1},T),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),this.version=f.i,this.localState=new U({cache:y,client:this,resolvers:A,fragmentMatcher:k}),this.queryManager=new G({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:m,queryDeduplication:I,ssrMode:g,clientAwareness:{name:C,version:D},localState:this.localState,assumeImmutableResults:w,onBroadcast:E?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),E&&this.connectToDevTools()}return ApolloClient.prototype.connectToDevTools=function(){if("object"==typeof window){var t=window,n=Symbol.for("apollo.devtools");(t[n]=t[n]||[]).push(this),t.__APOLLO_CLIENT__=this}$||!1===globalThis.__DEV__||($=!0,setTimeout(function(){if("undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var t=window.navigator,n=t&&t.userAgent,i=void 0;"string"==typeof n&&(n.indexOf("Chrome/")>-1?i="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":n.indexOf("Firefox/")>-1&&(i="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),i&&!1!==globalThis.__DEV__&&a.kG.log("Download the Apollo DevTools for a better development experience: %s",i)}},1e4))},Object.defineProperty(ApolloClient.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),ApolloClient.prototype.stop=function(){this.queryManager.stop()},ApolloClient.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=(0,H.J)(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&("network-only"===t.fetchPolicy||"cache-and-network"===t.fetchPolicy)&&(t=(0,o.pi)((0,o.pi)({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},ApolloClient.prototype.query=function(t){return this.defaultOptions.query&&(t=(0,H.J)(this.defaultOptions.query,t)),(0,a.kG)("cache-and-network"!==t.fetchPolicy,14),this.disableNetworkFetches&&"network-only"===t.fetchPolicy&&(t=(0,o.pi)((0,o.pi)({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},ApolloClient.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=(0,H.J)(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},ApolloClient.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},ApolloClient.prototype.readQuery=function(t,n){return void 0===n&&(n=!1),this.cache.readQuery(t,n)},ApolloClient.prototype.readFragment=function(t,n){return void 0===n&&(n=!1),this.cache.readFragment(t,n)},ApolloClient.prototype.writeQuery=function(t){var n=this.cache.writeQuery(t);return!1!==t.broadcast&&this.queryManager.broadcastQueries(),n},ApolloClient.prototype.writeFragment=function(t){var n=this.cache.writeFragment(t);return!1!==t.broadcast&&this.queryManager.broadcastQueries(),n},ApolloClient.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},ApolloClient.prototype.__requestRaw=function(t){return(0,c.h)(this.link,t)},ApolloClient.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(t){return t()}))}).then(function(){return t.reFetchObservableQueries()})},ApolloClient.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(t){return t()}))})},ApolloClient.prototype.onResetStore=function(t){var n=this;return this.resetStoreCallbacks.push(t),function(){n.resetStoreCallbacks=n.resetStoreCallbacks.filter(function(n){return n!==t})}},ApolloClient.prototype.onClearStore=function(t){var n=this;return this.clearStoreCallbacks.push(t),function(){n.clearStoreCallbacks=n.clearStoreCallbacks.filter(function(n){return n!==t})}},ApolloClient.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},ApolloClient.prototype.refetchQueries=function(t){var n=this.queryManager.refetchQueries(t),i=[],o=[];n.forEach(function(t,n){i.push(n),o.push(t)});var u=Promise.all(o);return u.queries=i,u.results=o,u.catch(function(t){!1!==globalThis.__DEV__&&a.kG.debug(15,t)}),u},ApolloClient.prototype.getObservableQueries=function(t){return void 0===t&&(t="active"),this.queryManager.getObservableQueries(t)},ApolloClient.prototype.extract=function(t){return this.cache.extract(t)},ApolloClient.prototype.restore=function(t){return this.cache.restore(t)},ApolloClient.prototype.addResolvers=function(t){this.localState.addResolvers(t)},ApolloClient.prototype.setResolvers=function(t){this.localState.setResolvers(t)},ApolloClient.prototype.getResolvers=function(){return this.localState.getResolvers()},ApolloClient.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},ApolloClient.prototype.setLink=function(t){this.link=this.queryManager.link=t},ApolloClient}()},14642:function(t,n,i){"use strict";i.d(n,{ue:function(){return I},DC:function(){return logMissingFieldErrors},vj:function(){return reobserveCacheFirst}});var o=i(97582),a=i(16459),u=i(30020),c=i(1644),f=i(36765),p=i(53712),y=i(79487),m=i(18263),v=i(48216),g=i(86403),b=i(23361),T=i(19065),_=i(51761);function selectionHasNonreactiveDirective(t){return!!t.directives&&t.directives.some(directiveIsNonreactive)}function directiveIsNonreactive(t){return"nonreactive"===t.name.value}var E=Object.assign,S=Object.hasOwnProperty,I=function(t){function ObservableQuery(n){var i=n.queryManager,a=n.queryInfo,u=n.options,c=t.call(this,function(t){try{var n=t._subscription._observer;n&&!n.error&&(n.error=defaultSubscriptionObserverErrorCallback)}catch(t){}var i=!c.observers.size;c.observers.add(t);var o=c.last;return o&&o.error?t.error&&t.error(o.error):o&&o.result&&t.next&&t.next(o.result),i&&c.reobserve().catch(function(){}),function(){c.observers.delete(t)&&!c.observers.size&&c.tearDownQuery()}})||this;c.observers=new Set,c.subscriptions=new Set,c.queryInfo=a,c.queryManager=i,c.waitForOwnResult=skipCacheDataFor(u.fetchPolicy),c.isTornDown=!1;var p=i.defaultOptions.watchQuery,y=(void 0===p?{}:p).fetchPolicy,m=void 0===y?"cache-first":y,v=u.fetchPolicy,g=void 0===v?m:v,b=u.initialFetchPolicy,T=void 0===b?"standby"===g?m:g:b;c.options=(0,o.pi)((0,o.pi)({},u),{initialFetchPolicy:T,fetchPolicy:g}),c.queryId=a.queryId||i.generateQueryId();var _=(0,f.$H)(c.query);return c.queryName=_&&_.name&&_.name.value,c}return(0,o.ZT)(ObservableQuery,t),Object.defineProperty(ObservableQuery.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(ObservableQuery.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),ObservableQuery.prototype.result=function(){var t=this;return new Promise(function(n,i){var o={next:function(i){n(i),t.observers.delete(o),t.observers.size||t.queryManager.removeQuery(t.queryId),setTimeout(function(){a.unsubscribe()},0)},error:i},a=t.subscribe(o)})},ObservableQuery.prototype.getCurrentResult=function(t){void 0===t&&(t=!0);var n=this.getLastResult(!0),i=this.queryInfo.networkStatus||n&&n.networkStatus||c.Ie.ready,a=(0,o.pi)((0,o.pi)({},n),{loading:(0,c.Oj)(i),networkStatus:i}),f=this.options.fetchPolicy,p=void 0===f?"cache-first":f;if(skipCacheDataFor(p)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var y=this.queryInfo.getDiff();(y.complete||this.options.returnPartialData)&&(a.data=y.result),(0,u.D)(a.data,{})&&(a.data=void 0),y.complete?(delete a.partial,y.complete&&a.networkStatus===c.Ie.loading&&("cache-first"===p||"cache-only"===p)&&(a.networkStatus=c.Ie.ready,a.loading=!1)):a.partial=!0,!1===globalThis.__DEV__||y.complete||this.options.partialRefetch||a.loading||a.data||a.error||logMissingFieldErrors(y.missing)}return t&&this.updateLastResult(a),a},ObservableQuery.prototype.isDifferentFromLastResult=function(t,n){var i,a,c,p,y,m,v;return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?(i=this.query,a=this.last.result,c=this.variables,p=a.data,y=(0,o._T)(a,["data"]),m=t.data,v=(0,o._T)(t,["data"]),!((0,u.Z)(y,v)&&function equalBySelectionSet(t,n,i,o){if(n===i)return!0;var a=new Set;return t.selections.every(function(t){if(a.has(t)||(a.add(t),!(0,T.LZ)(t,o.variables)||selectionHasNonreactiveDirective(t)))return!0;if((0,_.My)(t)){var c=(0,_.u2)(t),f=n&&n[c],p=i&&i[c],y=t.selectionSet;if(!y)return(0,u.Z)(f,p);var m=Array.isArray(f),v=Array.isArray(p);if(m!==v)return!1;if(m&&v){var g=f.length;if(p.length!==g)return!1;for(var E=0;E0},ObservableQuery.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(t){return t.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},ObservableQuery.prototype.transformDocument=function(t){return this.queryManager.transform(t)},ObservableQuery}(v.y);function reobserveCacheFirst(t){var n=t.options,i=n.fetchPolicy,o=n.nextFetchPolicy;return"cache-and-network"===i||"network-only"===i?t.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return(this.nextFetchPolicy=o,"function"==typeof o)?o.apply(this,arguments):i}}):t.reobserve()}function defaultSubscriptionObserverErrorCallback(t){!1!==globalThis.__DEV__&&a.kG.error(21,t.message,t.stack)}function logMissingFieldErrors(t){!1!==globalThis.__DEV__&&t&&!1!==globalThis.__DEV__&&a.kG.debug(22,t)}function skipCacheDataFor(t){return"network-only"===t||"no-cache"===t||"standby"===t}(0,g.D)(I)},42451:function(t,n,i){"use strict";i.r(n),i.d(n,{ApolloCache:function(){return y.R},ApolloClient:function(){return a.f},ApolloError:function(){return p.cA},ApolloLink:function(){return _.i},Cache:function(){return o},DocumentTransform:function(){return C.A},HttpLink:function(){return w.HttpLink},InMemoryCache:function(){return m.h},MissingFieldError:function(){return v.y},NetworkStatus:function(){return f.Ie},Observable:function(){return A.y},ObservableQuery:function(){return c.ue},checkFetcher:function(){return w.checkFetcher},concat:function(){return O},createHttpLink:function(){return w.createHttpLink},createSignalIfSupported:function(){return w.createSignalIfSupported},defaultDataIdFromObject:function(){return g.uG},defaultPrinter:function(){return w.defaultPrinter},disableExperimentalFragmentVariables:function(){return F.J9},disableFragmentWarnings:function(){return F._t},empty:function(){return E},enableExperimentalFragmentVariables:function(){return F.wO},execute:function(){return N.h},fallbackHttpConfig:function(){return w.fallbackHttpConfig},from:function(){return S},fromError:function(){return R.Q},fromPromise:function(){return fromPromise},gql:function(){return F.Ps},isApolloError:function(){return p.MS},isNetworkRequestSettled:function(){return f.Jp},isReference:function(){return D.Yk},makeReference:function(){return D.kQ},makeVar:function(){return b.QS},mergeOptions:function(){return u.J},parseAndCheckHttpResponse:function(){return w.parseAndCheckHttpResponse},resetCaches:function(){return F.HW},rewriteURIForGET:function(){return w.rewriteURIForGET},selectHttpOptionsAndBody:function(){return w.selectHttpOptionsAndBody},selectHttpOptionsAndBodyInternal:function(){return w.selectHttpOptionsAndBodyInternal},selectURI:function(){return w.selectURI},serializeFetchParameter:function(){return w.serializeFetchParameter},setLogVerbosity:function(){return L.U6},split:function(){return I},throwServerError:function(){return k.P},toPromise:function(){return toPromise}});var o,a=i(38854),u=i(14012),c=i(14642),f=i(1644),p=i(30990);o||(o={});var y=i(11294),m=i(32393),v=i(75727),g=i(49641),b=i(66438),T=i(16459),_=i(48702),E=_.i.empty,S=_.i.from,I=_.i.split,O=_.i.concat,N=i(47037),w=i(38802);function toPromise(t){var n=!1;return new Promise(function(i,o){t.subscribe({next:function(t){n?!1!==globalThis.__DEV__&&T.kG.warn(40):(n=!0,i(t))},error:o})})}var A=i(48216);function fromPromise(t){return new A.y(function(n){t.then(function(t){n.next(t),n.complete()}).catch(n.error.bind(n))})}var R=i(16261),k=i(12782),C=i(18056),D=i(51761),L=i(66128),F=i(31230);(0,L.U6)(!1!==globalThis.__DEV__?"log":"silent")},1644:function(t,n,i){"use strict";var o,a;function isNetworkRequestInFlight(t){return!!t&&t<7}function isNetworkRequestSettled(t){return 7===t||8===t}i.d(n,{Ie:function(){return o},Jp:function(){return isNetworkRequestSettled},Oj:function(){return isNetworkRequestInFlight}}),(a=o||(o={}))[a.loading=1]="loading",a[a.setVariables=2]="setVariables",a[a.fetchMore=3]="fetchMore",a[a.refetch=4]="refetch",a[a.poll=6]="poll",a[a.ready=7]="ready",a[a.error=8]="error"},30990:function(t,n,i){"use strict";i.d(n,{MS:function(){return isApolloError},YG:function(){return u},cA:function(){return c},ls:function(){return graphQLResultHasProtocolErrors}});var o=i(97582);i(16459);var a=i(13154),u=Symbol();function graphQLResultHasProtocolErrors(t){return!!t.extensions&&Array.isArray(t.extensions[u])}function isApolloError(t){return t.hasOwnProperty("graphQLErrors")}var generateErrorMessage=function(t){var n=(0,o.ev)((0,o.ev)((0,o.ev)([],t.graphQLErrors,!0),t.clientErrors,!0),t.protocolErrors,!0);return t.networkError&&n.push(t.networkError),n.map(function(t){return(0,a.s)(t)&&t.message||"Error message not found."}).join("\n")},c=function(t){function ApolloError(n){var i=n.graphQLErrors,o=n.protocolErrors,a=n.clientErrors,u=n.networkError,c=n.errorMessage,f=n.extraInfo,p=t.call(this,c)||this;return p.name="ApolloError",p.graphQLErrors=i||[],p.protocolErrors=o||[],p.clientErrors=a||[],p.networkError=u||null,p.message=c||generateErrorMessage(p),p.extraInfo=f,p.__proto__=ApolloError.prototype,p}return(0,o.ZT)(ApolloError,t),ApolloError}(Error)},37865:function(t,n,i){"use strict";i.r(n),i.d(n,{setContext:function(){return setContext}});var o=i(97582),a=i(48702),u=i(48216);function setContext(t){return new a.i(function(n,i){var a=(0,o._T)(n,[]);return new u.y(function(o){var u,c=!1;return Promise.resolve(a).then(function(i){return t(i,n.getContext())}).then(n.setContext).then(function(){c||(u=i(n).subscribe({next:o.next.bind(o),error:o.error.bind(o),complete:o.complete.bind(o)}))}).catch(o.error.bind(o)),function(){c=!0,u&&u.unsubscribe()}})})}},48702:function(t,n,i){"use strict";i.d(n,{i:function(){return f}});var o=i(16459),a=i(48216),u=i(97582),c=i(36765);function passthrough(t,n){return n?n(t):a.y.of()}function toLink(t){return"function"==typeof t?new f(t):t}function isTerminating(t){return t.request.length<=1}var f=function(){function ApolloLink(t){t&&(this.request=t)}return ApolloLink.empty=function(){return new ApolloLink(function(){return a.y.of()})},ApolloLink.from=function(t){return 0===t.length?ApolloLink.empty():t.map(toLink).reduce(function(t,n){return t.concat(n)})},ApolloLink.split=function(t,n,i){var o=toLink(n),u=toLink(i||new ApolloLink(passthrough));return new ApolloLink(isTerminating(o)&&isTerminating(u)?function(n){return t(n)?o.request(n)||a.y.of():u.request(n)||a.y.of()}:function(n,i){return t(n)?o.request(n,i)||a.y.of():u.request(n,i)||a.y.of()})},ApolloLink.execute=function(t,n){var i,f,p,y;return t.request((p=n.context,(f={variables:(i=function(t){for(var n=["query","operationName","variables","extensions","context"],i=0,a=Object.keys(t);in.indexOf(u))throw(0,o._K)(41,u)}return t}(n)).variables||{},extensions:i.extensions||{},operationName:i.operationName,query:i.query}).operationName||(f.operationName="string"!=typeof f.query?(0,c.rY)(f.query)||void 0:""),y=(0,u.pi)({},p),Object.defineProperty(f,"setContext",{enumerable:!1,value:function(t){y="function"==typeof t?(0,u.pi)((0,u.pi)({},y),t(y)):(0,u.pi)((0,u.pi)({},y),t)}}),Object.defineProperty(f,"getContext",{enumerable:!1,value:function(){return(0,u.pi)({},y)}}),f))||a.y.of()},ApolloLink.concat=function(t,n){var i=toLink(t);if(isTerminating(i))return!1!==globalThis.__DEV__&&o.kG.warn(33,i),i;var u=toLink(n);return new ApolloLink(isTerminating(u)?function(t){return i.request(t,function(t){return u.request(t)||a.y.of()})||a.y.of()}:function(t,n){return i.request(t,function(t){return u.request(t,n)||a.y.of()})||a.y.of()})},ApolloLink.prototype.split=function(t,n,i){return this.concat(ApolloLink.split(t,n,i||new ApolloLink(passthrough)))},ApolloLink.prototype.concat=function(t){return ApolloLink.concat(this,t)},ApolloLink.prototype.request=function(t,n){throw(0,o._K)(34)},ApolloLink.prototype.onError=function(t,n){if(n&&n.error)return n.error(t),!1;throw t},ApolloLink.prototype.setOnError=function(t){return this.onError=t,this},ApolloLink}()},47037:function(t,n,i){"use strict";i.d(n,{h:function(){return o}});var o=i(48702).i.execute},63200:function(t,n,i){"use strict";i.d(n,{q:function(){return onError}});var o=i(97582),a=i(48216),u=i(48702);function onError(t){return new u.i(function(n,i){return new a.y(function(o){var a,u,c;try{a=i(n).subscribe({next:function(a){if(a.errors&&(c=t({graphQLErrors:a.errors,response:a,operation:n,forward:i}))){u=c.subscribe({next:o.next.bind(o),error:o.error.bind(o),complete:o.complete.bind(o)});return}o.next(a)},error:function(a){if(c=t({operation:n,networkError:a,graphQLErrors:a&&a.result&&a.result.errors,forward:i})){u=c.subscribe({next:o.next.bind(o),error:o.error.bind(o),complete:o.complete.bind(o)});return}o.error(a)},complete:function(){c||o.complete.bind(o)()}})}catch(a){t({networkError:a,operation:n,forward:i}),o.error(a)}return function(){a&&a.unsubscribe(),u&&a.unsubscribe()}})})}!function(t){function ErrorLink(n){var i=t.call(this)||this;return i.link=onError(n),i}(0,o.ZT)(ErrorLink,t),ErrorLink.prototype.request=function(t,n){return this.link.request(t,n)}}(u.i)},72198:function(t,n,i){"use strict";i.d(n,{u:function(){return c}});var o=i(97582),a=i(48702),u=i(71050),c=function(t){function HttpLink(n){void 0===n&&(n={});var i=t.call(this,(0,u.L)(n).request)||this;return i.options=n,i}return(0,o.ZT)(HttpLink,t),HttpLink}(a.i)},23178:function(t,n,i){"use strict";i.d(n,{U:function(){return checkFetcher}});var o=i(16459),checkFetcher=function(t){if(!t&&"undefined"==typeof fetch)throw(0,o._K)(35)}},71050:function(t,n,i){"use strict";i.d(n,{L:function(){return createHttpLink}});var o=i(97582),a=i(16459),u=i(48702),c=i(19065),f=i(48216),p=i(15049),y=i(11037),m=i(81999),v=i(23178),g=i(3453),b=i(88663),T=i(16261),_=i(77304),E=i(76487),S=i(36765),I=(0,a.wY)(function(){return fetch}),createHttpLink=function(t){void 0===t&&(t={});var n=t.uri,i=void 0===n?"/graphql":n,O=t.fetch,N=t.print,w=void 0===N?g.sb:N,A=t.includeExtensions,R=t.preserveHeaderCase,k=t.useGETForQueries,C=t.includeUnusedVariables,D=void 0!==C&&C,L=(0,o._T)(t,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&(0,v.U)(O||I);var F={http:{includeExtensions:A,preserveHeaderCase:R},options:L.fetchOptions,credentials:L.credentials,headers:L.headers};return new u.i(function(t){var n,u,v,N,A,R,C=(0,y.r)(t,i),L=t.getContext(),M={};if(L.clientAwareness){var P=L.clientAwareness,x=P.name,j=P.version;x&&(M["apollographql-client-name"]=x),j&&(M["apollographql-client-version"]=j)}var U=(0,o.pi)((0,o.pi)({},M),L.headers),V={http:L.http,options:L.fetchOptions,credentials:L.credentials,headers:U};if((0,c.FS)(["client"],t.query)){var B=(0,E.ob)(t.query);if(!B)return(0,T.Q)(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));t.query=B}var q=(0,g.ve)(t,w,g.SC,F,V),Q=q.options,G=q.body;G.variables&&!D&&(G.variables=(n=G.variables,u=t.query,v=(0,o.pi)({},n),N=new Set(Object.keys(n)),(0,_.Vn)(u,{Variable:function(t,n,i){i&&"VariableDefinition"!==i.kind&&N.delete(t.name.value)}}),N.forEach(function(t){delete v[t]}),v)),Q.signal||"undefined"==typeof AbortController||(R=new AbortController,Q.signal=R.signal);var H="OperationDefinition"===(A=(0,S.p$)(t.query)).kind&&"subscription"===A.operation,$=(0,c.FS)(["defer"],t.query);if(k&&!t.query.definitions.some(function(t){return"OperationDefinition"===t.kind&&"mutation"===t.operation})&&(Q.method="GET"),$||H){Q.headers=Q.headers||{};var z="multipart/mixed;";H&&$&&!1!==globalThis.__DEV__&&a.kG.warn(36),H?z+="boundary=graphql;subscriptionSpec=1.0,application/json":$&&(z+="deferSpec=20220824,application/json"),Q.headers.accept=z}if("GET"===Q.method){var K=(0,b.H)(C,G),W=K.newURI,Y=K.parseError;if(Y)return(0,T.Q)(Y);C=W}else try{Q.body=(0,p.g)(G,"Payload")}catch(t){return(0,T.Q)(t)}return new f.y(function(n){var i=O||(0,a.wY)(function(){return fetch})||I,o=n.next.bind(n);return i(C,Q).then(function(n){t.setContext({response:n});var i,a=null===(i=n.headers)||void 0===i?void 0:i.get("content-type");return null!==a&&/^multipart\/mixed/i.test(a)?(0,m.TF)(n,o):(0,m.dO)(t)(n).then(o)}).then(function(){R=void 0,n.complete()}).catch(function(t){R=void 0,(0,m.S3)(t,n)}),function(){R&&R.abort()}})})}},38802:function(t,n,i){"use strict";i.r(n),i.d(n,{HttpLink:function(){return y.u},checkFetcher:function(){return c.U},createHttpLink:function(){return p.L},createSignalIfSupported:function(){return createSignalIfSupported},defaultPrinter:function(){return u.sb},fallbackHttpConfig:function(){return u.SC},parseAndCheckHttpResponse:function(){return o.dO},rewriteURIForGET:function(){return m.H},selectHttpOptionsAndBody:function(){return u.E4},selectHttpOptionsAndBodyInternal:function(){return u.ve},selectURI:function(){return f.r},serializeFetchParameter:function(){return a.g}}),i(16459);var o=i(81999),a=i(15049),u=i(3453),c=i(23178),createSignalIfSupported=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var t=new AbortController,n=t.signal;return{controller:t,signal:n}},f=i(11037),p=i(71050),y=i(72198),m=i(88663)},81999:function(t,n,i){"use strict";i.d(n,{S3:function(){return handleError},dO:function(){return parseAndCheckHttpResponse},TF:function(){return readMultipartBody}});var o=i(97582),a=i(30320);function readerIterator(t){var n={next:function(){return t.read()}};return a.DN&&(n[Symbol.asyncIterator]=function(){return this}),n}var u=i(12782),c=i(30990),f=i(37280),p=Object.prototype.hasOwnProperty;function readMultipartBody(t,n){var i;return(0,o.mG)(this,void 0,void 0,function(){var u,p,y,m,v,g,b,T,_,E,S,I,O,N,w,A,R,k,C,D,L,F;return(0,o.Jh)(this,function(M){switch(M.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");u=new TextDecoder("utf-8"),p=null===(i=t.headers)||void 0===i?void 0:i.get("content-type"),y="boundary=",m=(null==p?void 0:p.includes(y))?null==p?void 0:p.substring((null==p?void 0:p.indexOf(y))+y.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",v="\r\n--".concat(m),g="",b=function(t){var n,i,o,u,c,f,p=t;if(t.body&&(p=t.body),n=p,a.DN&&n[Symbol.asyncIterator])return o=p[Symbol.asyncIterator](),(i={next:function(){return o.next()}})[Symbol.asyncIterator]=function(){return this},i;if(p.getReader)return readerIterator(p.getReader());if(p.stream)return readerIterator(p.stream().getReader());if(p.arrayBuffer)return u=p.arrayBuffer(),c=!1,f={next:function(){return c?Promise.resolve({value:void 0,done:!0}):(c=!0,new Promise(function(t,n){u.then(function(n){t({value:n,done:!1})}).catch(n)}))}},a.DN&&(f[Symbol.asyncIterator]=function(){return this}),f;if(p.pipe)return function(t){var n=null,i=null,o=!1,u=[],c=[];function onData(t){if(!i){if(c.length){var n=c.shift();if(Array.isArray(n)&&n[0])return n[0]({value:t,done:!1})}u.push(t)}}function onError(t){i=t,c.slice().forEach(function(n){n[1](t)}),n&&n()}function onEnd(){o=!0,c.slice().forEach(function(t){t[0]({value:void 0,done:!0})}),n&&n()}n=function(){n=null,t.removeListener("data",onData),t.removeListener("error",onError),t.removeListener("end",onEnd),t.removeListener("finish",onEnd),t.removeListener("close",onEnd)},t.on("data",onData),t.on("error",onError),t.on("end",onEnd),t.on("finish",onEnd),t.on("close",onEnd);var f={next:function(){return new Promise(function(t,n){return i?n(i):u.length?t({value:u.shift(),done:!1}):o?t({value:void 0,done:!0}):void c.push([t,n])})}};return a.DN&&(f[Symbol.asyncIterator]=function(){return this}),f}(p);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(t),T=!0,M.label=1;case 1:if(!T)return[3,3];return[4,b.next()];case 2:for(E=(_=M.sent()).value,S=_.done,I="string"==typeof E?E:u.decode(E),O=g.length-v.length+1,T=!S,g+=I,N=g.indexOf(v,O);N>-1;){if(w=void 0,w=(L=[g.slice(0,N),g.slice(N+v.length)])[0],g=L[1],A=w.indexOf("\r\n\r\n"),(R=function(t){var n={};return t.split("\n").forEach(function(t){var i=t.indexOf(":");if(i>-1){var o=t.slice(0,i).trim().toLowerCase(),a=t.slice(i+1).trim();n[o]=a}}),n}(w.slice(0,A))["content-type"])&&-1===R.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(k=w.slice(A)){if(Object.keys(C=parseJsonBody(t,k)).length>1||"data"in C||"incremental"in C||"errors"in C||"payload"in C)(0,f.yU)(C)?(D={},"payload"in C&&(D=(0,o.pi)({},C.payload)),"errors"in C&&(D=(0,o.pi)((0,o.pi)({},D),{extensions:(0,o.pi)((0,o.pi)({},"extensions"in D?D.extensions:null),((F={})[c.YG]=C.errors,F))})),n(D)):n(C);else if(1===Object.keys(C).length&&"hasNext"in C&&!C.hasNext)return[2]}N=g.indexOf(v)}return[3,1];case 3:return[2]}})})}function parseJsonBody(t,n){t.status>=300&&(0,u.P)(t,function(){try{return JSON.parse(n)}catch(t){return n}}(),"Response not successful: Received status code ".concat(t.status));try{return JSON.parse(n)}catch(i){throw i.name="ServerParseError",i.response=t,i.statusCode=t.status,i.bodyText=n,i}}function handleError(t,n){t.result&&t.result.errors&&t.result.data&&n.next(t.result),n.error(t)}function parseAndCheckHttpResponse(t){return function(n){return n.text().then(function(t){return parseJsonBody(n,t)}).then(function(i){return n.status>=300&&(0,u.P)(n,i,"Response not successful: Received status code ".concat(n.status)),Array.isArray(i)||p.call(i,"data")||p.call(i,"errors")||(0,u.P)(n,i,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(t){return t.operationName}):t.operationName,"'.")),i})}}},88663:function(t,n,i){"use strict";i.d(n,{H:function(){return rewriteURIForGET}});var o=i(15049);function rewriteURIForGET(t,n){var i=[],addQueryParam=function(t,n){i.push("".concat(t,"=").concat(encodeURIComponent(n)))};if("query"in n&&addQueryParam("query",n.query),n.operationName&&addQueryParam("operationName",n.operationName),n.variables){var a=void 0;try{a=(0,o.g)(n.variables,"Variables map")}catch(t){return{parseError:t}}addQueryParam("variables",a)}if(n.extensions){var u=void 0;try{u=(0,o.g)(n.extensions,"Extensions map")}catch(t){return{parseError:t}}addQueryParam("extensions",u)}var c="",f=t,p=t.indexOf("#");-1!==p&&(c=t.substr(p),f=t.substr(0,p));var y=-1===f.indexOf("?")?"?":"&";return{newURI:f+y+i.join("&")+c}}},3453:function(t,n,i){"use strict";i.d(n,{E4:function(){return selectHttpOptionsAndBody},SC:function(){return u},sb:function(){return defaultPrinter},ve:function(){return selectHttpOptionsAndBodyInternal}});var o=i(97582),a=i(68470),u={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},defaultPrinter=function(t,n){return n(t)};function selectHttpOptionsAndBody(t,n){for(var i=[],a=2;a=b)&&(v?v(i,n):!!i)}),T}return(0,o.ZT)(RetryLink,t),RetryLink.prototype.request=function(t,n){var i=new c(t,n,this.delayFor,this.retryIf);return i.start(),new u.y(function(t){return i.subscribe(t),function(){i.unsubscribe(t)}})},RetryLink}(a.i)},16261:function(t,n,i){"use strict";i.d(n,{Q:function(){return fromError}});var o=i(48216);function fromError(t){return new o.y(function(n){n.error(t)})}},12782:function(t,n,i){"use strict";i.d(n,{P:function(){return throwServerError}});var throwServerError=function(t,n,i){var o=Error(i);throw o.name="ServerError",o.response=t,o.statusCode=t.status,o.result=n,o}},85317:function(t,n,i){"use strict";i.d(n,{K:function(){return getApolloContext}});var o=i(67294),a=i(30320),u=i(16459),c=a.aS?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function getApolloContext(){(0,u.kG)(!0,43);var t=o.createContext[c];return t||(Object.defineProperty(o.createContext,c,{value:t=o.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t}},53768:function(t,n,i){"use strict";i.d(n,{e:function(){return ApolloProvider}});var o=i(97582),a=i(16459),u=i(67294),c=i(85317),ApolloProvider=function(t){var n=t.client,i=t.children,f=(0,c.K)(),p=u.useContext(f),y=u.useMemo(function(){return(0,o.pi)((0,o.pi)({},p),{client:n||p.client})},[p,n]);return(0,a.kG)(y.client,44),u.createElement(f.Provider,{value:y},i)}},66252:function(t,n,i){"use strict";i.d(n,{x:function(){return useApolloClient}});var o=i(16459),a=i(67294),u=i(85317);function useApolloClient(t){var n=a.useContext((0,u.K)()),i=t||n.client;return(0,o.kG)(!!i,47),i}},73359:function(t,n,i){"use strict";i.d(n,{t:function(){return useLazyQuery}});var o=i(97582),a=i(67294),u=i(14012),c=i(37887),f=i(66252),p=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function useLazyQuery(t,n){var i,y=a.useRef(),m=a.useRef(),v=a.useRef(),g=(0,u.J)(n,y.current||{}),b=null!==(i=null==g?void 0:g.query)&&void 0!==i?i:t;m.current=g,v.current=b;var T=(0,c.A)((0,f.x)(n&&n.client),b),_=T.useQuery((0,o.pi)((0,o.pi)({},g),{skip:!y.current})),E=_.observable.options.initialFetchPolicy||T.getDefaultFetchPolicy(),S=Object.assign(_,{called:!!y.current}),I=a.useMemo(function(){for(var t={},n=0;n0?new p.cA({graphQLErrors:u}):void 0,T=t.onError||(null===(i=b.current.options)||void 0===i?void 0:i.onError);if(f&&T&&T(f,v),m===b.current.mutationId&&!v.ignoreResults){var _={called:!0,loading:!1,data:a,error:f,client:y};b.current.isMounted&&!(0,c.D)(b.current.result,_)&&g(b.current.result=_)}var E=t.onCompleted||(null===(o=b.current.options)||void 0===o?void 0:o.onCompleted);return f||null==E||E(n.data,v),n}).catch(function(n){if(m===b.current.mutationId&&b.current.isMounted){var i,o={loading:!1,error:n,data:void 0,called:!0,client:y};(0,c.D)(b.current.result,o)||g(b.current.result=o)}var a=t.onError||(null===(i=b.current.options)||void 0===i?void 0:i.onError);if(a)return a(n,v),{data:void 0,errors:n};throw n})},[]),_=a.useCallback(function(){b.current.isMounted&&g({called:!1,loading:!1,client:i})},[]);return a.useEffect(function(){return b.current.isMounted=!0,function(){b.current.isMounted=!1}},[]),[T,(0,o.pi)({reset:_},v)]}},37887:function(t,n,i){"use strict";i.d(n,{A:function(){return useInternalState},a:function(){return useQuery}});var o=i(97582),a=i(16459),u=i(67294),c=i.t(u,2),f=i(30320),p=!1,y=c.useSyncExternalStore||function(t,n,i){var o=n();!1===globalThis.__DEV__||p||o===n()||(p=!0,!1!==globalThis.__DEV__&&a.kG.error(56));var c=u.useState({inst:{value:o,getSnapshot:n}}),y=c[0].inst,m=c[1];return f.JC?u.useLayoutEffect(function(){Object.assign(y,{value:o,getSnapshot:n}),checkIfSnapshotChanged(y)&&m({inst:y})},[t,o,n]):Object.assign(y,{value:o,getSnapshot:n}),u.useEffect(function(){return checkIfSnapshotChanged(y)&&m({inst:y}),t(function(){checkIfSnapshotChanged(y)&&m({inst:y})})},[t]),o};function checkIfSnapshotChanged(t){var n=t.value,i=t.getSnapshot;try{return n!==i()}catch(t){return!0}}var m=i(30020),v=i(14012),g=i(85317),b=i(30990),T=i(1644),_=i(14692),E=i(66252),S=i(10542),I=i(53712),O=i(21436),N=Object.prototype.hasOwnProperty;function useQuery(t,n){return void 0===n&&(n=Object.create(null)),useInternalState((0,E.x)(n.client),t).useQuery(n)}function useInternalState(t,n){var i=u.useRef();i.current&&t===i.current.client&&n===i.current.query||(i.current=new w(t,n,i.current));var o=i.current;return o.forceUpdateState=u.useReducer(function(t){return t+1},0)[1],o}var w=function(){function InternalState(t,n,i){var o=this;this.client=t,this.query=n,this.forceUpdate=function(){return o.forceUpdateState()},this.ssrDisabledResult=(0,S.J)({loading:!0,data:void 0,error:void 0,networkStatus:T.Ie.loading}),this.skipStandbyResult=(0,S.J)({loading:!1,data:void 0,error:void 0,networkStatus:T.Ie.ready}),this.toQueryResultCache=new(f.mr?WeakMap:Map),(0,_.Vp)(n,_.n_.Query);var a=i&&i.result,u=a&&a.data;u&&(this.previousData=u)}return InternalState.prototype.forceUpdateState=function(){!1!==globalThis.__DEV__&&a.kG.warn(48)},InternalState.prototype.executeQuery=function(t){var n,i=this;t.query&&Object.assign(this,{query:t.query}),this.watchQueryOptions=this.createWatchQueryOptions(this.queryHookOptions=t);var o=this.observable.reobserveAsConcast(this.getObsQueryOptions());return this.previousData=(null===(n=this.result)||void 0===n?void 0:n.data)||this.previousData,this.result=void 0,this.forceUpdate(),new Promise(function(t){var n;o.subscribe({next:function(t){n=t},error:function(){t(i.toQueryResult(i.observable.getCurrentResult()))},complete:function(){t(i.toQueryResult(n))}})})},InternalState.prototype.useQuery=function(t){var n=this;this.renderPromises=u.useContext((0,g.K)()).renderPromises,this.useOptions(t);var i=this.useObservableQuery(),o=y(u.useCallback(function(t){if(n.renderPromises)return function(){};n.forceUpdate=t;var onNext=function(){var t=n.result,o=i.getCurrentResult();t&&t.loading===o.loading&&t.networkStatus===o.networkStatus&&(0,m.D)(t.data,o.data)||n.setResult(o)},onError=function(t){if(o.unsubscribe(),o=i.resubscribeAfterError(onNext,onError),!N.call(t,"graphQLErrors"))throw t;var a=n.result;(!a||a&&a.loading||!(0,m.D)(t,a.error))&&n.setResult({data:a&&a.data,error:t,loading:!1,networkStatus:T.Ie.error})},o=i.subscribe(onNext,onError);return function(){setTimeout(function(){return o.unsubscribe()}),n.forceUpdate=function(){return n.forceUpdateState()}}},[i,this.renderPromises,this.client.disableNetworkFetches]),function(){return n.getCurrentResult()},function(){return n.getCurrentResult()});return this.unsafeHandlePartialRefetch(o),this.toQueryResult(o)},InternalState.prototype.useOptions=function(t){var n,i=this.createWatchQueryOptions(this.queryHookOptions=t),o=this.watchQueryOptions;!(0,m.D)(i,o)&&(this.watchQueryOptions=i,o&&this.observable&&(this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(n=this.result)||void 0===n?void 0:n.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||InternalState.prototype.onCompleted,this.onError=t.onError||InternalState.prototype.onError,(this.renderPromises||this.client.disableNetworkFetches)&&!1===this.queryHookOptions.ssr&&!this.queryHookOptions.skip?this.result=this.ssrDisabledResult:this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:(this.result===this.ssrDisabledResult||this.result===this.skipStandbyResult)&&(this.result=void 0)},InternalState.prototype.getObsQueryOptions=function(){var t=[],n=this.client.defaultOptions.watchQuery;return n&&t.push(n),this.queryHookOptions.defaultOptions&&t.push(this.queryHookOptions.defaultOptions),t.push((0,I.o)(this.observable&&this.observable.options,this.watchQueryOptions)),t.reduce(v.J)},InternalState.prototype.createWatchQueryOptions=function(t){void 0===t&&(t={});var n,i=t.skip,a=Object.assign((t.ssr,t.onCompleted,t.onError,t.defaultOptions,(0,o._T)(t,["skip","ssr","onCompleted","onError","defaultOptions"])),{query:this.query});if(this.renderPromises&&("network-only"===a.fetchPolicy||"cache-and-network"===a.fetchPolicy)&&(a.fetchPolicy="cache-first"),a.variables||(a.variables={}),i){var u=a.fetchPolicy,c=void 0===u?this.getDefaultFetchPolicy():u,f=a.initialFetchPolicy;Object.assign(a,{initialFetchPolicy:void 0===f?c:f,fetchPolicy:"standby"})}else a.fetchPolicy||(a.fetchPolicy=(null===(n=this.observable)||void 0===n?void 0:n.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return a},InternalState.prototype.getDefaultFetchPolicy=function(){var t,n;return(null===(t=this.queryHookOptions.defaultOptions)||void 0===t?void 0:t.fetchPolicy)||(null===(n=this.client.defaultOptions.watchQuery)||void 0===n?void 0:n.fetchPolicy)||"cache-first"},InternalState.prototype.onCompleted=function(t){},InternalState.prototype.onError=function(t){},InternalState.prototype.useObservableQuery=function(){var t=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=u.useMemo(function(){return{refetch:t.refetch.bind(t),reobserve:t.reobserve.bind(t),fetchMore:t.fetchMore.bind(t),updateQuery:t.updateQuery.bind(t),startPolling:t.startPolling.bind(t),stopPolling:t.stopPolling.bind(t),subscribeToMore:t.subscribeToMore.bind(t)}},[t]);var n=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&n&&(this.renderPromises.registerSSRObservable(t),t.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(t)),t},InternalState.prototype.setResult=function(t){var n=this.result;n&&n.data&&(this.previousData=n.data),this.result=t,this.forceUpdate(),this.handleErrorOrCompleted(t,n)},InternalState.prototype.handleErrorOrCompleted=function(t,n){var i=this;if(!t.loading){var o=this.toApolloError(t);Promise.resolve().then(function(){o?i.onError(o):t.data&&(null==n?void 0:n.networkStatus)!==t.networkStatus&&t.networkStatus===T.Ie.ready&&i.onCompleted(t.data)}).catch(function(t){!1!==globalThis.__DEV__&&a.kG.warn(t)})}},InternalState.prototype.toApolloError=function(t){return(0,O.O)(t.errors)?new b.cA({graphQLErrors:t.errors}):t.error},InternalState.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},InternalState.prototype.toQueryResult=function(t){var n=this.toQueryResultCache.get(t);if(n)return n;var i=t.data,a=(t.partial,(0,o._T)(t,["data","partial"]));return this.toQueryResultCache.set(t,n=(0,o.pi)((0,o.pi)((0,o.pi)({data:i},a),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!n.error&&(0,O.O)(t.errors)&&(n.error=new b.cA({graphQLErrors:t.errors})),n},InternalState.prototype.unsafeHandlePartialRefetch=function(t){t.partial&&this.queryHookOptions.partialRefetch&&!t.loading&&(!t.data||0===Object.keys(t.data).length)&&"cache-only"!==this.observable.options.fetchPolicy&&(Object.assign(t,{loading:!0,networkStatus:T.Ie.refetch}),this.observable.refetch())},InternalState}()},14692:function(t,n,i){"use strict";i.d(n,{Vp:function(){return verifyDocumentType},n_:function(){return a}});var o,a,u=i(16459);(o=a||(a={}))[o.Query=0]="Query",o[o.Mutation=1]="Mutation",o[o.Subscription=2]="Subscription";var c=new Map;function operationName(t){var n;switch(t){case a.Query:n="Query";break;case a.Mutation:n="Mutation";break;case a.Subscription:n="Subscription"}return n}function verifyDocumentType(t,n){var i=function(t){var n,i,o=c.get(t);if(o)return o;(0,u.kG)(!!t&&!!t.kind,57,t);for(var f=[],p=[],y=[],m=[],v=0,g=t.definitions;v0}},30320:function(t,n,i){"use strict";i.d(n,{DN:function(){return f},JC:function(){return m},Nq:function(){return p},aS:function(){return c},mr:function(){return a},sy:function(){return u}});var o=i(16459),a="function"==typeof WeakMap&&"ReactNative"!==(0,o.wY)(function(){return navigator.product}),u="function"==typeof WeakSet,c="function"==typeof Symbol&&"function"==typeof Symbol.for,f=c&&Symbol.asyncIterator,p="function"==typeof(0,o.wY)(function(){return window.document.createElement}),y=(0,o.wY)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,m=p&&!y},79487:function(t,n,i){"use strict";i.d(n,{X:function(){return cloneDeep}});var o=Object.prototype.toString;function cloneDeep(t){return function cloneDeepHelper(t,n){switch(o.call(t)){case"[object Array]":if((n=n||new Map).has(t))return n.get(t);var i=t.slice(0);return n.set(t,i),i.forEach(function(t,o){i[o]=cloneDeepHelper(t,n)}),i;case"[object Object]":if((n=n||new Map).has(t))return n.get(t);var a=Object.create(Object.getPrototypeOf(t));return n.set(t,a),Object.keys(t).forEach(function(i){a[i]=cloneDeepHelper(t[i],n)}),a;default:return t}}(t)}},53712:function(t,n,i){"use strict";function compact(){for(var t=[],n=0;n=0;--u){var c=a[u],f=isNaN(+c)?{}:[];f[c]=n,n=f}i=o.merge(i,n)}),i}},60897:function(t,n,i){"use strict";i.d(n,{X:function(){return makeUniqueId}});var o=new Map;function makeUniqueId(t){var n=o.get(t)||1;return o.set(t,n+1),"".concat(t,":").concat(n,":").concat(Math.random().toString(36).slice(2))}},10542:function(t,n,i){"use strict";i.d(n,{J:function(){return maybeDeepFreeze}});var o=i(13154);function maybeDeepFreeze(t){if(!1!==globalThis.__DEV__){var n;(n=new Set([t])).forEach(function(t){(0,o.s)(t)&&function(t){if(!1!==globalThis.__DEV__&&!Object.isFrozen(t))try{Object.freeze(t)}catch(t){if(t instanceof TypeError)return null;throw t}return t}(t)===t&&Object.getOwnPropertyNames(t).forEach(function(i){(0,o.s)(t[i])&&n.add(t[i])})})}return t}},182:function(t,n,i){"use strict";i.d(n,{Ee:function(){return mergeDeep},bw:function(){return mergeDeepArray},w0:function(){return c}});var o=i(97582),a=i(13154),u=Object.prototype.hasOwnProperty;function mergeDeep(){for(var t=[],n=0;n1)for(var o=new c,a=1;a")}},16459:function(t,n,i){"use strict";i.d(n,{Rk:function(){return y},kG:function(){return f},wY:function(){return maybe},_K:function(){return newInvariantError}});var o=i(66128),a=i(49379);function maybe(t){try{return t()}catch(t){}}var u=maybe(function(){return globalThis})||maybe(function(){return window})||maybe(function(){return self})||maybe(function(){return global})||maybe(function(){return maybe.constructor("return this")()}),c=i(13887);function wrap(t){return function(n){for(var i=[],o=1;o0))return i.connection.key;var o=i.connection.filter?i.connection.filter:[];o.sort();var a={};return o.forEach(function(t){a[t]=n[t]}),"".concat(i.connection.key,"(").concat(stringify(a),")")}var u=t;if(n){var f=stringify(n);u+="(".concat(f,")")}return i&&Object.keys(i).forEach(function(t){-1===c.indexOf(t)&&(i[t]&&Object.keys(i[t]).length?u+="@".concat(t,"(").concat(stringify(i[t]),")"):u+="@".concat(t))}),u},{setStringify:function(t){var n=stringify;return stringify=t,n}}),stringify=function(t){return JSON.stringify(t,stringifyReplacer)};function stringifyReplacer(t,n){return(0,a.s)(n)&&!Array.isArray(n)&&(n=Object.keys(n).sort().reduce(function(t,i){return t[i]=n[i],t},{})),n}function argumentsObjectFromField(t,n){if(t.arguments&&t.arguments.length){var i={};return t.arguments.forEach(function(t){return valueToObjectRepresentation(i,t.name,t.value,n)}),i}return null}function resultKeyNameFromField(t){return t.alias?t.alias.value:t.name.value}function isField(t){return"Field"===t.kind}function isInlineFragment(t){return"InlineFragment"===t.kind}},76487:function(t,n,i){"use strict";i.d(n,{Fo:function(){return removeConnectionDirectiveFromDocument},Gw:function(){return g},RR:function(){return removeFragmentSpreadFromDocument},Vw:function(){return removeArgumentsFromDocument},aL:function(){return buildQueryFromSelectionSet},bi:function(){return removeDirectivesFromDocument},ob:function(){return removeClientSetsFromDocument}});var o=i(97582),a=i(16459),u=i(97359),c=i(77304),f=i(36765),p=i(51761),y=i(23361),m=i(21436),v={kind:u.h.FIELD,name:{kind:u.h.NAME,value:"__typename"}};function nullIfDocIsEmpty(t){return!function isEmpty(t,n){return!t||t.selectionSet.selections.every(function(t){return t.kind===u.h.FRAGMENT_SPREAD&&isEmpty(n[t.name.value],n)})}((0,f.$H)(t)||(0,f.pD)(t),(0,y.F)((0,f.kU)(t)))?t:null}function makeInUseGetterFunction(t){var n=new Map;return function(i){void 0===i&&(i=t);var o=n.get(i);return o||n.set(i,o={variables:new Set,fragmentSpreads:new Set}),o}}function removeDirectivesFromDocument(t,n){(0,f.A$)(n);for(var i,p,y=makeInUseGetterFunction(""),v=makeInUseGetterFunction(""),getInUse=function(t){for(var n=0,i=void 0;n=0;--b)n.definitions[b].kind===u.h.OPERATION_DEFINITION&&++g;var T=(i=new Map,p=new Map,t.forEach(function(t){t&&(t.name?i.set(t.name,t):t.test&&p.set(t.test,t))}),function(t){var n=i.get(t.name.value);return!n&&p.size&&p.forEach(function(i,o){o(t)&&(n=i)}),n}),shouldRemoveField=function(t){return(0,m.O)(t)&&t.map(T).some(function(t){return t&&t.remove})},_=new Map,E=!1,S={enter:function(t){if(shouldRemoveField(t.directives))return E=!0,null}},I=(0,c.Vn)(n,{Field:S,InlineFragment:S,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(t,n,i,o,a){var u=getInUse(a);u&&u.variables.add(t.name.value)}},FragmentSpread:{enter:function(t,n,i,o,a){if(shouldRemoveField(t.directives))return E=!0,null;var u=getInUse(a);u&&u.fragmentSpreads.add(t.name.value)}},FragmentDefinition:{enter:function(t,n,i,o){_.set(JSON.stringify(o),t)},leave:function(t,n,i,o){return t===_.get(JSON.stringify(o))?t:g>0&&t.selectionSet.selections.every(function(t){return t.kind===u.h.FIELD&&"__typename"===t.name.value})?(v(t.name.value).removed=!0,E=!0,null):void 0}},Directive:{leave:function(t){if(T(t))return E=!0,null}}});if(!E)return n;var populateTransitiveVars=function(t){return t.transitiveVars||(t.transitiveVars=new Set(t.variables),t.removed||t.fragmentSpreads.forEach(function(n){populateTransitiveVars(v(n)).transitiveVars.forEach(function(n){t.transitiveVars.add(n)})})),t},O=new Set;I.definitions.forEach(function(t){t.kind===u.h.OPERATION_DEFINITION?populateTransitiveVars(y(t.name&&t.name.value)).fragmentSpreads.forEach(function(t){O.add(t)}):t.kind!==u.h.FRAGMENT_DEFINITION||0!==g||v(t.name.value).removed||O.add(t.name.value)}),O.forEach(function(t){populateTransitiveVars(v(t)).fragmentSpreads.forEach(function(t){O.add(t)})});var N={enter:function(t){var n;if(n=t.name.value,!O.has(n)||v(n).removed)return null}};return nullIfDocIsEmpty((0,c.Vn)(I,{FragmentSpread:N,FragmentDefinition:N,OperationDefinition:{leave:function(t){if(t.variableDefinitions){var n=populateTransitiveVars(y(t.name&&t.name.value)).transitiveVars;if(n.size1&&u===c&&(u="");var f=t.pageInfo||{},p=f.startCursor,y=f.endCursor;return(0,v.pi)((0,v.pi)({},getExtras(t)),{edges:a,pageInfo:(0,v.pi)((0,v.pi)({},t.pageInfo),{startCursor:p||u,endCursor:y||c})})},merge:function(t,n,i){var o=i.args,a=i.isReference,u=i.readField;if(t||(t={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!n)return t;var c=n.edges?n.edges.map(function(t){return a(t=(0,v.pi)({},t))&&(t.cursor=u("cursor",t)),t}):[];if(n.pageInfo){var f=n.pageInfo,p=f.startCursor,y=f.endCursor,m=c[0],b=c[c.length-1];m&&p&&(m.cursor=p),b&&y&&(b.cursor=y);var T=m&&m.cursor;T&&!p&&(n=(0,g.Ee)(n,{pageInfo:{startCursor:T}}));var _=b&&b.cursor;_&&!y&&(n=(0,g.Ee)(n,{pageInfo:{endCursor:_}}))}var E=t.edges,S=[];if(o&&o.after){var I=E.findIndex(function(t){return t.cursor===o.after});I>=0&&(E=E.slice(0,I+1))}else if(o&&o.before){var I=E.findIndex(function(t){return t.cursor===o.before});S=I<0?E:E.slice(I),E=[]}else n.edges&&(E=[]);var O=(0,v.ev)((0,v.ev)((0,v.ev)([],E,!0),c,!0),S,!0),N=(0,v.pi)((0,v.pi)({},n.pageInfo),t.pageInfo);if(n.pageInfo){var w=n.pageInfo,A=w.hasPreviousPage,R=w.hasNextPage,p=w.startCursor,y=w.endCursor;Object.assign(N,(0,v._T)(w,["hasPreviousPage","hasNextPage","startCursor","endCursor"])),E.length||(void 0!==A&&(N.hasPreviousPage=A),void 0===p||(N.startCursor=p)),S.length||(void 0!==R&&(N.hasNextPage=R),void 0===y||(N.endCursor=y))}return(0,v.pi)((0,v.pi)((0,v.pi)({},getExtras(t)),getExtras(n)),{edges:O,pageInfo:N})}}}var getExtras=function(t){return(0,v._T)(t,b)},b=["edges","pageInfo"],T=i(48216);function createFulfilledPromise(t){var n=Promise.resolve(t);return n.status="fulfilled",n.value=t,n}function createRejectedPromise(t){var n=Promise.reject(t);return n.catch(function(){}),n.status="rejected",n.reason=t,n}function isStatefulPromise(t){return"status"in t}function wrapPromiseWithState(t){return isStatefulPromise(t)||(t.status="pending",t.then(function(n){"pending"===t.status&&(t.status="fulfilled",t.value=n)},function(n){"pending"===t.status&&(t.status="rejected",t.reason=n)})),t}var _=i(79487),E=i(10542),S=i(18263),I=i(46951),O=i(55687),N=i(86403),w=i(21436),A=i(13154),R=i(69383),k=i(30320),C=i(53712),D=i(60897),L=i(13887),F=i(14012),M=i(37280);function omitDeep(t,n){return __omitDeep(t,n)}function __omitDeep(t,n,i){if(void 0===i&&(i=new Map),i.has(t))return i.get(t);var o=!1;if(Array.isArray(t)){var a=[];if(i.set(t,a),t.forEach(function(t,u){var c=__omitDeep(t,n,i);o||(o=c!==t),a[u]=c}),o)return a}else if((0,A.P)(t)){var u=Object.create(Object.getPrototypeOf(t));if(i.set(t,u),Object.keys(t).forEach(function(a){if(a===n){o=!0;return}var c=__omitDeep(t[a],n,i);o||(o=c!==t[a]),u[a]=c}),o)return u}return t}function stripTypename(t){return __omitDeep(t,"__typename")}},55687:function(t,n,i){"use strict";i.d(n,{X:function(){return f}});var o=i(97582),a=i(48216),u=i(18263),c=i(86403);function isPromiseLike(t){return t&&"function"==typeof t.then}var f=function(t){function Concast(n){var i=t.call(this,function(t){return i.addObserver(t),function(){return i.removeObserver(t)}})||this;return i.observers=new Set,i.promise=new Promise(function(t,n){i.resolve=t,i.reject=n}),i.handlers={next:function(t){null!==i.sub&&(i.latest=["next",t],i.notify("next",t),(0,u.p)(i.observers,"next",t))},error:function(t){var n=i.sub;null!==n&&(n&&setTimeout(function(){return n.unsubscribe()}),i.sub=null,i.latest=["error",t],i.reject(t),i.notify("error",t),(0,u.p)(i.observers,"error",t))},complete:function(){var t=i.sub,n=i.sources;if(null!==t){var o=(void 0===n?[]:n).shift();o?isPromiseLike(o)?o.then(function(t){return i.sub=t.subscribe(i.handlers)}):i.sub=o.subscribe(i.handlers):(t&&setTimeout(function(){return t.unsubscribe()}),i.sub=null,i.latest&&"next"===i.latest[0]?i.resolve(i.latest[1]):i.resolve(),i.notify("complete"),(0,u.p)(i.observers,"complete"))}}},i.nextResultListeners=new Set,i.cancel=function(t){i.reject(t),i.sources=[],i.handlers.complete()},i.promise.catch(function(t){}),"function"==typeof n&&(n=[new a.y(n)]),isPromiseLike(n)?n.then(function(t){return i.start(t)},i.handlers.error):i.start(n),i}return(0,o.ZT)(Concast,t),Concast.prototype.start=function(t){void 0===this.sub&&(this.sources=Array.from(t),this.handlers.complete())},Concast.prototype.deliverLastMessage=function(t){if(this.latest){var n=this.latest[0],i=t[n];i&&i.call(t,this.latest[1]),null===this.sub&&"next"===n&&t.complete&&t.complete()}},Concast.prototype.addObserver=function(t){this.observers.has(t)||(this.deliverLastMessage(t),this.observers.add(t))},Concast.prototype.removeObserver=function(t){this.observers.delete(t)&&this.observers.size<1&&this.handlers.complete()},Concast.prototype.notify=function(t,n){var i=this.nextResultListeners;i.size&&(this.nextResultListeners=new Set,i.forEach(function(i){return i(t,n)}))},Concast.prototype.beforeNext=function(t){var n=!1;this.nextResultListeners.add(function(i,o){n||(n=!0,t(i,o))})},Concast}(a.y);(0,c.D)(f)},46951:function(t,n,i){"use strict";i.d(n,{s:function(){return asyncMap}});var o=i(48216);function asyncMap(t,n,i){return new o.y(function(o){var a={then:function(t){return new Promise(function(n){return n(t())})}};function makeCallback(t,n){return function(i){if(t){var both=function(){return o.closed?0:t(i)};a=a.then(both,both).then(function(t){return o.next(t)},function(t){return o.error(t)})}else o[n](i)}}var u={next:makeCallback(n,"next"),error:makeCallback(i,"error"),complete:function(){a.then(function(){return o.complete()})}},c=t.subscribe(u);return function(){return c.unsubscribe()}})}},18263:function(t,n,i){"use strict";function iterateObserversSafely(t,n,i){var o=[];t.forEach(function(t){return t[n]&&o.push(t)}),o.forEach(function(t){return t[n](i)})}i.d(n,{p:function(){return iterateObserversSafely}})},86403:function(t,n,i){"use strict";i.d(n,{D:function(){return fixObservableSubclass}});var o=i(48216),a=i(30320);function fixObservableSubclass(t){function set(n){Object.defineProperty(t,n,{value:o.y})}return a.aS&&Symbol.species&&set(Symbol.species),set("@@species"),t}},49379:function(t,n,i){"use strict";i.d(n,{i:function(){return o}});var o="3.8.5"},70093:function(t,n,i){"use strict";i.d(n,{g7:function(){return p}});let o=null,a={},u=1;function maybe(t){try{return t()}catch(t){}}let c="@wry/context:Slot",f=maybe(()=>globalThis)||maybe(()=>global)||Object.create(null),p=f[c]||Array[c]||function(t){try{Object.defineProperty(f,c,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}}(class{constructor(){this.id=["slot",u++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=o;t;t=t.parent)if(this.id in t.slots){let n=t.slots[this.id];if(n===a)break;return t!==o&&(o.slots[this.id]=n),!0}return o&&(o.slots[this.id]=a),!1}getValue(){if(this.hasValue())return o.slots[this.id]}withValue(t,n,i,a){let u={__proto__:null,[this.id]:t},c=o;o={parent:c,slots:u};try{return n.apply(a,i)}finally{o=c}}static bind(t){let n=o;return function(){let i=o;try{return o=n,t.apply(this,arguments)}finally{o=i}}}static noContext(t,n,i){if(!o)return t.apply(i,n);{let a=o;try{return o=null,t.apply(i,n)}finally{o=a}}}}),{bind:y,noContext:m}=p},30020:function(t,n,i){"use strict";i.d(n,{D:function(){return equal}});let{toString:o,hasOwnProperty:a}=Object.prototype,u=Function.prototype.toString,c=new Map;function equal(t,n){try{return function check(t,n){if(t===n)return!0;let i=o.call(t),c=o.call(n);if(i!==c)return!1;switch(i){case"[object Array]":if(t.length!==n.length)break;case"[object Object]":{if(previouslyCompared(t,n))return!0;let i=definedKeys(t),o=definedKeys(n),u=i.length;if(u!==o.length)return!1;for(let t=0;t=0&&t.indexOf(n,i)===i}(i,f)}}return!1}(t,n)}finally{c.clear()}}function definedKeys(t){return Object.keys(t).filter(isDefinedKey,t)}function isDefinedKey(t){return void 0!==this[t]}n.Z=equal;let f="{ [native code] }";function previouslyCompared(t,n){let i=c.get(t);if(i){if(i.has(n))return!0}else c.set(t,i=new Set);return i.add(n),!1}},75028:function(t,n,i){"use strict";i.d(n,{B:function(){return Trie}});let defaultMakeData=()=>Object.create(null),{forEach:o,slice:a}=Array.prototype,{hasOwnProperty:u}=Object.prototype;let Trie=class Trie{constructor(t=!0,n=defaultMakeData){this.weakness=t,this.makeData=n}lookup(...t){return this.lookupArray(t)}lookupArray(t){let n=this;return o.call(t,t=>n=n.getChildTrie(t)),u.call(n,"data")?n.data:n.data=this.makeData(a.call(t))}peek(...t){return this.peekArray(t)}peekArray(t){let n=this;for(let i=0,o=t.length;n&&i{let n=a.call(t);return L[n]||(L[n]=n.slice(8,-1).toLowerCase())}),kindOfTest=t=>(t=t.toLowerCase(),n=>c(n)===t),typeOfTest=t=>n=>typeof n===t,{isArray:f}=Array,p=typeOfTest("undefined"),y=kindOfTest("ArrayBuffer"),m=typeOfTest("string"),v=typeOfTest("function"),g=typeOfTest("number"),isObject=t=>null!==t&&"object"==typeof t,isPlainObject=t=>{if("object"!==c(t))return!1;let n=u(t);return(null===n||n===Object.prototype||null===Object.getPrototypeOf(n))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},b=kindOfTest("Date"),T=kindOfTest("File"),_=kindOfTest("Blob"),E=kindOfTest("FileList"),S=kindOfTest("URLSearchParams");function forEach(t,n,{allOwnKeys:i=!1}={}){let o,a;if(null!=t){if("object"!=typeof t&&(t=[t]),f(t))for(o=0,a=t.length;o0;)if(n===(i=o[a]).toLowerCase())return i;return null}let I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined=t=>!p(t)&&t!==I,O=(F="undefined"!=typeof Uint8Array&&u(Uint8Array),t=>F&&t instanceof F),N=kindOfTest("HTMLFormElement"),w=(({hasOwnProperty:t})=>(n,i)=>t.call(n,i))(Object.prototype),A=kindOfTest("RegExp"),reduceDescriptors=(t,n)=>{let i=Object.getOwnPropertyDescriptors(t),o={};forEach(i,(i,a)=>{let u;!1!==(u=n(i,a,t))&&(o[a]=u||i)}),Object.defineProperties(t,o)},R="abcdefghijklmnopqrstuvwxyz",k="0123456789",C={DIGIT:k,ALPHA:R,ALPHA_DIGIT:R+R.toUpperCase()+k},D=kindOfTest("AsyncFunction");var L,F,M={isArray:f,isArrayBuffer:y,isBuffer:function(t){return null!==t&&!p(t)&&null!==t.constructor&&!p(t.constructor)&&v(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let n;return t&&("function"==typeof FormData&&t instanceof FormData||v(t.append)&&("formdata"===(n=c(t))||"object"===n&&v(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&y(t.buffer)},isString:m,isNumber:g,isBoolean:t=>!0===t||!1===t,isObject,isPlainObject,isUndefined:p,isDate:b,isFile:T,isBlob:_,isRegExp:A,isFunction:v,isStream:t=>isObject(t)&&v(t.pipe),isURLSearchParams:S,isTypedArray:O,isFileList:E,forEach,merge:function merge(){let{caseless:t}=isContextDefined(this)&&this||{},n={},assignValue=(i,o)=>{let a=t&&findKey(n,o)||o;isPlainObject(n[a])&&isPlainObject(i)?n[a]=merge(n[a],i):isPlainObject(i)?n[a]=merge({},i):f(i)?n[a]=i.slice():n[a]=i};for(let t=0,n=arguments.length;t(forEach(n,(n,o)=>{i&&v(n)?t[o]=bind(n,i):t[o]=n},{allOwnKeys:o}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,n,i,o)=>{t.prototype=Object.create(n.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),i&&Object.assign(t.prototype,i)},toFlatObject:(t,n,i,o)=>{let a,c,f;let p={};if(n=n||{},null==t)return n;do{for(c=(a=Object.getOwnPropertyNames(t)).length;c-- >0;)f=a[c],(!o||o(f,t,n))&&!p[f]&&(n[f]=t[f],p[f]=!0);t=!1!==i&&u(t)}while(t&&(!i||i(t,n))&&t!==Object.prototype);return n},kindOf:c,kindOfTest,endsWith:(t,n,i)=>{t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=n.length;let o=t.indexOf(n,i);return -1!==o&&o===i},toArray:t=>{if(!t)return null;if(f(t))return t;let n=t.length;if(!g(n))return null;let i=Array(n);for(;n-- >0;)i[n]=t[n];return i},forEachEntry:(t,n)=>{let i;let o=t&&t[Symbol.iterator],a=o.call(t);for(;(i=a.next())&&!i.done;){let o=i.value;n.call(t,o[0],o[1])}},matchAll:(t,n)=>{let i;let o=[];for(;null!==(i=t.exec(n));)o.push(i);return o},isHTMLForm:N,hasOwnProperty:w,hasOwnProp:w,reduceDescriptors,freezeMethods:t=>{reduceDescriptors(t,(n,i)=>{if(v(t)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;let o=t[i];if(v(o)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},toObjectSet:(t,n)=>{let i={};return(t=>{t.forEach(t=>{i[t]=!0})})(f(t)?t:String(t).split(n)),i},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,i){return n.toUpperCase()+i}),noop:()=>{},toFiniteNumber:(t,n)=>Number.isFinite(t=+t)?t:n,findKey,global:I,isContextDefined,ALPHABET:C,generateString:(t=16,n=C.ALPHA_DIGIT)=>{let i="",{length:o}=n;for(;t--;)i+=n[Math.random()*o|0];return i},isSpecCompliantForm:function(t){return!!(t&&v(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{let n=Array(10),visit=(t,i)=>{if(isObject(t)){if(n.indexOf(t)>=0)return;if(!("toJSON"in t)){n[i]=t;let o=f(t)?[]:{};return forEach(t,(t,n)=>{let a=visit(t,i+1);p(a)||(o[n]=a)}),n[i]=void 0,o}}return t};return visit(t,0)},isAsyncFn:D,isThenable:t=>t&&(isObject(t)||v(t))&&v(t.then)&&v(t.catch)};function AxiosError(t,n,i,o,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=t,this.name="AxiosError",n&&(this.code=n),i&&(this.config=i),o&&(this.request=o),a&&(this.response=a)}M.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let P=AxiosError.prototype,x={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{x[t]={value:t}}),Object.defineProperties(AxiosError,x),Object.defineProperty(P,"isAxiosError",{value:!0}),AxiosError.from=(t,n,i,o,a,u)=>{let c=Object.create(P);return M.toFlatObject(t,c,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t),AxiosError.call(c,t.message,n,i,o,a),c.cause=t,c.name=t.name,u&&Object.assign(c,u),c};var j=i(48764).lW;function isVisitable(t){return M.isPlainObject(t)||M.isArray(t)}function removeBrackets(t){return M.endsWith(t,"[]")?t.slice(0,-2):t}function renderKey(t,n,i){return t?t.concat(n).map(function(t,n){return t=removeBrackets(t),!i&&n?"["+t+"]":t}).join(i?".":""):n}let U=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});var helpers_toFormData=function(t,n,i){if(!M.isObject(t))throw TypeError("target must be an object");n=n||new FormData,i=M.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,n){return!M.isUndefined(n[t])});let o=i.metaTokens,a=i.visitor||defaultVisitor,u=i.dots,c=i.indexes,f=i.Blob||"undefined"!=typeof Blob&&Blob,p=f&&M.isSpecCompliantForm(n);if(!M.isFunction(a))throw TypeError("visitor must be a function");function convertValue(t){if(null===t)return"";if(M.isDate(t))return t.toISOString();if(!p&&M.isBlob(t))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(t)||M.isTypedArray(t)?p&&"function"==typeof Blob?new Blob([t]):j.from(t):t}function defaultVisitor(t,i,a){let f=t;if(t&&!a&&"object"==typeof t){if(M.endsWith(i,"{}"))i=o?i:i.slice(0,-2),t=JSON.stringify(t);else{var p;if(M.isArray(t)&&(p=t,M.isArray(p)&&!p.some(isVisitable))||(M.isFileList(t)||M.endsWith(i,"[]"))&&(f=M.toArray(t)))return i=removeBrackets(i),f.forEach(function(t,o){M.isUndefined(t)||null===t||n.append(!0===c?renderKey([i],o,u):null===c?i:i+"[]",convertValue(t))}),!1}}return!!isVisitable(t)||(n.append(renderKey(a,i,u),convertValue(t)),!1)}let y=[],m=Object.assign(U,{defaultVisitor,convertValue,isVisitable});if(!M.isObject(t))throw TypeError("data must be an object");return!function build(t,i){if(!M.isUndefined(t)){if(-1!==y.indexOf(t))throw Error("Circular reference detected in "+i.join("."));y.push(t),M.forEach(t,function(t,o){let u=!(M.isUndefined(t)||null===t)&&a.call(n,t,M.isString(o)?o.trim():o,i,m);!0===u&&build(t,i?i.concat(o):[o])}),y.pop()}}(t),n};function encode(t){let n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return n[t]})}function AxiosURLSearchParams(t,n){this._pairs=[],t&&helpers_toFormData(t,this,n)}let V=AxiosURLSearchParams.prototype;function buildURL_encode(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(t,n,i){let o;if(!n)return t;let a=i&&i.encode||buildURL_encode,u=i&&i.serialize;if(o=u?u(n,i):M.isURLSearchParams(n)?n.toString():new AxiosURLSearchParams(n,i).toString(a)){let n=t.indexOf("#");-1!==n&&(t=t.slice(0,n)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}V.append=function(t,n){this._pairs.push([t,n])},V.toString=function(t){let n=t?function(n){return t.call(this,n,encode)}:encode;return this._pairs.map(function(t){return n(t[0])+"="+n(t[1])},"").join("&")};var B=class{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){M.forEach(this.handlers,function(n){null!==n&&t(n)})}},q={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Q="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,G="undefined"!=typeof FormData?FormData:null,H="undefined"!=typeof Blob?Blob:null;let $=("undefined"==typeof navigator||"ReactNative"!==(o=navigator.product)&&"NativeScript"!==o&&"NS"!==o)&&"undefined"!=typeof window&&"undefined"!=typeof document,z="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var K={classes:{URLSearchParams:Q,FormData:G,Blob:H},isStandardBrowserEnv:$,isStandardBrowserWebWorkerEnv:z,protocols:["http","https","file","blob","url","data"]},helpers_formDataToJSON=function(t){if(M.isFormData(t)&&M.isFunction(t.entries)){let n={};return M.forEachEntry(t,(t,i)=>{!function buildPath(t,n,i,o){let a=t[o++],u=Number.isFinite(+a),c=o>=t.length;if(a=!a&&M.isArray(i)?i.length:a,c)return M.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!u;i[a]&&M.isObject(i[a])||(i[a]=[]);let f=buildPath(t,n,i[a],o);return f&&M.isArray(i[a])&&(i[a]=function(t){let n,i;let o={},a=Object.keys(t),u=a.length;for(n=0;n"[]"===t[0]?"":t[1]||t[0]),i,n,0)}),n}return null};let W={transitional:q,adapter:["xhr","http"],transformRequest:[function(t,n){let i;let o=n.getContentType()||"",a=o.indexOf("application/json")>-1,u=M.isObject(t);u&&M.isHTMLForm(t)&&(t=new FormData(t));let c=M.isFormData(t);if(c)return a&&a?JSON.stringify(helpers_formDataToJSON(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(u){if(o.indexOf("application/x-www-form-urlencoded")>-1){var f,p;return(f=t,p=this.formSerializer,helpers_toFormData(f,new K.classes.URLSearchParams,Object.assign({visitor:function(t,n,i,o){return K.isNode&&M.isBuffer(t)?(this.append(n,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},p))).toString()}if((i=M.isFileList(t))||o.indexOf("multipart/form-data")>-1){let n=this.env&&this.env.FormData;return helpers_toFormData(i?{"files[]":t}:t,n&&new n,this.formSerializer)}}return u||a?(n.setContentType("application/json",!1),function(t,n,i){if(M.isString(t))try{return(0,JSON.parse)(t),M.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){let n=this.transitional||W.transitional,i=n&&n.forcedJSONParsing,o="json"===this.responseType;if(t&&M.isString(t)&&(i&&!this.responseType||o)){let i=n&&n.silentJSONParsing;try{return JSON.parse(t)}catch(t){if(!i&&o){if("SyntaxError"===t.name)throw AxiosError.from(t,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:K.classes.FormData,Blob:K.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],t=>{W.headers[t]={}});let Y=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var parseHeaders=t=>{let n,i,o;let a={};return t&&t.split("\n").forEach(function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),i=t.substring(o+1).trim(),!n||a[n]&&Y[n]||("set-cookie"===n?a[n]?a[n].push(i):a[n]=[i]:a[n]=a[n]?a[n]+", "+i:i)}),a};let X=Symbol("internals");function normalizeHeader(t){return t&&String(t).trim().toLowerCase()}function normalizeValue(t){return!1===t||null==t?t:M.isArray(t)?t.map(normalizeValue):String(t)}let isValidHeaderName=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function matchHeaderValue(t,n,i,o,a){if(M.isFunction(o))return o.call(this,n,i);if(a&&(n=i),M.isString(n)){if(M.isString(o))return -1!==n.indexOf(o);if(M.isRegExp(o))return o.test(n)}}let AxiosHeaders=class AxiosHeaders{constructor(t){t&&this.set(t)}set(t,n,i){let o=this;function setHeader(t,n,i){let a=normalizeHeader(n);if(!a)throw Error("header name must be a non-empty string");let u=M.findKey(o,a);u&&void 0!==o[u]&&!0!==i&&(void 0!==i||!1===o[u])||(o[u||n]=normalizeValue(t))}let setHeaders=(t,n)=>M.forEach(t,(t,i)=>setHeader(t,i,n));return M.isPlainObject(t)||t instanceof this.constructor?setHeaders(t,n):M.isString(t)&&(t=t.trim())&&!isValidHeaderName(t)?setHeaders(parseHeaders(t),n):null!=t&&setHeader(n,t,i),this}get(t,n){if(t=normalizeHeader(t)){let i=M.findKey(this,t);if(i){let t=this[i];if(!n)return t;if(!0===n)return function(t){let n;let i=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;n=o.exec(t);)i[n[1]]=n[2];return i}(t);if(M.isFunction(n))return n.call(this,t,i);if(M.isRegExp(n))return n.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=normalizeHeader(t)){let i=M.findKey(this,t);return!!(i&&void 0!==this[i]&&(!n||matchHeaderValue(this,this[i],i,n)))}return!1}delete(t,n){let i=this,o=!1;function deleteHeader(t){if(t=normalizeHeader(t)){let a=M.findKey(i,t);a&&(!n||matchHeaderValue(i,i[a],a,n))&&(delete i[a],o=!0)}}return M.isArray(t)?t.forEach(deleteHeader):deleteHeader(t),o}clear(t){let n=Object.keys(this),i=n.length,o=!1;for(;i--;){let a=n[i];(!t||matchHeaderValue(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){let n=this,i={};return M.forEach(this,(o,a)=>{let u=M.findKey(i,a);if(u){n[u]=normalizeValue(o),delete n[a];return}let c=t?a.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i):String(a).trim();c!==a&&delete n[a],n[c]=normalizeValue(o),i[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return M.forEach(this,(i,o)=>{null!=i&&!1!==i&&(n[o]=t&&M.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){let i=new this(t);return n.forEach(t=>i.set(t)),i}static accessor(t){let n=this[X]=this[X]={accessors:{}},i=n.accessors,o=this.prototype;function defineAccessor(t){let n=normalizeHeader(t);i[n]||(!function(t,n){let i=M.toCamelCase(" "+n);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+i,{value:function(t,i,a){return this[o].call(this,n,t,i,a)},configurable:!0})})}(o,t),i[n]=!0)}return M.isArray(t)?t.forEach(defineAccessor):defineAccessor(t),this}};function transformData(t,n){let i=this||W,o=n||i,a=AxiosHeaders.from(o.headers),u=o.data;return M.forEach(t,function(t){u=t.call(i,u,a.normalize(),n?n.status:void 0)}),a.normalize(),u}function isCancel(t){return!!(t&&t.__CANCEL__)}function CanceledError(t,n,i){AxiosError.call(this,null==t?"canceled":t,AxiosError.ERR_CANCELED,n,i),this.name="CanceledError"}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),M.reduceDescriptors(AxiosHeaders.prototype,({value:t},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(t){this[i]=t}}}),M.freezeMethods(AxiosHeaders),M.inherits(CanceledError,AxiosError,{__CANCEL__:!0});var J=K.isStandardBrowserEnv?{write:function(t,n,i,o,a,u){let c=[];c.push(t+"="+encodeURIComponent(n)),M.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),M.isString(o)&&c.push("path="+o),M.isString(a)&&c.push("domain="+a),!0===u&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){let n=document.cookie.match(RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function buildFullPath(t,n){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)?n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t:n}var Z=K.isStandardBrowserEnv?function(){let t;let n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function resolveURL(t){let o=t;return n&&(i.setAttribute("href",o),o=i.href),i.setAttribute("href",o),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return t=resolveURL(window.location.href),function(n){let i=M.isString(n)?resolveURL(n):n;return i.protocol===t.protocol&&i.host===t.host}}():function(){return!0},helpers_speedometer=function(t,n){let i;t=t||10;let o=Array(t),a=Array(t),u=0,c=0;return n=void 0!==n?n:1e3,function(f){let p=Date.now(),y=a[c];i||(i=p),o[u]=f,a[u]=p;let m=c,v=0;for(;m!==u;)v+=o[m++],m%=t;if((u=(u+1)%t)===c&&(c=(c+1)%t),p-i{let u=a.loaded,c=a.lengthComputable?a.total:void 0,f=u-i,p=o(f),y=u<=c;i=u;let m={loaded:u,total:c,progress:c?u/c:void 0,bytes:f,rate:p||void 0,estimated:p&&c&&y?(c-u)/p:void 0,event:a};m[n?"download":"upload"]=!0,t(m)}}let ee="undefined"!=typeof XMLHttpRequest;var et=ee&&function(t){return new Promise(function(n,i){let o,a,u=t.data,c=AxiosHeaders.from(t.headers).normalize(),f=t.responseType;function done(){t.cancelToken&&t.cancelToken.unsubscribe(o),t.signal&&t.signal.removeEventListener("abort",o)}M.isFormData(u)&&(K.isStandardBrowserEnv||K.isStandardBrowserWebWorkerEnv?c.setContentType(!1):c.getContentType(/^\s*multipart\/form-data/)?M.isString(a=c.getContentType())&&c.setContentType(a.replace(/^\s*(multipart\/form-data);+/,"$1")):c.setContentType("multipart/form-data"));let p=new XMLHttpRequest;if(t.auth){let n=t.auth.username||"",i=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";c.set("Authorization","Basic "+btoa(n+":"+i))}let y=buildFullPath(t.baseURL,t.url);function onloadend(){if(!p)return;let o=AxiosHeaders.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),a=f&&"text"!==f&&"json"!==f?p.response:p.responseText,u={data:a,status:p.status,statusText:p.statusText,headers:o,config:t,request:p};!function(t,n,i){let o=i.config.validateStatus;!i.status||!o||o(i.status)?t(i):n(new AxiosError("Request failed with status code "+i.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}(function(t){n(t),done()},function(t){i(t),done()},u),p=null}if(p.open(t.method.toUpperCase(),buildURL(y,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,"onloadend"in p?p.onloadend=onloadend:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(onloadend)},p.onabort=function(){p&&(i(new AxiosError("Request aborted",AxiosError.ECONNABORTED,t,p)),p=null)},p.onerror=function(){i(new AxiosError("Network Error",AxiosError.ERR_NETWORK,t,p)),p=null},p.ontimeout=function(){let n=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",o=t.transitional||q;t.timeoutErrorMessage&&(n=t.timeoutErrorMessage),i(new AxiosError(n,o.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,t,p)),p=null},K.isStandardBrowserEnv){let n=(t.withCredentials||Z(y))&&t.xsrfCookieName&&J.read(t.xsrfCookieName);n&&c.set(t.xsrfHeaderName,n)}void 0===u&&c.setContentType(null),"setRequestHeader"in p&&M.forEach(c.toJSON(),function(t,n){p.setRequestHeader(n,t)}),M.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),f&&"json"!==f&&(p.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",progressEventReducer(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",progressEventReducer(t.onUploadProgress)),(t.cancelToken||t.signal)&&(o=n=>{p&&(i(!n||n.type?new CanceledError(null,t,p):n),p.abort(),p=null)},t.cancelToken&&t.cancelToken.subscribe(o),t.signal&&(t.signal.aborted?o():t.signal.addEventListener("abort",o)));let m=function(t){let n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}(y);if(m&&-1===K.protocols.indexOf(m)){i(new AxiosError("Unsupported protocol "+m+":",AxiosError.ERR_BAD_REQUEST,t));return}p.send(u||null)})};let er={http:null,xhr:et};M.forEach(er,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch(t){}Object.defineProperty(t,"adapterName",{value:n})}});let renderReason=t=>`- ${t}`,isResolvedHandle=t=>M.isFunction(t)||null===t||!1===t;var en={getAdapter:t=>{let n,i;t=M.isArray(t)?t:[t];let{length:o}=t,a={};for(let u=0;u`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")),n=o?t.length>1?"since :\n"+t.map(renderReason).join("\n"):" "+renderReason(t[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return i},adapters:er};function throwIfCancellationRequested(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new CanceledError(null,t)}function dispatchRequest(t){throwIfCancellationRequested(t),t.headers=AxiosHeaders.from(t.headers),t.data=transformData.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);let n=en.getAdapter(t.adapter||W.adapter);return n(t).then(function(n){return throwIfCancellationRequested(t),n.data=transformData.call(t,t.transformResponse,n),n.headers=AxiosHeaders.from(n.headers),n},function(n){return!isCancel(n)&&(throwIfCancellationRequested(t),n&&n.response&&(n.response.data=transformData.call(t,t.transformResponse,n.response),n.response.headers=AxiosHeaders.from(n.response.headers))),Promise.reject(n)})}let headersToObject=t=>t instanceof AxiosHeaders?t.toJSON():t;function mergeConfig(t,n){n=n||{};let i={};function getMergedValue(t,n,i){return M.isPlainObject(t)&&M.isPlainObject(n)?M.merge.call({caseless:i},t,n):M.isPlainObject(n)?M.merge({},n):M.isArray(n)?n.slice():n}function mergeDeepProperties(t,n,i){return M.isUndefined(n)?M.isUndefined(t)?void 0:getMergedValue(void 0,t,i):getMergedValue(t,n,i)}function valueFromConfig2(t,n){if(!M.isUndefined(n))return getMergedValue(void 0,n)}function defaultToConfig2(t,n){return M.isUndefined(n)?M.isUndefined(t)?void 0:getMergedValue(void 0,t):getMergedValue(void 0,n)}function mergeDirectKeys(i,o,a){return a in n?getMergedValue(i,o):a in t?getMergedValue(void 0,i):void 0}let o={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(t,n)=>mergeDeepProperties(headersToObject(t),headersToObject(n),!0)};return M.forEach(Object.keys(Object.assign({},t,n)),function(a){let u=o[a]||mergeDeepProperties,c=u(t[a],n[a],a);M.isUndefined(c)&&u!==mergeDirectKeys||(i[a]=c)}),i}let ei="1.5.1",eo={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{eo[t]=function(i){return typeof i===t||"a"+(n<1?"n ":" ")+t}});let ea={};eo.transitional=function(t,n,i){function formatMessage(t,n){return"[Axios v"+ei+"] Transitional option '"+t+"'"+n+(i?". "+i:"")}return(i,o,a)=>{if(!1===t)throw new AxiosError(formatMessage(o," has been removed"+(n?" in "+n:"")),AxiosError.ERR_DEPRECATED);return n&&!ea[o]&&(ea[o]=!0,console.warn(formatMessage(o," has been deprecated since v"+n+" and will be removed in the near future"))),!t||t(i,o,a)}};var es={assertOptions:function(t,n,i){if("object"!=typeof t)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);let o=Object.keys(t),a=o.length;for(;a-- >0;){let u=o[a],c=n[u];if(c){let n=t[u],i=void 0===n||c(n,u,t);if(!0!==i)throw new AxiosError("option "+u+" must be "+i,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(!0!==i)throw new AxiosError("Unknown option "+u,AxiosError.ERR_BAD_OPTION)}},validators:eo};let eu=es.validators;let Axios=class Axios{constructor(t){this.defaults=t,this.interceptors={request:new B,response:new B}}request(t,n){let i,o;"string"==typeof t?(n=n||{}).url=t:n=t||{},n=mergeConfig(this.defaults,n);let{transitional:a,paramsSerializer:u,headers:c}=n;void 0!==a&&es.assertOptions(a,{silentJSONParsing:eu.transitional(eu.boolean),forcedJSONParsing:eu.transitional(eu.boolean),clarifyTimeoutError:eu.transitional(eu.boolean)},!1),null!=u&&(M.isFunction(u)?n.paramsSerializer={serialize:u}:es.assertOptions(u,{encode:eu.function,serialize:eu.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let f=c&&M.merge(c.common,c[n.method]);c&&M.forEach(["delete","get","head","post","put","patch","common"],t=>{delete c[t]}),n.headers=AxiosHeaders.concat(f,c);let p=[],y=!0;this.interceptors.request.forEach(function(t){("function"!=typeof t.runWhen||!1!==t.runWhen(n))&&(y=y&&t.synchronous,p.unshift(t.fulfilled,t.rejected))});let m=[];this.interceptors.response.forEach(function(t){m.push(t.fulfilled,t.rejected)});let v=0;if(!y){let t=[dispatchRequest.bind(this),void 0];for(t.unshift.apply(t,p),t.push.apply(t,m),o=t.length,i=Promise.resolve(n);v{if(!i._listeners)return;let n=i._listeners.length;for(;n-- >0;)i._listeners[n](t);i._listeners=null}),this.promise.then=t=>{let n;let o=new Promise(t=>{i.subscribe(t),n=t}).then(t);return o.cancel=function(){i.unsubscribe(n)},o},t(function(t,o,a){i.reason||(i.reason=new CanceledError(t,o,a),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let n=this._listeners.indexOf(t);-1!==n&&this._listeners.splice(n,1)}static source(){let t;let n=new CancelToken(function(n){t=n});return{token:n,cancel:t}}};let ec={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ec).forEach(([t,n])=>{ec[n]=t});let el=function createInstance(t){let n=new Axios(t),i=bind(Axios.prototype.request,n);return M.extend(i,Axios.prototype,n,{allOwnKeys:!0}),M.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return createInstance(mergeConfig(t,n))},i}(W);el.Axios=Axios,el.CanceledError=CanceledError,el.CancelToken=CancelToken,el.isCancel=isCancel,el.VERSION=ei,el.toFormData=helpers_toFormData,el.AxiosError=AxiosError,el.Cancel=el.CanceledError,el.all=function(t){return Promise.all(t)},el.spread=function(t){return function(n){return t.apply(null,n)}},el.isAxiosError=function(t){return M.isObject(t)&&!0===t.isAxiosError},el.mergeConfig=mergeConfig,el.AxiosHeaders=AxiosHeaders,el.formToJSON=t=>helpers_formDataToJSON(M.isHTMLForm(t)?new FormData(t):t),el.getAdapter=en.getAdapter,el.HttpStatusCode=ec,el.default=el;var ef=el},13646:function(t,n,i){"use strict";let o;i.r(n),i.d(n,{BREAK:function(){return eo.$_},BreakingChangeType:function(){return v},DEFAULT_DEPRECATION_REASON:function(){return B},DangerousChangeType:function(){return g},DirectiveLocation:function(){return k.B},ExecutableDefinitionsRule:function(){return ExecutableDefinitionsRule},FieldsOnCorrectTypeRule:function(){return FieldsOnCorrectTypeRule},FragmentsOnCompositeTypesRule:function(){return FragmentsOnCompositeTypesRule},GRAPHQL_MAX_INT:function(){return C},GRAPHQL_MIN_INT:function(){return D},GraphQLBoolean:function(){return P},GraphQLDeprecatedDirective:function(){return q},GraphQLDirective:function(){return GraphQLDirective},GraphQLEnumType:function(){return GraphQLEnumType},GraphQLError:function(){return E.__},GraphQLFloat:function(){return F},GraphQLID:function(){return x},GraphQLIncludeDirective:function(){return U},GraphQLInputObjectType:function(){return GraphQLInputObjectType},GraphQLInt:function(){return L},GraphQLInterfaceType:function(){return GraphQLInterfaceType},GraphQLList:function(){return GraphQLList},GraphQLNonNull:function(){return GraphQLNonNull},GraphQLObjectType:function(){return GraphQLObjectType},GraphQLScalarType:function(){return GraphQLScalarType},GraphQLSchema:function(){return GraphQLSchema},GraphQLSkipDirective:function(){return V},GraphQLSpecifiedByDirective:function(){return Q},GraphQLString:function(){return M},GraphQLUnionType:function(){return GraphQLUnionType},Kind:function(){return w.h},KnownArgumentNamesRule:function(){return KnownArgumentNamesRule},KnownDirectivesRule:function(){return KnownDirectivesRule},KnownFragmentNamesRule:function(){return KnownFragmentNamesRule},KnownTypeNamesRule:function(){return KnownTypeNamesRule},Lexer:function(){return ey.h},Location:function(){return S.Ye},LoneAnonymousOperationRule:function(){return LoneAnonymousOperationRule},LoneSchemaDefinitionRule:function(){return LoneSchemaDefinitionRule},NoDeprecatedCustomRule:function(){return NoDeprecatedCustomRule},NoFragmentCyclesRule:function(){return NoFragmentCyclesRule},NoSchemaIntrospectionCustomRule:function(){return NoSchemaIntrospectionCustomRule},NoUndefinedVariablesRule:function(){return NoUndefinedVariablesRule},NoUnusedFragmentsRule:function(){return NoUnusedFragmentsRule},NoUnusedVariablesRule:function(){return NoUnusedVariablesRule},OperationTypeNode:function(){return S.ku},OverlappingFieldsCanBeMergedRule:function(){return OverlappingFieldsCanBeMergedRule},PossibleFragmentSpreadsRule:function(){return PossibleFragmentSpreadsRule},PossibleTypeExtensionsRule:function(){return PossibleTypeExtensionsRule},ProvidedRequiredArgumentsRule:function(){return ProvidedRequiredArgumentsRule},ScalarLeafsRule:function(){return ScalarLeafsRule},SchemaMetaFieldDef:function(){return et},SingleFieldSubscriptionsRule:function(){return SingleFieldSubscriptionsRule},Source:function(){return ep.H},Token:function(){return S.WU},TokenKind:function(){return em.T},TypeInfo:function(){return TypeInfo},TypeKind:function(){return m},TypeMetaFieldDef:function(){return er},TypeNameMetaFieldDef:function(){return en},UniqueArgumentDefinitionNamesRule:function(){return UniqueArgumentDefinitionNamesRule},UniqueArgumentNamesRule:function(){return UniqueArgumentNamesRule},UniqueDirectiveNamesRule:function(){return UniqueDirectiveNamesRule},UniqueDirectivesPerLocationRule:function(){return UniqueDirectivesPerLocationRule},UniqueEnumValueNamesRule:function(){return UniqueEnumValueNamesRule},UniqueFieldDefinitionNamesRule:function(){return UniqueFieldDefinitionNamesRule},UniqueFragmentNamesRule:function(){return UniqueFragmentNamesRule},UniqueInputFieldNamesRule:function(){return UniqueInputFieldNamesRule},UniqueOperationNamesRule:function(){return UniqueOperationNamesRule},UniqueOperationTypesRule:function(){return UniqueOperationTypesRule},UniqueTypeNamesRule:function(){return UniqueTypeNamesRule},UniqueVariableNamesRule:function(){return UniqueVariableNamesRule},ValidationContext:function(){return ValidationContext},ValuesOfCorrectTypeRule:function(){return ValuesOfCorrectTypeRule},VariablesAreInputTypesRule:function(){return VariablesAreInputTypesRule},VariablesInAllowedPositionRule:function(){return VariablesInAllowedPositionRule},__Directive:function(){return K},__DirectiveLocation:function(){return W},__EnumValue:function(){return Z},__Field:function(){return X},__InputValue:function(){return J},__Schema:function(){return z},__Type:function(){return Y},__TypeKind:function(){return ee},assertAbstractType:function(){return assertAbstractType},assertCompositeType:function(){return assertCompositeType},assertDirective:function(){return assertDirective},assertEnumType:function(){return assertEnumType},assertEnumValueName:function(){return assertEnumValueName},assertInputObjectType:function(){return assertInputObjectType},assertInputType:function(){return assertInputType},assertInterfaceType:function(){return assertInterfaceType},assertLeafType:function(){return assertLeafType},assertListType:function(){return assertListType},assertName:function(){return assertName},assertNamedType:function(){return assertNamedType},assertNonNullType:function(){return assertNonNullType},assertNullableType:function(){return assertNullableType},assertObjectType:function(){return assertObjectType},assertOutputType:function(){return assertOutputType},assertScalarType:function(){return assertScalarType},assertSchema:function(){return assertSchema},assertType:function(){return assertType},assertUnionType:function(){return assertUnionType},assertValidName:function(){return assertValidName},assertValidSchema:function(){return assertValidSchema},assertWrappingType:function(){return assertWrappingType},astFromValue:function(){return astFromValue},buildASTSchema:function(){return buildASTSchema},buildClientSchema:function(){return buildClientSchema},buildSchema:function(){return buildSchema},coerceInputValue:function(){return coerceInputValue},concatAST:function(){return concatAST},createSourceEventStream:function(){return createSourceEventStream},defaultFieldResolver:function(){return defaultFieldResolver},defaultTypeResolver:function(){return defaultTypeResolver},doTypesOverlap:function(){return doTypesOverlap},execute:function(){return execute},executeSync:function(){return executeSync},extendSchema:function(){return extendSchema},findBreakingChanges:function(){return findBreakingChanges},findDangerousChanges:function(){return findDangerousChanges},formatError:function(){return E.Z},getArgumentValues:function(){return getArgumentValues},getDirectiveValues:function(){return getDirectiveValues},getEnterLeaveForKind:function(){return eo.Eu},getIntrospectionQuery:function(){return getIntrospectionQuery},getLocation:function(){return eh.k},getNamedType:function(){return getNamedType},getNullableType:function(){return getNullableType},getOperationAST:function(){return getOperationAST},getOperationRootType:function(){return getOperationRootType},getVariableValues:function(){return getVariableValues},getVisitFn:function(){return eo.CK},graphql:function(){return graphql},graphqlSync:function(){return graphqlSync},introspectionFromSchema:function(){return introspectionFromSchema},introspectionTypes:function(){return ei},isAbstractType:function(){return isAbstractType},isCompositeType:function(){return isCompositeType},isConstValueNode:function(){return ea.Of},isDefinitionNode:function(){return ea.Ir},isDirective:function(){return isDirective},isEnumType:function(){return isEnumType},isEqualType:function(){return isEqualType},isExecutableDefinitionNode:function(){return ea.Wk},isInputObjectType:function(){return isInputObjectType},isInputType:function(){return isInputType},isInterfaceType:function(){return isInterfaceType},isIntrospectionType:function(){return isIntrospectionType},isLeafType:function(){return isLeafType},isListType:function(){return isListType},isNamedType:function(){return isNamedType},isNonNullType:function(){return isNonNullType},isNullableType:function(){return isNullableType},isObjectType:function(){return isObjectType},isOutputType:function(){return isOutputType},isRequiredArgument:function(){return isRequiredArgument},isRequiredInputField:function(){return isRequiredInputField},isScalarType:function(){return isScalarType},isSchema:function(){return isSchema},isSelectionNode:function(){return ea.pO},isSpecifiedDirective:function(){return isSpecifiedDirective},isSpecifiedScalarType:function(){return isSpecifiedScalarType},isType:function(){return isType},isTypeDefinitionNode:function(){return ea.zT},isTypeExtensionNode:function(){return ea.D$},isTypeNode:function(){return ea.VB},isTypeSubTypeOf:function(){return isTypeSubTypeOf},isTypeSystemDefinitionNode:function(){return ea.G4},isTypeSystemExtensionNode:function(){return ea.aU},isUnionType:function(){return isUnionType},isValidNameError:function(){return isValidNameError},isValueNode:function(){return ea.nr},isWrappingType:function(){return isWrappingType},lexicographicSortSchema:function(){return lexicographicSortSchema},locatedError:function(){return locatedError},parse:function(){return T.Qc},parseConstValue:function(){return T.tl},parseType:function(){return T.gZ},parseValue:function(){return T.H2},print:function(){return A.print},printError:function(){return E.OS},printIntrospectionSchema:function(){return printIntrospectionSchema},printLocation:function(){return ed.Q},printSchema:function(){return printSchema},printSourceLocation:function(){return ed.z},printType:function(){return printType},resolveObjMapThunk:function(){return resolveObjMapThunk},resolveReadonlyArrayThunk:function(){return resolveReadonlyArrayThunk},responsePathAsArray:function(){return pathToArray},separateOperations:function(){return separateOperations},specifiedDirectives:function(){return G},specifiedRules:function(){return ec},specifiedScalarTypes:function(){return j},stripIgnoredCharacters:function(){return stripIgnoredCharacters},subscribe:function(){return subscribe},syntaxError:function(){return ev.h},typeFromAST:function(){return typeFromAST},validate:function(){return validate},validateSchema:function(){return validateSchema},valueFromAST:function(){return valueFromAST},valueFromASTUntyped:function(){return valueFromASTUntyped},version:function(){return a},versionInfo:function(){return u},visit:function(){return eo.Vn},visitInParallel:function(){return eo.j1},visitWithTypeInfo:function(){return visitWithTypeInfo}});let a="16.8.1",u=Object.freeze({major:16,minor:8,patch:1,preReleaseTag:null});var c,f,p,y,m,v,g,b=i(37826);function isPromise(t){return"function"==typeof(null==t?void 0:t.then)}var T=i(84275),_=i(25821),E=i(28087),S=i(72380);function didYouMean(t,n){let[i,o]=n?[t,n]:[void 0,t],a=" Did you mean ";i&&(a+=i+" ");let u=o.map(t=>`"${t}"`);switch(u.length){case 0:return"";case 1:return a+u[0]+"?";case 2:return a+u[0]+" or "+u[1]+"?"}let c=u.slice(0,5),f=c.pop();return a+c.join(", ")+", or "+f+"?"}function identityFunc(t){return t}var I=i(8306),O=i(88495);function keyMap(t,n){let i=Object.create(null);for(let o of t)i[n(o)]=o;return i}function keyValMap(t,n,i){let o=Object.create(null);for(let a of t)o[n(a)]=i(a);return o}function mapValue(t,n){let i=Object.create(null);for(let o of Object.keys(t))i[o]=n(t[o],o);return i}function naturalCompare(t,n){let i=0,o=0;for(;i0);let f=0;do++o,f=10*f+u-N,u=n.charCodeAt(o);while(isDigit(u)&&f>0);if(cf)return 1}else{if(au)return 1;++i,++o}}return t.length-n.length}let N=48;function isDigit(t){return!isNaN(t)&&N<=t&&t<=57}function suggestionList(t,n){let i=Object.create(null),o=new LexicalDistance(t),a=Math.floor(.4*t.length)+1;for(let t of n){let n=o.measure(t,a);void 0!==n&&(i[t]=n)}return Object.keys(i).sort((t,n)=>{let o=i[t]-i[n];return 0!==o?o:naturalCompare(t,n)})}let LexicalDistance=class LexicalDistance{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=stringToArray(this._inputLowerCase),this._rows=[Array(t.length+1).fill(0),Array(t.length+1).fill(0),Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;let i=t.toLowerCase();if(this._inputLowerCase===i)return 1;let o=stringToArray(i),a=this._inputArray;if(o.lengthn)return;let f=this._rows;for(let t=0;t<=c;t++)f[0][t]=t;for(let t=1;t<=u;t++){let i=f[(t-1)%3],u=f[t%3],p=u[0]=t;for(let n=1;n<=c;n++){let c=o[t-1]===a[n-1]?0:1,y=Math.min(i[n]+1,u[n-1]+1,i[n-1]+c);if(t>1&&n>1&&o[t-1]===a[n-2]&&o[t-2]===a[n-1]){let i=f[(t-2)%3][n-2];y=Math.min(y,i+1)}yn)return}let p=f[u%3][c];return p<=n?p:void 0}};function stringToArray(t){let n=t.length,i=Array(n);for(let o=0;ovalueFromASTUntyped(t,n));case w.h.OBJECT:return keyValMap(t.fields,t=>t.name.value,t=>valueFromASTUntyped(t.value,n));case w.h.VARIABLE:return null==n?void 0:n[t.name.value]}}var R=i(68297);function assertName(t){if(null!=t||(0,b.a)(!1,"Must provide name."),"string"==typeof t||(0,b.a)(!1,"Expected name to be a string."),0===t.length)throw new E.__("Expected name to be a non-empty string.");for(let n=1;nu(valueFromASTUntyped(t,n)),this.extensions=toObjMap(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(a=t.extensionASTNodes)&&void 0!==a?a:[],null==t.specifiedByURL||"string"==typeof t.specifiedByURL||(0,b.a)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,_.X)(t.specifiedByURL)}.`),null==t.serialize||"function"==typeof t.serialize||(0,b.a)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&("function"==typeof t.parseValue&&"function"==typeof t.parseLiteral||(0,b.a)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};let GraphQLObjectType=class GraphQLObjectType{constructor(t){var n;this.name=assertName(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=toObjMap(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(n=t.extensionASTNodes)&&void 0!==n?n:[],this._fields=()=>defineFieldMap(t),this._interfaces=()=>defineInterfaces(t),null==t.isTypeOf||"function"==typeof t.isTypeOf||(0,b.a)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,_.X)(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function defineInterfaces(t){var n;let i=resolveReadonlyArrayThunk(null!==(n=t.interfaces)&&void 0!==n?n:[]);return Array.isArray(i)||(0,b.a)(!1,`${t.name} interfaces must be an Array or a function which returns an Array.`),i}function defineFieldMap(t){let n=resolveObjMapThunk(t.fields);return isPlainObj(n)||(0,b.a)(!1,`${t.name} fields must be an object with field names as keys or a function which returns such an object.`),mapValue(n,(n,i)=>{var o;isPlainObj(n)||(0,b.a)(!1,`${t.name}.${i} field config must be an object.`),null==n.resolve||"function"==typeof n.resolve||(0,b.a)(!1,`${t.name}.${i} field resolver must be a function if provided, but got: ${(0,_.X)(n.resolve)}.`);let a=null!==(o=n.args)&&void 0!==o?o:{};return isPlainObj(a)||(0,b.a)(!1,`${t.name}.${i} args must be an object with argument names as keys.`),{name:assertName(i),description:n.description,type:n.type,args:defineArguments(a),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:toObjMap(n.extensions),astNode:n.astNode}})}function defineArguments(t){return Object.entries(t).map(([t,n])=>({name:assertName(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:toObjMap(n.extensions),astNode:n.astNode}))}function isPlainObj(t){return(0,O.y)(t)&&!Array.isArray(t)}function fieldsToFieldsConfig(t){return mapValue(t,t=>({description:t.description,type:t.type,args:argsToArgsConfig(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function argsToArgsConfig(t){return keyValMap(t,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function isRequiredArgument(t){return isNonNullType(t.type)&&void 0===t.defaultValue}let GraphQLInterfaceType=class GraphQLInterfaceType{constructor(t){var n;this.name=assertName(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=toObjMap(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(n=t.extensionASTNodes)&&void 0!==n?n:[],this._fields=defineFieldMap.bind(void 0,t),this._interfaces=defineInterfaces.bind(void 0,t),null==t.resolveType||"function"==typeof t.resolveType||(0,b.a)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,_.X)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};let GraphQLUnionType=class GraphQLUnionType{constructor(t){var n;this.name=assertName(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=toObjMap(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(n=t.extensionASTNodes)&&void 0!==n?n:[],this._types=defineTypes.bind(void 0,t),null==t.resolveType||"function"==typeof t.resolveType||(0,b.a)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,_.X)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function defineTypes(t){let n=resolveReadonlyArrayThunk(t.types);return Array.isArray(n)||(0,b.a)(!1,`Must provide Array of types or a function which returns such an array for Union ${t.name}.`),n}let GraphQLEnumType=class GraphQLEnumType{constructor(t){var n,i,o;this.name=assertName(t.name),this.description=t.description,this.extensions=toObjMap(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(n=t.extensionASTNodes)&&void 0!==n?n:[],this._values=(i=this.name,isPlainObj(o=t.values)||(0,b.a)(!1,`${i} values must be an object with value names as keys.`),Object.entries(o).map(([t,n])=>(isPlainObj(n)||(0,b.a)(!1,`${i}.${t} must refer to an object with a "value" key representing an internal value but got: ${(0,_.X)(n)}.`),{name:assertEnumValueName(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:toObjMap(n.extensions),astNode:n.astNode}))),this._valueLookup=new Map(this._values.map(t=>[t.value,t])),this._nameLookup=keyMap(this._values,t=>t.name)}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(t){return this._nameLookup[t]}serialize(t){let n=this._valueLookup.get(t);if(void 0===n)throw new E.__(`Enum "${this.name}" cannot represent value: ${(0,_.X)(t)}`);return n.name}parseValue(t){if("string"!=typeof t){let n=(0,_.X)(t);throw new E.__(`Enum "${this.name}" cannot represent non-string value: ${n}.`+didYouMeanEnumValue(this,n))}let n=this.getValue(t);if(null==n)throw new E.__(`Value "${t}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,t));return n.value}parseLiteral(t,n){if(t.kind!==w.h.ENUM){let n=(0,A.print)(t);throw new E.__(`Enum "${this.name}" cannot represent non-enum value: ${n}.`+didYouMeanEnumValue(this,n),{nodes:t})}let i=this.getValue(t.value);if(null==i){let n=(0,A.print)(t);throw new E.__(`Value "${n}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,n),{nodes:t})}return i.value}toConfig(){let t=keyValMap(this.getValues(),t=>t.name,t=>({description:t.description,value:t.value,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function didYouMeanEnumValue(t,n){let i=t.getValues().map(t=>t.name),o=suggestionList(n,i);return didYouMean("the enum value",o)}let GraphQLInputObjectType=class GraphQLInputObjectType{constructor(t){var n;this.name=assertName(t.name),this.description=t.description,this.extensions=toObjMap(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(n=t.extensionASTNodes)&&void 0!==n?n:[],this._fields=defineInputFieldMap.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){let t=mapValue(this.getFields(),t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function defineInputFieldMap(t){let n=resolveObjMapThunk(t.fields);return isPlainObj(n)||(0,b.a)(!1,`${t.name} fields must be an object with field names as keys or a function which returns such an object.`),mapValue(n,(n,i)=>("resolve"in n&&(0,b.a)(!1,`${t.name}.${i} field has a resolve property, but Input Types cannot define resolvers.`),{name:assertName(i),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:toObjMap(n.extensions),astNode:n.astNode}))}function isRequiredInputField(t){return isNonNullType(t.type)&&void 0===t.defaultValue}function isEqualType(t,n){return t===n||!!(isNonNullType(t)&&isNonNullType(n)||isListType(t)&&isListType(n))&&isEqualType(t.ofType,n.ofType)}function isTypeSubTypeOf(t,n,i){return n===i||(isNonNullType(i)?!!isNonNullType(n)&&isTypeSubTypeOf(t,n.ofType,i.ofType):isNonNullType(n)?isTypeSubTypeOf(t,n.ofType,i):isListType(i)?!!isListType(n)&&isTypeSubTypeOf(t,n.ofType,i.ofType):!isListType(n)&&isAbstractType(i)&&(isInterfaceType(n)||isObjectType(n))&&t.isSubType(i,n))}function doTypesOverlap(t,n,i){return n===i||(isAbstractType(n)?isAbstractType(i)?t.getPossibleTypes(n).some(n=>t.isSubType(i,n)):t.isSubType(n,i):!!isAbstractType(i)&&t.isSubType(i,n))}var k=i(99878);let C=2147483647,D=-2147483648,L=new GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(t){let n=serializeObject(t);if("boolean"==typeof n)return n?1:0;let i=n;if("string"==typeof n&&""!==n&&(i=Number(n)),"number"!=typeof i||!Number.isInteger(i))throw new E.__(`Int cannot represent non-integer value: ${(0,_.X)(n)}`);if(i>C||iC||tC||nt.name===n)}function serializeObject(t){if((0,O.y)(t)){if("function"==typeof t.valueOf){let n=t.valueOf();if(!(0,O.y)(n))return n}if("function"==typeof t.toJSON)return t.toJSON()}return t}function isDirective(t){return(0,I.n)(t,GraphQLDirective)}function assertDirective(t){if(!isDirective(t))throw Error(`Expected ${(0,_.X)(t)} to be a GraphQL directive.`);return t}let GraphQLDirective=class GraphQLDirective{constructor(t){var n,i;this.name=assertName(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=null!==(n=t.isRepeatable)&&void 0!==n&&n,this.extensions=toObjMap(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,b.a)(!1,`@${t.name} locations must be an Array.`);let o=null!==(i=t.args)&&void 0!==i?i:{};(0,O.y)(o)&&!Array.isArray(o)||(0,b.a)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=defineArguments(o)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:argsToArgsConfig(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};let U=new GraphQLDirective({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[k.B.FIELD,k.B.FRAGMENT_SPREAD,k.B.INLINE_FRAGMENT],args:{if:{type:new GraphQLNonNull(P),description:"Included when true."}}}),V=new GraphQLDirective({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[k.B.FIELD,k.B.FRAGMENT_SPREAD,k.B.INLINE_FRAGMENT],args:{if:{type:new GraphQLNonNull(P),description:"Skipped when true."}}}),B="No longer supported",q=new GraphQLDirective({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[k.B.FIELD_DEFINITION,k.B.ARGUMENT_DEFINITION,k.B.INPUT_FIELD_DEFINITION,k.B.ENUM_VALUE],args:{reason:{type:M,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:B}}}),Q=new GraphQLDirective({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[k.B.SCALAR],args:{url:{type:new GraphQLNonNull(M),description:"The URL that specifies the behavior of this scalar."}}}),G=Object.freeze([U,V,q,Q]);function isSpecifiedDirective(t){return G.some(({name:n})=>n===t.name)}var H=i(29551);function isIterableObject(t){return"object"==typeof t&&"function"==typeof(null==t?void 0:t[Symbol.iterator])}function astFromValue(t,n){if(isNonNullType(n)){let i=astFromValue(t,n.ofType);return(null==i?void 0:i.kind)===w.h.NULL?null:i}if(null===t)return{kind:w.h.NULL};if(void 0===t)return null;if(isListType(n)){let i=n.ofType;if(isIterableObject(t)){let n=[];for(let o of t){let t=astFromValue(o,i);null!=t&&n.push(t)}return{kind:w.h.LIST,values:n}}return astFromValue(t,i)}if(isInputObjectType(n)){if(!(0,O.y)(t))return null;let i=[];for(let o of Object.values(n.getFields())){let n=astFromValue(t[o.name],o.type);n&&i.push({kind:w.h.OBJECT_FIELD,name:{kind:w.h.NAME,value:o.name},value:n})}return{kind:w.h.OBJECT,fields:i}}if(isLeafType(n)){let i=n.serialize(t);if(null==i)return null;if("boolean"==typeof i)return{kind:w.h.BOOLEAN,value:i};if("number"==typeof i&&Number.isFinite(i)){let t=String(i);return $.test(t)?{kind:w.h.INT,value:t}:{kind:w.h.FLOAT,value:t}}if("string"==typeof i)return isEnumType(n)?{kind:w.h.ENUM,value:i}:n===x&&$.test(i)?{kind:w.h.INT,value:i}:{kind:w.h.STRING,value:i};throw TypeError(`Cannot convert value to AST: ${(0,_.X)(i)}.`)}(0,H.k)(!1,"Unexpected input type: "+(0,_.X)(n))}let $=/^-?(?:0|[1-9][0-9]*)$/,z=new GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:M,resolve:t=>t.description},types:{description:"A list of all types supported by this server.",type:new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(Y))),resolve:t=>Object.values(t.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new GraphQLNonNull(Y),resolve:t=>t.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Y,resolve:t=>t.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Y,resolve:t=>t.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(K))),resolve:t=>t.getDirectives()}})}),K=new GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new GraphQLNonNull(M),resolve:t=>t.name},description:{type:M,resolve:t=>t.description},isRepeatable:{type:new GraphQLNonNull(P),resolve:t=>t.isRepeatable},locations:{type:new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(W))),resolve:t=>t.locations},args:{type:new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(J))),args:{includeDeprecated:{type:P,defaultValue:!1}},resolve:(t,{includeDeprecated:n})=>n?t.args:t.args.filter(t=>null==t.deprecationReason)}})}),W=new GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:k.B.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:k.B.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:k.B.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:k.B.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:k.B.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:k.B.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:k.B.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:k.B.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:k.B.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:k.B.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:k.B.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:k.B.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:k.B.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:k.B.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:k.B.UNION,description:"Location adjacent to a union definition."},ENUM:{value:k.B.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:k.B.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:k.B.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:k.B.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Y=new GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new GraphQLNonNull(ee),resolve:t=>isScalarType(t)?m.SCALAR:isObjectType(t)?m.OBJECT:isInterfaceType(t)?m.INTERFACE:isUnionType(t)?m.UNION:isEnumType(t)?m.ENUM:isInputObjectType(t)?m.INPUT_OBJECT:isListType(t)?m.LIST:isNonNullType(t)?m.NON_NULL:void(0,H.k)(!1,`Unexpected type: "${(0,_.X)(t)}".`)},name:{type:M,resolve:t=>"name"in t?t.name:void 0},description:{type:M,resolve:t=>"description"in t?t.description:void 0},specifiedByURL:{type:M,resolve:t=>"specifiedByURL"in t?t.specifiedByURL:void 0},fields:{type:new GraphQLList(new GraphQLNonNull(X)),args:{includeDeprecated:{type:P,defaultValue:!1}},resolve(t,{includeDeprecated:n}){if(isObjectType(t)||isInterfaceType(t)){let i=Object.values(t.getFields());return n?i:i.filter(t=>null==t.deprecationReason)}}},interfaces:{type:new GraphQLList(new GraphQLNonNull(Y)),resolve(t){if(isObjectType(t)||isInterfaceType(t))return t.getInterfaces()}},possibleTypes:{type:new GraphQLList(new GraphQLNonNull(Y)),resolve(t,n,i,{schema:o}){if(isAbstractType(t))return o.getPossibleTypes(t)}},enumValues:{type:new GraphQLList(new GraphQLNonNull(Z)),args:{includeDeprecated:{type:P,defaultValue:!1}},resolve(t,{includeDeprecated:n}){if(isEnumType(t)){let i=t.getValues();return n?i:i.filter(t=>null==t.deprecationReason)}}},inputFields:{type:new GraphQLList(new GraphQLNonNull(J)),args:{includeDeprecated:{type:P,defaultValue:!1}},resolve(t,{includeDeprecated:n}){if(isInputObjectType(t)){let i=Object.values(t.getFields());return n?i:i.filter(t=>null==t.deprecationReason)}}},ofType:{type:Y,resolve:t=>"ofType"in t?t.ofType:void 0}})}),X=new GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new GraphQLNonNull(M),resolve:t=>t.name},description:{type:M,resolve:t=>t.description},args:{type:new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(J))),args:{includeDeprecated:{type:P,defaultValue:!1}},resolve:(t,{includeDeprecated:n})=>n?t.args:t.args.filter(t=>null==t.deprecationReason)},type:{type:new GraphQLNonNull(Y),resolve:t=>t.type},isDeprecated:{type:new GraphQLNonNull(P),resolve:t=>null!=t.deprecationReason},deprecationReason:{type:M,resolve:t=>t.deprecationReason}})}),J=new GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new GraphQLNonNull(M),resolve:t=>t.name},description:{type:M,resolve:t=>t.description},type:{type:new GraphQLNonNull(Y),resolve:t=>t.type},defaultValue:{type:M,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(t){let{type:n,defaultValue:i}=t,o=astFromValue(i,n);return o?(0,A.print)(o):null}},isDeprecated:{type:new GraphQLNonNull(P),resolve:t=>null!=t.deprecationReason},deprecationReason:{type:M,resolve:t=>t.deprecationReason}})}),Z=new GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new GraphQLNonNull(M),resolve:t=>t.name},description:{type:M,resolve:t=>t.description},isDeprecated:{type:new GraphQLNonNull(P),resolve:t=>null!=t.deprecationReason},deprecationReason:{type:M,resolve:t=>t.deprecationReason}})});(c=m||(m={})).SCALAR="SCALAR",c.OBJECT="OBJECT",c.INTERFACE="INTERFACE",c.UNION="UNION",c.ENUM="ENUM",c.INPUT_OBJECT="INPUT_OBJECT",c.LIST="LIST",c.NON_NULL="NON_NULL";let ee=new GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:m.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:m.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:m.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:m.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:m.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:m.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:m.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:m.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),et={name:"__schema",type:new GraphQLNonNull(z),description:"Access the current type schema of this server.",args:[],resolve:(t,n,i,{schema:o})=>o,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},er={name:"__type",type:Y,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new GraphQLNonNull(M),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(t,{name:n},i,{schema:o})=>o.getType(n),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},en={name:"__typename",type:new GraphQLNonNull(M),description:"The name of the current Object type at runtime.",args:[],resolve:(t,n,i,{parentType:o})=>o.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},ei=Object.freeze([z,K,W,Y,X,J,Z,ee]);function isIntrospectionType(t){return ei.some(({name:n})=>t.name===n)}function isSchema(t){return(0,I.n)(t,GraphQLSchema)}function assertSchema(t){if(!isSchema(t))throw Error(`Expected ${(0,_.X)(t)} to be a GraphQL schema.`);return t}let GraphQLSchema=class GraphQLSchema{constructor(t){var n,i;this.__validationErrors=!0===t.assumeValid?[]:void 0,(0,O.y)(t)||(0,b.a)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,b.a)(!1,`"types" must be Array if provided but got: ${(0,_.X)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,b.a)(!1,`"directives" must be Array if provided but got: ${(0,_.X)(t.directives)}.`),this.description=t.description,this.extensions=toObjMap(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(n=t.extensionASTNodes)&&void 0!==n?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=null!==(i=t.directives)&&void 0!==i?i:G;let o=new Set(t.types);if(null!=t.types)for(let n of t.types)o.delete(n),collectReferencedTypes(n,o);for(let t of(null!=this._queryType&&collectReferencedTypes(this._queryType,o),null!=this._mutationType&&collectReferencedTypes(this._mutationType,o),null!=this._subscriptionType&&collectReferencedTypes(this._subscriptionType,o),this._directives))if(isDirective(t))for(let n of t.args)collectReferencedTypes(n.type,o);for(let t of(collectReferencedTypes(z,o),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null),o)){if(null==t)continue;let n=t.name;if(n||(0,b.a)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[n])throw Error(`Schema must contain uniquely named types but contains multiple types named "${n}".`);if(this._typeMap[n]=t,isInterfaceType(t)){for(let n of t.getInterfaces())if(isInterfaceType(n)){let i=this._implementationsMap[n.name];void 0===i&&(i=this._implementationsMap[n.name]={objects:[],interfaces:[]}),i.interfaces.push(t)}}else if(isObjectType(t)){for(let n of t.getInterfaces())if(isInterfaceType(n)){let i=this._implementationsMap[n.name];void 0===i&&(i=this._implementationsMap[n.name]={objects:[],interfaces:[]}),i.objects.push(t)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case S.ku.QUERY:return this.getQueryType();case S.ku.MUTATION:return this.getMutationType();case S.ku.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return isUnionType(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return null!=n?n:{objects:[],interfaces:[]}}isSubType(t,n){let i=this._subTypeMap[t.name];if(void 0===i){if(i=Object.create(null),isUnionType(t))for(let n of t.getTypes())i[n.name]=!0;else{let n=this.getImplementations(t);for(let t of n.objects)i[t.name]=!0;for(let t of n.interfaces)i[t.name]=!0}this._subTypeMap[t.name]=i}return void 0!==i[n.name]}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}};function collectReferencedTypes(t,n){let i=getNamedType(t);if(!n.has(i)){if(n.add(i),isUnionType(i))for(let t of i.getTypes())collectReferencedTypes(t,n);else if(isObjectType(i)||isInterfaceType(i)){for(let t of i.getInterfaces())collectReferencedTypes(t,n);for(let t of Object.values(i.getFields()))for(let i of(collectReferencedTypes(t.type,n),t.args))collectReferencedTypes(i.type,n)}else if(isInputObjectType(i))for(let t of Object.values(i.getFields()))collectReferencedTypes(t.type,n)}return n}function validateSchema(t){if(assertSchema(t),t.__validationErrors)return t.__validationErrors;let n=new SchemaValidationContext(t);(function(t){var n,i,o;let a=t.schema,u=a.getQueryType();u?isObjectType(u)||t.reportError(`Query root type must be Object type, it cannot be ${(0,_.X)(u)}.`,null!==(n=getOperationTypeNode(a,S.ku.QUERY))&&void 0!==n?n:u.astNode):t.reportError("Query root type must be provided.",a.astNode);let c=a.getMutationType();c&&!isObjectType(c)&&t.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,_.X)(c)}.`,null!==(i=getOperationTypeNode(a,S.ku.MUTATION))&&void 0!==i?i:c.astNode);let f=a.getSubscriptionType();f&&!isObjectType(f)&&t.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,_.X)(f)}.`,null!==(o=getOperationTypeNode(a,S.ku.SUBSCRIPTION))&&void 0!==o?o:f.astNode)})(n),function(t){for(let i of t.schema.getDirectives()){if(!isDirective(i)){t.reportError(`Expected directive but got: ${(0,_.X)(i)}.`,null==i?void 0:i.astNode);continue}for(let o of(validateName(t,i),i.args))if(validateName(t,o),isInputType(o.type)||t.reportError(`The type of @${i.name}(${o.name}:) must be Input Type but got: ${(0,_.X)(o.type)}.`,o.astNode),isRequiredArgument(o)&&null!=o.deprecationReason){var n;t.reportError(`Required argument @${i.name}(${o.name}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(o.astNode),null===(n=o.astNode)||void 0===n?void 0:n.type])}}}(n),function(t){let n=function(t){let n=Object.create(null),i=[],o=Object.create(null);return function detectCycleRecursive(a){if(n[a.name])return;n[a.name]=!0,o[a.name]=i.length;let u=Object.values(a.getFields());for(let n of u)if(isNonNullType(n.type)&&isInputObjectType(n.type.ofType)){let a=n.type.ofType,u=o[a.name];if(i.push(n),void 0===u)detectCycleRecursive(a);else{let n=i.slice(u),o=n.map(t=>t.name).join(".");t.reportError(`Cannot reference Input Object "${a.name}" within itself through a series of non-null fields: "${o}".`,n.map(t=>t.astNode))}i.pop()}o[a.name]=void 0}}(t),i=t.schema.getTypeMap();for(let o of Object.values(i)){if(!isNamedType(o)){t.reportError(`Expected GraphQL named type but got: ${(0,_.X)(o)}.`,o.astNode);continue}isIntrospectionType(o)||validateName(t,o),isObjectType(o)?(validateFields(t,o),validateInterfaces(t,o)):isInterfaceType(o)?(validateFields(t,o),validateInterfaces(t,o)):isUnionType(o)?function(t,n){let i=n.getTypes();0===i.length&&t.reportError(`Union type ${n.name} must define one or more member types.`,[n.astNode,...n.extensionASTNodes]);let o=Object.create(null);for(let a of i){if(o[a.name]){t.reportError(`Union type ${n.name} can only include type ${a.name} once.`,getUnionMemberTypeNodes(n,a.name));continue}o[a.name]=!0,isObjectType(a)||t.reportError(`Union type ${n.name} can only include Object types, it cannot include ${(0,_.X)(a)}.`,getUnionMemberTypeNodes(n,String(a)))}}(t,o):isEnumType(o)?function(t,n){let i=n.getValues();for(let o of(0===i.length&&t.reportError(`Enum type ${n.name} must define one or more values.`,[n.astNode,...n.extensionASTNodes]),i))validateName(t,o)}(t,o):isInputObjectType(o)&&(function(t,n){let i=Object.values(n.getFields());for(let u of(0===i.length&&t.reportError(`Input Object type ${n.name} must define one or more fields.`,[n.astNode,...n.extensionASTNodes]),i)){var o,a;validateName(t,u),isInputType(u.type)||t.reportError(`The type of ${n.name}.${u.name} must be Input Type but got: ${(0,_.X)(u.type)}.`,null===(o=u.astNode)||void 0===o?void 0:o.type),isRequiredInputField(u)&&null!=u.deprecationReason&&t.reportError(`Required input field ${n.name}.${u.name} cannot be deprecated.`,[getDeprecatedDirectiveNode(u.astNode),null===(a=u.astNode)||void 0===a?void 0:a.type])}}(t,o),n(o))}}(n);let i=n.getErrors();return t.__validationErrors=i,i}function assertValidSchema(t){let n=validateSchema(t);if(0!==n.length)throw Error(n.map(t=>t.message).join("\n\n"))}let SchemaValidationContext=class SchemaValidationContext{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let i=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new E.__(t,{nodes:i}))}getErrors(){return this._errors}};function getOperationTypeNode(t,n){var i;return null===(i=[t.astNode,...t.extensionASTNodes].flatMap(t=>{var n;return null!==(n=null==t?void 0:t.operationTypes)&&void 0!==n?n:[]}).find(t=>t.operation===n))||void 0===i?void 0:i.type}function validateName(t,n){n.name.startsWith("__")&&t.reportError(`Name "${n.name}" must not begin with "__", which is reserved by GraphQL introspection.`,n.astNode)}function validateFields(t,n){let i=Object.values(n.getFields());for(let c of(0===i.length&&t.reportError(`Type ${n.name} must define one or more fields.`,[n.astNode,...n.extensionASTNodes]),i)){var o,a,u;for(let i of(validateName(t,c),isOutputType(c.type)||t.reportError(`The type of ${n.name}.${c.name} must be Output Type but got: ${(0,_.X)(c.type)}.`,null===(o=c.astNode)||void 0===o?void 0:o.type),c.args)){let o=i.name;validateName(t,i),isInputType(i.type)||t.reportError(`The type of ${n.name}.${c.name}(${o}:) must be Input Type but got: ${(0,_.X)(i.type)}.`,null===(a=i.astNode)||void 0===a?void 0:a.type),isRequiredArgument(i)&&null!=i.deprecationReason&&t.reportError(`Required argument ${n.name}.${c.name}(${o}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(i.astNode),null===(u=i.astNode)||void 0===u?void 0:u.type])}}}function validateInterfaces(t,n){let i=Object.create(null);for(let o of n.getInterfaces()){if(!isInterfaceType(o)){t.reportError(`Type ${(0,_.X)(n)} must only implement Interface types, it cannot implement ${(0,_.X)(o)}.`,getAllImplementsInterfaceNodes(n,o));continue}if(n===o){t.reportError(`Type ${n.name} cannot implement itself because it would create a circular reference.`,getAllImplementsInterfaceNodes(n,o));continue}if(i[o.name]){t.reportError(`Type ${n.name} can only implement ${o.name} once.`,getAllImplementsInterfaceNodes(n,o));continue}i[o.name]=!0,function(t,n,i){let o=n.getInterfaces();for(let a of i.getInterfaces())o.includes(a)||t.reportError(a===n?`Type ${n.name} cannot implement ${i.name} because it would create a circular reference.`:`Type ${n.name} must implement ${a.name} because it is implemented by ${i.name}.`,[...getAllImplementsInterfaceNodes(i,a),...getAllImplementsInterfaceNodes(n,i)])}(t,n,o),function(t,n,i){let o=n.getFields();for(let p of Object.values(i.getFields())){var a,u,c,f;let y=p.name,m=o[y];if(!m){t.reportError(`Interface field ${i.name}.${y} expected but ${n.name} does not provide it.`,[p.astNode,n.astNode,...n.extensionASTNodes]);continue}for(let o of(isTypeSubTypeOf(t.schema,m.type,p.type)||t.reportError(`Interface field ${i.name}.${y} expects type ${(0,_.X)(p.type)} but ${n.name}.${y} is type ${(0,_.X)(m.type)}.`,[null===(a=p.astNode)||void 0===a?void 0:a.type,null===(u=m.astNode)||void 0===u?void 0:u.type]),p.args)){let a=o.name,u=m.args.find(t=>t.name===a);if(!u){t.reportError(`Interface field argument ${i.name}.${y}(${a}:) expected but ${n.name}.${y} does not provide it.`,[o.astNode,m.astNode]);continue}isEqualType(o.type,u.type)||t.reportError(`Interface field argument ${i.name}.${y}(${a}:) expects type ${(0,_.X)(o.type)} but ${n.name}.${y}(${a}:) is type ${(0,_.X)(u.type)}.`,[null===(c=o.astNode)||void 0===c?void 0:c.type,null===(f=u.astNode)||void 0===f?void 0:f.type])}for(let o of m.args){let a=o.name,u=p.args.find(t=>t.name===a);!u&&isRequiredArgument(o)&&t.reportError(`Object field ${n.name}.${y} includes required argument ${a} that is missing from the Interface field ${i.name}.${y}.`,[o.astNode,p.astNode])}}}(t,n,o)}}function getAllImplementsInterfaceNodes(t,n){let{astNode:i,extensionASTNodes:o}=t,a=null!=i?[i,...o]:o;return a.flatMap(t=>{var n;return null!==(n=t.interfaces)&&void 0!==n?n:[]}).filter(t=>t.name.value===n.name)}function getUnionMemberTypeNodes(t,n){let{astNode:i,extensionASTNodes:o}=t,a=null!=i?[i,...o]:o;return a.flatMap(t=>{var n;return null!==(n=t.types)&&void 0!==n?n:[]}).filter(t=>t.name.value===n)}function getDeprecatedDirectiveNode(t){var n;return null==t?void 0:null===(n=t.directives)||void 0===n?void 0:n.find(t=>t.name.value===q.name)}var eo=i(77304);function typeFromAST(t,n){switch(n.kind){case w.h.LIST_TYPE:{let i=typeFromAST(t,n.type);return i&&new GraphQLList(i)}case w.h.NON_NULL_TYPE:{let i=typeFromAST(t,n.type);return i&&new GraphQLNonNull(i)}case w.h.NAMED_TYPE:return t.getType(n.name.value)}}let TypeInfo=class TypeInfo{constructor(t,n,i){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=i?i:getFieldDef,n&&(isInputType(n)&&this._inputTypeStack.push(n),isCompositeType(n)&&this._parentTypeStack.push(n),isOutputType(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){let n=this._schema;switch(t.kind){case w.h.SELECTION_SET:{let t=getNamedType(this.getType());this._parentTypeStack.push(isCompositeType(t)?t:void 0);break}case w.h.FIELD:{let i,o;let a=this.getParentType();a&&(i=this._getFieldDef(n,a,t))&&(o=i.type),this._fieldDefStack.push(i),this._typeStack.push(isOutputType(o)?o:void 0);break}case w.h.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case w.h.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push(isObjectType(i)?i:void 0);break}case w.h.INLINE_FRAGMENT:case w.h.FRAGMENT_DEFINITION:{let i=t.typeCondition,o=i?typeFromAST(n,i):getNamedType(this.getType());this._typeStack.push(isOutputType(o)?o:void 0);break}case w.h.VARIABLE_DEFINITION:{let i=typeFromAST(n,t.type);this._inputTypeStack.push(isInputType(i)?i:void 0);break}case w.h.ARGUMENT:{var i;let n,o;let a=null!==(i=this.getDirective())&&void 0!==i?i:this.getFieldDef();a&&(n=a.args.find(n=>n.name===t.name.value))&&(o=n.type),this._argument=n,this._defaultValueStack.push(n?n.defaultValue:void 0),this._inputTypeStack.push(isInputType(o)?o:void 0);break}case w.h.LIST:{let t=getNullableType(this.getInputType()),n=isListType(t)?t.ofType:t;this._defaultValueStack.push(void 0),this._inputTypeStack.push(isInputType(n)?n:void 0);break}case w.h.OBJECT_FIELD:{let n,i;let o=getNamedType(this.getInputType());isInputObjectType(o)&&(i=o.getFields()[t.name.value])&&(n=i.type),this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(isInputType(n)?n:void 0);break}case w.h.ENUM:{let n;let i=getNamedType(this.getInputType());isEnumType(i)&&(n=i.getValue(t.value)),this._enumValue=n}}}leave(t){switch(t.kind){case w.h.SELECTION_SET:this._parentTypeStack.pop();break;case w.h.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case w.h.DIRECTIVE:this._directive=null;break;case w.h.OPERATION_DEFINITION:case w.h.INLINE_FRAGMENT:case w.h.FRAGMENT_DEFINITION:this._typeStack.pop();break;case w.h.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case w.h.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case w.h.LIST:case w.h.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case w.h.ENUM:this._enumValue=null}}};function getFieldDef(t,n,i){let o=i.name.value;return o===et.name&&t.getQueryType()===n?et:o===er.name&&t.getQueryType()===n?er:o===en.name&&isCompositeType(n)?en:isObjectType(n)||isInterfaceType(n)?n.getFields()[o]:void 0}function visitWithTypeInfo(t,n){return{enter(...i){let o=i[0];t.enter(o);let a=(0,eo.Eu)(n,o.kind).enter;if(a){let u=a.apply(n,i);return void 0!==u&&(t.leave(o),(0,S.UG)(u)&&t.enter(u)),u}},leave(...i){let o;let a=i[0],u=(0,eo.Eu)(n,a.kind).leave;return u&&(o=u.apply(n,i)),t.leave(a),o}}}var ea=i(75844);function ExecutableDefinitionsRule(t){return{Document(n){for(let i of n.definitions)if(!(0,ea.Wk)(i)){let n=i.kind===w.h.SCHEMA_DEFINITION||i.kind===w.h.SCHEMA_EXTENSION?"schema":'"'+i.name.value+'"';t.reportError(new E.__(`The ${n} definition is not executable.`,{nodes:i}))}return!1}}}function FieldsOnCorrectTypeRule(t){return{Field(n){let i=t.getParentType();if(i){let o=t.getFieldDef();if(!o){let o=t.getSchema(),a=n.name.value,u=didYouMean("to use an inline fragment on",function(t,n,i){if(!isAbstractType(n))return[];let o=new Set,a=Object.create(null);for(let c of t.getPossibleTypes(n))if(c.getFields()[i])for(let t of(o.add(c),a[c.name]=1,c.getInterfaces())){var u;t.getFields()[i]&&(o.add(t),a[t.name]=(null!==(u=a[t.name])&&void 0!==u?u:0)+1)}return[...o].sort((n,i)=>{let o=a[i.name]-a[n.name];return 0!==o?o:isInterfaceType(n)&&t.isSubType(n,i)?-1:isInterfaceType(i)&&t.isSubType(i,n)?1:naturalCompare(n.name,i.name)}).map(t=>t.name)}(o,i,a));""===u&&(u=didYouMean(function(t,n){if(isObjectType(t)||isInterfaceType(t)){let i=Object.keys(t.getFields());return suggestionList(n,i)}return[]}(i,a))),t.reportError(new E.__(`Cannot query field "${a}" on type "${i.name}".`+u,{nodes:n}))}}}}}function FragmentsOnCompositeTypesRule(t){return{InlineFragment(n){let i=n.typeCondition;if(i){let n=typeFromAST(t.getSchema(),i);if(n&&!isCompositeType(n)){let n=(0,A.print)(i);t.reportError(new E.__(`Fragment cannot condition on non composite type "${n}".`,{nodes:i}))}}},FragmentDefinition(n){let i=typeFromAST(t.getSchema(),n.typeCondition);if(i&&!isCompositeType(i)){let i=(0,A.print)(n.typeCondition);t.reportError(new E.__(`Fragment "${n.name.value}" cannot condition on non composite type "${i}".`,{nodes:n.typeCondition}))}}}}function KnownArgumentNamesRule(t){return{...KnownArgumentNamesOnDirectivesRule(t),Argument(n){let i=t.getArgument(),o=t.getFieldDef(),a=t.getParentType();if(!i&&o&&a){let i=n.name.value,u=o.args.map(t=>t.name),c=suggestionList(i,u);t.reportError(new E.__(`Unknown argument "${i}" on field "${a.name}.${o.name}".`+didYouMean(c),{nodes:n}))}}}}function KnownArgumentNamesOnDirectivesRule(t){let n=Object.create(null),i=t.getSchema(),o=i?i.getDirectives():G;for(let t of o)n[t.name]=t.args.map(t=>t.name);let a=t.getDocument().definitions;for(let t of a)if(t.kind===w.h.DIRECTIVE_DEFINITION){var u;let i=null!==(u=t.arguments)&&void 0!==u?u:[];n[t.name.value]=i.map(t=>t.name.value)}return{Directive(i){let o=i.name.value,a=n[o];if(i.arguments&&a)for(let n of i.arguments){let i=n.name.value;if(!a.includes(i)){let u=suggestionList(i,a);t.reportError(new E.__(`Unknown argument "${i}" on directive "@${o}".`+didYouMean(u),{nodes:n}))}}return!1}}}function KnownDirectivesRule(t){let n=Object.create(null),i=t.getSchema(),o=i?i.getDirectives():G;for(let t of o)n[t.name]=t.locations;let a=t.getDocument().definitions;for(let t of a)t.kind===w.h.DIRECTIVE_DEFINITION&&(n[t.name.value]=t.locations.map(t=>t.value));return{Directive(i,o,a,u,c){let f=i.name.value,p=n[f];if(!p){t.reportError(new E.__(`Unknown directive "@${f}".`,{nodes:i}));return}let y=function(t){let n=t[t.length-1];switch("kind"in n||(0,H.k)(!1),n.kind){case w.h.OPERATION_DEFINITION:return function(t){switch(t){case S.ku.QUERY:return k.B.QUERY;case S.ku.MUTATION:return k.B.MUTATION;case S.ku.SUBSCRIPTION:return k.B.SUBSCRIPTION}}(n.operation);case w.h.FIELD:return k.B.FIELD;case w.h.FRAGMENT_SPREAD:return k.B.FRAGMENT_SPREAD;case w.h.INLINE_FRAGMENT:return k.B.INLINE_FRAGMENT;case w.h.FRAGMENT_DEFINITION:return k.B.FRAGMENT_DEFINITION;case w.h.VARIABLE_DEFINITION:return k.B.VARIABLE_DEFINITION;case w.h.SCHEMA_DEFINITION:case w.h.SCHEMA_EXTENSION:return k.B.SCHEMA;case w.h.SCALAR_TYPE_DEFINITION:case w.h.SCALAR_TYPE_EXTENSION:return k.B.SCALAR;case w.h.OBJECT_TYPE_DEFINITION:case w.h.OBJECT_TYPE_EXTENSION:return k.B.OBJECT;case w.h.FIELD_DEFINITION:return k.B.FIELD_DEFINITION;case w.h.INTERFACE_TYPE_DEFINITION:case w.h.INTERFACE_TYPE_EXTENSION:return k.B.INTERFACE;case w.h.UNION_TYPE_DEFINITION:case w.h.UNION_TYPE_EXTENSION:return k.B.UNION;case w.h.ENUM_TYPE_DEFINITION:case w.h.ENUM_TYPE_EXTENSION:return k.B.ENUM;case w.h.ENUM_VALUE_DEFINITION:return k.B.ENUM_VALUE;case w.h.INPUT_OBJECT_TYPE_DEFINITION:case w.h.INPUT_OBJECT_TYPE_EXTENSION:return k.B.INPUT_OBJECT;case w.h.INPUT_VALUE_DEFINITION:{let n=t[t.length-3];return"kind"in n||(0,H.k)(!1),n.kind===w.h.INPUT_OBJECT_TYPE_DEFINITION?k.B.INPUT_FIELD_DEFINITION:k.B.ARGUMENT_DEFINITION}default:(0,H.k)(!1,"Unexpected kind: "+(0,_.X)(n.kind))}}(c);y&&!p.includes(y)&&t.reportError(new E.__(`Directive "@${f}" may not be used on ${y}.`,{nodes:i}))}}}function KnownFragmentNamesRule(t){return{FragmentSpread(n){let i=n.name.value,o=t.getFragment(i);o||t.reportError(new E.__(`Unknown fragment "${i}".`,{nodes:n.name}))}}}function KnownTypeNamesRule(t){let n=t.getSchema(),i=n?n.getTypeMap():Object.create(null),o=Object.create(null);for(let n of t.getDocument().definitions)(0,ea.zT)(n)&&(o[n.name.value]=!0);let a=[...Object.keys(i),...Object.keys(o)];return{NamedType(n,u,c,f,p){let y=n.name.value;if(!i[y]&&!o[y]){var m,v;let i=null!==(m=p[2])&&void 0!==m?m:c,o=null!=i&&"kind"in(v=i)&&((0,ea.G4)(v)||(0,ea.aU)(v));if(o&&es.includes(y))return;let u=suggestionList(y,o?es.concat(a):a);t.reportError(new E.__(`Unknown type "${y}".`+didYouMean(u),{nodes:n}))}}}}let es=[...j,...ei].map(t=>t.name);function LoneAnonymousOperationRule(t){let n=0;return{Document(t){n=t.definitions.filter(t=>t.kind===w.h.OPERATION_DEFINITION).length},OperationDefinition(i){!i.name&&n>1&&t.reportError(new E.__("This anonymous operation must be the only defined operation.",{nodes:i}))}}}function LoneSchemaDefinitionRule(t){var n,i,o;let a=t.getSchema(),u=null!==(n=null!==(i=null!==(o=null==a?void 0:a.astNode)&&void 0!==o?o:null==a?void 0:a.getQueryType())&&void 0!==i?i:null==a?void 0:a.getMutationType())&&void 0!==n?n:null==a?void 0:a.getSubscriptionType(),c=0;return{SchemaDefinition(n){if(u){t.reportError(new E.__("Cannot define a new schema within a schema extension.",{nodes:n}));return}c>0&&t.reportError(new E.__("Must provide only one schema definition.",{nodes:n})),++c}}}function NoFragmentCyclesRule(t){let n=Object.create(null),i=[],o=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:a=>((function detectCycleRecursive(a){if(n[a.name.value])return;let u=a.name.value;n[u]=!0;let c=t.getFragmentSpreads(a.selectionSet);if(0!==c.length){for(let n of(o[u]=i.length,c)){let a=n.name.value,u=o[a];if(i.push(n),void 0===u){let n=t.getFragment(a);n&&detectCycleRecursive(n)}else{let n=i.slice(u),o=n.slice(0,-1).map(t=>'"'+t.name.value+'"').join(", ");t.reportError(new E.__(`Cannot spread fragment "${a}" within itself`+(""!==o?` via ${o}.`:"."),{nodes:n}))}i.pop()}o[u]=void 0}})(a),!1)}}function NoUndefinedVariablesRule(t){let n=Object.create(null);return{OperationDefinition:{enter(){n=Object.create(null)},leave(i){let o=t.getRecursiveVariableUsages(i);for(let{node:a}of o){let o=a.name.value;!0!==n[o]&&t.reportError(new E.__(i.name?`Variable "$${o}" is not defined by operation "${i.name.value}".`:`Variable "$${o}" is not defined.`,{nodes:[a,i]}))}}},VariableDefinition(t){n[t.variable.name.value]=!0}}}function NoUnusedFragmentsRule(t){let n=[],i=[];return{OperationDefinition:t=>(n.push(t),!1),FragmentDefinition:t=>(i.push(t),!1),Document:{leave(){let o=Object.create(null);for(let i of n)for(let n of t.getRecursivelyReferencedFragments(i))o[n.name.value]=!0;for(let n of i){let i=n.name.value;!0!==o[i]&&t.reportError(new E.__(`Fragment "${i}" is never used.`,{nodes:n}))}}}}}function NoUnusedVariablesRule(t){let n=[];return{OperationDefinition:{enter(){n=[]},leave(i){let o=Object.create(null),a=t.getRecursiveVariableUsages(i);for(let{node:t}of a)o[t.name.value]=!0;for(let a of n){let n=a.variable.name.value;!0!==o[n]&&t.reportError(new E.__(i.name?`Variable "$${n}" is never used in operation "${i.name.value}".`:`Variable "$${n}" is never used.`,{nodes:a}))}}},VariableDefinition(t){n.push(t)}}}function sortValueNode(t){switch(t.kind){case w.h.OBJECT:return{...t,fields:t.fields.map(t=>({...t,value:sortValueNode(t.value)})).sort((t,n)=>naturalCompare(t.name.value,n.name.value))};case w.h.LIST:return{...t,values:t.values.map(sortValueNode)};case w.h.INT:case w.h.FLOAT:case w.h.STRING:case w.h.BOOLEAN:case w.h.NULL:case w.h.ENUM:case w.h.VARIABLE:return t}}function OverlappingFieldsCanBeMergedRule(t){let n=new PairSet,i=new Map;return{SelectionSet(o){let a=function(t,n,i,o,a){let u=[],[c,f]=getFieldsAndFragmentNames(t,n,o,a);if(function(t,n,i,o,a){for(let[u,c]of Object.entries(a))if(c.length>1)for(let a=0;a`subfields "${t}" conflict because `+reasonMessage(n)).join(" and "):t}(i);t.reportError(new E.__(`Fields "${n}" conflict because ${a}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:o.concat(u)}))}}}}function collectConflictsBetweenFieldsAndFragment(t,n,i,o,a,u,c){let f=t.getFragment(c);if(!f)return;let[p,y]=getReferencedFieldsAndFragmentNames(t,i,f);if(u!==p)for(let f of(collectConflictsBetween(t,n,i,o,a,u,p),y))o.has(f,c,a)||(o.add(f,c,a),collectConflictsBetweenFieldsAndFragment(t,n,i,o,a,u,f))}function collectConflictsBetweenFragments(t,n,i,o,a,u,c){if(u===c||o.has(u,c,a))return;o.add(u,c,a);let f=t.getFragment(u),p=t.getFragment(c);if(!f||!p)return;let[y,m]=getReferencedFieldsAndFragmentNames(t,i,f),[v,g]=getReferencedFieldsAndFragmentNames(t,i,p);for(let c of(collectConflictsBetween(t,n,i,o,a,y,v),g))collectConflictsBetweenFragments(t,n,i,o,a,u,c);for(let u of m)collectConflictsBetweenFragments(t,n,i,o,a,u,c)}function collectConflictsBetween(t,n,i,o,a,u,c){for(let[f,p]of Object.entries(u)){let u=c[f];if(u)for(let c of p)for(let p of u){let u=findConflict(t,i,o,a,f,c,p);u&&n.push(u)}}}function findConflict(t,n,i,o,a,u,c){let[f,p,y]=u,[m,v,g]=c,b=o||f!==m&&isObjectType(f)&&isObjectType(m);if(!b){let t=p.name.value,n=v.name.value;if(t!==n)return[[a,`"${t}" and "${n}" are different fields`],[p],[v]];if(!function(t,n){let i=t.arguments,o=n.arguments;if(void 0===i||0===i.length)return void 0===o||0===o.length;if(void 0===o||0===o.length||i.length!==o.length)return!1;let a=new Map(o.map(({name:t,value:n})=>[t.value,n]));return i.every(t=>{let n=t.value,i=a.get(t.name.value);return void 0!==i&&stringifyValue(n)===stringifyValue(i)})}(p,v))return[[a,"they have differing arguments"],[p],[v]]}let T=null==y?void 0:y.type,E=null==g?void 0:g.type;if(T&&E&&function doTypesConflict(t,n){return isListType(t)?!isListType(n)||doTypesConflict(t.ofType,n.ofType):!!isListType(n)||(isNonNullType(t)?!isNonNullType(n)||doTypesConflict(t.ofType,n.ofType):!!isNonNullType(n)||!!(isLeafType(t)||isLeafType(n))&&t!==n)}(T,E))return[[a,`they return conflicting types "${(0,_.X)(T)}" and "${(0,_.X)(E)}"`],[p],[v]];let S=p.selectionSet,I=v.selectionSet;if(S&&I){let o=function(t,n,i,o,a,u,c,f){let p=[],[y,m]=getFieldsAndFragmentNames(t,n,a,u),[v,g]=getFieldsAndFragmentNames(t,n,c,f);for(let a of(collectConflictsBetween(t,p,n,i,o,y,v),g))collectConflictsBetweenFieldsAndFragment(t,p,n,i,o,y,a);for(let a of m)collectConflictsBetweenFieldsAndFragment(t,p,n,i,o,v,a);for(let a of m)for(let u of g)collectConflictsBetweenFragments(t,p,n,i,o,a,u);return p}(t,n,i,b,getNamedType(T),S,getNamedType(E),I);return function(t,n,i,o){if(t.length>0)return[[n,t.map(([t])=>t)],[i,...t.map(([,t])=>t).flat()],[o,...t.map(([,,t])=>t).flat()]]}(o,a,p,v)}}function stringifyValue(t){return(0,A.print)(sortValueNode(t))}function getFieldsAndFragmentNames(t,n,i,o){let a=n.get(o);if(a)return a;let u=Object.create(null),c=Object.create(null);!function _collectFieldsAndFragmentNames(t,n,i,o,a){for(let u of i.selections)switch(u.kind){case w.h.FIELD:{let t;let i=u.name.value;(isObjectType(n)||isInterfaceType(n))&&(t=n.getFields()[i]);let a=u.alias?u.alias.value:i;o[a]||(o[a]=[]),o[a].push([n,u,t]);break}case w.h.FRAGMENT_SPREAD:a[u.name.value]=!0;break;case w.h.INLINE_FRAGMENT:{let i=u.typeCondition,c=i?typeFromAST(t.getSchema(),i):n;_collectFieldsAndFragmentNames(t,c,u.selectionSet,o,a)}}}(t,i,o,u,c);let f=[u,Object.keys(c)];return n.set(o,f),f}function getReferencedFieldsAndFragmentNames(t,n,i){let o=n.get(i.selectionSet);if(o)return o;let a=typeFromAST(t.getSchema(),i.typeCondition);return getFieldsAndFragmentNames(t,n,a,i.selectionSet)}let PairSet=class PairSet{constructor(){this._data=new Map}has(t,n,i){var o;let[a,u]=tt.name.value));for(let i of o.args)if(!a.has(i.name)&&isRequiredArgument(i)){let a=(0,_.X)(i.type);t.reportError(new E.__(`Field "${o.name}" argument "${i.name}" of type "${a}" is required, but it was not provided.`,{nodes:n}))}}}}}function ProvidedRequiredArgumentsOnDirectivesRule(t){var n,i;let o=Object.create(null),a=t.getSchema(),u=null!==(n=null==a?void 0:a.getDirectives())&&void 0!==n?n:G;for(let t of u)o[t.name]=keyMap(t.args.filter(isRequiredArgument),t=>t.name);let c=t.getDocument().definitions;for(let t of c)if(t.kind===w.h.DIRECTIVE_DEFINITION){let n=null!==(i=t.arguments)&&void 0!==i?i:[];o[t.name.value]=keyMap(n.filter(isRequiredArgumentNode),t=>t.name.value)}return{Directive:{leave(n){let i=n.name.value,a=o[i];if(a){var u;let o=null!==(u=n.arguments)&&void 0!==u?u:[],c=new Set(o.map(t=>t.name.value));for(let[o,u]of Object.entries(a))if(!c.has(o)){let a=isType(u.type)?(0,_.X)(u.type):(0,A.print)(u.type);t.reportError(new E.__(`Directive "@${i}" argument "${o}" of type "${a}" is required, but it was not provided.`,{nodes:n}))}}}}}}function isRequiredArgumentNode(t){return t.type.kind===w.h.NON_NULL_TYPE&&null==t.defaultValue}function ScalarLeafsRule(t){return{Field(n){let i=t.getType(),o=n.selectionSet;if(i){if(isLeafType(getNamedType(i))){if(o){let a=n.name.value,u=(0,_.X)(i);t.reportError(new E.__(`Field "${a}" must not have a selection since type "${u}" has no subfields.`,{nodes:o}))}}else if(!o){let o=n.name.value,a=(0,_.X)(i);t.reportError(new E.__(`Field "${o}" of type "${a}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:n}))}}}}}function printPathArray(t){return t.map(t=>"number"==typeof t?"["+t.toString()+"]":"."+t).join("")}function addPath(t,n,i){return{prev:t,key:n,typename:i}}function pathToArray(t){let n=[],i=t;for(;i;)n.push(i.key),i=i.prev;return n.reverse()}function coerceInputValue(t,n,i=defaultOnError){return function coerceInputValueImpl(t,n,i,o){if(isNonNullType(n))return null!=t?coerceInputValueImpl(t,n.ofType,i,o):void i(pathToArray(o),t,new E.__(`Expected non-nullable type "${(0,_.X)(n)}" not to be null.`));if(null==t)return null;if(isListType(n)){let a=n.ofType;return isIterableObject(t)?Array.from(t,(t,n)=>{let u=addPath(o,n,void 0);return coerceInputValueImpl(t,a,i,u)}):[coerceInputValueImpl(t,a,i,o)]}if(isInputObjectType(n)){if(!(0,O.y)(t)){i(pathToArray(o),t,new E.__(`Expected type "${n.name}" to be an object.`));return}let a={},u=n.getFields();for(let c of Object.values(u)){let u=t[c.name];if(void 0===u){if(void 0!==c.defaultValue)a[c.name]=c.defaultValue;else if(isNonNullType(c.type)){let n=(0,_.X)(c.type);i(pathToArray(o),t,new E.__(`Field "${c.name}" of required type "${n}" was not provided.`))}continue}a[c.name]=coerceInputValueImpl(u,c.type,i,addPath(o,c.name,n.name))}for(let a of Object.keys(t))if(!u[a]){let u=suggestionList(a,Object.keys(n.getFields()));i(pathToArray(o),t,new E.__(`Field "${a}" is not defined by type "${n.name}".`+didYouMean(u)))}return a}if(isLeafType(n)){let a;try{a=n.parseValue(t)}catch(a){a instanceof E.__?i(pathToArray(o),t,a):i(pathToArray(o),t,new E.__(`Expected type "${n.name}". `+a.message,{originalError:a}));return}return void 0===a&&i(pathToArray(o),t,new E.__(`Expected type "${n.name}".`)),a}(0,H.k)(!1,"Unexpected input type: "+(0,_.X)(n))}(t,n,i,void 0)}function defaultOnError(t,n,i){let o="Invalid value "+(0,_.X)(n);throw t.length>0&&(o+=` at "value${printPathArray(t)}"`),i.message=o+": "+i.message,i}function valueFromAST(t,n,i){if(t){if(t.kind===w.h.VARIABLE){let o=t.name.value;if(null==i||void 0===i[o])return;let a=i[o];if(null===a&&isNonNullType(n))return;return a}if(isNonNullType(n)){if(t.kind===w.h.NULL)return;return valueFromAST(t,n.ofType,i)}if(t.kind===w.h.NULL)return null;if(isListType(n)){let o=n.ofType;if(t.kind===w.h.LIST){let n=[];for(let a of t.values)if(isMissingVariable(a,i)){if(isNonNullType(o))return;n.push(null)}else{let t=valueFromAST(a,o,i);if(void 0===t)return;n.push(t)}return n}let a=valueFromAST(t,o,i);if(void 0===a)return;return[a]}if(isInputObjectType(n)){if(t.kind!==w.h.OBJECT)return;let o=Object.create(null),a=keyMap(t.fields,t=>t.name.value);for(let t of Object.values(n.getFields())){let n=a[t.name];if(!n||isMissingVariable(n.value,i)){if(void 0!==t.defaultValue)o[t.name]=t.defaultValue;else if(isNonNullType(t.type))return;continue}let u=valueFromAST(n.value,t.type,i);if(void 0===u)return;o[t.name]=u}return o}if(isLeafType(n)){let o;try{o=n.parseLiteral(t,i)}catch(t){return}if(void 0===o)return;return o}(0,H.k)(!1,"Unexpected input type: "+(0,_.X)(n))}}function isMissingVariable(t,n){return t.kind===w.h.VARIABLE&&(null==n||void 0===n[t.name.value])}function getVariableValues(t,n,i,o){let a=[],u=null==o?void 0:o.maxErrors;try{let o=function(t,n,i,o){let a={};for(let u of n){let n=u.variable.name.value,c=typeFromAST(t,u.type);if(!isInputType(c)){let t=(0,A.print)(u.type);o(new E.__(`Variable "$${n}" expected value of type "${t}" which cannot be used as an input type.`,{nodes:u.type}));continue}if(!values_hasOwnProperty(i,n)){if(u.defaultValue)a[n]=valueFromAST(u.defaultValue,c);else if(isNonNullType(c)){let t=(0,_.X)(c);o(new E.__(`Variable "$${n}" of required type "${t}" was not provided.`,{nodes:u}))}continue}let f=i[n];if(null===f&&isNonNullType(c)){let t=(0,_.X)(c);o(new E.__(`Variable "$${n}" of non-null type "${t}" must not be null.`,{nodes:u}));continue}a[n]=coerceInputValue(f,c,(t,i,a)=>{let c=`Variable "$${n}" got invalid value `+(0,_.X)(i);t.length>0&&(c+=` at "${n}${printPathArray(t)}"`),o(new E.__(c+"; "+a.message,{nodes:u,originalError:a}))})}return a}(t,n,i,t=>{if(null!=u&&a.length>=u)throw new E.__("Too many errors processing variables, error limit reached. Execution aborted.");a.push(t)});if(0===a.length)return{coerced:o}}catch(t){a.push(t)}return{errors:a}}function getArgumentValues(t,n,i){var o;let a={},u=null!==(o=n.arguments)&&void 0!==o?o:[],c=keyMap(u,t=>t.name.value);for(let o of t.args){let t=o.name,u=o.type,f=c[t];if(!f){if(void 0!==o.defaultValue)a[t]=o.defaultValue;else if(isNonNullType(u))throw new E.__(`Argument "${t}" of required type "${(0,_.X)(u)}" was not provided.`,{nodes:n});continue}let p=f.value,y=p.kind===w.h.NULL;if(p.kind===w.h.VARIABLE){let n=p.name.value;if(null==i||!values_hasOwnProperty(i,n)){if(void 0!==o.defaultValue)a[t]=o.defaultValue;else if(isNonNullType(u))throw new E.__(`Argument "${t}" of required type "${(0,_.X)(u)}" was provided the variable "$${n}" which was not provided a runtime value.`,{nodes:p});continue}y=null==i[n]}if(y&&isNonNullType(u))throw new E.__(`Argument "${t}" of non-null type "${(0,_.X)(u)}" must not be null.`,{nodes:p});let m=valueFromAST(p,u,i);if(void 0===m)throw new E.__(`Argument "${t}" has invalid value ${(0,A.print)(p)}.`,{nodes:p});a[t]=m}return a}function getDirectiveValues(t,n,i){var o;let a=null===(o=n.directives)||void 0===o?void 0:o.find(n=>n.name.value===t.name);if(a)return getArgumentValues(t,a,i)}function values_hasOwnProperty(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function collectFields(t,n,i,o,a){let u=new Map;return collectFieldsImpl(t,n,i,o,a,u,new Set),u}function collectFieldsImpl(t,n,i,o,a,u,c){for(let f of a.selections)switch(f.kind){case w.h.FIELD:{if(!shouldIncludeNode(i,f))continue;let t=f.alias?f.alias.value:f.name.value,n=u.get(t);void 0!==n?n.push(f):u.set(t,[f]);break}case w.h.INLINE_FRAGMENT:if(!shouldIncludeNode(i,f)||!doesFragmentConditionMatch(t,f,o))continue;collectFieldsImpl(t,n,i,o,f.selectionSet,u,c);break;case w.h.FRAGMENT_SPREAD:{let a=f.name.value;if(c.has(a)||!shouldIncludeNode(i,f))continue;c.add(a);let p=n[a];if(!p||!doesFragmentConditionMatch(t,p,o))continue;collectFieldsImpl(t,n,i,o,p.selectionSet,u,c)}}}function shouldIncludeNode(t,n){let i=getDirectiveValues(V,n,t);if((null==i?void 0:i.if)===!0)return!1;let o=getDirectiveValues(U,n,t);return(null==o?void 0:o.if)!==!1}function doesFragmentConditionMatch(t,n,i){let o=n.typeCondition;if(!o)return!0;let a=typeFromAST(t,o);return a===i||!!isAbstractType(a)&&t.isSubType(a,i)}function SingleFieldSubscriptionsRule(t){return{OperationDefinition(n){if("subscription"===n.operation){let i=t.getSchema(),o=i.getSubscriptionType();if(o){let a=n.name?n.name.value:null,u=Object.create(null),c=t.getDocument(),f=Object.create(null);for(let t of c.definitions)t.kind===w.h.FRAGMENT_DEFINITION&&(f[t.name.value]=t);let p=collectFields(i,f,u,o,n.selectionSet);if(p.size>1){let n=[...p.values()],i=n.slice(1),o=i.flat();t.reportError(new E.__(null!=a?`Subscription "${a}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:o}))}for(let n of p.values()){let i=n[0],o=i.name.value;o.startsWith("__")&&t.reportError(new E.__(null!=a?`Subscription "${a}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:n}))}}}}}}function groupBy(t,n){let i=new Map;for(let o of t){let t=n(o),a=i.get(t);void 0===a?i.set(t,[o]):a.push(o)}return i}function UniqueArgumentDefinitionNamesRule(t){return{DirectiveDefinition(t){var n;let i=null!==(n=t.arguments)&&void 0!==n?n:[];return checkArgUniqueness(`@${t.name.value}`,i)},InterfaceTypeDefinition:checkArgUniquenessPerField,InterfaceTypeExtension:checkArgUniquenessPerField,ObjectTypeDefinition:checkArgUniquenessPerField,ObjectTypeExtension:checkArgUniquenessPerField};function checkArgUniquenessPerField(t){var n,i;let o=t.name.value,a=null!==(n=t.fields)&&void 0!==n?n:[];for(let t of a){let n=t.name.value,a=null!==(i=t.arguments)&&void 0!==i?i:[];checkArgUniqueness(`${o}.${n}`,a)}return!1}function checkArgUniqueness(n,i){let o=groupBy(i,t=>t.name.value);for(let[i,a]of o)a.length>1&&t.reportError(new E.__(`Argument "${n}(${i}:)" can only be defined once.`,{nodes:a.map(t=>t.name)}));return!1}}function UniqueArgumentNamesRule(t){return{Field:checkArgUniqueness,Directive:checkArgUniqueness};function checkArgUniqueness(n){var i;let o=null!==(i=n.arguments)&&void 0!==i?i:[],a=groupBy(o,t=>t.name.value);for(let[n,i]of a)i.length>1&&t.reportError(new E.__(`There can be only one argument named "${n}".`,{nodes:i.map(t=>t.name)}))}}function UniqueDirectiveNamesRule(t){let n=Object.create(null),i=t.getSchema();return{DirectiveDefinition(o){let a=o.name.value;if(null!=i&&i.getDirective(a)){t.reportError(new E.__(`Directive "@${a}" already exists in the schema. It cannot be redefined.`,{nodes:o.name}));return}return n[a]?t.reportError(new E.__(`There can be only one directive named "@${a}".`,{nodes:[n[a],o.name]})):n[a]=o.name,!1}}}function UniqueDirectivesPerLocationRule(t){let n=Object.create(null),i=t.getSchema(),o=i?i.getDirectives():G;for(let t of o)n[t.name]=!t.isRepeatable;let a=t.getDocument().definitions;for(let t of a)t.kind===w.h.DIRECTIVE_DEFINITION&&(n[t.name.value]=!t.repeatable);let u=Object.create(null),c=Object.create(null);return{enter(i){let o;if("directives"in i&&i.directives){if(i.kind===w.h.SCHEMA_DEFINITION||i.kind===w.h.SCHEMA_EXTENSION)o=u;else if((0,ea.zT)(i)||(0,ea.D$)(i)){let t=i.name.value;void 0===(o=c[t])&&(c[t]=o=Object.create(null))}else o=Object.create(null);for(let a of i.directives){let i=a.name.value;n[i]&&(o[i]?t.reportError(new E.__(`The directive "@${i}" can only be used once at this location.`,{nodes:[o[i],a]})):o[i]=a)}}}}}function UniqueEnumValueNamesRule(t){let n=t.getSchema(),i=n?n.getTypeMap():Object.create(null),o=Object.create(null);return{EnumTypeDefinition:checkValueUniqueness,EnumTypeExtension:checkValueUniqueness};function checkValueUniqueness(n){var a;let u=n.name.value;o[u]||(o[u]=Object.create(null));let c=null!==(a=n.values)&&void 0!==a?a:[],f=o[u];for(let n of c){let o=n.name.value,a=i[u];isEnumType(a)&&a.getValue(o)?t.reportError(new E.__(`Enum value "${u}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:n.name})):f[o]?t.reportError(new E.__(`Enum value "${u}.${o}" can only be defined once.`,{nodes:[f[o],n.name]})):f[o]=n.name}return!1}}function UniqueFieldDefinitionNamesRule(t){let n=t.getSchema(),i=n?n.getTypeMap():Object.create(null),o=Object.create(null);return{InputObjectTypeDefinition:checkFieldUniqueness,InputObjectTypeExtension:checkFieldUniqueness,InterfaceTypeDefinition:checkFieldUniqueness,InterfaceTypeExtension:checkFieldUniqueness,ObjectTypeDefinition:checkFieldUniqueness,ObjectTypeExtension:checkFieldUniqueness};function checkFieldUniqueness(n){var a,u;let c=n.name.value;o[c]||(o[c]=Object.create(null));let f=null!==(a=n.fields)&&void 0!==a?a:[],p=o[c];for(let n of f){let o=n.name.value;(isObjectType(u=i[c])||isInterfaceType(u)||isInputObjectType(u))&&null!=u.getFields()[o]?t.reportError(new E.__(`Field "${c}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:n.name})):p[o]?t.reportError(new E.__(`Field "${c}.${o}" can only be defined once.`,{nodes:[p[o],n.name]})):p[o]=n.name}return!1}}function UniqueFragmentNamesRule(t){let n=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(i){let o=i.name.value;return n[o]?t.reportError(new E.__(`There can be only one fragment named "${o}".`,{nodes:[n[o],i.name]})):n[o]=i.name,!1}}}function UniqueInputFieldNamesRule(t){let n=[],i=Object.create(null);return{ObjectValue:{enter(){n.push(i),i=Object.create(null)},leave(){let t=n.pop();t||(0,H.k)(!1),i=t}},ObjectField(n){let o=n.name.value;i[o]?t.reportError(new E.__(`There can be only one input field named "${o}".`,{nodes:[i[o],n.name]})):i[o]=n.name}}}function UniqueOperationNamesRule(t){let n=Object.create(null);return{OperationDefinition(i){let o=i.name;return o&&(n[o.value]?t.reportError(new E.__(`There can be only one operation named "${o.value}".`,{nodes:[n[o.value],o]})):n[o.value]=o),!1},FragmentDefinition:()=>!1}}function UniqueOperationTypesRule(t){let n=t.getSchema(),i=Object.create(null),o=n?{query:n.getQueryType(),mutation:n.getMutationType(),subscription:n.getSubscriptionType()}:{};return{SchemaDefinition:checkOperationTypes,SchemaExtension:checkOperationTypes};function checkOperationTypes(n){var a;let u=null!==(a=n.operationTypes)&&void 0!==a?a:[];for(let n of u){let a=n.operation,u=i[a];o[a]?t.reportError(new E.__(`Type for ${a} already defined in the schema. It cannot be redefined.`,{nodes:n})):u?t.reportError(new E.__(`There can be only one ${a} type in schema.`,{nodes:[u,n]})):i[a]=n}return!1}}function UniqueTypeNamesRule(t){let n=Object.create(null),i=t.getSchema();return{ScalarTypeDefinition:checkTypeName,ObjectTypeDefinition:checkTypeName,InterfaceTypeDefinition:checkTypeName,UnionTypeDefinition:checkTypeName,EnumTypeDefinition:checkTypeName,InputObjectTypeDefinition:checkTypeName};function checkTypeName(o){let a=o.name.value;if(null!=i&&i.getType(a)){t.reportError(new E.__(`Type "${a}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:o.name}));return}return n[a]?t.reportError(new E.__(`There can be only one type named "${a}".`,{nodes:[n[a],o.name]})):n[a]=o.name,!1}}function UniqueVariableNamesRule(t){return{OperationDefinition(n){var i;let o=null!==(i=n.variableDefinitions)&&void 0!==i?i:[],a=groupBy(o,t=>t.variable.name.value);for(let[n,i]of a)i.length>1&&t.reportError(new E.__(`There can be only one variable named "$${n}".`,{nodes:i.map(t=>t.variable.name)}))}}}function ValuesOfCorrectTypeRule(t){return{ListValue(n){let i=getNullableType(t.getParentInputType());if(!isListType(i))return isValidValueNode(t,n),!1},ObjectValue(n){let i=getNamedType(t.getInputType());if(!isInputObjectType(i))return isValidValueNode(t,n),!1;let o=keyMap(n.fields,t=>t.name.value);for(let a of Object.values(i.getFields())){let u=o[a.name];if(!u&&isRequiredInputField(a)){let o=(0,_.X)(a.type);t.reportError(new E.__(`Field "${i.name}.${a.name}" of required type "${o}" was not provided.`,{nodes:n}))}}},ObjectField(n){let i=getNamedType(t.getParentInputType()),o=t.getInputType();if(!o&&isInputObjectType(i)){let o=suggestionList(n.name.value,Object.keys(i.getFields()));t.reportError(new E.__(`Field "${n.name.value}" is not defined by type "${i.name}".`+didYouMean(o),{nodes:n}))}},NullValue(n){let i=t.getInputType();isNonNullType(i)&&t.reportError(new E.__(`Expected value of type "${(0,_.X)(i)}", found ${(0,A.print)(n)}.`,{nodes:n}))},EnumValue:n=>isValidValueNode(t,n),IntValue:n=>isValidValueNode(t,n),FloatValue:n=>isValidValueNode(t,n),StringValue:n=>isValidValueNode(t,n),BooleanValue:n=>isValidValueNode(t,n)}}function isValidValueNode(t,n){let i=t.getInputType();if(!i)return;let o=getNamedType(i);if(!isLeafType(o)){let o=(0,_.X)(i);t.reportError(new E.__(`Expected value of type "${o}", found ${(0,A.print)(n)}.`,{nodes:n}));return}try{let a=o.parseLiteral(n,void 0);if(void 0===a){let o=(0,_.X)(i);t.reportError(new E.__(`Expected value of type "${o}", found ${(0,A.print)(n)}.`,{nodes:n}))}}catch(a){let o=(0,_.X)(i);a instanceof E.__?t.reportError(a):t.reportError(new E.__(`Expected value of type "${o}", found ${(0,A.print)(n)}; `+a.message,{nodes:n,originalError:a}))}}function VariablesAreInputTypesRule(t){return{VariableDefinition(n){let i=typeFromAST(t.getSchema(),n.type);if(void 0!==i&&!isInputType(i)){let i=n.variable.name.value,o=(0,A.print)(n.type);t.reportError(new E.__(`Variable "$${i}" cannot be non-input type "${o}".`,{nodes:n.type}))}}}}function VariablesInAllowedPositionRule(t){let n=Object.create(null);return{OperationDefinition:{enter(){n=Object.create(null)},leave(i){let o=t.getRecursiveVariableUsages(i);for(let{node:i,type:a,defaultValue:u}of o){let o=i.name.value,c=n[o];if(c&&a){let n=t.getSchema(),f=typeFromAST(n,c.type);if(f&&!function(t,n,i,o,a){if(isNonNullType(o)&&!isNonNullType(n)){let u=null!=i&&i.kind!==w.h.NULL;if(!u&&!(void 0!==a))return!1;let c=o.ofType;return isTypeSubTypeOf(t,n,c)}return isTypeSubTypeOf(t,n,o)}(n,f,c.defaultValue,a,u)){let n=(0,_.X)(f),u=(0,_.X)(a);t.reportError(new E.__(`Variable "$${o}" of type "${n}" used in position expecting type "${u}".`,{nodes:[c,i]}))}}}}},VariableDefinition(t){n[t.variable.name.value]=t}}}let ec=Object.freeze([ExecutableDefinitionsRule,UniqueOperationNamesRule,LoneAnonymousOperationRule,SingleFieldSubscriptionsRule,KnownTypeNamesRule,FragmentsOnCompositeTypesRule,VariablesAreInputTypesRule,ScalarLeafsRule,FieldsOnCorrectTypeRule,UniqueFragmentNamesRule,KnownFragmentNamesRule,NoUnusedFragmentsRule,PossibleFragmentSpreadsRule,NoFragmentCyclesRule,UniqueVariableNamesRule,NoUndefinedVariablesRule,NoUnusedVariablesRule,KnownDirectivesRule,UniqueDirectivesPerLocationRule,KnownArgumentNamesRule,UniqueArgumentNamesRule,ValuesOfCorrectTypeRule,ProvidedRequiredArgumentsRule,VariablesInAllowedPositionRule,OverlappingFieldsCanBeMergedRule,UniqueInputFieldNamesRule]),el=Object.freeze([LoneSchemaDefinitionRule,UniqueOperationTypesRule,UniqueTypeNamesRule,UniqueEnumValueNamesRule,UniqueFieldDefinitionNamesRule,UniqueArgumentDefinitionNamesRule,UniqueDirectiveNamesRule,KnownTypeNamesRule,KnownDirectivesRule,UniqueDirectivesPerLocationRule,PossibleTypeExtensionsRule,KnownArgumentNamesOnDirectivesRule,UniqueArgumentNamesRule,UniqueInputFieldNamesRule,ProvidedRequiredArgumentsOnDirectivesRule]);let ASTValidationContext=class ASTValidationContext{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{for(let t of(n=Object.create(null),this.getDocument().definitions))t.kind===w.h.FRAGMENT_DEFINITION&&(n[t.name.value]=t);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){let i;n=[];let o=[t];for(;i=o.pop();)for(let t of i.selections)t.kind===w.h.FRAGMENT_SPREAD?n.push(t):t.selectionSet&&o.push(t.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){let i;n=[];let o=Object.create(null),a=[t.selectionSet];for(;i=a.pop();)for(let t of this.getFragmentSpreads(i)){let i=t.name.value;if(!0!==o[i]){o[i]=!0;let t=this.getFragment(i);t&&(n.push(t),a.push(t.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}};let SDLValidationContext=class SDLValidationContext extends ASTValidationContext{constructor(t,n,i){super(t,i),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};let ValidationContext=class ValidationContext extends ASTValidationContext{constructor(t,n,i,o){super(n,o),this._schema=t,this._typeInfo=i,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let i=[],o=new TypeInfo(this._schema);(0,eo.Vn)(t,visitWithTypeInfo(o,{VariableDefinition:()=>!1,Variable(t){i.push({node:t,type:o.getInputType(),defaultValue:o.getDefaultValue()})}})),n=i,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){for(let i of(n=this.getVariableUsages(t),this.getRecursivelyReferencedFragments(t)))n=n.concat(this.getVariableUsages(i));this._recursiveVariableUsages.set(t,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};function validate(t,n,i=ec,o,a=new TypeInfo(t)){var u;let c=null!==(u=null==o?void 0:o.maxErrors)&&void 0!==u?u:100;n||(0,b.a)(!1,"Must provide document."),assertValidSchema(t);let f=Object.freeze({}),p=[],y=new ValidationContext(t,n,a,t=>{if(p.length>=c)throw p.push(new E.__("Too many validation errors, error limit reached. Validation aborted.")),f;p.push(t)}),m=(0,eo.j1)(i.map(t=>t(y)));try{(0,eo.Vn)(n,visitWithTypeInfo(a,m))}catch(t){if(t!==f)throw t}return p}function validateSDL(t,n,i=el){let o=[],a=new SDLValidationContext(t,n,t=>{o.push(t)}),u=i.map(t=>t(a));return(0,eo.Vn)(t,(0,eo.j1)(u)),o}function promiseForObject(t){return Promise.all(Object.values(t)).then(n=>{let i=Object.create(null);for(let[o,a]of Object.keys(t).entries())i[a]=n[o];return i})}let NonErrorThrown=class NonErrorThrown extends Error{constructor(t){super("Unexpected error value: "+(0,_.X)(t)),this.name="NonErrorThrown",this.thrownValue=t}};function locatedError(t,n,i){var o;let a=t instanceof Error?t:new NonErrorThrown(t);return Array.isArray(a.path)?a:new E.__(a.message,{nodes:null!==(o=a.nodes)&&void 0!==o?o:n,source:a.source,positions:a.positions,path:i,originalError:a})}let ef=(f=(t,n,i)=>(function(t,n,i,o,a){let u=new Map,c=new Set;for(let f of a)f.selectionSet&&collectFieldsImpl(t,n,i,o,f.selectionSet,u,c);return u})(t.schema,t.fragments,t.variableValues,n,i),function(t,n,i){void 0===o&&(o=new WeakMap);let a=o.get(t);void 0===a&&(a=new WeakMap,o.set(t,a));let u=a.get(n);void 0===u&&(u=new WeakMap,a.set(n,u));let c=u.get(i);return void 0===c&&(c=f(t,n,i),u.set(i,c)),c});function execute(t){arguments.length<2||(0,b.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:n,document:i,variableValues:o,rootValue:a}=t;assertValidExecutionArguments(n,i,o);let u=buildExecutionContext(t);if(!("schema"in u))return{errors:u};try{let{operation:t}=u,n=function(t,n,i){let o=t.schema.getRootType(n.operation);if(null==o)throw new E.__(`Schema is not configured to execute ${n.operation} operation.`,{nodes:n});let a=collectFields(t.schema,t.fragments,t.variableValues,o,n.selectionSet),u=void 0;switch(n.operation){case S.ku.QUERY:return executeFields(t,o,i,u,a);case S.ku.MUTATION:return function(t,n,i){let o=i;for(let i of t)o=isPromise(o)?o.then(t=>n(t,i)):n(o,i);return o}(a.entries(),(n,[a,c])=>{let f=addPath(u,a,o.name),p=executeField(t,o,i,c,f);return void 0===p?n:isPromise(p)?p.then(t=>(n[a]=t,n)):(n[a]=p,n)},Object.create(null));case S.ku.SUBSCRIPTION:return executeFields(t,o,i,u,a)}}(u,t,a);if(isPromise(n))return n.then(t=>buildResponse(t,u.errors),t=>(u.errors.push(t),buildResponse(null,u.errors)));return buildResponse(n,u.errors)}catch(t){return u.errors.push(t),buildResponse(null,u.errors)}}function executeSync(t){let n=execute(t);if(isPromise(n))throw Error("GraphQL execution failed to complete synchronously.");return n}function buildResponse(t,n){return 0===n.length?{data:t}:{errors:n,data:t}}function assertValidExecutionArguments(t,n,i){n||(0,b.a)(!1,"Must provide document."),assertValidSchema(t),null==i||(0,O.y)(i)||(0,b.a)(!1,"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 buildExecutionContext(t){var n,i;let o;let{schema:a,document:u,rootValue:c,contextValue:f,variableValues:p,operationName:y,fieldResolver:m,typeResolver:v,subscribeFieldResolver:g}=t,b=Object.create(null);for(let t of u.definitions)switch(t.kind){case w.h.OPERATION_DEFINITION:if(null==y){if(void 0!==o)return[new E.__("Must provide operation name if query contains multiple operations.")];o=t}else(null===(n=t.name)||void 0===n?void 0:n.value)===y&&(o=t);break;case w.h.FRAGMENT_DEFINITION:b[t.name.value]=t}if(!o)return null!=y?[new E.__(`Unknown operation named "${y}".`)]:[new E.__("Must provide an operation.")];let T=null!==(i=o.variableDefinitions)&&void 0!==i?i:[],_=getVariableValues(a,T,null!=p?p:{},{maxErrors:50});return _.errors?_.errors:{schema:a,fragments:b,rootValue:c,contextValue:f,operation:o,variableValues:_.coerced,fieldResolver:null!=m?m:defaultFieldResolver,typeResolver:null!=v?v:defaultTypeResolver,subscribeFieldResolver:null!=g?g:defaultFieldResolver,errors:[]}}function executeFields(t,n,i,o,a){let u=Object.create(null),c=!1;try{for(let[f,p]of a.entries()){let a=addPath(o,f,n.name),y=executeField(t,n,i,p,a);void 0!==y&&(u[f]=y,isPromise(y)&&(c=!0))}}catch(t){if(c)return promiseForObject(u).finally(()=>{throw t});throw t}return c?promiseForObject(u):u}function executeField(t,n,i,o,a){var u;let c=execute_getFieldDef(t.schema,n,o[0]);if(!c)return;let f=c.type,p=null!==(u=c.resolve)&&void 0!==u?u:t.fieldResolver,y=buildResolveInfo(t,c,o,n,a);try{let n;let u=getArgumentValues(c,o[0],t.variableValues),m=t.contextValue,v=p(i,u,m,y);if(n=isPromise(v)?v.then(n=>completeValue(t,f,o,y,a,n)):completeValue(t,f,o,y,a,v),isPromise(n))return n.then(void 0,n=>{let i=locatedError(n,o,pathToArray(a));return handleFieldError(i,f,t)});return n}catch(i){let n=locatedError(i,o,pathToArray(a));return handleFieldError(n,f,t)}}function buildResolveInfo(t,n,i,o,a){return{fieldName:n.name,fieldNodes:i,returnType:n.type,parentType:o,path:a,schema:t.schema,fragments:t.fragments,rootValue:t.rootValue,operation:t.operation,variableValues:t.variableValues}}function handleFieldError(t,n,i){if(isNonNullType(n))throw t;return i.errors.push(t),null}function completeValue(t,n,i,o,a,u){if(u instanceof Error)throw u;if(isNonNullType(n)){let c=completeValue(t,n.ofType,i,o,a,u);if(null===c)throw Error(`Cannot return null for non-nullable field ${o.parentType.name}.${o.fieldName}.`);return c}return null==u?null:isListType(n)?function(t,n,i,o,a,u){if(!isIterableObject(u))throw new E.__(`Expected Iterable, but did not find one for field "${o.parentType.name}.${o.fieldName}".`);let c=n.ofType,f=!1,p=Array.from(u,(n,u)=>{let p=addPath(a,u,void 0);try{let a;if(a=isPromise(n)?n.then(n=>completeValue(t,c,i,o,p,n)):completeValue(t,c,i,o,p,n),isPromise(a))return f=!0,a.then(void 0,n=>{let o=locatedError(n,i,pathToArray(p));return handleFieldError(o,c,t)});return a}catch(o){let n=locatedError(o,i,pathToArray(p));return handleFieldError(n,c,t)}});return f?Promise.all(p):p}(t,n,i,o,a,u):isLeafType(n)?function(t,n){let i=t.serialize(n);if(null==i)throw Error(`Expected \`${(0,_.X)(t)}.serialize(${(0,_.X)(n)})\` to return non-nullable value, returned: ${(0,_.X)(i)}`);return i}(n,u):isAbstractType(n)?function(t,n,i,o,a,u){var c;let f=null!==(c=n.resolveType)&&void 0!==c?c:t.typeResolver,p=t.contextValue,y=f(u,p,o,n);return isPromise(y)?y.then(c=>completeObjectValue(t,ensureValidRuntimeType(c,t,n,i,o,u),i,o,a,u)):completeObjectValue(t,ensureValidRuntimeType(y,t,n,i,o,u),i,o,a,u)}(t,n,i,o,a,u):isObjectType(n)?completeObjectValue(t,n,i,o,a,u):void(0,H.k)(!1,"Cannot complete value of unexpected output type: "+(0,_.X)(n))}function ensureValidRuntimeType(t,n,i,o,a,u){if(null==t)throw new E.__(`Abstract type "${i.name}" must resolve to an Object type at runtime for field "${a.parentType.name}.${a.fieldName}". Either the "${i.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,o);if(isObjectType(t))throw new E.__("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof t)throw new E.__(`Abstract type "${i.name}" must resolve to an Object type at runtime for field "${a.parentType.name}.${a.fieldName}" with value ${(0,_.X)(u)}, received "${(0,_.X)(t)}".`);let c=n.schema.getType(t);if(null==c)throw new E.__(`Abstract type "${i.name}" was resolved to a type "${t}" that does not exist inside the schema.`,{nodes:o});if(!isObjectType(c))throw new E.__(`Abstract type "${i.name}" was resolved to a non-object type "${t}".`,{nodes:o});if(!n.schema.isSubType(i,c))throw new E.__(`Runtime Object type "${c.name}" is not a possible type for "${i.name}".`,{nodes:o});return c}function completeObjectValue(t,n,i,o,a,u){let c=ef(t,n,i);if(n.isTypeOf){let f=n.isTypeOf(u,t.contextValue,o);if(isPromise(f))return f.then(o=>{if(!o)throw invalidReturnTypeError(n,u,i);return executeFields(t,n,u,a,c)});if(!f)throw invalidReturnTypeError(n,u,i)}return executeFields(t,n,u,a,c)}function invalidReturnTypeError(t,n,i){return new E.__(`Expected value of type "${t.name}" but got: ${(0,_.X)(n)}.`,{nodes:i})}let defaultTypeResolver=function(t,n,i,o){if((0,O.y)(t)&&"string"==typeof t.__typename)return t.__typename;let a=i.schema.getPossibleTypes(o),u=[];for(let o=0;o{for(let n=0;nn(graphqlImpl(t)))}function graphqlSync(t){let n=graphqlImpl(t);if(isPromise(n))throw Error("GraphQL execution failed to complete synchronously.");return n}function graphqlImpl(t){let n;arguments.length<2||(0,b.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:i,source:o,rootValue:a,contextValue:u,variableValues:c,operationName:f,fieldResolver:p,typeResolver:y}=t,m=validateSchema(i);if(m.length>0)return{errors:m};try{n=(0,T.Qc)(o)}catch(t){return{errors:[t]}}let v=validate(i,n);return v.length>0?{errors:v}:execute({schema:i,document:n,rootValue:a,contextValue:u,variableValues:c,operationName:f,fieldResolver:p,typeResolver:y})}var ep=i(7926),eh=i(57867),ed=i(90850),ey=i(92105),em=i(74635);function isAsyncIterable(t){return"function"==typeof(null==t?void 0:t[Symbol.asyncIterator])}async function subscribe(t){arguments.length<2||(0,b.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=await createSourceEventStream(t);return isAsyncIterable(n)?function(t,n){let i=t[Symbol.asyncIterator]();async function mapResult(t){if(t.done)return t;try{return{value:await n(t.value),done:!1}}catch(t){if("function"==typeof i.return)try{await i.return()}catch(t){}throw t}}return{next:async()=>mapResult(await i.next()),return:async()=>"function"==typeof i.return?mapResult(await i.return()):{value:void 0,done:!0},async throw(t){if("function"==typeof i.throw)return mapResult(await i.throw(t));throw t},[Symbol.asyncIterator](){return this}}}(n,n=>execute({...t,rootValue:n})):n}async function createSourceEventStream(...t){let n=function(t){let n=t[0];return n&&"document"in n?n:{schema:n,document:t[1],rootValue:t[2],contextValue:t[3],variableValues:t[4],operationName:t[5],subscribeFieldResolver:t[6]}}(t),{schema:i,document:o,variableValues:a}=n;assertValidExecutionArguments(i,o,a);let u=buildExecutionContext(n);if(!("schema"in u))return{errors:u};try{let t=await executeSubscription(u);if(!isAsyncIterable(t))throw Error(`Subscription field must return Async Iterable. Received: ${(0,_.X)(t)}.`);return t}catch(t){if(t instanceof E.__)return{errors:[t]};throw t}}async function executeSubscription(t){let{schema:n,fragments:i,operation:o,variableValues:a,rootValue:u}=t,c=n.getSubscriptionType();if(null==c)throw new E.__("Schema is not configured to execute subscription operation.",{nodes:o});let f=collectFields(n,i,a,c,o.selectionSet),[p,y]=[...f.entries()][0],m=execute_getFieldDef(n,c,y[0]);if(!m){let t=y[0].name.value;throw new E.__(`The subscription field "${t}" is not defined.`,{nodes:y})}let v=addPath(void 0,p,c.name),g=buildResolveInfo(t,m,y,c,v);try{var b;let n=getArgumentValues(m,y[0],a),i=t.contextValue,o=null!==(b=m.subscribe)&&void 0!==b?b:t.subscribeFieldResolver,c=await o(u,n,i,g);if(c instanceof Error)throw c;return c}catch(t){throw locatedError(t,y,pathToArray(v))}}function NoDeprecatedCustomRule(t){return{Field(n){let i=t.getFieldDef(),o=null==i?void 0:i.deprecationReason;if(i&&null!=o){let a=t.getParentType();null!=a||(0,H.k)(!1),t.reportError(new E.__(`The field ${a.name}.${i.name} is deprecated. ${o}`,{nodes:n}))}},Argument(n){let i=t.getArgument(),o=null==i?void 0:i.deprecationReason;if(i&&null!=o){let a=t.getDirective();if(null!=a)t.reportError(new E.__(`Directive "@${a.name}" argument "${i.name}" is deprecated. ${o}`,{nodes:n}));else{let a=t.getParentType(),u=t.getFieldDef();null!=a&&null!=u||(0,H.k)(!1),t.reportError(new E.__(`Field "${a.name}.${u.name}" argument "${i.name}" is deprecated. ${o}`,{nodes:n}))}}},ObjectField(n){let i=getNamedType(t.getParentInputType());if(isInputObjectType(i)){let o=i.getFields()[n.name.value],a=null==o?void 0:o.deprecationReason;null!=a&&t.reportError(new E.__(`The input field ${i.name}.${o.name} is deprecated. ${a}`,{nodes:n}))}},EnumValue(n){let i=t.getEnumValue(),o=null==i?void 0:i.deprecationReason;if(i&&null!=o){let a=getNamedType(t.getInputType());null!=a||(0,H.k)(!1),t.reportError(new E.__(`The enum value "${a.name}.${i.name}" is deprecated. ${o}`,{nodes:n}))}}}}function NoSchemaIntrospectionCustomRule(t){return{Field(n){let i=getNamedType(t.getType());i&&isIntrospectionType(i)&&t.reportError(new E.__(`GraphQL introspection has been disabled, but the requested query contained the field "${n.name.value}".`,{nodes:n}))}}}var ev=i(45219);function getIntrospectionQuery(t){let n={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...t},i=n.descriptions?"description":"",o=n.specifiedByUrl?"specifiedByURL":"",a=n.directiveIsRepeatable?"isRepeatable":"",u=n.schemaDescription?i:"";function inputDeprecation(t){return n.inputValueDeprecation?t:""}return` query IntrospectionQuery { __schema { ${u} queryType { name } mutationType { name } subscriptionType { name } types { ...FullType } directives { name ${i} ${a} locations args${inputDeprecation("(includeDeprecated: true)")} { ...InputValue } } } } fragment FullType on __Type { kind name ${i} ${o} fields(includeDeprecated: true) { name ${i} args${inputDeprecation("(includeDeprecated: true)")} { ...InputValue } type { ...TypeRef } isDeprecated deprecationReason } inputFields${inputDeprecation("(includeDeprecated: true)")} { ...InputValue } interfaces { ...TypeRef } enumValues(includeDeprecated: true) { name ${i} isDeprecated deprecationReason } possibleTypes { ...TypeRef } } fragment InputValue on __InputValue { name ${i} type { ...TypeRef } defaultValue ${inputDeprecation("isDeprecated")} ${inputDeprecation("deprecationReason")} } fragment TypeRef on __Type { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name } } } } } } } } } } `}function getOperationAST(t,n){let i=null;for(let a of t.definitions)if(a.kind===w.h.OPERATION_DEFINITION){var o;if(null==n){if(i)return null;i=a}else if((null===(o=a.name)||void 0===o?void 0:o.value)===n)return a}return i}function getOperationRootType(t,n){if("query"===n.operation){let i=t.getQueryType();if(!i)throw new E.__("Schema does not define the required query root type.",{nodes:n});return i}if("mutation"===n.operation){let i=t.getMutationType();if(!i)throw new E.__("Schema is not configured for mutations.",{nodes:n});return i}if("subscription"===n.operation){let i=t.getSubscriptionType();if(!i)throw new E.__("Schema is not configured for subscriptions.",{nodes:n});return i}throw new E.__("Can only have query, mutation and subscription operations.",{nodes:n})}function introspectionFromSchema(t,n){let i={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...n},o=(0,T.Qc)(getIntrospectionQuery(i)),a=executeSync({schema:t,document:o});return!a.errors&&a.data||(0,H.k)(!1),a.data}function buildClientSchema(t,n){(0,O.y)(t)&&(0,O.y)(t.__schema)||(0,b.a)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,_.X)(t)}.`);let i=t.__schema,o=keyValMap(i.types,t=>t.name,t=>(function(t){if(null!=t&&null!=t.name&&null!=t.kind)switch(t.kind){case m.SCALAR:return new GraphQLScalarType({name:t.name,description:t.description,specifiedByURL:t.specifiedByURL});case m.OBJECT:return new GraphQLObjectType({name:t.name,description:t.description,interfaces:()=>buildImplementationsList(t),fields:()=>buildFieldDefMap(t)});case m.INTERFACE:return new GraphQLInterfaceType({name:t.name,description:t.description,interfaces:()=>buildImplementationsList(t),fields:()=>buildFieldDefMap(t)});case m.UNION:return function(t){if(!t.possibleTypes){let n=(0,_.X)(t);throw Error(`Introspection result missing possibleTypes: ${n}.`)}return new GraphQLUnionType({name:t.name,description:t.description,types:()=>t.possibleTypes.map(getObjectType)})}(t);case m.ENUM:return function(t){if(!t.enumValues){let n=(0,_.X)(t);throw Error(`Introspection result missing enumValues: ${n}.`)}return new GraphQLEnumType({name:t.name,description:t.description,values:keyValMap(t.enumValues,t=>t.name,t=>({description:t.description,deprecationReason:t.deprecationReason}))})}(t);case m.INPUT_OBJECT:return function(t){if(!t.inputFields){let n=(0,_.X)(t);throw Error(`Introspection result missing inputFields: ${n}.`)}return new GraphQLInputObjectType({name:t.name,description:t.description,fields:()=>buildInputValueDefMap(t.inputFields)})}(t)}let n=(0,_.X)(t);throw Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${n}.`)})(t));for(let t of[...j,...ei])o[t.name]&&(o[t.name]=t);let a=i.queryType?getObjectType(i.queryType):null,u=i.mutationType?getObjectType(i.mutationType):null,c=i.subscriptionType?getObjectType(i.subscriptionType):null,f=i.directives?i.directives.map(function(t){if(!t.args){let n=(0,_.X)(t);throw Error(`Introspection result missing directive args: ${n}.`)}if(!t.locations){let n=(0,_.X)(t);throw Error(`Introspection result missing directive locations: ${n}.`)}return new GraphQLDirective({name:t.name,description:t.description,isRepeatable:t.isRepeatable,locations:t.locations.slice(),args:buildInputValueDefMap(t.args)})}):[];return new GraphQLSchema({description:i.description,query:a,mutation:u,subscription:c,types:Object.values(o),directives:f,assumeValid:null==n?void 0:n.assumeValid});function getType(t){if(t.kind===m.LIST){let n=t.ofType;if(!n)throw Error("Decorated type deeper than introspection query.");return new GraphQLList(getType(n))}if(t.kind===m.NON_NULL){let n=t.ofType;if(!n)throw Error("Decorated type deeper than introspection query.");let i=getType(n);return new GraphQLNonNull(assertNullableType(i))}return getNamedType(t)}function getNamedType(t){let n=t.name;if(!n)throw Error(`Unknown type reference: ${(0,_.X)(t)}.`);let i=o[n];if(!i)throw Error(`Invalid or incomplete schema, unknown type: ${n}. Ensure that a full introspection query is used in order to build a client schema.`);return i}function getObjectType(t){return assertObjectType(getNamedType(t))}function getInterfaceType(t){return assertInterfaceType(getNamedType(t))}function buildImplementationsList(t){if(null===t.interfaces&&t.kind===m.INTERFACE)return[];if(!t.interfaces){let n=(0,_.X)(t);throw Error(`Introspection result missing interfaces: ${n}.`)}return t.interfaces.map(getInterfaceType)}function buildFieldDefMap(t){if(!t.fields)throw Error(`Introspection result missing fields: ${(0,_.X)(t)}.`);return keyValMap(t.fields,t=>t.name,buildField)}function buildField(t){let n=getType(t.type);if(!isOutputType(n)){let t=(0,_.X)(n);throw Error(`Introspection must provide output type for fields, but received: ${t}.`)}if(!t.args){let n=(0,_.X)(t);throw Error(`Introspection result missing field args: ${n}.`)}return{description:t.description,deprecationReason:t.deprecationReason,type:n,args:buildInputValueDefMap(t.args)}}function buildInputValueDefMap(t){return keyValMap(t,t=>t.name,buildInputValue)}function buildInputValue(t){let n=getType(t.type);if(!isInputType(n)){let t=(0,_.X)(n);throw Error(`Introspection must provide input type for arguments, but received: ${t}.`)}let i=null!=t.defaultValue?valueFromAST((0,T.H2)(t.defaultValue),n):void 0;return{description:t.description,type:n,defaultValue:i,deprecationReason:t.deprecationReason}}}function extendSchema(t,n,i){assertSchema(t),null!=n&&n.kind===w.h.DOCUMENT||(0,b.a)(!1,"Must provide valid Document AST."),(null==i?void 0:i.assumeValid)!==!0&&(null==i?void 0:i.assumeValidSDL)!==!0&&function(t,n){let i=validateSDL(t,n);if(0!==i.length)throw Error(i.map(t=>t.message).join("\n\n"))}(n,t);let o=t.toConfig(),a=extendSchemaImpl(o,n,i);return o===a?t:new GraphQLSchema(a)}function extendSchemaImpl(t,n,i){var o,a,u,c,f;let p;let y=[],m=Object.create(null),v=[],g=[];for(let t of n.definitions)if(t.kind===w.h.SCHEMA_DEFINITION)p=t;else if(t.kind===w.h.SCHEMA_EXTENSION)g.push(t);else if((0,ea.zT)(t))y.push(t);else if((0,ea.D$)(t)){let n=t.name.value,i=m[n];m[n]=i?i.concat([t]):[t]}else t.kind===w.h.DIRECTIVE_DEFINITION&&v.push(t);if(0===Object.keys(m).length&&0===y.length&&0===v.length&&0===g.length&&null==p)return t;let b=Object.create(null);for(let n of t.types)b[n.name]=isIntrospectionType(n)||isSpecifiedScalarType(n)?n:isScalarType(n)?function(t){var n,i;let o=t.toConfig(),a=null!==(n=m[o.name])&&void 0!==n?n:[],u=o.specifiedByURL;for(let t of a)u=null!==(i=getSpecifiedByURL(t))&&void 0!==i?i:u;return new GraphQLScalarType({...o,specifiedByURL:u,extensionASTNodes:o.extensionASTNodes.concat(a)})}(n):isObjectType(n)?function(t){var n;let i=t.toConfig(),o=null!==(n=m[i.name])&&void 0!==n?n:[];return new GraphQLObjectType({...i,interfaces:()=>[...t.getInterfaces().map(replaceNamedType),...buildInterfaces(o)],fields:()=>({...mapValue(i.fields,extendField),...buildFieldMap(o)}),extensionASTNodes:i.extensionASTNodes.concat(o)})}(n):isInterfaceType(n)?function(t){var n;let i=t.toConfig(),o=null!==(n=m[i.name])&&void 0!==n?n:[];return new GraphQLInterfaceType({...i,interfaces:()=>[...t.getInterfaces().map(replaceNamedType),...buildInterfaces(o)],fields:()=>({...mapValue(i.fields,extendField),...buildFieldMap(o)}),extensionASTNodes:i.extensionASTNodes.concat(o)})}(n):isUnionType(n)?function(t){var n;let i=t.toConfig(),o=null!==(n=m[i.name])&&void 0!==n?n:[];return new GraphQLUnionType({...i,types:()=>[...t.getTypes().map(replaceNamedType),...buildUnionTypes(o)],extensionASTNodes:i.extensionASTNodes.concat(o)})}(n):isEnumType(n)?function(t){var n;let i=t.toConfig(),o=null!==(n=m[t.name])&&void 0!==n?n:[];return new GraphQLEnumType({...i,values:{...i.values,...buildEnumValueMap(o)},extensionASTNodes:i.extensionASTNodes.concat(o)})}(n):isInputObjectType(n)?function(t){var n;let i=t.toConfig(),o=null!==(n=m[i.name])&&void 0!==n?n:[];return new GraphQLInputObjectType({...i,fields:()=>({...mapValue(i.fields,t=>({...t,type:replaceType(t.type)})),...buildInputFieldMap(o)}),extensionASTNodes:i.extensionASTNodes.concat(o)})}(n):void(0,H.k)(!1,"Unexpected type: "+(0,_.X)(n));for(let t of y){let n=t.name.value;b[n]=null!==(f=eg[n])&&void 0!==f?f:function(t){var n,i,o,a,u,c,f;let p=t.name.value,y=null!==(n=m[p])&&void 0!==n?n:[];switch(t.kind){case w.h.OBJECT_TYPE_DEFINITION:{let n=[t,...y];return new GraphQLObjectType({name:p,description:null===(i=t.description)||void 0===i?void 0:i.value,interfaces:()=>buildInterfaces(n),fields:()=>buildFieldMap(n),astNode:t,extensionASTNodes:y})}case w.h.INTERFACE_TYPE_DEFINITION:{let n=[t,...y];return new GraphQLInterfaceType({name:p,description:null===(o=t.description)||void 0===o?void 0:o.value,interfaces:()=>buildInterfaces(n),fields:()=>buildFieldMap(n),astNode:t,extensionASTNodes:y})}case w.h.ENUM_TYPE_DEFINITION:{let n=[t,...y];return new GraphQLEnumType({name:p,description:null===(a=t.description)||void 0===a?void 0:a.value,values:buildEnumValueMap(n),astNode:t,extensionASTNodes:y})}case w.h.UNION_TYPE_DEFINITION:{let n=[t,...y];return new GraphQLUnionType({name:p,description:null===(u=t.description)||void 0===u?void 0:u.value,types:()=>buildUnionTypes(n),astNode:t,extensionASTNodes:y})}case w.h.SCALAR_TYPE_DEFINITION:return new GraphQLScalarType({name:p,description:null===(c=t.description)||void 0===c?void 0:c.value,specifiedByURL:getSpecifiedByURL(t),astNode:t,extensionASTNodes:y});case w.h.INPUT_OBJECT_TYPE_DEFINITION:{let n=[t,...y];return new GraphQLInputObjectType({name:p,description:null===(f=t.description)||void 0===f?void 0:f.value,fields:()=>buildInputFieldMap(n),astNode:t,extensionASTNodes:y})}}}(t)}let T={query:t.query&&replaceNamedType(t.query),mutation:t.mutation&&replaceNamedType(t.mutation),subscription:t.subscription&&replaceNamedType(t.subscription),...p&&getOperationTypes([p]),...getOperationTypes(g)};return{description:null===(o=p)||void 0===o?void 0:null===(a=o.description)||void 0===a?void 0:a.value,...T,types:Object.values(b),directives:[...t.directives.map(function(t){let n=t.toConfig();return new GraphQLDirective({...n,args:mapValue(n.args,extendArg)})}),...v.map(function(t){var n;return new GraphQLDirective({name:t.name.value,description:null===(n=t.description)||void 0===n?void 0:n.value,locations:t.locations.map(({value:t})=>t),isRepeatable:t.repeatable,args:buildArgumentMap(t.arguments),astNode:t})})],extensions:Object.create(null),astNode:null!==(u=p)&&void 0!==u?u:t.astNode,extensionASTNodes:t.extensionASTNodes.concat(g),assumeValid:null!==(c=null==i?void 0:i.assumeValid)&&void 0!==c&&c};function replaceType(t){return isListType(t)?new GraphQLList(replaceType(t.ofType)):isNonNullType(t)?new GraphQLNonNull(replaceType(t.ofType)):replaceNamedType(t)}function replaceNamedType(t){return b[t.name]}function extendField(t){return{...t,type:replaceType(t.type),args:t.args&&mapValue(t.args,extendArg)}}function extendArg(t){return{...t,type:replaceType(t.type)}}function getOperationTypes(t){let n={};for(let o of t){var i;let t=null!==(i=o.operationTypes)&&void 0!==i?i:[];for(let i of t)n[i.operation]=getNamedType(i.type)}return n}function getNamedType(t){var n;let i=t.name.value,o=null!==(n=eg[i])&&void 0!==n?n:b[i];if(void 0===o)throw Error(`Unknown type: "${i}".`);return o}function getWrappedType(t){return t.kind===w.h.LIST_TYPE?new GraphQLList(getWrappedType(t.type)):t.kind===w.h.NON_NULL_TYPE?new GraphQLNonNull(getWrappedType(t.type)):getNamedType(t)}function buildFieldMap(t){let n=Object.create(null);for(let a of t){var i,o;let t=null!==(i=a.fields)&&void 0!==i?i:[];for(let i of t)n[i.name.value]={type:getWrappedType(i.type),description:null===(o=i.description)||void 0===o?void 0:o.value,args:buildArgumentMap(i.arguments),deprecationReason:getDeprecationReason(i),astNode:i}}return n}function buildArgumentMap(t){let n=Object.create(null);for(let o of null!=t?t:[]){var i;let t=getWrappedType(o.type);n[o.name.value]={type:t,description:null===(i=o.description)||void 0===i?void 0:i.value,defaultValue:valueFromAST(o.defaultValue,t),deprecationReason:getDeprecationReason(o),astNode:o}}return n}function buildInputFieldMap(t){let n=Object.create(null);for(let a of t){var i,o;let t=null!==(i=a.fields)&&void 0!==i?i:[];for(let i of t){let t=getWrappedType(i.type);n[i.name.value]={type:t,description:null===(o=i.description)||void 0===o?void 0:o.value,defaultValue:valueFromAST(i.defaultValue,t),deprecationReason:getDeprecationReason(i),astNode:i}}}return n}function buildEnumValueMap(t){let n=Object.create(null);for(let a of t){var i,o;let t=null!==(i=a.values)&&void 0!==i?i:[];for(let i of t)n[i.name.value]={description:null===(o=i.description)||void 0===o?void 0:o.value,deprecationReason:getDeprecationReason(i),astNode:i}}return n}function buildInterfaces(t){return t.flatMap(t=>{var n,i;return null!==(n=null===(i=t.interfaces)||void 0===i?void 0:i.map(getNamedType))&&void 0!==n?n:[]})}function buildUnionTypes(t){return t.flatMap(t=>{var n,i;return null!==(n=null===(i=t.types)||void 0===i?void 0:i.map(getNamedType))&&void 0!==n?n:[]})}}let eg=keyMap([...j,...ei],t=>t.name);function getDeprecationReason(t){let n=getDirectiveValues(q,t);return null==n?void 0:n.reason}function getSpecifiedByURL(t){let n=getDirectiveValues(Q,t);return null==n?void 0:n.url}function buildASTSchema(t,n){null!=t&&t.kind===w.h.DOCUMENT||(0,b.a)(!1,"Must provide valid Document AST."),(null==n?void 0:n.assumeValid)!==!0&&(null==n?void 0:n.assumeValidSDL)!==!0&&function(t){let n=validateSDL(t);if(0!==n.length)throw Error(n.map(t=>t.message).join("\n\n"))}(t);let i={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},o=extendSchemaImpl(i,t,n);if(null==o.astNode)for(let t of o.types)switch(t.name){case"Query":o.query=t;break;case"Mutation":o.mutation=t;break;case"Subscription":o.subscription=t}let a=[...o.directives,...G.filter(t=>o.directives.every(n=>n.name!==t.name))];return new GraphQLSchema({...o,directives:a})}function buildSchema(t,n){let i=(0,T.Qc)(t,{noLocation:null==n?void 0:n.noLocation,allowLegacyFragmentVariables:null==n?void 0:n.allowLegacyFragmentVariables});return buildASTSchema(i,{assumeValidSDL:null==n?void 0:n.assumeValidSDL,assumeValid:null==n?void 0:n.assumeValid})}function lexicographicSortSchema(t){var n,i,o;let a=t.toConfig(),u=keyValMap(sortByName(a.types),t=>t.name,function(t){if(isScalarType(t)||isIntrospectionType(t))return t;if(isObjectType(t)){let n=t.toConfig();return new GraphQLObjectType({...n,interfaces:()=>sortTypes(n.interfaces),fields:()=>sortFields(n.fields)})}if(isInterfaceType(t)){let n=t.toConfig();return new GraphQLInterfaceType({...n,interfaces:()=>sortTypes(n.interfaces),fields:()=>sortFields(n.fields)})}if(isUnionType(t)){let n=t.toConfig();return new GraphQLUnionType({...n,types:()=>sortTypes(n.types)})}if(isEnumType(t)){let n=t.toConfig();return new GraphQLEnumType({...n,values:sortObjMap(n.values,t=>t)})}if(isInputObjectType(t)){let n=t.toConfig();return new GraphQLInputObjectType({...n,fields:()=>sortObjMap(n.fields,t=>({...t,type:replaceType(t.type)}))})}(0,H.k)(!1,"Unexpected type: "+(0,_.X)(t))});return new GraphQLSchema({...a,types:Object.values(u),directives:sortByName(a.directives).map(function(t){let n=t.toConfig();return new GraphQLDirective({...n,locations:sortBy(n.locations,t=>t),args:sortArgs(n.args)})}),query:(n=a.query)&&replaceNamedType(n),mutation:(i=a.mutation)&&replaceNamedType(i),subscription:(o=a.subscription)&&replaceNamedType(o)});function replaceType(t){return isListType(t)?new GraphQLList(replaceType(t.ofType)):isNonNullType(t)?new GraphQLNonNull(replaceType(t.ofType)):replaceNamedType(t)}function replaceNamedType(t){return u[t.name]}function sortArgs(t){return sortObjMap(t,t=>({...t,type:replaceType(t.type)}))}function sortFields(t){return sortObjMap(t,t=>({...t,type:replaceType(t.type),args:t.args&&sortArgs(t.args)}))}function sortTypes(t){return sortByName(t).map(replaceNamedType)}}function sortObjMap(t,n){let i=Object.create(null);for(let o of Object.keys(t).sort(naturalCompare))i[o]=n(t[o]);return i}function sortByName(t){return sortBy(t,t=>t.name)}function sortBy(t,n){return t.slice().sort((t,i)=>{let o=n(t),a=n(i);return naturalCompare(o,a)})}var eb=i(87392);function printSchema(t){return printFilteredSchema(t,t=>!isSpecifiedDirective(t),isDefinedType)}function printIntrospectionSchema(t){return printFilteredSchema(t,isSpecifiedDirective,isIntrospectionType)}function isDefinedType(t){return!isSpecifiedScalarType(t)&&!isIntrospectionType(t)}function printFilteredSchema(t,n,i){let o=t.getDirectives().filter(n),a=Object.values(t.getTypeMap()).filter(i);return[function(t){if(null==t.description&&function(t){let n=t.getQueryType();if(n&&"Query"!==n.name)return!1;let i=t.getMutationType();if(i&&"Mutation"!==i.name)return!1;let o=t.getSubscriptionType();return!o||"Subscription"===o.name}(t))return;let n=[],i=t.getQueryType();i&&n.push(` query: ${i.name}`);let o=t.getMutationType();o&&n.push(` mutation: ${o.name}`);let a=t.getSubscriptionType();return a&&n.push(` subscription: ${a.name}`),printDescription(t)+`schema { ${n.join("\n")} }`}(t),...o.map(t=>printDescription(t)+"directive @"+t.name+printArgs(t.args)+(t.isRepeatable?" repeatable":"")+" on "+t.locations.join(" | ")),...a.map(t=>printType(t))].filter(Boolean).join("\n\n")}function printType(t){return isScalarType(t)?printDescription(t)+`scalar ${t.name}`+function(t){if(null==t.specifiedByURL)return"";let n=(0,A.print)({kind:w.h.STRING,value:t.specifiedByURL});return` @specifiedBy(url: ${n})`}(t):isObjectType(t)?printDescription(t)+`type ${t.name}`+printImplementedInterfaces(t)+printFields(t):isInterfaceType(t)?printDescription(t)+`interface ${t.name}`+printImplementedInterfaces(t)+printFields(t):isUnionType(t)?function(t){let n=t.getTypes(),i=n.length?" = "+n.join(" | "):"";return printDescription(t)+"union "+t.name+i}(t):isEnumType(t)?function(t){let n=t.getValues().map((t,n)=>printDescription(t," ",!n)+" "+t.name+printDeprecated(t.deprecationReason));return printDescription(t)+`enum ${t.name}`+printBlock(n)}(t):isInputObjectType(t)?function(t){let n=Object.values(t.getFields()).map((t,n)=>printDescription(t," ",!n)+" "+printInputValue(t));return printDescription(t)+`input ${t.name}`+printBlock(n)}(t):void(0,H.k)(!1,"Unexpected type: "+(0,_.X)(t))}function printImplementedInterfaces(t){let n=t.getInterfaces();return n.length?" implements "+n.map(t=>t.name).join(" & "):""}function printFields(t){let n=Object.values(t.getFields()).map((t,n)=>printDescription(t," ",!n)+" "+t.name+printArgs(t.args," ")+": "+String(t.type)+printDeprecated(t.deprecationReason));return printBlock(n)}function printBlock(t){return 0!==t.length?" {\n"+t.join("\n")+"\n}":""}function printArgs(t,n=""){return 0===t.length?"":t.every(t=>!t.description)?"("+t.map(printInputValue).join(", ")+")":"(\n"+t.map((t,i)=>printDescription(t," "+n,!i)+" "+n+printInputValue(t)).join("\n")+"\n"+n+")"}function printInputValue(t){let n=astFromValue(t.defaultValue,t.type),i=t.name+": "+String(t.type);return n&&(i+=` = ${(0,A.print)(n)}`),i+printDeprecated(t.deprecationReason)}function printDeprecated(t){if(null==t)return"";if(t!==B){let n=(0,A.print)({kind:w.h.STRING,value:t});return` @deprecated(reason: ${n})`}return" @deprecated"}function printDescription(t,n="",i=!0){let{description:o}=t;if(null==o)return"";let a=(0,A.print)({kind:w.h.STRING,value:o,block:(0,eb.MZ)(o)}),u=n&&!i?"\n"+n:n;return u+a.replace(/\n/g,"\n"+n)+"\n"}function concatAST(t){let n=[];for(let i of t)n.push(...i.definitions);return{kind:w.h.DOCUMENT,definitions:n}}function separateOperations(t){let n=[],i=Object.create(null);for(let o of t.definitions)switch(o.kind){case w.h.OPERATION_DEFINITION:n.push(o);break;case w.h.FRAGMENT_DEFINITION:i[o.name.value]=collectDependencies(o.selectionSet)}let o=Object.create(null);for(let a of n){let n=new Set;for(let t of collectDependencies(a.selectionSet))!function collectTransitiveDependencies(t,n,i){if(!t.has(i)){t.add(i);let o=n[i];if(void 0!==o)for(let i of o)collectTransitiveDependencies(t,n,i)}}(n,i,t);let u=a.name?a.name.value:"";o[u]={kind:w.h.DOCUMENT,definitions:t.definitions.filter(t=>t===a||t.kind===w.h.FRAGMENT_DEFINITION&&n.has(t.name.value))}}return o}function collectDependencies(t){let n=[];return(0,eo.Vn)(t,{FragmentSpread(t){n.push(t.name.value)}}),n}function stripIgnoredCharacters(t){let n=(0,ep.T)(t)?t:new ep.H(t),i=n.body,o=new ey.h(n),a="",u=!1;for(;o.advance().kind!==em.T.EOF;){let t=o.token,n=t.kind,c=!(0,ey.u)(t.kind);u&&(c||t.kind===em.T.SPREAD)&&(a+=" ");let f=i.slice(t.start,t.end);n===em.T.BLOCK_STRING?a+=(0,eb.LZ)(t.value,{minimize:!0}):a+=f,u=c}return a}function assertValidName(t){let n=isValidNameError(t);if(n)throw n;return t}function isValidNameError(t){if("string"==typeof t||(0,b.a)(!1,"Expected name to be a string."),t.startsWith("__"))return new E.__(`Name "${t}" must not begin with "__", which is reserved by GraphQL introspection.`);try{assertName(t)}catch(t){return t}}function findBreakingChanges(t,n){return findSchemaChanges(t,n).filter(t=>t.type in v)}function findDangerousChanges(t,n){return findSchemaChanges(t,n).filter(t=>t.type in g)}function findSchemaChanges(t,n){return[...function(t,n){let i=[],o=diff(Object.values(t.getTypeMap()),Object.values(n.getTypeMap()));for(let t of o.removed)i.push({type:v.TYPE_REMOVED,description:isSpecifiedScalarType(t)?`Standard scalar ${t.name} was removed because it is not referenced anymore.`:`${t.name} was removed.`});for(let[t,n]of o.persisted)isEnumType(t)&&isEnumType(n)?i.push(...function(t,n){let i=[],o=diff(t.getValues(),n.getValues());for(let n of o.added)i.push({type:g.VALUE_ADDED_TO_ENUM,description:`${n.name} was added to enum type ${t.name}.`});for(let n of o.removed)i.push({type:v.VALUE_REMOVED_FROM_ENUM,description:`${n.name} was removed from enum type ${t.name}.`});return i}(t,n)):isUnionType(t)&&isUnionType(n)?i.push(...function(t,n){let i=[],o=diff(t.getTypes(),n.getTypes());for(let n of o.added)i.push({type:g.TYPE_ADDED_TO_UNION,description:`${n.name} was added to union type ${t.name}.`});for(let n of o.removed)i.push({type:v.TYPE_REMOVED_FROM_UNION,description:`${n.name} was removed from union type ${t.name}.`});return i}(t,n)):isInputObjectType(t)&&isInputObjectType(n)?i.push(...function(t,n){let i=[],o=diff(Object.values(t.getFields()),Object.values(n.getFields()));for(let n of o.added)isRequiredInputField(n)?i.push({type:v.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${n.name} on input type ${t.name} was added.`}):i.push({type:g.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${n.name} on input type ${t.name} was added.`});for(let n of o.removed)i.push({type:v.FIELD_REMOVED,description:`${t.name}.${n.name} was removed.`});for(let[n,a]of o.persisted){let o=isChangeSafeForInputObjectFieldOrFieldArg(n.type,a.type);o||i.push({type:v.FIELD_CHANGED_KIND,description:`${t.name}.${n.name} changed type from ${String(n.type)} to ${String(a.type)}.`})}return i}(t,n)):isObjectType(t)&&isObjectType(n)?i.push(...findFieldChanges(t,n),...findImplementedInterfacesChanges(t,n)):isInterfaceType(t)&&isInterfaceType(n)?i.push(...findFieldChanges(t,n),...findImplementedInterfacesChanges(t,n)):t.constructor!==n.constructor&&i.push({type:v.TYPE_CHANGED_KIND,description:`${t.name} changed from ${typeKindName(t)} to ${typeKindName(n)}.`});return i}(t,n),...function(t,n){let i=[],o=diff(t.getDirectives(),n.getDirectives());for(let t of o.removed)i.push({type:v.DIRECTIVE_REMOVED,description:`${t.name} was removed.`});for(let[t,n]of o.persisted){let o=diff(t.args,n.args);for(let n of o.added)isRequiredArgument(n)&&i.push({type:v.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${n.name} on directive ${t.name} was added.`});for(let n of o.removed)i.push({type:v.DIRECTIVE_ARG_REMOVED,description:`${n.name} was removed from ${t.name}.`});for(let o of(t.isRepeatable&&!n.isRepeatable&&i.push({type:v.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${t.name}.`}),t.locations))n.locations.includes(o)||i.push({type:v.DIRECTIVE_LOCATION_REMOVED,description:`${o} was removed from ${t.name}.`})}return i}(t,n)]}function findImplementedInterfacesChanges(t,n){let i=[],o=diff(t.getInterfaces(),n.getInterfaces());for(let n of o.added)i.push({type:g.IMPLEMENTED_INTERFACE_ADDED,description:`${n.name} added to interfaces implemented by ${t.name}.`});for(let n of o.removed)i.push({type:v.IMPLEMENTED_INTERFACE_REMOVED,description:`${t.name} no longer implements interface ${n.name}.`});return i}function findFieldChanges(t,n){let i=[],o=diff(Object.values(t.getFields()),Object.values(n.getFields()));for(let n of o.removed)i.push({type:v.FIELD_REMOVED,description:`${t.name}.${n.name} was removed.`});for(let[n,a]of o.persisted){i.push(...function(t,n,i){let o=[],a=diff(n.args,i.args);for(let i of a.removed)o.push({type:v.ARG_REMOVED,description:`${t.name}.${n.name} arg ${i.name} was removed.`});for(let[i,u]of a.persisted){let a=isChangeSafeForInputObjectFieldOrFieldArg(i.type,u.type);if(a){if(void 0!==i.defaultValue){if(void 0===u.defaultValue)o.push({type:g.ARG_DEFAULT_VALUE_CHANGE,description:`${t.name}.${n.name} arg ${i.name} defaultValue was removed.`});else{let a=findBreakingChanges_stringifyValue(i.defaultValue,i.type),c=findBreakingChanges_stringifyValue(u.defaultValue,u.type);a!==c&&o.push({type:g.ARG_DEFAULT_VALUE_CHANGE,description:`${t.name}.${n.name} arg ${i.name} has changed defaultValue from ${a} to ${c}.`})}}}else o.push({type:v.ARG_CHANGED_KIND,description:`${t.name}.${n.name} arg ${i.name} has changed type from ${String(i.type)} to ${String(u.type)}.`})}for(let i of a.added)isRequiredArgument(i)?o.push({type:v.REQUIRED_ARG_ADDED,description:`A required arg ${i.name} on ${t.name}.${n.name} was added.`}):o.push({type:g.OPTIONAL_ARG_ADDED,description:`An optional arg ${i.name} on ${t.name}.${n.name} was added.`});return o}(t,n,a));let o=function isChangeSafeForObjectOrInterfaceField(t,n){return isListType(t)?isListType(n)&&isChangeSafeForObjectOrInterfaceField(t.ofType,n.ofType)||isNonNullType(n)&&isChangeSafeForObjectOrInterfaceField(t,n.ofType):isNonNullType(t)?isNonNullType(n)&&isChangeSafeForObjectOrInterfaceField(t.ofType,n.ofType):isNamedType(n)&&t.name===n.name||isNonNullType(n)&&isChangeSafeForObjectOrInterfaceField(t,n.ofType)}(n.type,a.type);o||i.push({type:v.FIELD_CHANGED_KIND,description:`${t.name}.${n.name} changed type from ${String(n.type)} to ${String(a.type)}.`})}return i}function isChangeSafeForInputObjectFieldOrFieldArg(t,n){return isListType(t)?isListType(n)&&isChangeSafeForInputObjectFieldOrFieldArg(t.ofType,n.ofType):isNonNullType(t)?isNonNullType(n)&&isChangeSafeForInputObjectFieldOrFieldArg(t.ofType,n.ofType)||!isNonNullType(n)&&isChangeSafeForInputObjectFieldOrFieldArg(t.ofType,n):isNamedType(n)&&t.name===n.name}function typeKindName(t){return isScalarType(t)?"a Scalar type":isObjectType(t)?"an Object type":isInterfaceType(t)?"an Interface type":isUnionType(t)?"a Union type":isEnumType(t)?"an Enum type":isInputObjectType(t)?"an Input type":void(0,H.k)(!1,"Unexpected type: "+(0,_.X)(t))}function findBreakingChanges_stringifyValue(t,n){let i=astFromValue(t,n);return null!=i||(0,H.k)(!1),(0,A.print)(sortValueNode(i))}function diff(t,n){let i=[],o=[],a=[],u=keyMap(t,({name:t})=>t),c=keyMap(n,({name:t})=>t);for(let n of t){let t=c[n.name];void 0===t?o.push(n):a.push([n,t])}for(let t of n)void 0===u[t.name]&&i.push(t);return{added:i,persisted:a,removed:o}}(p=v||(v={})).TYPE_REMOVED="TYPE_REMOVED",p.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",p.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",p.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",p.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",p.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",p.FIELD_REMOVED="FIELD_REMOVED",p.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",p.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",p.ARG_REMOVED="ARG_REMOVED",p.ARG_CHANGED_KIND="ARG_CHANGED_KIND",p.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",p.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",p.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",p.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",p.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED",(y=g||(g={})).VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",y.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",y.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",y.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",y.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",y.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"},75844:function(t,n,i){"use strict";i.d(n,{D$:function(){return isTypeExtensionNode},G4:function(){return isTypeSystemDefinitionNode},Ir:function(){return isDefinitionNode},Of:function(){return function isConstValueNode(t){return isValueNode(t)&&(t.kind===o.h.LIST?t.values.some(isConstValueNode):t.kind===o.h.OBJECT?t.fields.some(t=>isConstValueNode(t.value)):t.kind!==o.h.VARIABLE)}},VB:function(){return isTypeNode},Wk:function(){return isExecutableDefinitionNode},aU:function(){return isTypeSystemExtensionNode},nr:function(){return isValueNode},pO:function(){return isSelectionNode},zT:function(){return isTypeDefinitionNode}});var o=i(97359);function isDefinitionNode(t){return isExecutableDefinitionNode(t)||isTypeSystemDefinitionNode(t)||isTypeSystemExtensionNode(t)}function isExecutableDefinitionNode(t){return t.kind===o.h.OPERATION_DEFINITION||t.kind===o.h.FRAGMENT_DEFINITION}function isSelectionNode(t){return t.kind===o.h.FIELD||t.kind===o.h.FRAGMENT_SPREAD||t.kind===o.h.INLINE_FRAGMENT}function isValueNode(t){return t.kind===o.h.VARIABLE||t.kind===o.h.INT||t.kind===o.h.FLOAT||t.kind===o.h.STRING||t.kind===o.h.BOOLEAN||t.kind===o.h.NULL||t.kind===o.h.ENUM||t.kind===o.h.LIST||t.kind===o.h.OBJECT}function isTypeNode(t){return t.kind===o.h.NAMED_TYPE||t.kind===o.h.LIST_TYPE||t.kind===o.h.NON_NULL_TYPE}function isTypeSystemDefinitionNode(t){return t.kind===o.h.SCHEMA_DEFINITION||isTypeDefinitionNode(t)||t.kind===o.h.DIRECTIVE_DEFINITION}function isTypeDefinitionNode(t){return t.kind===o.h.SCALAR_TYPE_DEFINITION||t.kind===o.h.OBJECT_TYPE_DEFINITION||t.kind===o.h.INTERFACE_TYPE_DEFINITION||t.kind===o.h.UNION_TYPE_DEFINITION||t.kind===o.h.ENUM_TYPE_DEFINITION||t.kind===o.h.INPUT_OBJECT_TYPE_DEFINITION}function isTypeSystemExtensionNode(t){return t.kind===o.h.SCHEMA_EXTENSION||isTypeExtensionNode(t)}function isTypeExtensionNode(t){return t.kind===o.h.SCALAR_TYPE_EXTENSION||t.kind===o.h.OBJECT_TYPE_EXTENSION||t.kind===o.h.INTERFACE_TYPE_EXTENSION||t.kind===o.h.UNION_TYPE_EXTENSION||t.kind===o.h.ENUM_TYPE_EXTENSION||t.kind===o.h.INPUT_OBJECT_TYPE_EXTENSION}},16918:function(t,n,i){"use strict";i.r(n),i.d(n,{print:function(){return print}});var o=i(87392);let a=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function escapedReplacer(t){return u[t.charCodeAt(0)]}let u=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var c=i(77304);function print(t){return(0,c.Vn)(t,f)}let f={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>join(t.definitions,"\n\n")},OperationDefinition:{leave(t){let n=wrap("(",join(t.variableDefinitions,", "),")"),i=join([t.operation,join([t.name,n]),join(t.directives," ")]," ");return("query"===i?"":i+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:n,defaultValue:i,directives:o})=>t+": "+n+wrap(" = ",i)+wrap(" ",join(o," "))},SelectionSet:{leave:({selections:t})=>block(t)},Field:{leave({alias:t,name:n,arguments:i,directives:o,selectionSet:a}){let u=wrap("",t,": ")+n,c=u+wrap("(",join(i,", "),")");return c.length>80&&(c=u+wrap("(\n",indent(join(i,"\n")),"\n)")),join([c,join(o," "),a]," ")}},Argument:{leave:({name:t,value:n})=>t+": "+n},FragmentSpread:{leave:({name:t,directives:n})=>"..."+t+wrap(" ",join(n," "))},InlineFragment:{leave:({typeCondition:t,directives:n,selectionSet:i})=>join(["...",wrap("on ",t),join(n," "),i]," ")},FragmentDefinition:{leave:({name:t,typeCondition:n,variableDefinitions:i,directives:o,selectionSet:a})=>`fragment ${t}${wrap("(",join(i,", "),")")} on ${n} ${wrap("",join(o," ")," ")}`+a},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:n})=>n?(0,o.LZ)(t):`"${t.replace(a,escapedReplacer)}"`},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+join(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+join(t,", ")+"}"},ObjectField:{leave:({name:t,value:n})=>t+": "+n},Directive:{leave:({name:t,arguments:n})=>"@"+t+wrap("(",join(n,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:n,operationTypes:i})=>wrap("",t,"\n")+join(["schema",join(n," "),block(i)]," ")},OperationTypeDefinition:{leave:({operation:t,type:n})=>t+": "+n},ScalarTypeDefinition:{leave:({description:t,name:n,directives:i})=>wrap("",t,"\n")+join(["scalar",n,join(i," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:n,interfaces:i,directives:o,fields:a})=>wrap("",t,"\n")+join(["type",n,wrap("implements ",join(i," & ")),join(o," "),block(a)]," ")},FieldDefinition:{leave:({description:t,name:n,arguments:i,type:o,directives:a})=>wrap("",t,"\n")+n+(hasMultilineItems(i)?wrap("(\n",indent(join(i,"\n")),"\n)"):wrap("(",join(i,", "),")"))+": "+o+wrap(" ",join(a," "))},InputValueDefinition:{leave:({description:t,name:n,type:i,defaultValue:o,directives:a})=>wrap("",t,"\n")+join([n+": "+i,wrap("= ",o),join(a," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:n,interfaces:i,directives:o,fields:a})=>wrap("",t,"\n")+join(["interface",n,wrap("implements ",join(i," & ")),join(o," "),block(a)]," ")},UnionTypeDefinition:{leave:({description:t,name:n,directives:i,types:o})=>wrap("",t,"\n")+join(["union",n,join(i," "),wrap("= ",join(o," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:n,directives:i,values:o})=>wrap("",t,"\n")+join(["enum",n,join(i," "),block(o)]," ")},EnumValueDefinition:{leave:({description:t,name:n,directives:i})=>wrap("",t,"\n")+join([n,join(i," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:n,directives:i,fields:o})=>wrap("",t,"\n")+join(["input",n,join(i," "),block(o)]," ")},DirectiveDefinition:{leave:({description:t,name:n,arguments:i,repeatable:o,locations:a})=>wrap("",t,"\n")+"directive @"+n+(hasMultilineItems(i)?wrap("(\n",indent(join(i,"\n")),"\n)"):wrap("(",join(i,", "),")"))+(o?" repeatable":"")+" on "+join(a," | ")},SchemaExtension:{leave:({directives:t,operationTypes:n})=>join(["extend schema",join(t," "),block(n)]," ")},ScalarTypeExtension:{leave:({name:t,directives:n})=>join(["extend scalar",t,join(n," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:n,directives:i,fields:o})=>join(["extend type",t,wrap("implements ",join(n," & ")),join(i," "),block(o)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:n,directives:i,fields:o})=>join(["extend interface",t,wrap("implements ",join(n," & ")),join(i," "),block(o)]," ")},UnionTypeExtension:{leave:({name:t,directives:n,types:i})=>join(["extend union",t,join(n," "),wrap("= ",join(i," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:n,values:i})=>join(["extend enum",t,join(n," "),block(i)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:n,fields:i})=>join(["extend input",t,join(n," "),block(i)]," ")}};function join(t,n=""){var i;return null!==(i=null==t?void 0:t.filter(t=>t).join(n))&&void 0!==i?i:""}function block(t){return wrap("{\n",indent(join(t,"\n")),"\n}")}function wrap(t,n,i=""){return null!=n&&""!==n?t+n+i:""}function indent(t){return wrap(" ",t.replace(/\n/g,"\n "))}function hasMultilineItems(t){var n;return null!==(n=null==t?void 0:t.some(t=>t.includes("\n")))&&void 0!==n&&n}},77304:function(t,n,i){"use strict";i.d(n,{$_:function(){return f},CK:function(){return getVisitFn},Eu:function(){return getEnterLeaveForKind},Vn:function(){return visit},j1:function(){return visitInParallel}});var o=i(37826),a=i(25821),u=i(72380),c=i(97359);let f=Object.freeze({});function visit(t,n,i=u.h8){let p,y,m;let v=new Map;for(let t of Object.values(c.h))v.set(t,getEnterLeaveForKind(n,t));let g=Array.isArray(t),b=[t],T=-1,_=[],E=t,S=[],I=[];do{var O,N,w;let t;T++;let c=T===b.length,A=c&&0!==_.length;if(c){if(y=0===I.length?void 0:S[S.length-1],E=m,m=I.pop(),A){if(g){E=E.slice();let t=0;for(let[n,i]of _){let o=n-t;null===i?(E.splice(o,1),t++):E[o]=i}}else for(let[t,n]of(E=Object.defineProperties({},Object.getOwnPropertyDescriptors(E)),_))E[t]=n}T=p.index,b=p.keys,_=p.edits,g=p.inArray,p=p.prev}else if(m){if(null==(E=m[y=g?T:b[T]]))continue;S.push(y)}if(!Array.isArray(E)){(0,u.UG)(E)||(0,o.a)(!1,`Invalid AST Node: ${(0,a.X)(E)}.`);let i=c?null===(O=v.get(E.kind))||void 0===O?void 0:O.leave:null===(N=v.get(E.kind))||void 0===N?void 0:N.enter;if((t=null==i?void 0:i.call(n,E,y,m,S,I))===f)break;if(!1===t){if(!c){S.pop();continue}}else if(void 0!==t&&(_.push([y,t]),!c)){if((0,u.UG)(t))E=t;else{S.pop();continue}}}void 0===t&&A&&_.push([y,E]),c?S.pop():(p={inArray:g,index:T,keys:b,edits:_,prev:p},b=(g=Array.isArray(E))?E:null!==(w=i[E.kind])&&void 0!==w?w:[],T=-1,_=[],m&&I.push(m),m=E)}while(void 0!==p);return 0!==_.length?_[_.length-1][1]:t}function visitInParallel(t){let n=Array(t.length).fill(null),i=Object.create(null);for(let o of Object.values(c.h)){let a=!1,u=Array(t.length).fill(void 0),c=Array(t.length).fill(void 0);for(let n=0;nthis.max;)this.delete(this.oldest.key)}delete(t){let n=this.map.get(t);return!!n&&(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(t),this.dispose(n.value,t),!0)}};var u=i(70093);let c=new u.g7,{hasOwnProperty:f}=Object.prototype,p=Array.from||function(t){let n=[];return t.forEach(t=>n.push(t)),n};function maybeUnsubscribe(t){let{unsubscribe:n}=t;"function"==typeof n&&(t.unsubscribe=void 0,n())}let y=[];function assert(t,n){if(!t)throw Error(n||"assertion failure")}function valueGet(t){switch(t.length){case 0:throw Error("unknown value");case 1:return t[0];case 2:throw t[1]}}let Entry=class Entry{constructor(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Entry.count}peek(){if(1===this.value.length&&!mightBeDirty(this))return rememberParent(this),this.value[0]}recompute(t){var n;return assert(!this.recomputing,"already recomputing"),rememberParent(this),mightBeDirty(this)&&(forgetChildren(this),c.withValue(this,recomputeNewValue,[this,t]),function(t,n){if("function"==typeof t.subscribe)try{maybeUnsubscribe(t),t.unsubscribe=t.subscribe.apply(null,n)}catch(n){return t.setDirty(),!1}return!0}(this,t)&&(this.dirty=!1,mightBeDirty(this)||(n=this,eachParent(n,reportCleanChild)))),valueGet(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,eachParent(this,reportDirtyChild),maybeUnsubscribe(this))}dispose(){this.setDirty(),forgetChildren(this),eachParent(this,(t,n)=>{t.setDirty(),forgetChild(t,this)})}forget(){this.dispose()}dependOn(t){t.add(this),this.deps||(this.deps=y.pop()||new Set),this.deps.add(t)}forgetDeps(){this.deps&&(p(this.deps).forEach(t=>t.delete(this)),this.deps.clear(),y.push(this.deps),this.deps=null)}};function rememberParent(t){let n=c.getValue();if(n)return t.parents.add(n),n.childValues.has(t)||n.childValues.set(t,[]),mightBeDirty(t)?reportDirtyChild(n,t):reportCleanChild(n,t),n}function recomputeNewValue(t,n){t.recomputing=!0,t.value.length=0;try{t.value[0]=t.fn.apply(null,n)}catch(n){t.value[1]=n}t.recomputing=!1}function mightBeDirty(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function eachParent(t,n){let i=t.parents.size;if(i){let o=p(t.parents);for(let a=0;a0&&i===n.length&&t[i-1]===n[i-1]}(i,n.value)&&t.setDirty(),removeDirtyChild(t,n),mightBeDirty(t)||eachParent(t,reportCleanChild)}function removeDirtyChild(t,n){let i=t.dirtyChildren;i&&(i.delete(n),0===i.size&&(y.length<100&&y.push(i),t.dirtyChildren=null))}function forgetChildren(t){t.childValues.size>0&&t.childValues.forEach((n,i)=>{forgetChild(t,i)}),t.forgetDeps(),assert(null===t.dirtyChildren)}function forgetChild(t,n){n.parents.delete(t),t.childValues.delete(n),removeDirtyChild(t,n)}Entry.count=0;let m={setDirty:!0,dispose:!0,forget:!0};function dep(t){let n=new Map,i=t&&t.subscribe;function depend(t){let o=c.getValue();if(o){let a=n.get(t);a||n.set(t,a=new Set),o.dependOn(a),"function"==typeof i&&(maybeUnsubscribe(a),a.unsubscribe=i(t))}}return depend.dirty=function(t,i){let o=n.get(t);if(o){let a=i&&f.call(m,i)?i:"setDirty";p(o).forEach(t=>t[a]()),n.delete(t),maybeUnsubscribe(o)}},depend}function defaultMakeCacheKey(...t){let n=o||(o=new a.B("function"==typeof WeakMap));return n.lookupArray(t)}let v=new Set;function wrap(t,{max:n=65536,makeCacheKey:i=defaultMakeCacheKey,keyArgs:o,subscribe:a}=Object.create(null)){let u=new Cache(n,t=>t.dispose()),optimistic=function(){let n=i.apply(null,o?o.apply(null,arguments):arguments);if(void 0===n)return t.apply(null,arguments);let f=u.get(n);f||(u.set(n,f=new Entry(t)),f.subscribe=a,f.forget=()=>u.delete(n));let p=f.recompute(Array.prototype.slice.call(arguments));return u.set(n,f),v.add(u),c.hasValue()||(v.forEach(t=>t.clean()),v.clear()),p};function dirtyKey(t){let n=u.get(t);n&&n.setDirty()}function peekKey(t){let n=u.get(t);if(n)return n.peek()}function forgetKey(t){return u.delete(t)}return Object.defineProperty(optimistic,"size",{get:()=>u.map.size,configurable:!1,enumerable:!1}),Object.freeze(optimistic.options={max:n,makeCacheKey:i,keyArgs:o,subscribe:a}),optimistic.dirtyKey=dirtyKey,optimistic.dirty=function(){dirtyKey(i.apply(null,arguments))},optimistic.peekKey=peekKey,optimistic.peek=function(){return peekKey(i.apply(null,arguments))},optimistic.forgetKey=forgetKey,optimistic.forget=function(){return forgetKey(i.apply(null,arguments))},optimistic.makeCacheKey=i,optimistic.getKey=o?function(){return i.apply(null,o.apply(null,arguments))}:i,Object.freeze(optimistic)}},66128:function(t,n,i){"use strict";i.d(n,{U6:function(){return setVerbosity},ej:function(){return p},kG:function(){return invariant}});var o,a=i(97582),u="Invariant Violation",c=Object.setPrototypeOf,f=void 0===c?function(t,n){return t.__proto__=n,t}:c,p=function(t){function InvariantError(n){void 0===n&&(n=u);var i=t.call(this,"number"==typeof n?u+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return i.framesToPop=1,i.name=u,f(i,InvariantError.prototype),i}return(0,a.ZT)(InvariantError,t),InvariantError}(Error);function invariant(t,n){if(!t)throw new p(n)}var y=["debug","log","warn","error","silent"],m=y.indexOf("log");function wrapConsoleMethod(t){return function(){if(y.indexOf(t)>=m)return(console[t]||console.log).apply(console,arguments)}}function setVerbosity(t){var n=y[m];return m=Math.max(0,y.indexOf(t)),n}(o=invariant||(invariant={})).debug=wrapConsoleMethod("debug"),o.log=wrapConsoleMethod("log"),o.warn=wrapConsoleMethod("warn"),o.error=wrapConsoleMethod("error")},48216:function(t,n,i){"use strict";function _arrayLikeToArray(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,o=Array(n);i1,a=!1,u=arguments[1],c=u;return new i(function(i){return n.subscribe({next:function(n){var u=!a;if(a=!0,!u||o)try{c=t(c,n)}catch(t){return i.error(t)}else c=n},error:function(t){i.error(t)},complete:function(){if(!a&&!o)return i.error(TypeError("Cannot reduce an empty sequence"));i.next(c),i.complete()}})})},t.concat=function(){for(var t=this,n=arguments.length,i=Array(n),o=0;o=0&&a.splice(t,1),completeIfDone()}});a.push(u)},error:function(t){o.error(t)},complete:function(){completeIfDone()}});function completeIfDone(){u.closed&&0===a.length&&o.complete()}return function(){a.forEach(function(t){return t.unsubscribe()}),u.unsubscribe()}})},t[a]=function(){return this},Observable.from=function(t){var n="function"==typeof this?this:Observable;if(null==t)throw TypeError(t+" is not an object");var i=getMethod(t,a);if(i){var u=i.call(t);if(Object(u)!==u)throw TypeError(u+" is not an object");return u instanceof p&&u.constructor===n?u:new n(function(t){return u.subscribe(t)})}if(hasSymbol("iterator")&&(i=getMethod(t,o)))return new n(function(n){enqueue(function(){if(!n.closed){for(var o,a=function(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,n){if(t){if("string"==typeof t)return _arrayLikeToArray(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);if("Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(t,n)}}(t))){i&&(t=i);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i.call(t));!(o=a()).done;){var u=o.value;if(n.next(u),n.closed)return}n.complete()}})});if(Array.isArray(t))return new n(function(n){enqueue(function(){if(!n.closed){for(var i=0;i