@stigg/embed-sdk 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/embed-sdk.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Stigg=t():e.Stigg=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=230)}([function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function l(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function h(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Tt(e,t,n,r,!0).utc()}function m(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function _(e){if(null==e._isValid){var t=m(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function y(e){var t=p(NaN);return null!=e?h(m(t),e):m(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=i.momentProperties=[],g=!1;function b(e,t){var n,r,i,a=v.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=m(t)),l(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)l(i=t[r=v[n]])||(e[r]=i);return e}function M(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===g&&(g=!0,i.updateOffset(this),g=!1)}function w(e){return e instanceof M||null!=e&&null!=e._isAMomentObject}function k(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function L(e,t){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var r,a,o,u=[],l=arguments.length;for(a=0;a<l;a++){if(r="","object"==typeof arguments[a]){for(o in r+="\n["+a+"] ",arguments[0])s(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[a];u.push(r)}k(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var T,D={};function S(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),D[e]||(k(t),D[e]=!0)}function E(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Y(e,t){var n,r=h({},e);for(n in t)s(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&o(e[n])&&(r[n]=h({},r[n]));return r}function x(e){null!=e&&this.set(e)}function O(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,C={},A={};function I(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(A[e]=i),t&&(A[t[0]]=function(){return O(i.apply(this,arguments),t[1],t[2])}),n&&(A[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function N(e,t){return e.isValid()?(t=F(t,e.localeData()),C[t]=C[t]||function(e){var t,n,r,i=e.match(j);for(t=0,n=i.length;t<n;t++)A[i[t]]?i[t]=A[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,a="";for(r=0;r<n;r++)a+=E(i[r])?i[r].call(t,e):i[r];return a}}(t),C[t](e)):e.localeData().invalidDate()}function F(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(P.lastIndex=0;n>=0&&P.test(e);)e=e.replace(P,r),P.lastIndex=0,n-=1;return e}var R={};function H(e,t){var n=e.toLowerCase();R[n]=R[n+"s"]=R[t]=e}function U(e){return"string"==typeof e?R[e]||R[e.toLowerCase()]:void 0}function z(e){var t,n,r={};for(n in e)s(e,n)&&(t=U(n))&&(r[t]=e[n]);return r}var W={};function B(e,t){W[e]=t}function q(e){return e%4==0&&e%100!=0||e%400==0}function V(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function $(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=V(t)),n}function G(e,t){return function(n){return null!=n?(J(this,e,n),i.updateOffset(this,t),this):Q(this,e)}}function Q(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function J(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&q(e.year())&&1===e.month()&&29===e.date()?(n=$(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),we(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var K,X=/\d/,Z=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,re=/\d\d?/,ie=/\d\d\d\d?/,ae=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,se=/\d{1,4}/,ue=/[+-]?\d{1,6}/,le=/\d+/,ce=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,fe=/Z|[+-]\d\d(?::?\d\d)?/gi,he=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function pe(e,t,n){K[e]=E(t)?t:function(e,r){return e&&n?n:t}}function me(e,t){return s(K,e)?K[e](t._strict,t._locale):new RegExp(_e(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function _e(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}K={};var ye,ve={};function ge(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=$(e)}),r=e.length,n=0;n<r;n++)ve[e[n]]=i}function be(e,t){ge(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Me(e,t,n){null!=t&&s(ve,e)&&ve[e](t,n._a,n,e)}function we(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?q(e)?29:28:31-r%7%2}ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},I("M",["MM",2],"Mo",(function(){return this.month()+1})),I("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),I("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),H("month","M"),B("month",8),pe("M",re),pe("MM",re,Z),pe("MMM",(function(e,t){return t.monthsShortRegex(e)})),pe("MMMM",(function(e,t){return t.monthsRegex(e)})),ge(["M","MM"],(function(e,t){t[1]=$(e)-1})),ge(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[1]=i:m(n).invalidMonth=e}));var ke="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Le="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Te=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,De=he,Se=he;function Ee(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=ye.call(this._shortMonthsParse,o))?i:null:-1!==(i=ye.call(this._longMonthsParse,o))?i:null:"MMM"===t?-1!==(i=ye.call(this._shortMonthsParse,o))||-1!==(i=ye.call(this._longMonthsParse,o))?i:null:-1!==(i=ye.call(this._longMonthsParse,o))||-1!==(i=ye.call(this._shortMonthsParse,o))?i:null}function Ye(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=$(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),we(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function xe(e){return null!=e?(Ye(this,e),i.updateOffset(this,!0),this):Q(this,"Month")}function Oe(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],a=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),a.sort(e),t=0;t<12;t++)r[t]=_e(r[t]),i[t]=_e(i[t]);for(t=0;t<24;t++)a[t]=_e(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function je(e){return q(e)?366:365}I("Y",0,0,(function(){var e=this.year();return e<=9999?O(e,4):"+"+e})),I(0,["YY",2],0,(function(){return this.year()%100})),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),H("year","y"),B("year",1),pe("Y",ce),pe("YY",re,Z),pe("YYYY",se,te),pe("YYYYY",ue,ne),pe("YYYYYY",ue,ne),ge(["YYYYY","YYYYYY"],0),ge("YYYY",(function(e,t){t[0]=2===e.length?i.parseTwoDigitYear(e):$(e)})),ge("YY",(function(e,t){t[0]=i.parseTwoDigitYear(e)})),ge("Y",(function(e,t){t[0]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return $(e)+($(e)>68?1900:2e3)};var Pe=G("FullYear",!0);function Ce(e,t,n,r,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function Ae(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ie(e,t,n){var r=7+t-n;return-(7+Ae(e,0,r).getUTCDay()-t)%7+r-1}function Ne(e,t,n,r,i){var a,o,s=1+7*(t-1)+(7+n-r)%7+Ie(e,r,i);return s<=0?o=je(a=e-1)+s:s>je(e)?(a=e+1,o=s-je(e)):(a=e,o=s),{year:a,dayOfYear:o}}function Fe(e,t,n){var r,i,a=Ie(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?r=o+Re(i=e.year()-1,t,n):o>Re(e.year(),t,n)?(r=o-Re(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function Re(e,t,n){var r=Ie(e,t,n),i=Ie(e+1,t,n);return(je(e)-r+i)/7}function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),H("week","w"),H("isoWeek","W"),B("week",5),B("isoWeek",5),pe("w",re),pe("ww",re,Z),pe("W",re),pe("WW",re,Z),be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=$(e)})),I("d",0,"do","day"),I("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),I("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),I("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),H("day","d"),H("weekday","e"),H("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),pe("d",re),pe("e",re),pe("E",re),pe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),pe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),pe("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:m(n).invalidWeekday=e})),be(["d","e","E"],(function(e,t,n,r){t[r]=$(e)}));var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),We="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Be=he,qe=he,Ve=he;function $e(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=ye.call(this._weekdaysParse,o))?i:null:"ddd"===t?-1!==(i=ye.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=ye.call(this._minWeekdaysParse,o))?i:null:"dddd"===t?-1!==(i=ye.call(this._weekdaysParse,o))||-1!==(i=ye.call(this._shortWeekdaysParse,o))||-1!==(i=ye.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=ye.call(this._shortWeekdaysParse,o))||-1!==(i=ye.call(this._weekdaysParse,o))||-1!==(i=ye.call(this._minWeekdaysParse,o))?i:null:-1!==(i=ye.call(this._minWeekdaysParse,o))||-1!==(i=ye.call(this._weekdaysParse,o))||-1!==(i=ye.call(this._shortWeekdaysParse,o))?i:null}function Ge(){function e(e,t){return t.length-e.length}var t,n,r,i,a,o=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=_e(this.weekdaysMin(n,"")),i=_e(this.weekdaysShort(n,"")),a=_e(this.weekdays(n,"")),o.push(r),s.push(i),u.push(a),l.push(r),l.push(i),l.push(a);o.sort(e),s.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Qe(){return this.hours()%12||12}function Je(e,t){I(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ke(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Qe),I("k",["kk",2],0,(function(){return this.hours()||24})),I("hmm",0,0,(function(){return""+Qe.apply(this)+O(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+Qe.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+O(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)})),Je("a",!0),Je("A",!1),H("hour","h"),B("hour",13),pe("a",Ke),pe("A",Ke),pe("H",re),pe("h",re),pe("k",re),pe("HH",re,Z),pe("hh",re,Z),pe("kk",re,Z),pe("hmm",ie),pe("hmmss",ae),pe("Hmm",ie),pe("Hmmss",ae),ge(["H","HH"],3),ge(["k","kk"],(function(e,t,n){var r=$(e);t[3]=24===r?0:r})),ge(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ge(["h","hh"],(function(e,t,n){t[3]=$(e),m(n).bigHour=!0})),ge("hmm",(function(e,t,n){var r=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r)),m(n).bigHour=!0})),ge("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r,2)),t[5]=$(e.substr(i)),m(n).bigHour=!0})),ge("Hmm",(function(e,t,n){var r=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r))})),ge("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r,2)),t[5]=$(e.substr(i))}));var Xe,Ze=G("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ke,monthsShort:Le,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:We,weekdaysShort:ze,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function it(e){return e?e.toLowerCase().replace("_","-"):e}function at(t){var r=null;if(void 0===tt[t]&&void 0!==e&&e&&e.exports&&function(e){return null!=e.match("^[^/\\\\]*$")}(t))try{r=Xe._abbr,n(238)("./"+t),ot(r)}catch(e){tt[t]=null}return tt[t]}function ot(e,t){var n;return e&&((n=l(t)?ut(e):st(e,t))?Xe=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Xe._abbr}function st(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])r=tt[t.parentLocale]._config;else{if(null==(n=at(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return tt[e]=new x(Y(r,t)),nt[e]&&nt[e].forEach((function(e){st(e.name,e.config)})),ot(e),tt[e]}return delete tt[e],null}function ut(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Xe;if(!a(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,n,r,i,a=0;a<e.length;){for(t=(i=it(e[a]).split("-")).length,n=(n=it(e[a+1]))?n.split("-"):null;t>0;){if(r=at(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&rt(i,n)>=t-1)break;t--}a++}return Xe}(e)}function lt(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>we(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,m(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),m(e)._overflowWeeks&&-1===t&&(t=7),m(e)._overflowWeekday&&-1===t&&(t=8),m(e).overflow=t),e}var ct=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,ht=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],mt=/^\/?Date\((-?\d+)/i,_t=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function vt(e){var t,n,r,i,a,o,s=e._i,u=ct.exec(s)||dt.exec(s),l=ht.length,c=pt.length;if(u){for(m(e).iso=!0,t=0,n=l;t<n;t++)if(ht[t][1].exec(u[1])){i=ht[t][0],r=!1!==ht[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=c;t<n;t++)if(pt[t][1].exec(u[3])){a=(u[2]||" ")+pt[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(u[4]){if(!ft.exec(u[4]))return void(e._isValid=!1);o="Z"}e._f=i+(a||"")+(o||""),kt(e)}else e._isValid=!1}function gt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function bt(e){var t,n,r,i,a,o,s,u,l=_t.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){if(n=l[4],r=l[3],i=l[2],a=l[5],o=l[6],s=l[7],u=[gt(n),Le.indexOf(r),parseInt(i,10),parseInt(a,10),parseInt(o,10)],s&&u.push(parseInt(s,10)),t=u,!function(e,t,n){return!e||ze.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}(l[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return yt[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(l[8],l[9],l[10]),e._d=Ae.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function Mt(e,t,n){return null!=e?e:null!=t?t:n}function wt(e){var t,n,r,a,o,s=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,i,a,o,s,u,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,o=4,n=Mt(t.GG,e._a[0],Fe(Dt(),1,4).year),r=Mt(t.W,1),((i=Mt(t.E,1))<1||i>7)&&(u=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,l=Fe(Dt(),a,o),n=Mt(t.gg,e._a[0],l.year),r=Mt(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(u=!0)):i=a),r<1||r>Re(n,a,o)?m(e)._overflowWeeks=!0:null!=u?m(e)._overflowWeekday=!0:(s=Ne(n,r,i,a,o),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=Mt(e._a[0],r[0]),(e._dayOfYear>je(o)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Ae(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ae:Ce).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(m(e).weekdayMismatch=!0)}}function kt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],m(e).empty=!0;var t,n,r,a,o,s,u,l=""+e._i,c=l.length,d=0;for(u=(r=F(e._f,e._locale).match(j)||[]).length,t=0;t<u;t++)a=r[t],(n=(l.match(me(a,e))||[])[0])&&((o=l.substr(0,l.indexOf(n))).length>0&&m(e).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),d+=n.length),A[a]?(n?m(e).empty=!1:m(e).unusedTokens.push(a),Me(a,n,e)):e._strict&&!n&&m(e).unusedTokens.push(a);m(e).charsLeftOver=c-d,l.length>0&&m(e).unusedInput.push(l),e._a[3]<=12&&!0===m(e).bigHour&&e._a[3]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=m(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),wt(e),lt(e)}else bt(e);else vt(e)}function Lt(e){var t=e._i,n=e._f;return e._locale=e._locale||ut(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new M(lt(t)):(d(t)?e._d=t:a(n)?function(e){var t,n,r,i,a,o,s=!1,u=e._f.length;if(0===u)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)a=0,o=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],kt(t),_(t)&&(o=!0),a+=m(t).charsLeftOver,a+=10*m(t).unusedTokens.length,m(t).score=a,s?a<r&&(r=a,n=t):(null==r||a<r||o)&&(r=a,n=t,o&&(s=!0));h(e,n||t)}(e):n?kt(e):function(e){var t=e._i;l(t)?e._d=new Date(i.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=mt.exec(e._i);null===t?(vt(e),!1===e._isValid&&(delete e._isValid,bt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):a(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),wt(e)):o(t)?function(e){if(!e._d){var t=z(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),wt(e)}}(e):c(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),_(e)||(e._d=null),e))}function Tt(e,t,n,r,i){var s,l={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&u(e)||a(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=n,l._i=e,l._f=t,l._strict=r,(s=new M(lt(Lt(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Dt(e,t,n,r){return Tt(e,t,n,r,!1)}i.createFromInputFallback=L("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var St=L("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Et=L("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Yt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var xt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ot(e){var t=z(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,u=t.hour||0,l=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,r=!1,i=xt.length;for(t in e)if(s(e,t)&&(-1===ye.call(xt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[xt[n]]){if(r)return!1;parseFloat(e[xt[n]])!==$(e[xt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*l+1e3*u*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=ut(),this._bubble()}function jt(e){return e instanceof Ot}function Pt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ct(e,t){I(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+O(~~(e/60),2)+t+O(~~e%60,2)}))}Ct("Z",":"),Ct("ZZ",""),pe("Z",fe),pe("ZZ",fe),ge(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=It(fe,e)}));var At=/([\+\-]|\d\d)/gi;function It(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(At)||["-",0,0])[1]+$(n[2]))?0:"+"===n[0]?r:-r}function Nt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||d(e)?e.valueOf():Dt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Dt(e).local()}function Ft(e){return-Math.round(e._d.getTimezoneOffset())}function Rt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Ht=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ut=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function zt(e,t){var n,r,i,a,o,u,l=e,d=null;return jt(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(l={},t?l[t]=+e:l.milliseconds=+e):(d=Ht.exec(e))?(n="-"===d[1]?-1:1,l={y:0,d:$(d[2])*n,h:$(d[3])*n,m:$(d[4])*n,s:$(d[5])*n,ms:$(Pt(1e3*d[6]))*n}):(d=Ut.exec(e))?(n="-"===d[1]?-1:1,l={y:Wt(d[2],n),M:Wt(d[3],n),w:Wt(d[4],n),d:Wt(d[5],n),h:Wt(d[6],n),m:Wt(d[7],n),s:Wt(d[8],n)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(a=Dt(l.from),o=Dt(l.to),i=a.isValid()&&o.isValid()?(o=Nt(o,a),a.isBefore(o)?u=Bt(a,o):((u=Bt(o,a)).milliseconds=-u.milliseconds,u.months=-u.months),u):{milliseconds:0,months:0},(l={}).ms=i.milliseconds,l.M=i.months),r=new Ot(l),jt(e)&&s(e,"_locale")&&(r._locale=e._locale),jt(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Wt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Bt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function qt(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(S(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Vt(this,zt(n,r),e),this}}function Vt(e,t,n,r){var a=t._milliseconds,o=Pt(t._days),s=Pt(t._months);e.isValid()&&(r=null==r||r,s&&Ye(e,Q(e,"Month")+s*n),o&&J(e,"Date",Q(e,"Date")+o*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&i.updateOffset(e,o||s))}zt.fn=Ot.prototype,zt.invalid=function(){return zt(NaN)};var $t=qt(1,"add"),Gt=qt(-1,"subtract");function Qt(e){return"string"==typeof e||e instanceof String}function Jt(e){return w(e)||d(e)||Qt(e)||c(e)||function(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&Qt(e)})).length),t&&n}(e)||function(e){var t,n,r=o(e)&&!u(e),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=a.length;for(t=0;t<l;t+=1)n=a[t],i=i||s(e,n);return r&&i}(e)||null==e}function Kt(e){var t,n=o(e)&&!u(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)r=r||s(e,i[t]);return n&&r}function Xt(e,t){if(e.date()<t.date())return-Xt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Zt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ut(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var en=L("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function tn(){return this._locale}function nn(e,t){return(e%t+t)%t}function rn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function an(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function sn(){var e,t,n=[],r=[],i=[],a=[],o=this.eras();for(e=0,t=o.length;e<t;++e)r.push(_e(o[e].name)),n.push(_e(o[e].abbr)),i.push(_e(o[e].narrow)),a.push(_e(o[e].name)),a.push(_e(o[e].abbr)),a.push(_e(o[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function un(e,t){I(0,[e,e.length],0,t)}function ln(e,t,n,r,i){var a;return null==e?Fe(this,r,i).year:(t>(a=Re(e,r,i))&&(t=a),cn.call(this,e,t,n,r,i))}function cn(e,t,n,r,i){var a=Ne(e,t,n,r,i),o=Ae(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),pe("N",on),pe("NN",on),pe("NNN",on),pe("NNNN",(function(e,t){return t.erasNameRegex(e)})),pe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ge(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?m(n).era=i:m(n).invalidEra=e})),pe("y",le),pe("yy",le),pe("yyy",le),pe("yyyy",le),pe("yo",(function(e,t){return t._eraYearOrdinalRegex||le})),ge(["y","yy","yyy","yyyy"],0),ge(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),un("gggg","weekYear"),un("ggggg","weekYear"),un("GGGG","isoWeekYear"),un("GGGGG","isoWeekYear"),H("weekYear","gg"),H("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),pe("G",ce),pe("g",ce),pe("GG",re,Z),pe("gg",re,Z),pe("GGGG",se,te),pe("gggg",se,te),pe("GGGGG",ue,ne),pe("ggggg",ue,ne),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=$(e)})),be(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),I("Q",0,"Qo","quarter"),H("quarter","Q"),B("quarter",7),pe("Q",X),ge("Q",(function(e,t){t[1]=3*($(e)-1)})),I("D",["DD",2],"Do","date"),H("date","D"),B("date",9),pe("D",re),pe("DD",re,Z),pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ge(["D","DD"],2),ge("Do",(function(e,t){t[2]=$(e.match(re)[0])}));var dn=G("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),H("dayOfYear","DDD"),B("dayOfYear",4),pe("DDD",oe),pe("DDDD",ee),ge(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=$(e)})),I("m",["mm",2],0,"minute"),H("minute","m"),B("minute",14),pe("m",re),pe("mm",re,Z),ge(["m","mm"],4);var fn=G("Minutes",!1);I("s",["ss",2],0,"second"),H("second","s"),B("second",15),pe("s",re),pe("ss",re,Z),ge(["s","ss"],5);var hn,pn,mn=G("Seconds",!1);for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),H("millisecond","ms"),B("millisecond",16),pe("S",oe,X),pe("SS",oe,Z),pe("SSS",oe,ee),hn="SSSS";hn.length<=9;hn+="S")pe(hn,le);function _n(e,t){t[6]=$(1e3*("0."+e))}for(hn="S";hn.length<=9;hn+="S")ge(hn,_n);pn=G("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var yn=M.prototype;function vn(e){return e}yn.add=$t,yn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Jt(arguments[0])?(e=arguments[0],t=void 0):Kt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Dt(),r=Nt(n,this).startOf("day"),a=i.calendarFormat(this,r)||"sameElse",o=t&&(E(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,Dt(n)))},yn.clone=function(){return new M(this)},yn.diff=function(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=Nt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=U(t)){case"year":a=Xt(this,r)/12;break;case"month":a=Xt(this,r);break;case"quarter":a=Xt(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:V(a)},yn.endOf=function(e){var t,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:rn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},yn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=N(this,e);return this.localeData().postformat(t)},yn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.fromNow=function(e){return this.from(Dt(),e)},yn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.toNow=function(e){return this.to(Dt(),e)},yn.get=function(e){return E(this[e=U(e)])?this[e]():this},yn.invalidAt=function(){return m(this).overflow},yn.isAfter=function(e,t){var n=w(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},yn.isBefore=function(e,t){var n=w(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},yn.isBetween=function(e,t,n,r){var i=w(e)?e:Dt(e),a=w(t)?t:Dt(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n)))},yn.isSame=function(e,t){var n,r=w(e)?e:Dt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},yn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},yn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},yn.isValid=function(){return _(this)},yn.lang=en,yn.locale=Zt,yn.localeData=tn,yn.max=Et,yn.min=St,yn.parsingFlags=function(){return h({},m(this))},yn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:W[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=z(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(E(this[e=U(e)]))return this[e](t);return this},yn.startOf=function(e){var t,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:rn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=nn(t,6e4);break;case"second":t=this._d.valueOf(),t-=nn(t,1e3)}return this._d.setTime(t),i.updateOffset(this,!0),this},yn.subtract=Gt,yn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},yn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},yn.toDate=function(){return new Date(this.valueOf())},yn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?N(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(n,"Z")):N(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},yn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",i="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(yn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),yn.toJSON=function(){return this.isValid()?this.toISOString():null},yn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},yn.unix=function(){return Math.floor(this.valueOf()/1e3)},yn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},yn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},yn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},yn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},yn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},yn.eraYear=function(){var e,t,n,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-i(a[e].since).year())*n+a[e].offset;return this.year()},yn.year=Pe,yn.isLeapYear=function(){return q(this.year())},yn.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},yn.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},yn.quarter=yn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},yn.month=xe,yn.daysInMonth=function(){return we(this.year(),this.month())},yn.week=yn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},yn.isoWeek=yn.isoWeeks=function(e){var t=Fe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},yn.weeksInYear=function(){var e=this.localeData()._week;return Re(this.year(),e.dow,e.doy)},yn.weeksInWeekYear=function(){var e=this.localeData()._week;return Re(this.weekYear(),e.dow,e.doy)},yn.isoWeeksInYear=function(){return Re(this.year(),1,4)},yn.isoWeeksInISOWeekYear=function(){return Re(this.isoWeekYear(),1,4)},yn.date=dn,yn.day=yn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},yn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},yn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},yn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},yn.hour=yn.hours=Ze,yn.minute=yn.minutes=fn,yn.second=yn.seconds=mn,yn.millisecond=yn.milliseconds=pn,yn.utcOffset=function(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=It(fe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Ft(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?Vt(this,zt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Ft(this)},yn.utc=function(e){return this.utcOffset(0,e)},yn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ft(this),"m")),this},yn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=It(de,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},yn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Dt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},yn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},yn.isLocal=function(){return!!this.isValid()&&!this._isUTC},yn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},yn.isUtc=Rt,yn.isUTC=Rt,yn.zoneAbbr=function(){return this._isUTC?"UTC":""},yn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},yn.dates=L("dates accessor is deprecated. Use date instead.",dn),yn.months=L("months accessor is deprecated. Use month instead",xe),yn.years=L("years accessor is deprecated. Use year instead",Pe),yn.zone=L("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),yn.isDSTShifted=L("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Lt(t))._a?(e=t._isUTC?p(t._a):Dt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&$(e[r])!==$(t[r]))&&o++;return o+a}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var gn=x.prototype;function bn(e,t,n,r){var i=ut(),a=p().set(r,t);return i[n](a,e)}function Mn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return bn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=bn(e,r,n,"month");return i}function wn(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,a=ut(),o=e?a._week.dow:0,s=[];if(null!=n)return bn(t,(n+o)%7,r,"day");for(i=0;i<7;i++)s[i]=bn(t,(i+o)%7,r,"day");return s}gn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return E(r)?r.call(t,n):r},gn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(j).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},gn.invalidDate=function(){return this._invalidDate},gn.ordinal=function(e){return this._ordinal.replace("%d",e)},gn.preparse=vn,gn.postformat=vn,gn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return E(i)?i(e,t,n,r):i.replace(/%d/i,e)},gn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return E(n)?n(t):n.replace(/%s/i,t)},gn.set=function(e){var t,n;for(n in e)s(e,n)&&(E(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gn.eras=function(e,t){var n,r,a,o=this._eras||ut("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":a=i(o[n].since).startOf("day"),o[n].since=a.valueOf()}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":a=i(o[n].until).startOf("day").valueOf(),o[n].until=a.valueOf()}}return o},gn.erasParse=function(e,t,n){var r,i,a,o,s,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(a=u[r].name.toUpperCase(),o=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return u[r];break;case"NNNN":if(a===e)return u[r];break;case"NNNNN":if(s===e)return u[r]}else if([a,o,s].indexOf(e)>=0)return u[r]},gn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n},gn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},gn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},gn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},gn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Te).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},gn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Te.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gn.monthsParse=function(e,t,n){var r,i,a;if(this._monthsParseExact)return Ee.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},gn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Oe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Se),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},gn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Oe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=De),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},gn.week=function(e){return Fe(e,this._week.dow,this._week.doy).week},gn.firstDayOfYear=function(){return this._week.doy},gn.firstDayOfWeek=function(){return this._week.dow},gn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?He(n,this._week.dow):e?n[e.day()]:n},gn.weekdaysMin=function(e){return!0===e?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},gn.weekdaysShort=function(e){return!0===e?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},gn.weekdaysParse=function(e,t,n){var r,i,a;if(this._weekdaysParseExact)return $e.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},gn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Be),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},gn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ve),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},gn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===$(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=L("moment.lang is deprecated. Use moment.locale instead.",ot),i.langData=L("moment.langData is deprecated. Use moment.localeData instead.",ut);var kn=Math.abs;function Ln(e,t,n,r){var i=zt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Tn(e){return e<0?Math.floor(e):Math.ceil(e)}function Dn(e){return 4800*e/146097}function Sn(e){return 146097*e/4800}function En(e){return function(){return this.as(e)}}var Yn=En("ms"),xn=En("s"),On=En("m"),jn=En("h"),Pn=En("d"),Cn=En("w"),An=En("M"),In=En("Q"),Nn=En("y");function Fn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Rn=Fn("milliseconds"),Hn=Fn("seconds"),Un=Fn("minutes"),zn=Fn("hours"),Wn=Fn("days"),Bn=Fn("months"),qn=Fn("years"),Vn=Math.round,$n={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Gn(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var Qn=Math.abs;function Jn(e){return(e>0)-(e<0)||+e}function Kn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,a,o,s,u=Qn(this._milliseconds)/1e3,l=Qn(this._days),c=Qn(this._months),d=this.asSeconds();return d?(e=V(u/60),t=V(e/60),u%=60,e%=60,n=V(c/12),c%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",a=Jn(this._months)!==Jn(d)?"-":"",o=Jn(this._days)!==Jn(d)?"-":"",s=Jn(this._milliseconds)!==Jn(d)?"-":"",i+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(l?o+l+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var Xn=Ot.prototype;return Xn.isValid=function(){return this._isValid},Xn.abs=function(){var e=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),e.milliseconds=kn(e.milliseconds),e.seconds=kn(e.seconds),e.minutes=kn(e.minutes),e.hours=kn(e.hours),e.months=kn(e.months),e.years=kn(e.years),this},Xn.add=function(e,t){return Ln(this,e,t,1)},Xn.subtract=function(e,t){return Ln(this,e,t,-1)},Xn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=U(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Dn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Sn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Xn.asMilliseconds=Yn,Xn.asSeconds=xn,Xn.asMinutes=On,Xn.asHours=jn,Xn.asDays=Pn,Xn.asWeeks=Cn,Xn.asMonths=An,Xn.asQuarters=In,Xn.asYears=Nn,Xn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*$(this._months/12):NaN},Xn._bubble=function(){var e,t,n,r,i,a=this._milliseconds,o=this._days,s=this._months,u=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Tn(Sn(s)+o),o=0,s=0),u.milliseconds=a%1e3,e=V(a/1e3),u.seconds=e%60,t=V(e/60),u.minutes=t%60,n=V(t/60),u.hours=n%24,o+=V(n/24),i=V(Dn(o)),s+=i,o-=Tn(Sn(i)),r=V(s/12),s%=12,u.days=o,u.months=s,u.years=r,this},Xn.clone=function(){return zt(this)},Xn.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():NaN},Xn.milliseconds=Rn,Xn.seconds=Hn,Xn.minutes=Un,Xn.hours=zn,Xn.days=Wn,Xn.weeks=function(){return V(this.days()/7)},Xn.months=Bn,Xn.years=qn,Xn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=$n;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(a=Object.assign({},$n,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var i=zt(e).abs(),a=Vn(i.as("s")),o=Vn(i.as("m")),s=Vn(i.as("h")),u=Vn(i.as("d")),l=Vn(i.as("M")),c=Vn(i.as("w")),d=Vn(i.as("y")),f=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||l<=1&&["M"]||l<n.M&&["MM",l]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=r,Gn.apply(null,f)}(this,!i,a,n),i&&(r=n.pastFuture(+this,r)),n.postformat(r)},Xn.toISOString=Kn,Xn.toString=Kn,Xn.toJSON=Kn,Xn.locale=Zt,Xn.localeData=tn,Xn.toIsoString=L("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Kn),Xn.lang=en,I("X",0,0,"unix"),I("x",0,0,"valueOf"),pe("x",ce),pe("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ge("x",(function(e,t,n){n._d=new Date($(e))})),i.version="2.29.4",t=Dt,i.fn=yn,i.min=function(){var e=[].slice.call(arguments,0);return Yt("isBefore",e)},i.max=function(){var e=[].slice.call(arguments,0);return Yt("isAfter",e)},i.now=function(){return Date.now?Date.now():+new Date},i.utc=p,i.unix=function(e){return Dt(1e3*e)},i.months=function(e,t){return Mn(e,t,"months")},i.isDate=d,i.locale=ot,i.invalid=y,i.duration=zt,i.isMoment=w,i.weekdays=function(e,t,n){return wn(e,t,n,"weekdays")},i.parseZone=function(){return Dt.apply(null,arguments).parseZone()},i.localeData=ut,i.isDuration=jt,i.monthsShort=function(e,t){return Mn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return wn(e,t,n,"weekdaysMin")},i.defineLocale=st,i.updateLocale=function(e,t){if(null!=t){var n,r,i=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(Y(tt[e]._config,t)):(null!=(r=at(e))&&(i=r._config),t=Y(i,t),null==r&&(t.abbr=e),(n=new x(t)).parentLocale=tt[e],tt[e]=n),ot(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===ot()&&ot(e)):null!=tt[e]&&delete tt[e]);return tt[e]},i.locales=function(){return T(tt)},i.weekdaysShort=function(e,t,n){return wn(e,t,n,"weekdaysShort")},i.normalizeUnits=U,i.relativeTimeRounding=function(e){return void 0===e?Vn:"function"==typeof e&&(Vn=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==$n[e]&&(void 0===t?$n[e]:($n[e]=t,"s"===e&&($n.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=yn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(237)(e))},function(e,t,n){"use strict";e.exports=n(231)},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"ServerStyleSheet",(function(){return He})),n.d(t,"StyleSheetConsumer",(function(){return ie})),n.d(t,"StyleSheetContext",(function(){return re})),n.d(t,"StyleSheetManager",(function(){return ce})),n.d(t,"ThemeConsumer",(function(){return je})),n.d(t,"ThemeContext",(function(){return Oe})),n.d(t,"ThemeProvider",(function(){return Pe})),n.d(t,"__PRIVATE__",(function(){return We})),n.d(t,"createGlobalStyle",(function(){return Fe})),n.d(t,"css",(function(){return be})),n.d(t,"isStyledComponent",(function(){return b})),n.d(t,"keyframes",(function(){return Re})),n.d(t,"useTheme",(function(){return ze})),n.d(t,"version",(function(){return w})),n.d(t,"withTheme",(function(){return Ue}));var r=n(53),i=n(1),a=n.n(i),o=n(222),s=n.n(o),u=n(223),l=n(224),c=n(80),d=n(77),f=n.n(d);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},m=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},_=Object.freeze([]),y=Object.freeze({});function v(e){return"function"==typeof e}function g(e){return e.displayName||e.name||"Component"}function b(e){return e&&"string"==typeof e.styledComponentId}var M=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",w="5.3.5",k="undefined"!=typeof window&&"HTMLElement"in window,L=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==e.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&e.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.SC_DISABLE_SPEEDY&&""!==e.env.SC_DISABLE_SPEEDY&&("false"!==e.env.SC_DISABLE_SPEEDY&&e.env.SC_DISABLE_SPEEDY)),T={};function D(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var S=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&D(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=r;a<i;a++)this.groupSizes[a]=0}for(var o=this.indexOfGroup(e+1),s=0,u=t.length;s<u;s++)this.tag.insertRule(o,t[s])&&(this.groupSizes[e]++,o++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,a=r;a<i;a++)t+=this.tag.getRule(a)+"/*!sc*/\n";return t},e}(),E=new Map,Y=new Map,x=1,O=function(e){if(E.has(e))return E.get(e);for(;Y.has(x);)x++;var t=x++;return E.set(e,t),Y.set(t,e),t},j=function(e){return Y.get(e)},P=function(e,t){t>=x&&(x=t+1),E.set(e,t),Y.set(t,e)},C="style["+M+'][data-styled-version="5.3.5"]',A=new RegExp("^"+M+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),I=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a<o;a++)(r=i[a])&&e.registerName(t,r)},N=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],i=0,a=n.length;i<a;i++){var o=n[i].trim();if(o){var s=o.match(A);if(s){var u=0|parseInt(s[1],10),l=s[2];0!==u&&(P(l,u),I(e,l,s[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(o)}}},F=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},R=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(M))return r}}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(M,"active"),r.setAttribute("data-styled-version","5.3.5");var o=F();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},H=function(){function e(e){var t=this.element=R(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}D(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),U=function(){function e(e){var t=this.element=R(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),z=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),W=k,B={isServer:!k,useCSSOMInjection:!L},q=function(){function e(e,t,n){void 0===e&&(e=y),void 0===t&&(t={}),this.options=h({},B,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&k&&W&&(W=!1,function(e){for(var t=document.querySelectorAll(C),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(M)&&(N(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return O(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(h({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new z(i):r?new H(i):new U(i),new S(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(O(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(O(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(O(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var a=j(i);if(void 0!==a){var o=e.names.get(a),s=t.getGroup(i);if(o&&s&&o.size){var u=M+".g"+i+'[id="'+a+'"]',l="";void 0!==o&&o.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+s+u+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),V=/(a)(d)/gi,$=function(e){return String.fromCharCode(e+(e>25?39:97))};function G(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=$(t%52)+n;return($(t%52)+n).replace(V,"$1-$2")}var Q=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},J=function(e){return Q(5381,e)};function K(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(v(n)&&!b(n))return!1}return!0}var X=J("5.3.5"),Z=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&K(e),this.componentId=t,this.baseHash=Q(X,t),this.baseStyle=n,q.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var a=ve(this.rules,e,t,n).join(""),o=G(Q(this.baseHash,a)>>>0);if(!t.hasNameForId(r,o)){var s=n(a,"."+o,void 0,r);t.insertRules(r,o,s)}i.push(o),this.staticRulesId=o}else{for(var u=this.rules.length,l=Q(this.baseHash,n.hash),c="",d=0;d<u;d++){var f=this.rules[d];if("string"==typeof f)c+=f;else if(f){var h=ve(f,e,t,n),p=Array.isArray(h)?h.join(""):h;l=Q(l,p+d),c+=p}}if(c){var m=G(l>>>0);if(!t.hasNameForId(r,m)){var _=n(c,"."+m,void 0,r);t.insertRules(r,m,_)}i.push(m)}}return i.join(" ")},e}(),ee=/^\s*\/\/.*$/gm,te=[":","[",".","#"];function ne(e){var t,n,r,i,a=void 0===e?y:e,o=a.options,s=void 0===o?y:o,l=a.plugins,c=void 0===l?_:l,d=new u.a(s),f=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,a,o,s,u,l,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(i[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,r,a){return 0===r&&-1!==te.indexOf(a[n.length])||a.match(i)?e:"."+t};function m(e,a,o,s){void 0===s&&(s="&");var u=e.replace(ee,""),l=a&&o?o+" "+a+" { "+u+" }":u;return t=s,n=a,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),d(o||!a?"":a,l)}return d.use([].concat(c,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,p))},h,function(e){if(-2===e){var t=f;return f=[],t}}])),m.hash=c.length?c.reduce((function(e,t){return t.name||D(15),Q(e,t.name)}),5381).toString():"",m}var re=a.a.createContext(),ie=re.Consumer,ae=a.a.createContext(),oe=(ae.Consumer,new q),se=ne();function ue(){return Object(i.useContext)(re)||oe}function le(){return Object(i.useContext)(ae)||se}function ce(e){var t=Object(i.useState)(e.stylisPlugins),n=t[0],r=t[1],o=ue(),u=Object(i.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),l=Object(i.useMemo)((function(){return ne({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(i.useEffect)((function(){s()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),a.a.createElement(re.Provider,{value:u},a.a.createElement(ae.Provider,{value:l},e.children))}var de=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=se);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return D(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=se),this.name+e.hash},e}(),fe=/([A-Z])/,he=/([A-Z])/g,pe=/^ms-/,me=function(e){return"-"+e.toLowerCase()};function _e(e){return fe.test(e)?e.replace(he,me).replace(pe,"-ms-"):e}var ye=function(e){return null==e||!1===e||""===e};function ve(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o<s;o+=1)""!==(i=ve(e[o],t,n,r))&&(Array.isArray(i)?a.push.apply(a,i):a.push(i));return a}return ye(e)?"":b(e)?"."+e.styledComponentId:v(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:ve(e(t),t,n,r):e instanceof de?n?(e.inject(n,r),e.getName(r)):e:m(e)?function e(t,n){var r,i,a=[];for(var o in t)t.hasOwnProperty(o)&&!ye(t[o])&&(Array.isArray(t[o])&&t[o].isCss||v(t[o])?a.push(_e(o)+":",t[o],";"):m(t[o])?a.push.apply(a,e(t[o],o)):a.push(_e(o)+": "+(r=o,(null==(i=t[o])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in l.a?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(a,["}"]):a}(e):e.toString();var u}var ge=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return v(e)||m(e)?ge(ve(p(_,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ge(ve(p(e,n)))}new Set;var Me=function(e,t,n){return void 0===n&&(n=y),e.theme!==n.theme&&e.theme||t||n.theme},we=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ke=/(^-|-$)/g;function Le(e){return e.replace(we,"-").replace(ke,"")}var Te=function(e){return G(J(e)>>>0)};function De(e){return"string"==typeof e&&!0}var Se=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ee=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ye(e,t,n){var r=e[n];Se(t)&&Se(r)?xe(r,t):e[n]=t}function xe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];if(Se(o))for(var s in o)Ee(s)&&Ye(e,o[s],s)}return e}var Oe=a.a.createContext(),je=Oe.Consumer;function Pe(e){var t=Object(i.useContext)(Oe),n=Object(i.useMemo)((function(){return function(e,t){return e?v(e)?e(t):Array.isArray(e)||"object"!=typeof e?D(8):t?h({},t,{},e):e:D(14)}(e.theme,t)}),[e.theme,t]);return e.children?a.a.createElement(Oe.Provider,{value:n},e.children):null}var Ce={};function Ae(e,t,n){var r=b(e),o=!De(e),s=t.attrs,u=void 0===s?_:s,l=t.componentId,d=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Le(e);Ce[n]=(Ce[n]||0)+1;var r=n+"-"+Te("5.3.5"+n+Ce[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,p=t.displayName,m=void 0===p?function(e){return De(e)?"styled."+e:"Styled("+g(e)+")"}(e):p,M=t.displayName&&t.componentId?Le(t.displayName)+"-"+t.componentId:t.componentId||d,w=r&&e.attrs?Array.prototype.concat(e.attrs,u).filter(Boolean):u,k=t.shouldForwardProp;r&&e.shouldForwardProp&&(k=t.shouldForwardProp?function(n,r,i){return e.shouldForwardProp(n,r,i)&&t.shouldForwardProp(n,r,i)}:e.shouldForwardProp);var L,T=new Z(n,M,r?e.componentStyle:void 0),D=T.isStatic&&0===u.length,S=function(e,t){return function(e,t,n,r){var a=e.attrs,o=e.componentStyle,s=e.defaultProps,u=e.foldedComponentIds,l=e.shouldForwardProp,d=e.styledComponentId,f=e.target,p=function(e,t,n){void 0===e&&(e=y);var r=h({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,a,o=e;for(t in v(o)&&(o=o(r)),o)r[t]=i[t]="className"===t?(n=i[t],a=o[t],n&&a?n+" "+a:n||a):o[t]})),[r,i]}(Me(t,Object(i.useContext)(Oe),s)||y,t,a),m=p[0],_=p[1],g=function(e,t,n,r){var i=ue(),a=le();return t?e.generateAndInjectStyles(y,i,a):e.generateAndInjectStyles(n,i,a)}(o,r,m),b=n,M=_.$as||t.$as||_.as||t.as||f,w=De(M),k=_!==t?h({},t,{},_):t,L={};for(var T in k)"$"!==T[0]&&"as"!==T&&("forwardedAs"===T?L.as=k[T]:(l?l(T,c.a,M):!w||Object(c.a)(T))&&(L[T]=k[T]));return t.style&&_.style!==t.style&&(L.style=h({},t.style,{},_.style)),L.className=Array.prototype.concat(u,d,g!==d?g:null,t.className,_.className).filter(Boolean).join(" "),L.ref=b,Object(i.createElement)(M,L)}(L,e,t,D)};return S.displayName=m,(L=a.a.forwardRef(S)).attrs=w,L.componentStyle=T,L.displayName=m,L.shouldForwardProp=k,L.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):_,L.styledComponentId=M,L.target=r?e.target:e,L.withComponent=function(e){var r=t.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["componentId"]),a=r&&r+"-"+(De(e)?e:Le(g(e)));return Ae(e,h({},i,{attrs:w,componentId:a}),n)},Object.defineProperty(L,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?xe({},e.defaultProps,t):t}}),L.toString=function(){return"."+L.styledComponentId},o&&f()(L,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),L}var Ie=function(e){return function e(t,n,i){if(void 0===i&&(i=y),!Object(r.isValidElementType)(n))return D(1,String(n));var a=function(){return t(n,i,be.apply(void 0,arguments))};return a.withConfig=function(r){return e(t,n,h({},i,{},r))},a.attrs=function(r){return e(t,n,h({},i,{attrs:Array.prototype.concat(i.attrs,r).filter(Boolean)}))},a}(Ae,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ie[e]=Ie(e)}));var Ne=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=K(e),q.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(ve(this.rules,t,n,r).join(""),""),a=this.componentId+e;n.insertRules(a,a,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&q.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Fe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=be.apply(void 0,[e].concat(n)),s="sc-global-"+Te(JSON.stringify(o)),u=new Ne(o,s);function l(e){var t=ue(),n=le(),r=Object(i.useContext)(Oe),a=Object(i.useRef)(t.allocateGSInstance(s)).current;return t.server&&c(a,e,t,r,n),Object(i.useLayoutEffect)((function(){if(!t.server)return c(a,e,t,r,n),function(){return u.removeStyles(a,t)}}),[a,e,t,r,n]),null}function c(e,t,n,r,i){if(u.isStatic)u.renderStyles(e,T,n,i);else{var a=h({},t,{theme:Me(t,r,l.defaultProps)});u.renderStyles(e,a,n,i)}}return a.a.memo(l)}function Re(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=be.apply(void 0,[e].concat(n)).join(""),a=Te(i);return new de(a,i)}var He=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=F();return"<style "+[n&&'nonce="'+n+'"',M+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?D(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return D(2);var n=((t={})[M]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=F();return r&&(n.nonce=r),[a.a.createElement("style",h({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new q({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?D(2):a.a.createElement(ce,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return D(3)},e}(),Ue=function(e){var t=a.a.forwardRef((function(t,n){var r=Object(i.useContext)(Oe),o=e.defaultProps,s=Me(t,r,o);return a.a.createElement(e,h({},t,{theme:s,ref:n}))}));return f()(t,e),t.displayName="WithTheme("+g(e)+")",t},ze=function(){return Object(i.useContext)(Oe)},We={StyleSheet:q,masterSheet:oe};t.default=Ie}.call(this,n(82))},function(e,t,n){"use strict";var r=Array.isArray;t.a=r},function(e,t,n){(function(t){self,e.exports=(()=>{var e={2991:(e,t,n)=>{"use strict";n.d(t,{R:()=>a,Y:()=>o});var r=n(2176),i={};function a(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function o(e,t,n){var r=n||a(),i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},2176:(e,n,r)=>{"use strict";function i(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==t?t:0)}function a(e,t){return e.require(t)}r.d(n,{l$:()=>a,KV:()=>i}),e=r.hmd(e)},1170:(e,t,n)=>{"use strict";n.d(t,{yW:()=>u,ph:()=>l});var r=n(2991),i=n(2176);e=n.hmd(e);var a={nowSeconds:()=>Date.now()/1e3},o=(0,i.KV)()?function(){try{return(0,i.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){const{performance:e}=(0,r.R)();if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),s=void 0===o?a:{nowSeconds:()=>(o.timeOrigin+o.now())/1e3},u=a.nowSeconds.bind(a),l=s.nowSeconds.bind(s);let c;(()=>{const{performance:e}=(0,r.R)();if(e&&e.now){var t=36e5,n=e.now(),i=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,o=a<t,s=e.timing&&e.timing.navigationStart,u="number"==typeof s?Math.abs(s+n-i):t;return o||u<t?a<=u?(c="timeOrigin",e.timeOrigin):(c="navigationStart",s):(c="dateNow",i)}c="none"})()},4098:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in e,o="ArrayBuffer"in e;if(o)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function _(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=_(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=_(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=p(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=l(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[l(e)]},f.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},f.prototype.set=function(e,t){this.map[l(e)]=c(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),d(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),d(e)},r&&(f.prototype[Symbol.iterator]=f.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(e,t){var n,r,i=(t=t||{}).body;if(e instanceof g){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),v.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function b(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function M(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},y.call(g.prototype),y.call(M.prototype),M.prototype.clone=function(){return new M(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},M.error=function(){var e=new M(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];M.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new M(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function k(e,n){return new Promise((function(r,a){var o=new g(e,n);if(o.signal&&o.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new M(i,n))},s.onerror=function(){a(new TypeError("Network request failed"))},s.ontimeout=function(){a(new TypeError("Network request failed"))},s.onabort=function(){a(new t.DOMException("Aborted","AbortError"))},s.open(o.method,o.url,!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),o.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",u)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}k.polyfill=!0,e.fetch||(e.fetch=k,e.Headers=f,e.Request=g,e.Response=M),t.Headers=f,t.Request=g,t.Response=M,t.fetch=k,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},8552:(e,t,n)=>{var r=n(852)(n(5639),"DataView");e.exports=r},1989:(e,t,n)=>{var r=n(1789),i=n(401),a=n(7667),o=n(1327),s=n(1866);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,e.exports=u},8407:(e,t,n)=>{var r=n(7040),i=n(4125),a=n(2117),o=n(7529),s=n(4705);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,e.exports=u},7071:(e,t,n)=>{var r=n(852)(n(5639),"Map");e.exports=r},3369:(e,t,n)=>{var r=n(4785),i=n(1285),a=n(6e3),o=n(9916),s=n(5265);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,e.exports=u},3818:(e,t,n)=>{var r=n(852)(n(5639),"Promise");e.exports=r},8525:(e,t,n)=>{var r=n(852)(n(5639),"Set");e.exports=r},8668:(e,t,n)=>{var r=n(3369),i=n(619),a=n(2385);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=i,o.prototype.has=a,e.exports=o},6384:(e,t,n)=>{var r=n(8407),i=n(7465),a=n(3779),o=n(7599),s=n(4758),u=n(4309);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=s,l.prototype.set=u,e.exports=l},2705:(e,t,n)=>{var r=n(5639).Symbol;e.exports=r},1149:(e,t,n)=>{var r=n(5639).Uint8Array;e.exports=r},577:(e,t,n)=>{var r=n(852)(n(5639),"WeakMap");e.exports=r},6874:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},4963:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}},4636:(e,t,n)=>{var r=n(2545),i=n(1025),a=n(1469),o=n(4144),s=n(5776),u=n(6719),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),c=!n&&i(e),d=!n&&!c&&o(e),f=!n&&!c&&!d&&u(e),h=n||c||d||f,p=h?r(e.length,String):[],m=p.length;for(var _ in e)!t&&!l.call(e,_)||h&&("length"==_||d&&("offset"==_||"parent"==_)||f&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||s(_,m))||p.push(_);return p}},9932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},2488:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},2908:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},6556:(e,t,n)=>{var r=n(9465),i=n(7813);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},4865:(e,t,n)=>{var r=n(9465),i=n(7813),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];a.call(e,t)&&i(o,n)&&(void 0!==n||t in e)||r(e,t,n)}},8470:(e,t,n)=>{var r=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},9465:(e,t,n)=>{var r=n(8777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},3118:(e,t,n)=>{var r=n(3218),i=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},4140:(e,t,n)=>{var r=n(7816),i=n(9291)(r);e.exports=i},1848:e=>{e.exports=function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}},1078:(e,t,n)=>{var r=n(2488),i=n(7285);e.exports=function e(t,n,a,o,s){var u=-1,l=t.length;for(a||(a=i),s||(s=[]);++u<l;){var c=t[u];n>0&&a(c)?n>1?e(c,n-1,a,o,s):r(s,c):o||(s[s.length]=c)}return s}},8483:(e,t,n)=>{var r=n(5063)();e.exports=r},7816:(e,t,n)=>{var r=n(8483),i=n(3674);e.exports=function(e,t){return e&&r(e,t,i)}},7786:(e,t,n)=>{var r=n(1811),i=n(327);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[i(t[n++])];return n&&n==a?e:void 0}},8866:(e,t,n)=>{var r=n(2488),i=n(1469);e.exports=function(e,t,n){var a=t(e);return i(e)?a:r(a,n(e))}},4239:(e,t,n)=>{var r=n(2705),i=n(9607),a=n(2333),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):a(e)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},2118:(e,t,n)=>{var r=n(1848),i=n(2722),a=n(2351);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,i,n)}},9454:(e,t,n)=>{var r=n(4239),i=n(7005);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},939:(e,t,n)=>{var r=n(1299),i=n(7005);e.exports=function e(t,n,a,o,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,a,o,e,s))}},1299:(e,t,n)=>{var r=n(6384),i=n(7114),a=n(8351),o=n(6096),s=n(4160),u=n(1469),l=n(4144),c=n(6719),d="[object Arguments]",f="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,_,y){var v=u(e),g=u(t),b=v?f:s(e),M=g?f:s(t),w=(b=b==d?h:b)==h,k=(M=M==d?h:M)==h,L=b==M;if(L&&l(e)){if(!l(t))return!1;v=!0,w=!1}if(L&&!w)return y||(y=new r),v||c(e)?i(e,t,n,m,_,y):a(e,t,b,n,m,_,y);if(!(1&n)){var T=w&&p.call(e,"__wrapped__"),D=k&&p.call(t,"__wrapped__");if(T||D){var S=T?e.value():e,E=D?t.value():t;return y||(y=new r),_(S,E,n,m,y)}}return!!L&&(y||(y=new r),o(e,t,n,m,_,y))}},2958:(e,t,n)=>{var r=n(6384),i=n(939);e.exports=function(e,t,n,a){var o=n.length,s=o,u=!a;if(null==e)return!s;for(e=Object(e);o--;){var l=n[o];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var c=(l=n[o])[0],d=e[c],f=l[1];if(u&&l[2]){if(void 0===d&&!(c in e))return!1}else{var h=new r;if(a)var p=a(d,f,c,e,t,h);if(!(void 0===p?i(f,d,3,a,h):p))return!1}}return!0}},2722:e=>{e.exports=function(e){return e!=e}},8458:(e,t,n)=>{var r=n(3560),i=n(5346),a=n(3218),o=n(346),s=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,d=l.hasOwnProperty,f=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(r(e)?f:s).test(o(e))}},8749:(e,t,n)=>{var r=n(4239),i=n(1780),a=n(7005),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!o[r(e)]}},7206:(e,t,n)=>{var r=n(1573),i=n(6432),a=n(6557),o=n(1469),s=n(9601);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?o(e)?i(e[0],e[1]):r(e):s(e)}},280:(e,t,n)=>{var r=n(5726),i=n(6916),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},313:(e,t,n)=>{var r=n(3218),i=n(5726),a=n(3498),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&n.push(s);return n}},9199:(e,t,n)=>{var r=n(4140),i=n(8612);e.exports=function(e,t){var n=-1,a=i(e)?Array(e.length):[];return r(e,(function(e,r,i){a[++n]=t(e,r,i)})),a}},1573:(e,t,n)=>{var r=n(2958),i=n(1499),a=n(2634);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},6432:(e,t,n)=>{var r=n(939),i=n(7361),a=n(9095),o=n(5403),s=n(9162),u=n(2634),l=n(327);e.exports=function(e,t){return o(e)&&s(t)?u(l(e),t):function(n){var o=i(n,e);return void 0===o&&o===t?a(n,e):r(t,o,3)}}},2980:(e,t,n)=>{var r=n(6384),i=n(6556),a=n(8483),o=n(9783),s=n(3218),u=n(1704),l=n(6390);e.exports=function e(t,n,c,d,f){t!==n&&a(n,(function(a,u){if(f||(f=new r),s(a))o(t,n,u,c,e,d,f);else{var h=d?d(l(t,u),a,u+"",t,n,f):void 0;void 0===h&&(h=a),i(t,u,h)}}),u)}},9783:(e,t,n)=>{var r=n(6556),i=n(4626),a=n(7133),o=n(278),s=n(8517),u=n(1025),l=n(1469),c=n(9246),d=n(4144),f=n(3560),h=n(3218),p=n(8630),m=n(6719),_=n(6390),y=n(9881);e.exports=function(e,t,n,v,g,b,M){var w=_(e,n),k=_(t,n),L=M.get(k);if(L)r(e,n,L);else{var T=b?b(w,k,n+"",e,t,M):void 0,D=void 0===T;if(D){var S=l(k),E=!S&&d(k),Y=!S&&!E&&m(k);T=k,S||E||Y?l(w)?T=w:c(w)?T=o(w):E?(D=!1,T=i(k,!0)):Y?(D=!1,T=a(k,!0)):T=[]:p(k)||u(k)?(T=w,u(w)?T=y(w):h(w)&&!f(w)||(T=s(k))):D=!1}D&&(M.set(k,T),g(T,k,v,b,M),M.delete(k)),r(e,n,T)}}},2689:(e,t,n)=>{var r=n(9932),i=n(7786),a=n(7206),o=n(9199),s=n(1131),u=n(7518),l=n(5022),c=n(6557),d=n(1469);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e})):[c];var f=-1;t=r(t,u(a));var h=o(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++f,value:e}}));return s(h,(function(e,t){return l(e,t,n)}))}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,n)=>{var r=n(7786);e.exports=function(e){return function(t){return r(t,e)}}},5976:(e,t,n)=>{var r=n(6557),i=n(5357),a=n(61);e.exports=function(e,t){return a(i(e,t,r),e+"")}},6560:(e,t,n)=>{var r=n(5703),i=n(8777),a=n(6557),o=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=o},1131:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},2545:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},531:(e,t,n)=>{var r=n(2705),i=n(9932),a=n(1469),o=n(3448),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(o(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7561:(e,t,n)=>{var r=n(7990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},7518:e=>{e.exports=function(e){return function(t){return e(t)}}},7415:(e,t,n)=>{var r=n(9932);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},4757:e=>{e.exports=function(e,t){return e.has(t)}},1811:(e,t,n)=>{var r=n(1469),i=n(5403),a=n(5514),o=n(9833);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:a(o(e))}},4318:(e,t,n)=>{var r=n(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},4626:(e,t,n)=>{e=n.nmd(e);var r=n(5639),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},7133:(e,t,n)=>{var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},6393:(e,t,n)=>{var r=n(3448);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,a=e==e,o=r(e),s=void 0!==t,u=null===t,l=t==t,c=r(t);if(!u&&!c&&!o&&e>t||o&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!a)return 1;if(!i&&!o&&!c&&e<t||c&&n&&a&&!i&&!o||u&&n&&a||!s&&a||!l)return-1}return 0}},5022:(e,t,n)=>{var r=n(6393);e.exports=function(e,t,n){for(var i=-1,a=e.criteria,o=t.criteria,s=a.length,u=n.length;++i<s;){var l=r(a[i],o[i]);if(l)return i>=u?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}},278:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},8363:(e,t,n)=>{var r=n(4865),i=n(9465);e.exports=function(e,t,n,a){var o=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var l=t[s],c=a?a(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),o?i(n,l,c):r(n,l,c)}return n}},4429:(e,t,n)=>{var r=n(5639)["__core-js_shared__"];e.exports=r},1463:(e,t,n)=>{var r=n(5976),i=n(6612);e.exports=function(e){return r((function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++r<a;){var u=n[r];u&&e(t,u,r,o)}return t}))}},9291:(e,t,n)=>{var r=n(8612);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var a=n.length,o=t?a:-1,s=Object(n);(t?o--:++o<a)&&!1!==i(s[o],o,s););return n}}},5063:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var u=o[e?s:++i];if(!1===n(a[u],u,a))break}return t}}},8777:(e,t,n)=>{var r=n(852),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},7114:(e,t,n)=>{var r=n(8668),i=n(2908),a=n(4757);e.exports=function(e,t,n,o,s,u){var l=1&n,c=e.length,d=t.length;if(c!=d&&!(l&&d>c))return!1;var f=u.get(e),h=u.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,_=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++p<c;){var y=e[p],v=t[p];if(o)var g=l?o(v,y,p,t,e,u):o(y,v,p,e,t,u);if(void 0!==g){if(g)continue;m=!1;break}if(_){if(!i(t,(function(e,t){if(!a(_,t)&&(y===e||s(y,e,n,o,u)))return _.push(t)}))){m=!1;break}}else if(y!==v&&!s(y,v,n,o,u)){m=!1;break}}return u.delete(e),u.delete(t),m}},8351:(e,t,n)=>{var r=n(2705),i=n(1149),a=n(7813),o=n(7114),s=n(8776),u=n(1814),l=r?r.prototype:void 0,c=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var p=1&r;if(h||(h=u),e.size!=t.size&&!p)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var _=o(h(e),h(t),r,l,d,f);return f.delete(e),_;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},6096:(e,t,n)=>{var r=n(8234),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,o,s){var u=1&n,l=r(e),c=l.length;if(c!=r(t).length&&!u)return!1;for(var d=c;d--;){var f=l[d];if(!(u?f in t:i.call(t,f)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var m=!0;s.set(e,t),s.set(t,e);for(var _=u;++d<c;){var y=e[f=l[d]],v=t[f];if(a)var g=u?a(v,y,f,t,e,s):a(y,v,f,e,t,s);if(!(void 0===g?y===v||o(y,v,n,a,s):g)){m=!1;break}_||(_="constructor"==f)}if(m&&!_){var b=e.constructor,M=t.constructor;b==M||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof M&&M instanceof M||(m=!1)}return s.delete(e),s.delete(t),m}},1957:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8234:(e,t,n)=>{var r=n(8866),i=n(9551),a=n(3674);e.exports=function(e){return r(e,a,i)}},5050:(e,t,n)=>{var r=n(7019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},1499:(e,t,n)=>{var r=n(9162),i=n(3674);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var a=t[n],o=e[a];t[n]=[a,o,r(o)]}return t}},852:(e,t,n)=>{var r=n(8458),i=n(7801);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},5924:(e,t,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},9607:(e,t,n)=>{var r=n(2705),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}},9551:(e,t,n)=>{var r=n(4963),i=n(479),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return a.call(e,t)})))}:i;e.exports=s},4160:(e,t,n)=>{var r=n(8552),i=n(7071),a=n(3818),o=n(8525),s=n(577),u=n(4239),l=n(346),c="[object Map]",d="[object Promise]",f="[object Set]",h="[object WeakMap]",p="[object DataView]",m=l(r),_=l(i),y=l(a),v=l(o),g=l(s),b=u;(r&&b(new r(new ArrayBuffer(1)))!=p||i&&b(new i)!=c||a&&b(a.resolve())!=d||o&&b(new o)!=f||s&&b(new s)!=h)&&(b=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case m:return p;case _:return c;case y:return d;case v:return f;case g:return h}return t}),e.exports=b},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,n)=>{var r=n(1811),i=n(1025),a=n(1469),o=n(5776),s=n(1780),u=n(327);e.exports=function(e,t,n){for(var l=-1,c=(t=r(t,e)).length,d=!1;++l<c;){var f=u(t[l]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++l!=c?d:!!(c=null==e?0:e.length)&&s(c)&&o(f,c)&&(a(e)||i(e))}},1789:(e,t,n)=>{var r=n(4536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},1327:(e,t,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},1866:(e,t,n)=>{var r=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},8517:(e,t,n)=>{var r=n(3118),i=n(5924),a=n(5726);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(i(e))}},7285:(e,t,n)=>{var r=n(2705),i=n(1025),a=n(1469),o=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||i(e)||!!(o&&e&&e[o])}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6612:(e,t,n)=>{var r=n(7813),i=n(8612),a=n(5776),o=n(3218);e.exports=function(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&a(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},5403:(e,t,n)=>{var r=n(1469),i=n(3448),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||o.test(e)||!a.test(e)||null!=t&&e in Object(t)}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,n)=>{var r,i=n(4429),a=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},9162:(e,t,n)=>{var r=n(3218);e.exports=function(e){return e==e&&!r(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,n)=>{var r=n(8470),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},2117:(e,t,n)=>{var r=n(8470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7529:(e,t,n)=>{var r=n(8470);e.exports=function(e){return r(this.__data__,e)>-1}},4705:(e,t,n)=>{var r=n(8470);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},4785:(e,t,n)=>{var r=n(1989),i=n(8407),a=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},1285:(e,t,n)=>{var r=n(5050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:(e,t,n)=>{var r=n(5050);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},2634:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},4523:(e,t,n)=>{var r=n(8306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},4536:(e,t,n)=>{var r=n(852)(Object,"create");e.exports=r},6916:(e,t,n)=>{var r=n(5569)(Object.keys,Object);e.exports=r},3498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},1167:(e,t,n)=>{e=n.nmd(e);var r=n(1957),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i&&r.process,s=function(){try{return a&&a.require&&a.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5357:(e,t,n)=>{var r=n(6874),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=i(a.length-t,0),u=Array(s);++o<s;)u[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=n(u),r(e,this,l)}}},5639:(e,t,n)=>{var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},6390:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},61:(e,t,n)=>{var r=n(6560),i=n(1275)(r);e.exports=i},1275:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),a=16-(i-r);if(r=i,a>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7465:(e,t,n)=>{var r=n(8407);e.exports=function(){this.__data__=new r,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,n)=>{var r=n(8407),i=n(7071),a=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}},2351:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},5514:(e,t,n)=>{var r=n(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)})),t}));e.exports=o},327:(e,t,n)=>{var r=n(3448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7990:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},5703:e=>{e.exports=function(e){return function(){return e}}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7361:(e,t,n)=>{var r=n(7786);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},9095:(e,t,n)=>{var r=n(13),i=n(222);e.exports=function(e,t){return null!=e&&i(e,t,r)}},6557:e=>{e.exports=function(e){return e}},4721:(e,t,n)=>{var r=n(2118),i=n(8612),a=n(7037),o=n(554),s=n(2628),u=Math.max;e.exports=function(e,t,n,l){e=i(e)?e:s(e),n=n&&!l?o(n):0;var c=e.length;return n<0&&(n=u(c+n,0)),a(e)?n<=c&&e.indexOf(t,n)>-1:!!c&&r(e,t,n)>-1}},1025:(e,t,n)=>{var r=n(9454),i=n(7005),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,n)=>{var r=n(3560),i=n(1780);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},9246:(e,t,n)=>{var r=n(8612),i=n(7005);e.exports=function(e){return i(e)&&r(e)}},4144:(e,t,n)=>{e=n.nmd(e);var r=n(5639),i=n(5062),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,s=o&&o.exports===a?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u},1609:(e,t,n)=>{var r=n(280),i=n(4160),a=n(1025),o=n(1469),s=n(8612),u=n(4144),l=n(5726),c=n(6719),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(o(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||c(e)||a(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},3560:(e,t,n)=>{var r=n(4239),i=n(3218);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8630:(e,t,n)=>{var r=n(4239),i=n(5924),a=n(7005),o=Function.prototype,s=Object.prototype,u=o.toString,l=s.hasOwnProperty,c=u.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==c}},7037:(e,t,n)=>{var r=n(4239),i=n(1469),a=n(7005);e.exports=function(e){return"string"==typeof e||!i(e)&&a(e)&&"[object String]"==r(e)}},3448:(e,t,n)=>{var r=n(4239),i=n(7005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},6719:(e,t,n)=>{var r=n(8749),i=n(7518),a=n(1167),o=a&&a.isTypedArray,s=o?i(o):r;e.exports=s},3674:(e,t,n)=>{var r=n(4636),i=n(280),a=n(8612);e.exports=function(e){return a(e)?r(e):i(e)}},1704:(e,t,n)=>{var r=n(4636),i=n(313),a=n(8612);e.exports=function(e){return a(e)?r(e,!0):i(e)}},5161:(e,t,n)=>{var r=n(9932),i=n(7206),a=n(9199),o=n(1469);e.exports=function(e,t){return(o(e)?r:a)(e,i(t,3))}},8306:(e,t,n)=>{var r=n(3369);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},2492:(e,t,n)=>{var r=n(2980),i=n(1463)((function(e,t,n){r(e,t,n)}));e.exports=i},9601:(e,t,n)=>{var r=n(371),i=n(9152),a=n(5403),o=n(327);e.exports=function(e){return a(e)?r(o(e)):i(e)}},9734:(e,t,n)=>{var r=n(1078),i=n(2689),a=n(5976),o=n(6612),s=a((function(e,t){if(null==e)return[];var n=t.length;return n>1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=s},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},8601:(e,t,n)=>{var r=n(4841);e.exports=function(e){return e?1/0===(e=r(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},554:(e,t,n)=>{var r=n(8601);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},4841:(e,t,n)=>{var r=n(7561),i=n(3218),a=n(3448),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):o.test(e)?NaN:+e}},9881:(e,t,n)=>{var r=n(8363),i=n(1704);e.exports=function(e){return r(e,i(e))}},9833:(e,t,n)=>{var r=n(531);e.exports=function(e){return null==e?"":r(e)}},2628:(e,t,n)=>{var r=n(7415),i=n(3674);e.exports=function(e){return null==e?[]:r(e,i(e))}},5694:(e,n,r)=>{"use strict";r.r(n),r.d(n,{AccessDeniedReason:()=>he,BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT:()=>ve,BillingModel:()=>h,BillingPeriod:()=>p,Currency:()=>g,CustomerModel:()=>Me,EntitlementResetPeriod:()=>_e,FeatureType:()=>pe,LogLevel:()=>o,METERED_DEFAULT_FALLBACK_ENTITLEMENT:()=>be,MeterType:()=>me,NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT:()=>ge,PricingType:()=>B,PromotionalEntitlementStatus:()=>G,SubscriptionStatus:()=>ae,TrialPeriodUnits:()=>le,default:()=>jc});var i={};r.r(i),r.d(i,{FunctionToString:()=>eu,InboundFilters:()=>hu});var a={};r.r(a),r.d(a,{Breadcrumbs:()=>Sl,Dedupe:()=>Al,GlobalHandlers:()=>fl,HttpContext:()=>Cl,LinkedErrors:()=>jl,TryCatch:()=>gl});var o,s=r(4721),u=r.n(s);!function(e){e.ALL="ALL",e.NONE="NONE",e.LOG="LOG",e.ERROR="ERROR"}(o||(o={}));var l,c,d,f,h,p,m,_,y,v,g,b,M,w,k,L,T,D,S,E,Y,x,O,j,P,C,A,I,N,F,R,H,U,z,W,B,q,V,$,G,Q,J,K,X,Z,ee,te,ne,re,ie,ae,oe,se,ue,le,ce,de,fe,he,pe,me,_e,ye=function(){function e(e,t){this.logger=e,this.logLevel=t}return e.prototype.error=function(e,t){this.logLevel!==o.NONE&&this.logger.error(e,t||{})},e.prototype.log=function(e,t){u()([o.ERROR,o.NONE],this.logLevel)||this.logger.log(e,t||{})},e.prototype.debug=function(e,t){u()([o.LOG,o.ALL],this.logLevel)&&this.logger.debug(e,t||{})},e}();!function(e){e.CustomerNotFound="CustomerNotFound",e.FeatureNotFound="FeatureNotFound",e.NoActiveSubscription="NoActiveSubscription",e.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",e.RequestedUsageExceedingLimit="RequestedUsageExceedingLimit",e.Unknown="Unknown"}(l||(l={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsLatest="isLatest",e.PricingType="pricingType",e.ProductId="productId",e.RefId="refId",e.Status="status",e.UpdatedAt="updatedAt",e.VersionNumber="versionNumber"}(c||(c={})),function(e){e.Id="id"}(d||(d={})),function(e){e.Client="CLIENT",e.Server="SERVER"}(f||(f={})),function(e){e.FlatFee="FLAT_FEE",e.PerUnit="PER_UNIT",e.UsageBased="USAGE_BASED"}(h||(h={})),function(e){e.Annually="ANNUALLY",e.Monthly="MONTHLY"}(p||(p={})),function(e){e.Added="ADDED",e.Deleted="DELETED",e.Modified="MODIFIED"}(m||(m={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.EnvironmentId="environmentId",e.Id="id",e.Name="name",e.RefId="refId",e.Status="status",e.Type="type",e.UpdatedAt="updatedAt"}(_||(_={})),function(e){e.Active="ACTIVE",e.Archived="ARCHIVED"}(y||(y={})),function(e){e.Fixed="FIXED",e.Percentage="PERCENTAGE"}(v||(v={})),function(e){e.Usd="USD"}(g||(g={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.CrmHubspotCompanyId="crmHubspotCompanyId",e.CrmHubspotCompanyUrl="crmHubspotCompanyUrl",e.CrmId="crmId",e.Email="email",e.EnvironmentId="environmentId",e.Id="id",e.Name="name",e.RefId="refId",e.UpdatedAt="updatedAt"}(b||(b={})),function(e){e.BillingId="billingId",e.CancelReason="cancelReason",e.CancellationDate="cancellationDate",e.CreatedAt="createdAt",e.CrmId="crmId",e.CrmLinkUrl="crmLinkUrl",e.EffectiveEndDate="effectiveEndDate",e.EndDate="endDate",e.EnvironmentId="environmentId",e.Id="id",e.PricingType="pricingType",e.RefId="refId",e.StartDate="startDate",e.Status="status",e.TrialEndDate="trialEndDate"}(M||(M={})),function(e){e.Day="DAY",e.Hour="HOUR",e.Month="MONTH",e.Week="WEEK"}(w||(w={})),function(e){e.BlackList="BLACK_LIST",e.WhiteList="WHITE_LIST"}(k||(k={})),function(e){e.CreatedAt="createdAt",e.DisplayName="displayName",e.Id="id",e.Slug="slug"}(L||(L={})),function(e){e.AddonHasToHavePriceError="AddonHasToHavePriceError",e.AddonNotFound="AddonNotFound",e.ArchivedCouponCantBeApplied="ArchivedCouponCantBeApplied",e.BadUserInput="BadUserInput",e.BillingPeriodMissingError="BillingPeriodMissingError",e.CannotDeleteCustomerError="CannotDeleteCustomerError",e.CannotDeleteFeatureError="CannotDeleteFeatureError",e.CheckoutIsNotSupported="CheckoutIsNotSupported",e.CouponNotFound="CouponNotFound",e.CustomerHasNoPaymentMethod="CustomerHasNoPaymentMethod",e.CustomerNoBillingId="CustomerNoBillingId",e.CustomerNotFound="CustomerNotFound",e.DraftPlanCantBeArchived="DraftPlanCantBeArchived",e.DuplicatedEntityNotAllowed="DuplicatedEntityNotAllowed",e.EditAllowedOnDraftPackageOnlyError="EditAllowedOnDraftPackageOnlyError",e.EnvironmentMissing="EnvironmentMissing",e.FailedToImportCustomer="FailedToImportCustomer",e.FeatureNotFound="FeatureNotFound",e.IdentityForbidden="IdentityForbidden",e.ImportAlreadyInProgress="ImportAlreadyInProgress",e.InitStripePaymentMethodError="InitStripePaymentMethodError",e.IntegrationNotFound="IntegrationNotFound",e.IntegrityViolation="IntegrityViolation",e.InvalidAddressError="InvalidAddressError",e.InvalidArgumentError="InvalidArgumentError",e.InvalidCancellationDate="InvalidCancellationDate",e.InvalidEntitlementResetPeriod="InvalidEntitlementResetPeriod",e.InvalidMemberDelete="InvalidMemberDelete",e.InvalidQuantity="InvalidQuantity",e.InvalidSubscriptionStatus="InvalidSubscriptionStatus",e.InvalidUpdatePriceUnitAmountError="InvalidUpdatePriceUnitAmountError",e.InvalidUsageValueForIncrementalFeatureError="InvalidUsageValueForIncrementalFeatureError",e.MemberInvitationError="MemberInvitationError",e.MemberNotFound="MemberNotFound",e.MeteringNotAvailableForFeatureType="MeteringNotAvailableForFeatureType",e.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",e.PackageAlreadyPublished="PackageAlreadyPublished",e.PackagePricingTypeNotSet="PackagePricingTypeNotSet",e.PlanAlreadyExtended="PlanAlreadyExtended",e.PlanNotFound="PlanNotFound",e.PlanWithChildCantBeDeleted="PlanWithChildCantBeDeleted",e.PlansCircularDependencyError="PlansCircularDependencyError",e.PriceNotFound="PriceNotFound",e.RateLimitExceeded="RateLimitExceeded",e.ResyncAlreadyInProgress="ResyncAlreadyInProgress",e.SelectedBillingModelDoesntMatchImportedItemError="SelectedBillingModelDoesntMatchImportedItemError",e.StripeCustomerIsDeleted="StripeCustomerIsDeleted",e.SubscriptionAlreadyCanceledOrExpired="SubscriptionAlreadyCanceledOrExpired",e.SubscriptionMustHaveSinglePlanError="SubscriptionMustHaveSinglePlanError",e.SubscriptionNotFound="SubscriptionNotFound",e.TrialMinDateError="TrialMinDateError",e.TrialMustBeCancelledImmediately="TrialMustBeCancelledImmediately",e.TrialsNotAllowedInProduct="TrialsNotAllowedInProduct",e.UnPublishedPackage="UnPublishedPackage",e.Unauthenticated="Unauthenticated",e.UncompatibleSubscriptionAddon="UncompatibleSubscriptionAddon",e.UnexpectedError="UnexpectedError",e.UnsupportedFeatureType="UnsupportedFeatureType",e.UnsupportedVendorIdentifier="UnsupportedVendorIdentifier"}(T||(T={})),function(e){e.AddonCreated="ADDON_CREATED",e.AddonDeleted="ADDON_DELETED",e.AddonUpdated="ADDON_UPDATED",e.CouponArchived="COUPON_ARCHIVED",e.CouponCreated="COUPON_CREATED",e.CouponUpdated="COUPON_UPDATED",e.CreateSubscriptionFailed="CREATE_SUBSCRIPTION_FAILED",e.CustomerCreated="CUSTOMER_CREATED",e.CustomerDeleted="CUSTOMER_DELETED",e.CustomerPaymentFailed="CUSTOMER_PAYMENT_FAILED",e.CustomerUpdated="CUSTOMER_UPDATED",e.EntitlementsUpdated="ENTITLEMENTS_UPDATED",e.EntitlementDenied="ENTITLEMENT_DENIED",e.EntitlementGranted="ENTITLEMENT_GRANTED",e.EntitlementRequested="ENTITLEMENT_REQUESTED",e.FeatureCreated="FEATURE_CREATED",e.FeatureDeleted="FEATURE_DELETED",e.FeatureUpdated="FEATURE_UPDATED",e.ImportIntegrationCatalogTriggered="IMPORT_INTEGRATION_CATALOG_TRIGGERED",e.ImportIntegrationCustomersTriggered="IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED",e.MeasurementReported="MEASUREMENT_REPORTED",e.PackagePublished="PACKAGE_PUBLISHED",e.PlanCreated="PLAN_CREATED",e.PlanDeleted="PLAN_DELETED",e.PlanUpdated="PLAN_UPDATED",e.PromotionalEntitlementExpired="PROMOTIONAL_ENTITLEMENT_EXPIRED",e.PromotionalEntitlementGranted="PROMOTIONAL_ENTITLEMENT_GRANTED",e.PromotionalEntitlementRevoked="PROMOTIONAL_ENTITLEMENT_REVOKED",e.PromotionalEntitlementUpdated="PROMOTIONAL_ENTITLEMENT_UPDATED",e.ResyncIntegrationTriggered="RESYNC_INTEGRATION_TRIGGERED",e.SubscriptionCanceled="SUBSCRIPTION_CANCELED",e.SubscriptionCreated="SUBSCRIPTION_CREATED",e.SubscriptionExpired="SUBSCRIPTION_EXPIRED",e.SubscriptionTrialConverted="SUBSCRIPTION_TRIAL_CONVERTED",e.SubscriptionTrialEndsSoon="SUBSCRIPTION_TRIAL_ENDS_SOON",e.SubscriptionTrialExpired="SUBSCRIPTION_TRIAL_EXPIRED",e.SubscriptionTrialStarted="SUBSCRIPTION_TRIAL_STARTED",e.SubscriptionUpdated="SUBSCRIPTION_UPDATED",e.SubscriptionUsageUpdated="SUBSCRIPTION_USAGE_UPDATED",e.SyncFailed="SYNC_FAILED"}(D||(D={})),function(e){e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.FeatureStatus="featureStatus",e.FeatureType="featureType",e.Id="id",e.MeterType="meterType",e.RefId="refId",e.UpdatedAt="updatedAt"}(S||(S={})),function(e){e.Active="ACTIVE",e.New="NEW",e.Suspended="SUSPENDED"}(E||(E={})),function(e){e.Boolean="BOOLEAN",e.Number="NUMBER"}(Y||(Y={})),function(e){e.CreatedAt="createdAt",e.Endpoint="endpoint",e.EnvironmentId="environmentId",e.Id="id",e.Status="status"}(x||(x={})),function(e){e.Active="ACTIVE",e.Inactive="INACTIVE"}(O||(O={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.TaskType="taskType"}(j||(j={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.VendorIdentifier="vendorIdentifier"}(P||(P={})),function(e){e.CreatedAt="createdAt",e.Id="id"}(C||(C={})),function(e){e.Invited="INVITED",e.Registered="REGISTERED"}(A||(A={})),function(e){e.Fluctuating="Fluctuating",e.Incremental="Incremental",e.None="None"}(I||(I={})),function(e){e.StartOfTheMonth="StartOfTheMonth",e.SubscriptionStart="SubscriptionStart"}(N||(N={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsLatest="isLatest",e.PricingType="pricingType",e.ProductId="productId",e.RefId="refId",e.Status="status",e.UpdatedAt="updatedAt",e.VersionNumber="versionNumber"}(F||(F={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.PackageId="packageId",e.UpdatedAt="updatedAt"}(R||(R={})),function(e){e.Archived="ARCHIVED",e.Draft="DRAFT",e.Published="PUBLISHED"}(H||(H={})),function(e){e.Bank="BANK",e.Card="CARD"}(U||(U={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsLatest="isLatest",e.PricingType="pricingType",e.ProductId="productId",e.RefId="refId",e.Status="status",e.UpdatedAt="updatedAt",e.VersionNumber="versionNumber"}(z||(z={})),function(e){e.BillingModel="billingModel",e.BillingPeriod="billingPeriod",e.CreatedAt="createdAt",e.Id="id"}(W||(W={})),function(e){e.Custom="CUSTOM",e.Free="FREE",e.Paid="PAID"}(B||(B={})),function(e){e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsDefaultProduct="isDefaultProduct",e.RefId="refId",e.UpdatedAt="updatedAt"}(q||(q={})),function(e){e.Custom="CUSTOM",e.Lifetime="LIFETIME",e.OneMonth="ONE_MONTH",e.OneWeek="ONE_WEEK",e.OneYear="ONE_YEAR",e.SixMonth="SIX_MONTH"}(V||(V={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.UpdatedAt="updatedAt"}($||($={})),function(e){e.Active="Active",e.Expired="Expired",e.Paused="Paused"}(G||(G={})),function(e){e.AllCustomers="ALL_CUSTOMERS",e.NewCustomers="NEW_CUSTOMERS"}(Q||(Q={})),function(e){e.Asc="ASC",e.Desc="DESC"}(J||(J={})),function(e){e.NullsFirst="NULLS_FIRST",e.NullsLast="NULLS_LAST"}(K||(K={})),function(e){e.JsClientSdk="JS_CLIENT_SDK",e.NodeServerSdk="NODE_SERVER_SDK"}(X||(X={})),function(e){e.CreatedAt="createdAt",e.Id="id",e.Quantity="quantity",e.UpdatedAt="updatedAt"}(Z||(Z={})),function(e){e.CancelledByBilling="CancelledByBilling",e.DetachBilling="DetachBilling",e.Expired="Expired",e.Immediate="Immediate",e.PendingPaymentExpired="PendingPaymentExpired",e.ScheduledCancellation="ScheduledCancellation",e.TrialConverted="TrialConverted",e.TrialEnded="TrialEnded",e.UpgradeOrDowngrade="UpgradeOrDowngrade"}(ee||(ee={})),function(e){e.EndOfBillingPeriod="END_OF_BILLING_PERIOD",e.Immediate="IMMEDIATE",e.SpecificDate="SPECIFIC_DATE"}(te||(te={})),function(e){e.CancelSubscription="CANCEL_SUBSCRIPTION",e.DowngradeToFree="DOWNGRADE_TO_FREE"}(ne||(ne={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.TaskType="taskType"}(re||(re={})),function(e){e.CreatedAt="createdAt",e.Id="id",e.UpdatedAt="updatedAt",e.UsageLimit="usageLimit"}(ie||(ie={})),function(e){e.Active="ACTIVE",e.Canceled="CANCELED",e.Expired="EXPIRED",e.InTrial="IN_TRIAL",e.NotStarted="NOT_STARTED",e.PaymentPending="PAYMENT_PENDING"}(ae||(ae={})),function(e){e.Error="ERROR",e.NoSyncRequired="NO_SYNC_REQUIRED",e.Pending="PENDING",e.Success="SUCCESS"}(oe||(oe={})),function(e){e.Completed="COMPLETED",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.PartiallyFailed="PARTIALLY_FAILED",e.Pending="PENDING"}(se||(se={})),function(e){e.ImportIntegrationCatalog="IMPORT_INTEGRATION_CATALOG",e.ImportIntegrationCustomers="IMPORT_INTEGRATION_CUSTOMERS",e.ResyncIntegration="RESYNC_INTEGRATION",e.SubscriptionMigration="SUBSCRIPTION_MIGRATION"}(ue||(ue={})),function(e){e.Day="DAY",e.Month="MONTH"}(le||(le={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id"}(ce||(ce={})),function(e){e.Hubspot="HUBSPOT",e.Stripe="STRIPE",e.Zuora="ZUORA"}(de||(de={})),function(e){e.EveryFriday="EveryFriday",e.EveryMonday="EveryMonday",e.EverySaturday="EverySaturday",e.EverySunday="EverySunday",e.EveryThursday="EveryThursday",e.EveryTuesday="EveryTuesday",e.EveryWednesday="EveryWednesday",e.SubscriptionStart="SubscriptionStart"}(fe||(fe={})),function(e){e.InvalidFeatureType="InvalidFeatureType",e.CustomerNotFound="CustomerNotFound",e.FeatureNotFound="FeatureNotFound",e.NoActiveSubscriptions="NoActiveSubscriptions",e.CustomerNotEntitledForFeature="CustomerNotEntitledForFeature",e.RequestedUsageExceedsLimit="RequestedUsageExceedsLimit",e.Unknown="Unknown"}(he||(he={})),function(e){e.Boolean="Boolean",e.Numeric="Numeric"}(pe||(pe={})),function(e){e.Fluctuating="Fluctuating",e.Incremental="Incremental",e.None="None"}(me||(me={})),function(e){e.Daily="Daily",e.Hourly="Hourly",e.Monthly="Monthly",e.Weekly="Weekly"}(_e||(_e={}));var ve={isFallback:!0,hasAccess:!1,accessDeniedReason:he.Unknown},ge={isFallback:!0,hasAccess:!1,isUnlimited:!1,accessDeniedReason:he.Unknown},be={isFallback:!0,hasAccess:!1,isUnlimited:!1,currentUsage:0,requestedUsage:1,accessDeniedReason:he.Unknown},Me=function(){function e(e){Object.assign(this,e)}return e.prototype.getActiveSubscriptions=function(){return this.subscriptions.filter((function(e){return e.status===ae.Active}))},e.prototype.getActiveTrials=function(){return this.subscriptions.filter((function(e){return e.status===ae.InTrial}))},e.prototype.getActivePromotionalEntitlements=function(){return this.promotionalEntitlements.filter((function(e){return e.status===G.Active}))},e}(),we=function(e,t){return(we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function ke(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}we(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Le=function(){return(Le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Te(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function De(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}u((r=r.apply(e,t||[])).next())}))}function Se(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function Ee(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Ye(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}Object.create,Object.create;const xe=/\r\n|[\n\r]/g;function Oe(e,t){let n=0,r=1;for(const i of e.body.matchAll(xe)){if("number"==typeof i.index||Ye(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function je(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=1===t.line?n:0,u=t.column+s,l=`${e.name}:${o}:${u}\n`,c=r.split(/\r\n|[\n\r]/g),d=c[i];if(d.length>120){const e=Math.floor(u/80),t=u%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return l+Pe([[o+" |",n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return l+Pe([[o-1+" |",c[i-1]],[o+" |",d],["|","^".padStart(u)],[o+1+" |",c[i+1]]])}function Pe(e){const t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class Ce extends Error{constructor(e,t,n,r,i,a,o){var s,u,l;super(e),this.name="GraphQLError",this.path=null!=i?i:void 0,this.originalError=null!=a?a:void 0,this.nodes=Ae(Array.isArray(t)?t:t?[t]:void 0);const c=Ae(null===(s=this.nodes)||void 0===s?void 0:s.map(e=>e.loc).filter(e=>null!=e));this.source=null!=n?n:null==c||null===(u=c[0])||void 0===u?void 0:u.source,this.positions=null!=r?r:null==c?void 0:c.map(e=>e.start),this.locations=r&&n?r.map(e=>Oe(n,e)):null==c?void 0:c.map(e=>Oe(e.source,e.start));const d="object"==typeof(f=null==a?void 0:a.extensions)&&null!==f?null==a?void 0:a.extensions:void 0;var f;this.extensions=null!==(l=null!=o?o:d)&&void 0!==l?l:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=a&&a.stack?Object.defineProperty(this,"stack",{value:a.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Ce):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+="\n\n"+je((t=n.loc).source,Oe(t.source,t.start)));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+je(this.source,t);var t;return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function Ae(e){return void 0===e||0===e.length?void 0:e}function Ie(e,t,n){return new Ce("Syntax Error: "+n,void 0,e,[t])}let Ne;var Fe;(Fe=Ne||(Ne={})).NAME="Name",Fe.DOCUMENT="Document",Fe.OPERATION_DEFINITION="OperationDefinition",Fe.VARIABLE_DEFINITION="VariableDefinition",Fe.SELECTION_SET="SelectionSet",Fe.FIELD="Field",Fe.ARGUMENT="Argument",Fe.FRAGMENT_SPREAD="FragmentSpread",Fe.INLINE_FRAGMENT="InlineFragment",Fe.FRAGMENT_DEFINITION="FragmentDefinition",Fe.VARIABLE="Variable",Fe.INT="IntValue",Fe.FLOAT="FloatValue",Fe.STRING="StringValue",Fe.BOOLEAN="BooleanValue",Fe.NULL="NullValue",Fe.ENUM="EnumValue",Fe.LIST="ListValue",Fe.OBJECT="ObjectValue",Fe.OBJECT_FIELD="ObjectField",Fe.DIRECTIVE="Directive",Fe.NAMED_TYPE="NamedType",Fe.LIST_TYPE="ListType",Fe.NON_NULL_TYPE="NonNullType",Fe.SCHEMA_DEFINITION="SchemaDefinition",Fe.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",Fe.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",Fe.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",Fe.FIELD_DEFINITION="FieldDefinition",Fe.INPUT_VALUE_DEFINITION="InputValueDefinition",Fe.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",Fe.UNION_TYPE_DEFINITION="UnionTypeDefinition",Fe.ENUM_TYPE_DEFINITION="EnumTypeDefinition",Fe.ENUM_VALUE_DEFINITION="EnumValueDefinition",Fe.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",Fe.DIRECTIVE_DEFINITION="DirectiveDefinition",Fe.SCHEMA_EXTENSION="SchemaExtension",Fe.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",Fe.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",Fe.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",Fe.UNION_TYPE_EXTENSION="UnionTypeExtension",Fe.ENUM_TYPE_EXTENSION="EnumTypeExtension",Fe.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";class Re{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class He{constructor(e,t,n,r,i,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Ue={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},ze=new Set(Object.keys(Ue));function We(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&ze.has(t)}let Be,qe;var Ve;function $e(e){return function e(t,n){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,n){if(null===t)return"null";if(n.includes(t))return"[Circular]";const r=[...n,t];if(function(e){return"function"==typeof e.toJSON}(t)){const n=t.toJSON();if(n!==t)return"string"==typeof n?n:e(n,r)}else if(Array.isArray(t))return function(t,n){if(0===t.length)return"[]";if(n.length>2)return"[Array]";const r=Math.min(10,t.length),i=t.length-r,a=[];for(let i=0;i<r;++i)a.push(e(t[i],n));return 1===i?a.push("... 1 more item"):i>1&&a.push(`... ${i} more items`),"["+a.join(", ")+"]"}(t,r);return function(t,n){const r=Object.entries(t);return 0===r.length?"{}":n.length>2?"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(t)+"]":"{ "+r.map(([t,r])=>t+": "+e(r,n)).join(", ")+" }"}(t,r)}(t,n);default:return String(t)}}(e,[])}function Ge(e,t){if(!Boolean(e))throw new Error(t)}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(Be||(Be={})),(Ve=qe||(qe={})).SOF="<SOF>",Ve.EOF="<EOF>",Ve.BANG="!",Ve.DOLLAR="$",Ve.AMP="&",Ve.PAREN_L="(",Ve.PAREN_R=")",Ve.SPREAD="...",Ve.COLON=":",Ve.EQUALS="=",Ve.AT="@",Ve.BRACKET_L="[",Ve.BRACKET_R="]",Ve.BRACE_L="{",Ve.PIPE="|",Ve.BRACE_R="}",Ve.NAME="Name",Ve.INT="Int",Ve.FLOAT="Float",Ve.STRING="String",Ve.BLOCK_STRING="BlockString",Ve.COMMENT="Comment";class Qe{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||Ge(!1,`Body must be a string. Received: ${$e(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Ge(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ge(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}let Je;function Ke(e){const t=e.split(/\r\n|[\n\r]/g),n=function(e){var t;let n=!0,r=!0,i=0,a=null;for(let t=0;t<e.length;++t)switch(e.charCodeAt(t)){case 13:10===e.charCodeAt(t+1)&&++t;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===a||i<a)&&(a=i),r=!1}return null!==(t=a)&&void 0!==t?t:0}(e);if(0!==n)for(let e=1;e<t.length;e++)t[e]=t[e].slice(n);let r=0;for(;r<t.length&&Xe(t[r]);)++r;let i=t.length;for(;i>r&&Xe(t[i-1]);)--i;return t.slice(r,i).join("\n")}function Xe(e){for(const t of e)if(" "!==t&&"\t"!==t)return!1;return!0}function Ze(e){return e>=48&&e<=57}function et(e){return e>=97&&e<=122||e>=65&&e<=90}function tt(e){return et(e)||95===e}!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(Je||(Je={}));class nt{constructor(e){const t=new He(qe.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==qe.EOF)do{if(e.next)e=e.next;else{const t=lt(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===qe.COMMENT);return e}}function rt(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function it(e,t){return at(e.charCodeAt(t))&&ot(e.charCodeAt(t+1))}function at(e){return e>=55296&&e<=56319}function ot(e){return e>=56320&&e<=57343}function st(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return qe.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function ut(e,t,n,r,i){const a=e.line,o=1+n-e.lineStart;return new He(t,n,r,a,o,i)}function lt(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return ct(e,i);case 33:return ut(e,qe.BANG,i,i+1);case 36:return ut(e,qe.DOLLAR,i,i+1);case 38:return ut(e,qe.AMP,i,i+1);case 40:return ut(e,qe.PAREN_L,i,i+1);case 41:return ut(e,qe.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return ut(e,qe.SPREAD,i,i+3);break;case 58:return ut(e,qe.COLON,i,i+1);case 61:return ut(e,qe.EQUALS,i,i+1);case 64:return ut(e,qe.AT,i,i+1);case 91:return ut(e,qe.BRACKET_L,i,i+1);case 93:return ut(e,qe.BRACKET_R,i,i+1);case 123:return ut(e,qe.BRACE_L,i,i+1);case 124:return ut(e,qe.PIPE,i,i+1);case 125:return ut(e,qe.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?gt(e,i):ht(e,i)}if(Ze(t)||45===t)return dt(e,i,t);if(tt(t))return bt(e,i);throw Ie(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":rt(t)||it(n,i)?`Unexpected character: ${st(e,i)}.`:`Invalid character: ${st(e,i)}.`)}return ut(e,qe.EOF,r,r)}function ct(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(rt(e))++i;else{if(!it(n,i))break;i+=2}}return ut(e,qe.COMMENT,t,i,n.slice(t+1,i))}function dt(e,t,n){const r=e.source.body;let i=t,a=n,o=!1;if(45===a&&(a=r.charCodeAt(++i)),48===a){if(a=r.charCodeAt(++i),Ze(a))throw Ie(e.source,i,`Invalid number, unexpected digit after 0: ${st(e,i)}.`)}else i=ft(e,i,a),a=r.charCodeAt(i);if(46===a&&(o=!0,a=r.charCodeAt(++i),i=ft(e,i,a),a=r.charCodeAt(i)),69!==a&&101!==a||(o=!0,a=r.charCodeAt(++i),43!==a&&45!==a||(a=r.charCodeAt(++i)),i=ft(e,i,a),a=r.charCodeAt(i)),46===a||tt(a))throw Ie(e.source,i,`Invalid number, expected digit but got: ${st(e,i)}.`);return ut(e,o?qe.FLOAT:qe.INT,t,i,r.slice(t,i))}function ft(e,t,n){if(!Ze(n))throw Ie(e.source,t,`Invalid number, expected digit but got: ${st(e,t)}.`);const r=e.source.body;let i=t+1;for(;Ze(r.charCodeAt(i));)++i;return i}function ht(e,t){const n=e.source.body,r=n.length;let i=t+1,a=i,o="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return o+=n.slice(a,i),ut(e,qe.STRING,t,i+1,o);if(92!==r){if(10===r||13===r)break;if(rt(r))++i;else{if(!it(n,i))throw Ie(e.source,i,`Invalid character within String: ${st(e,i)}.`);i+=2}}else{o+=n.slice(a,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?pt(e,i):mt(e,i):vt(e,i);o+=t.value,i+=t.size,a=i}}throw Ie(e.source,i,"Unterminated string.")}function pt(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!rt(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|yt(e),r<0)break}throw Ie(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function mt(e,t){const n=e.source.body,r=_t(n,t+2);if(rt(r))return{value:String.fromCodePoint(r),size:6};if(at(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=_t(n,t+8);if(ot(e))return{value:String.fromCodePoint(r,e),size:12}}throw Ie(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function _t(e,t){return yt(e.charCodeAt(t))<<12|yt(e.charCodeAt(t+1))<<8|yt(e.charCodeAt(t+2))<<4|yt(e.charCodeAt(t+3))}function yt(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function vt(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw Ie(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function gt(e,t){const n=e.source.body,r=n.length,i=e.line,a=1+t-e.lineStart;let o=t+3,s=o,u="";for(;o<r;){const r=n.charCodeAt(o);if(34===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2))return u+=n.slice(s,o),new He(qe.BLOCK_STRING,t,o+3,i,a,Ke(u));if(92!==r||34!==n.charCodeAt(o+1)||34!==n.charCodeAt(o+2)||34!==n.charCodeAt(o+3))if(10!==r&&13!==r)if(rt(r))++o;else{if(!it(n,o))throw Ie(e.source,o,`Invalid character within String: ${st(e,o)}.`);o+=2}else 13===r&&10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;else u+=n.slice(s,o)+'"""',o+=4,s=o}throw Ie(e.source,o,"Unterminated string.")}function bt(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r&&(et(a=n.charCodeAt(i))||Ze(a)||95===a);)++i;var a;return ut(e,qe.NAME,t,i,n.slice(t,i))}class Mt{constructor(e,t){const n=function(e){return e instanceof Qe}(e)?e:new Qe(e);this._lexer=new nt(n),this._options=t}parseName(){const e=this.expectToken(qe.NAME);return this.node(e,{kind:Ne.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:Ne.DOCUMENT,definitions:this.many(qe.SOF,this.parseDefinition,qe.EOF)})}parseDefinition(){if(this.peek(qe.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===qe.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw Ie(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(qe.BRACE_L))return this.node(e,{kind:Ne.OPERATION_DEFINITION,operation:Be.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(qe.NAME)&&(n=this.parseName()),this.node(e,{kind:Ne.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(qe.NAME);switch(e.value){case"query":return Be.QUERY;case"mutation":return Be.MUTATION;case"subscription":return Be.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(qe.PAREN_L,this.parseVariableDefinition,qe.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Ne.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(qe.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(qe.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(qe.DOLLAR),this.node(e,{kind:Ne.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Ne.SELECTION_SET,selections:this.many(qe.BRACE_L,this.parseSelection,qe.BRACE_R)})}parseSelection(){return this.peek(qe.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(qe.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:Ne.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(qe.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(qe.PAREN_L,t,qe.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(qe.COLON),this.node(t,{kind:Ne.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(qe.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(qe.NAME)?this.node(e,{kind:Ne.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:Ne.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var e;const t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacyFragmentVariables)?this.node(t,{kind:Ne.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:Ne.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case qe.BRACKET_L:return this.parseList(e);case qe.BRACE_L:return this.parseObject(e);case qe.INT:return this._lexer.advance(),this.node(t,{kind:Ne.INT,value:t.value});case qe.FLOAT:return this._lexer.advance(),this.node(t,{kind:Ne.FLOAT,value:t.value});case qe.STRING:case qe.BLOCK_STRING:return this.parseStringLiteral();case qe.NAME:switch(this._lexer.advance(),t.value){case"true":return this.node(t,{kind:Ne.BOOLEAN,value:!0});case"false":return this.node(t,{kind:Ne.BOOLEAN,value:!1});case"null":return this.node(t,{kind:Ne.NULL});default:return this.node(t,{kind:Ne.ENUM,value:t.value})}case qe.DOLLAR:if(e){if(this.expectToken(qe.DOLLAR),this._lexer.token.kind===qe.NAME){const e=this._lexer.token.value;throw Ie(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable()}throw this.unexpected()}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this._lexer.advance(),this.node(e,{kind:Ne.STRING,value:e.value,block:e.kind===qe.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:Ne.LIST,values:this.any(qe.BRACKET_L,()=>this.parseValueLiteral(e),qe.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:Ne.OBJECT,fields:this.any(qe.BRACE_L,()=>this.parseObjectField(e),qe.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(qe.COLON),this.node(t,{kind:Ne.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(qe.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(qe.AT),this.node(t,{kind:Ne.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(qe.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(qe.BRACKET_R),t=this.node(e,{kind:Ne.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(qe.BANG)?this.node(e,{kind:Ne.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:Ne.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(qe.STRING)||this.peek(qe.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(qe.BRACE_L,this.parseOperationTypeDefinition,qe.BRACE_R);return this.node(e,{kind:Ne.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(qe.COLON);const n=this.parseNamedType();return this.node(e,{kind:Ne.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:Ne.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:Ne.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(qe.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(qe.BRACE_L,this.parseFieldDefinition,qe.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(qe.COLON);const i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:Ne.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(qe.PAREN_L,this.parseInputValueDef,qe.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(qe.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(qe.EQUALS)&&(i=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:Ne.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:Ne.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:Ne.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(qe.EQUALS)?this.delimitedMany(qe.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:Ne.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(qe.BRACE_L,this.parseEnumValueDefinition,qe.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:Ne.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw Ie(this._lexer.source,this._lexer.token.start,wt(this._lexer.token)+" is reserved and cannot be used for an enum value.");return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:Ne.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(qe.BRACE_L,this.parseInputValueDef,qe.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===qe.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(qe.BRACE_L,this.parseOperationTypeDefinition,qe.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:Ne.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:Ne.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:Ne.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:Ne.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:Ne.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:Ne.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:Ne.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(qe.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:Ne.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany(qe.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(Je,t.value))return t;throw this.unexpected(e)}node(e,t){var n;return!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation)&&(t.loc=new Re(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw Ie(this._lexer.source,t.start,`Expected ${kt(e)}, found ${wt(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this._lexer.advance(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==qe.NAME||t.value!==e)throw Ie(this._lexer.source,t.start,`Expected "${e}", found ${wt(t)}.`);this._lexer.advance()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===qe.NAME&&t.value===e&&(this._lexer.advance(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return Ie(this._lexer.source,t.start,`Unexpected ${wt(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}}function wt(e){const t=e.value;return kt(e.kind)+(null!=t?` "${t}"`:"")}function kt(e){return function(e){return e===qe.BANG||e===qe.DOLLAR||e===qe.AMP||e===qe.PAREN_L||e===qe.PAREN_R||e===qe.SPREAD||e===qe.COLON||e===qe.EQUALS||e===qe.AT||e===qe.BRACKET_L||e===qe.BRACKET_R||e===qe.BRACE_L||e===qe.PIPE||e===qe.BRACE_R}(e)?`"${e}"`:e}var Lt=new Map,Tt=new Map,Dt=!0,St=!1;function Et(e){return e.replace(/[\s,]+/g," ").trim()}function Yt(e){var t,n,r,i=Et(e);if(!Lt.has(i)){var a=function(e,t){return new Mt(e,t).parseDocument()}(e,{experimentalFragmentVariables:St,allowLegacyFragmentVariables:St});if(!a||"Document"!==a.kind)throw new Error("Not a valid GraphQL document.");Lt.set(i,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=a,n=new Set,r=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=Et((o=e.loc).source.body.substring(o.start,o.end)),a=Tt.get(t);a&&!a.has(i)?Dt&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||Tt.set(t,a=new Set),a.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e);var o})),Le(Le({},t),{definitions:r}))))}return Lt.get(i)}function xt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),Yt(r)}var Ot,jt=xt;(Ot=xt||(xt={})).gql=jt,Ot.resetCaches=function(){Lt.clear(),Tt.clear()},Ot.disableFragmentWarnings=function(){Dt=!1},Ot.enableExperimentalFragmentVariables=function(){St=!0},Ot.disableExperimentalFragmentVariables=function(){St=!1},xt.default=xt;var Pt,Ct,At=xt(Nt||(Pt=["\n query SdkConfiguration {\n sdkConfiguration {\n sentryDsn\n }\n }\n"],Ct=["\n query SdkConfiguration {\n sdkConfiguration {\n sentryDsn\n }\n }\n"],Object.defineProperty?Object.defineProperty(Pt,"raw",{value:Ct}):Pt.raw=Ct,Nt=Pt));const It=function(){function e(e){this.client=e}return e.prototype.getSdkConfiguration=function(){return e=this,n=function(){return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(e){switch(e.label){case 0:return[4,this.client.query({query:At})];case 1:return[2,e.sent().data.sdkConfiguration]}}))},new((t=void 0)||(t=Promise))((function(r,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function o(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,o)}s((n=n.apply(e,[])).next())}));var e,t,n},e}();var Nt,Ft,Rt=xt(Ft||(Ft=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}(["\n fragment PriceFragment on Price {\n billingModel\n billingPeriod\n price {\n amount\n currency\n }\n feature {\n featureUnits\n featureUnitsPlural\n displayName\n }\n }\n"],["\n fragment PriceFragment on Price {\n billingModel\n billingPeriod\n price {\n amount\n currency\n }\n feature {\n featureUnits\n featureUnitsPlural\n displayName\n }\n }\n"]))),Ht=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Ut=xt(qt||(qt=Ht(["\n fragment PackageEntitlementFragment on PackageEntitlement {\n usageLimit\n hasUnlimitedUsage\n featureId\n resetPeriod\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n"],["\n fragment PackageEntitlementFragment on PackageEntitlement {\n usageLimit\n hasUnlimitedUsage\n featureId\n resetPeriod\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n"]))),zt=xt(Vt||(Vt=Ht(["\n fragment AddonFragment on Addon {\n refId\n displayName\n description\n additionalMetaData\n entitlements {\n ...PackageEntitlementFragment\n }\n prices {\n ...PriceFragment\n }\n pricingType\n }\n"],["\n fragment AddonFragment on Addon {\n refId\n displayName\n description\n additionalMetaData\n entitlements {\n ...PackageEntitlementFragment\n }\n prices {\n ...PriceFragment\n }\n pricingType\n }\n"]))),Wt=xt($t||($t=Ht(["\n fragment PlanFragment on Plan {\n id\n refId\n description\n displayName\n additionalMetaData\n product {\n refId\n displayName\n description\n additionalMetaData\n }\n basePlan {\n id\n refId\n displayName\n }\n entitlements {\n ...PackageEntitlementFragment\n }\n inheritedEntitlements {\n ...PackageEntitlementFragment\n }\n prices {\n ...PriceFragment\n }\n pricingType\n defaultTrialConfig {\n duration\n units\n }\n }\n ","\n ","\n ","\n"],["\n fragment PlanFragment on Plan {\n id\n refId\n description\n displayName\n additionalMetaData\n product {\n refId\n displayName\n description\n additionalMetaData\n }\n basePlan {\n id\n refId\n displayName\n }\n entitlements {\n ...PackageEntitlementFragment\n }\n inheritedEntitlements {\n ...PackageEntitlementFragment\n }\n prices {\n ...PriceFragment\n }\n pricingType\n defaultTrialConfig {\n duration\n units\n }\n }\n ","\n ","\n ","\n"])),Ut,Rt,zt);const Bt=function(){function e(e){this.client=e}return e.prototype.getPlans=function(e){return this.client.query({query:xt(Gt||(Gt=Ht(["\n query GetPlans($paging: CursorPaging, $filter: PlanFilter, $addonFilter: AddonFilter, $sorting: [PlanSort!]) {\n plans(paging: $paging, filter: $filter, sorting: $sorting) {\n edges {\n node {\n ...PlanFragment\n compatibleAddons(filter: $addonFilter) {\n ...AddonFragment\n }\n }\n }\n }\n }\n ","\n "],["\n query GetPlans($paging: CursorPaging, $filter: PlanFilter, $addonFilter: AddonFilter, $sorting: [PlanSort!]) {\n plans(paging: $paging, filter: $filter, sorting: $sorting) {\n edges {\n node {\n ...PlanFragment\n compatibleAddons(filter: $addonFilter) {\n ...AddonFragment\n }\n }\n }\n }\n }\n ","\n "])),Wt),fetchPolicy:"no-cache",variables:{paging:{first:50},filter:{status:{eq:H.Published},isLatest:{is:!0},product:e?{refId:{eq:e}}:{}},addonFilter:{status:{eq:H.Published},isLatest:{is:!0}},sorting:[{field:z.RefId,direction:J.Asc}]}})},e}();var qt,Vt,$t,Gt,Qt=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Jt=xt(tn||(tn=Qt(["\n fragment TotalPriceFragment on CustomerSubscriptionTotalPrice {\n subTotal {\n amount\n currency\n }\n total {\n amount\n currency\n }\n }\n"],["\n fragment TotalPriceFragment on CustomerSubscriptionTotalPrice {\n subTotal {\n amount\n currency\n }\n total {\n amount\n currency\n }\n }\n"]))),Kt=xt(nn||(nn=Qt(["\n fragment SubscriptionFragment on CustomerSubscription {\n id\n startDate\n endDate\n trialEndDate\n cancellationDate\n effectiveEndDate\n status\n refId\n currentBillingPeriodEnd\n additionalMetaData\n prices {\n usageLimit\n price {\n ...PriceFragment\n }\n }\n pricingType\n totalPrice {\n ...TotalPriceFragment\n }\n plan {\n id\n refId\n displayName\n description\n additionalMetaData\n product {\n refId\n displayName\n }\n entitlements {\n usageLimit\n featureId\n hasUnlimitedUsage\n packageId\n resetPeriod\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n inheritedEntitlements {\n usageLimit\n featureId\n hasUnlimitedUsage\n packageId\n resetPeriod\n packageId\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n prices {\n ...PriceFragment\n }\n }\n addons {\n id\n quantity\n addon {\n id\n refId\n displayName\n description\n additionalMetaData\n entitlements {\n usageLimit\n hasUnlimitedUsage\n featureId\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n }\n }\n }\n ","\n ","\n"],["\n fragment SubscriptionFragment on CustomerSubscription {\n id\n startDate\n endDate\n trialEndDate\n cancellationDate\n effectiveEndDate\n status\n refId\n currentBillingPeriodEnd\n additionalMetaData\n prices {\n usageLimit\n price {\n ...PriceFragment\n }\n }\n pricingType\n totalPrice {\n ...TotalPriceFragment\n }\n plan {\n id\n refId\n displayName\n description\n additionalMetaData\n product {\n refId\n displayName\n }\n entitlements {\n usageLimit\n featureId\n hasUnlimitedUsage\n packageId\n resetPeriod\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n inheritedEntitlements {\n usageLimit\n featureId\n hasUnlimitedUsage\n packageId\n resetPeriod\n packageId\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n prices {\n ...PriceFragment\n }\n }\n addons {\n id\n quantity\n addon {\n id\n refId\n displayName\n description\n additionalMetaData\n entitlements {\n usageLimit\n hasUnlimitedUsage\n featureId\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n }\n }\n }\n ","\n ","\n"])),Rt,Jt),Xt=xt(rn||(rn=Qt(["\n fragment PromotionalEntitlementFragment on PromotionalEntitlement {\n status\n usageLimit\n featureId\n hasUnlimitedUsage\n resetPeriod\n endDate\n isVisible\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n"],["\n fragment PromotionalEntitlementFragment on PromotionalEntitlement {\n status\n usageLimit\n featureId\n hasUnlimitedUsage\n resetPeriod\n endDate\n isVisible\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n"]))),Zt=xt(an||(an=Qt(["\n fragment CustomerFragment on Customer {\n id\n name\n email\n createdAt\n updatedAt\n hasPaymentMethod\n refId\n additionalMetaData\n trialedPlans {\n productId\n productRefId\n planRefId\n planId\n }\n promotionalEntitlements {\n ...PromotionalEntitlementFragment\n }\n subscriptions {\n ...SubscriptionFragment\n }\n }\n ","\n ","\n"],["\n fragment CustomerFragment on Customer {\n id\n name\n email\n createdAt\n updatedAt\n hasPaymentMethod\n refId\n additionalMetaData\n trialedPlans {\n productId\n productRefId\n planRefId\n planId\n }\n promotionalEntitlements {\n ...PromotionalEntitlementFragment\n }\n subscriptions {\n ...SubscriptionFragment\n }\n }\n ","\n ","\n"])),Kt,Xt);const en=function(){function e(e){this.client=e}return e.prototype.getCustomer=function(e){return this.client.query({query:xt(on||(on=Qt(["\n query GetCustomerByRefId($filter: CustomerFilter) {\n customers(filter: $filter) {\n edges {\n node {\n ...CustomerFragment\n }\n }\n }\n }\n ","\n "],["\n query GetCustomerByRefId($filter: CustomerFilter) {\n customers(filter: $filter) {\n edges {\n node {\n ...CustomerFragment\n }\n }\n }\n }\n ","\n "])),Zt),variables:{filter:{refId:{eq:e}}},fetchPolicy:"no-cache"})},e}();var tn,nn,rn,an,on,sn=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},un=xt(dn||(dn=sn(["\n fragment CouponFragment on Coupon {\n id\n discountValue\n type\n additionalMetaData\n refId\n name\n description\n createdAt\n updatedAt\n billingId\n billingLinkUrl\n type\n status\n syncStates {\n vendorIdentifier\n status\n }\n customers {\n id\n }\n }\n"],["\n fragment CouponFragment on Coupon {\n id\n discountValue\n type\n additionalMetaData\n refId\n name\n description\n createdAt\n updatedAt\n billingId\n billingLinkUrl\n type\n status\n syncStates {\n vendorIdentifier\n status\n }\n customers {\n id\n }\n }\n"]))),ln=xt(fn||(fn=sn(["\n ","\n query FetchCoupons($filter: CouponFilter, $sorting: [CouponSort!], $paging: CursorPaging) {\n coupons(filter: $filter, sorting: $sorting, paging: $paging) {\n edges {\n node {\n ...CouponFragment\n }\n }\n }\n }\n"],["\n ","\n query FetchCoupons($filter: CouponFilter, $sorting: [CouponSort!], $paging: CursorPaging) {\n coupons(filter: $filter, sorting: $sorting, paging: $paging) {\n edges {\n node {\n ...CouponFragment\n }\n }\n }\n }\n"])),un);const cn=function(){function e(e){this.client=e}return e.prototype.getCoupons=function(){return this.client.query({query:ln,fetchPolicy:"no-cache",variables:{paging:{first:50},filter:{status:{eq:y.Active}}}})},e}();var dn,fn;const hn=function(e){this.sdkConfiguration=new It(e),this.paywall=new Bt(e),this.customers=new en(e),this.coupons=new cn(e)};var pn=r(1609),mn=r.n(pn),_n=r(2492),yn=r.n(_n),vn=X.JsClientSdk;function gn(e){var t=e.customerId;if(!t||mn()(t))throw new Error("You must set customer ID first, use setCustomerId function or pass it via the constructor");return t}var bn=r(5161),Mn=r.n(bn),wn=r(9734),kn=r.n(wn),Ln=function(){return(Ln=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Tn=function(){function e(){this.getResetPeriodData=function(e,t){switch(e){case _e.Monthly:return{monthlyResetPeriodConfiguration:{accordingTo:t.monthlyAccordingTo||N.SubscriptionStart}};case _e.Weekly:return{weeklyResetPeriodConfiguration:{accordingTo:t.weeklyAccordingTo||fe.EveryFriday}};default:return{}}}}return e.prototype.mapBooleanEntitlement=function(e,t){return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,feature:e.calculatedEntitlement.feature?Ln(Ln({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapNumericEntitlement=function(e,t){var n=e.calculatedEntitlement,r=n.hasUnlimitedUsage,i=n.usageLimit;return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:r,value:i||void 0,feature:e.calculatedEntitlement.feature?Ln(Ln({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapMeteredEntitlement=function(e,t,n){var r=e.calculatedEntitlement,i=r.hasUnlimitedUsage,a=r.usageLimit,o=r.feature,s=e.featureUsage,u=s.currentUsage,l=s.nextResetDate,c=s.resetPeriod,d=null;return o&&o.featureType===pe.Numeric&&o.meterType===I.Incremental&&c&&(d={nextResetDate:l,resetPeriod:c}),{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:i,usageLimit:a||void 0,currentUsage:u,requestedUsage:n||0,resetSettings:d||void 0,feature:e.calculatedEntitlement.feature?Ln(Ln({},e.calculatedEntitlement.feature),{meterType:e.calculatedEntitlement.feature.meterType||void 0,isMetered:!0}):void 0}},e.prototype.mapEntitlement=function(e,t,n){var r=e.calculatedEntitlement;if(!r.feature)return this.mapBooleanEntitlement(e,t);var i=r.feature,a=i.featureType,o=i.meterType,s=a===pe.Numeric&&(o===I.Incremental||o===I.Fluctuating);switch(a){case pe.Boolean:return this.mapBooleanEntitlement(e,t);case pe.Numeric:return s?this.mapMeteredEntitlement(e,t,n):this.mapNumericEntitlement(e,t)}},e.prototype.mapFeatureType=function(e){switch(e){case Y.Boolean:return pe.Boolean;case Y.Number:return pe.Numeric}},e.prototype.mapEntitlementResetPeriod=function(e){switch(e){case w.Day:return _e.Daily;case w.Hour:return _e.Hourly;case w.Week:return _e.Weekly;case w.Month:return _e.Monthly}},e.prototype.mapApiEntitlementResetPeriod=function(e){switch(e){case _e.Daily:return w.Day;case _e.Hourly:return w.Hour;case _e.Weekly:return w.Week;case _e.Monthly:return w.Month}},e.prototype.mapCachedEntitlement=function(e,t,n){var r;return e.feature&&(r={id:e.feature.refId,featureType:this.mapFeatureType(e.feature.featureType),meterType:e.feature.meterType||void 0,units:e.feature.featureUnits||void 0,unitsPlural:e.feature.featureUnitsPlural||void 0,displayName:e.feature.displayName,description:e.feature.description||""}),{calculatedEntitlement:{usageLimit:e.usageLimit,hasUnlimitedUsage:e.hasUnlimitedUsage,feature:r},featureUsage:{resetPeriod:e.resetPeriod?this.mapEntitlementResetPeriod(e.resetPeriod):void 0,resetPeriodConfiguration:e.resetPeriodConfiguration,currentUsage:t||e.currentUsage||0,nextResetDate:n||e.nextResetDate}}},e.prototype.mapCachedEntitlements=function(e){var t=this;return new Map(e.map((function(e){var n;return[(null===(n=e.feature)||void 0===n?void 0:n.refId)||"",t.mapCachedEntitlement(e)]})))},e.prototype.mapPlans=function(e){var t=this,n=e.plans.edges.map((function(e){return e.node}));return this.sortPlans(n).map((function(e,n){return t.mapPlan(e,n)}))},e.prototype.mapCoupons=function(e){var t=this;return e.coupons.edges.map((function(e){return e.node})).map((function(e){return t.mapCoupon(e)}))},e.prototype.mapCustomer=function(e){var t,n=this;return new Me({id:e.refId,name:e.name||void 0,email:e.email||void 0,createdAt:new Date(e.createdAt),updatedAt:new Date(e.updatedAt),hasPaymentMethod:e.hasPaymentMethod,subscriptions:Mn()(e.subscriptions,(function(e){return n.mapSubscription(e)})),promotionalEntitlements:Mn()(e.promotionalEntitlements,(function(e){return n.mapPromotionalEntitlement(e)})),metadata:e.additionalMetaData,trialedPlans:(null===(t=e.trialedPlans)||void 0===t?void 0:t.map((function(e){return{productId:e.productRefId,planId:e.planRefId}})))||void 0})},e.prototype.mapTotalPrice=function(e,t,n){var r=e.feature,i=e.price,a={pricingModel:e.billingModel,billingPeriod:e.billingPeriod,amount:t.total.amount,grossAmount:t.subTotal.amount,currency:i.currency};return r&&(a.feature={displayName:r.displayName,units:r.featureUnits,unitsPlural:r.featureUnitsPlural,unitQuantity:n}),a},e.prototype.mapPrice=function(e,t){var n=e.feature,r=e.price,i={pricingModel:e.billingModel,billingPeriod:e.billingPeriod,amount:r.amount,currency:r.currency};return n&&(i.feature={displayName:n.displayName,units:n.featureUnits,unitsPlural:n.featureUnitsPlural,unitQuantity:t}),i},e.prototype.mapPlan=function(e,t){var n=this;return void 0===t&&(t=0),{id:e.refId,order:t,displayName:e.displayName,description:e.description,basePlan:e.basePlan?{id:e.basePlan.refId,displayName:e.basePlan.displayName}:void 0,entitlements:Mn()(kn()(e.entitlements,(function(e){return e.feature.refId})),(function(e){return n.mapPackageEntitlement(e)})),inheritedEntitlements:Mn()(kn()(e.inheritedEntitlements,(function(e){return e.feature.refId})),(function(e){return n.mapPackageEntitlement(e)})),pricePoints:Mn()(e.prices,(function(e){return n.mapPrice(e)})),pricingType:e.pricingType,defaultTrialConfig:e.defaultTrialConfig,compatibleAddons:this.mapCompatibleAddons(e),product:{id:e.product.refId,displayName:e.product.displayName,description:e.product.description,metadata:e.product.additionalMetaData},metadata:e.additionalMetaData}},e.prototype.mapCompatibleAddons=function(e){var t=this;if(e.pricingType===B.Free||!e.compatibleAddons)return[];var n=e.compatibleAddons;return(e.pricingType===B.Paid?n.filter((function(e){return e.pricingType===B.Paid})):n).map((function(e){return t.mapAddon(e)}))},e.prototype.mapPackageEntitlement=function(e){var t=e.feature;return{usageLimit:e.usageLimit||0,feature:{id:t.refId,featureType:this.mapFeatureType(t.featureType),description:t.description||"",meterType:t.meterType||void 0,units:t.featureUnits||void 0,unitsPlural:t.featureUnitsPlural||void 0,displayName:t.displayName,isMetered:t.meterType===I.Fluctuating||t.meterType===I.Incremental},hasUnlimitedUsage:e.hasUnlimitedUsage,resetPeriod:e.resetPeriod?this.mapEntitlementResetPeriod(e.resetPeriod):void 0}},e.prototype.mapPromotionalEntitlement=function(e){var t=e.feature;return{status:e.status,usageLimit:e.usageLimit||0,feature:{id:t.refId,displayName:t.displayName,description:t.description||"",featureType:this.mapFeatureType(t.featureType),meterType:t.meterType||void 0,units:t.featureUnits||void 0,unitsPlural:t.featureUnitsPlural||void 0,isMetered:t.meterType===I.Fluctuating||t.meterType===I.Incremental},hasUnlimitedUsage:e.hasUnlimitedUsage,expiresAt:e.endDate,hasExpirationDate:!!e.endDate,isVisible:e.isVisible}},e.prototype.mapSubscription=function(e){var t,n=this,r=e.totalPrice,i=(e.prices||[])[0];return{id:e.refId,status:e.status,currentBillingPeriodEnd:this.mapDate(e.currentBillingPeriodEnd),plan:this.mapPlan(e.plan),price:i&&r?this.mapTotalPrice(i.price,r,i.usageLimit):null,pricingType:e.pricingType,addons:(null===(t=e.addons)||void 0===t?void 0:t.map((function(e){var t=e.quantity,r=e.addon;return{quantity:t,addon:n.mapAddon(r)}})))||[],startDate:e.startDate,endDate:this.mapDate(e.endDate),trialEndDate:this.mapDate(e.trialEndDate),cancellationDate:this.mapDate(e.cancellationDate),effectiveEndDate:this.mapDate(e.effectiveEndDate),metadata:e.additionalMetaData}},e.prototype.mapDate=function(e){return e?new Date(e):void 0},e.prototype.mapAddon=function(e){var t=this;return{id:e.refId,displayName:e.displayName,description:e.description||"",entitlements:Mn()(e.entitlements,(function(e){return t.mapPackageEntitlement(e)})),pricePoints:Mn()(e.prices,(function(e){return t.mapPrice(e)})),pricingType:e.pricingType,metadata:e.additionalMetaData}},e.prototype.sortPlans=function(e){var t=kn()(e.filter((function(e){return!e.basePlan})),(function(e){return e.refId})),n=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}([],t,!0);return t.forEach((function(t){return function e(t,n,r){var i=kn()(n.filter((function(e){var n;return(null===(n=e.basePlan)||void 0===n?void 0:n.refId)===t})),(function(e){return e.refId}));r.push.apply(r,i),r.length!==n.length&&i.forEach((function(t){return e(t.refId,n,r)}))}(t.refId,e,n)})),n},e.prototype.mapAccessDeniedReason=function(e){switch(e){case he.InvalidFeatureType:return l.Unknown;case he.CustomerNotFound:return l.CustomerNotFound;case he.FeatureNotFound:return l.FeatureNotFound;case he.NoActiveSubscriptions:return l.NoActiveSubscription;case he.CustomerNotEntitledForFeature:return l.NoFeatureEntitlementInSubscription;case he.RequestedUsageExceedsLimit:return l.RequestedUsageExceedingLimit;case he.Unknown:return l.Unknown}},e.prototype.mapFallbackBooleanEntitlementResult=function(e,t){return{hasAccess:e.hasAccess,accessDeniedReason:t.accessDeniedReason?this.mapAccessDeniedReason(t.accessDeniedReason):void 0}},e.prototype.mapFallbackNumericEntitlementResult=function(e,t){return{hasAccess:e.hasAccess,accessDeniedReason:t.accessDeniedReason?this.mapAccessDeniedReason(t.accessDeniedReason):void 0,usageLimit:e.value,hasUnlimitedUsage:e.isUnlimited}},e.prototype.mapEntitlementResult=function(e,t,n){return Ln({hasAccess:e.hasAccess,accessDeniedReason:e.accessDeniedReason?this.mapAccessDeniedReason(e.accessDeniedReason):void 0,hasUnlimitedUsage:null==t?void 0:t.calculatedEntitlement.hasUnlimitedUsage,usageLimit:null==t?void 0:t.calculatedEntitlement.usageLimit,currentUsage:null==t?void 0:t.featureUsage.currentUsage,requestedUsage:n,nextResetDate:null==t?void 0:t.featureUsage.nextResetDate,resetPeriod:(null==t?void 0:t.featureUsage.resetPeriod)?this.mapApiEntitlementResetPeriod(t.featureUsage.resetPeriod):void 0},this.getResetPeriodData(null==t?void 0:t.featureUsage.resetPeriod,null==t?void 0:t.featureUsage.resetPeriodConfiguration))},e.prototype.mapFallbackMeteredEntitlementResult=function(e,t,n){return{hasAccess:e.hasAccess,accessDeniedReason:t.accessDeniedReason?this.mapAccessDeniedReason(t.accessDeniedReason):void 0,hasUnlimitedUsage:e.isUnlimited,usageLimit:e.usageLimit,requestedUsage:n}},e.prototype.mapCoupon=function(e){return{id:e.refId,name:e.name,description:e.description,metadata:e.additionalMetaData,discountValue:e.discountValue}},e}(),Dn="Invariant Violation",Sn=Object.setPrototypeOf,En=void 0===Sn?function(e,t){return e.__proto__=t,e}:Sn,Yn=function(e){function t(n){void 0===n&&(n=Dn);var r=e.call(this,"number"==typeof n?Dn+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=Dn,En(r,t.prototype),r}return ke(t,e),t}(Error);function xn(e,t){if(!e)throw new Yn(t)}var On=["debug","log","warn","error","silent"],jn=On.indexOf("log");function Pn(e){return function(){if(On.indexOf(e)>=jn){var t=console[e]||console.log;return t.apply(console,arguments)}}}function Cn(e){try{return e()}catch(e){}}!function(e){e.debug=Pn("debug"),e.log=Pn("log"),e.warn=Pn("warn"),e.error=Pn("error")}(xn||(xn={}));const An=Cn((function(){return globalThis}))||Cn((function(){return window}))||Cn((function(){return self}))||Cn((function(){return r.g}))||Cn((function(){return Function("return this")()}));var In="__",Nn=[In,In].join("DEV");const Fn=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(An,Nn,{value:"production"!==Cn((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),An[Nn]}}();function Rn(e){try{return e()}catch(e){}}var Hn=Rn((function(){return globalThis}))||Rn((function(){return window}))||Rn((function(){return self}))||Rn((function(){return r.g}))||Rn((function(){return Function("return this")()})),Un=!1;function zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bn(e,t,n){return t&&Wn(e.prototype,t),n&&Wn(e,n),e}!Hn||Rn((function(){return"production"}))||Rn((function(){return t}))||(Object.defineProperty(Hn,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Un=!0),Un&&(delete Hn.process,Un=!1),__DEV__?xn("boolean"==typeof Fn,Fn):xn("boolean"==typeof Fn,38);var qn=function(){return"function"==typeof Symbol},Vn=function(e){return qn()&&Boolean(Symbol[e])},$n=function(e){return Vn(e)?Symbol[e]:"@@"+e};qn()&&!Vn("observable")&&(Symbol.observable=Symbol("observable"));var Gn=$n("iterator"),Qn=$n("observable"),Jn=$n("species");function Kn(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function Xn(e){var t=e.constructor;return void 0!==t&&null===(t=t[Jn])&&(t=void 0),void 0!==t?t:sr}function Zn(e){Zn.log?Zn.log(e):setTimeout((function(){throw e}))}function er(e){Promise.resolve().then((function(){try{e()}catch(e){Zn(e)}}))}function tr(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=Kn(t,"unsubscribe");n&&n.call(t)}}catch(e){Zn(e)}}function nr(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function rr(e,t,n){e._state="running";var r=e._observer;try{var i=Kn(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(nr(e),!i)throw n;i.call(r,n);break;case"complete":nr(e),i&&i.call(r)}}catch(e){Zn(e)}"closed"===e._state?tr(e):"running"===e._state&&(e._state="ready")}function ir(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void er((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(rr(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void rr(e,t,n);e._queue.push({type:t,value:n})}}var ar=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new or(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(nr(this),tr(this))},Bn(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),or=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){ir(this._subscription,"next",e)},t.error=function(e){ir(this._subscription,"error",e)},t.complete=function(){ir(this._subscription,"complete")},Bn(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),sr=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new ar(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,a)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function a(){i.unsubscribe(),n()}}))},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Xn(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Xn(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=Xn(this),r=arguments.length>1,i=!1,a=arguments[1],o=a;return new n((function(n){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||r)try{o=e(o,t)}catch(e){return n.error(e)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(o),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=Xn(this);return new i((function(t){var r,a=0;return function e(o){r=o.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){a===n.length?(r=void 0,t.complete()):e(i.from(n[a++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=Xn(this);return new n((function(r){var i=[],a=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var a=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(a);e>=0&&i.splice(e,1),o()}});i.push(a)},error:function(e){r.error(e)},complete:function(){o()}});function o(){a.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),a.unsubscribe()}}))},t[Qn]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=Kn(t,Qn);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return function(e){return e instanceof sr}(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(Vn("iterator")&&(r=Kn(t,Gn)))return new n((function(e){er((function(){if(!e.closed){for(var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return zn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zn(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.call(t));!(n=i()).done;){var a=n.value;if(e.next(a),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){er((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i="function"==typeof this?this:e;return new i((function(e){er((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},Bn(e,null,[{key:Jn,get:function(){return this}}]),e}();function ur(e){return null!==e&&"object"==typeof e}function lr(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new Yn("Found a "+e.operation+" operation"+(e.name?" named '"+e.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed."):new Yn(43);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&(__DEV__?xn(1===r.length,"Found "+r.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):xn(1===r.length,44),n=r[0].name.value),Le(Le({},e),{definitions:Ee([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function cr(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function dr(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?xn(n,"No fragment named "+e.name.value+"."):xn(n,45),n;default:return null}}function fr(e){return{__ref:String(e)}}function hr(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function pr(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map((function(e){return pr(i,e.name,e.value,r)})),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return pr(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw __DEV__?new Yn('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new Yn(54);e[t.value]=null}}qn()&&Object.defineProperty(sr,Symbol("extensions"),{value:{symbol:Qn,hostReportError:Zn},configurable:!0});var mr=["connection","include","skip","client","rest","export"],_r=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),n.connection.key+"("+yr(i)+")"}return n.connection.key}var a=e;if(t){var o=yr(t);a+="("+o+")"}return n&&Object.keys(n).forEach((function(e){-1===mr.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+yr(n[e])+")":a+="@"+e)})),a}),{setStringify:function(e){var t=yr;return yr=e,t}}),yr=function(e){return JSON.stringify(e,vr)};function vr(e,t){return ur(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function gr(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return pr(n,r,i,t)})),n}return null}function br(e){return e.alias?e.alias.value:e.name.value}function Mr(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var a=i[r];if(wr(a)){if("__typename"===a.name.value)return e[br(a)]}else{var o=Mr(e,dr(a,n).selectionSet,n);if("string"==typeof o)return o}}}function wr(e){return"Field"===e.kind}function kr(e){return"InlineFragment"===e.kind}function Lr(e){__DEV__?xn(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):xn(e&&"Document"===e.kind,46);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new Yn('Schema type definitions not allowed in queries. Found: "'+e.kind+'"'):new Yn(47);return e}));return __DEV__?xn(t.length<=1,"Ambiguous GraphQL document: contains "+t.length+" operations"):xn(t.length<=1,48),e}function Tr(e){return Lr(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function Dr(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function Sr(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function Er(e){var t=Tr(e);return __DEV__?xn(t&&"query"===t.operation,"Must contain a query definition."):xn(t&&"query"===t.operation,49),t}function Yr(e){var t;Lr(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var a=i.operation;if("query"===a||"mutation"===a||"subscription"===a)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw __DEV__?new Yn("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new Yn(53)}function xr(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&pr(t,e.variable.name,e.defaultValue)})),t}function Or(e,t){return t?t(e):sr.of()}function jr(e){return"function"==typeof e?new Ar(e):e}function Pr(e){return e.request.length<=1}var Cr=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return ke(t,e),t}(Error),Ar=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return sr.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(jr).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var i=jr(n),a=jr(r||new e(Or));return Pr(i)&&Pr(a)?new e((function(e){return t(e)?i.request(e)||sr.of():a.request(e)||sr.of()})):new e((function(e,n){return t(e)?i.request(e,n)||sr.of():a.request(e,n)||sr.of()}))},e.execute=function(e,t){return e.request(function(e,t){var n=Le({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=Le(Le({},n),"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Le({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?Dr(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw __DEV__?new Yn("illegal argument: "+i):new Yn(26)}return e}(t))))||sr.of()},e.concat=function(t,n){var r=jr(t);if(Pr(r))return __DEV__&&xn.warn(new Cr("You are calling concat on a terminating link, which will have no effect",r)),r;var i=jr(n);return Pr(i)?new e((function(e){return r.request(e,(function(e){return i.request(e)||sr.of()}))||sr.of()})):new e((function(e,t){return r.request(e,(function(e){return i.request(e,t)||sr.of()}))||sr.of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(Or)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new Yn("request is not implemented"):new Yn(21)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}();const Ir=Object.freeze({});function Nr(e,t,n=Ue){const r=new Map;for(const e of Object.values(Ne))r.set(e,Fr(t,e));let i,a,o,s,u=Array.isArray(e),l=[e],c=-1,d=[];const f=[],h=[];let p=e;do{c++;const e=c===l.length,v=e&&0!==d.length;if(e){if(o=0===h.length?void 0:f[f.length-1],a=s,s=h.pop(),v)if(u){a=a.slice();let e=0;for(const[t,n]of d){const r=t-e;null===n?(a.splice(r,1),e++):a[r]=n}}else{a=Object.defineProperties({},Object.getOwnPropertyDescriptors(a));for(const[e,t]of d)a[e]=t}c=i.index,l=i.keys,d=i.edits,u=i.inArray,i=i.prev}else{if(o=s?u?c:l[c]:void 0,a=s?s[o]:p,null==a)continue;s&&f.push(o)}let g;if(!Array.isArray(a)){var m,_;We(a)||Ge(!1,`Invalid AST Node: ${$e(a)}.`);const n=e?null===(m=r.get(a.kind))||void 0===m?void 0:m.leave:null===(_=r.get(a.kind))||void 0===_?void 0:_.enter;if(g=null==n?void 0:n.call(t,a,o,s,f,h),g===Ir)break;if(!1===g){if(!e){f.pop();continue}}else if(void 0!==g&&(d.push([o,g]),!e)){if(!We(g)){f.pop();continue}a=g}}var y;void 0===g&&v&&d.push([o,a]),e?f.pop():(i={inArray:u,index:c,keys:l,edits:d,prev:i},u=Array.isArray(a),l=u?a:null!==(y=n[a.kind])&&void 0!==y?y:[],c=-1,d=[],s&&h.push(s),s=a)}while(void 0!==i);return 0!==d.length&&(p=d[d.length-1][1]),p}function Fr(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}var Rr=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new Yn("Network request failed. "+t+" is not serializable: "+e.message):new Yn(23);throw r.parseError=e,r}return n},Hr=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")},Ur=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},zr=Object.prototype.hasOwnProperty;function Wr(e){return function(t){return t.text().then((function(e){try{return JSON.parse(e)}catch(r){var n=r;throw n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,n}})).then((function(n){return t.status>=300&&Ur(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||zr.call(n,"data")||zr.call(n,"errors")||Ur(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),n}))}}var Br=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new Yn("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new Yn(22)};const qr=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Vr(e){return $r[e.charCodeAt(0)]}const $r=["\\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"];function Gr(e){return Nr(e,Qr)}const Qr={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Jr(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Xr("(",Jr(e.variableDefinitions,", "),")"),n=Jr([e.operation,Jr([e.name,t]),Jr(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Xr(" = ",n)+Xr(" ",Jr(r," "))},SelectionSet:{leave:({selections:e})=>Kr(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const a=Xr("",e,": ")+t;let o=a+Xr("(",Jr(n,", "),")");return o.length>80&&(o=a+Xr("(\n",Zr(Jr(n,"\n")),"\n)")),Jr([o,Jr(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Xr(" ",Jr(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Jr(["...",Xr("on ",e),Jr(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Xr("(",Jr(n,", "),")")} on ${t} ${Xr("",Jr(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t=!1){const n=!e.includes("\n"),r=e.startsWith(" ")||e.startsWith("\t"),i=e.endsWith('"'),a=e.endsWith("\\"),o=!n||i||a||t;let s="";return!o||n&&r||(s+="\n"),s+=e,o&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}(e):`"${e.replace(qr,Vr)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Jr(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Jr(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Xr("(",Jr(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Xr("",e,"\n")+Jr(["schema",Jr(t," "),Kr(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Xr("",e,"\n")+Jr(["scalar",t,Jr(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Xr("",e,"\n")+Jr(["type",t,Xr("implements ",Jr(n," & ")),Jr(r," "),Kr(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Xr("",e,"\n")+t+(ei(n)?Xr("(\n",Zr(Jr(n,"\n")),"\n)"):Xr("(",Jr(n,", "),")"))+": "+r+Xr(" ",Jr(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Xr("",e,"\n")+Jr([t+": "+n,Xr("= ",r),Jr(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Xr("",e,"\n")+Jr(["interface",t,Xr("implements ",Jr(n," & ")),Jr(r," "),Kr(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Xr("",e,"\n")+Jr(["union",t,Jr(n," "),Xr("= ",Jr(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Xr("",e,"\n")+Jr(["enum",t,Jr(n," "),Kr(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Xr("",e,"\n")+Jr([t,Jr(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Xr("",e,"\n")+Jr(["input",t,Jr(n," "),Kr(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Xr("",e,"\n")+"directive @"+t+(ei(n)?Xr("(\n",Zr(Jr(n,"\n")),"\n)"):Xr("(",Jr(n,", "),")"))+(r?" repeatable":"")+" on "+Jr(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Jr(["extend schema",Jr(e," "),Kr(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Jr(["extend scalar",e,Jr(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Jr(["extend type",e,Xr("implements ",Jr(t," & ")),Jr(n," "),Kr(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Jr(["extend interface",e,Xr("implements ",Jr(t," & ")),Jr(n," "),Kr(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Jr(["extend union",e,Jr(t," "),Xr("= ",Jr(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Jr(["extend enum",e,Jr(t," "),Kr(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Jr(["extend input",e,Jr(t," "),Kr(n)]," ")}};function Jr(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function Kr(e){return Xr("{\n",Zr(Jr(e,"\n")),"\n}")}function Xr(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Zr(e){return Xr(" ",e.replace(/\n/g,"\n "))}function ei(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var ti={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},ni=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Le(Le({},t.options),{headers:t.headers,credentials:t.credentials}),a=t.http||{};n.forEach((function(e){i=Le(Le(Le({},i),e.options),{headers:Le(Le({},i.headers),ri(e.headers))}),e.credentials&&(i.credentials=e.credentials),a=Le(Le({},a),e.http)}));var o=e.operationName,s=e.extensions,u=e.variables,l=e.query,c={operationName:o,variables:u};return a.includeExtensions&&(c.extensions=s),a.includeQuery&&(c.query=Gr(l)),{options:i,body:c}};function ri(e){if(e){var t=Object.create(null);return Object.keys(Object(e)).forEach((function(n){t[n.toLowerCase()]=e[n]})),t}return e}var ii=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}};function ai(e){return new sr((function(t){t.error(e)}))}var oi=Cn((function(){return fetch})),si=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.includeExtensions,a=e.useGETForQueries,o=e.includeUnusedVariables,s=void 0!==o&&o,u=Te(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&Br(r||oi);var l={http:{includeExtensions:i},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new Ar((function(e){var t=Hr(e,n),i=e.getContext(),o={};if(i.clientAwareness){var u=i.clientAwareness,c=u.name,d=u.version;c&&(o["apollographql-client-name"]=c),d&&(o["apollographql-client-version"]=d)}var f,h=Le(Le({},o),i.headers),p={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:h},m=ni(e,ti,l,p),_=m.options,y=m.body;if(y.variables&&!s){var v=new Set(Object.keys(y.variables));Nr(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&v.delete(e.name.value)}}),v.size&&(y.variables=Le({},y.variables),v.forEach((function(e){delete y.variables[e]})))}if(!_.signal){var g=ii(),b=g.controller,M=g.signal;(f=b)&&(_.signal=M)}if(a&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(_.method="GET"),"GET"===_.method){var w=function(e,t){var n=[],r=function(e,t){n.push(e+"="+encodeURIComponent(t))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=Rr(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var a=void 0;try{a=Rr(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",a)}var o="",s=e,u=e.indexOf("#");-1!==u&&(o=e.substr(u),s=e.substr(0,u));var l=-1===s.indexOf("?")?"?":"&";return{newURI:s+l+n.join("&")+o}}(t,y),k=w.newURI,L=w.parseError;if(L)return ai(L);t=k}else try{_.body=Rr(y,"Payload")}catch(L){return ai(L)}return new sr((function(n){return(r||Cn((function(){return fetch}))||oi)(t,_).then((function(t){return e.setContext({response:t}),t})).then(Wr(e)).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){f&&f.abort()}}))}))}(t).request)||this;return n.options=t,n}return ke(t,e),t}(Ar),ui=Ar.execute;function li(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)}))})),n}var ci=Object.prototype,di=ci.toString,fi=ci.hasOwnProperty,hi=Function.prototype.toString,pi=new Map;function mi(e,t){try{return function e(t,n){if(t===n)return!0;var r,i,a,o=di.call(t);if(o!==di.call(n))return!1;switch(o){case"[object Array]":if(t.length!==n.length)return!1;case"[object Object]":if(gi(t,n))return!0;var s=_i(t),u=_i(n),l=s.length;if(l!==u.length)return!1;for(var c=0;c<l;++c)if(!fi.call(n,s[c]))return!1;for(c=0;c<l;++c){var d=s[c];if(!e(t[d],n[d]))return!1}return!0;case"[object Error]":return t.name===n.name&&t.message===n.message;case"[object Number]":if(t!=t)return n!=n;case"[object Boolean]":case"[object Date]":return+t==+n;case"[object RegExp]":case"[object String]":return t==""+n;case"[object Map]":case"[object Set]":if(t.size!==n.size)return!1;if(gi(t,n))return!0;for(var f=t.entries(),h="[object Map]"===o;;){var p=f.next();if(p.done)break;var m=p.value,_=m[0],y=m[1];if(!n.has(_))return!1;if(h&&!e(y,n.get(_)))return!1}return!0;case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),n=new Uint8Array(n);case"[object DataView]":var v=t.byteLength;if(v===n.byteLength)for(;v--&&t[v]===n[v];);return-1===v;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var g=hi.call(t);return g===hi.call(n)&&(i=vi,!((a=(r=g).length-i.length)>=0&&r.indexOf(i,a)===a))}return!1}(e,t)}finally{pi.clear()}}function _i(e){return Object.keys(e).filter(yi,e)}function yi(e){return void 0!==this[e]}var vi="{ [native code] }";function gi(e,t){var n=pi.get(e);if(n){if(n.has(t))return!0}else pi.set(e,n=new Set);return n.add(t),!1}var bi,Mi,wi=function(){return Object.create(null)},ki=Array.prototype,Li=ki.forEach,Ti=ki.slice,Di=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=wi),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return Li.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(Ti.call(e)))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r},e}(),Si="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),Ei="function"==typeof WeakSet,Yi="function"==typeof Symbol&&"function"==typeof Symbol.for,xi=function(){function e(){this.known=new(Ei?WeakSet:Set),this.pool=new Di(Si),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return ur(e)&&this.known.has(e)},e.prototype.pass=function(e){if(ur(e)){var t=function(e){return ur(e)?Array.isArray(e)?e.slice(0):Le({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(ur(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(s=this.pool.lookupArray(r)).array||(this.known.add(s.array=r),__DEV__&&Object.freeze(r)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),a=[i],o=this.sortedKeys(e);a.push(o.json);var s,u=a.length;if(o.sorted.forEach((function(n){a.push(t.admit(e[n]))})),!(s=this.pool.lookupArray(a)).object){var l=s.object=Object.create(i);this.known.add(l),o.sorted.forEach((function(e,t){l[e]=a[u+t]})),__DEV__&&Object.freeze(l)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),Oi=Object.assign((function(e){if(ur(e)){void 0===bi&&ji();var t=bi.admit(e),n=Mi.get(t);return void 0===n&&Mi.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:ji});function ji(){bi=new xi,Mi=new(Si?WeakMap:Map)}function Pi(e,t,n){return new sr((function(r){var i=r.next,a=r.error,o=r.complete,s=0,u=!1,l={then:function(e){return new Promise((function(t){return t(e())}))}};function c(e,t){return e?function(t){++s;var n=function(){return e(t)};l=l.then(n,n).then((function(e){--s,i&&i.call(r,e),u&&d.complete()}),(function(e){throw--s,e})).catch((function(e){a&&a.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var d={next:c(t,i),error:c(n,a),complete:function(){u=!0,s||o&&o.call(r)}},f=e.subscribe(d);return function(){return f.unsubscribe()}}))}function Ci(e){return e.errors&&e.errors.length>0||!1}function Ai(e,t,n){var r=0;return e.forEach((function(n,i){t.call(this,n,i,e)&&(e[r++]=n)}),n),e.length=r,e}var Ii={kind:"Field",name:{kind:"Name",value:"__typename"}};function Ni(e){return function e(t,n){return t.selectionSet.selections.every((function(t){return"FragmentSpread"===t.kind&&e(n[t.name.value],n)}))}(Tr(e)||function(e){__DEV__?xn("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):xn("Document"===e.kind,50),__DEV__?xn(e.definitions.length<=1,"Fragment must have exactly one definition."):xn(e.definitions.length<=1,51);var t=e.definitions[0];return __DEV__?xn("FragmentDefinition"===t.kind,"Must be a fragment definition."):xn("FragmentDefinition"===t.kind,52),t}(e),cr(Sr(e)))?null:e}function Fi(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function Ri(e,t){var n=Object.create(null),r=[],i=Object.create(null),a=[],o=Ni(Nr(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(Fi(e)))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})})),t.selectionSet&&function e(t){var n=[];return t.selections.forEach((function(t){(wr(t)||kr(t))&&t.selectionSet?e(t.selectionSet).forEach((function(e){return n.push(e)})):"FragmentSpread"===t.kind&&n.push(t)})),n}(t.selectionSet).forEach((function(e){a.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){i[e.name.value]=!0}},Directive:{enter:function(t){if(Fi(e)(t))return null}}}));return o&&Ai(r,(function(e){return!!e.name&&!n[e.name]})).length&&(o=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return Ni(Nr(t,{OperationDefinition:{enter:function(t){return Le(Le({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments&&t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(r,o)),o&&Ai(a,(function(e){return!!e.name&&!i[e.name]})).length&&(o=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return Ni(Nr(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(a,o)),o}var Hi=Object.assign((function(e){return Nr(Lr(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some((function(e){return wr(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(wr(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return Le(Le({},e),{selections:Ee(Ee([],r,!0),[Ii],!1)})}}}}})}),{added:function(e){return e===Ii}}),Ui={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||__DEV__&&xn.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),t}};function zi(e){return"query"===Yr(e).operation?e:Nr(e,{OperationDefinition:{enter:function(e){return Le(Le({},e),{operation:"query"})}}})}function Wi(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];return e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,r=e.name.value;__DEV__?xn(n&&1===n.length,"Incorrect number of arguments for the @"+r+" directive."):xn(n&&1===n.length,40);var i=n[0];__DEV__?xn(i.name&&"if"===i.name.value,"Invalid argument for the @"+r+" directive."):xn(i.name&&"if"===i.name.value,41);var a=i.value;__DEV__?xn(a&&("Variable"===a.kind||"BooleanValue"===a.kind),"Argument for the @"+r+" directive must be a variable or a boolean value."):xn(a&&("Variable"===a.kind||"BooleanValue"===a.kind),42),t.push({directive:e,ifArgument:i})}})),t}(n).every((function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],__DEV__?xn(void 0!==i,"Invalid variable referenced in @"+n.name.value+" directive."):xn(void 0!==i,39)):i=r.value.value,"skip"===n.name.value?!i:i}))}function Bi(e,t){return function(e){var t=[];return Nr(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function qi(e){return e&&Bi(["client"],e)&&Bi(["export"],e)}var Vi=new Map;function $i(e){var t=Vi.get(e)||1;return Vi.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function Gi(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function Qi(e){function t(t){Object.defineProperty(e,t,{value:sr})}return Yi&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Ji(e){return e&&"function"==typeof e.then}var Ki=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.addCount=0,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],Gi(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),Gi(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?Ji(e)?e.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=e.subscribe(n.handlers):(n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),Gi(n.observers,"complete"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"==typeof t&&(t=[new sr(t)]),Ji(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return ke(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},t.prototype.cleanup=function(e){var t=this,n=!1,r=function(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},a=this.addCount;this.addObserver(i),this.addCount=a},t}(sr);function Xi(e){return Array.isArray(e)&&e.length>0}Qi(Ki);var Zi,ea=function(e){function t(n){var r,i,a=n.graphQLErrors,o=n.clientErrors,s=n.networkError,u=n.errorMessage,l=n.extraInfo,c=e.call(this,u)||this;return c.graphQLErrors=a||[],c.clientErrors=o||[],c.networkError=s||null,c.message=u||(i="",(Xi((r=c).graphQLErrors)||Xi(r.clientErrors))&&(r.graphQLErrors||[]).concat(r.clientErrors||[]).forEach((function(e){var t=e?e.message:"Error message not found.";i+=t+"\n"})),r.networkError&&(i+=r.networkError.message+"\n"),i=i.replace(/\n$/,"")),c.extraInfo=l,c.__proto__=t.prototype,c}return ke(t,e),t}(Error);function ta(e){return!!e&&e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(Zi||(Zi={}));var na=Object.prototype.toString;function ra(e){return function e(t,n){switch(na.call(t)){case"[object Array]":if((n=n||new Map).has(t))return n.get(t);var r=t.slice(0);return n.set(t,r),r.forEach((function(t,i){r[i]=e(t,n)})),r;case"[object Object]":if((n=n||new Map).has(t))return n.get(t);var i=Object.create(Object.getPrototypeOf(t));return n.set(t,i),Object.keys(t).forEach((function(r){i[r]=e(t[r],n)})),i;default:return t}}(e)}var ia=Object.assign,aa=Object.hasOwnProperty,oa=!1,sa=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,a=e.call(this,(function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=ua)}catch(e){}var n=!a.observers.size;a.observers.add(e);var r=a.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&a.reobserve().catch((function(){})),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}}))||this;a.observers=new Set,a.subscriptions=new Set,a.isTornDown=!1,a.options=i,a.queryId=r.queryId||n.generateQueryId();var o=Tr(i.query);return a.queryName=o&&o.name&&o.name.value,a.initialFetchPolicy=i.fetchPolicy||"cache-first",a.queryManager=n,a.queryInfo=r,a}return ke(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||Zi.ready,r=Le(Le({},t),{loading:ta(n),networkStatus:n}),i=this.options.fetchPolicy,a=void 0===i?"cache-first":i;if((t||"network-only"!==a&&"no-cache"!==a&&"standby"!==a)&&!this.queryManager.transform(this.options.query).hasForcedResolvers){var o=this.queryInfo.getDiff();(o.complete||this.options.returnPartialData)&&(r.data=o.result),mi(r.data,{})&&(r.data=void 0),o.complete?(r.networkStatus!==Zi.loading||"cache-first"!==a&&"cache-only"!==a||(r.networkStatus=Zi.ready,r.loading=!1),delete r.partial):"no-cache"!==a&&(r.partial=!0),!__DEV__||o.complete||this.options.partialRefetch||r.loading||r.data||r.error||la(o.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!mi(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||mi(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;if("no-cache"===r?n.fetchPolicy="no-cache":"cache-and-network"!==r&&(n.fetchPolicy="network-only"),__DEV__&&e&&aa.call(e,"variables")){var i=Er(this.options.query),a=i.variableDefinitions;a&&a.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&xn.warn("Called refetch("+JSON.stringify(e)+") for query "+((null===(t=i.name)||void 0===t?void 0:t.value)||JSON.stringify(i))+", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?")}return e&&!mi(this.options.variables,e)&&(n.variables=this.options.variables=Le(Le({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,Zi.refetch)},t.prototype.fetchMore=function(e){var t=this,n=Le(Le({},e.query?e:Le(Le(Le({},this.options),e),{variables:Le(Le({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=Zi.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,Zi.fetchMore).then((function(r){var i=r.data,a=e.updateQuery;return a?(__DEV__&&!oa&&(__DEV__&&xn.warn("The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore."),oa=!0),t.updateQuery((function(e){return a(e,{fetchMoreResult:i,variables:n.variables})}))):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:i}),r})).finally((function(){t.queryManager.stopQuery(r),t.reobserve()}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError?e.onError(t):__DEV__&&xn.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return mi(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},Zi.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){__DEV__?xn(n,"Attempted to start a polling query without a polling interval."):xn(n,12),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(ta(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},Zi.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=Le(Le({},this.last),{result:this.queryManager.assumeImmutableResults?e:ra(e),variables:t}),Xi(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===Zi.refetch||t===Zi.fetchMore||t===Zi.poll,i=this.options.variables,a=r?li(this.options,e):ia(this.options,li(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!mi(e.variables,i)&&(a.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=Zi.setVariables)));var o=a.variables&&Le({},a.variables),s=this.fetch(a,t),u={next:function(e){n.reportResult(e,o)},error:function(e){n.reportError(e,o)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=s,this.observer=u),s.addObserver(u),s.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){(this.getLastError()||this.isDifferentFromLastResult(e))&&(this.updateLastResult(e,t),Gi(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=Le(Le({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:Zi.error,loading:!1});this.updateLastResult(n,t),Gi(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.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(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(sr);function ua(e){__DEV__&&xn.error("Unhandled error",e.message,e.stack)}function la(e){__DEV__&&Xi(e)&&__DEV__&&xn.debug("Missing cache result fields: "+e.map((function(e){return e.path.join(".")})).join(", "),e)}Qi(sa);var ca=Object.prototype.hasOwnProperty;function da(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fa(e)}function fa(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new pa,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var ha=function(e,t,n){return this.merge(e[n],t[n])},pa=function(){function e(e){void 0===e&&(e=ha),this.reconciler=e,this.isObject=ur,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return ur(t)&&ur(e)?(Object.keys(t).forEach((function(i){if(ca.call(e,i)){var a=e[i];if(t[i]!==a){var o=n.reconciler.apply(n,Ee([e,t,i],r,!1));o!==a&&((e=n.shallowCopyForMerge(e))[i]=o)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return ur(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):Le({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}(),ma=null,_a={},ya=1,va="@wry/context:Slot",ga=Array,ba=ga[va]||function(){var e=function(){function e(){this.id=["slot",ya++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=ma;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===_a)break;return e!==ma&&(ma.slots[this.id]=t),!0}return ma&&(ma.slots[this.id]=_a),!1},e.prototype.getValue=function(){if(this.hasValue())return ma.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,a=((i={__proto__:null})[this.id]=e,i),o=ma;ma={parent:o,slots:a};try{return t.apply(r,n)}finally{ma=o}},e.bind=function(e){var t=ma;return function(){var n=ma;try{return ma=t,e.apply(this,arguments)}finally{ma=n}}},e.noContext=function(e,t,n){if(!ma)return e.apply(n,t);var r=ma;try{return ma=null,e.apply(n,t)}finally{ma=r}},e}();try{Object.defineProperty(ga,va,{value:ga[va]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();function Ma(){}ba.bind,ba.noContext;var wa,ka=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=Ma),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),La=new ba,Ta=Object.prototype.hasOwnProperty,Da=void 0===(wa=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:wa;function Sa(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var Ea=[];function Ya(e,t){if(!e)throw new Error(t||"assertion failure")}function xa(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var Oa=function(){function e(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,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!Ca(this))return ja(this),this.value[0]},e.prototype.recompute=function(e){return Ya(!this.recomputing,"already recomputing"),ja(this),Ca(this)?function(e,t){return Ua(e),La.withValue(e,Pa,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{Sa(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,Ca(e)||Ia(e)}(e),xa(e.value)}(this,e):xa(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Aa(this),Sa(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),Ua(this),Na(this,(function(t,n){t.setDirty(),za(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=Ea.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(Da(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),Ea.push(this.deps),this.deps=null)},e.count=0,e}();function ja(e){var t=La.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Ca(e)?Fa(t,e):Ra(t,e),t}function Pa(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function Ca(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Aa(e){Na(e,Fa)}function Ia(e){Na(e,Ra)}function Na(e,t){var n=e.parents.size;if(n)for(var r=Da(e.parents),i=0;i<n;++i)t(r[i],e)}function Fa(e,t){Ya(e.childValues.has(t)),Ya(Ca(t));var n=!Ca(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Ea.pop()||new Set;e.dirtyChildren.add(t),n&&Aa(e)}function Ra(e,t){Ya(e.childValues.has(t)),Ya(!Ca(t));var n,r,i,a=e.childValues.get(t);0===a.length?e.childValues.set(t,t.value.slice(0)):(n=a,r=t.value,(i=n.length)>0&&i===r.length&&n[i-1]===r[i-1]||e.setDirty()),Ha(e,t),Ca(e)||Ia(e)}function Ha(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(Ea.length<100&&Ea.push(n),e.dirtyChildren=null))}function Ua(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){za(e,n)})),e.forgetDeps(),Ya(null===e.dirtyChildren)}function za(e,t){t.parents.delete(e),e.childValues.delete(t),Ha(e,t)}var Wa={setDirty:!0,dispose:!0,forget:!0};function Ba(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=La.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(Sa(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&Ta.call(Wa,n)?n:"setDirty";Da(r).forEach((function(e){return e[i]()})),t.delete(e),Sa(r)}},r}function qa(){var e=new Di("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}qa();var Va=new Set;function $a(e,t){void 0===t&&(t=Object.create(null));var n=new ka(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||qa(),a=function(){var a=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===a)return e.apply(null,arguments);var o=n.get(a);o||(n.set(a,o=new Oa(e)),o.subscribe=t.subscribe,o.forget=function(){return n.delete(a)});var s=o.recompute(Array.prototype.slice.call(arguments));return n.set(a,o),Va.add(n),La.hasValue()||(Va.forEach((function(e){return e.clean()})),Va.clear()),s};function o(e){var t=n.get(e);t&&t.setDirty()}function s(e){var t=n.get(e);if(t)return t.peek()}function u(e){return n.delete(e)}return Object.defineProperty(a,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),a.dirtyKey=o,a.dirty=function(){o(i.apply(null,arguments))},a.peekKey=s,a.peek=function(){return s(i.apply(null,arguments))},a.forgetKey=u,a.forget=function(){return u(i.apply(null,arguments))},a.makeCacheKey=i,a.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(a)}var Ga=new ba,Qa=new WeakMap;function Ja(e){var t=Qa.get(e);return t||Qa.set(e,t={vars:new Set,dep:Ba()}),t}function Ka(e){Ja(e).vars.forEach((function(t){return t.forgetCache(e)}))}function Xa(e){var t=new Set,n=new Set,r=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach((function(e){Ja(e).dep.dirty(r),Za(e)}));var o=Array.from(n);n.clear(),o.forEach((function(t){return t(e)}))}}else{var s=Ga.getValue();s&&(i(s),Ja(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),Ja(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function Za(e){e.broadcastWatches&&e.broadcastWatches()}var eo=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=da(t.resolvers,e)})):this.resolvers=da(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,a=e.onlyRunForcedResolvers,o=void 0!==a&&a;return De(this,void 0,void 0,(function(){return Se(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,o).then((function(e){return Le(Le({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Bi(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){Lr(e);var t=Ri([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=Nr(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return wr(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return Le(Le({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),De(this,void 0,void 0,(function(){return Se(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return Le(Le({},t),e.exportedVariables)}))]:[2,Le({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Nr(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return Ir}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:zi(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,a){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===a&&(a=!1),De(this,void 0,void 0,(function(){var o,s,u,l,c,d,f,h,p;return Se(this,(function(m){return o=Yr(e),s=Sr(e),u=cr(s),l=o.operation,c=l?l.charAt(0).toUpperCase()+l.slice(1):"Query",f=(d=this).cache,h=d.client,p={fragmentMap:u,context:Le(Le({},n),{cache:f,client:h}),variables:r,fragmentMatcher:i,defaultOperationType:c,exportedVariables:{},onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(o.selectionSet,t,p).then((function(e){return{result:e,exportedVariables:p.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return De(this,void 0,void 0,(function(){var r,i,a,o,s,u=this;return Se(this,(function(l){return r=n.fragmentMap,i=n.context,a=n.variables,o=[t],s=function(e){return De(u,void 0,void 0,(function(){var s,u;return Se(this,(function(l){return Wi(e,a)?wr(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&o.push(((n={})[br(e)]=t,n))}))]:(kr(e)?s=e:(s=r[e.name.value],__DEV__?xn(s,"No fragment named "+e.name.value):xn(s,11)),s&&s.typeCondition&&(u=s.typeCondition.name.value,n.fragmentMatcher(t,u,i))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then((function(e){o.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return fa(o)}))]}))}))},e.prototype.resolveField=function(e,t,n){return De(this,void 0,void 0,(function(){var r,i,a,o,s,u,l,c,d,f=this;return Se(this,(function(h){return r=n.variables,i=e.name.value,a=br(e),o=i!==a,s=t[a]||t[i],u=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(l=t.__typename||n.defaultOperationType,(c=this.resolvers&&this.resolvers[l])&&(d=c[o?i:a])&&(u=Promise.resolve(Ga.withValue(this.cache,d,[t,gr(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,u.then((function(t){return void 0===t&&(t=s),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?f.resolveSubSelectedArray(e,t,n):e.selectionSet?f.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}(),to=new(Si?WeakMap:Map);function no(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return to.set(e,(to.get(e)+1)%1e15),n.apply(this,arguments)})}function ro(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var io=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;to.has(n)||(to.set(n,0),no(n,"evict"),no(n,"modify"),no(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||Zi.loading;return this.variables&&this.networkStatus!==Zi.loading&&!mi(this.variables,e.variables)&&(t=Zi.setVariables),mi(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){ro(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&mi(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||mi(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():e.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var e=this;ro(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(ta(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=Le(Le({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&mi(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===to.get(this.cache)&&mi(t,n.variables)&&mi(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=Xi(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(ao(e,t.errorPolicy)?this.cache.performTransaction((function(i){if(r.shouldWrite(e,t.variables))i.writeQuery({query:r.document,data:e.data,variables:t.variables,overwrite:1===n}),r.lastWrite={result:e,variables:t.variables,dmCount:to.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(e.data=r.lastDiff.diff.result);var a=r.getDiffOptions(t.variables),o=i.diff(a);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(o,a),o.complete&&(e.data=o.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Zi.ready},e.prototype.markError=function(e){return this.networkStatus=Zi.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function ao(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!Ci(e);return!r&&n&&e.data&&(r=!0),r}var oo=Object.prototype.hasOwnProperty,so=function(){function e(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=void 0!==r&&r,a=e.onBroadcast,o=e.ssrMode,s=void 0!==o&&o,u=e.clientAwareness,l=void 0===u?{}:u,c=e.localState,d=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Si?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.queryDeduplication=i,this.clientAwareness=l,this.localState=c||new eo({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!d,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new Yn("QueryManager stopped while query was in flight"):new Yn(13))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,a=e.refetchQueries,o=void 0===a?[]:a,s=e.awaitRefetchQueries,u=void 0!==s&&s,l=e.update,c=e.onQueryUpdated,d=e.errorPolicy,f=void 0===d?"none":d,h=e.fetchPolicy,p=void 0===h?"network-only":h,m=e.keepRootFields,_=e.context;return De(this,void 0,void 0,(function(){var e,a,s;return Se(this,(function(d){switch(d.label){case 0:return __DEV__?xn(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):xn(t,14),__DEV__?xn("network-only"===p||"no-cache"===p,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):xn("network-only"===p||"no-cache"===p,15),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,_)]:[3,2];case 1:n=d.sent(),d.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),r&&this.markMutationOptimistic(r,{mutationId:e,document:t,variables:n,fetchPolicy:p,errorPolicy:f,context:_,updateQueries:i,update:l,keepRootFields:m}),this.broadcastQueries(),s=this,[2,new Promise((function(d,h){return Pi(s.getObservableFromLink(t,Le(Le({},_),{optimisticResponse:r}),n,!1),(function(d){if(Ci(d)&&"none"===f)throw new ea({graphQLErrors:d.errors});a&&(a.loading=!1,a.error=null);var h=Le({},d);return"function"==typeof o&&(o=o(h)),"ignore"===f&&Ci(h)&&delete h.errors,s.markMutationResult({mutationId:e,result:h,document:t,variables:n,fetchPolicy:p,errorPolicy:f,context:_,update:l,updateQueries:i,awaitRefetchQueries:u,refetchQueries:o,removeOptimistic:r?e:void 0,onQueryUpdated:c,keepRootFields:m})})).subscribe({next:function(e){s.broadcastQueries(),d(e)},error:function(t){a&&(a.loading=!1,a.error=t),r&&s.cache.removeOptimistic(e),s.broadcastQueries(),h(t instanceof ea?t:new ea({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],a="no-cache"===e.fetchPolicy;if(!a&&ao(r,e.errorPolicy)){i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var o=e.updateQueries;o&&this.queries.forEach((function(e,a){var s=e.observableQuery,u=s&&s.queryName;if(u&&oo.call(o,u)){var l=o[u],c=n.queries.get(a),d=c.document,f=c.variables,h=t.diff({query:d,variables:f,returnPartialData:!0,optimistic:!1}),p=h.result;if(h.complete&&p){var m=l(p,{mutationResult:r,queryName:d&&Dr(d)||void 0,queryVariables:f});m&&i.push({result:m,dataId:"ROOT_QUERY",query:d,variables:f})}}}))}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function(t){a||i.forEach((function(e){return t.write(e)}));var o=e.update;if(o){if(!a){var s=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&(r=Le(Le({},r),{data:s.result}))}o(t,r,{context:e.context,variables:e.variables})}a||e.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return s.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(s).then((function(){return r}))}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult(Le(Le({},t),{result:{data:r}}),e)}catch(e){__DEV__&&xn.error(e)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t,n=this.transformCache;if(!n.has(e)){var r=this.cache.transformDocument(e),i=(t=this.cache.transformForLink(r),Ri([Ui],Lr(t))),a=this.localState.clientQuery(r),o=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:qi(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:a,serverQuery:o,defaultVars:xr(Tr(r)),asQuery:Le(Le({},r),{definitions:r.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?Le(Le({},e),{operation:"query"}):e}))})},u=function(e){e&&!n.has(e)&&n.set(e,s)};u(e),u(r),u(a),u(o)}return n.get(e)},e.prototype.getVariables=function(e,t){return Le(Le({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=Le(Le({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new io(this),n=new sa({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?xn(e.query,"query option is required. You must specify your GraphQL document in the query option."):xn(e.query,16),__DEV__?xn("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):xn("Document"===e.query.kind,17),__DEV__?xn(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):xn(!e.returnPartialData,18),__DEV__?xn(!e.pollInterval,"pollInterval option only supported on watchQuery."):xn(!e.pollInterval,19),this.fetchQuery(t,e).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new Yn("Store reset while query was in flight (not completed in link chain)"):new Yn(20)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=Zi.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){var n;"string"==typeof e?r.set(e,!1):ur(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):ur(e)&&e.query&&i.add(e)})),this.queries.forEach((function(t,i){var a=t.observableQuery,o=t.document;if(a){if("all"===e)return void n.set(i,a);var s=a.queryName;if("standby"===a.options.fetchPolicy||"active"===e&&!a.hasObservers())return;("active"===e||s&&r.has(s)||o&&r.has(o))&&(n.set(i,a),s&&r.set(s,!0),o&&r.set(o,!0))}})),i.size&&i.forEach((function(e){var r=$i("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),a=new sa({queryManager:t,queryInfo:i,options:Le(Le({},e),{fetchPolicy:"network-only"})});xn(a.queryId===r),i.setObservableQuery(a),n.set(r,a)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&xn.warn("Unknown query "+("string"==typeof t?"named ":"")+JSON.stringify(t,null,2)+" requested in refetchQueries options.include array")})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var a=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==a&&"cache-only"!==a)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,a=e.variables,o=e.context,s=void 0===o?{}:o;n=this.transform(n).document,a=this.getVariables(n,a);var u=function(e){return t.getObservableFromLink(n,s,e).map((function(a){if("no-cache"!==r&&(ao(a,i)&&t.cache.write({query:n,result:a.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),Ci(a))throw new ea({graphQLErrors:a.errors});return a}))};if(this.transform(n).hasClientExports){var l=this.localState.addExportedVariables(n,a,s).then(u);return new sr((function(e){var t=null;return l.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return u(a)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).stop(),this.queries.delete(e)},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,a,o=this;void 0===r&&(r=null!==(i=null==t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var u=this.inFlightLinkObservables,l=this.link,c={query:s,variables:n,operationName:Dr(s)||void 0,context:this.prepareContext(Le(Le({},t),{forceFetch:!r}))};if(t=c.context,r){var d=u.get(s)||new Map;u.set(s,d);var f=Oi(n);if(!(a=d.get(f))){var h=new Ki([ui(l,c)]);d.set(f,a=h),h.cleanup((function(){d.delete(f)&&d.size<1&&u.delete(s)}))}}else a=new Ki([ui(l,c)])}else a=new Ki([sr.of({data:{}})]),t=this.prepareContext(t);var p=this.transform(e).clientQuery;return p&&(a=Pi(a,(function(e){return o.localState.runResolvers({document:p,remoteResult:e,context:t,variables:n})}))),a},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return Pi(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var a=Xi(i.errors);if(r>=e.lastRequestId){if(a&&"none"===n.errorPolicy)throw e.markError(new ea({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var o={data:i.data,loading:!1,networkStatus:e.networkStatus||Zi.ready};return a&&"ignore"!==n.errorPolicy&&(o.errors=i.errors),o}),(function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new ea({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=Zi.loading);var i=this.transform(t.query).document,a=this.getVariables(i,t.variables),o=this.getQuery(e),s=t.fetchPolicy,u=void 0===s?"cache-first":s,l=t.errorPolicy,c=void 0===l?"none":l,d=t.returnPartialData,f=void 0!==d&&d,h=t.notifyOnNetworkStatusChange,p=void 0!==h&&h,m=t.context,_=void 0===m?{}:m,y=Object.assign({},t,{query:i,variables:a,fetchPolicy:u,errorPolicy:c,returnPartialData:f,notifyOnNetworkStatusChange:p,context:_}),v=function(e){return y.variables=e,r.fetchQueryByPolicy(o,y,n)};this.fetchCancelFns.set(e,(function(e){setTimeout((function(){return g.cancel(e)}))}));var g=new Ki(this.transform(y.query).hasClientExports?this.localState.addExportedVariables(y.query,y.variables,y.context).then(v):v(y.variables));return g.cleanup((function(){r.fetchCancelFns.delete(e),function(e){var t=e.fetchPolicy,n=void 0===t?"cache-first":t,r=e.nextFetchPolicy;r&&(e.fetchPolicy="function"==typeof r?r.call(e,n):r)}(t)})),g},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,a=void 0!==i&&i,o=e.removeOptimistic,s=void 0===o?a?$i("refetchQueries"):void 0:o,u=e.onQueryUpdated,l=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){l.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var c=new Map;return n&&this.cache.batch({update:n,optimistic:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof io&&e.watcher.observableQuery;if(r){if(u){l.delete(r.queryId);var i=u(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&c.set(r,i),!1}null!==u&&l.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),l.size&&l.forEach((function(e,n){var r,i=e.oq,a=e.lastDiff,o=e.diff;if(u){if(!o){var s=i.queryInfo;s.reset(),o=s.getDiff()}r=u(i,o,a)}u&&!0!==r||(r=i.refetch()),!1!==r&&c.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),c},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,a=t.variables,o=t.fetchPolicy,s=t.refetchWritePolicy,u=t.errorPolicy,l=t.returnPartialData,c=t.context,d=t.notifyOnNetworkStatusChange,f=e.networkStatus;e.init({document:i,variables:a,networkStatus:n});var h=function(){return e.getDiff(a)},p=function(t,n){void 0===n&&(n=e.networkStatus||Zi.loading);var o=t.result;!__DEV__||l||mi(o,{})||la(t.missing);var s=function(e){return sr.of(Le({data:e,loading:ta(n),networkStatus:n},t.complete?null:{partial:!0}))};return o&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:o},context:c,variables:a,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):s(o)},m="no-cache"===o?0:n===Zi.refetch&&"merge"!==s?1:2,_=function(){return r.getResultsFromLink(e,m,{variables:a,context:c,fetchPolicy:o,errorPolicy:u})},y=d&&"number"==typeof f&&f!==n&&ta(n);switch(o){default:case"cache-first":return(v=h()).complete?[p(v,e.markReady())]:l||y?[p(v),_()]:[_()];case"cache-and-network":var v;return(v=h()).complete||l||y?[p(v),_()]:[_()];case"cache-only":return[p(h(),e.markReady())];case"network-only":return y?[p(h()),_()]:[_()];case"no-cache":return y?[p(e.getDiff()),_()]:[_()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new io(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Le(Le({},t),{clientAwareness:this.clientAwareness})},e}(),uo=!1;function lo(e,t){return li(e,t,t.variables&&{variables:Le(Le({},e.variables),t.variables)})}var co=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,a=e.cache,o=e.ssrMode,s=void 0!==o&&o,u=e.ssrForceFetchDelay,l=void 0===u?0:u,c=e.connectToDevTools,d=void 0===c?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:c,f=e.queryDeduplication,h=void 0===f||f,p=e.defaultOptions,m=e.assumeImmutableResults,_=void 0!==m&&m,y=e.resolvers,v=e.typeDefs,g=e.fragmentMatcher,b=e.name,M=e.version,w=e.link;if(w||(w=n?new si({uri:n,credentials:r,headers:i}):Ar.empty()),!a)throw __DEV__?new Yn("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new Yn(9);if(this.link=w,this.cache=a,this.disableNetworkFetches=s||l>0,this.queryDeduplication=h,this.defaultOptions=p||{},this.typeDefs=v,l&&setTimeout((function(){return t.disableNetworkFetches=!1}),l),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),d&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!uo&&__DEV__&&(uo=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var k=window.navigator,L=k&&k.userAgent,T=void 0;"string"==typeof L&&(L.indexOf("Chrome/")>-1?T="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":L.indexOf("Firefox/")>-1&&(T="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),T&&__DEV__&&xn.log("Download the Apollo DevTools for a better development experience: "+T)}this.version="3.4.17",this.localState=new eo({cache:a,client:this,resolvers:y,fragmentMatcher:g}),this.queryManager=new so({cache:this.cache,link:this.link,queryDeduplication:h,ssrMode:s,clientAwareness:{name:b,version:M},localState:this.localState,assumeImmutableResults:_,onBroadcast:d?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=lo(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Le(Le({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=lo(this.defaultOptions.query,e)),__DEV__?xn("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):xn("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Le(Le({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=lo(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return ui(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var i=Promise.all(r);return i.queries=n,i.results=r,i.catch((function(e){__DEV__&&xn.debug("In client.refetchQueries, Promise.all promise rejected with error "+e)})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),fo=function(){function e(){this.getFragmentDoc=$a(lr)}return e.prototype.batch=function(e){var t="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;this.performTransaction(e.update,t)},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Le(Le({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Le(Le({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=Te(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,a=Te(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e}(),ho=function(e){function t(n,r,i,a){var o=e.call(this,n)||this;return o.message=n,o.path=r,o.query=i,o.variables=a,o.__proto__=t.prototype,o}return ke(t,e),t}(Error);function po(e){return __DEV__&&(t=new Set([e])).forEach((function(e){ur(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(n){ur(e[n])&&t.add(e[n])}))})),e;var t}var mo=Object.prototype.hasOwnProperty;function _o(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return n+":"+("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var yo={dataIdFromObject:_o,addTypename:!0,resultCaching:!0,canonizeResults:!1};function vo(e){var t=e.canonizeResults;return void 0===t?yo.canonizeResults:t}var go=/^[_a-z][_0-9a-z]*/i;function bo(e){var t=e.match(go);return t?t[0]:e}function Mo(e,t,n){return!!ur(t)&&(Array.isArray(t)?t.every((function(t){return Mo(e,t,n)})):e.selections.every((function(e){if(wr(e)&&Wi(e,n)){var r=br(e);return mo.call(t,r)&&(!e.selectionSet||Mo(e.selectionSet,t[r],n))}return!0})))}function wo(e){return ur(e)&&!hr(e)&&!Array.isArray(e)}var ko=Object.create(null),Lo=function(){return ko},To=Object.create(null),Do=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return po(hr(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return hr(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return fr(e);if(hr(e))return e;var r=n.policies.identify(e)[0];if(r){var i=fr(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return Le({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),mo.call(this.data,e)){var n=this.data[e];if(n&&mo.call(n,t))return n[t]}return"__typename"===t&&mo.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof xo?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),mo.call(this.data,e)?this.data[e]:this instanceof xo?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;hr(e)&&(e=e.__ref),hr(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,a="string"==typeof t?this.lookup(n=t):t;if(a){__DEV__?xn("string"==typeof n,"store.merge expects a string ID"):xn("string"==typeof n,1);var o=new pa(jo).merge(i,a);if(this.data[n]=o,o!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(a).forEach((function(e){if(!i||i[e]!==o[e]){s[e]=1;var t=bo(e);t===e||r.policies.hasKeyArgs(o.__typename,t)||(s[t]=1),void 0!==o[e]||r instanceof xo||delete o[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==o.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return r.group.dirty(n,e)}))}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),a=!1,o=!0,s={DELETE:ko,INVALIDATE:To,isReference:hr,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||fr(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(u){var l=bo(u),c=r[u];if(void 0!==c){var d="function"==typeof t?t:t[u]||t[l];if(d){var f=d===Lo?ko:d(po(c),Le(Le({},s),{fieldName:l,storeFieldName:u,storage:n.getStorage(e,u)}));f===To?n.group.dirty(e,u):(f===ko&&(f=void 0),f!==c&&(i[u]=f,a=!0,c=f))}void 0!==c&&(o=!1)}})),a)return this.merge(e,i),o&&(this instanceof xo?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var a=this.getFieldValue(i,"__typename"),o=t&&n?this.policies.getStoreFieldName({typename:a,fieldName:t,args:n}):t;return this.modify(e,o?((r={})[o]=Lo,r):Lo)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(mo.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof xo&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){mo.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&mo.call(e,n)||t.delete(n)})),e){var n=e.__META,r=Te(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof xo?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){mo.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof xo;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!mo.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){hr(e)&&(t[e.__ref]=!0),ur(e)&&Object.keys(e).forEach((function(t){var n=e[t];ur(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),So=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Ba():null,this.keyMaker=new Di(Si)},e.prototype.depend=function(e,t){if(this.d){this.d(Eo(e,t));var n=bo(t);n!==t&&this.d(Eo(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(Eo(e,t),"__exists"===t?"forget":"setDirty")},e}();function Eo(e,t){return t+"#"+e}function Yo(e,t){Po(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,a=t.seed,o=e.call(this,n,new So(i))||this;return o.stump=new Oo(o),o.storageTrie=new Di(Si),a&&o.replace(a),o}return ke(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(Do||(Do={}));var xo=function(e){function t(t,n,r,i){var a=e.call(this,n.policies,i)||this;return a.id=t,a.parent=n,a.replay=r,a.group=i,r(a),a}return ke(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){mi(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return Le(Le({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return mo.call(this.data,t)?Le(Le({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(Do),Oo=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new So(t.group.caching,t.group))||this}return ke(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(xo);function jo(e,t,n){var r=e[n],i=t[n];return mi(r,i)?r:i}function Po(e){return!!(e instanceof Do&&e.group.caching)}function Co(e,t){return new ho(e.message,t.path.slice(),t.query,t.variables)}function Ao(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Io=function(){function e(e){var t=this;this.knownResults=new(Si?WeakMap:Map),this.config=li(e,{addTypename:!1!==e.addTypename,canonizeResults:vo(e)}),this.canon=e.canon||new xi,this.executeSelectionSet=$a((function(e){var n,r=e.context.canonizeResults,i=Ao(e);i[3]=!r;var a=(n=t.executeSelectionSet).peek.apply(n,i);return a?r?Le(Le({},a),{result:t.canon.admit(a.result)}):a:(Yo(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:Ao,makeCacheKey:function(e,t,n,r){if(Po(n.store))return n.store.makeCacheKey(e,hr(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=$a((function(e){return Yo(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(Po(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new xi},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,a=e.variables,o=e.returnPartialData,s=void 0===o||o,u=e.canonizeResults,l=void 0===u?this.config.canonizeResults:u,c=this.config.cache.policies;a=Le(Le({},xr(Er(n))),a);var d=fr(i),f=this.executeSelectionSet({selectionSet:Yr(n).selectionSet,objectOrReference:d,enclosingRef:d,context:{store:t,query:n,policies:c,variables:a,varString:Oi(a),canonizeResults:l,fragmentMap:cr(Sr(n)),path:[]}}),h=f.missing&&f.missing.length>0;if(h&&!s)throw f.missing[0];return{result:f.result,missing:f.missing,complete:!h}},e.prototype.isFresh=function(e,t,n,r){if(Po(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,a=e.context;if(hr(r)&&!a.policies.rootTypenamesById[r.__ref]&&!a.store.has(r.__ref))return{result:this.canon.empty,missing:[Co(__DEV__?new Yn("Dangling reference to missing "+r.__ref+" object"):new Yn(5),a)]};var o=a.variables,s=a.policies,u=a.store,l=[],c={result:null},d=u.getFieldValue(r,"__typename");function f(){return c.missing||(c.missing=[])}function h(e){var t;return e.missing&&(t=f()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof d&&!s.rootIdsByTypename[d]&&l.push({__typename:d});var p=new Set(n.selections);p.forEach((function(e){var n;if(Wi(e,o))if(wr(e)){var u=s.readField({fieldName:e.name.value,field:e,variables:a.variables,from:r},a),c=br(e);a.path.push(c),void 0===u?Hi.added(e)||f().push(Co(__DEV__?new Yn("Can't find field '"+e.name.value+"' on "+(hr(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2))):new Yn(6),a)):Array.isArray(u)?u=h(t.executeSubSelectedArray({field:e,array:u,enclosingRef:i,context:a})):e.selectionSet?null!=u&&(u=h(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:u,enclosingRef:hr(u)?u:i,context:a}))):a.canonizeResults&&(u=t.canon.pass(u)),void 0!==u&&l.push(((n={})[c]=u,n)),xn(a.path.pop()===c)}else{var m=dr(e,a.fragmentMap);m&&s.fragmentMatches(m,d)&&m.selectionSet.selections.forEach(p.add,p)}}));var m=fa(l);return c.result=a.canonizeResults?this.canon.admit(m):po(m),this.knownResults.set(c.result,n),c},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,a=e.enclosingRef,o=e.context;function s(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),xn(o.path.pop()===n),e.result}return r.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map((function(e,t){return null===e?null:(o.path.push(t),Array.isArray(e)?s(n.executeSubSelectedArray({field:r,array:e,enclosingRef:a,context:o}),t):r.selectionSet?s(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:hr(e)?e:a,context:o}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){ur(n)&&(__DEV__?xn(!hr(n),"Missing selection set for object of type "+function(e,t){return hr(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)+" returned for query field "+t.name.value):xn(!hr(n),7),Object.values(n).forEach(r.add,r))}))}}(o.store,r,e),xn(o.path.pop()===t),e))})),{result:o.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),No=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,a=t.dataId,o=t.variables,s=t.overwrite,u=Tr(r),l=new pa;o=Le(Le({},xr(u)),o);var c={store:e,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:o,varString:Oi(o),fragmentMap:cr(Sr(r)),overwrite:!!s,incomingById:new Map,clientOnly:!1},d=this.processSelectionSet({result:i||Object.create(null),dataId:a,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:c});if(!hr(d))throw __DEV__?new Yn("Could not identify object "+JSON.stringify(i)):new Yn(8);return c.incomingById.forEach((function(t,r){var i=t.fields,a=t.mergeTree,o=t.selections,s=fr(r);if(a&&a.map.size){var u=n.applyMerges(a,s,i,c);if(hr(u))return;i=u}if(__DEV__&&!c.overwrite){var l=new Set;o.forEach((function(e){wr(e)&&e.selectionSet&&l.add(e.name.value)})),Object.keys(i).forEach((function(e){(function(e){return l.has(bo(e))})(e)&&!function(e){var t=a&&a.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},a=i(e);if(a){var o=i(t);if(o&&!hr(a)&&!mi(a,o)&&!Object.keys(a).every((function(e){return void 0!==r.getFieldValue(o,e)}))){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),u=bo(n),l=s+"."+u;if(!zo.has(l)){zo.add(l);var c=[];Array.isArray(a)||Array.isArray(o)||[a,o].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||c.includes(t)||c.push(t)})),__DEV__&&xn.warn("Cache data may be lost when replacing the "+u+" field of a "+s+" object.\n\nTo address this problem (which is not a bug in Apollo Client), "+(c.length?"either ensure all objects of type "+c.join(" and ")+" have an ID or a custom merge function, or ":"")+"define a custom merge function for the "+l+" field, so InMemoryCache can safely merge these objects:\n\n existing: "+JSON.stringify(a).slice(0,1e3)+"\n incoming: "+JSON.stringify(o).slice(0,1e3)+"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n")}}}}(s,i,e,c.store)}))}e.merge(r,i)})),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,a=e.context,o=e.mergeTree,s=this.cache.policies,u=s.identify(r,i,a.fragmentMap),l=u[0],c=u[1];if("string"==typeof(n=n||l)){var d=a.written[n]||(a.written[n]=[]),f=fr(n);if(d.indexOf(i)>=0)return f;if(d.push(i),this.reader&&this.reader.isFresh(r,f,i,a))return f}var h=Object.create(null);c&&(h=a.merge(h,c));var p=n&&s.rootTypenamesById[n]||Mr(r,i,a.fragmentMap)||n&&a.store.get(n,"__typename");"string"==typeof p&&(h.__typename=p);var m=new Set(i.selections);if(m.forEach((function(e){var n;if(Wi(e,a.variables))if(wr(e)){var i=br(e),u=r[i],l=a.clientOnly;if(a.clientOnly=l||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0!==u){var c=s.getStoreFieldName({typename:p,fieldName:e.name.value,field:e,variables:a.variables}),d=Ro(o,c),f=t.processFieldValue(u,e,a,d),_=void 0;if(e.selectionSet&&!(_=a.store.getFieldValue(f,"__typename"))&&hr(f)){var y=a.incomingById.get(f.__ref);_=y&&y.fields.__typename}var v=s.getMergeFunction(p,e.name.value,_);v?d.info={field:e,typename:p,merge:v}:Uo(o,c),h=a.merge(h,((n={})[c]=f,n))}else a.clientOnly||Hi.added(e)||__DEV__&&xn.error(("Missing field '"+br(e)+"' while writing result "+JSON.stringify(r,null,2)).substring(0,1e3));a.clientOnly=l}else{var g=dr(e,a.fragmentMap);g&&s.fragmentMatches(g,p,r,a.variables)&&g.selectionSet.selections.forEach(m.add,m)}})),"string"==typeof n){var _=a.incomingById.get(n);return _?(_.fields=a.merge(_.fields,h),_.mergeTree=function e(t,n){if(t===n||!n||Ho(n))return t;if(!t||Ho(t))return n;var r=t.info&&n.info?Le(Le({},t.info),n.info):t.info||n.info,i=t.map.size&&n.map.size,a={info:r,map:i?new Map:t.map.size?t.map:n.map};if(i){var o=new Set(n.map.keys());t.map.forEach((function(t,r){a.map.set(r,e(t,n.map.get(r))),o.delete(r)})),o.forEach((function(r){a.map.set(r,e(n.map.get(r),t.map.get(r)))}))}return a}(_.mergeTree,o),_.selections.forEach(m.add,m),_.selections=m):a.incomingById.set(n,{fields:h,mergeTree:Ho(o)?void 0:o,selections:m}),fr(n)}return h},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,a){var o=i.processFieldValue(e,t,n,Ro(r,a));return Uo(r,a),o})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?ra(e):e},e.prototype.applyMerges=function(e,t,n,r,i){var a,o=this;if(e.map.size&&!hr(n)){var s,u=Array.isArray(n)||!hr(t)&&!wo(t)?void 0:t,l=n;u&&!i&&(i=[hr(u)?u.__ref:u]);var c=function(e,t){return Array.isArray(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=c(u,t),a=c(l,t);if(void 0!==a){i&&i.push(t);var d=o.applyMerges(e,n,a,r,i);d!==a&&(s=s||new Map).set(t,d),i&&xn(i.pop()===t)}})),s&&(n=Array.isArray(l)?l.slice(0):Le({},l),s.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(a=r.store).getStorage.apply(a,i)):n},e}(),Fo=[];function Ro(e,t){var n=e.map;return n.has(t)||n.set(t,Fo.pop()||{map:new Map}),n.get(t)}function Ho(e){return!e||!(e.info||e.map.size)}function Uo(e,t){var n=e.map,r=n.get(t);r&&Ho(r)&&(Fo.push(r),n.delete(t))}var zo=new Set;function Wo(e){var t=$i("stringifyForDisplay");return JSON.stringify(e,(function(e,n){return void 0===n?t:n})).split(JSON.stringify(t)).join("<undefined>")}function Bo(e){return void 0!==e.args?e.args:e.field?gr(e.field,e.variables):null}_r.setStringify(Oi);var qo=function(){},Vo=function(e,t){return t.fieldName},$o=function(e,t,n){return(0,n.mergeObjects)(e,t)},Go=function(e,t){return t},Qo=function(){function e(e){this.config=e,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=Le({dataIdFromObject:_o},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t,n){var r=t&&n?Mr(e,t,n):e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,a={typename:r,selectionSet:t,fragmentMap:n},o=r&&this.getTypePolicy(r),s=o&&o.keyFn||this.config.dataIdFromObject;s;){var u=s(e,a);if(!Array.isArray(u)){i=u;break}s=Zo(u)}return i=i?String(i):void 0,a.keyObject?[i,a.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,a=r.mutationType,o=r.subscriptionType,s=Te(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),a&&t.setRootTypename("Mutation",n),o&&t.setRootTypename("Subscription",n),mo.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,a=t.fields;function o(e,t){e.merge="function"==typeof t?t:!0===t?$o:!1===t?Go:e.merge}o(r,t.merge),r.keyFn=!1===i?qo:Array.isArray(i)?Zo(i):"function"==typeof i?i:r.keyFn,a&&Object.keys(a).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=a[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,u=i.read,l=i.merge;r.keyFn=!1===s?Vo:Array.isArray(s)?Xo(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),o(r,l)}r.read&&r.merge&&(r.keyFn=r.keyFn||Vo)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?xn(!r||r===e,"Cannot change root "+e+" __typename more than once"):xn(!r||r===e,2),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(go);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!mo.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,a=Te(r,["fields"]);Object.assign(n,a),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var o=this.getSupertypeSet(t,!0),s=[o],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},l=!(!n||!this.fuzzySubtypes.size),c=!1,d=0;d<s.length;++d){var f=s[d];if(f.has(a))return o.has(a)||(c&&__DEV__&&xn.warn("Inferring subtype "+t+" of supertype "+a),o.add(a)),!0;f.forEach(u),l&&d===s.length-1&&Mo(e.selectionSet,n,r)&&(l=!1,c=!0,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&u(n)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),a=i&&i.keyFn;if(a&&n)for(var o={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=Bo(e);a;){var u=a(s,o);if(!Array.isArray(u)){t=u||r;break}a=Xo(u)}return void 0===t&&(t=e.field?function(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,a=r.value;return pr(n[e.name.value],i,a,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return pr(r,n,i,t)}))),_r(e.name.value,r,n)}(e.field,e.variables):_r(r,Bo(e))),!1===t?r:r===bo(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),a=bo(i),o=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,a,!1),u=s&&s.read;if(u){var l=Jo(this,n,e,t,t.store.getStorage(hr(n)?n.__ref:n,i));return Ga.withValue(this.cache,u,[o,l])}return o}},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var a=n.field,o=n.typename,s=n.merge;return s===$o?Ko(r.store)(e,t):s===Go?t:(r.overwrite&&(e=void 0),s(e,t,Jo(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:r.variables},r,i||Object.create(null))))},e}();function Jo(e,t,n,r,i){var a=e.getStoreFieldName(n),o=bo(a),s=n.variables||r.variables,u=r.store,l=u.toReference,c=u.canRead;return{args:Bo(n),field:n.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:hr,toReference:l,storage:i,cache:e.cache,canRead:c,readField:function(n,i){var a;if("string"==typeof n)a={fieldName:n,from:arguments.length>1?i:t};else{if(!ur(n))return void(__DEV__&&xn.warn("Unexpected readField arguments: "+Wo(Array.from(arguments))));a=Le({},n),mo.call(n,"from")||(a.from=t)}return __DEV__&&void 0===a.from&&__DEV__&&xn.warn("Undefined 'from' passed to readField with arguments "+Wo(Array.from(arguments))),void 0===a.variables&&(a.variables=s),e.readField(a,r)},mergeObjects:Ko(r.store)}}function Ko(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new Yn("Cannot automatically merge arrays"):new Yn(3);if(ur(t)&&ur(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(hr(t)&&wo(n))return e.merge(t.__ref,n),t;if(wo(t)&&hr(n))return e.merge(t,n.__ref),n;if(wo(t)&&wo(n))return Le(Le({},t),n)}return n}}function Xo(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify(es(t,e,!1)):n.fieldName}}function Zo(e){var t=new Di(Si);return function(n,r){var i;if(r.selectionSet&&r.fragmentMap){var a=t.lookupArray([r.selectionSet,r.fragmentMap]);i=a.aliasMap||(a.aliasMap=function e(t,n){var r=Object.create(null),i=new Set([t]);return i.forEach((function(t){t.selections.forEach((function(t){if(wr(t)){if(t.alias){var a=t.alias.value,o=t.name.value;o!==a&&((r.aliases||(r.aliases=Object.create(null)))[o]=a)}t.selectionSet&&((r.subsets||(r.subsets=Object.create(null)))[t.name.value]=e(t.selectionSet,n))}else{var s=dr(t,n);s&&i.add(s.selectionSet)}}))})),r}(r.selectionSet,r.fragmentMap))}var o=r.keyObject=es(n,e,!0,i);return r.typename+":"+JSON.stringify(o)}}function es(e,t,n,r){var i,a,o=Object.create(null);return t.forEach((function(t){if(Array.isArray(t)){if("string"==typeof a&&"string"==typeof i){var s=r&&r.subsets,u=s&&s[a];o[a]=es(e[i],t,n,u)}}else{var l=r&&r.aliases,c=l&&l[t]||t;mo.call(e,c)?o[a=t]=e[i=c]:(__DEV__?xn(!n,"Missing field '"+c+"' while computing key fields"):xn(!n,4),i=a=void 0)}})),o}var ts=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=Xa,n.txCount=0,n.config=function(e){return li(yo,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new Qo({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return ke(t,e),t.prototype.init=function(){var e=this.data=new Do.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader;this.storeWriter=new No(this,this.storeReader=new Io({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:vo(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=$a((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(Po(n)){var r=e.optimistic,i=e.rootId,a=e.variables;return n.makeCacheKey(e.query,e.callback,Oi({optimistic:r,rootId:i,variables:a}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(Le(Le({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof ho)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(mo.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(Le(Le({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,n=this;return this.watches.size||Ja(t=this).vars.forEach((function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){n.watches.delete(e)&&!n.watches.size&&Ka(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){Oi.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){return hr(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(mo.call(e,"id"))return!1;e=Le(Le({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),Oi.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),Ka(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t=this,n=e.update,r=e.optimistic,i=void 0===r||r,a=e.removeOptimistic,o=e.onWatchUpdated,s=function(e){var r=t,i=r.data,a=r.optimisticData;++t.txCount,e&&(t.data=t.optimisticData=e);try{n(t)}finally{--t.txCount,t.data=i,t.optimisticData=a}},u=new Set;o&&!this.txCount&&this.broadcastWatches(Le(Le({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof i?this.optimisticData=this.optimisticData.addLayer(i,s):!1===i?s(this.data):s(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),o&&u.size?(this.broadcastWatches(Le(Le({},e),{onWatchUpdated:function(e,t){var n=o.call(this,e,t);return!1!==n&&u.delete(e),n}})),u.size&&u.forEach((function(e){return t.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e)},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Hi(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&mi(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(fo);const ns=JSON.parse('{"g":{"Credentials":["HubspotCredentials","StripeCredentials","ZuoraCredentials"],"ResetPeriodConfiguration":["MonthlyResetPeriodConfig","WeeklyResetPeriodConfig"]}}');var rs=r(4098),is=r.n(rs),as=function(){function e(e){var t=e.batchDebounce,n=e.batchInterval,r=e.batchMax,i=e.batchHandler,a=e.batchKey;this.queuedRequests=new Map,this.batchDebounce=t,this.batchInterval=n,this.batchMax=r||0,this.batchHandler=i,this.batchKey=a||function(){return""}}return e.prototype.enqueueRequest=function(e){var t=this,n=Le({},e),r=!1,i=this.batchKey(e.operation);return n.observable||(n.observable=new sr((function(e){t.queuedRequests.has(i)||t.queuedRequests.set(i,[]),r||(t.queuedRequests.get(i).push(n),r=!0),n.next=n.next||[],e.next&&n.next.push(e.next.bind(e)),n.error=n.error||[],e.error&&n.error.push(e.error.bind(e)),n.complete=n.complete||[],e.complete&&n.complete.push(e.complete.bind(e)),1===t.queuedRequests.get(i).length?t.scheduleQueueConsumption(i):t.batchDebounce&&(clearTimeout(t.scheduledBatchTimer),t.scheduleQueueConsumption(i)),t.queuedRequests.get(i).length===t.batchMax&&t.consumeQueue(i)}))),n.observable},e.prototype.consumeQueue=function(e){var t=e||"",n=this.queuedRequests.get(t);if(n){this.queuedRequests.delete(t);var r=n.map((function(e){return e.operation})),i=n.map((function(e){return e.forward})),a=[],o=[],s=[],u=[];n.forEach((function(e,t){a.push(e.observable),o.push(e.next),s.push(e.error),u.push(e.complete)}));var l=this.batchHandler(r,i)||sr.of(),c=function(e){s.forEach((function(t){t&&t.forEach((function(t){return t(e)}))}))};return l.subscribe({next:function(e){if(Array.isArray(e)||(e=[e]),o.length!==e.length){var t=new Error("server returned results with length "+e.length+", expected length of "+o.length);return t.result=e,c(t)}e.forEach((function(e,t){o[t]&&o[t].forEach((function(t){return t(e)}))}))},error:c,complete:function(){u.forEach((function(e){e&&e.forEach((function(e){return e()}))}))}}),a}},e.prototype.scheduleQueueConsumption=function(e){var t=this,n=e||"";this.scheduledBatchTimer=setTimeout((function(){t.queuedRequests.get(n)&&t.queuedRequests.get(n).length&&t.consumeQueue(n)}),this.batchInterval)},e}(),os=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.batchDebounce,a=r.batchInterval,o=void 0===a?10:a,s=r.batchMax,u=void 0===s?0:s,l=r.batchHandler,c=void 0===l?function(){return null}:l,d=r.batchKey,f=void 0===d?function(){return""}:d;return n.batcher=new as({batchDebounce:i,batchInterval:o,batchMax:u,batchHandler:c,batchKey:f}),t.batchHandler.length<=1&&(n.request=function(e){return n.batcher.enqueueRequest({operation:e})}),n}return ke(t,e),t.prototype.request=function(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})},t}(Ar),ss=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.uri,a=void 0===i?"/graphql":i,o=r.fetch,s=r.includeExtensions,u=r.batchInterval,l=r.batchDebounce,c=r.batchMax,d=r.batchKey,f=Te(r,["uri","fetch","includeExtensions","batchInterval","batchDebounce","batchMax","batchKey"]);Br(o),o||(o=fetch);var h={http:{includeExtensions:s},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return n.batchDebounce=l,n.batchInterval=u||10,n.batchMax=c||10,d=d||function(e){var t=e.getContext(),n={http:t.http,options:t.fetchOptions,credentials:t.credentials,headers:t.headers};return Hr(e,a)+JSON.stringify(n)},n.batcher=new os({batchDebounce:n.batchDebounce,batchInterval:n.batchInterval,batchMax:n.batchMax,batchKey:d,batchHandler:function(e){var t=Hr(e[0],a),n=e[0].getContext(),r={};if(n.clientAwareness){var i=n.clientAwareness,s=i.name,u=i.version;s&&(r["apollographql-client-name"]=s),u&&(r["apollographql-client-version"]=u)}var l,c={http:n.http,options:n.fetchOptions,credentials:n.credentials,headers:Le(Le({},r),n.headers)},d=e.map((function(e){return ni(e,ti,h,c)})),f=d.map((function(e){return e.body})),p=d[0].options;if("GET"===p.method)return ai(new Error("apollo-link-batch-http does not support GET requests"));try{p.body=Rr(f,"Payload")}catch(e){return ai(e)}if(!p.signal){var m=ii(),_=m.controller,y=m.signal;(l=_)&&(p.signal=y)}return new sr((function(n){return o(t,p).then((function(t){return e.forEach((function(e){return e.setContext({response:t})})),t})).then(Wr(e)).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){l&&l.abort()}}))}}),n}return ke(t,e),t.prototype.request=function(e){return this.batcher.request(e)},t}(Ar),us=function(){function e(e,t,n,r){var i=this;this.operation=e,this.nextLink=t,this.delayFor=n,this.retryIf=r,this.retryCount=0,this.values=[],this.complete=!1,this.canceled=!1,this.observers=[],this.currentSubscription=null,this.onNext=function(e){i.values.push(e);for(var t=0,n=i.observers;t<n.length;t++){var r=n[t];r&&r.next(e)}},this.onComplete=function(){i.complete=!0;for(var e=0,t=i.observers;e<t.length;e++){var n=t[e];n&&n.complete()}},this.onError=function(e){return De(i,void 0,void 0,(function(){var t,n,r;return Se(this,(function(i){switch(i.label){case 0:return this.retryCount+=1,[4,this.retryIf(this.retryCount,this.operation,e)];case 1:if(i.sent())return this.scheduleRetry(this.delayFor(this.retryCount,this.operation,e)),[2];for(this.error=e,t=0,n=this.observers;t<n.length;t++)(r=n[t])&&r.error(e);return[2]}}))}))}}return e.prototype.subscribe=function(e){if(this.canceled)throw new Error("Subscribing to a retryable link that was canceled is not supported");this.observers.push(e);for(var t=0,n=this.values;t<n.length;t++){var r=n[t];e.next(r)}this.complete?e.complete():this.error&&e.error(this.error)},e.prototype.unsubscribe=function(e){var t=this.observers.indexOf(e);if(t<0)throw new Error("RetryLink BUG! Attempting to unsubscribe unknown observer!");this.observers[t]=null,this.observers.every((function(e){return null===e}))&&this.cancel()},e.prototype.start=function(){this.currentSubscription||this.try()},e.prototype.cancel=function(){this.currentSubscription&&this.currentSubscription.unsubscribe(),clearTimeout(this.timerId),this.timerId=void 0,this.currentSubscription=null,this.canceled=!0},e.prototype.try=function(){this.currentSubscription=this.nextLink(this.operation).subscribe({next:this.onNext,error:this.onError,complete:this.onComplete})},e.prototype.scheduleRetry=function(e){var t=this;if(this.timerId)throw new Error("RetryLink BUG! Encountered overlapping retries");this.timerId=setTimeout((function(){t.timerId=void 0,t.try()}),e)},e}(),ls=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.attempts,a=r.delay;return n.delayFor="function"==typeof a?a:function(e){var t=e||{},n=t.initial,r=void 0===n?300:n,i=t.jitter,a=void 0===i||i,o=t.max,s=void 0===o?1/0:o,u=a?r:r/2;return function(e){var t=Math.min(s,u*Math.pow(2,e));return a&&(t=Math.random()*t),t}}(a),n.retryIf="function"==typeof i?i:function(e){var t=e||{},n=t.retryIf,r=t.max,i=void 0===r?5:r;return function(e,t,r){return!(e>=i)&&(n?n(r,t):!!r)}}(i),n}return ke(t,e),t.prototype.request=function(e,t){var n=new us(e,t,this.delayFor,this.retryIf);return n.start(),new sr((function(e){return n.subscribe(e),function(){n.unsubscribe(e)}}))},t}(Ar),cs=r(4147);function ds(e){return new Ar((function(t,n){return t.setContext({headers:{"X-API-KEY":e,source:vn}}),n(t)}))}var fs=function(e){return!!e&&![500,400].includes(e.statusCode)},hs=function(){function e(){var e=this;this.setFeatures=function(t){return e.features=new Set(t)},this.entitlements=new Map,this.features=new Set,this.isLoaded=!1}return e.prototype.getEntitlement=function(e){return this.entitlements.get(e)||null},e.prototype.validateFeature=function(e){return this.features.has(e)},e.prototype.setEntitlements=function(e){this.entitlements=e,this.isLoaded=!0},e.prototype.getEntitlements=function(){return this.entitlements},e}(),ps=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},ms=xt(ys||(ys=ps(["\n fragment EntitlementFragment on Entitlement {\n isGranted\n accessDeniedReason\n customerId\n usageLimit\n hasUnlimitedUsage\n currentUsage\n requestedUsage\n nextResetDate\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n }\n fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {\n __typename\n ... on MonthlyResetPeriodConfig {\n ...MonthlyResetPeriodConfigFragment\n }\n ... on WeeklyResetPeriodConfig {\n ...WeeklyResetPeriodConfigFragment\n }\n }\n fragment FeatureFragment on EntitlementFeature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n description\n displayName\n refId\n }\n fragment MonthlyResetPeriodConfigFragment on MonthlyResetPeriodConfig {\n monthlyAccordingTo\n }\n fragment WeeklyResetPeriodConfigFragment on WeeklyResetPeriodConfig {\n weeklyAccordingTo\n }\n"],["\n fragment EntitlementFragment on Entitlement {\n isGranted\n accessDeniedReason\n customerId\n usageLimit\n hasUnlimitedUsage\n currentUsage\n requestedUsage\n nextResetDate\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n }\n fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {\n __typename\n ... on MonthlyResetPeriodConfig {\n ...MonthlyResetPeriodConfigFragment\n }\n ... on WeeklyResetPeriodConfig {\n ...WeeklyResetPeriodConfigFragment\n }\n }\n fragment FeatureFragment on EntitlementFeature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n description\n displayName\n refId\n }\n fragment MonthlyResetPeriodConfigFragment on MonthlyResetPeriodConfig {\n monthlyAccordingTo\n }\n fragment WeeklyResetPeriodConfigFragment on WeeklyResetPeriodConfig {\n weeklyAccordingTo\n }\n"])));const _s=function(){function e(e){this.client=e}return e.prototype.getEntitlements=function(e){return this.client.query({query:xt(vs||(vs=ps(["\n query GetEntitlements($query: FetchEntitlementsQuery!) {\n entitlements: cachedEntitlements(query: $query) {\n ...EntitlementFragment\n }\n }\n ","\n "],["\n query GetEntitlements($query: FetchEntitlementsQuery!) {\n entitlements: cachedEntitlements(query: $query) {\n ...EntitlementFragment\n }\n }\n ","\n "])),ms),variables:{query:{customerId:e}},fetchPolicy:"no-cache"})},e.prototype.pollEntitlements=function(e,t){return this.client.watchQuery({query:xt(gs||(gs=ps(["\n query GetEntitlements($query: FetchEntitlementsQuery!) {\n entitlements: cachedEntitlements(query: $query) {\n ...EntitlementFragment\n }\n }\n ","\n "],["\n query GetEntitlements($query: FetchEntitlementsQuery!) {\n entitlements: cachedEntitlements(query: $query) {\n ...EntitlementFragment\n }\n }\n ","\n "])),ms),variables:{query:{customerId:e}},fetchPolicy:"no-cache",pollInterval:t,errorPolicy:"none"})},e.prototype.reportEntitlementRequested=function(e,t,n,r){return i=this,o=function(){return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(i){switch(i.label){case 0:return[4,this.client.mutate({mutation:xt(bs||(bs=ps(["\n mutation reportEntitlementCheckRequested($entitlementCheckRequested: EntitlementCheckRequested!) {\n reportEntitlementCheckRequested(entitlementCheckRequested: $entitlementCheckRequested)\n }\n "],["\n mutation reportEntitlementCheckRequested($entitlementCheckRequested: EntitlementCheckRequested!) {\n reportEntitlementCheckRequested(entitlementCheckRequested: $entitlementCheckRequested)\n }\n "]))),variables:{entitlementCheckRequested:{entitlementCheckResult:n,customerId:t,featureId:e,requestedUsage:r}},fetchPolicy:"no-cache"})];case 1:return i.sent(),[2]}}))},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{s(o.next(e))}catch(e){t(e)}}function r(e){try{s(o.throw(e))}catch(e){t(e)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof a?i:new a((function(e){e(i)}))).then(n,r)}s((o=o.apply(i,[])).next())}));var i,a,o},e}();var ys,vs,gs,bs,Ms=function(){function e(){}return e.decideEntitlementPolicy=function(e,t){var n,r;if(!e||!e.calculatedEntitlement.feature)return{hasAccess:!1,accessDeniedReason:he.CustomerNotEntitledForFeature};var i=e.calculatedEntitlement.feature,a=i.featureType,o=i.meterType;switch(a){case pe.Boolean:return{hasAccess:!0};case pe.Numeric:if((null===(n=e.calculatedEntitlement.feature)||void 0===n?void 0:n.meterType)===me.None)return{hasAccess:!0};if(e.calculatedEntitlement.hasUnlimitedUsage)return{hasAccess:!0};var s=e.featureUsage.currentUsage;return o===me.Incremental&&e.featureUsage.nextResetDate<(new Date).getTime()&&(s=0),s+(t||0)<=((null===(r=e.calculatedEntitlement)||void 0===r?void 0:r.usageLimit)||0)?{hasAccess:!0}:{hasAccess:!1,accessDeniedReason:he.RequestedUsageExceedsLimit}}},e}(),ws=function(){function e(e,t,n){this.entitlementsApi=e,this.customerId=t,this.loggerService=n}return e.prototype.reportEntitlementCheckRequested=function(e,t,n){return r=this,a=function(){var r=this;return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(i){return this.entitlementsApi.reportEntitlementRequested(e,this.customerId,t,n).then((function(){r.loggerService.debug("Successfully reported entitlement check requested")}),(function(e){r.loggerService.error("Failed to report entitlement check requested",e)})),[2]}))},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{s(a.next(e))}catch(e){t(e)}}function o(e){try{s(a.throw(e))}catch(e){t(e)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(n,o)}s((a=a.apply(r,[])).next())}));var r,i,a},e}(),ks=function(){return(ks=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Ls=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}u((r=r.apply(e,t||[])).next())}))},Ts=function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},Ds=function(){function e(e,t,n,r,i){this.customerId=e,this.cacheService=t,this.loggerService=i,this.modelMapper=new Tn,this.loadingEntitlements=null,this.entitlementsApi=new _s(n),this.entitlementCheckReportingService=new ws(new _s(r),e,i),this.entitlementsPollingObserver=null}return e.prototype.startPolling=function(e){var t=this;this.stopPolling(),this.entitlementsPollingObserver=this.entitlementsApi.pollEntitlements(this.customerId,e),this.entitlementsPollingObserver.subscribe((function(n){var r;if(n.errors||!n.data||!n.data.entitlements)return t.loggerService.error("Failed to poll entitlements. Error: ".concat(n.errors),{errors:(null===(r=n.errors)||void 0===r?void 0:r.map((function(e){return e.message})).join(", "))||""}),void setTimeout((function(){return t.restartPolling(e)}),e);t.storeFetchedEntitlementsInCache(n.data.entitlements)}),(function(n){t.loggerService.error("Failed to poll entitlements. Error: ".concat(n.message),n),setTimeout((function(){return t.restartPolling(e)}),e)}))},e.prototype.stopPolling=function(){var e;null===(e=this.entitlementsPollingObserver)||void 0===e||e.stopPolling()},e.prototype.restartPolling=function(e){this.stopPolling(),this.startPolling(e)},e.prototype.refresh=function(){return Ls(this,void 0,void 0,(function(){return Ts(this,(function(e){switch(e.label){case 0:return[4,this.loadEntitlements()];case 1:return e.sent(),[2]}}))}))},e.prototype.getBooleanEntitlement=function(e,t){var n=this.cacheService.getEntitlement(e),r=Ms.decideEntitlementPolicy(n);if((null==n?void 0:n.calculatedEntitlement.feature)&&n.calculatedEntitlement.feature.featureType!==pe.Boolean)return this.entitlementCheckReportingService.reportEntitlementCheckRequested(e,this.modelMapper.mapFallbackBooleanEntitlementResult(t,r)),t;if(!n){var i=this.modelMapper.mapEntitlementResult(r);return this.entitlementCheckReportingService.reportEntitlementCheckRequested(e,i),ks(ks({},r),{isFallback:!1})}var a=this.modelMapper.mapEntitlementResult(r,n);return this.entitlementCheckReportingService.reportEntitlementCheckRequested(e,a),this.modelMapper.mapBooleanEntitlement(n,r)},e.prototype.getNumericEntitlement=function(e,t){var n,r=this.cacheService.getEntitlement(e),i=Ms.decideEntitlementPolicy(r);if((null==r?void 0:r.calculatedEntitlement.feature)&&(null===(n=r.calculatedEntitlement.feature)||void 0===n?void 0:n.featureType)!==pe.Numeric){var a=this.modelMapper.mapFallbackNumericEntitlementResult(t,i);return this.entitlementCheckReportingService.reportEntitlementCheckRequested(e,a),t}if(!r){var o=this.modelMapper.mapEntitlementResult(i);return this.entitlementCheckReportingService.reportEntitlementCheckRequested(e,o),ks(ks({},i),{isFallback:!1,isUnlimited:!1})}var s=this.modelMapper.mapEntitlementResult(i,r);return this.entitlementCheckReportingService.reportEntitlementCheckRequested(e,s),this.modelMapper.mapNumericEntitlement(r,i)},e.prototype.getMeteredEntitlement=function(e,t,n){var r,i,a=this.cacheService.getEntitlement(e),o=Ms.decideEntitlementPolicy(a,null==n?void 0:n.requestedUsage);if((null==a?void 0:a.calculatedEntitlement.feature)&&(null===(r=a.calculatedEntitlement.feature)||void 0===r?void 0:r.meterType)!==me.Fluctuating&&(null===(i=a.calculatedEntitlement.feature)||void 0===i?void 0:i.meterType)!==me.Incremental){var s=this.modelMapper.mapFallbackMeteredEntitlementResult(t,o,null==n?void 0:n.requestedUsage);return this.entitlementCheckReportingService.reportEntitlementCheckRequested(e,s),t}if(!a){var u=this.modelMapper.mapEntitlementResult(o,void 0,null==n?void 0:n.requestedUsage);return this.entitlementCheckReportingService.reportEntitlementCheckRequested(e,u),ks(ks({},o),{currentUsage:0,isFallback:!1,isUnlimited:!1,requestedUsage:(null==n?void 0:n.requestedUsage)||0})}var l=this.modelMapper.mapEntitlementResult(o,a,null==n?void 0:n.requestedUsage);return this.entitlementCheckReportingService.reportEntitlementCheckRequested(e,l),this.modelMapper.mapMeteredEntitlement(a,o,null==n?void 0:n.requestedUsage)},e.prototype.loadEntitlements=function(){return Ls(this,void 0,void 0,(function(){return Ts(this,(function(e){switch(e.label){case 0:this.loadingEntitlements||(this.loadingEntitlements=this.loadEntitlementsFromRemote()),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,this.loadingEntitlements];case 2:return[2,e.sent()];case 3:return this.loadingEntitlements=null,[7];case 4:return[2]}}))}))},e.prototype.loadEntitlementsFromRemote=function(){return Ls(this,void 0,void 0,(function(){var e;return Ts(this,(function(t){switch(t.label){case 0:return[4,this.entitlementsApi.getEntitlements(this.customerId)];case 1:return e=t.sent(),this.storeFetchedEntitlementsInCache(e.data.entitlements),[2]}}))}))},e.prototype.storeFetchedEntitlementsInCache=function(e){var t=this.modelMapper.mapCachedEntitlements(e);this.cacheService.setEntitlements(t)},e.prototype.getEntitlements=function(){return Ls(this,void 0,void 0,(function(){var e=this;return Ts(this,(function(t){switch(t.label){case 0:return this.cacheService.isLoaded?[3,2]:[4,this.loadEntitlements()];case 1:t.sent(),t.label=2;case 2:return[2,Array.from(this.cacheService.getEntitlements().values()).map((function(t){var n=Ms.decideEntitlementPolicy(t);return e.modelMapper.mapEntitlement(t,n)}))]}}))}))},e}(),Ss=r(2991),Es=Object.prototype.toString;function Ys(e){switch(Es.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Fs(e,Error)}}function xs(e,t){return Es.call(e)===`[object ${t}]`}function Os(e){return xs(e,"ErrorEvent")}function js(e){return xs(e,"DOMError")}function Ps(e){return xs(e,"String")}function Cs(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function As(e){return xs(e,"Object")}function Is(e){return"undefined"!=typeof Event&&Fs(e,Event)}function Ns(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Fs(e,t){try{return e instanceof t}catch(e){return!1}}function Rs(e,t){try{let i=e;var n=[];let a=0,o=0;var r=" > ".length;let s;for(;i&&a++<5&&(s=Hs(i,t),!("html"===s||a>1&&o+n.length*r+s.length>=80));)n.push(s),o+=s.length,i=i.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function Hs(e,t){var n=e,r=[];let i,a,o,s,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());var l=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(l&&l.length)l.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else if(n.id&&r.push("#"+n.id),i=n.className,i&&Ps(i))for(a=i.split(/\s+/),u=0;u<a.length;u++)r.push("."+a[u]);var c=["type","name","title","alt"];for(u=0;u<c.length;u++)o=c[u],s=n.getAttribute(o),s&&r.push(`[${o}="${s}"]`);return r.join("")}function Us(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function zs(e,t){if(!Array.isArray(e))return"";var n=[];for(let t=0;t<e.length;t++){var r=e[t];try{n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Ws(e,t){return!!Ps(e)&&(xs(t,"RegExp")?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}function Bs(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{Vs(i,r)}catch(e){}e[t]=i}}function qs(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function Vs(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,qs(e,"__sentry_original__",t)}function $s(e){return e.__sentry_original__}function Gs(e){if(Ys(e))return{message:e.message,name:e.name,stack:e.stack,...Js(e)};if(Is(e)){var t={type:e.type,target:Qs(e.target),currentTarget:Qs(e.currentTarget),...Js(e)};return"undefined"!=typeof CustomEvent&&Fs(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Qs(e){try{return"undefined"!=typeof Element&&Fs(e,Element)?Rs(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function Js(e){if("object"==typeof e&&null!==e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Ks(e,t=40){var n=Object.keys(Gs(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Us(n[0],t);for(let e=n.length;e>0;e--){var r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:Us(r,t)}return""}function Xs(e){return function e(t,n){if(As(t)){if(void 0!==(a=n.get(t)))return a;var r={};for(var i of(n.set(t,r),Object.keys(t)))void 0!==t[i]&&(r[i]=e(t[i],n));return r}var a;return Array.isArray(t)?void 0!==(a=n.get(t))?a:(r=[],n.set(t,r),t.forEach(t=>{r.push(e(t,n))}),r):t}(e,new Map)}let Zs;class eu{constructor(){eu.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=eu.id}setupOnce(){Zs=Function.prototype.toString,Function.prototype.toString=function(...e){var t=$s(this)||this;return Zs.apply(t,e)}}}eu.__initStatic();var tu=(0,Ss.R)(),nu=["debug","info","warn","error","log","assert","trace"];function ru(e){var t=(0,Ss.R)();if(!("console"in t))return e();var n=t.console,r={};nu.forEach(e=>{var i=n[e]&&n[e].__sentry_original__;e in t.console&&i&&(r[e]=n[e],n[e]=i)});try{return e()}finally{Object.keys(r).forEach(e=>{n[e]=r[e]})}}function iu(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?nu.forEach(n=>{t[n]=(...t)=>{e&&ru(()=>{tu.console[n](`Sentry Logger [${n}]:`,...t)})}}):nu.forEach(e=>{t[e]=()=>{}}),t}let au;function ou(){var e=(0,Ss.R)(),t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");var n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function su(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function uu(e){const{message:t,event_id:n}=e;if(t)return t;var r=su(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function lu(e,t,n){var r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function cu(e,t){var n=su(e);if(n){var r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){var i={...r&&r.data,...t.data};n.mechanism.data=i}}}function du(e){if(e&&e.__sentry_captured__)return!0;try{qs(e,"__sentry_captured__",!0)}catch(e){}return!1}au="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,Ss.Y)("logger",iu):iu();var fu=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class hu{static __initStatic(){this.id="InboundFilters"}__init(){this.name=hu.id}constructor(e={}){this._options=e,hu.prototype.__init.call(this)}setupOnce(e,t){var n=e=>{var n=t();if(n){var r=n.getIntegration(hu);if(r){var i=n.getClient(),a=i?i.getOptions():{};return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("Event dropped due to being internal Sentry Error.\nEvent: "+uu(e)),!0):function(e,t){return!(!t||!t.length)&&function(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[""+n,`${t}: ${n}`]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error("Cannot extract message for event "+uu(e)),[]}return[]}(e).some(e=>t.some(t=>Ws(e,t)))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+uu(e)),!0):function(e,t){if(!t||!t.length)return!1;var n=pu(e);return!!n&&t.some(e=>Ws(n,e))}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${uu(e)}.\nUrl: ${pu(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;var n=pu(e);return!n||t.some(e=>Ws(n,e))}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${uu(e)}.\nUrl: ${pu(e)}`),!0)}(e,function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...fu],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(r._options,a))?null:e}}return e};n.id=this.name,e(n)}}function pu(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let n=e.length-1;n>=0;n--){var t=e[n];if(t&&"<anonymous>"!==t.filename&&"[native code]"!==t.filename)return t.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error("Cannot extract url for event "+uu(e)),null}}hu.__initStatic();var mu,_u=r(1170),yu=r(2176);function vu(e){return new bu(t=>{t(e)})}function gu(e){return new bu((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(mu||(mu={}));class bu{__init(){this._state=mu.PENDING}__init2(){this._handlers=[]}constructor(e){bu.prototype.__init.call(this),bu.prototype.__init2.call(this),bu.prototype.__init3.call(this),bu.prototype.__init4.call(this),bu.prototype.__init5.call(this),bu.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new bu((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new bu((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{i?n(r):t(r)})})}__init3(){this._resolve=e=>{this._setResult(mu.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(mu.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===mu.PENDING&&(Ns(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state!==mu.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===mu.RESOLVED&&e[1](this._value),this._state===mu.REJECTED&&e[2](this._value),e[0]=!0)})}}}}function Mu(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,_u.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:ou()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=""+t.did),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}class wu{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){var t=new wu;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments]),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&Mu(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts={...this._contexts,[e]:t},this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){var t=e(this);return t instanceof wu?t:this}return e instanceof wu?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):As(e)&&(e=e,this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r={timestamp:(0,_u.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags={transaction:n,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...ku(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,r=0){return new bu((i,a)=>{var o=e[r];if(null===t||"function"!=typeof o)i(t);else{var s=o({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.id&&null===s&&au.log(`Event processor "${o.id}" dropped event`),Ns(s)?s.then(t=>this._notifyEventProcessors(e,t,n,r+1).then(i)).then(null,a):this._notifyEventProcessors(e,s,n,r+1).then(i).then(null,a)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function ku(){return(0,Ss.Y)("globalEventProcessors",()=>[])}function Lu(e){ku().push(e)}var Tu=100;class Du{__init(){this._stack=[{}]}constructor(e,t=new wu,n=4){this._version=n,Du.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){var e=wu.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:ou(),r=new Error("Sentry syntheticException");return this._withClient((i,a)=>{i.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},a)}),n}captureMessage(e,t,n){var r=this._lastEventId=n&&n.event_id?n.event_id:ou(),i=new Error(e);return this._withClient((a,o)=>{a.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},o)}),r}captureEvent(e,t){var n=t&&t.event_id?t.event_id:ou();return"transaction"!==e.type&&(this._lastEventId=n),this._withClient((r,i)=>{r.captureEvent(e,{...t,event_id:n},i)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:a=Tu}=r.getOptions&&r.getOptions()||{};if(!(a<=0)){var o={timestamp:(0,_u.yW)(),...e},s=i?ru(()=>i(o,t)):o;null!==s&&n.addBreadcrumb(s,a)}}setUser(e){var t=this.getScope();t&&t.setUser(e)}setTags(e){var t=this.getScope();t&&t.setTags(e)}setExtras(e){var t=this.getScope();t&&t.setExtras(e)}setTag(e,t){var n=this.getScope();n&&n.setTag(e,t)}setExtra(e,t){var n=this.getScope();n&&n.setExtra(e,t)}setContext(e,t){var n=this.getScope();n&&n.setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();t&&n&&e(t)}run(e){var t=Eu(this);try{e(this)}finally{Eu(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&function(e,t){let n={};"ok"===e.status&&(n={status:"exited"}),Mu(e,n)}(n),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i}=n&&n.getOptions()||{};var a=(0,Ss.R)();const{userAgent:o}=a.navigator||{};var s=function(e){var t=(0,_u.ph)(),n={sid:ou(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Xs({sid:""+e.sid,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?""+e.did:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Mu(n,e),n}({release:r,environment:i,...t&&{user:t.getUser()},...o&&{userAgent:o},...e});if(t){var u=t.getSession&&t.getSession();u&&"ok"===u.status&&Mu(u,{status:"exited"}),this.endSession(),t.setSession(s)}return s}shouldSendDefaultPii(){var e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();if(e){var n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){var n=Su().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Su(){var e=(0,Ss.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function Eu(e){var t=Su(),n=Ou(t);return ju(t,e),n}function Yu(){var e=Su();return xu(e)&&!Ou(e).isOlderThan(4)||ju(e,new Du),(0,yu.KV)()?function(e){try{var t=Su().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return Ou(e);if(!xu(n)||Ou(n).isOlderThan(4)){var r=Ou(e).getStackTop();ju(n,new Du(r.client,wu.clone(r.scope)))}return Ou(n)}catch(t){return Ou(e)}}(e):Ou(e)}function xu(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Ou(e){return(0,Ss.Y)("hub",()=>new Du,e)}function ju(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}var Pu="<anonymous>";function Cu(e){try{return e&&"function"==typeof e&&e.name||Pu}catch(e){return Pu}}function Au(){if(!("fetch"in(0,Ss.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function Iu(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var Nu=(0,Ss.R)(),Fu={},Ru={};function Hu(e,t){Fu[e]=Fu[e]||[],Fu[e].push(t),function(e){if(!Ru[e])switch(Ru[e]=!0,e){case"console":"console"in Nu&&nu.forEach((function(e){e in Nu.console&&Bs(Nu.console,e,(function(t){return function(...n){Uu("console",{args:n,level:e}),t&&t.apply(Nu.console,n)}}))}));break;case"dom":!function(){if("document"in Nu){var e=Uu.bind(null,"dom"),t=$u(e,!0);Nu.document.addEventListener("click",t,!1),Nu.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{var n=Nu[t]&&Nu[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Bs(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var a=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=a[n]=a[n]||{refCount:0};if(!o.handler){var s=$u(e);o.handler=s,t.call(this,n,s,i)}o.refCount+=1}catch(e){}return t.call(this,n,r,i)}})),Bs(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var i=this.__sentry_instrumentation_handlers__||{},a=i[t];a&&(a.refCount-=1,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))})}}();break;case"xhr":!function(){if("XMLHttpRequest"in Nu){var e=XMLHttpRequest.prototype;Bs(e,"open",(function(e){return function(...t){var n=this,r=t[1],i=n.__sentry_xhr__={method:Ps(t[0])?t[0].toUpperCase():t[0],url:t[1]};Ps(r)&&"POST"===i.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);var a=function(){if(4===n.readyState){try{i.status_code=n.status}catch(e){}Uu("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?Bs(n,"onreadystatechange",(function(e){return function(...t){return a(),e.apply(n,t)}})):n.addEventListener("readystatechange",a),e.apply(n,t)}})),Bs(e,"send",(function(e){return function(...t){return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),Uu("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}}();break;case"fetch":(function(){if(!Au())return!1;var e=(0,Ss.R)();if(Iu(e.fetch))return!0;let t=!1;var n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=Iu(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&Bs(Nu,"fetch",(function(e){return function(...t){var n={args:t,fetchData:{method:zu(t),url:Wu(t)},startTimestamp:Date.now()};return Uu("fetch",{...n}),e.apply(Nu,t).then(e=>(Uu("fetch",{...n,endTimestamp:Date.now(),response:e}),e),e=>{throw Uu("fetch",{...n,endTimestamp:Date.now(),error:e}),e})}}));break;case"history":!function(){if(function(){var e=(0,Ss.R)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}()){var e=Nu.onpopstate;Nu.onpopstate=function(...t){var n=Nu.location.href,r=Bu;if(Bu=n,Uu("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},Bs(Nu.history,"pushState",t),Bs(Nu.history,"replaceState",t)}function t(e){return function(...t){var n=t.length>2?t[2]:void 0;if(n){var r=Bu,i=String(n);Bu=i,Uu("history",{from:r,to:i})}return e.apply(this,t)}}}();break;case"error":Gu=Nu.onerror,Nu.onerror=function(e,t,n,r,i){return Uu("error",{column:r,error:i,line:n,msg:e,url:t}),!!Gu&&Gu.apply(this,arguments)};break;case"unhandledrejection":Qu=Nu.onunhandledrejection,Nu.onunhandledrejection=function(e){return Uu("unhandledrejection",e),!Qu||Qu.apply(this,arguments)};break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("unknown instrumentation type:",e)}}(e)}function Uu(e,t){if(e&&Fu[e])for(var n of Fu[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Cu(n)}\nError:`,t)}}function zu(e=[]){return"Request"in Nu&&Fs(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Wu(e=[]){return"string"==typeof e[0]?e[0]:"Request"in Nu&&Fs(e[0],Request)?e[0].url:String(e[0])}let Bu,qu,Vu;function $u(e,t=!1){return n=>{if(n&&Vu!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===qu||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(Vu,n))&&(e({event:n,name:r,global:t}),Vu=n),clearTimeout(qu),qu=Nu.setTimeout(()=>{qu=void 0},1e3)}}}let Gu=null,Qu=null;function Ju(e,t=1/0,n=1/0){try{return Xu("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Ku(e,t=3,n=102400){var r,i=Ju(e,t);return r=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?Ku(e,t-1,n):i}function Xu(e,t,n=1/0,i=1/0,a=function(){var e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[o,s]=a;if(null===t||["number","boolean","string"].includes(typeof t)&&("number"!=typeof(u=t)||u==u))return t;var u,l=function(e,t){try{return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":void 0!==r.g&&t===r.g?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":function(e){return As(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${Cu(t)}]`:"symbol"==typeof t?`[${String(t)}]`:"bigint"==typeof t?`[BigInt: ${String(t)}]`:`[object ${Object.getPrototypeOf(t).constructor.name}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;if(0===n)return l.replace("object ","");if(o(t))return"[Circular ~]";var c=t;if(c&&"function"==typeof c.toJSON)try{return Xu("",c.toJSON(),n-1,i,a)}catch(e){}var d=Array.isArray(t)?[]:{};let f=0;var h=Gs(t);for(var p in h)if(Object.prototype.hasOwnProperty.call(h,p)){if(f>=i){d[p]="[MaxProperties ~]";break}var m=h[p];d[p]=Xu(p,m,n-1,i,a),f+=1}return s(t),d}function Zu(e,t){var n=tl(e,t),r={type:t&&t.name,value:rl(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function el(e,t){return{exception:{values:[Zu(e,t)]}}}function tl(e,t){var n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(nl.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}var nl=/Minified React error #\d+;/i;function rl(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function il(e,t,n,r,i){let a;if(Os(t)&&t.error)return el(e,t.error);if(js(t)||xs(t,"DOMException")){var o=t;if("stack"in t)a=el(e,t);else{var s=o.name||(js(o)?"DOMError":"DOMException"),u=o.message?`${s}: ${o.message}`:s;a=al(e,u,n,r),lu(a,u)}return"code"in o&&(a.tags={...a.tags,"DOMException.code":""+o.code}),a}return Ys(t)?el(e,t):As(t)||Is(t)?(a=function(e,t,n,r){var i={exception:{values:[{type:Is(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${Ks(t)}`}]},extra:{__serialized__:Ku(t)}};if(n){var a=tl(e,n);a.length&&(i.exception.values[0].stacktrace={frames:a})}return i}(e,t,n,i),cu(a,{synthetic:!0}),a):(a=al(e,t,n,r),lu(a,""+t,void 0),cu(a,{synthetic:!0}),a)}function al(e,t,n,r){var i={message:t};if(r&&n){var a=tl(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}return i}function ol(e,t){return Yu().captureException(e,{captureContext:t})}function sl(e){Yu().withScope(e)}let ul=0;function ll(){return ul>0}function cl(){ul+=1,setTimeout(()=>{ul-=1})}function dl(e,t={},n){if("function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if($s(e))return e}catch(t){return e}var i=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map(e=>dl(e,t));return e.apply(this,i)}catch(e){throw cl(),sl(n=>{n.addEventProcessor(e=>(t.mechanism&&(lu(e,void 0,void 0),cu(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),ol(e)}),e}};try{for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=e[a])}catch(e){}Vs(i,e),qs(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}class fl{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=fl.id}__init2(){this._installFunc={onerror:hl,onunhandledrejection:pl}}constructor(e){fl.prototype.__init.call(this),fl.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;var e,t=this._options;for(var n in t){var r=this._installFunc[n];r&&t[n]&&(e=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log("Global Handler attached: "+e),r(),this._installFunc[n]=void 0)}}}function hl(){Hu("error",e=>{const[t,n,r]=yl();if(!t.getIntegration(fl))return;const{msg:i,url:a,line:o,column:s,error:u}=e;if(!(ll()||u&&u.__sentry_own_request__)){var l=void 0===u&&Ps(i)?function(e,t,n,r){let i=Os(e)?e.message:e,a="Error";var o=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return o&&(a=o[1],i=o[2]),ml({exception:{values:[{type:a,value:i}]}},t,n,r)}(i,a,o,s):ml(il(n,u||i,void 0,r,!1),a,o,s);l.level="error",_l(t,u,l,"onerror")}})}function pl(){Hu("unhandledrejection",e=>{const[t,n,r]=yl();if(!t.getIntegration(fl))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(e){}if(ll()||i&&i.__sentry_own_request__)return!0;var a=Cs(i)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(i)}]}}:il(n,i,void 0,r,!0);a.level="error",_l(t,i,a,"onunhandledrejection")})}function ml(e,t,n,r){var i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},u=s.frames=s.frames||[],l=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,d=Ps(t)&&t.length>0?t:function(){var e=(0,Ss.R)();try{return e.document.location.href}catch(e){return""}}();return 0===u.length&&u.push({colno:l,filename:d,function:"?",in_app:!0,lineno:c}),e}function _l(e,t,n,r){cu(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function yl(){var e=Yu(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}fl.__initStatic();var vl=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class gl{static __initStatic(){this.id="TryCatch"}__init(){this.name=gl.id}constructor(e){gl.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){var e=(0,Ss.R)();this._options.setTimeout&&Bs(e,"setTimeout",bl),this._options.setInterval&&Bs(e,"setInterval",bl),this._options.requestAnimationFrame&&Bs(e,"requestAnimationFrame",Ml),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Bs(XMLHttpRequest.prototype,"send",wl);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:vl).forEach(kl)}}function bl(e){return function(...t){var n=t[0];return t[0]=dl(n,{mechanism:{data:{function:Cu(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function Ml(e){return function(t){return e.apply(this,[dl(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Cu(e)},handled:!0,type:"instrument"}})])}}function wl(e){return function(...t){var n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&Bs(n,e,(function(t){var n={mechanism:{data:{function:e,handler:Cu(t)},handled:!0,type:"instrument"}},r=$s(t);return r&&(n.mechanism.data.handler=Cu(r)),dl(t,n)}))}),e.apply(this,t)}}function kl(e){var t=(0,Ss.R)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Bs(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=dl(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Cu(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,dl(r,{mechanism:{data:{function:"addEventListener",handler:Cu(r),target:e},handled:!0,type:"instrument"}}),i])}})),Bs(n,"removeEventListener",(function(e){return function(t,n,r){var i=n;try{var a=i&&i.__sentry_wrapped__;a&&e.call(this,t,a,r)}catch(e){}return e.call(this,t,i,r)}})))}gl.__initStatic();var Ll=["fatal","error","warning","log","info","debug"];function Tl(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}var Dl="Breadcrumbs";class Sl{static __initStatic(){this.id=Dl}__init(){this.name=Sl.id}constructor(e){Sl.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){var e;this.options.console&&Hu("console",El),this.options.dom&&Hu("dom",(e=this.options.dom,function(t){let n,r="object"==typeof e?e.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=t.event.target?Rs(t.event.target,r):Rs(t.event,r)}catch(e){n="<unknown>"}0!==n.length&&Yu().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&Hu("xhr",Yl),this.options.fetch&&Hu("fetch",xl),this.options.history&&Hu("history",Ol)}}function El(e){var t,n={category:"console",data:{arguments:e.args,logger:"console"},level:(t=e.level,"warn"===t?"warning":Ll.includes(t)?t:"log"),message:zs(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message="Assertion failed: "+(zs(e.args.slice(1)," ")||"console.assert"),n.data.arguments=e.args.slice(1)}Yu().addBreadcrumb(n,{input:e.args,level:e.level})}function Yl(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;const{method:t,url:n,status_code:r,body:i}=e.xhr.__sentry_xhr__||{};Yu().addBreadcrumb({category:"xhr",data:{method:t,url:n,status_code:r},type:"http"},{xhr:e.xhr,input:i})}}function xl(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?Yu().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):Yu().addBreadcrumb({category:"fetch",data:{...e.fetchData,status_code:e.response.status},type:"http"},{input:e.args,response:e.response})))}function Ol(e){var t=(0,Ss.R)();let n=e.from,r=e.to;var i=Tl(t.location.href);let a=Tl(n);var o=Tl(r);a.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),Yu().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}Sl.__initStatic();class jl{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=jl.id}constructor(e={}){jl.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){var e=Yu().getClient();e&&Lu((t,n)=>{var r=Yu().getIntegration(jl);return r?function(e,t,n,r,i){if(!(r.exception&&r.exception.values&&i&&Fs(i.originalException,Error)))return r;var a=function e(t,n,r,i,a=[]){if(!Fs(r[i],Error)||a.length+1>=n)return a;var o=Zu(t,r[i]);return e(t,n,r[i],i,[o,...a])}(e,n,i.originalException,t);return r.exception.values=[...a,...r.exception.values],r}(e.getOptions().stackParser,r._key,r._limit,t,n):t})}}jl.__initStatic();var Pl=(0,Ss.R)();class Cl{constructor(){Cl.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Cl.id}setupOnce(){Lu(e=>{if(Yu().getIntegration(Cl)){if(!Pl.navigator&&!Pl.location&&!Pl.document)return e;var t=e.request&&e.request.url||Pl.location&&Pl.location.href;const{referrer:r}=Pl.document||{},{userAgent:i}=Pl.navigator||{};var n={...t&&{url:t},headers:{...e.request&&e.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}}};return{...e,request:n}}return e})}}Cl.__initStatic();class Al{constructor(){Al.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Al.id}setupOnce(e,t){var n=e=>{var n=t().getIntegration(Al);if(n){try{if(function(e,t){return!(!t||!function(e,t){var n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Nl(e,t)||!Il(e,t))}(e,t)&&!function(e,t){var n=Fl(t),r=Fl(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&Nl(e,t)&&Il(e,t))}(e,t))}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function Il(e,t){let n=Rl(e),r=Rl(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,r=r,r.length!==n.length)return!1;for(let e=0;e<r.length;e++){var i=r[e],a=n[e];if(i.filename!==a.filename||i.lineno!==a.lineno||i.colno!==a.colno||i.function!==a.function)return!1}return!0}function Nl(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function Fl(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Rl(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}Al.__initStatic();let Hl={};var Ul=(0,Ss.R)();Ul.Sentry&&Ul.Sentry.Integrations&&(Hl=Ul.Sentry.Integrations);var zl={...Hl,...i,...a};function Wl(e,t,n,r){var i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var Bl=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ql=/\((\S*)(?::(\d+))(?::(\d+))\)/,Vl=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,$l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Gl=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ql=function(...e){var t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{var r=[];for(var i of e.split("\n").slice(n)){var a=i.replace(/\(error: (.*)\)/,"$1");for(var o of t){var s=o(a);if(s){r.push(s);break}}}return function(e){if(!e.length)return[];let t=e;var n=t[0].function||"",r=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map(e=>({...e,filename:e.filename||t[0].filename,function:e.function||"?"})).reverse()}(r)}}([30,e=>{var t=Bl.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=ql.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}const[e,r]=Jl(t[1]||"?",t[2]);return Wl(r,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{var t=Vl.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=$l.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}let e=t[3],r=t[1]||"?";return[r,e]=Jl(r,e),Wl(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{var t=Gl.exec(e);return t?Wl(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}]),Jl=(e,t)=>{var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]};class Kl extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function Xl(e,t=[]){return[e,t]}function Zl(e,t){const[n,r]=e;return[n,[...r,t]]}function ec(e,t){e[1].forEach(e=>{var n=e[0].type;t(e,n)})}function tc(e,t){return(t||new TextEncoder).encode(e)}function nc(e,t){const[n,r]=e;let i=JSON.stringify(n);function a(e){"string"==typeof i?i="string"==typeof e?i+e:[tc(i,t),e]:i.push("string"==typeof e?tc(e,t):e)}for(var o of r){const[e,t]=o;a(`\n${JSON.stringify(e)}\n`),a("string"==typeof t||t instanceof Uint8Array?t:JSON.stringify(t))}return"string"==typeof i?i:function(e){var t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(var i of e)n.set(i,r),r+=i.length;return n}(i)}function rc(e,t){var n="string"==typeof e.data?tc(e.data,t):e.data;return[Xs({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var ic={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function ac(e){return ic[e]}function oc(e,t,n=function(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return gu(new Kl("Not adding Promise due to buffer limit reached."));var i=r();return-1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new bu((n,r)=>{let i=t.length;if(!i)return n(!0);var a=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{vu(e).then(()=>{--i||(clearTimeout(a),n(!0))},r)})})}}}(e.bufferSize||30)){let r={};return{send:function(i){var a=[];if(ec(i,(t,n)=>{var i=ac(n);!function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)?a.push(t):e.recordDroppedEvent("ratelimit_backoff",i)}),0===a.length)return vu();var o=Xl(i[0],a),s=t=>{ec(o,(n,r)=>{e.recordDroppedEvent(t,ac(r))})};return n.add(()=>t({body:nc(o,e.textEncoder)}).then(e=>{void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){var i={...e},a=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(a)for(var s of a.trim().split(",")){const[e,t]=s.split(":",2);var u=parseInt(e,10),l=1e3*(isNaN(u)?60:u);if(t)for(var c of t.split(";"))i[c]=r+l;else i.all=r+l}else o?i.all=r+function(e,t=Date.now()){var n=parseInt(""+e,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+e);return isNaN(r)?6e4:r-t}(o,r):429===t&&(i.all=r+6e4);return i}(r,e)},e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error("Failed while sending event:",e),s("network_error")})).then(e=>e,e=>{if(e instanceof Kl)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error("Skipped sending event due to full buffer"),s("queue_overflow"),vu();throw e})},flush:e=>n.drain(e)}}var sc=(0,Ss.R)();let uc;function lc(){if(uc)return uc;if(Iu(sc.fetch))return uc=sc.fetch.bind(sc);var e=sc.document;let t=sc.fetch;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return uc=t.bind(sc)}function cc(e,t=lc()){return oc(e,(function(n){var r={body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,...e.fetchOptions};return t(e.url,r).then(e=>({statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}))}function dc(e){return oc(e,(function(t){return new bu((n,r)=>{var i=new XMLHttpRequest;for(var a in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,a)&&i.setRequestHeader(a,e.headers[a]);i.send(t.body)})}))}var fc=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function hc(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?":"+i:""}@${n}${a?":"+a:""}/${r?r+"/":r}${o}`}function pc(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function mc(e,t={}){var n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){var t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return`${t}//${e.host}${n}${e.path?"/"+e.path:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return n={sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`).join("&");var n}(e,r)}`}function _c(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}var yc=[],vc="Not capturing exception because it's already been captured.";class gc{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(gc.prototype.__init.call(this),gc.prototype.__init2.call(this),gc.prototype.__init3.call(this),gc.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=(function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach(t=>{if(!e[t])throw new Kl(`Invalid Sentry Dsn: ${t} missing`)}),!n.match(/^\d+$/))throw new Kl("Invalid Sentry Dsn: Invalid projectId "+n);if(!function(e){return"http"===e||"https"===e}(r))throw new Kl("Invalid Sentry Dsn: Invalid protocol "+r);if(t&&isNaN(parseInt(t,10)))throw new Kl("Invalid Sentry Dsn: Invalid port "+t)}(r="string"==typeof(n=e.dsn)?function(e){var t=fc.exec(e);if(!t)throw new Kl("Invalid Sentry Dsn: "+e);const[n,r,i="",a,o="",s]=t.slice(1);let u="",l=s;var c=l.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),l=c.pop()),l){var d=l.match(/^\d+/);d&&(l=d[0])}return pc({host:a,pass:i,path:u,projectId:l,port:o,protocol:n,publicKey:r})}(n):pc(n)),r);var t=mc(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("No DSN provided, client will not do anything.");var n,r}captureException(e,t,n){if(du(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log(vc));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then(e=>this._captureEvent(e,t,n)).then(e=>{r=e})),r}captureMessage(e,t,n,r){let i=n&&n.event_id;var a=Cs(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(a.then(e=>this._captureEvent(e,n,r)).then(e=>{i=e})),i}captureEvent(e,t,n){if(t&&t.originalException&&du(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log(vc));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then(e=>{r=e})),r}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Mu(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getTransport(){return this._transport}flush(e){var t=this._transport;return t?this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e)):vu(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,e))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){var t={};return e.forEach(e=>{t[e.name]=e,-1===yc.indexOf(e.name)&&(e.setupOnce(Lu,Yu),yc.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log("Integration installed: "+e.name))}),t}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}sendEvent(e,t={}){if(this._dsn){let r=function(e,t,n,r){var i=_c(n),a=e.type||"event";const{transactionSampling:o}=e.sdkProcessingMetadata||{},{method:s,rate:u}=o||{};!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);var l=function(e,t,n,r){var i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baggage,a=i&&function(e){return e[0]}(i);return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:hc(r)},..."transaction"===e.type&&a&&{trace:Xs({...a})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,Xl(l,[[{type:a,sample_rates:[{id:s,rate:u}]},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(var n of t.attachments||[])r=Zl(r,rc(n,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(r)}}sendSession(e){if(this._dsn){var t=function(e,t,n,r){var i=_c(n);return Xl({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:hc(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t){if(this._options.sendClientReports){var n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(e,t){let n=!1,r=!1;var i=t.exception&&t.exception.values;if(i)for(var a of(r=!0,i)){var o=a.mechanism;if(o&&!1===o.handled){n=!0;break}}var s="ok"===e.status;(s&&0===e.errors||s&&n)&&(Mu(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new bu(t=>{let n=0;var r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const{normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=this.getOptions();var a={...e,event_id:e.event_id||t.event_id||ou(),timestamp:e.timestamp||(0,_u.yW)()};this._applyClientOptions(a),this._applyIntegrationsMetadata(a);let o=n;t.captureContext&&(o=wu.clone(o).update(t.captureContext));let s=vu(a);if(o){var u=[...t.attachments||[],...o.getAttachments()];u.length&&(t.attachments=u),s=o.applyToEvent(a,t)}return s.then(e=>"number"==typeof r&&r>0?this._normalizeEvent(e,r,i):e)}_normalizeEvent(e,t,n){if(!e)return null;var r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Ju(e.data,t,n)}}))},...e.user&&{user:Ju(e.user,t,n)},...e.contexts&&{contexts:Ju(e.contexts,t,n)},...e.extra&&{extra:Ju(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Ju(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>(e.data&&(e.data=Ju(e.data,t,n)),e))),r}_applyClientOptions(e){var t=this.getOptions();const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=Us(e.message,a));var o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=Us(o.value,a));var s=e.request;s&&s.url&&(s.url=Us(s.url,a))}_applyIntegrationsMetadata(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var t=e;"log"===t.logLevel?au.log(t.message):au.warn(t)}})}_processEvent(e,t,n){const{beforeSend:r,sampleRate:i}=this.getOptions();if(!this._isEnabled())return gu(new Kl("SDK not enabled, will not capture event.","log"));var a="transaction"===e.type;return!a&&"number"==typeof i&&Math.random()>i?(this.recordDroppedEvent("sample_rate","error"),gu(new Kl(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"))):this._prepareEvent(e,t,n).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",e.type||"error"),new Kl("An event processor returned null, will not send event.","log");return t.data&&!0===t.data.__sentry__||a||!r?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(Ns(e))return e.then(e=>{if(!As(e)&&null!==e)throw new Kl(t);return e},e=>{throw new Kl("beforeSend rejected with "+e)});if(!As(e)&&null!==e)throw new Kl(t);return e}(r(n,t))}).then(r=>{if(null===r)throw this.recordDroppedEvent("before_send",e.type||"error"),new Kl("`beforeSend` returned `null`, will not send event.","log");var i=n&&n.getSession();return!a&&i&&this._updateSessionFromEvent(i,r),this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof Kl)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Kl("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)})}_process(e){this._numProcessing+=1,e.then(e=>(this._numProcessing-=1,e),e=>(this._numProcessing-=1,e))}_sendEnvelope(e){this._transport&&this._dsn?this._transport.send(e).then(null,e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error("Error while sending event:",e)}):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error("Transport disabled")}_clearOutcomes(){var e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}})}}var bc=(0,Ss.R)();class Mc extends gc{constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"7.11.1"}],version:"7.11.1"},super(e),e.sendClientReports&&bc.document&&bc.document.addEventListener("visibilitychange",()=>{"hidden"===bc.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){var i=il(e,t,n&&n.syntheticException||void 0,r);return cu(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),vu(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){var a=al(e,t,r&&r.syntheticException||void 0,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),vu(a)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){var n=this.getIntegrationById(Dl);n&&n.options&&n.options.sentry&&Yu().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:uu(e)},{event:e}),super.sendEvent(e,t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){var e=this._clearOutcomes();if(0!==e.length)if(this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log("Sending outcomes:",e);var t,n,r=mc(this._dsn,this._options),i=(t=e,Xl((n=this._options.tunnel&&hc(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:(0,_u.yW)(),discarded_events:t}]]));try{!function(e,t){"[object Navigator]"===Object.prototype.toString.call(sc&&sc.navigator)&&"function"==typeof sc.navigator.sendBeacon?sc.navigator.sendBeacon.bind(sc.navigator)(e,t):Au()&&lc()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error(e)})}(r,nc(i))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error(e)}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log("No dsn provided, will not send outcomes");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log("No outcomes to send")}}var wc=r(4147),kc=[new zl.InboundFilters,new zl.FunctionToString,new zl.TryCatch,new zl.Breadcrumbs,new zl.LinkedErrors,new zl.Dedupe,new zl.HttpContext],Lc=new Du,Tc=function(){return(Tc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Dc(e,t){return n=this,i=function(){return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e()];case 1:return[2,n.sent()];case 2:return[2,Ec(n.sent(),t)];case 3:return[2]}}))},new((r=void 0)||(r=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function o(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,o)}s((i=i.apply(n,[])).next())}));var n,r,i}function Sc(e,t){try{return e()}catch(e){return Ec(e,t)}}function Ec(e,t){var n=t.loggerService,r=t.sdkConfiguration,i=t.errorMessage,a=t.rethrowError,o=t.errorReportMetadata,s=i?i(e):"Operation failed. Error: ".concat(e.message);if(n.error(s,e),function(e,t){var n=t.sdkConfiguration,r=t.errorMessage,i=t.errorReportMetadata;Lc.withScope((function(t){var a={errorMessage:r};if(n){var o=n.customerId,s=Tc(Tc({},n),{apiKey:void 0});o&&t.setTags({customerId:o}),a.sdkConfiguration=s}i&&(a=Tc(Tc({},a),i)),t.setExtras(a),Lc.captureException(e)}))}(e,{sdkConfiguration:r,errorMessage:s,errorReportMetadata:o}),a)throw new Error(s)}var Yc=function(){return(Yc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},xc=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}u((r=r.apply(e,t||[])).next())}))},Oc=function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},jc=function(){function e(e,t){this.modelMapper=new Tn,this.configuration=e,this.graphClient=function(e){var t=e.apiKey,n=e.baseUri,r=ds(t),i=function(e){return new si({uri:"".concat(e,"/graphql"),fetch:is()})}(n),a=new ls({attempts:{max:5,retryIf:fs},delay:{initial:500,max:2e3,jitter:!0}});return new co({link:r.concat(a.concat(i)),cache:new ts({possibleTypes:ns.g}),name:"js-client-sdk",version:cs.version})}(this.configuration),this.batchedGraphClient=function(e){var t=e.apiKey,n=e.baseUri,r=ds(t),i=function(e){return new ss({uri:"".concat(e,"/graphql"),batchMax:25,batchInterval:500,fetch:is()})}(n);return new co({link:r.concat(i),cache:new ts({possibleTypes:ns.g}),name:"js-client-sdk",version:cs.version})}(this.configuration),this.loggerService=t,this.apiGateway=new hn(this.graphClient),this.entitlementsService=null}return e.initialize=function(t){return xc(this,void 0,void 0,(function(){var n,r,i,a;return Oc(this,(function(s){switch(s.label){case 0:if(n=function(e){var t={baseUri:"https://api.stigg.io",entitlementPollingInterval:3e4,logConfiguration:{logger:console,logLevel:o.ERROR}};return yn()(t,e)}(t),r=new ye(n.logConfiguration.logger,n.logConfiguration.logLevel),!function(e,t){var n=!0;return mn()(e.apiKey)&&(t.error("You must configure the client with an SDK key"),n=!1),e.entitlementPollingInterval&&e.entitlementPollingInterval<5e3&&(t.error("Entitlements polling interval cannot be lower than 5000ms"),n=!1),n}(n,r))return[2,null];s.label=1;case 1:return s.trys.push([1,4,,5]),i=new e(n,r),t.customerId?[4,i.setCustomerId(t.customerId)]:[3,3];case 2:s.sent(),s.label=3;case 3:return this.initializeSdk(i),[2,i];case 4:return a=s.sent(),r.error("Failed to initialize Stigg JS SDK. Error: ".concat(a.message)),[2,null];case 5:return[2]}}))}))},e.initializeSdk=function(e){return xc(this,void 0,void 0,(function(){var t,n;return Oc(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e.apiGateway.sdkConfiguration.getSdkConfiguration()];case 1:return(null==(t=r.sent())?void 0:t.sentryDsn)&&(o=t.sentryDsn,a=function(){var e,t;return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(n){return e={dsn:o,normalizeDepth:6,release:"".concat("js-client-sdk","@").concat(wc.version),integrations:kc,stackParser:Ql,transport:Au()?cc:dc},t=new Mc(e),Lc.bindClient(t),[2]}))},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{o(a.next(e))}catch(e){t(e)}}function r(e){try{o(a.throw(e))}catch(e){t(e)}}function o(t){var a;t.done?e(t.value):(a=t.value,a instanceof i?a:new i((function(e){e(a)}))).then(n,r)}o((a=a.apply(void 0,[])).next())}))),[3,3];case 2:return n=r.sent(),e.loggerService.error("Failed to load sdk configuration",n),[3,3];case 3:return[2]}var i,a,o}))}))},Object.defineProperty(e.prototype,"isCustomerLoaded",{get:function(){return!!this.configuration.customerId},enumerable:!1,configurable:!0}),e.prototype.setCustomerId=function(e){var t;return xc(this,void 0,void 0,(function(){var n=this;return Oc(this,(function(r){return null===(t=this.entitlementsService)||void 0===t||t.stopPolling(),this.configuration.customerId=e,this.entitlementsService=new Ds(e,new hs,this.graphClient,this.batchedGraphClient,this.loggerService),this.entitlementsService.startPolling(this.configuration.entitlementPollingInterval),[2,Dc((function(){return xc(n,void 0,void 0,(function(){var e;return Oc(this,(function(t){switch(t.label){case 0:return[4,null===(e=this.entitlementsService)||void 0===e?void 0:e.loadEntitlements()];case 1:return t.sent(),[2]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to load initial entitlements for customer. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.refresh=function(){return xc(this,void 0,void 0,(function(){var e=this;return Oc(this,(function(t){return[2,Dc((function(){return xc(e,void 0,void 0,(function(){var e;return Oc(this,(function(t){switch(t.label){case 0:return[4,null===(e=this.entitlementsService)||void 0===e?void 0:e.refresh()];case 1:return t.sent(),[2]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to refresh entitlements. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getBooleanEntitlement=function(e){var t=this,n=e.featureId,r=e.options,i=Yc(Yc({},ve),(null==r?void 0:r.fallback)||{});return Sc((function(){return t.entitlementsService?t.entitlementsService.getBooleanEntitlement(n,i):i}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get boolean entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:n,options:r}})||i},e.prototype.getNumericEntitlement=function(e){var t=this,n=e.featureId,r=e.options,i=Yc(Yc({},ge),(null==r?void 0:r.fallback)||{});return Sc((function(){return t.entitlementsService?t.entitlementsService.getNumericEntitlement(n,i):i}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get numeric entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:n,options:r}})||i},e.prototype.getMeteredEntitlement=function(e){var t=this,n=e.featureId,r=e.options,i=Yc(Yc({},be),(null==r?void 0:r.fallback)||{});return Sc((function(){return t.entitlementsService?t.entitlementsService.getMeteredEntitlement(n,i,r):i}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get metered entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:n,options:r}})||i},e.prototype.getPaywall=function(e){var t=(void 0===e?{}:e).productId;return xc(this,void 0,void 0,(function(){var e=this;return Oc(this,(function(n){return[2,Dc((function(){return xc(e,void 0,void 0,(function(){var e;return Oc(this,(function(n){switch(n.label){case 0:return[4,this.apiGateway.paywall.getPlans(t)];case 1:return e=n.sent(),[2,this.modelMapper.mapPlans(e.data)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get paywall. Error: ".concat(e.message)},rethrowError:!0,errorReportMetadata:{productId:t}})]}))}))},e.prototype.getCoupons=function(){return xc(this,void 0,void 0,(function(){var e=this;return Oc(this,(function(t){return[2,Dc((function(){return xc(e,void 0,void 0,(function(){var e;return Oc(this,(function(t){switch(t.label){case 0:return[4,this.apiGateway.coupons.getCoupons()];case 1:return e=t.sent(),[2,this.modelMapper.mapCoupons(e.data)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get coupons. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getCustomer=function(){return xc(this,void 0,void 0,(function(){var e=this;return Oc(this,(function(t){return[2,Dc((function(){return xc(e,void 0,void 0,(function(){var e,t,n;return Oc(this,(function(r){switch(r.label){case 0:return e=gn(this.configuration),[4,this.apiGateway.customers.getCustomer(e)];case 1:if(t=r.sent(),!(n=t.data.customers.edges[0]))throw new Error("Customer not found");return[2,this.modelMapper.mapCustomer(n.node)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get customer. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getEntitlements=function(){return xc(this,void 0,void 0,(function(){var e=this;return Oc(this,(function(t){return[2,Dc((function(){return xc(e,void 0,void 0,(function(){var e;return Oc(this,(function(t){return gn(this.configuration),[2,(null===(e=this.entitlementsService)||void 0===e?void 0:e.getEntitlements())||[]]}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get entitlements. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.waitForCheckoutCompleted=function(e){var t=void 0===e?{}:e,n=t.timeoutMs,r=void 0===n?15e3:n,i=t.refreshOnComplete,a=void 0===i||i;return xc(this,void 0,void 0,(function(){var e,t,n,i,o,s;return Oc(this,(function(u){switch(u.label){case 0:if("undefined"==typeof window)throw new Error("`waitForCheckoutCompleted` was called, but `window` is not defined");if(e=new URLSearchParams(window.location.search),!(t=e.get("subscriptionId")))return this.loggerService.log("`waitCheckoutCompleted` was called, but no `subscriptionId` found in query params"),[2,null];n=Date.now(),i=!1,o=null,u.label=1;case 1:return i?[4,new Promise((function(e){return setTimeout(e,1e3)}))]:[3,3];case 2:u.sent(),u.label=3;case 3:return[4,this.getCustomer()];case 4:s=u.sent(),o=s.getActiveSubscriptions().find((function(e){return e.id===t}))||null,i=!0,u.label=5;case 5:if(!o&&Date.now()-n<r)return[3,1];u.label=6;case 6:if(!o)throw new Error("Timeout while waiting for checkout to complete, subscription ".concat(t," is not active"));return a?[4,this.refresh()]:[3,8];case 7:u.sent(),u.label=8;case 8:return[2,o]}}))}))},e}()},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"@stigg/js-client-sdk","version":"0.39.2","description":"Stigg client-side SDK for Browser","main":"dist/index.js","typings":"dist/index.d.ts","repository":"https://github.com/stiggio/js-client-sdk.git","license":"MIT","scripts":{"start":"webpack serve","build:types":"tsc --emitDeclarationOnly","build":"yarn build:types && webpack","build:watch":"webpack --watch","build:prod":"yarn build:types && webpack --env production","generate":"graphql-codegen && yarn run fix:lint","fix":"run-s fix:*","fix:prettier":"prettier \\"src/**/*.ts\\" --write","fix:lint":"eslint src --ext .ts --fix","test":"jest","test:watch":"jest --watch","test:cov":"jest --coverage","prepare":"husky install","docs":"typedoc"},"files":["dist/**/*"],"dependencies":{"@apollo/client":"^3.4.17","@sentry/browser":"^7.11.1","cross-fetch":"^3.1.4","graphql":"^16.0.1","husky":"^7.0.4","lint-staged":"^12.0.2","lodash":"^4.17.21"},"devDependencies":{"@commitlint/cli":"^14.1.0","@commitlint/config-conventional":"^14.1.0","@graphql-codegen/cli":"^2.3.0","@graphql-codegen/fragment-matcher":"^3.2.1","@graphql-codegen/schema-ast":"^2.4.0","@graphql-codegen/typescript":"^2.4.0","@graphql-codegen/typescript-operations":"^2.2.0","@types/jest":"^27.0.2","@types/lodash":"^4.14.177","@typescript-eslint/eslint-plugin":"^5.4.0","@typescript-eslint/parser":"^5.4.0","eslint":"^8.2.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^27.3.1","jest-fetch-mock":"^3.0.3","msw":"^0.35.0","npm-run-all":"^4.1.5","prettier":"^2.4.1","ts-jest":"^27.0.7","ts-loader":"^9.2.6","typedoc":"^0.22.13","typedoc-plugin-rename-defaults":"^0.4.0","typescript":"^4.5.3","webpack":"^5.64.1","webpack-cli":"^4.9.1","webpack-dev-server":"^4.5.0"},"publishConfig":{"access":"public"},"lint-staged":{"*.{js,jsx,ts,tsx}":["prettier --check","eslint --cache"]}}')}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var a=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}return r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r(5694)})()}).call(this,n(82))},function(e,t,n){"use strict";var r=n(54),i="object"==typeof self&&self&&self.Object===Object&&self,a=r.a||i||Function("return this")();t.a=a},function(e,t,n){"use strict";t.a=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";t.a=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";var r=n(5).a.Symbol;t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(83);t.GlobalTypeStyles=r.createGlobalStyle`
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Stigg=t():e.Stigg=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=230)}([function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function l(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function h(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Tt(e,t,n,r,!0).utc()}function m(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function _(e){if(null==e._isValid){var t=m(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function y(e){var t=p(NaN);return null!=e?h(m(t),e):m(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=i.momentProperties=[],g=!1;function b(e,t){var n,r,i,a=v.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=m(t)),l(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)l(i=t[r=v[n]])||(e[r]=i);return e}function M(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===g&&(g=!0,i.updateOffset(this),g=!1)}function w(e){return e instanceof M||null!=e&&null!=e._isAMomentObject}function k(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function L(e,t){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var r,a,o,u=[],l=arguments.length;for(a=0;a<l;a++){if(r="","object"==typeof arguments[a]){for(o in r+="\n["+a+"] ",arguments[0])s(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[a];u.push(r)}k(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var T,D={};function S(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),D[e]||(k(t),D[e]=!0)}function E(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Y(e,t){var n,r=h({},e);for(n in t)s(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&o(e[n])&&(r[n]=h({},r[n]));return r}function x(e){null!=e&&this.set(e)}function O(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,C={},A={};function I(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(A[e]=i),t&&(A[t[0]]=function(){return O(i.apply(this,arguments),t[1],t[2])}),n&&(A[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function N(e,t){return e.isValid()?(t=F(t,e.localeData()),C[t]=C[t]||function(e){var t,n,r,i=e.match(j);for(t=0,n=i.length;t<n;t++)A[i[t]]?i[t]=A[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,a="";for(r=0;r<n;r++)a+=E(i[r])?i[r].call(t,e):i[r];return a}}(t),C[t](e)):e.localeData().invalidDate()}function F(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(P.lastIndex=0;n>=0&&P.test(e);)e=e.replace(P,r),P.lastIndex=0,n-=1;return e}var R={};function H(e,t){var n=e.toLowerCase();R[n]=R[n+"s"]=R[t]=e}function U(e){return"string"==typeof e?R[e]||R[e.toLowerCase()]:void 0}function z(e){var t,n,r={};for(n in e)s(e,n)&&(t=U(n))&&(r[t]=e[n]);return r}var W={};function B(e,t){W[e]=t}function q(e){return e%4==0&&e%100!=0||e%400==0}function V(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function $(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=V(t)),n}function G(e,t){return function(n){return null!=n?(J(this,e,n),i.updateOffset(this,t),this):Q(this,e)}}function Q(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function J(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&q(e.year())&&1===e.month()&&29===e.date()?(n=$(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),we(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var K,X=/\d/,Z=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,re=/\d\d?/,ie=/\d\d\d\d?/,ae=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,se=/\d{1,4}/,ue=/[+-]?\d{1,6}/,le=/\d+/,ce=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,fe=/Z|[+-]\d\d(?::?\d\d)?/gi,he=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function pe(e,t,n){K[e]=E(t)?t:function(e,r){return e&&n?n:t}}function me(e,t){return s(K,e)?K[e](t._strict,t._locale):new RegExp(_e(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function _e(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}K={};var ye,ve={};function ge(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=$(e)}),r=e.length,n=0;n<r;n++)ve[e[n]]=i}function be(e,t){ge(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Me(e,t,n){null!=t&&s(ve,e)&&ve[e](t,n._a,n,e)}function we(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?q(e)?29:28:31-r%7%2}ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},I("M",["MM",2],"Mo",(function(){return this.month()+1})),I("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),I("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),H("month","M"),B("month",8),pe("M",re),pe("MM",re,Z),pe("MMM",(function(e,t){return t.monthsShortRegex(e)})),pe("MMMM",(function(e,t){return t.monthsRegex(e)})),ge(["M","MM"],(function(e,t){t[1]=$(e)-1})),ge(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[1]=i:m(n).invalidMonth=e}));var ke="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Le="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Te=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,De=he,Se=he;function Ee(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=ye.call(this._shortMonthsParse,o))?i:null:-1!==(i=ye.call(this._longMonthsParse,o))?i:null:"MMM"===t?-1!==(i=ye.call(this._shortMonthsParse,o))||-1!==(i=ye.call(this._longMonthsParse,o))?i:null:-1!==(i=ye.call(this._longMonthsParse,o))||-1!==(i=ye.call(this._shortMonthsParse,o))?i:null}function Ye(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=$(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),we(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function xe(e){return null!=e?(Ye(this,e),i.updateOffset(this,!0),this):Q(this,"Month")}function Oe(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],a=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),a.sort(e),t=0;t<12;t++)r[t]=_e(r[t]),i[t]=_e(i[t]);for(t=0;t<24;t++)a[t]=_e(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function je(e){return q(e)?366:365}I("Y",0,0,(function(){var e=this.year();return e<=9999?O(e,4):"+"+e})),I(0,["YY",2],0,(function(){return this.year()%100})),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),H("year","y"),B("year",1),pe("Y",ce),pe("YY",re,Z),pe("YYYY",se,te),pe("YYYYY",ue,ne),pe("YYYYYY",ue,ne),ge(["YYYYY","YYYYYY"],0),ge("YYYY",(function(e,t){t[0]=2===e.length?i.parseTwoDigitYear(e):$(e)})),ge("YY",(function(e,t){t[0]=i.parseTwoDigitYear(e)})),ge("Y",(function(e,t){t[0]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return $(e)+($(e)>68?1900:2e3)};var Pe=G("FullYear",!0);function Ce(e,t,n,r,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function Ae(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ie(e,t,n){var r=7+t-n;return-(7+Ae(e,0,r).getUTCDay()-t)%7+r-1}function Ne(e,t,n,r,i){var a,o,s=1+7*(t-1)+(7+n-r)%7+Ie(e,r,i);return s<=0?o=je(a=e-1)+s:s>je(e)?(a=e+1,o=s-je(e)):(a=e,o=s),{year:a,dayOfYear:o}}function Fe(e,t,n){var r,i,a=Ie(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?r=o+Re(i=e.year()-1,t,n):o>Re(e.year(),t,n)?(r=o-Re(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function Re(e,t,n){var r=Ie(e,t,n),i=Ie(e+1,t,n);return(je(e)-r+i)/7}function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),H("week","w"),H("isoWeek","W"),B("week",5),B("isoWeek",5),pe("w",re),pe("ww",re,Z),pe("W",re),pe("WW",re,Z),be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=$(e)})),I("d",0,"do","day"),I("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),I("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),I("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),H("day","d"),H("weekday","e"),H("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),pe("d",re),pe("e",re),pe("E",re),pe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),pe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),pe("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:m(n).invalidWeekday=e})),be(["d","e","E"],(function(e,t,n,r){t[r]=$(e)}));var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),We="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Be=he,qe=he,Ve=he;function $e(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=ye.call(this._weekdaysParse,o))?i:null:"ddd"===t?-1!==(i=ye.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=ye.call(this._minWeekdaysParse,o))?i:null:"dddd"===t?-1!==(i=ye.call(this._weekdaysParse,o))||-1!==(i=ye.call(this._shortWeekdaysParse,o))||-1!==(i=ye.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=ye.call(this._shortWeekdaysParse,o))||-1!==(i=ye.call(this._weekdaysParse,o))||-1!==(i=ye.call(this._minWeekdaysParse,o))?i:null:-1!==(i=ye.call(this._minWeekdaysParse,o))||-1!==(i=ye.call(this._weekdaysParse,o))||-1!==(i=ye.call(this._shortWeekdaysParse,o))?i:null}function Ge(){function e(e,t){return t.length-e.length}var t,n,r,i,a,o=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=_e(this.weekdaysMin(n,"")),i=_e(this.weekdaysShort(n,"")),a=_e(this.weekdays(n,"")),o.push(r),s.push(i),u.push(a),l.push(r),l.push(i),l.push(a);o.sort(e),s.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Qe(){return this.hours()%12||12}function Je(e,t){I(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ke(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Qe),I("k",["kk",2],0,(function(){return this.hours()||24})),I("hmm",0,0,(function(){return""+Qe.apply(this)+O(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+Qe.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+O(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)})),Je("a",!0),Je("A",!1),H("hour","h"),B("hour",13),pe("a",Ke),pe("A",Ke),pe("H",re),pe("h",re),pe("k",re),pe("HH",re,Z),pe("hh",re,Z),pe("kk",re,Z),pe("hmm",ie),pe("hmmss",ae),pe("Hmm",ie),pe("Hmmss",ae),ge(["H","HH"],3),ge(["k","kk"],(function(e,t,n){var r=$(e);t[3]=24===r?0:r})),ge(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ge(["h","hh"],(function(e,t,n){t[3]=$(e),m(n).bigHour=!0})),ge("hmm",(function(e,t,n){var r=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r)),m(n).bigHour=!0})),ge("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r,2)),t[5]=$(e.substr(i)),m(n).bigHour=!0})),ge("Hmm",(function(e,t,n){var r=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r))})),ge("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r,2)),t[5]=$(e.substr(i))}));var Xe,Ze=G("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ke,monthsShort:Le,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:We,weekdaysShort:ze,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function it(e){return e?e.toLowerCase().replace("_","-"):e}function at(t){var r=null;if(void 0===tt[t]&&void 0!==e&&e&&e.exports&&function(e){return null!=e.match("^[^/\\\\]*$")}(t))try{r=Xe._abbr,n(238)("./"+t),ot(r)}catch(e){tt[t]=null}return tt[t]}function ot(e,t){var n;return e&&((n=l(t)?ut(e):st(e,t))?Xe=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Xe._abbr}function st(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])r=tt[t.parentLocale]._config;else{if(null==(n=at(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return tt[e]=new x(Y(r,t)),nt[e]&&nt[e].forEach((function(e){st(e.name,e.config)})),ot(e),tt[e]}return delete tt[e],null}function ut(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Xe;if(!a(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,n,r,i,a=0;a<e.length;){for(t=(i=it(e[a]).split("-")).length,n=(n=it(e[a+1]))?n.split("-"):null;t>0;){if(r=at(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&rt(i,n)>=t-1)break;t--}a++}return Xe}(e)}function lt(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>we(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,m(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),m(e)._overflowWeeks&&-1===t&&(t=7),m(e)._overflowWeekday&&-1===t&&(t=8),m(e).overflow=t),e}var ct=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,ht=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],mt=/^\/?Date\((-?\d+)/i,_t=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function vt(e){var t,n,r,i,a,o,s=e._i,u=ct.exec(s)||dt.exec(s),l=ht.length,c=pt.length;if(u){for(m(e).iso=!0,t=0,n=l;t<n;t++)if(ht[t][1].exec(u[1])){i=ht[t][0],r=!1!==ht[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=c;t<n;t++)if(pt[t][1].exec(u[3])){a=(u[2]||" ")+pt[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(u[4]){if(!ft.exec(u[4]))return void(e._isValid=!1);o="Z"}e._f=i+(a||"")+(o||""),kt(e)}else e._isValid=!1}function gt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function bt(e){var t,n,r,i,a,o,s,u,l=_t.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){if(n=l[4],r=l[3],i=l[2],a=l[5],o=l[6],s=l[7],u=[gt(n),Le.indexOf(r),parseInt(i,10),parseInt(a,10),parseInt(o,10)],s&&u.push(parseInt(s,10)),t=u,!function(e,t,n){return!e||ze.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}(l[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return yt[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(l[8],l[9],l[10]),e._d=Ae.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function Mt(e,t,n){return null!=e?e:null!=t?t:n}function wt(e){var t,n,r,a,o,s=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,i,a,o,s,u,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,o=4,n=Mt(t.GG,e._a[0],Fe(Dt(),1,4).year),r=Mt(t.W,1),((i=Mt(t.E,1))<1||i>7)&&(u=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,l=Fe(Dt(),a,o),n=Mt(t.gg,e._a[0],l.year),r=Mt(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(u=!0)):i=a),r<1||r>Re(n,a,o)?m(e)._overflowWeeks=!0:null!=u?m(e)._overflowWeekday=!0:(s=Ne(n,r,i,a,o),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=Mt(e._a[0],r[0]),(e._dayOfYear>je(o)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Ae(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ae:Ce).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(m(e).weekdayMismatch=!0)}}function kt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],m(e).empty=!0;var t,n,r,a,o,s,u,l=""+e._i,c=l.length,d=0;for(u=(r=F(e._f,e._locale).match(j)||[]).length,t=0;t<u;t++)a=r[t],(n=(l.match(me(a,e))||[])[0])&&((o=l.substr(0,l.indexOf(n))).length>0&&m(e).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),d+=n.length),A[a]?(n?m(e).empty=!1:m(e).unusedTokens.push(a),Me(a,n,e)):e._strict&&!n&&m(e).unusedTokens.push(a);m(e).charsLeftOver=c-d,l.length>0&&m(e).unusedInput.push(l),e._a[3]<=12&&!0===m(e).bigHour&&e._a[3]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=m(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),wt(e),lt(e)}else bt(e);else vt(e)}function Lt(e){var t=e._i,n=e._f;return e._locale=e._locale||ut(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new M(lt(t)):(d(t)?e._d=t:a(n)?function(e){var t,n,r,i,a,o,s=!1,u=e._f.length;if(0===u)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)a=0,o=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],kt(t),_(t)&&(o=!0),a+=m(t).charsLeftOver,a+=10*m(t).unusedTokens.length,m(t).score=a,s?a<r&&(r=a,n=t):(null==r||a<r||o)&&(r=a,n=t,o&&(s=!0));h(e,n||t)}(e):n?kt(e):function(e){var t=e._i;l(t)?e._d=new Date(i.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=mt.exec(e._i);null===t?(vt(e),!1===e._isValid&&(delete e._isValid,bt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):a(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),wt(e)):o(t)?function(e){if(!e._d){var t=z(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),wt(e)}}(e):c(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),_(e)||(e._d=null),e))}function Tt(e,t,n,r,i){var s,l={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&u(e)||a(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=n,l._i=e,l._f=t,l._strict=r,(s=new M(lt(Lt(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Dt(e,t,n,r){return Tt(e,t,n,r,!1)}i.createFromInputFallback=L("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var St=L("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Et=L("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Yt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var xt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ot(e){var t=z(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,u=t.hour||0,l=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,r=!1,i=xt.length;for(t in e)if(s(e,t)&&(-1===ye.call(xt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[xt[n]]){if(r)return!1;parseFloat(e[xt[n]])!==$(e[xt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*l+1e3*u*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=ut(),this._bubble()}function jt(e){return e instanceof Ot}function Pt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ct(e,t){I(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+O(~~(e/60),2)+t+O(~~e%60,2)}))}Ct("Z",":"),Ct("ZZ",""),pe("Z",fe),pe("ZZ",fe),ge(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=It(fe,e)}));var At=/([\+\-]|\d\d)/gi;function It(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(At)||["-",0,0])[1]+$(n[2]))?0:"+"===n[0]?r:-r}function Nt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||d(e)?e.valueOf():Dt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Dt(e).local()}function Ft(e){return-Math.round(e._d.getTimezoneOffset())}function Rt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Ht=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ut=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function zt(e,t){var n,r,i,a,o,u,l=e,d=null;return jt(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(l={},t?l[t]=+e:l.milliseconds=+e):(d=Ht.exec(e))?(n="-"===d[1]?-1:1,l={y:0,d:$(d[2])*n,h:$(d[3])*n,m:$(d[4])*n,s:$(d[5])*n,ms:$(Pt(1e3*d[6]))*n}):(d=Ut.exec(e))?(n="-"===d[1]?-1:1,l={y:Wt(d[2],n),M:Wt(d[3],n),w:Wt(d[4],n),d:Wt(d[5],n),h:Wt(d[6],n),m:Wt(d[7],n),s:Wt(d[8],n)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(a=Dt(l.from),o=Dt(l.to),i=a.isValid()&&o.isValid()?(o=Nt(o,a),a.isBefore(o)?u=Bt(a,o):((u=Bt(o,a)).milliseconds=-u.milliseconds,u.months=-u.months),u):{milliseconds:0,months:0},(l={}).ms=i.milliseconds,l.M=i.months),r=new Ot(l),jt(e)&&s(e,"_locale")&&(r._locale=e._locale),jt(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Wt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Bt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function qt(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(S(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Vt(this,zt(n,r),e),this}}function Vt(e,t,n,r){var a=t._milliseconds,o=Pt(t._days),s=Pt(t._months);e.isValid()&&(r=null==r||r,s&&Ye(e,Q(e,"Month")+s*n),o&&J(e,"Date",Q(e,"Date")+o*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&i.updateOffset(e,o||s))}zt.fn=Ot.prototype,zt.invalid=function(){return zt(NaN)};var $t=qt(1,"add"),Gt=qt(-1,"subtract");function Qt(e){return"string"==typeof e||e instanceof String}function Jt(e){return w(e)||d(e)||Qt(e)||c(e)||function(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&Qt(e)})).length),t&&n}(e)||function(e){var t,n,r=o(e)&&!u(e),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=a.length;for(t=0;t<l;t+=1)n=a[t],i=i||s(e,n);return r&&i}(e)||null==e}function Kt(e){var t,n=o(e)&&!u(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)r=r||s(e,i[t]);return n&&r}function Xt(e,t){if(e.date()<t.date())return-Xt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Zt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ut(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var en=L("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function tn(){return this._locale}function nn(e,t){return(e%t+t)%t}function rn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function an(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function sn(){var e,t,n=[],r=[],i=[],a=[],o=this.eras();for(e=0,t=o.length;e<t;++e)r.push(_e(o[e].name)),n.push(_e(o[e].abbr)),i.push(_e(o[e].narrow)),a.push(_e(o[e].name)),a.push(_e(o[e].abbr)),a.push(_e(o[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function un(e,t){I(0,[e,e.length],0,t)}function ln(e,t,n,r,i){var a;return null==e?Fe(this,r,i).year:(t>(a=Re(e,r,i))&&(t=a),cn.call(this,e,t,n,r,i))}function cn(e,t,n,r,i){var a=Ne(e,t,n,r,i),o=Ae(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),pe("N",on),pe("NN",on),pe("NNN",on),pe("NNNN",(function(e,t){return t.erasNameRegex(e)})),pe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ge(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?m(n).era=i:m(n).invalidEra=e})),pe("y",le),pe("yy",le),pe("yyy",le),pe("yyyy",le),pe("yo",(function(e,t){return t._eraYearOrdinalRegex||le})),ge(["y","yy","yyy","yyyy"],0),ge(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),un("gggg","weekYear"),un("ggggg","weekYear"),un("GGGG","isoWeekYear"),un("GGGGG","isoWeekYear"),H("weekYear","gg"),H("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),pe("G",ce),pe("g",ce),pe("GG",re,Z),pe("gg",re,Z),pe("GGGG",se,te),pe("gggg",se,te),pe("GGGGG",ue,ne),pe("ggggg",ue,ne),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=$(e)})),be(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),I("Q",0,"Qo","quarter"),H("quarter","Q"),B("quarter",7),pe("Q",X),ge("Q",(function(e,t){t[1]=3*($(e)-1)})),I("D",["DD",2],"Do","date"),H("date","D"),B("date",9),pe("D",re),pe("DD",re,Z),pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ge(["D","DD"],2),ge("Do",(function(e,t){t[2]=$(e.match(re)[0])}));var dn=G("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),H("dayOfYear","DDD"),B("dayOfYear",4),pe("DDD",oe),pe("DDDD",ee),ge(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=$(e)})),I("m",["mm",2],0,"minute"),H("minute","m"),B("minute",14),pe("m",re),pe("mm",re,Z),ge(["m","mm"],4);var fn=G("Minutes",!1);I("s",["ss",2],0,"second"),H("second","s"),B("second",15),pe("s",re),pe("ss",re,Z),ge(["s","ss"],5);var hn,pn,mn=G("Seconds",!1);for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),H("millisecond","ms"),B("millisecond",16),pe("S",oe,X),pe("SS",oe,Z),pe("SSS",oe,ee),hn="SSSS";hn.length<=9;hn+="S")pe(hn,le);function _n(e,t){t[6]=$(1e3*("0."+e))}for(hn="S";hn.length<=9;hn+="S")ge(hn,_n);pn=G("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var yn=M.prototype;function vn(e){return e}yn.add=$t,yn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Jt(arguments[0])?(e=arguments[0],t=void 0):Kt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Dt(),r=Nt(n,this).startOf("day"),a=i.calendarFormat(this,r)||"sameElse",o=t&&(E(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,Dt(n)))},yn.clone=function(){return new M(this)},yn.diff=function(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=Nt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=U(t)){case"year":a=Xt(this,r)/12;break;case"month":a=Xt(this,r);break;case"quarter":a=Xt(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:V(a)},yn.endOf=function(e){var t,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:rn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},yn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=N(this,e);return this.localeData().postformat(t)},yn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.fromNow=function(e){return this.from(Dt(),e)},yn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.toNow=function(e){return this.to(Dt(),e)},yn.get=function(e){return E(this[e=U(e)])?this[e]():this},yn.invalidAt=function(){return m(this).overflow},yn.isAfter=function(e,t){var n=w(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},yn.isBefore=function(e,t){var n=w(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},yn.isBetween=function(e,t,n,r){var i=w(e)?e:Dt(e),a=w(t)?t:Dt(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n)))},yn.isSame=function(e,t){var n,r=w(e)?e:Dt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},yn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},yn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},yn.isValid=function(){return _(this)},yn.lang=en,yn.locale=Zt,yn.localeData=tn,yn.max=Et,yn.min=St,yn.parsingFlags=function(){return h({},m(this))},yn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:W[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=z(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(E(this[e=U(e)]))return this[e](t);return this},yn.startOf=function(e){var t,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:rn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=nn(t,6e4);break;case"second":t=this._d.valueOf(),t-=nn(t,1e3)}return this._d.setTime(t),i.updateOffset(this,!0),this},yn.subtract=Gt,yn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},yn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},yn.toDate=function(){return new Date(this.valueOf())},yn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?N(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(n,"Z")):N(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},yn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",i="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(yn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),yn.toJSON=function(){return this.isValid()?this.toISOString():null},yn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},yn.unix=function(){return Math.floor(this.valueOf()/1e3)},yn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},yn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},yn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},yn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},yn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},yn.eraYear=function(){var e,t,n,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-i(a[e].since).year())*n+a[e].offset;return this.year()},yn.year=Pe,yn.isLeapYear=function(){return q(this.year())},yn.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},yn.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},yn.quarter=yn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},yn.month=xe,yn.daysInMonth=function(){return we(this.year(),this.month())},yn.week=yn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},yn.isoWeek=yn.isoWeeks=function(e){var t=Fe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},yn.weeksInYear=function(){var e=this.localeData()._week;return Re(this.year(),e.dow,e.doy)},yn.weeksInWeekYear=function(){var e=this.localeData()._week;return Re(this.weekYear(),e.dow,e.doy)},yn.isoWeeksInYear=function(){return Re(this.year(),1,4)},yn.isoWeeksInISOWeekYear=function(){return Re(this.isoWeekYear(),1,4)},yn.date=dn,yn.day=yn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},yn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},yn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},yn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},yn.hour=yn.hours=Ze,yn.minute=yn.minutes=fn,yn.second=yn.seconds=mn,yn.millisecond=yn.milliseconds=pn,yn.utcOffset=function(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=It(fe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Ft(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?Vt(this,zt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Ft(this)},yn.utc=function(e){return this.utcOffset(0,e)},yn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ft(this),"m")),this},yn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=It(de,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},yn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Dt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},yn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},yn.isLocal=function(){return!!this.isValid()&&!this._isUTC},yn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},yn.isUtc=Rt,yn.isUTC=Rt,yn.zoneAbbr=function(){return this._isUTC?"UTC":""},yn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},yn.dates=L("dates accessor is deprecated. Use date instead.",dn),yn.months=L("months accessor is deprecated. Use month instead",xe),yn.years=L("years accessor is deprecated. Use year instead",Pe),yn.zone=L("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),yn.isDSTShifted=L("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Lt(t))._a?(e=t._isUTC?p(t._a):Dt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&$(e[r])!==$(t[r]))&&o++;return o+a}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var gn=x.prototype;function bn(e,t,n,r){var i=ut(),a=p().set(r,t);return i[n](a,e)}function Mn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return bn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=bn(e,r,n,"month");return i}function wn(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,a=ut(),o=e?a._week.dow:0,s=[];if(null!=n)return bn(t,(n+o)%7,r,"day");for(i=0;i<7;i++)s[i]=bn(t,(i+o)%7,r,"day");return s}gn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return E(r)?r.call(t,n):r},gn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(j).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},gn.invalidDate=function(){return this._invalidDate},gn.ordinal=function(e){return this._ordinal.replace("%d",e)},gn.preparse=vn,gn.postformat=vn,gn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return E(i)?i(e,t,n,r):i.replace(/%d/i,e)},gn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return E(n)?n(t):n.replace(/%s/i,t)},gn.set=function(e){var t,n;for(n in e)s(e,n)&&(E(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gn.eras=function(e,t){var n,r,a,o=this._eras||ut("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":a=i(o[n].since).startOf("day"),o[n].since=a.valueOf()}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":a=i(o[n].until).startOf("day").valueOf(),o[n].until=a.valueOf()}}return o},gn.erasParse=function(e,t,n){var r,i,a,o,s,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(a=u[r].name.toUpperCase(),o=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return u[r];break;case"NNNN":if(a===e)return u[r];break;case"NNNNN":if(s===e)return u[r]}else if([a,o,s].indexOf(e)>=0)return u[r]},gn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n},gn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},gn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},gn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},gn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Te).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},gn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Te.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gn.monthsParse=function(e,t,n){var r,i,a;if(this._monthsParseExact)return Ee.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},gn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Oe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Se),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},gn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Oe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=De),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},gn.week=function(e){return Fe(e,this._week.dow,this._week.doy).week},gn.firstDayOfYear=function(){return this._week.doy},gn.firstDayOfWeek=function(){return this._week.dow},gn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?He(n,this._week.dow):e?n[e.day()]:n},gn.weekdaysMin=function(e){return!0===e?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},gn.weekdaysShort=function(e){return!0===e?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},gn.weekdaysParse=function(e,t,n){var r,i,a;if(this._weekdaysParseExact)return $e.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},gn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Be),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},gn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ve),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},gn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===$(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=L("moment.lang is deprecated. Use moment.locale instead.",ot),i.langData=L("moment.langData is deprecated. Use moment.localeData instead.",ut);var kn=Math.abs;function Ln(e,t,n,r){var i=zt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Tn(e){return e<0?Math.floor(e):Math.ceil(e)}function Dn(e){return 4800*e/146097}function Sn(e){return 146097*e/4800}function En(e){return function(){return this.as(e)}}var Yn=En("ms"),xn=En("s"),On=En("m"),jn=En("h"),Pn=En("d"),Cn=En("w"),An=En("M"),In=En("Q"),Nn=En("y");function Fn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Rn=Fn("milliseconds"),Hn=Fn("seconds"),Un=Fn("minutes"),zn=Fn("hours"),Wn=Fn("days"),Bn=Fn("months"),qn=Fn("years"),Vn=Math.round,$n={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Gn(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var Qn=Math.abs;function Jn(e){return(e>0)-(e<0)||+e}function Kn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,a,o,s,u=Qn(this._milliseconds)/1e3,l=Qn(this._days),c=Qn(this._months),d=this.asSeconds();return d?(e=V(u/60),t=V(e/60),u%=60,e%=60,n=V(c/12),c%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",a=Jn(this._months)!==Jn(d)?"-":"",o=Jn(this._days)!==Jn(d)?"-":"",s=Jn(this._milliseconds)!==Jn(d)?"-":"",i+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(l?o+l+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var Xn=Ot.prototype;return Xn.isValid=function(){return this._isValid},Xn.abs=function(){var e=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),e.milliseconds=kn(e.milliseconds),e.seconds=kn(e.seconds),e.minutes=kn(e.minutes),e.hours=kn(e.hours),e.months=kn(e.months),e.years=kn(e.years),this},Xn.add=function(e,t){return Ln(this,e,t,1)},Xn.subtract=function(e,t){return Ln(this,e,t,-1)},Xn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=U(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Dn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Sn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Xn.asMilliseconds=Yn,Xn.asSeconds=xn,Xn.asMinutes=On,Xn.asHours=jn,Xn.asDays=Pn,Xn.asWeeks=Cn,Xn.asMonths=An,Xn.asQuarters=In,Xn.asYears=Nn,Xn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*$(this._months/12):NaN},Xn._bubble=function(){var e,t,n,r,i,a=this._milliseconds,o=this._days,s=this._months,u=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Tn(Sn(s)+o),o=0,s=0),u.milliseconds=a%1e3,e=V(a/1e3),u.seconds=e%60,t=V(e/60),u.minutes=t%60,n=V(t/60),u.hours=n%24,o+=V(n/24),i=V(Dn(o)),s+=i,o-=Tn(Sn(i)),r=V(s/12),s%=12,u.days=o,u.months=s,u.years=r,this},Xn.clone=function(){return zt(this)},Xn.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():NaN},Xn.milliseconds=Rn,Xn.seconds=Hn,Xn.minutes=Un,Xn.hours=zn,Xn.days=Wn,Xn.weeks=function(){return V(this.days()/7)},Xn.months=Bn,Xn.years=qn,Xn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=$n;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(a=Object.assign({},$n,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var i=zt(e).abs(),a=Vn(i.as("s")),o=Vn(i.as("m")),s=Vn(i.as("h")),u=Vn(i.as("d")),l=Vn(i.as("M")),c=Vn(i.as("w")),d=Vn(i.as("y")),f=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||l<=1&&["M"]||l<n.M&&["MM",l]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=r,Gn.apply(null,f)}(this,!i,a,n),i&&(r=n.pastFuture(+this,r)),n.postformat(r)},Xn.toISOString=Kn,Xn.toString=Kn,Xn.toJSON=Kn,Xn.locale=Zt,Xn.localeData=tn,Xn.toIsoString=L("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Kn),Xn.lang=en,I("X",0,0,"unix"),I("x",0,0,"valueOf"),pe("x",ce),pe("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ge("x",(function(e,t,n){n._d=new Date($(e))})),i.version="2.29.4",t=Dt,i.fn=yn,i.min=function(){var e=[].slice.call(arguments,0);return Yt("isBefore",e)},i.max=function(){var e=[].slice.call(arguments,0);return Yt("isAfter",e)},i.now=function(){return Date.now?Date.now():+new Date},i.utc=p,i.unix=function(e){return Dt(1e3*e)},i.months=function(e,t){return Mn(e,t,"months")},i.isDate=d,i.locale=ot,i.invalid=y,i.duration=zt,i.isMoment=w,i.weekdays=function(e,t,n){return wn(e,t,n,"weekdays")},i.parseZone=function(){return Dt.apply(null,arguments).parseZone()},i.localeData=ut,i.isDuration=jt,i.monthsShort=function(e,t){return Mn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return wn(e,t,n,"weekdaysMin")},i.defineLocale=st,i.updateLocale=function(e,t){if(null!=t){var n,r,i=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(Y(tt[e]._config,t)):(null!=(r=at(e))&&(i=r._config),t=Y(i,t),null==r&&(t.abbr=e),(n=new x(t)).parentLocale=tt[e],tt[e]=n),ot(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===ot()&&ot(e)):null!=tt[e]&&delete tt[e]);return tt[e]},i.locales=function(){return T(tt)},i.weekdaysShort=function(e,t,n){return wn(e,t,n,"weekdaysShort")},i.normalizeUnits=U,i.relativeTimeRounding=function(e){return void 0===e?Vn:"function"==typeof e&&(Vn=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==$n[e]&&(void 0===t?$n[e]:($n[e]=t,"s"===e&&($n.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=yn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(237)(e))},function(e,t,n){"use strict";e.exports=n(231)},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"ServerStyleSheet",(function(){return He})),n.d(t,"StyleSheetConsumer",(function(){return ie})),n.d(t,"StyleSheetContext",(function(){return re})),n.d(t,"StyleSheetManager",(function(){return ce})),n.d(t,"ThemeConsumer",(function(){return je})),n.d(t,"ThemeContext",(function(){return Oe})),n.d(t,"ThemeProvider",(function(){return Pe})),n.d(t,"__PRIVATE__",(function(){return We})),n.d(t,"createGlobalStyle",(function(){return Fe})),n.d(t,"css",(function(){return be})),n.d(t,"isStyledComponent",(function(){return b})),n.d(t,"keyframes",(function(){return Re})),n.d(t,"useTheme",(function(){return ze})),n.d(t,"version",(function(){return w})),n.d(t,"withTheme",(function(){return Ue}));var r=n(53),i=n(1),a=n.n(i),o=n(222),s=n.n(o),u=n(223),l=n(224),c=n(80),d=n(77),f=n.n(d);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},m=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},_=Object.freeze([]),y=Object.freeze({});function v(e){return"function"==typeof e}function g(e){return e.displayName||e.name||"Component"}function b(e){return e&&"string"==typeof e.styledComponentId}var M=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",w="5.3.5",k="undefined"!=typeof window&&"HTMLElement"in window,L=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==e.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&e.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.SC_DISABLE_SPEEDY&&""!==e.env.SC_DISABLE_SPEEDY&&("false"!==e.env.SC_DISABLE_SPEEDY&&e.env.SC_DISABLE_SPEEDY)),T={};function D(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var S=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&D(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=r;a<i;a++)this.groupSizes[a]=0}for(var o=this.indexOfGroup(e+1),s=0,u=t.length;s<u;s++)this.tag.insertRule(o,t[s])&&(this.groupSizes[e]++,o++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,a=r;a<i;a++)t+=this.tag.getRule(a)+"/*!sc*/\n";return t},e}(),E=new Map,Y=new Map,x=1,O=function(e){if(E.has(e))return E.get(e);for(;Y.has(x);)x++;var t=x++;return E.set(e,t),Y.set(t,e),t},j=function(e){return Y.get(e)},P=function(e,t){t>=x&&(x=t+1),E.set(e,t),Y.set(t,e)},C="style["+M+'][data-styled-version="5.3.5"]',A=new RegExp("^"+M+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),I=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a<o;a++)(r=i[a])&&e.registerName(t,r)},N=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],i=0,a=n.length;i<a;i++){var o=n[i].trim();if(o){var s=o.match(A);if(s){var u=0|parseInt(s[1],10),l=s[2];0!==u&&(P(l,u),I(e,l,s[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(o)}}},F=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},R=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(M))return r}}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(M,"active"),r.setAttribute("data-styled-version","5.3.5");var o=F();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},H=function(){function e(e){var t=this.element=R(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}D(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),U=function(){function e(e){var t=this.element=R(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),z=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),W=k,B={isServer:!k,useCSSOMInjection:!L},q=function(){function e(e,t,n){void 0===e&&(e=y),void 0===t&&(t={}),this.options=h({},B,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&k&&W&&(W=!1,function(e){for(var t=document.querySelectorAll(C),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(M)&&(N(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return O(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(h({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new z(i):r?new H(i):new U(i),new S(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(O(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(O(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(O(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var a=j(i);if(void 0!==a){var o=e.names.get(a),s=t.getGroup(i);if(o&&s&&o.size){var u=M+".g"+i+'[id="'+a+'"]',l="";void 0!==o&&o.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+s+u+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),V=/(a)(d)/gi,$=function(e){return String.fromCharCode(e+(e>25?39:97))};function G(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=$(t%52)+n;return($(t%52)+n).replace(V,"$1-$2")}var Q=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},J=function(e){return Q(5381,e)};function K(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(v(n)&&!b(n))return!1}return!0}var X=J("5.3.5"),Z=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&K(e),this.componentId=t,this.baseHash=Q(X,t),this.baseStyle=n,q.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var a=ve(this.rules,e,t,n).join(""),o=G(Q(this.baseHash,a)>>>0);if(!t.hasNameForId(r,o)){var s=n(a,"."+o,void 0,r);t.insertRules(r,o,s)}i.push(o),this.staticRulesId=o}else{for(var u=this.rules.length,l=Q(this.baseHash,n.hash),c="",d=0;d<u;d++){var f=this.rules[d];if("string"==typeof f)c+=f;else if(f){var h=ve(f,e,t,n),p=Array.isArray(h)?h.join(""):h;l=Q(l,p+d),c+=p}}if(c){var m=G(l>>>0);if(!t.hasNameForId(r,m)){var _=n(c,"."+m,void 0,r);t.insertRules(r,m,_)}i.push(m)}}return i.join(" ")},e}(),ee=/^\s*\/\/.*$/gm,te=[":","[",".","#"];function ne(e){var t,n,r,i,a=void 0===e?y:e,o=a.options,s=void 0===o?y:o,l=a.plugins,c=void 0===l?_:l,d=new u.a(s),f=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,a,o,s,u,l,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(i[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,r,a){return 0===r&&-1!==te.indexOf(a[n.length])||a.match(i)?e:"."+t};function m(e,a,o,s){void 0===s&&(s="&");var u=e.replace(ee,""),l=a&&o?o+" "+a+" { "+u+" }":u;return t=s,n=a,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),d(o||!a?"":a,l)}return d.use([].concat(c,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,p))},h,function(e){if(-2===e){var t=f;return f=[],t}}])),m.hash=c.length?c.reduce((function(e,t){return t.name||D(15),Q(e,t.name)}),5381).toString():"",m}var re=a.a.createContext(),ie=re.Consumer,ae=a.a.createContext(),oe=(ae.Consumer,new q),se=ne();function ue(){return Object(i.useContext)(re)||oe}function le(){return Object(i.useContext)(ae)||se}function ce(e){var t=Object(i.useState)(e.stylisPlugins),n=t[0],r=t[1],o=ue(),u=Object(i.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),l=Object(i.useMemo)((function(){return ne({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(i.useEffect)((function(){s()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),a.a.createElement(re.Provider,{value:u},a.a.createElement(ae.Provider,{value:l},e.children))}var de=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=se);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return D(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=se),this.name+e.hash},e}(),fe=/([A-Z])/,he=/([A-Z])/g,pe=/^ms-/,me=function(e){return"-"+e.toLowerCase()};function _e(e){return fe.test(e)?e.replace(he,me).replace(pe,"-ms-"):e}var ye=function(e){return null==e||!1===e||""===e};function ve(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o<s;o+=1)""!==(i=ve(e[o],t,n,r))&&(Array.isArray(i)?a.push.apply(a,i):a.push(i));return a}return ye(e)?"":b(e)?"."+e.styledComponentId:v(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:ve(e(t),t,n,r):e instanceof de?n?(e.inject(n,r),e.getName(r)):e:m(e)?function e(t,n){var r,i,a=[];for(var o in t)t.hasOwnProperty(o)&&!ye(t[o])&&(Array.isArray(t[o])&&t[o].isCss||v(t[o])?a.push(_e(o)+":",t[o],";"):m(t[o])?a.push.apply(a,e(t[o],o)):a.push(_e(o)+": "+(r=o,(null==(i=t[o])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in l.a?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(a,["}"]):a}(e):e.toString();var u}var ge=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return v(e)||m(e)?ge(ve(p(_,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ge(ve(p(e,n)))}new Set;var Me=function(e,t,n){return void 0===n&&(n=y),e.theme!==n.theme&&e.theme||t||n.theme},we=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ke=/(^-|-$)/g;function Le(e){return e.replace(we,"-").replace(ke,"")}var Te=function(e){return G(J(e)>>>0)};function De(e){return"string"==typeof e&&!0}var Se=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ee=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ye(e,t,n){var r=e[n];Se(t)&&Se(r)?xe(r,t):e[n]=t}function xe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];if(Se(o))for(var s in o)Ee(s)&&Ye(e,o[s],s)}return e}var Oe=a.a.createContext(),je=Oe.Consumer;function Pe(e){var t=Object(i.useContext)(Oe),n=Object(i.useMemo)((function(){return function(e,t){return e?v(e)?e(t):Array.isArray(e)||"object"!=typeof e?D(8):t?h({},t,{},e):e:D(14)}(e.theme,t)}),[e.theme,t]);return e.children?a.a.createElement(Oe.Provider,{value:n},e.children):null}var Ce={};function Ae(e,t,n){var r=b(e),o=!De(e),s=t.attrs,u=void 0===s?_:s,l=t.componentId,d=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Le(e);Ce[n]=(Ce[n]||0)+1;var r=n+"-"+Te("5.3.5"+n+Ce[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,p=t.displayName,m=void 0===p?function(e){return De(e)?"styled."+e:"Styled("+g(e)+")"}(e):p,M=t.displayName&&t.componentId?Le(t.displayName)+"-"+t.componentId:t.componentId||d,w=r&&e.attrs?Array.prototype.concat(e.attrs,u).filter(Boolean):u,k=t.shouldForwardProp;r&&e.shouldForwardProp&&(k=t.shouldForwardProp?function(n,r,i){return e.shouldForwardProp(n,r,i)&&t.shouldForwardProp(n,r,i)}:e.shouldForwardProp);var L,T=new Z(n,M,r?e.componentStyle:void 0),D=T.isStatic&&0===u.length,S=function(e,t){return function(e,t,n,r){var a=e.attrs,o=e.componentStyle,s=e.defaultProps,u=e.foldedComponentIds,l=e.shouldForwardProp,d=e.styledComponentId,f=e.target,p=function(e,t,n){void 0===e&&(e=y);var r=h({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,a,o=e;for(t in v(o)&&(o=o(r)),o)r[t]=i[t]="className"===t?(n=i[t],a=o[t],n&&a?n+" "+a:n||a):o[t]})),[r,i]}(Me(t,Object(i.useContext)(Oe),s)||y,t,a),m=p[0],_=p[1],g=function(e,t,n,r){var i=ue(),a=le();return t?e.generateAndInjectStyles(y,i,a):e.generateAndInjectStyles(n,i,a)}(o,r,m),b=n,M=_.$as||t.$as||_.as||t.as||f,w=De(M),k=_!==t?h({},t,{},_):t,L={};for(var T in k)"$"!==T[0]&&"as"!==T&&("forwardedAs"===T?L.as=k[T]:(l?l(T,c.a,M):!w||Object(c.a)(T))&&(L[T]=k[T]));return t.style&&_.style!==t.style&&(L.style=h({},t.style,{},_.style)),L.className=Array.prototype.concat(u,d,g!==d?g:null,t.className,_.className).filter(Boolean).join(" "),L.ref=b,Object(i.createElement)(M,L)}(L,e,t,D)};return S.displayName=m,(L=a.a.forwardRef(S)).attrs=w,L.componentStyle=T,L.displayName=m,L.shouldForwardProp=k,L.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):_,L.styledComponentId=M,L.target=r?e.target:e,L.withComponent=function(e){var r=t.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["componentId"]),a=r&&r+"-"+(De(e)?e:Le(g(e)));return Ae(e,h({},i,{attrs:w,componentId:a}),n)},Object.defineProperty(L,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?xe({},e.defaultProps,t):t}}),L.toString=function(){return"."+L.styledComponentId},o&&f()(L,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),L}var Ie=function(e){return function e(t,n,i){if(void 0===i&&(i=y),!Object(r.isValidElementType)(n))return D(1,String(n));var a=function(){return t(n,i,be.apply(void 0,arguments))};return a.withConfig=function(r){return e(t,n,h({},i,{},r))},a.attrs=function(r){return e(t,n,h({},i,{attrs:Array.prototype.concat(i.attrs,r).filter(Boolean)}))},a}(Ae,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ie[e]=Ie(e)}));var Ne=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=K(e),q.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(ve(this.rules,t,n,r).join(""),""),a=this.componentId+e;n.insertRules(a,a,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&q.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Fe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=be.apply(void 0,[e].concat(n)),s="sc-global-"+Te(JSON.stringify(o)),u=new Ne(o,s);function l(e){var t=ue(),n=le(),r=Object(i.useContext)(Oe),a=Object(i.useRef)(t.allocateGSInstance(s)).current;return t.server&&c(a,e,t,r,n),Object(i.useLayoutEffect)((function(){if(!t.server)return c(a,e,t,r,n),function(){return u.removeStyles(a,t)}}),[a,e,t,r,n]),null}function c(e,t,n,r,i){if(u.isStatic)u.renderStyles(e,T,n,i);else{var a=h({},t,{theme:Me(t,r,l.defaultProps)});u.renderStyles(e,a,n,i)}}return a.a.memo(l)}function Re(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=be.apply(void 0,[e].concat(n)).join(""),a=Te(i);return new de(a,i)}var He=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=F();return"<style "+[n&&'nonce="'+n+'"',M+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?D(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return D(2);var n=((t={})[M]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=F();return r&&(n.nonce=r),[a.a.createElement("style",h({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new q({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?D(2):a.a.createElement(ce,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return D(3)},e}(),Ue=function(e){var t=a.a.forwardRef((function(t,n){var r=Object(i.useContext)(Oe),o=e.defaultProps,s=Me(t,r,o);return a.a.createElement(e,h({},t,{theme:s,ref:n}))}));return f()(t,e),t.displayName="WithTheme("+g(e)+")",t},ze=function(){return Object(i.useContext)(Oe)},We={StyleSheet:q,masterSheet:oe};t.default=Ie}.call(this,n(82))},function(e,t,n){"use strict";var r=Array.isArray;t.a=r},function(e,t,n){(function(t){self,e.exports=(()=>{var e={2991:(e,t,n)=>{"use strict";n.d(t,{R:()=>a,Y:()=>o});var r=n(2176),i={};function a(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function o(e,t,n){var r=n||a(),i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},2176:(e,n,r)=>{"use strict";function i(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==t?t:0)}function a(e,t){return e.require(t)}r.d(n,{l$:()=>a,KV:()=>i}),e=r.hmd(e)},1170:(e,t,n)=>{"use strict";n.d(t,{yW:()=>u,ph:()=>l});var r=n(2991),i=n(2176);e=n.hmd(e);var a={nowSeconds:()=>Date.now()/1e3},o=(0,i.KV)()?function(){try{return(0,i.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){const{performance:e}=(0,r.R)();if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),s=void 0===o?a:{nowSeconds:()=>(o.timeOrigin+o.now())/1e3},u=a.nowSeconds.bind(a),l=s.nowSeconds.bind(s);let c;(()=>{const{performance:e}=(0,r.R)();if(e&&e.now){var t=36e5,n=e.now(),i=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,o=a<t,s=e.timing&&e.timing.navigationStart,u="number"==typeof s?Math.abs(s+n-i):t;return o||u<t?a<=u?(c="timeOrigin",e.timeOrigin):(c="navigationStart",s):(c="dateNow",i)}c="none"})()},4098:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in e,o="ArrayBuffer"in e;if(o)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function _(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=_(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=_(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=p(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=l(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[l(e)]},f.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},f.prototype.set=function(e,t){this.map[l(e)]=c(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),d(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),d(e)},r&&(f.prototype[Symbol.iterator]=f.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(e,t){var n,r,i=(t=t||{}).body;if(e instanceof g){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),v.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function b(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function M(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},y.call(g.prototype),y.call(M.prototype),M.prototype.clone=function(){return new M(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},M.error=function(){var e=new M(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];M.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new M(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function k(e,n){return new Promise((function(r,a){var o=new g(e,n);if(o.signal&&o.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new M(i,n))},s.onerror=function(){a(new TypeError("Network request failed"))},s.ontimeout=function(){a(new TypeError("Network request failed"))},s.onabort=function(){a(new t.DOMException("Aborted","AbortError"))},s.open(o.method,o.url,!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),o.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",u)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}k.polyfill=!0,e.fetch||(e.fetch=k,e.Headers=f,e.Request=g,e.Response=M),t.Headers=f,t.Request=g,t.Response=M,t.fetch=k,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},8552:(e,t,n)=>{var r=n(852)(n(5639),"DataView");e.exports=r},1989:(e,t,n)=>{var r=n(1789),i=n(401),a=n(7667),o=n(1327),s=n(1866);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,e.exports=u},8407:(e,t,n)=>{var r=n(7040),i=n(4125),a=n(2117),o=n(7529),s=n(4705);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,e.exports=u},7071:(e,t,n)=>{var r=n(852)(n(5639),"Map");e.exports=r},3369:(e,t,n)=>{var r=n(4785),i=n(1285),a=n(6e3),o=n(9916),s=n(5265);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,e.exports=u},3818:(e,t,n)=>{var r=n(852)(n(5639),"Promise");e.exports=r},8525:(e,t,n)=>{var r=n(852)(n(5639),"Set");e.exports=r},8668:(e,t,n)=>{var r=n(3369),i=n(619),a=n(2385);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=i,o.prototype.has=a,e.exports=o},6384:(e,t,n)=>{var r=n(8407),i=n(7465),a=n(3779),o=n(7599),s=n(4758),u=n(4309);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=s,l.prototype.set=u,e.exports=l},2705:(e,t,n)=>{var r=n(5639).Symbol;e.exports=r},1149:(e,t,n)=>{var r=n(5639).Uint8Array;e.exports=r},577:(e,t,n)=>{var r=n(852)(n(5639),"WeakMap");e.exports=r},6874:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},4963:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}},4636:(e,t,n)=>{var r=n(2545),i=n(1025),a=n(1469),o=n(4144),s=n(5776),u=n(6719),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),c=!n&&i(e),d=!n&&!c&&o(e),f=!n&&!c&&!d&&u(e),h=n||c||d||f,p=h?r(e.length,String):[],m=p.length;for(var _ in e)!t&&!l.call(e,_)||h&&("length"==_||d&&("offset"==_||"parent"==_)||f&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||s(_,m))||p.push(_);return p}},9932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},2488:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},2908:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},6556:(e,t,n)=>{var r=n(9465),i=n(7813);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},4865:(e,t,n)=>{var r=n(9465),i=n(7813),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];a.call(e,t)&&i(o,n)&&(void 0!==n||t in e)||r(e,t,n)}},8470:(e,t,n)=>{var r=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},9465:(e,t,n)=>{var r=n(8777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},3118:(e,t,n)=>{var r=n(3218),i=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},4140:(e,t,n)=>{var r=n(7816),i=n(9291)(r);e.exports=i},1848:e=>{e.exports=function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}},1078:(e,t,n)=>{var r=n(2488),i=n(7285);e.exports=function e(t,n,a,o,s){var u=-1,l=t.length;for(a||(a=i),s||(s=[]);++u<l;){var c=t[u];n>0&&a(c)?n>1?e(c,n-1,a,o,s):r(s,c):o||(s[s.length]=c)}return s}},8483:(e,t,n)=>{var r=n(5063)();e.exports=r},7816:(e,t,n)=>{var r=n(8483),i=n(3674);e.exports=function(e,t){return e&&r(e,t,i)}},7786:(e,t,n)=>{var r=n(1811),i=n(327);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[i(t[n++])];return n&&n==a?e:void 0}},8866:(e,t,n)=>{var r=n(2488),i=n(1469);e.exports=function(e,t,n){var a=t(e);return i(e)?a:r(a,n(e))}},4239:(e,t,n)=>{var r=n(2705),i=n(9607),a=n(2333),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):a(e)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},2118:(e,t,n)=>{var r=n(1848),i=n(2722),a=n(2351);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,i,n)}},9454:(e,t,n)=>{var r=n(4239),i=n(7005);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},939:(e,t,n)=>{var r=n(1299),i=n(7005);e.exports=function e(t,n,a,o,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,a,o,e,s))}},1299:(e,t,n)=>{var r=n(6384),i=n(7114),a=n(8351),o=n(6096),s=n(4160),u=n(1469),l=n(4144),c=n(6719),d="[object Arguments]",f="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,_,y){var v=u(e),g=u(t),b=v?f:s(e),M=g?f:s(t),w=(b=b==d?h:b)==h,k=(M=M==d?h:M)==h,L=b==M;if(L&&l(e)){if(!l(t))return!1;v=!0,w=!1}if(L&&!w)return y||(y=new r),v||c(e)?i(e,t,n,m,_,y):a(e,t,b,n,m,_,y);if(!(1&n)){var T=w&&p.call(e,"__wrapped__"),D=k&&p.call(t,"__wrapped__");if(T||D){var S=T?e.value():e,E=D?t.value():t;return y||(y=new r),_(S,E,n,m,y)}}return!!L&&(y||(y=new r),o(e,t,n,m,_,y))}},2958:(e,t,n)=>{var r=n(6384),i=n(939);e.exports=function(e,t,n,a){var o=n.length,s=o,u=!a;if(null==e)return!s;for(e=Object(e);o--;){var l=n[o];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var c=(l=n[o])[0],d=e[c],f=l[1];if(u&&l[2]){if(void 0===d&&!(c in e))return!1}else{var h=new r;if(a)var p=a(d,f,c,e,t,h);if(!(void 0===p?i(f,d,3,a,h):p))return!1}}return!0}},2722:e=>{e.exports=function(e){return e!=e}},8458:(e,t,n)=>{var r=n(3560),i=n(5346),a=n(3218),o=n(346),s=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,d=l.hasOwnProperty,f=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(r(e)?f:s).test(o(e))}},8749:(e,t,n)=>{var r=n(4239),i=n(1780),a=n(7005),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!o[r(e)]}},7206:(e,t,n)=>{var r=n(1573),i=n(6432),a=n(6557),o=n(1469),s=n(9601);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?o(e)?i(e[0],e[1]):r(e):s(e)}},280:(e,t,n)=>{var r=n(5726),i=n(6916),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},313:(e,t,n)=>{var r=n(3218),i=n(5726),a=n(3498),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&n.push(s);return n}},9199:(e,t,n)=>{var r=n(4140),i=n(8612);e.exports=function(e,t){var n=-1,a=i(e)?Array(e.length):[];return r(e,(function(e,r,i){a[++n]=t(e,r,i)})),a}},1573:(e,t,n)=>{var r=n(2958),i=n(1499),a=n(2634);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},6432:(e,t,n)=>{var r=n(939),i=n(7361),a=n(9095),o=n(5403),s=n(9162),u=n(2634),l=n(327);e.exports=function(e,t){return o(e)&&s(t)?u(l(e),t):function(n){var o=i(n,e);return void 0===o&&o===t?a(n,e):r(t,o,3)}}},2980:(e,t,n)=>{var r=n(6384),i=n(6556),a=n(8483),o=n(9783),s=n(3218),u=n(1704),l=n(6390);e.exports=function e(t,n,c,d,f){t!==n&&a(n,(function(a,u){if(f||(f=new r),s(a))o(t,n,u,c,e,d,f);else{var h=d?d(l(t,u),a,u+"",t,n,f):void 0;void 0===h&&(h=a),i(t,u,h)}}),u)}},9783:(e,t,n)=>{var r=n(6556),i=n(4626),a=n(7133),o=n(278),s=n(8517),u=n(1025),l=n(1469),c=n(9246),d=n(4144),f=n(3560),h=n(3218),p=n(8630),m=n(6719),_=n(6390),y=n(9881);e.exports=function(e,t,n,v,g,b,M){var w=_(e,n),k=_(t,n),L=M.get(k);if(L)r(e,n,L);else{var T=b?b(w,k,n+"",e,t,M):void 0,D=void 0===T;if(D){var S=l(k),E=!S&&d(k),Y=!S&&!E&&m(k);T=k,S||E||Y?l(w)?T=w:c(w)?T=o(w):E?(D=!1,T=i(k,!0)):Y?(D=!1,T=a(k,!0)):T=[]:p(k)||u(k)?(T=w,u(w)?T=y(w):h(w)&&!f(w)||(T=s(k))):D=!1}D&&(M.set(k,T),g(T,k,v,b,M),M.delete(k)),r(e,n,T)}}},2689:(e,t,n)=>{var r=n(9932),i=n(7786),a=n(7206),o=n(9199),s=n(1131),u=n(7518),l=n(5022),c=n(6557),d=n(1469);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e})):[c];var f=-1;t=r(t,u(a));var h=o(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++f,value:e}}));return s(h,(function(e,t){return l(e,t,n)}))}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,n)=>{var r=n(7786);e.exports=function(e){return function(t){return r(t,e)}}},5976:(e,t,n)=>{var r=n(6557),i=n(5357),a=n(61);e.exports=function(e,t){return a(i(e,t,r),e+"")}},6560:(e,t,n)=>{var r=n(5703),i=n(8777),a=n(6557),o=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=o},1131:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},2545:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},531:(e,t,n)=>{var r=n(2705),i=n(9932),a=n(1469),o=n(3448),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(o(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7561:(e,t,n)=>{var r=n(7990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},7518:e=>{e.exports=function(e){return function(t){return e(t)}}},7415:(e,t,n)=>{var r=n(9932);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},4757:e=>{e.exports=function(e,t){return e.has(t)}},1811:(e,t,n)=>{var r=n(1469),i=n(5403),a=n(5514),o=n(9833);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:a(o(e))}},4318:(e,t,n)=>{var r=n(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},4626:(e,t,n)=>{e=n.nmd(e);var r=n(5639),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},7133:(e,t,n)=>{var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},6393:(e,t,n)=>{var r=n(3448);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,a=e==e,o=r(e),s=void 0!==t,u=null===t,l=t==t,c=r(t);if(!u&&!c&&!o&&e>t||o&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!a)return 1;if(!i&&!o&&!c&&e<t||c&&n&&a&&!i&&!o||u&&n&&a||!s&&a||!l)return-1}return 0}},5022:(e,t,n)=>{var r=n(6393);e.exports=function(e,t,n){for(var i=-1,a=e.criteria,o=t.criteria,s=a.length,u=n.length;++i<s;){var l=r(a[i],o[i]);if(l)return i>=u?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}},278:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},8363:(e,t,n)=>{var r=n(4865),i=n(9465);e.exports=function(e,t,n,a){var o=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var l=t[s],c=a?a(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),o?i(n,l,c):r(n,l,c)}return n}},4429:(e,t,n)=>{var r=n(5639)["__core-js_shared__"];e.exports=r},1463:(e,t,n)=>{var r=n(5976),i=n(6612);e.exports=function(e){return r((function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++r<a;){var u=n[r];u&&e(t,u,r,o)}return t}))}},9291:(e,t,n)=>{var r=n(8612);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var a=n.length,o=t?a:-1,s=Object(n);(t?o--:++o<a)&&!1!==i(s[o],o,s););return n}}},5063:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var u=o[e?s:++i];if(!1===n(a[u],u,a))break}return t}}},8777:(e,t,n)=>{var r=n(852),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},7114:(e,t,n)=>{var r=n(8668),i=n(2908),a=n(4757);e.exports=function(e,t,n,o,s,u){var l=1&n,c=e.length,d=t.length;if(c!=d&&!(l&&d>c))return!1;var f=u.get(e),h=u.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,_=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++p<c;){var y=e[p],v=t[p];if(o)var g=l?o(v,y,p,t,e,u):o(y,v,p,e,t,u);if(void 0!==g){if(g)continue;m=!1;break}if(_){if(!i(t,(function(e,t){if(!a(_,t)&&(y===e||s(y,e,n,o,u)))return _.push(t)}))){m=!1;break}}else if(y!==v&&!s(y,v,n,o,u)){m=!1;break}}return u.delete(e),u.delete(t),m}},8351:(e,t,n)=>{var r=n(2705),i=n(1149),a=n(7813),o=n(7114),s=n(8776),u=n(1814),l=r?r.prototype:void 0,c=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var p=1&r;if(h||(h=u),e.size!=t.size&&!p)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var _=o(h(e),h(t),r,l,d,f);return f.delete(e),_;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},6096:(e,t,n)=>{var r=n(8234),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,o,s){var u=1&n,l=r(e),c=l.length;if(c!=r(t).length&&!u)return!1;for(var d=c;d--;){var f=l[d];if(!(u?f in t:i.call(t,f)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var m=!0;s.set(e,t),s.set(t,e);for(var _=u;++d<c;){var y=e[f=l[d]],v=t[f];if(a)var g=u?a(v,y,f,t,e,s):a(y,v,f,e,t,s);if(!(void 0===g?y===v||o(y,v,n,a,s):g)){m=!1;break}_||(_="constructor"==f)}if(m&&!_){var b=e.constructor,M=t.constructor;b==M||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof M&&M instanceof M||(m=!1)}return s.delete(e),s.delete(t),m}},1957:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8234:(e,t,n)=>{var r=n(8866),i=n(9551),a=n(3674);e.exports=function(e){return r(e,a,i)}},5050:(e,t,n)=>{var r=n(7019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},1499:(e,t,n)=>{var r=n(9162),i=n(3674);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var a=t[n],o=e[a];t[n]=[a,o,r(o)]}return t}},852:(e,t,n)=>{var r=n(8458),i=n(7801);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},5924:(e,t,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},9607:(e,t,n)=>{var r=n(2705),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}},9551:(e,t,n)=>{var r=n(4963),i=n(479),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return a.call(e,t)})))}:i;e.exports=s},4160:(e,t,n)=>{var r=n(8552),i=n(7071),a=n(3818),o=n(8525),s=n(577),u=n(4239),l=n(346),c="[object Map]",d="[object Promise]",f="[object Set]",h="[object WeakMap]",p="[object DataView]",m=l(r),_=l(i),y=l(a),v=l(o),g=l(s),b=u;(r&&b(new r(new ArrayBuffer(1)))!=p||i&&b(new i)!=c||a&&b(a.resolve())!=d||o&&b(new o)!=f||s&&b(new s)!=h)&&(b=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case m:return p;case _:return c;case y:return d;case v:return f;case g:return h}return t}),e.exports=b},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,n)=>{var r=n(1811),i=n(1025),a=n(1469),o=n(5776),s=n(1780),u=n(327);e.exports=function(e,t,n){for(var l=-1,c=(t=r(t,e)).length,d=!1;++l<c;){var f=u(t[l]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++l!=c?d:!!(c=null==e?0:e.length)&&s(c)&&o(f,c)&&(a(e)||i(e))}},1789:(e,t,n)=>{var r=n(4536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},1327:(e,t,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},1866:(e,t,n)=>{var r=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},8517:(e,t,n)=>{var r=n(3118),i=n(5924),a=n(5726);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(i(e))}},7285:(e,t,n)=>{var r=n(2705),i=n(1025),a=n(1469),o=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||i(e)||!!(o&&e&&e[o])}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6612:(e,t,n)=>{var r=n(7813),i=n(8612),a=n(5776),o=n(3218);e.exports=function(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&a(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},5403:(e,t,n)=>{var r=n(1469),i=n(3448),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||o.test(e)||!a.test(e)||null!=t&&e in Object(t)}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,n)=>{var r,i=n(4429),a=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},9162:(e,t,n)=>{var r=n(3218);e.exports=function(e){return e==e&&!r(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,n)=>{var r=n(8470),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},2117:(e,t,n)=>{var r=n(8470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7529:(e,t,n)=>{var r=n(8470);e.exports=function(e){return r(this.__data__,e)>-1}},4705:(e,t,n)=>{var r=n(8470);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},4785:(e,t,n)=>{var r=n(1989),i=n(8407),a=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},1285:(e,t,n)=>{var r=n(5050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:(e,t,n)=>{var r=n(5050);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},2634:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},4523:(e,t,n)=>{var r=n(8306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},4536:(e,t,n)=>{var r=n(852)(Object,"create");e.exports=r},6916:(e,t,n)=>{var r=n(5569)(Object.keys,Object);e.exports=r},3498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},1167:(e,t,n)=>{e=n.nmd(e);var r=n(1957),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i&&r.process,s=function(){try{return a&&a.require&&a.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5357:(e,t,n)=>{var r=n(6874),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=i(a.length-t,0),u=Array(s);++o<s;)u[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=n(u),r(e,this,l)}}},5639:(e,t,n)=>{var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},6390:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},61:(e,t,n)=>{var r=n(6560),i=n(1275)(r);e.exports=i},1275:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),a=16-(i-r);if(r=i,a>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7465:(e,t,n)=>{var r=n(8407);e.exports=function(){this.__data__=new r,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,n)=>{var r=n(8407),i=n(7071),a=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}},2351:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},5514:(e,t,n)=>{var r=n(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)})),t}));e.exports=o},327:(e,t,n)=>{var r=n(3448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7990:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},5703:e=>{e.exports=function(e){return function(){return e}}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7361:(e,t,n)=>{var r=n(7786);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},9095:(e,t,n)=>{var r=n(13),i=n(222);e.exports=function(e,t){return null!=e&&i(e,t,r)}},6557:e=>{e.exports=function(e){return e}},4721:(e,t,n)=>{var r=n(2118),i=n(8612),a=n(7037),o=n(554),s=n(2628),u=Math.max;e.exports=function(e,t,n,l){e=i(e)?e:s(e),n=n&&!l?o(n):0;var c=e.length;return n<0&&(n=u(c+n,0)),a(e)?n<=c&&e.indexOf(t,n)>-1:!!c&&r(e,t,n)>-1}},1025:(e,t,n)=>{var r=n(9454),i=n(7005),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,n)=>{var r=n(3560),i=n(1780);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},9246:(e,t,n)=>{var r=n(8612),i=n(7005);e.exports=function(e){return i(e)&&r(e)}},4144:(e,t,n)=>{e=n.nmd(e);var r=n(5639),i=n(5062),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,s=o&&o.exports===a?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u},1609:(e,t,n)=>{var r=n(280),i=n(4160),a=n(1025),o=n(1469),s=n(8612),u=n(4144),l=n(5726),c=n(6719),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(o(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||c(e)||a(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},3560:(e,t,n)=>{var r=n(4239),i=n(3218);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8630:(e,t,n)=>{var r=n(4239),i=n(5924),a=n(7005),o=Function.prototype,s=Object.prototype,u=o.toString,l=s.hasOwnProperty,c=u.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==c}},7037:(e,t,n)=>{var r=n(4239),i=n(1469),a=n(7005);e.exports=function(e){return"string"==typeof e||!i(e)&&a(e)&&"[object String]"==r(e)}},3448:(e,t,n)=>{var r=n(4239),i=n(7005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},6719:(e,t,n)=>{var r=n(8749),i=n(7518),a=n(1167),o=a&&a.isTypedArray,s=o?i(o):r;e.exports=s},3674:(e,t,n)=>{var r=n(4636),i=n(280),a=n(8612);e.exports=function(e){return a(e)?r(e):i(e)}},1704:(e,t,n)=>{var r=n(4636),i=n(313),a=n(8612);e.exports=function(e){return a(e)?r(e,!0):i(e)}},5161:(e,t,n)=>{var r=n(9932),i=n(7206),a=n(9199),o=n(1469);e.exports=function(e,t){return(o(e)?r:a)(e,i(t,3))}},8306:(e,t,n)=>{var r=n(3369);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},2492:(e,t,n)=>{var r=n(2980),i=n(1463)((function(e,t,n){r(e,t,n)}));e.exports=i},9601:(e,t,n)=>{var r=n(371),i=n(9152),a=n(5403),o=n(327);e.exports=function(e){return a(e)?r(o(e)):i(e)}},9734:(e,t,n)=>{var r=n(1078),i=n(2689),a=n(5976),o=n(6612),s=a((function(e,t){if(null==e)return[];var n=t.length;return n>1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=s},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},8601:(e,t,n)=>{var r=n(4841);e.exports=function(e){return e?1/0===(e=r(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},554:(e,t,n)=>{var r=n(8601);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},4841:(e,t,n)=>{var r=n(7561),i=n(3218),a=n(3448),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):o.test(e)?NaN:+e}},9881:(e,t,n)=>{var r=n(8363),i=n(1704);e.exports=function(e){return r(e,i(e))}},9833:(e,t,n)=>{var r=n(531);e.exports=function(e){return null==e?"":r(e)}},2628:(e,t,n)=>{var r=n(7415),i=n(3674);e.exports=function(e){return null==e?[]:r(e,i(e))}},5694:(e,n,r)=>{"use strict";r.r(n),r.d(n,{AccessDeniedReason:()=>he,BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT:()=>ve,BillingModel:()=>h,BillingPeriod:()=>p,Currency:()=>g,CustomerModel:()=>Me,EntitlementResetPeriod:()=>_e,FeatureType:()=>pe,LogLevel:()=>o,METERED_DEFAULT_FALLBACK_ENTITLEMENT:()=>be,MeterType:()=>me,NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT:()=>ge,PricingType:()=>B,PromotionalEntitlementStatus:()=>G,SubscriptionStatus:()=>ae,TrialPeriodUnits:()=>le,default:()=>jc});var i={};r.r(i),r.d(i,{FunctionToString:()=>eu,InboundFilters:()=>hu});var a={};r.r(a),r.d(a,{Breadcrumbs:()=>Sl,Dedupe:()=>Al,GlobalHandlers:()=>fl,HttpContext:()=>Cl,LinkedErrors:()=>jl,TryCatch:()=>gl});var o,s=r(4721),u=r.n(s);!function(e){e.ALL="ALL",e.NONE="NONE",e.LOG="LOG",e.ERROR="ERROR"}(o||(o={}));var l,c,d,f,h,p,m,_,y,v,g,b,M,w,k,L,T,D,S,E,Y,x,O,j,P,C,A,I,N,F,R,H,U,z,W,B,q,V,$,G,Q,J,K,X,Z,ee,te,ne,re,ie,ae,oe,se,ue,le,ce,de,fe,he,pe,me,_e,ye=function(){function e(e,t){this.logger=e,this.logLevel=t}return e.prototype.error=function(e,t){this.logLevel!==o.NONE&&this.logger.error(e,t||{})},e.prototype.log=function(e,t){u()([o.ERROR,o.NONE],this.logLevel)||this.logger.log(e,t||{})},e.prototype.debug=function(e,t){u()([o.LOG,o.ALL],this.logLevel)&&this.logger.debug(e,t||{})},e}();!function(e){e.CustomerNotFound="CustomerNotFound",e.FeatureNotFound="FeatureNotFound",e.NoActiveSubscription="NoActiveSubscription",e.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",e.RequestedUsageExceedingLimit="RequestedUsageExceedingLimit",e.Unknown="Unknown"}(l||(l={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsLatest="isLatest",e.PricingType="pricingType",e.ProductId="productId",e.RefId="refId",e.Status="status",e.UpdatedAt="updatedAt",e.VersionNumber="versionNumber"}(c||(c={})),function(e){e.Id="id"}(d||(d={})),function(e){e.Client="CLIENT",e.Server="SERVER"}(f||(f={})),function(e){e.FlatFee="FLAT_FEE",e.PerUnit="PER_UNIT",e.UsageBased="USAGE_BASED"}(h||(h={})),function(e){e.Annually="ANNUALLY",e.Monthly="MONTHLY"}(p||(p={})),function(e){e.Added="ADDED",e.Deleted="DELETED",e.Modified="MODIFIED"}(m||(m={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.EnvironmentId="environmentId",e.Id="id",e.Name="name",e.RefId="refId",e.Status="status",e.Type="type",e.UpdatedAt="updatedAt"}(_||(_={})),function(e){e.Active="ACTIVE",e.Archived="ARCHIVED"}(y||(y={})),function(e){e.Fixed="FIXED",e.Percentage="PERCENTAGE"}(v||(v={})),function(e){e.Usd="USD"}(g||(g={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.CrmHubspotCompanyId="crmHubspotCompanyId",e.CrmHubspotCompanyUrl="crmHubspotCompanyUrl",e.CrmId="crmId",e.Email="email",e.EnvironmentId="environmentId",e.Id="id",e.Name="name",e.RefId="refId",e.UpdatedAt="updatedAt"}(b||(b={})),function(e){e.BillingId="billingId",e.CancelReason="cancelReason",e.CancellationDate="cancellationDate",e.CreatedAt="createdAt",e.CrmId="crmId",e.CrmLinkUrl="crmLinkUrl",e.EffectiveEndDate="effectiveEndDate",e.EndDate="endDate",e.EnvironmentId="environmentId",e.Id="id",e.PricingType="pricingType",e.RefId="refId",e.StartDate="startDate",e.Status="status",e.TrialEndDate="trialEndDate"}(M||(M={})),function(e){e.Day="DAY",e.Hour="HOUR",e.Month="MONTH",e.Week="WEEK"}(w||(w={})),function(e){e.BlackList="BLACK_LIST",e.WhiteList="WHITE_LIST"}(k||(k={})),function(e){e.CreatedAt="createdAt",e.DisplayName="displayName",e.Id="id",e.Slug="slug"}(L||(L={})),function(e){e.AddonHasToHavePriceError="AddonHasToHavePriceError",e.AddonNotFound="AddonNotFound",e.ArchivedCouponCantBeApplied="ArchivedCouponCantBeApplied",e.BadUserInput="BadUserInput",e.BillingPeriodMissingError="BillingPeriodMissingError",e.CannotDeleteCustomerError="CannotDeleteCustomerError",e.CannotDeleteFeatureError="CannotDeleteFeatureError",e.CheckoutIsNotSupported="CheckoutIsNotSupported",e.CouponNotFound="CouponNotFound",e.CustomerHasNoPaymentMethod="CustomerHasNoPaymentMethod",e.CustomerNoBillingId="CustomerNoBillingId",e.CustomerNotFound="CustomerNotFound",e.DraftPlanCantBeArchived="DraftPlanCantBeArchived",e.DuplicatedEntityNotAllowed="DuplicatedEntityNotAllowed",e.EditAllowedOnDraftPackageOnlyError="EditAllowedOnDraftPackageOnlyError",e.EnvironmentMissing="EnvironmentMissing",e.FailedToImportCustomer="FailedToImportCustomer",e.FeatureNotFound="FeatureNotFound",e.IdentityForbidden="IdentityForbidden",e.ImportAlreadyInProgress="ImportAlreadyInProgress",e.InitStripePaymentMethodError="InitStripePaymentMethodError",e.IntegrationNotFound="IntegrationNotFound",e.IntegrityViolation="IntegrityViolation",e.InvalidAddressError="InvalidAddressError",e.InvalidArgumentError="InvalidArgumentError",e.InvalidCancellationDate="InvalidCancellationDate",e.InvalidEntitlementResetPeriod="InvalidEntitlementResetPeriod",e.InvalidMemberDelete="InvalidMemberDelete",e.InvalidQuantity="InvalidQuantity",e.InvalidSubscriptionStatus="InvalidSubscriptionStatus",e.InvalidUpdatePriceUnitAmountError="InvalidUpdatePriceUnitAmountError",e.InvalidUsageValueForIncrementalFeatureError="InvalidUsageValueForIncrementalFeatureError",e.MemberInvitationError="MemberInvitationError",e.MemberNotFound="MemberNotFound",e.MeteringNotAvailableForFeatureType="MeteringNotAvailableForFeatureType",e.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",e.PackageAlreadyPublished="PackageAlreadyPublished",e.PackagePricingTypeNotSet="PackagePricingTypeNotSet",e.PlanAlreadyExtended="PlanAlreadyExtended",e.PlanNotFound="PlanNotFound",e.PlanWithChildCantBeDeleted="PlanWithChildCantBeDeleted",e.PlansCircularDependencyError="PlansCircularDependencyError",e.PriceNotFound="PriceNotFound",e.RateLimitExceeded="RateLimitExceeded",e.ResyncAlreadyInProgress="ResyncAlreadyInProgress",e.SelectedBillingModelDoesntMatchImportedItemError="SelectedBillingModelDoesntMatchImportedItemError",e.StripeCustomerIsDeleted="StripeCustomerIsDeleted",e.SubscriptionAlreadyCanceledOrExpired="SubscriptionAlreadyCanceledOrExpired",e.SubscriptionMustHaveSinglePlanError="SubscriptionMustHaveSinglePlanError",e.SubscriptionNotFound="SubscriptionNotFound",e.TrialMinDateError="TrialMinDateError",e.TrialMustBeCancelledImmediately="TrialMustBeCancelledImmediately",e.TrialsNotAllowedInProduct="TrialsNotAllowedInProduct",e.UnPublishedPackage="UnPublishedPackage",e.Unauthenticated="Unauthenticated",e.UncompatibleSubscriptionAddon="UncompatibleSubscriptionAddon",e.UnexpectedError="UnexpectedError",e.UnsupportedFeatureType="UnsupportedFeatureType",e.UnsupportedVendorIdentifier="UnsupportedVendorIdentifier"}(T||(T={})),function(e){e.AddonCreated="ADDON_CREATED",e.AddonDeleted="ADDON_DELETED",e.AddonUpdated="ADDON_UPDATED",e.CouponArchived="COUPON_ARCHIVED",e.CouponCreated="COUPON_CREATED",e.CouponUpdated="COUPON_UPDATED",e.CreateSubscriptionFailed="CREATE_SUBSCRIPTION_FAILED",e.CustomerCreated="CUSTOMER_CREATED",e.CustomerDeleted="CUSTOMER_DELETED",e.CustomerPaymentFailed="CUSTOMER_PAYMENT_FAILED",e.CustomerUpdated="CUSTOMER_UPDATED",e.EntitlementsUpdated="ENTITLEMENTS_UPDATED",e.EntitlementDenied="ENTITLEMENT_DENIED",e.EntitlementGranted="ENTITLEMENT_GRANTED",e.EntitlementRequested="ENTITLEMENT_REQUESTED",e.FeatureCreated="FEATURE_CREATED",e.FeatureDeleted="FEATURE_DELETED",e.FeatureUpdated="FEATURE_UPDATED",e.ImportIntegrationCatalogTriggered="IMPORT_INTEGRATION_CATALOG_TRIGGERED",e.ImportIntegrationCustomersTriggered="IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED",e.MeasurementReported="MEASUREMENT_REPORTED",e.PackagePublished="PACKAGE_PUBLISHED",e.PlanCreated="PLAN_CREATED",e.PlanDeleted="PLAN_DELETED",e.PlanUpdated="PLAN_UPDATED",e.PromotionalEntitlementExpired="PROMOTIONAL_ENTITLEMENT_EXPIRED",e.PromotionalEntitlementGranted="PROMOTIONAL_ENTITLEMENT_GRANTED",e.PromotionalEntitlementRevoked="PROMOTIONAL_ENTITLEMENT_REVOKED",e.PromotionalEntitlementUpdated="PROMOTIONAL_ENTITLEMENT_UPDATED",e.ResyncIntegrationTriggered="RESYNC_INTEGRATION_TRIGGERED",e.SubscriptionCanceled="SUBSCRIPTION_CANCELED",e.SubscriptionCreated="SUBSCRIPTION_CREATED",e.SubscriptionExpired="SUBSCRIPTION_EXPIRED",e.SubscriptionTrialConverted="SUBSCRIPTION_TRIAL_CONVERTED",e.SubscriptionTrialEndsSoon="SUBSCRIPTION_TRIAL_ENDS_SOON",e.SubscriptionTrialExpired="SUBSCRIPTION_TRIAL_EXPIRED",e.SubscriptionTrialStarted="SUBSCRIPTION_TRIAL_STARTED",e.SubscriptionUpdated="SUBSCRIPTION_UPDATED",e.SubscriptionUsageUpdated="SUBSCRIPTION_USAGE_UPDATED",e.SyncFailed="SYNC_FAILED"}(D||(D={})),function(e){e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.FeatureStatus="featureStatus",e.FeatureType="featureType",e.Id="id",e.MeterType="meterType",e.RefId="refId",e.UpdatedAt="updatedAt"}(S||(S={})),function(e){e.Active="ACTIVE",e.New="NEW",e.Suspended="SUSPENDED"}(E||(E={})),function(e){e.Boolean="BOOLEAN",e.Number="NUMBER"}(Y||(Y={})),function(e){e.CreatedAt="createdAt",e.Endpoint="endpoint",e.EnvironmentId="environmentId",e.Id="id",e.Status="status"}(x||(x={})),function(e){e.Active="ACTIVE",e.Inactive="INACTIVE"}(O||(O={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.TaskType="taskType"}(j||(j={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.VendorIdentifier="vendorIdentifier"}(P||(P={})),function(e){e.CreatedAt="createdAt",e.Id="id"}(C||(C={})),function(e){e.Invited="INVITED",e.Registered="REGISTERED"}(A||(A={})),function(e){e.Fluctuating="Fluctuating",e.Incremental="Incremental",e.None="None"}(I||(I={})),function(e){e.StartOfTheMonth="StartOfTheMonth",e.SubscriptionStart="SubscriptionStart"}(N||(N={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsLatest="isLatest",e.PricingType="pricingType",e.ProductId="productId",e.RefId="refId",e.Status="status",e.UpdatedAt="updatedAt",e.VersionNumber="versionNumber"}(F||(F={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.PackageId="packageId",e.UpdatedAt="updatedAt"}(R||(R={})),function(e){e.Archived="ARCHIVED",e.Draft="DRAFT",e.Published="PUBLISHED"}(H||(H={})),function(e){e.Bank="BANK",e.Card="CARD"}(U||(U={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsLatest="isLatest",e.PricingType="pricingType",e.ProductId="productId",e.RefId="refId",e.Status="status",e.UpdatedAt="updatedAt",e.VersionNumber="versionNumber"}(z||(z={})),function(e){e.BillingModel="billingModel",e.BillingPeriod="billingPeriod",e.CreatedAt="createdAt",e.Id="id"}(W||(W={})),function(e){e.Custom="CUSTOM",e.Free="FREE",e.Paid="PAID"}(B||(B={})),function(e){e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsDefaultProduct="isDefaultProduct",e.RefId="refId",e.UpdatedAt="updatedAt"}(q||(q={})),function(e){e.Custom="CUSTOM",e.Lifetime="LIFETIME",e.OneMonth="ONE_MONTH",e.OneWeek="ONE_WEEK",e.OneYear="ONE_YEAR",e.SixMonth="SIX_MONTH"}(V||(V={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.UpdatedAt="updatedAt"}($||($={})),function(e){e.Active="Active",e.Expired="Expired",e.Paused="Paused"}(G||(G={})),function(e){e.AllCustomers="ALL_CUSTOMERS",e.NewCustomers="NEW_CUSTOMERS"}(Q||(Q={})),function(e){e.Asc="ASC",e.Desc="DESC"}(J||(J={})),function(e){e.NullsFirst="NULLS_FIRST",e.NullsLast="NULLS_LAST"}(K||(K={})),function(e){e.JsClientSdk="JS_CLIENT_SDK",e.NodeServerSdk="NODE_SERVER_SDK"}(X||(X={})),function(e){e.CreatedAt="createdAt",e.Id="id",e.Quantity="quantity",e.UpdatedAt="updatedAt"}(Z||(Z={})),function(e){e.CancelledByBilling="CancelledByBilling",e.DetachBilling="DetachBilling",e.Expired="Expired",e.Immediate="Immediate",e.PendingPaymentExpired="PendingPaymentExpired",e.ScheduledCancellation="ScheduledCancellation",e.TrialConverted="TrialConverted",e.TrialEnded="TrialEnded",e.UpgradeOrDowngrade="UpgradeOrDowngrade"}(ee||(ee={})),function(e){e.EndOfBillingPeriod="END_OF_BILLING_PERIOD",e.Immediate="IMMEDIATE",e.SpecificDate="SPECIFIC_DATE"}(te||(te={})),function(e){e.CancelSubscription="CANCEL_SUBSCRIPTION",e.DowngradeToFree="DOWNGRADE_TO_FREE"}(ne||(ne={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.TaskType="taskType"}(re||(re={})),function(e){e.CreatedAt="createdAt",e.Id="id",e.UpdatedAt="updatedAt",e.UsageLimit="usageLimit"}(ie||(ie={})),function(e){e.Active="ACTIVE",e.Canceled="CANCELED",e.Expired="EXPIRED",e.InTrial="IN_TRIAL",e.NotStarted="NOT_STARTED",e.PaymentPending="PAYMENT_PENDING"}(ae||(ae={})),function(e){e.Error="ERROR",e.NoSyncRequired="NO_SYNC_REQUIRED",e.Pending="PENDING",e.Success="SUCCESS"}(oe||(oe={})),function(e){e.Completed="COMPLETED",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.PartiallyFailed="PARTIALLY_FAILED",e.Pending="PENDING"}(se||(se={})),function(e){e.ImportIntegrationCatalog="IMPORT_INTEGRATION_CATALOG",e.ImportIntegrationCustomers="IMPORT_INTEGRATION_CUSTOMERS",e.ResyncIntegration="RESYNC_INTEGRATION",e.SubscriptionMigration="SUBSCRIPTION_MIGRATION"}(ue||(ue={})),function(e){e.Day="DAY",e.Month="MONTH"}(le||(le={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id"}(ce||(ce={})),function(e){e.Hubspot="HUBSPOT",e.Stripe="STRIPE",e.Zuora="ZUORA"}(de||(de={})),function(e){e.EveryFriday="EveryFriday",e.EveryMonday="EveryMonday",e.EverySaturday="EverySaturday",e.EverySunday="EverySunday",e.EveryThursday="EveryThursday",e.EveryTuesday="EveryTuesday",e.EveryWednesday="EveryWednesday",e.SubscriptionStart="SubscriptionStart"}(fe||(fe={})),function(e){e.InvalidFeatureType="InvalidFeatureType",e.CustomerNotFound="CustomerNotFound",e.FeatureNotFound="FeatureNotFound",e.NoActiveSubscriptions="NoActiveSubscriptions",e.CustomerNotEntitledForFeature="CustomerNotEntitledForFeature",e.RequestedUsageExceedsLimit="RequestedUsageExceedsLimit",e.Unknown="Unknown"}(he||(he={})),function(e){e.Boolean="Boolean",e.Numeric="Numeric"}(pe||(pe={})),function(e){e.Fluctuating="Fluctuating",e.Incremental="Incremental",e.None="None"}(me||(me={})),function(e){e.Daily="Daily",e.Hourly="Hourly",e.Monthly="Monthly",e.Weekly="Weekly"}(_e||(_e={}));var ve={isFallback:!0,hasAccess:!1,accessDeniedReason:he.Unknown},ge={isFallback:!0,hasAccess:!1,isUnlimited:!1,accessDeniedReason:he.Unknown},be={isFallback:!0,hasAccess:!1,isUnlimited:!1,currentUsage:0,requestedUsage:1,accessDeniedReason:he.Unknown},Me=function(){function e(e){Object.assign(this,e)}return e.prototype.getActiveSubscriptions=function(){return this.subscriptions.filter((function(e){return e.status===ae.Active}))},e.prototype.getActiveTrials=function(){return this.subscriptions.filter((function(e){return e.status===ae.InTrial}))},e.prototype.getActivePromotionalEntitlements=function(){return this.promotionalEntitlements.filter((function(e){return e.status===G.Active}))},e}(),we=function(e,t){return(we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function ke(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}we(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Le=function(){return(Le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Te(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function De(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}u((r=r.apply(e,t||[])).next())}))}function Se(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function Ee(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Ye(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}Object.create,Object.create;const xe=/\r\n|[\n\r]/g;function Oe(e,t){let n=0,r=1;for(const i of e.body.matchAll(xe)){if("number"==typeof i.index||Ye(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function je(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=1===t.line?n:0,u=t.column+s,l=`${e.name}:${o}:${u}\n`,c=r.split(/\r\n|[\n\r]/g),d=c[i];if(d.length>120){const e=Math.floor(u/80),t=u%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return l+Pe([[o+" |",n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return l+Pe([[o-1+" |",c[i-1]],[o+" |",d],["|","^".padStart(u)],[o+1+" |",c[i+1]]])}function Pe(e){const t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class Ce extends Error{constructor(e,t,n,r,i,a,o){var s,u,l;super(e),this.name="GraphQLError",this.path=null!=i?i:void 0,this.originalError=null!=a?a:void 0,this.nodes=Ae(Array.isArray(t)?t:t?[t]:void 0);const c=Ae(null===(s=this.nodes)||void 0===s?void 0:s.map(e=>e.loc).filter(e=>null!=e));this.source=null!=n?n:null==c||null===(u=c[0])||void 0===u?void 0:u.source,this.positions=null!=r?r:null==c?void 0:c.map(e=>e.start),this.locations=r&&n?r.map(e=>Oe(n,e)):null==c?void 0:c.map(e=>Oe(e.source,e.start));const d="object"==typeof(f=null==a?void 0:a.extensions)&&null!==f?null==a?void 0:a.extensions:void 0;var f;this.extensions=null!==(l=null!=o?o:d)&&void 0!==l?l:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=a&&a.stack?Object.defineProperty(this,"stack",{value:a.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Ce):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+="\n\n"+je((t=n.loc).source,Oe(t.source,t.start)));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+je(this.source,t);var t;return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function Ae(e){return void 0===e||0===e.length?void 0:e}function Ie(e,t,n){return new Ce("Syntax Error: "+n,void 0,e,[t])}let Ne;var Fe;(Fe=Ne||(Ne={})).NAME="Name",Fe.DOCUMENT="Document",Fe.OPERATION_DEFINITION="OperationDefinition",Fe.VARIABLE_DEFINITION="VariableDefinition",Fe.SELECTION_SET="SelectionSet",Fe.FIELD="Field",Fe.ARGUMENT="Argument",Fe.FRAGMENT_SPREAD="FragmentSpread",Fe.INLINE_FRAGMENT="InlineFragment",Fe.FRAGMENT_DEFINITION="FragmentDefinition",Fe.VARIABLE="Variable",Fe.INT="IntValue",Fe.FLOAT="FloatValue",Fe.STRING="StringValue",Fe.BOOLEAN="BooleanValue",Fe.NULL="NullValue",Fe.ENUM="EnumValue",Fe.LIST="ListValue",Fe.OBJECT="ObjectValue",Fe.OBJECT_FIELD="ObjectField",Fe.DIRECTIVE="Directive",Fe.NAMED_TYPE="NamedType",Fe.LIST_TYPE="ListType",Fe.NON_NULL_TYPE="NonNullType",Fe.SCHEMA_DEFINITION="SchemaDefinition",Fe.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",Fe.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",Fe.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",Fe.FIELD_DEFINITION="FieldDefinition",Fe.INPUT_VALUE_DEFINITION="InputValueDefinition",Fe.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",Fe.UNION_TYPE_DEFINITION="UnionTypeDefinition",Fe.ENUM_TYPE_DEFINITION="EnumTypeDefinition",Fe.ENUM_VALUE_DEFINITION="EnumValueDefinition",Fe.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",Fe.DIRECTIVE_DEFINITION="DirectiveDefinition",Fe.SCHEMA_EXTENSION="SchemaExtension",Fe.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",Fe.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",Fe.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",Fe.UNION_TYPE_EXTENSION="UnionTypeExtension",Fe.ENUM_TYPE_EXTENSION="EnumTypeExtension",Fe.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";class Re{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class He{constructor(e,t,n,r,i,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Ue={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},ze=new Set(Object.keys(Ue));function We(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&ze.has(t)}let Be,qe;var Ve;function $e(e){return function e(t,n){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,n){if(null===t)return"null";if(n.includes(t))return"[Circular]";const r=[...n,t];if(function(e){return"function"==typeof e.toJSON}(t)){const n=t.toJSON();if(n!==t)return"string"==typeof n?n:e(n,r)}else if(Array.isArray(t))return function(t,n){if(0===t.length)return"[]";if(n.length>2)return"[Array]";const r=Math.min(10,t.length),i=t.length-r,a=[];for(let i=0;i<r;++i)a.push(e(t[i],n));return 1===i?a.push("... 1 more item"):i>1&&a.push(`... ${i} more items`),"["+a.join(", ")+"]"}(t,r);return function(t,n){const r=Object.entries(t);return 0===r.length?"{}":n.length>2?"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(t)+"]":"{ "+r.map(([t,r])=>t+": "+e(r,n)).join(", ")+" }"}(t,r)}(t,n);default:return String(t)}}(e,[])}function Ge(e,t){if(!Boolean(e))throw new Error(t)}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(Be||(Be={})),(Ve=qe||(qe={})).SOF="<SOF>",Ve.EOF="<EOF>",Ve.BANG="!",Ve.DOLLAR="$",Ve.AMP="&",Ve.PAREN_L="(",Ve.PAREN_R=")",Ve.SPREAD="...",Ve.COLON=":",Ve.EQUALS="=",Ve.AT="@",Ve.BRACKET_L="[",Ve.BRACKET_R="]",Ve.BRACE_L="{",Ve.PIPE="|",Ve.BRACE_R="}",Ve.NAME="Name",Ve.INT="Int",Ve.FLOAT="Float",Ve.STRING="String",Ve.BLOCK_STRING="BlockString",Ve.COMMENT="Comment";class Qe{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||Ge(!1,`Body must be a string. Received: ${$e(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Ge(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ge(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}let Je;function Ke(e){const t=e.split(/\r\n|[\n\r]/g),n=function(e){var t;let n=!0,r=!0,i=0,a=null;for(let t=0;t<e.length;++t)switch(e.charCodeAt(t)){case 13:10===e.charCodeAt(t+1)&&++t;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===a||i<a)&&(a=i),r=!1}return null!==(t=a)&&void 0!==t?t:0}(e);if(0!==n)for(let e=1;e<t.length;e++)t[e]=t[e].slice(n);let r=0;for(;r<t.length&&Xe(t[r]);)++r;let i=t.length;for(;i>r&&Xe(t[i-1]);)--i;return t.slice(r,i).join("\n")}function Xe(e){for(const t of e)if(" "!==t&&"\t"!==t)return!1;return!0}function Ze(e){return e>=48&&e<=57}function et(e){return e>=97&&e<=122||e>=65&&e<=90}function tt(e){return et(e)||95===e}!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(Je||(Je={}));class nt{constructor(e){const t=new He(qe.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==qe.EOF)do{if(e.next)e=e.next;else{const t=lt(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===qe.COMMENT);return e}}function rt(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function it(e,t){return at(e.charCodeAt(t))&&ot(e.charCodeAt(t+1))}function at(e){return e>=55296&&e<=56319}function ot(e){return e>=56320&&e<=57343}function st(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return qe.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function ut(e,t,n,r,i){const a=e.line,o=1+n-e.lineStart;return new He(t,n,r,a,o,i)}function lt(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return ct(e,i);case 33:return ut(e,qe.BANG,i,i+1);case 36:return ut(e,qe.DOLLAR,i,i+1);case 38:return ut(e,qe.AMP,i,i+1);case 40:return ut(e,qe.PAREN_L,i,i+1);case 41:return ut(e,qe.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return ut(e,qe.SPREAD,i,i+3);break;case 58:return ut(e,qe.COLON,i,i+1);case 61:return ut(e,qe.EQUALS,i,i+1);case 64:return ut(e,qe.AT,i,i+1);case 91:return ut(e,qe.BRACKET_L,i,i+1);case 93:return ut(e,qe.BRACKET_R,i,i+1);case 123:return ut(e,qe.BRACE_L,i,i+1);case 124:return ut(e,qe.PIPE,i,i+1);case 125:return ut(e,qe.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?gt(e,i):ht(e,i)}if(Ze(t)||45===t)return dt(e,i,t);if(tt(t))return bt(e,i);throw Ie(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":rt(t)||it(n,i)?`Unexpected character: ${st(e,i)}.`:`Invalid character: ${st(e,i)}.`)}return ut(e,qe.EOF,r,r)}function ct(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(rt(e))++i;else{if(!it(n,i))break;i+=2}}return ut(e,qe.COMMENT,t,i,n.slice(t+1,i))}function dt(e,t,n){const r=e.source.body;let i=t,a=n,o=!1;if(45===a&&(a=r.charCodeAt(++i)),48===a){if(a=r.charCodeAt(++i),Ze(a))throw Ie(e.source,i,`Invalid number, unexpected digit after 0: ${st(e,i)}.`)}else i=ft(e,i,a),a=r.charCodeAt(i);if(46===a&&(o=!0,a=r.charCodeAt(++i),i=ft(e,i,a),a=r.charCodeAt(i)),69!==a&&101!==a||(o=!0,a=r.charCodeAt(++i),43!==a&&45!==a||(a=r.charCodeAt(++i)),i=ft(e,i,a),a=r.charCodeAt(i)),46===a||tt(a))throw Ie(e.source,i,`Invalid number, expected digit but got: ${st(e,i)}.`);return ut(e,o?qe.FLOAT:qe.INT,t,i,r.slice(t,i))}function ft(e,t,n){if(!Ze(n))throw Ie(e.source,t,`Invalid number, expected digit but got: ${st(e,t)}.`);const r=e.source.body;let i=t+1;for(;Ze(r.charCodeAt(i));)++i;return i}function ht(e,t){const n=e.source.body,r=n.length;let i=t+1,a=i,o="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return o+=n.slice(a,i),ut(e,qe.STRING,t,i+1,o);if(92!==r){if(10===r||13===r)break;if(rt(r))++i;else{if(!it(n,i))throw Ie(e.source,i,`Invalid character within String: ${st(e,i)}.`);i+=2}}else{o+=n.slice(a,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?pt(e,i):mt(e,i):vt(e,i);o+=t.value,i+=t.size,a=i}}throw Ie(e.source,i,"Unterminated string.")}function pt(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!rt(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|yt(e),r<0)break}throw Ie(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function mt(e,t){const n=e.source.body,r=_t(n,t+2);if(rt(r))return{value:String.fromCodePoint(r),size:6};if(at(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=_t(n,t+8);if(ot(e))return{value:String.fromCodePoint(r,e),size:12}}throw Ie(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function _t(e,t){return yt(e.charCodeAt(t))<<12|yt(e.charCodeAt(t+1))<<8|yt(e.charCodeAt(t+2))<<4|yt(e.charCodeAt(t+3))}function yt(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function vt(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw Ie(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function gt(e,t){const n=e.source.body,r=n.length,i=e.line,a=1+t-e.lineStart;let o=t+3,s=o,u="";for(;o<r;){const r=n.charCodeAt(o);if(34===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2))return u+=n.slice(s,o),new He(qe.BLOCK_STRING,t,o+3,i,a,Ke(u));if(92!==r||34!==n.charCodeAt(o+1)||34!==n.charCodeAt(o+2)||34!==n.charCodeAt(o+3))if(10!==r&&13!==r)if(rt(r))++o;else{if(!it(n,o))throw Ie(e.source,o,`Invalid character within String: ${st(e,o)}.`);o+=2}else 13===r&&10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;else u+=n.slice(s,o)+'"""',o+=4,s=o}throw Ie(e.source,o,"Unterminated string.")}function bt(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r&&(et(a=n.charCodeAt(i))||Ze(a)||95===a);)++i;var a;return ut(e,qe.NAME,t,i,n.slice(t,i))}class Mt{constructor(e,t){const n=function(e){return e instanceof Qe}(e)?e:new Qe(e);this._lexer=new nt(n),this._options=t}parseName(){const e=this.expectToken(qe.NAME);return this.node(e,{kind:Ne.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:Ne.DOCUMENT,definitions:this.many(qe.SOF,this.parseDefinition,qe.EOF)})}parseDefinition(){if(this.peek(qe.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===qe.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw Ie(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(qe.BRACE_L))return this.node(e,{kind:Ne.OPERATION_DEFINITION,operation:Be.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(qe.NAME)&&(n=this.parseName()),this.node(e,{kind:Ne.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(qe.NAME);switch(e.value){case"query":return Be.QUERY;case"mutation":return Be.MUTATION;case"subscription":return Be.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(qe.PAREN_L,this.parseVariableDefinition,qe.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Ne.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(qe.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(qe.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(qe.DOLLAR),this.node(e,{kind:Ne.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Ne.SELECTION_SET,selections:this.many(qe.BRACE_L,this.parseSelection,qe.BRACE_R)})}parseSelection(){return this.peek(qe.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(qe.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:Ne.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(qe.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(qe.PAREN_L,t,qe.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(qe.COLON),this.node(t,{kind:Ne.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(qe.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(qe.NAME)?this.node(e,{kind:Ne.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:Ne.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var e;const t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacyFragmentVariables)?this.node(t,{kind:Ne.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:Ne.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case qe.BRACKET_L:return this.parseList(e);case qe.BRACE_L:return this.parseObject(e);case qe.INT:return this._lexer.advance(),this.node(t,{kind:Ne.INT,value:t.value});case qe.FLOAT:return this._lexer.advance(),this.node(t,{kind:Ne.FLOAT,value:t.value});case qe.STRING:case qe.BLOCK_STRING:return this.parseStringLiteral();case qe.NAME:switch(this._lexer.advance(),t.value){case"true":return this.node(t,{kind:Ne.BOOLEAN,value:!0});case"false":return this.node(t,{kind:Ne.BOOLEAN,value:!1});case"null":return this.node(t,{kind:Ne.NULL});default:return this.node(t,{kind:Ne.ENUM,value:t.value})}case qe.DOLLAR:if(e){if(this.expectToken(qe.DOLLAR),this._lexer.token.kind===qe.NAME){const e=this._lexer.token.value;throw Ie(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable()}throw this.unexpected()}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this._lexer.advance(),this.node(e,{kind:Ne.STRING,value:e.value,block:e.kind===qe.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:Ne.LIST,values:this.any(qe.BRACKET_L,()=>this.parseValueLiteral(e),qe.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:Ne.OBJECT,fields:this.any(qe.BRACE_L,()=>this.parseObjectField(e),qe.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(qe.COLON),this.node(t,{kind:Ne.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(qe.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(qe.AT),this.node(t,{kind:Ne.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(qe.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(qe.BRACKET_R),t=this.node(e,{kind:Ne.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(qe.BANG)?this.node(e,{kind:Ne.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:Ne.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(qe.STRING)||this.peek(qe.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(qe.BRACE_L,this.parseOperationTypeDefinition,qe.BRACE_R);return this.node(e,{kind:Ne.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(qe.COLON);const n=this.parseNamedType();return this.node(e,{kind:Ne.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:Ne.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:Ne.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(qe.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(qe.BRACE_L,this.parseFieldDefinition,qe.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(qe.COLON);const i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:Ne.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(qe.PAREN_L,this.parseInputValueDef,qe.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(qe.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(qe.EQUALS)&&(i=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:Ne.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:Ne.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:Ne.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(qe.EQUALS)?this.delimitedMany(qe.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:Ne.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(qe.BRACE_L,this.parseEnumValueDefinition,qe.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:Ne.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw Ie(this._lexer.source,this._lexer.token.start,wt(this._lexer.token)+" is reserved and cannot be used for an enum value.");return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:Ne.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(qe.BRACE_L,this.parseInputValueDef,qe.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===qe.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(qe.BRACE_L,this.parseOperationTypeDefinition,qe.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:Ne.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:Ne.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:Ne.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:Ne.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:Ne.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:Ne.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:Ne.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(qe.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:Ne.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany(qe.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(Je,t.value))return t;throw this.unexpected(e)}node(e,t){var n;return!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation)&&(t.loc=new Re(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw Ie(this._lexer.source,t.start,`Expected ${kt(e)}, found ${wt(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this._lexer.advance(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==qe.NAME||t.value!==e)throw Ie(this._lexer.source,t.start,`Expected "${e}", found ${wt(t)}.`);this._lexer.advance()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===qe.NAME&&t.value===e&&(this._lexer.advance(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return Ie(this._lexer.source,t.start,`Unexpected ${wt(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}}function wt(e){const t=e.value;return kt(e.kind)+(null!=t?` "${t}"`:"")}function kt(e){return function(e){return e===qe.BANG||e===qe.DOLLAR||e===qe.AMP||e===qe.PAREN_L||e===qe.PAREN_R||e===qe.SPREAD||e===qe.COLON||e===qe.EQUALS||e===qe.AT||e===qe.BRACKET_L||e===qe.BRACKET_R||e===qe.BRACE_L||e===qe.PIPE||e===qe.BRACE_R}(e)?`"${e}"`:e}var Lt=new Map,Tt=new Map,Dt=!0,St=!1;function Et(e){return e.replace(/[\s,]+/g," ").trim()}function Yt(e){var t,n,r,i=Et(e);if(!Lt.has(i)){var a=function(e,t){return new Mt(e,t).parseDocument()}(e,{experimentalFragmentVariables:St,allowLegacyFragmentVariables:St});if(!a||"Document"!==a.kind)throw new Error("Not a valid GraphQL document.");Lt.set(i,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=a,n=new Set,r=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=Et((o=e.loc).source.body.substring(o.start,o.end)),a=Tt.get(t);a&&!a.has(i)?Dt&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||Tt.set(t,a=new Set),a.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e);var o})),Le(Le({},t),{definitions:r}))))}return Lt.get(i)}function xt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),Yt(r)}var Ot,jt=xt;(Ot=xt||(xt={})).gql=jt,Ot.resetCaches=function(){Lt.clear(),Tt.clear()},Ot.disableFragmentWarnings=function(){Dt=!1},Ot.enableExperimentalFragmentVariables=function(){St=!0},Ot.disableExperimentalFragmentVariables=function(){St=!1},xt.default=xt;var Pt,Ct,At=xt(Nt||(Pt=["\n query SdkConfiguration {\n sdkConfiguration {\n sentryDsn\n }\n }\n"],Ct=["\n query SdkConfiguration {\n sdkConfiguration {\n sentryDsn\n }\n }\n"],Object.defineProperty?Object.defineProperty(Pt,"raw",{value:Ct}):Pt.raw=Ct,Nt=Pt));const It=function(){function e(e){this.client=e}return e.prototype.getSdkConfiguration=function(){return e=this,n=function(){return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(e){switch(e.label){case 0:return[4,this.client.query({query:At})];case 1:return[2,e.sent().data.sdkConfiguration]}}))},new((t=void 0)||(t=Promise))((function(r,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function o(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,o)}s((n=n.apply(e,[])).next())}));var e,t,n},e}();var Nt,Ft,Rt=xt(Ft||(Ft=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}(["\n fragment PriceFragment on Price {\n billingModel\n billingPeriod\n price {\n amount\n currency\n }\n feature {\n featureUnits\n featureUnitsPlural\n displayName\n }\n }\n"],["\n fragment PriceFragment on Price {\n billingModel\n billingPeriod\n price {\n amount\n currency\n }\n feature {\n featureUnits\n featureUnitsPlural\n displayName\n }\n }\n"]))),Ht=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Ut=xt(qt||(qt=Ht(["\n fragment PackageEntitlementFragment on PackageEntitlement {\n usageLimit\n hasUnlimitedUsage\n featureId\n resetPeriod\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n"],["\n fragment PackageEntitlementFragment on PackageEntitlement {\n usageLimit\n hasUnlimitedUsage\n featureId\n resetPeriod\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n"]))),zt=xt(Vt||(Vt=Ht(["\n fragment AddonFragment on Addon {\n refId\n displayName\n description\n additionalMetaData\n entitlements {\n ...PackageEntitlementFragment\n }\n prices {\n ...PriceFragment\n }\n pricingType\n }\n"],["\n fragment AddonFragment on Addon {\n refId\n displayName\n description\n additionalMetaData\n entitlements {\n ...PackageEntitlementFragment\n }\n prices {\n ...PriceFragment\n }\n pricingType\n }\n"]))),Wt=xt($t||($t=Ht(["\n fragment PlanFragment on Plan {\n id\n refId\n description\n displayName\n additionalMetaData\n product {\n refId\n displayName\n description\n additionalMetaData\n }\n basePlan {\n id\n refId\n displayName\n }\n entitlements {\n ...PackageEntitlementFragment\n }\n inheritedEntitlements {\n ...PackageEntitlementFragment\n }\n prices {\n ...PriceFragment\n }\n pricingType\n defaultTrialConfig {\n duration\n units\n }\n }\n ","\n ","\n ","\n"],["\n fragment PlanFragment on Plan {\n id\n refId\n description\n displayName\n additionalMetaData\n product {\n refId\n displayName\n description\n additionalMetaData\n }\n basePlan {\n id\n refId\n displayName\n }\n entitlements {\n ...PackageEntitlementFragment\n }\n inheritedEntitlements {\n ...PackageEntitlementFragment\n }\n prices {\n ...PriceFragment\n }\n pricingType\n defaultTrialConfig {\n duration\n units\n }\n }\n ","\n ","\n ","\n"])),Ut,Rt,zt);const Bt=function(){function e(e){this.client=e}return e.prototype.getPlans=function(e){return this.client.query({query:xt(Gt||(Gt=Ht(["\n query GetPlans($paging: CursorPaging, $filter: PlanFilter, $addonFilter: AddonFilter, $sorting: [PlanSort!]) {\n plans(paging: $paging, filter: $filter, sorting: $sorting) {\n edges {\n node {\n ...PlanFragment\n compatibleAddons(filter: $addonFilter) {\n ...AddonFragment\n }\n }\n }\n }\n }\n ","\n "],["\n query GetPlans($paging: CursorPaging, $filter: PlanFilter, $addonFilter: AddonFilter, $sorting: [PlanSort!]) {\n plans(paging: $paging, filter: $filter, sorting: $sorting) {\n edges {\n node {\n ...PlanFragment\n compatibleAddons(filter: $addonFilter) {\n ...AddonFragment\n }\n }\n }\n }\n }\n ","\n "])),Wt),fetchPolicy:"no-cache",variables:{paging:{first:50},filter:{status:{eq:H.Published},isLatest:{is:!0},product:e?{refId:{eq:e}}:{}},addonFilter:{status:{eq:H.Published},isLatest:{is:!0}},sorting:[{field:z.RefId,direction:J.Asc}]}})},e}();var qt,Vt,$t,Gt,Qt=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Jt=xt(tn||(tn=Qt(["\n fragment TotalPriceFragment on CustomerSubscriptionTotalPrice {\n subTotal {\n amount\n currency\n }\n total {\n amount\n currency\n }\n }\n"],["\n fragment TotalPriceFragment on CustomerSubscriptionTotalPrice {\n subTotal {\n amount\n currency\n }\n total {\n amount\n currency\n }\n }\n"]))),Kt=xt(nn||(nn=Qt(["\n fragment SubscriptionFragment on CustomerSubscription {\n id\n startDate\n endDate\n trialEndDate\n cancellationDate\n effectiveEndDate\n status\n refId\n currentBillingPeriodEnd\n additionalMetaData\n prices {\n usageLimit\n price {\n ...PriceFragment\n }\n }\n pricingType\n totalPrice {\n ...TotalPriceFragment\n }\n plan {\n id\n refId\n displayName\n description\n additionalMetaData\n product {\n refId\n displayName\n }\n entitlements {\n usageLimit\n featureId\n hasUnlimitedUsage\n packageId\n resetPeriod\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n inheritedEntitlements {\n usageLimit\n featureId\n hasUnlimitedUsage\n packageId\n resetPeriod\n packageId\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n prices {\n ...PriceFragment\n }\n }\n addons {\n id\n quantity\n addon {\n id\n refId\n displayName\n description\n additionalMetaData\n entitlements {\n usageLimit\n hasUnlimitedUsage\n featureId\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n }\n }\n }\n ","\n ","\n"],["\n fragment SubscriptionFragment on CustomerSubscription {\n id\n startDate\n endDate\n trialEndDate\n cancellationDate\n effectiveEndDate\n status\n refId\n currentBillingPeriodEnd\n additionalMetaData\n prices {\n usageLimit\n price {\n ...PriceFragment\n }\n }\n pricingType\n totalPrice {\n ...TotalPriceFragment\n }\n plan {\n id\n refId\n displayName\n description\n additionalMetaData\n product {\n refId\n displayName\n }\n entitlements {\n usageLimit\n featureId\n hasUnlimitedUsage\n packageId\n resetPeriod\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n inheritedEntitlements {\n usageLimit\n featureId\n hasUnlimitedUsage\n packageId\n resetPeriod\n packageId\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n prices {\n ...PriceFragment\n }\n }\n addons {\n id\n quantity\n addon {\n id\n refId\n displayName\n description\n additionalMetaData\n entitlements {\n usageLimit\n hasUnlimitedUsage\n featureId\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n }\n }\n }\n ","\n ","\n"])),Rt,Jt),Xt=xt(rn||(rn=Qt(["\n fragment PromotionalEntitlementFragment on PromotionalEntitlement {\n status\n usageLimit\n featureId\n hasUnlimitedUsage\n resetPeriod\n endDate\n isVisible\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n"],["\n fragment PromotionalEntitlementFragment on PromotionalEntitlement {\n status\n usageLimit\n featureId\n hasUnlimitedUsage\n resetPeriod\n endDate\n isVisible\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n }\n }\n"]))),Zt=xt(an||(an=Qt(["\n fragment CustomerFragment on Customer {\n id\n name\n email\n createdAt\n updatedAt\n hasPaymentMethod\n refId\n additionalMetaData\n trialedPlans {\n productId\n productRefId\n planRefId\n planId\n }\n promotionalEntitlements {\n ...PromotionalEntitlementFragment\n }\n subscriptions {\n ...SubscriptionFragment\n }\n }\n ","\n ","\n"],["\n fragment CustomerFragment on Customer {\n id\n name\n email\n createdAt\n updatedAt\n hasPaymentMethod\n refId\n additionalMetaData\n trialedPlans {\n productId\n productRefId\n planRefId\n planId\n }\n promotionalEntitlements {\n ...PromotionalEntitlementFragment\n }\n subscriptions {\n ...SubscriptionFragment\n }\n }\n ","\n ","\n"])),Kt,Xt);const en=function(){function e(e){this.client=e}return e.prototype.getCustomer=function(e){return this.client.query({query:xt(on||(on=Qt(["\n query GetCustomerByRefId($filter: CustomerFilter) {\n customers(filter: $filter) {\n edges {\n node {\n ...CustomerFragment\n }\n }\n }\n }\n ","\n "],["\n query GetCustomerByRefId($filter: CustomerFilter) {\n customers(filter: $filter) {\n edges {\n node {\n ...CustomerFragment\n }\n }\n }\n }\n ","\n "])),Zt),variables:{filter:{refId:{eq:e}}},fetchPolicy:"no-cache"})},e}();var tn,nn,rn,an,on,sn=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},un=xt(dn||(dn=sn(["\n fragment CouponFragment on Coupon {\n id\n discountValue\n type\n additionalMetaData\n refId\n name\n description\n createdAt\n updatedAt\n billingId\n billingLinkUrl\n type\n status\n syncStates {\n vendorIdentifier\n status\n }\n customers {\n id\n }\n }\n"],["\n fragment CouponFragment on Coupon {\n id\n discountValue\n type\n additionalMetaData\n refId\n name\n description\n createdAt\n updatedAt\n billingId\n billingLinkUrl\n type\n status\n syncStates {\n vendorIdentifier\n status\n }\n customers {\n id\n }\n }\n"]))),ln=xt(fn||(fn=sn(["\n ","\n query FetchCoupons($filter: CouponFilter, $sorting: [CouponSort!], $paging: CursorPaging) {\n coupons(filter: $filter, sorting: $sorting, paging: $paging) {\n edges {\n node {\n ...CouponFragment\n }\n }\n }\n }\n"],["\n ","\n query FetchCoupons($filter: CouponFilter, $sorting: [CouponSort!], $paging: CursorPaging) {\n coupons(filter: $filter, sorting: $sorting, paging: $paging) {\n edges {\n node {\n ...CouponFragment\n }\n }\n }\n }\n"])),un);const cn=function(){function e(e){this.client=e}return e.prototype.getCoupons=function(){return this.client.query({query:ln,fetchPolicy:"no-cache",variables:{paging:{first:50},filter:{status:{eq:y.Active}}}})},e}();var dn,fn;const hn=function(e){this.sdkConfiguration=new It(e),this.paywall=new Bt(e),this.customers=new en(e),this.coupons=new cn(e)};var pn=r(1609),mn=r.n(pn),_n=r(2492),yn=r.n(_n),vn=X.JsClientSdk;function gn(e){var t=e.customerId;if(!t||mn()(t))throw new Error("You must set customer ID first, use setCustomerId function or pass it via the constructor");return t}var bn=r(5161),Mn=r.n(bn),wn=r(9734),kn=r.n(wn),Ln=function(){return(Ln=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Tn=function(){function e(){this.getResetPeriodData=function(e,t){switch(e){case _e.Monthly:return{monthlyResetPeriodConfiguration:{accordingTo:t.monthlyAccordingTo||N.SubscriptionStart}};case _e.Weekly:return{weeklyResetPeriodConfiguration:{accordingTo:t.weeklyAccordingTo||fe.EveryFriday}};default:return{}}}}return e.prototype.mapBooleanEntitlement=function(e,t){return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,feature:e.calculatedEntitlement.feature?Ln(Ln({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapNumericEntitlement=function(e,t){var n=e.calculatedEntitlement,r=n.hasUnlimitedUsage,i=n.usageLimit;return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:r,value:i||void 0,feature:e.calculatedEntitlement.feature?Ln(Ln({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapMeteredEntitlement=function(e,t,n){var r=e.calculatedEntitlement,i=r.hasUnlimitedUsage,a=r.usageLimit,o=r.feature,s=e.featureUsage,u=s.currentUsage,l=s.nextResetDate,c=s.resetPeriod,d=null;return o&&o.featureType===pe.Numeric&&o.meterType===I.Incremental&&c&&(d={nextResetDate:l,resetPeriod:c}),{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:i,usageLimit:a||void 0,currentUsage:u,requestedUsage:n||0,resetSettings:d||void 0,feature:e.calculatedEntitlement.feature?Ln(Ln({},e.calculatedEntitlement.feature),{meterType:e.calculatedEntitlement.feature.meterType||void 0,isMetered:!0}):void 0}},e.prototype.mapEntitlement=function(e,t,n){var r=e.calculatedEntitlement;if(!r.feature)return this.mapBooleanEntitlement(e,t);var i=r.feature,a=i.featureType,o=i.meterType,s=a===pe.Numeric&&(o===I.Incremental||o===I.Fluctuating);switch(a){case pe.Boolean:return this.mapBooleanEntitlement(e,t);case pe.Numeric:return s?this.mapMeteredEntitlement(e,t,n):this.mapNumericEntitlement(e,t)}},e.prototype.mapFeatureType=function(e){switch(e){case Y.Boolean:return pe.Boolean;case Y.Number:return pe.Numeric}},e.prototype.mapEntitlementResetPeriod=function(e){switch(e){case w.Day:return _e.Daily;case w.Hour:return _e.Hourly;case w.Week:return _e.Weekly;case w.Month:return _e.Monthly}},e.prototype.mapApiEntitlementResetPeriod=function(e){switch(e){case _e.Daily:return w.Day;case _e.Hourly:return w.Hour;case _e.Weekly:return w.Week;case _e.Monthly:return w.Month}},e.prototype.mapCachedEntitlement=function(e,t,n){var r;return e.feature&&(r={id:e.feature.refId,featureType:this.mapFeatureType(e.feature.featureType),meterType:e.feature.meterType||void 0,units:e.feature.featureUnits||void 0,unitsPlural:e.feature.featureUnitsPlural||void 0,displayName:e.feature.displayName,description:e.feature.description||""}),{calculatedEntitlement:{usageLimit:e.usageLimit,hasUnlimitedUsage:e.hasUnlimitedUsage,feature:r},featureUsage:{resetPeriod:e.resetPeriod?this.mapEntitlementResetPeriod(e.resetPeriod):void 0,resetPeriodConfiguration:e.resetPeriodConfiguration,currentUsage:t||e.currentUsage||0,nextResetDate:n||e.nextResetDate}}},e.prototype.mapCachedEntitlements=function(e){var t=this;return new Map(e.map((function(e){var n;return[(null===(n=e.feature)||void 0===n?void 0:n.refId)||"",t.mapCachedEntitlement(e)]})))},e.prototype.mapPlans=function(e){var t=this,n=e.plans.edges.map((function(e){return e.node}));return this.sortPlans(n).map((function(e,n){return t.mapPlan(e,n)}))},e.prototype.mapCoupons=function(e){var t=this;return e.coupons.edges.map((function(e){return e.node})).map((function(e){return t.mapCoupon(e)}))},e.prototype.mapCustomer=function(e){var t,n=this;return new Me({id:e.refId,name:e.name||void 0,email:e.email||void 0,createdAt:new Date(e.createdAt),updatedAt:new Date(e.updatedAt),hasPaymentMethod:e.hasPaymentMethod,subscriptions:Mn()(e.subscriptions,(function(e){return n.mapSubscription(e)})),promotionalEntitlements:Mn()(e.promotionalEntitlements,(function(e){return n.mapPromotionalEntitlement(e)})),metadata:e.additionalMetaData,trialedPlans:(null===(t=e.trialedPlans)||void 0===t?void 0:t.map((function(e){return{productId:e.productRefId,planId:e.planRefId}})))||void 0})},e.prototype.mapTotalPrice=function(e,t,n){var r=e.feature,i=e.price,a={pricingModel:e.billingModel,billingPeriod:e.billingPeriod,amount:t.total.amount,grossAmount:t.subTotal.amount,currency:i.currency};return r&&(a.feature={displayName:r.displayName,units:r.featureUnits,unitsPlural:r.featureUnitsPlural,unitQuantity:n}),a},e.prototype.mapPrice=function(e,t){var n=e.feature,r=e.price,i={pricingModel:e.billingModel,billingPeriod:e.billingPeriod,amount:r.amount,currency:r.currency};return n&&(i.feature={displayName:n.displayName,units:n.featureUnits,unitsPlural:n.featureUnitsPlural,unitQuantity:t}),i},e.prototype.mapPlan=function(e,t){var n=this;return void 0===t&&(t=0),{id:e.refId,order:t,displayName:e.displayName,description:e.description,basePlan:e.basePlan?{id:e.basePlan.refId,displayName:e.basePlan.displayName}:void 0,entitlements:Mn()(e.entitlements,(function(e){return n.mapPackageEntitlement(e)})),inheritedEntitlements:Mn()(e.inheritedEntitlements,(function(e){return n.mapPackageEntitlement(e)})),pricePoints:Mn()(e.prices,(function(e){return n.mapPrice(e)})),pricingType:e.pricingType,defaultTrialConfig:e.defaultTrialConfig,compatibleAddons:this.mapCompatibleAddons(e),product:{id:e.product.refId,displayName:e.product.displayName,description:e.product.description,metadata:e.product.additionalMetaData},metadata:e.additionalMetaData}},e.prototype.mapCompatibleAddons=function(e){var t=this;if(e.pricingType===B.Free||!e.compatibleAddons)return[];var n=e.compatibleAddons;return(e.pricingType===B.Paid?n.filter((function(e){return e.pricingType===B.Paid})):n).map((function(e){return t.mapAddon(e)}))},e.prototype.mapPackageEntitlement=function(e){var t=e.feature;return{usageLimit:e.usageLimit||0,feature:{id:t.refId,featureType:this.mapFeatureType(t.featureType),description:t.description||"",meterType:t.meterType||void 0,units:t.featureUnits||void 0,unitsPlural:t.featureUnitsPlural||void 0,displayName:t.displayName,isMetered:t.meterType===I.Fluctuating||t.meterType===I.Incremental},hasUnlimitedUsage:e.hasUnlimitedUsage,resetPeriod:e.resetPeriod?this.mapEntitlementResetPeriod(e.resetPeriod):void 0}},e.prototype.mapPromotionalEntitlement=function(e){var t=e.feature;return{status:e.status,usageLimit:e.usageLimit||0,feature:{id:t.refId,displayName:t.displayName,description:t.description||"",featureType:this.mapFeatureType(t.featureType),meterType:t.meterType||void 0,units:t.featureUnits||void 0,unitsPlural:t.featureUnitsPlural||void 0,isMetered:t.meterType===I.Fluctuating||t.meterType===I.Incremental},hasUnlimitedUsage:e.hasUnlimitedUsage,expiresAt:e.endDate,hasExpirationDate:!!e.endDate,isVisible:e.isVisible}},e.prototype.mapSubscription=function(e){var t,n=this,r=e.totalPrice,i=(e.prices||[])[0];return{id:e.refId,status:e.status,currentBillingPeriodEnd:this.mapDate(e.currentBillingPeriodEnd),plan:this.mapPlan(e.plan),price:i&&r?this.mapTotalPrice(i.price,r,i.usageLimit):null,pricingType:e.pricingType,addons:(null===(t=e.addons)||void 0===t?void 0:t.map((function(e){var t=e.quantity,r=e.addon;return{quantity:t,addon:n.mapAddon(r)}})))||[],startDate:e.startDate,endDate:this.mapDate(e.endDate),trialEndDate:this.mapDate(e.trialEndDate),cancellationDate:this.mapDate(e.cancellationDate),effectiveEndDate:this.mapDate(e.effectiveEndDate),metadata:e.additionalMetaData}},e.prototype.mapDate=function(e){return e?new Date(e):void 0},e.prototype.mapAddon=function(e){var t=this;return{id:e.refId,displayName:e.displayName,description:e.description||"",entitlements:Mn()(e.entitlements,(function(e){return t.mapPackageEntitlement(e)})),pricePoints:Mn()(e.prices,(function(e){return t.mapPrice(e)})),pricingType:e.pricingType,metadata:e.additionalMetaData}},e.prototype.sortPlans=function(e){var t=kn()(e.filter((function(e){return!e.basePlan})),(function(e){return e.refId})),n=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}([],t,!0);return t.forEach((function(t){return function e(t,n,r){var i=kn()(n.filter((function(e){var n;return(null===(n=e.basePlan)||void 0===n?void 0:n.refId)===t})),(function(e){return e.refId}));r.push.apply(r,i),r.length!==n.length&&i.forEach((function(t){return e(t.refId,n,r)}))}(t.refId,e,n)})),n},e.prototype.mapAccessDeniedReason=function(e){switch(e){case he.InvalidFeatureType:return l.Unknown;case he.CustomerNotFound:return l.CustomerNotFound;case he.FeatureNotFound:return l.FeatureNotFound;case he.NoActiveSubscriptions:return l.NoActiveSubscription;case he.CustomerNotEntitledForFeature:return l.NoFeatureEntitlementInSubscription;case he.RequestedUsageExceedsLimit:return l.RequestedUsageExceedingLimit;case he.Unknown:return l.Unknown}},e.prototype.mapFallbackBooleanEntitlementResult=function(e,t){return{hasAccess:e.hasAccess,accessDeniedReason:t.accessDeniedReason?this.mapAccessDeniedReason(t.accessDeniedReason):void 0}},e.prototype.mapFallbackNumericEntitlementResult=function(e,t){return{hasAccess:e.hasAccess,accessDeniedReason:t.accessDeniedReason?this.mapAccessDeniedReason(t.accessDeniedReason):void 0,usageLimit:e.value,hasUnlimitedUsage:e.isUnlimited}},e.prototype.mapEntitlementResult=function(e,t,n){return Ln({hasAccess:e.hasAccess,accessDeniedReason:e.accessDeniedReason?this.mapAccessDeniedReason(e.accessDeniedReason):void 0,hasUnlimitedUsage:null==t?void 0:t.calculatedEntitlement.hasUnlimitedUsage,usageLimit:null==t?void 0:t.calculatedEntitlement.usageLimit,currentUsage:null==t?void 0:t.featureUsage.currentUsage,requestedUsage:n,nextResetDate:null==t?void 0:t.featureUsage.nextResetDate,resetPeriod:(null==t?void 0:t.featureUsage.resetPeriod)?this.mapApiEntitlementResetPeriod(t.featureUsage.resetPeriod):void 0},this.getResetPeriodData(null==t?void 0:t.featureUsage.resetPeriod,null==t?void 0:t.featureUsage.resetPeriodConfiguration))},e.prototype.mapFallbackMeteredEntitlementResult=function(e,t,n){return{hasAccess:e.hasAccess,accessDeniedReason:t.accessDeniedReason?this.mapAccessDeniedReason(t.accessDeniedReason):void 0,hasUnlimitedUsage:e.isUnlimited,usageLimit:e.usageLimit,requestedUsage:n}},e.prototype.mapCoupon=function(e){return{id:e.refId,name:e.name,description:e.description,metadata:e.additionalMetaData,discountValue:e.discountValue}},e}(),Dn="Invariant Violation",Sn=Object.setPrototypeOf,En=void 0===Sn?function(e,t){return e.__proto__=t,e}:Sn,Yn=function(e){function t(n){void 0===n&&(n=Dn);var r=e.call(this,"number"==typeof n?Dn+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=Dn,En(r,t.prototype),r}return ke(t,e),t}(Error);function xn(e,t){if(!e)throw new Yn(t)}var On=["debug","log","warn","error","silent"],jn=On.indexOf("log");function Pn(e){return function(){if(On.indexOf(e)>=jn){var t=console[e]||console.log;return t.apply(console,arguments)}}}function Cn(e){try{return e()}catch(e){}}!function(e){e.debug=Pn("debug"),e.log=Pn("log"),e.warn=Pn("warn"),e.error=Pn("error")}(xn||(xn={}));const An=Cn((function(){return globalThis}))||Cn((function(){return window}))||Cn((function(){return self}))||Cn((function(){return r.g}))||Cn((function(){return Function("return this")()}));var In="__",Nn=[In,In].join("DEV");const Fn=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(An,Nn,{value:"production"!==Cn((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),An[Nn]}}();function Rn(e){try{return e()}catch(e){}}var Hn=Rn((function(){return globalThis}))||Rn((function(){return window}))||Rn((function(){return self}))||Rn((function(){return r.g}))||Rn((function(){return Function("return this")()})),Un=!1;function zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bn(e,t,n){return t&&Wn(e.prototype,t),n&&Wn(e,n),e}!Hn||Rn((function(){return"production"}))||Rn((function(){return t}))||(Object.defineProperty(Hn,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Un=!0),Un&&(delete Hn.process,Un=!1),__DEV__?xn("boolean"==typeof Fn,Fn):xn("boolean"==typeof Fn,38);var qn=function(){return"function"==typeof Symbol},Vn=function(e){return qn()&&Boolean(Symbol[e])},$n=function(e){return Vn(e)?Symbol[e]:"@@"+e};qn()&&!Vn("observable")&&(Symbol.observable=Symbol("observable"));var Gn=$n("iterator"),Qn=$n("observable"),Jn=$n("species");function Kn(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function Xn(e){var t=e.constructor;return void 0!==t&&null===(t=t[Jn])&&(t=void 0),void 0!==t?t:sr}function Zn(e){Zn.log?Zn.log(e):setTimeout((function(){throw e}))}function er(e){Promise.resolve().then((function(){try{e()}catch(e){Zn(e)}}))}function tr(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=Kn(t,"unsubscribe");n&&n.call(t)}}catch(e){Zn(e)}}function nr(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function rr(e,t,n){e._state="running";var r=e._observer;try{var i=Kn(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(nr(e),!i)throw n;i.call(r,n);break;case"complete":nr(e),i&&i.call(r)}}catch(e){Zn(e)}"closed"===e._state?tr(e):"running"===e._state&&(e._state="ready")}function ir(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void er((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(rr(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void rr(e,t,n);e._queue.push({type:t,value:n})}}var ar=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new or(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(nr(this),tr(this))},Bn(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),or=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){ir(this._subscription,"next",e)},t.error=function(e){ir(this._subscription,"error",e)},t.complete=function(){ir(this._subscription,"complete")},Bn(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),sr=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new ar(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,a)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function a(){i.unsubscribe(),n()}}))},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Xn(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Xn(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=Xn(this),r=arguments.length>1,i=!1,a=arguments[1],o=a;return new n((function(n){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||r)try{o=e(o,t)}catch(e){return n.error(e)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(o),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=Xn(this);return new i((function(t){var r,a=0;return function e(o){r=o.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){a===n.length?(r=void 0,t.complete()):e(i.from(n[a++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=Xn(this);return new n((function(r){var i=[],a=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var a=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(a);e>=0&&i.splice(e,1),o()}});i.push(a)},error:function(e){r.error(e)},complete:function(){o()}});function o(){a.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),a.unsubscribe()}}))},t[Qn]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=Kn(t,Qn);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return function(e){return e instanceof sr}(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(Vn("iterator")&&(r=Kn(t,Gn)))return new n((function(e){er((function(){if(!e.closed){for(var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return zn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zn(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.call(t));!(n=i()).done;){var a=n.value;if(e.next(a),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){er((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i="function"==typeof this?this:e;return new i((function(e){er((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},Bn(e,null,[{key:Jn,get:function(){return this}}]),e}();function ur(e){return null!==e&&"object"==typeof e}function lr(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new Yn("Found a "+e.operation+" operation"+(e.name?" named '"+e.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed."):new Yn(43);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&(__DEV__?xn(1===r.length,"Found "+r.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):xn(1===r.length,44),n=r[0].name.value),Le(Le({},e),{definitions:Ee([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function cr(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function dr(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?xn(n,"No fragment named "+e.name.value+"."):xn(n,45),n;default:return null}}function fr(e){return{__ref:String(e)}}function hr(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function pr(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map((function(e){return pr(i,e.name,e.value,r)})),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return pr(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw __DEV__?new Yn('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new Yn(54);e[t.value]=null}}qn()&&Object.defineProperty(sr,Symbol("extensions"),{value:{symbol:Qn,hostReportError:Zn},configurable:!0});var mr=["connection","include","skip","client","rest","export"],_r=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),n.connection.key+"("+yr(i)+")"}return n.connection.key}var a=e;if(t){var o=yr(t);a+="("+o+")"}return n&&Object.keys(n).forEach((function(e){-1===mr.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+yr(n[e])+")":a+="@"+e)})),a}),{setStringify:function(e){var t=yr;return yr=e,t}}),yr=function(e){return JSON.stringify(e,vr)};function vr(e,t){return ur(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function gr(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return pr(n,r,i,t)})),n}return null}function br(e){return e.alias?e.alias.value:e.name.value}function Mr(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var a=i[r];if(wr(a)){if("__typename"===a.name.value)return e[br(a)]}else{var o=Mr(e,dr(a,n).selectionSet,n);if("string"==typeof o)return o}}}function wr(e){return"Field"===e.kind}function kr(e){return"InlineFragment"===e.kind}function Lr(e){__DEV__?xn(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):xn(e&&"Document"===e.kind,46);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new Yn('Schema type definitions not allowed in queries. Found: "'+e.kind+'"'):new Yn(47);return e}));return __DEV__?xn(t.length<=1,"Ambiguous GraphQL document: contains "+t.length+" operations"):xn(t.length<=1,48),e}function Tr(e){return Lr(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function Dr(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function Sr(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function Er(e){var t=Tr(e);return __DEV__?xn(t&&"query"===t.operation,"Must contain a query definition."):xn(t&&"query"===t.operation,49),t}function Yr(e){var t;Lr(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var a=i.operation;if("query"===a||"mutation"===a||"subscription"===a)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw __DEV__?new Yn("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new Yn(53)}function xr(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&pr(t,e.variable.name,e.defaultValue)})),t}function Or(e,t){return t?t(e):sr.of()}function jr(e){return"function"==typeof e?new Ar(e):e}function Pr(e){return e.request.length<=1}var Cr=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return ke(t,e),t}(Error),Ar=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return sr.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(jr).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var i=jr(n),a=jr(r||new e(Or));return Pr(i)&&Pr(a)?new e((function(e){return t(e)?i.request(e)||sr.of():a.request(e)||sr.of()})):new e((function(e,n){return t(e)?i.request(e,n)||sr.of():a.request(e,n)||sr.of()}))},e.execute=function(e,t){return e.request(function(e,t){var n=Le({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=Le(Le({},n),"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Le({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?Dr(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw __DEV__?new Yn("illegal argument: "+i):new Yn(26)}return e}(t))))||sr.of()},e.concat=function(t,n){var r=jr(t);if(Pr(r))return __DEV__&&xn.warn(new Cr("You are calling concat on a terminating link, which will have no effect",r)),r;var i=jr(n);return Pr(i)?new e((function(e){return r.request(e,(function(e){return i.request(e)||sr.of()}))||sr.of()})):new e((function(e,t){return r.request(e,(function(e){return i.request(e,t)||sr.of()}))||sr.of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(Or)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new Yn("request is not implemented"):new Yn(21)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}();const Ir=Object.freeze({});function Nr(e,t,n=Ue){const r=new Map;for(const e of Object.values(Ne))r.set(e,Fr(t,e));let i,a,o,s,u=Array.isArray(e),l=[e],c=-1,d=[];const f=[],h=[];let p=e;do{c++;const e=c===l.length,v=e&&0!==d.length;if(e){if(o=0===h.length?void 0:f[f.length-1],a=s,s=h.pop(),v)if(u){a=a.slice();let e=0;for(const[t,n]of d){const r=t-e;null===n?(a.splice(r,1),e++):a[r]=n}}else{a=Object.defineProperties({},Object.getOwnPropertyDescriptors(a));for(const[e,t]of d)a[e]=t}c=i.index,l=i.keys,d=i.edits,u=i.inArray,i=i.prev}else{if(o=s?u?c:l[c]:void 0,a=s?s[o]:p,null==a)continue;s&&f.push(o)}let g;if(!Array.isArray(a)){var m,_;We(a)||Ge(!1,`Invalid AST Node: ${$e(a)}.`);const n=e?null===(m=r.get(a.kind))||void 0===m?void 0:m.leave:null===(_=r.get(a.kind))||void 0===_?void 0:_.enter;if(g=null==n?void 0:n.call(t,a,o,s,f,h),g===Ir)break;if(!1===g){if(!e){f.pop();continue}}else if(void 0!==g&&(d.push([o,g]),!e)){if(!We(g)){f.pop();continue}a=g}}var y;void 0===g&&v&&d.push([o,a]),e?f.pop():(i={inArray:u,index:c,keys:l,edits:d,prev:i},u=Array.isArray(a),l=u?a:null!==(y=n[a.kind])&&void 0!==y?y:[],c=-1,d=[],s&&h.push(s),s=a)}while(void 0!==i);return 0!==d.length&&(p=d[d.length-1][1]),p}function Fr(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}var Rr=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new Yn("Network request failed. "+t+" is not serializable: "+e.message):new Yn(23);throw r.parseError=e,r}return n},Hr=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")},Ur=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},zr=Object.prototype.hasOwnProperty;function Wr(e){return function(t){return t.text().then((function(e){try{return JSON.parse(e)}catch(r){var n=r;throw n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,n}})).then((function(n){return t.status>=300&&Ur(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||zr.call(n,"data")||zr.call(n,"errors")||Ur(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),n}))}}var Br=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new Yn("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new Yn(22)};const qr=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Vr(e){return $r[e.charCodeAt(0)]}const $r=["\\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"];function Gr(e){return Nr(e,Qr)}const Qr={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Jr(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Xr("(",Jr(e.variableDefinitions,", "),")"),n=Jr([e.operation,Jr([e.name,t]),Jr(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Xr(" = ",n)+Xr(" ",Jr(r," "))},SelectionSet:{leave:({selections:e})=>Kr(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const a=Xr("",e,": ")+t;let o=a+Xr("(",Jr(n,", "),")");return o.length>80&&(o=a+Xr("(\n",Zr(Jr(n,"\n")),"\n)")),Jr([o,Jr(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Xr(" ",Jr(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Jr(["...",Xr("on ",e),Jr(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Xr("(",Jr(n,", "),")")} on ${t} ${Xr("",Jr(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t=!1){const n=!e.includes("\n"),r=e.startsWith(" ")||e.startsWith("\t"),i=e.endsWith('"'),a=e.endsWith("\\"),o=!n||i||a||t;let s="";return!o||n&&r||(s+="\n"),s+=e,o&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}(e):`"${e.replace(qr,Vr)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Jr(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Jr(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Xr("(",Jr(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Xr("",e,"\n")+Jr(["schema",Jr(t," "),Kr(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Xr("",e,"\n")+Jr(["scalar",t,Jr(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Xr("",e,"\n")+Jr(["type",t,Xr("implements ",Jr(n," & ")),Jr(r," "),Kr(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Xr("",e,"\n")+t+(ei(n)?Xr("(\n",Zr(Jr(n,"\n")),"\n)"):Xr("(",Jr(n,", "),")"))+": "+r+Xr(" ",Jr(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Xr("",e,"\n")+Jr([t+": "+n,Xr("= ",r),Jr(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Xr("",e,"\n")+Jr(["interface",t,Xr("implements ",Jr(n," & ")),Jr(r," "),Kr(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Xr("",e,"\n")+Jr(["union",t,Jr(n," "),Xr("= ",Jr(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Xr("",e,"\n")+Jr(["enum",t,Jr(n," "),Kr(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Xr("",e,"\n")+Jr([t,Jr(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Xr("",e,"\n")+Jr(["input",t,Jr(n," "),Kr(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Xr("",e,"\n")+"directive @"+t+(ei(n)?Xr("(\n",Zr(Jr(n,"\n")),"\n)"):Xr("(",Jr(n,", "),")"))+(r?" repeatable":"")+" on "+Jr(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Jr(["extend schema",Jr(e," "),Kr(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Jr(["extend scalar",e,Jr(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Jr(["extend type",e,Xr("implements ",Jr(t," & ")),Jr(n," "),Kr(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Jr(["extend interface",e,Xr("implements ",Jr(t," & ")),Jr(n," "),Kr(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Jr(["extend union",e,Jr(t," "),Xr("= ",Jr(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Jr(["extend enum",e,Jr(t," "),Kr(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Jr(["extend input",e,Jr(t," "),Kr(n)]," ")}};function Jr(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function Kr(e){return Xr("{\n",Zr(Jr(e,"\n")),"\n}")}function Xr(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Zr(e){return Xr(" ",e.replace(/\n/g,"\n "))}function ei(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var ti={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},ni=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Le(Le({},t.options),{headers:t.headers,credentials:t.credentials}),a=t.http||{};n.forEach((function(e){i=Le(Le(Le({},i),e.options),{headers:Le(Le({},i.headers),ri(e.headers))}),e.credentials&&(i.credentials=e.credentials),a=Le(Le({},a),e.http)}));var o=e.operationName,s=e.extensions,u=e.variables,l=e.query,c={operationName:o,variables:u};return a.includeExtensions&&(c.extensions=s),a.includeQuery&&(c.query=Gr(l)),{options:i,body:c}};function ri(e){if(e){var t=Object.create(null);return Object.keys(Object(e)).forEach((function(n){t[n.toLowerCase()]=e[n]})),t}return e}var ii=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}};function ai(e){return new sr((function(t){t.error(e)}))}var oi=Cn((function(){return fetch})),si=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.includeExtensions,a=e.useGETForQueries,o=e.includeUnusedVariables,s=void 0!==o&&o,u=Te(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&Br(r||oi);var l={http:{includeExtensions:i},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new Ar((function(e){var t=Hr(e,n),i=e.getContext(),o={};if(i.clientAwareness){var u=i.clientAwareness,c=u.name,d=u.version;c&&(o["apollographql-client-name"]=c),d&&(o["apollographql-client-version"]=d)}var f,h=Le(Le({},o),i.headers),p={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:h},m=ni(e,ti,l,p),_=m.options,y=m.body;if(y.variables&&!s){var v=new Set(Object.keys(y.variables));Nr(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&v.delete(e.name.value)}}),v.size&&(y.variables=Le({},y.variables),v.forEach((function(e){delete y.variables[e]})))}if(!_.signal){var g=ii(),b=g.controller,M=g.signal;(f=b)&&(_.signal=M)}if(a&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(_.method="GET"),"GET"===_.method){var w=function(e,t){var n=[],r=function(e,t){n.push(e+"="+encodeURIComponent(t))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=Rr(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var a=void 0;try{a=Rr(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",a)}var o="",s=e,u=e.indexOf("#");-1!==u&&(o=e.substr(u),s=e.substr(0,u));var l=-1===s.indexOf("?")?"?":"&";return{newURI:s+l+n.join("&")+o}}(t,y),k=w.newURI,L=w.parseError;if(L)return ai(L);t=k}else try{_.body=Rr(y,"Payload")}catch(L){return ai(L)}return new sr((function(n){return(r||Cn((function(){return fetch}))||oi)(t,_).then((function(t){return e.setContext({response:t}),t})).then(Wr(e)).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){f&&f.abort()}}))}))}(t).request)||this;return n.options=t,n}return ke(t,e),t}(Ar),ui=Ar.execute;function li(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)}))})),n}var ci=Object.prototype,di=ci.toString,fi=ci.hasOwnProperty,hi=Function.prototype.toString,pi=new Map;function mi(e,t){try{return function e(t,n){if(t===n)return!0;var r,i,a,o=di.call(t);if(o!==di.call(n))return!1;switch(o){case"[object Array]":if(t.length!==n.length)return!1;case"[object Object]":if(gi(t,n))return!0;var s=_i(t),u=_i(n),l=s.length;if(l!==u.length)return!1;for(var c=0;c<l;++c)if(!fi.call(n,s[c]))return!1;for(c=0;c<l;++c){var d=s[c];if(!e(t[d],n[d]))return!1}return!0;case"[object Error]":return t.name===n.name&&t.message===n.message;case"[object Number]":if(t!=t)return n!=n;case"[object Boolean]":case"[object Date]":return+t==+n;case"[object RegExp]":case"[object String]":return t==""+n;case"[object Map]":case"[object Set]":if(t.size!==n.size)return!1;if(gi(t,n))return!0;for(var f=t.entries(),h="[object Map]"===o;;){var p=f.next();if(p.done)break;var m=p.value,_=m[0],y=m[1];if(!n.has(_))return!1;if(h&&!e(y,n.get(_)))return!1}return!0;case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),n=new Uint8Array(n);case"[object DataView]":var v=t.byteLength;if(v===n.byteLength)for(;v--&&t[v]===n[v];);return-1===v;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var g=hi.call(t);return g===hi.call(n)&&(i=vi,!((a=(r=g).length-i.length)>=0&&r.indexOf(i,a)===a))}return!1}(e,t)}finally{pi.clear()}}function _i(e){return Object.keys(e).filter(yi,e)}function yi(e){return void 0!==this[e]}var vi="{ [native code] }";function gi(e,t){var n=pi.get(e);if(n){if(n.has(t))return!0}else pi.set(e,n=new Set);return n.add(t),!1}var bi,Mi,wi=function(){return Object.create(null)},ki=Array.prototype,Li=ki.forEach,Ti=ki.slice,Di=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=wi),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return Li.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(Ti.call(e)))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r},e}(),Si="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),Ei="function"==typeof WeakSet,Yi="function"==typeof Symbol&&"function"==typeof Symbol.for,xi=function(){function e(){this.known=new(Ei?WeakSet:Set),this.pool=new Di(Si),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return ur(e)&&this.known.has(e)},e.prototype.pass=function(e){if(ur(e)){var t=function(e){return ur(e)?Array.isArray(e)?e.slice(0):Le({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(ur(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(s=this.pool.lookupArray(r)).array||(this.known.add(s.array=r),__DEV__&&Object.freeze(r)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),a=[i],o=this.sortedKeys(e);a.push(o.json);var s,u=a.length;if(o.sorted.forEach((function(n){a.push(t.admit(e[n]))})),!(s=this.pool.lookupArray(a)).object){var l=s.object=Object.create(i);this.known.add(l),o.sorted.forEach((function(e,t){l[e]=a[u+t]})),__DEV__&&Object.freeze(l)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),Oi=Object.assign((function(e){if(ur(e)){void 0===bi&&ji();var t=bi.admit(e),n=Mi.get(t);return void 0===n&&Mi.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:ji});function ji(){bi=new xi,Mi=new(Si?WeakMap:Map)}function Pi(e,t,n){return new sr((function(r){var i=r.next,a=r.error,o=r.complete,s=0,u=!1,l={then:function(e){return new Promise((function(t){return t(e())}))}};function c(e,t){return e?function(t){++s;var n=function(){return e(t)};l=l.then(n,n).then((function(e){--s,i&&i.call(r,e),u&&d.complete()}),(function(e){throw--s,e})).catch((function(e){a&&a.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var d={next:c(t,i),error:c(n,a),complete:function(){u=!0,s||o&&o.call(r)}},f=e.subscribe(d);return function(){return f.unsubscribe()}}))}function Ci(e){return e.errors&&e.errors.length>0||!1}function Ai(e,t,n){var r=0;return e.forEach((function(n,i){t.call(this,n,i,e)&&(e[r++]=n)}),n),e.length=r,e}var Ii={kind:"Field",name:{kind:"Name",value:"__typename"}};function Ni(e){return function e(t,n){return t.selectionSet.selections.every((function(t){return"FragmentSpread"===t.kind&&e(n[t.name.value],n)}))}(Tr(e)||function(e){__DEV__?xn("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):xn("Document"===e.kind,50),__DEV__?xn(e.definitions.length<=1,"Fragment must have exactly one definition."):xn(e.definitions.length<=1,51);var t=e.definitions[0];return __DEV__?xn("FragmentDefinition"===t.kind,"Must be a fragment definition."):xn("FragmentDefinition"===t.kind,52),t}(e),cr(Sr(e)))?null:e}function Fi(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function Ri(e,t){var n=Object.create(null),r=[],i=Object.create(null),a=[],o=Ni(Nr(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(Fi(e)))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})})),t.selectionSet&&function e(t){var n=[];return t.selections.forEach((function(t){(wr(t)||kr(t))&&t.selectionSet?e(t.selectionSet).forEach((function(e){return n.push(e)})):"FragmentSpread"===t.kind&&n.push(t)})),n}(t.selectionSet).forEach((function(e){a.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){i[e.name.value]=!0}},Directive:{enter:function(t){if(Fi(e)(t))return null}}}));return o&&Ai(r,(function(e){return!!e.name&&!n[e.name]})).length&&(o=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return Ni(Nr(t,{OperationDefinition:{enter:function(t){return Le(Le({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments&&t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(r,o)),o&&Ai(a,(function(e){return!!e.name&&!i[e.name]})).length&&(o=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return Ni(Nr(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(a,o)),o}var Hi=Object.assign((function(e){return Nr(Lr(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some((function(e){return wr(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(wr(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return Le(Le({},e),{selections:Ee(Ee([],r,!0),[Ii],!1)})}}}}})}),{added:function(e){return e===Ii}}),Ui={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||__DEV__&&xn.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),t}};function zi(e){return"query"===Yr(e).operation?e:Nr(e,{OperationDefinition:{enter:function(e){return Le(Le({},e),{operation:"query"})}}})}function Wi(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];return e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,r=e.name.value;__DEV__?xn(n&&1===n.length,"Incorrect number of arguments for the @"+r+" directive."):xn(n&&1===n.length,40);var i=n[0];__DEV__?xn(i.name&&"if"===i.name.value,"Invalid argument for the @"+r+" directive."):xn(i.name&&"if"===i.name.value,41);var a=i.value;__DEV__?xn(a&&("Variable"===a.kind||"BooleanValue"===a.kind),"Argument for the @"+r+" directive must be a variable or a boolean value."):xn(a&&("Variable"===a.kind||"BooleanValue"===a.kind),42),t.push({directive:e,ifArgument:i})}})),t}(n).every((function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],__DEV__?xn(void 0!==i,"Invalid variable referenced in @"+n.name.value+" directive."):xn(void 0!==i,39)):i=r.value.value,"skip"===n.name.value?!i:i}))}function Bi(e,t){return function(e){var t=[];return Nr(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function qi(e){return e&&Bi(["client"],e)&&Bi(["export"],e)}var Vi=new Map;function $i(e){var t=Vi.get(e)||1;return Vi.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function Gi(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function Qi(e){function t(t){Object.defineProperty(e,t,{value:sr})}return Yi&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Ji(e){return e&&"function"==typeof e.then}var Ki=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.addCount=0,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],Gi(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),Gi(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?Ji(e)?e.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=e.subscribe(n.handlers):(n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),Gi(n.observers,"complete"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"==typeof t&&(t=[new sr(t)]),Ji(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return ke(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},t.prototype.cleanup=function(e){var t=this,n=!1,r=function(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},a=this.addCount;this.addObserver(i),this.addCount=a},t}(sr);function Xi(e){return Array.isArray(e)&&e.length>0}Qi(Ki);var Zi,ea=function(e){function t(n){var r,i,a=n.graphQLErrors,o=n.clientErrors,s=n.networkError,u=n.errorMessage,l=n.extraInfo,c=e.call(this,u)||this;return c.graphQLErrors=a||[],c.clientErrors=o||[],c.networkError=s||null,c.message=u||(i="",(Xi((r=c).graphQLErrors)||Xi(r.clientErrors))&&(r.graphQLErrors||[]).concat(r.clientErrors||[]).forEach((function(e){var t=e?e.message:"Error message not found.";i+=t+"\n"})),r.networkError&&(i+=r.networkError.message+"\n"),i=i.replace(/\n$/,"")),c.extraInfo=l,c.__proto__=t.prototype,c}return ke(t,e),t}(Error);function ta(e){return!!e&&e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(Zi||(Zi={}));var na=Object.prototype.toString;function ra(e){return function e(t,n){switch(na.call(t)){case"[object Array]":if((n=n||new Map).has(t))return n.get(t);var r=t.slice(0);return n.set(t,r),r.forEach((function(t,i){r[i]=e(t,n)})),r;case"[object Object]":if((n=n||new Map).has(t))return n.get(t);var i=Object.create(Object.getPrototypeOf(t));return n.set(t,i),Object.keys(t).forEach((function(r){i[r]=e(t[r],n)})),i;default:return t}}(e)}var ia=Object.assign,aa=Object.hasOwnProperty,oa=!1,sa=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,a=e.call(this,(function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=ua)}catch(e){}var n=!a.observers.size;a.observers.add(e);var r=a.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&a.reobserve().catch((function(){})),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}}))||this;a.observers=new Set,a.subscriptions=new Set,a.isTornDown=!1,a.options=i,a.queryId=r.queryId||n.generateQueryId();var o=Tr(i.query);return a.queryName=o&&o.name&&o.name.value,a.initialFetchPolicy=i.fetchPolicy||"cache-first",a.queryManager=n,a.queryInfo=r,a}return ke(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||Zi.ready,r=Le(Le({},t),{loading:ta(n),networkStatus:n}),i=this.options.fetchPolicy,a=void 0===i?"cache-first":i;if((t||"network-only"!==a&&"no-cache"!==a&&"standby"!==a)&&!this.queryManager.transform(this.options.query).hasForcedResolvers){var o=this.queryInfo.getDiff();(o.complete||this.options.returnPartialData)&&(r.data=o.result),mi(r.data,{})&&(r.data=void 0),o.complete?(r.networkStatus!==Zi.loading||"cache-first"!==a&&"cache-only"!==a||(r.networkStatus=Zi.ready,r.loading=!1),delete r.partial):"no-cache"!==a&&(r.partial=!0),!__DEV__||o.complete||this.options.partialRefetch||r.loading||r.data||r.error||la(o.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!mi(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||mi(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;if("no-cache"===r?n.fetchPolicy="no-cache":"cache-and-network"!==r&&(n.fetchPolicy="network-only"),__DEV__&&e&&aa.call(e,"variables")){var i=Er(this.options.query),a=i.variableDefinitions;a&&a.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&xn.warn("Called refetch("+JSON.stringify(e)+") for query "+((null===(t=i.name)||void 0===t?void 0:t.value)||JSON.stringify(i))+", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?")}return e&&!mi(this.options.variables,e)&&(n.variables=this.options.variables=Le(Le({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,Zi.refetch)},t.prototype.fetchMore=function(e){var t=this,n=Le(Le({},e.query?e:Le(Le(Le({},this.options),e),{variables:Le(Le({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=Zi.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,Zi.fetchMore).then((function(r){var i=r.data,a=e.updateQuery;return a?(__DEV__&&!oa&&(__DEV__&&xn.warn("The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore."),oa=!0),t.updateQuery((function(e){return a(e,{fetchMoreResult:i,variables:n.variables})}))):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:i}),r})).finally((function(){t.queryManager.stopQuery(r),t.reobserve()}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError?e.onError(t):__DEV__&&xn.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return mi(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},Zi.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){__DEV__?xn(n,"Attempted to start a polling query without a polling interval."):xn(n,12),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(ta(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},Zi.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=Le(Le({},this.last),{result:this.queryManager.assumeImmutableResults?e:ra(e),variables:t}),Xi(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===Zi.refetch||t===Zi.fetchMore||t===Zi.poll,i=this.options.variables,a=r?li(this.options,e):ia(this.options,li(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!mi(e.variables,i)&&(a.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=Zi.setVariables)));var o=a.variables&&Le({},a.variables),s=this.fetch(a,t),u={next:function(e){n.reportResult(e,o)},error:function(e){n.reportError(e,o)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=s,this.observer=u),s.addObserver(u),s.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){(this.getLastError()||this.isDifferentFromLastResult(e))&&(this.updateLastResult(e,t),Gi(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=Le(Le({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:Zi.error,loading:!1});this.updateLastResult(n,t),Gi(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.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(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(sr);function ua(e){__DEV__&&xn.error("Unhandled error",e.message,e.stack)}function la(e){__DEV__&&Xi(e)&&__DEV__&&xn.debug("Missing cache result fields: "+e.map((function(e){return e.path.join(".")})).join(", "),e)}Qi(sa);var ca=Object.prototype.hasOwnProperty;function da(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fa(e)}function fa(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new pa,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var ha=function(e,t,n){return this.merge(e[n],t[n])},pa=function(){function e(e){void 0===e&&(e=ha),this.reconciler=e,this.isObject=ur,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return ur(t)&&ur(e)?(Object.keys(t).forEach((function(i){if(ca.call(e,i)){var a=e[i];if(t[i]!==a){var o=n.reconciler.apply(n,Ee([e,t,i],r,!1));o!==a&&((e=n.shallowCopyForMerge(e))[i]=o)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return ur(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):Le({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}(),ma=null,_a={},ya=1,va="@wry/context:Slot",ga=Array,ba=ga[va]||function(){var e=function(){function e(){this.id=["slot",ya++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=ma;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===_a)break;return e!==ma&&(ma.slots[this.id]=t),!0}return ma&&(ma.slots[this.id]=_a),!1},e.prototype.getValue=function(){if(this.hasValue())return ma.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,a=((i={__proto__:null})[this.id]=e,i),o=ma;ma={parent:o,slots:a};try{return t.apply(r,n)}finally{ma=o}},e.bind=function(e){var t=ma;return function(){var n=ma;try{return ma=t,e.apply(this,arguments)}finally{ma=n}}},e.noContext=function(e,t,n){if(!ma)return e.apply(n,t);var r=ma;try{return ma=null,e.apply(n,t)}finally{ma=r}},e}();try{Object.defineProperty(ga,va,{value:ga[va]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();function Ma(){}ba.bind,ba.noContext;var wa,ka=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=Ma),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),La=new ba,Ta=Object.prototype.hasOwnProperty,Da=void 0===(wa=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:wa;function Sa(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var Ea=[];function Ya(e,t){if(!e)throw new Error(t||"assertion failure")}function xa(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var Oa=function(){function e(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,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!Ca(this))return ja(this),this.value[0]},e.prototype.recompute=function(e){return Ya(!this.recomputing,"already recomputing"),ja(this),Ca(this)?function(e,t){return Ua(e),La.withValue(e,Pa,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{Sa(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,Ca(e)||Ia(e)}(e),xa(e.value)}(this,e):xa(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Aa(this),Sa(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),Ua(this),Na(this,(function(t,n){t.setDirty(),za(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=Ea.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(Da(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),Ea.push(this.deps),this.deps=null)},e.count=0,e}();function ja(e){var t=La.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Ca(e)?Fa(t,e):Ra(t,e),t}function Pa(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function Ca(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Aa(e){Na(e,Fa)}function Ia(e){Na(e,Ra)}function Na(e,t){var n=e.parents.size;if(n)for(var r=Da(e.parents),i=0;i<n;++i)t(r[i],e)}function Fa(e,t){Ya(e.childValues.has(t)),Ya(Ca(t));var n=!Ca(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Ea.pop()||new Set;e.dirtyChildren.add(t),n&&Aa(e)}function Ra(e,t){Ya(e.childValues.has(t)),Ya(!Ca(t));var n,r,i,a=e.childValues.get(t);0===a.length?e.childValues.set(t,t.value.slice(0)):(n=a,r=t.value,(i=n.length)>0&&i===r.length&&n[i-1]===r[i-1]||e.setDirty()),Ha(e,t),Ca(e)||Ia(e)}function Ha(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(Ea.length<100&&Ea.push(n),e.dirtyChildren=null))}function Ua(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){za(e,n)})),e.forgetDeps(),Ya(null===e.dirtyChildren)}function za(e,t){t.parents.delete(e),e.childValues.delete(t),Ha(e,t)}var Wa={setDirty:!0,dispose:!0,forget:!0};function Ba(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=La.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(Sa(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&Ta.call(Wa,n)?n:"setDirty";Da(r).forEach((function(e){return e[i]()})),t.delete(e),Sa(r)}},r}function qa(){var e=new Di("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}qa();var Va=new Set;function $a(e,t){void 0===t&&(t=Object.create(null));var n=new ka(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||qa(),a=function(){var a=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===a)return e.apply(null,arguments);var o=n.get(a);o||(n.set(a,o=new Oa(e)),o.subscribe=t.subscribe,o.forget=function(){return n.delete(a)});var s=o.recompute(Array.prototype.slice.call(arguments));return n.set(a,o),Va.add(n),La.hasValue()||(Va.forEach((function(e){return e.clean()})),Va.clear()),s};function o(e){var t=n.get(e);t&&t.setDirty()}function s(e){var t=n.get(e);if(t)return t.peek()}function u(e){return n.delete(e)}return Object.defineProperty(a,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),a.dirtyKey=o,a.dirty=function(){o(i.apply(null,arguments))},a.peekKey=s,a.peek=function(){return s(i.apply(null,arguments))},a.forgetKey=u,a.forget=function(){return u(i.apply(null,arguments))},a.makeCacheKey=i,a.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(a)}var Ga=new ba,Qa=new WeakMap;function Ja(e){var t=Qa.get(e);return t||Qa.set(e,t={vars:new Set,dep:Ba()}),t}function Ka(e){Ja(e).vars.forEach((function(t){return t.forgetCache(e)}))}function Xa(e){var t=new Set,n=new Set,r=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach((function(e){Ja(e).dep.dirty(r),Za(e)}));var o=Array.from(n);n.clear(),o.forEach((function(t){return t(e)}))}}else{var s=Ga.getValue();s&&(i(s),Ja(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),Ja(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function Za(e){e.broadcastWatches&&e.broadcastWatches()}var eo=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=da(t.resolvers,e)})):this.resolvers=da(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,a=e.onlyRunForcedResolvers,o=void 0!==a&&a;return De(this,void 0,void 0,(function(){return Se(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,o).then((function(e){return Le(Le({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Bi(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){Lr(e);var t=Ri([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=Nr(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return wr(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return Le(Le({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),De(this,void 0,void 0,(function(){return Se(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return Le(Le({},t),e.exportedVariables)}))]:[2,Le({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Nr(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return Ir}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:zi(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,a){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===a&&(a=!1),De(this,void 0,void 0,(function(){var o,s,u,l,c,d,f,h,p;return Se(this,(function(m){return o=Yr(e),s=Sr(e),u=cr(s),l=o.operation,c=l?l.charAt(0).toUpperCase()+l.slice(1):"Query",f=(d=this).cache,h=d.client,p={fragmentMap:u,context:Le(Le({},n),{cache:f,client:h}),variables:r,fragmentMatcher:i,defaultOperationType:c,exportedVariables:{},onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(o.selectionSet,t,p).then((function(e){return{result:e,exportedVariables:p.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return De(this,void 0,void 0,(function(){var r,i,a,o,s,u=this;return Se(this,(function(l){return r=n.fragmentMap,i=n.context,a=n.variables,o=[t],s=function(e){return De(u,void 0,void 0,(function(){var s,u;return Se(this,(function(l){return Wi(e,a)?wr(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&o.push(((n={})[br(e)]=t,n))}))]:(kr(e)?s=e:(s=r[e.name.value],__DEV__?xn(s,"No fragment named "+e.name.value):xn(s,11)),s&&s.typeCondition&&(u=s.typeCondition.name.value,n.fragmentMatcher(t,u,i))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then((function(e){o.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return fa(o)}))]}))}))},e.prototype.resolveField=function(e,t,n){return De(this,void 0,void 0,(function(){var r,i,a,o,s,u,l,c,d,f=this;return Se(this,(function(h){return r=n.variables,i=e.name.value,a=br(e),o=i!==a,s=t[a]||t[i],u=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(l=t.__typename||n.defaultOperationType,(c=this.resolvers&&this.resolvers[l])&&(d=c[o?i:a])&&(u=Promise.resolve(Ga.withValue(this.cache,d,[t,gr(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,u.then((function(t){return void 0===t&&(t=s),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?f.resolveSubSelectedArray(e,t,n):e.selectionSet?f.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}(),to=new(Si?WeakMap:Map);function no(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return to.set(e,(to.get(e)+1)%1e15),n.apply(this,arguments)})}function ro(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var io=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;to.has(n)||(to.set(n,0),no(n,"evict"),no(n,"modify"),no(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||Zi.loading;return this.variables&&this.networkStatus!==Zi.loading&&!mi(this.variables,e.variables)&&(t=Zi.setVariables),mi(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){ro(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&mi(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||mi(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():e.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var e=this;ro(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(ta(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=Le(Le({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&mi(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===to.get(this.cache)&&mi(t,n.variables)&&mi(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=Xi(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(ao(e,t.errorPolicy)?this.cache.performTransaction((function(i){if(r.shouldWrite(e,t.variables))i.writeQuery({query:r.document,data:e.data,variables:t.variables,overwrite:1===n}),r.lastWrite={result:e,variables:t.variables,dmCount:to.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(e.data=r.lastDiff.diff.result);var a=r.getDiffOptions(t.variables),o=i.diff(a);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(o,a),o.complete&&(e.data=o.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Zi.ready},e.prototype.markError=function(e){return this.networkStatus=Zi.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function ao(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!Ci(e);return!r&&n&&e.data&&(r=!0),r}var oo=Object.prototype.hasOwnProperty,so=function(){function e(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=void 0!==r&&r,a=e.onBroadcast,o=e.ssrMode,s=void 0!==o&&o,u=e.clientAwareness,l=void 0===u?{}:u,c=e.localState,d=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Si?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.queryDeduplication=i,this.clientAwareness=l,this.localState=c||new eo({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!d,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new Yn("QueryManager stopped while query was in flight"):new Yn(13))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,a=e.refetchQueries,o=void 0===a?[]:a,s=e.awaitRefetchQueries,u=void 0!==s&&s,l=e.update,c=e.onQueryUpdated,d=e.errorPolicy,f=void 0===d?"none":d,h=e.fetchPolicy,p=void 0===h?"network-only":h,m=e.keepRootFields,_=e.context;return De(this,void 0,void 0,(function(){var e,a,s;return Se(this,(function(d){switch(d.label){case 0:return __DEV__?xn(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):xn(t,14),__DEV__?xn("network-only"===p||"no-cache"===p,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):xn("network-only"===p||"no-cache"===p,15),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,_)]:[3,2];case 1:n=d.sent(),d.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),r&&this.markMutationOptimistic(r,{mutationId:e,document:t,variables:n,fetchPolicy:p,errorPolicy:f,context:_,updateQueries:i,update:l,keepRootFields:m}),this.broadcastQueries(),s=this,[2,new Promise((function(d,h){return Pi(s.getObservableFromLink(t,Le(Le({},_),{optimisticResponse:r}),n,!1),(function(d){if(Ci(d)&&"none"===f)throw new ea({graphQLErrors:d.errors});a&&(a.loading=!1,a.error=null);var h=Le({},d);return"function"==typeof o&&(o=o(h)),"ignore"===f&&Ci(h)&&delete h.errors,s.markMutationResult({mutationId:e,result:h,document:t,variables:n,fetchPolicy:p,errorPolicy:f,context:_,update:l,updateQueries:i,awaitRefetchQueries:u,refetchQueries:o,removeOptimistic:r?e:void 0,onQueryUpdated:c,keepRootFields:m})})).subscribe({next:function(e){s.broadcastQueries(),d(e)},error:function(t){a&&(a.loading=!1,a.error=t),r&&s.cache.removeOptimistic(e),s.broadcastQueries(),h(t instanceof ea?t:new ea({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],a="no-cache"===e.fetchPolicy;if(!a&&ao(r,e.errorPolicy)){i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var o=e.updateQueries;o&&this.queries.forEach((function(e,a){var s=e.observableQuery,u=s&&s.queryName;if(u&&oo.call(o,u)){var l=o[u],c=n.queries.get(a),d=c.document,f=c.variables,h=t.diff({query:d,variables:f,returnPartialData:!0,optimistic:!1}),p=h.result;if(h.complete&&p){var m=l(p,{mutationResult:r,queryName:d&&Dr(d)||void 0,queryVariables:f});m&&i.push({result:m,dataId:"ROOT_QUERY",query:d,variables:f})}}}))}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function(t){a||i.forEach((function(e){return t.write(e)}));var o=e.update;if(o){if(!a){var s=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&(r=Le(Le({},r),{data:s.result}))}o(t,r,{context:e.context,variables:e.variables})}a||e.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return s.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(s).then((function(){return r}))}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult(Le(Le({},t),{result:{data:r}}),e)}catch(e){__DEV__&&xn.error(e)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t,n=this.transformCache;if(!n.has(e)){var r=this.cache.transformDocument(e),i=(t=this.cache.transformForLink(r),Ri([Ui],Lr(t))),a=this.localState.clientQuery(r),o=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:qi(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:a,serverQuery:o,defaultVars:xr(Tr(r)),asQuery:Le(Le({},r),{definitions:r.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?Le(Le({},e),{operation:"query"}):e}))})},u=function(e){e&&!n.has(e)&&n.set(e,s)};u(e),u(r),u(a),u(o)}return n.get(e)},e.prototype.getVariables=function(e,t){return Le(Le({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=Le(Le({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new io(this),n=new sa({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?xn(e.query,"query option is required. You must specify your GraphQL document in the query option."):xn(e.query,16),__DEV__?xn("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):xn("Document"===e.query.kind,17),__DEV__?xn(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):xn(!e.returnPartialData,18),__DEV__?xn(!e.pollInterval,"pollInterval option only supported on watchQuery."):xn(!e.pollInterval,19),this.fetchQuery(t,e).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new Yn("Store reset while query was in flight (not completed in link chain)"):new Yn(20)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=Zi.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){var n;"string"==typeof e?r.set(e,!1):ur(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):ur(e)&&e.query&&i.add(e)})),this.queries.forEach((function(t,i){var a=t.observableQuery,o=t.document;if(a){if("all"===e)return void n.set(i,a);var s=a.queryName;if("standby"===a.options.fetchPolicy||"active"===e&&!a.hasObservers())return;("active"===e||s&&r.has(s)||o&&r.has(o))&&(n.set(i,a),s&&r.set(s,!0),o&&r.set(o,!0))}})),i.size&&i.forEach((function(e){var r=$i("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),a=new sa({queryManager:t,queryInfo:i,options:Le(Le({},e),{fetchPolicy:"network-only"})});xn(a.queryId===r),i.setObservableQuery(a),n.set(r,a)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&xn.warn("Unknown query "+("string"==typeof t?"named ":"")+JSON.stringify(t,null,2)+" requested in refetchQueries options.include array")})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var a=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==a&&"cache-only"!==a)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,a=e.variables,o=e.context,s=void 0===o?{}:o;n=this.transform(n).document,a=this.getVariables(n,a);var u=function(e){return t.getObservableFromLink(n,s,e).map((function(a){if("no-cache"!==r&&(ao(a,i)&&t.cache.write({query:n,result:a.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),Ci(a))throw new ea({graphQLErrors:a.errors});return a}))};if(this.transform(n).hasClientExports){var l=this.localState.addExportedVariables(n,a,s).then(u);return new sr((function(e){var t=null;return l.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return u(a)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).stop(),this.queries.delete(e)},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,a,o=this;void 0===r&&(r=null!==(i=null==t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var u=this.inFlightLinkObservables,l=this.link,c={query:s,variables:n,operationName:Dr(s)||void 0,context:this.prepareContext(Le(Le({},t),{forceFetch:!r}))};if(t=c.context,r){var d=u.get(s)||new Map;u.set(s,d);var f=Oi(n);if(!(a=d.get(f))){var h=new Ki([ui(l,c)]);d.set(f,a=h),h.cleanup((function(){d.delete(f)&&d.size<1&&u.delete(s)}))}}else a=new Ki([ui(l,c)])}else a=new Ki([sr.of({data:{}})]),t=this.prepareContext(t);var p=this.transform(e).clientQuery;return p&&(a=Pi(a,(function(e){return o.localState.runResolvers({document:p,remoteResult:e,context:t,variables:n})}))),a},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return Pi(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var a=Xi(i.errors);if(r>=e.lastRequestId){if(a&&"none"===n.errorPolicy)throw e.markError(new ea({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var o={data:i.data,loading:!1,networkStatus:e.networkStatus||Zi.ready};return a&&"ignore"!==n.errorPolicy&&(o.errors=i.errors),o}),(function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new ea({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=Zi.loading);var i=this.transform(t.query).document,a=this.getVariables(i,t.variables),o=this.getQuery(e),s=t.fetchPolicy,u=void 0===s?"cache-first":s,l=t.errorPolicy,c=void 0===l?"none":l,d=t.returnPartialData,f=void 0!==d&&d,h=t.notifyOnNetworkStatusChange,p=void 0!==h&&h,m=t.context,_=void 0===m?{}:m,y=Object.assign({},t,{query:i,variables:a,fetchPolicy:u,errorPolicy:c,returnPartialData:f,notifyOnNetworkStatusChange:p,context:_}),v=function(e){return y.variables=e,r.fetchQueryByPolicy(o,y,n)};this.fetchCancelFns.set(e,(function(e){setTimeout((function(){return g.cancel(e)}))}));var g=new Ki(this.transform(y.query).hasClientExports?this.localState.addExportedVariables(y.query,y.variables,y.context).then(v):v(y.variables));return g.cleanup((function(){r.fetchCancelFns.delete(e),function(e){var t=e.fetchPolicy,n=void 0===t?"cache-first":t,r=e.nextFetchPolicy;r&&(e.fetchPolicy="function"==typeof r?r.call(e,n):r)}(t)})),g},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,a=void 0!==i&&i,o=e.removeOptimistic,s=void 0===o?a?$i("refetchQueries"):void 0:o,u=e.onQueryUpdated,l=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){l.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var c=new Map;return n&&this.cache.batch({update:n,optimistic:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof io&&e.watcher.observableQuery;if(r){if(u){l.delete(r.queryId);var i=u(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&c.set(r,i),!1}null!==u&&l.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),l.size&&l.forEach((function(e,n){var r,i=e.oq,a=e.lastDiff,o=e.diff;if(u){if(!o){var s=i.queryInfo;s.reset(),o=s.getDiff()}r=u(i,o,a)}u&&!0!==r||(r=i.refetch()),!1!==r&&c.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),c},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,a=t.variables,o=t.fetchPolicy,s=t.refetchWritePolicy,u=t.errorPolicy,l=t.returnPartialData,c=t.context,d=t.notifyOnNetworkStatusChange,f=e.networkStatus;e.init({document:i,variables:a,networkStatus:n});var h=function(){return e.getDiff(a)},p=function(t,n){void 0===n&&(n=e.networkStatus||Zi.loading);var o=t.result;!__DEV__||l||mi(o,{})||la(t.missing);var s=function(e){return sr.of(Le({data:e,loading:ta(n),networkStatus:n},t.complete?null:{partial:!0}))};return o&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:o},context:c,variables:a,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):s(o)},m="no-cache"===o?0:n===Zi.refetch&&"merge"!==s?1:2,_=function(){return r.getResultsFromLink(e,m,{variables:a,context:c,fetchPolicy:o,errorPolicy:u})},y=d&&"number"==typeof f&&f!==n&&ta(n);switch(o){default:case"cache-first":return(v=h()).complete?[p(v,e.markReady())]:l||y?[p(v),_()]:[_()];case"cache-and-network":var v;return(v=h()).complete||l||y?[p(v),_()]:[_()];case"cache-only":return[p(h(),e.markReady())];case"network-only":return y?[p(h()),_()]:[_()];case"no-cache":return y?[p(e.getDiff()),_()]:[_()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new io(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Le(Le({},t),{clientAwareness:this.clientAwareness})},e}(),uo=!1;function lo(e,t){return li(e,t,t.variables&&{variables:Le(Le({},e.variables),t.variables)})}var co=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,a=e.cache,o=e.ssrMode,s=void 0!==o&&o,u=e.ssrForceFetchDelay,l=void 0===u?0:u,c=e.connectToDevTools,d=void 0===c?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:c,f=e.queryDeduplication,h=void 0===f||f,p=e.defaultOptions,m=e.assumeImmutableResults,_=void 0!==m&&m,y=e.resolvers,v=e.typeDefs,g=e.fragmentMatcher,b=e.name,M=e.version,w=e.link;if(w||(w=n?new si({uri:n,credentials:r,headers:i}):Ar.empty()),!a)throw __DEV__?new Yn("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new Yn(9);if(this.link=w,this.cache=a,this.disableNetworkFetches=s||l>0,this.queryDeduplication=h,this.defaultOptions=p||{},this.typeDefs=v,l&&setTimeout((function(){return t.disableNetworkFetches=!1}),l),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),d&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!uo&&__DEV__&&(uo=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var k=window.navigator,L=k&&k.userAgent,T=void 0;"string"==typeof L&&(L.indexOf("Chrome/")>-1?T="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":L.indexOf("Firefox/")>-1&&(T="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),T&&__DEV__&&xn.log("Download the Apollo DevTools for a better development experience: "+T)}this.version="3.4.17",this.localState=new eo({cache:a,client:this,resolvers:y,fragmentMatcher:g}),this.queryManager=new so({cache:this.cache,link:this.link,queryDeduplication:h,ssrMode:s,clientAwareness:{name:b,version:M},localState:this.localState,assumeImmutableResults:_,onBroadcast:d?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=lo(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Le(Le({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=lo(this.defaultOptions.query,e)),__DEV__?xn("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):xn("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Le(Le({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=lo(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return ui(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var i=Promise.all(r);return i.queries=n,i.results=r,i.catch((function(e){__DEV__&&xn.debug("In client.refetchQueries, Promise.all promise rejected with error "+e)})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),fo=function(){function e(){this.getFragmentDoc=$a(lr)}return e.prototype.batch=function(e){var t="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;this.performTransaction(e.update,t)},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Le(Le({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Le(Le({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=Te(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,a=Te(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e}(),ho=function(e){function t(n,r,i,a){var o=e.call(this,n)||this;return o.message=n,o.path=r,o.query=i,o.variables=a,o.__proto__=t.prototype,o}return ke(t,e),t}(Error);function po(e){return __DEV__&&(t=new Set([e])).forEach((function(e){ur(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(n){ur(e[n])&&t.add(e[n])}))})),e;var t}var mo=Object.prototype.hasOwnProperty;function _o(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return n+":"+("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var yo={dataIdFromObject:_o,addTypename:!0,resultCaching:!0,canonizeResults:!1};function vo(e){var t=e.canonizeResults;return void 0===t?yo.canonizeResults:t}var go=/^[_a-z][_0-9a-z]*/i;function bo(e){var t=e.match(go);return t?t[0]:e}function Mo(e,t,n){return!!ur(t)&&(Array.isArray(t)?t.every((function(t){return Mo(e,t,n)})):e.selections.every((function(e){if(wr(e)&&Wi(e,n)){var r=br(e);return mo.call(t,r)&&(!e.selectionSet||Mo(e.selectionSet,t[r],n))}return!0})))}function wo(e){return ur(e)&&!hr(e)&&!Array.isArray(e)}var ko=Object.create(null),Lo=function(){return ko},To=Object.create(null),Do=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return po(hr(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return hr(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return fr(e);if(hr(e))return e;var r=n.policies.identify(e)[0];if(r){var i=fr(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return Le({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),mo.call(this.data,e)){var n=this.data[e];if(n&&mo.call(n,t))return n[t]}return"__typename"===t&&mo.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof xo?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),mo.call(this.data,e)?this.data[e]:this instanceof xo?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;hr(e)&&(e=e.__ref),hr(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,a="string"==typeof t?this.lookup(n=t):t;if(a){__DEV__?xn("string"==typeof n,"store.merge expects a string ID"):xn("string"==typeof n,1);var o=new pa(jo).merge(i,a);if(this.data[n]=o,o!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(a).forEach((function(e){if(!i||i[e]!==o[e]){s[e]=1;var t=bo(e);t===e||r.policies.hasKeyArgs(o.__typename,t)||(s[t]=1),void 0!==o[e]||r instanceof xo||delete o[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==o.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return r.group.dirty(n,e)}))}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),a=!1,o=!0,s={DELETE:ko,INVALIDATE:To,isReference:hr,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||fr(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(u){var l=bo(u),c=r[u];if(void 0!==c){var d="function"==typeof t?t:t[u]||t[l];if(d){var f=d===Lo?ko:d(po(c),Le(Le({},s),{fieldName:l,storeFieldName:u,storage:n.getStorage(e,u)}));f===To?n.group.dirty(e,u):(f===ko&&(f=void 0),f!==c&&(i[u]=f,a=!0,c=f))}void 0!==c&&(o=!1)}})),a)return this.merge(e,i),o&&(this instanceof xo?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var a=this.getFieldValue(i,"__typename"),o=t&&n?this.policies.getStoreFieldName({typename:a,fieldName:t,args:n}):t;return this.modify(e,o?((r={})[o]=Lo,r):Lo)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(mo.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof xo&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){mo.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&mo.call(e,n)||t.delete(n)})),e){var n=e.__META,r=Te(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof xo?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){mo.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof xo;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!mo.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){hr(e)&&(t[e.__ref]=!0),ur(e)&&Object.keys(e).forEach((function(t){var n=e[t];ur(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),So=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Ba():null,this.keyMaker=new Di(Si)},e.prototype.depend=function(e,t){if(this.d){this.d(Eo(e,t));var n=bo(t);n!==t&&this.d(Eo(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(Eo(e,t),"__exists"===t?"forget":"setDirty")},e}();function Eo(e,t){return t+"#"+e}function Yo(e,t){Po(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,a=t.seed,o=e.call(this,n,new So(i))||this;return o.stump=new Oo(o),o.storageTrie=new Di(Si),a&&o.replace(a),o}return ke(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(Do||(Do={}));var xo=function(e){function t(t,n,r,i){var a=e.call(this,n.policies,i)||this;return a.id=t,a.parent=n,a.replay=r,a.group=i,r(a),a}return ke(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){mi(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return Le(Le({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return mo.call(this.data,t)?Le(Le({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(Do),Oo=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new So(t.group.caching,t.group))||this}return ke(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(xo);function jo(e,t,n){var r=e[n],i=t[n];return mi(r,i)?r:i}function Po(e){return!!(e instanceof Do&&e.group.caching)}function Co(e,t){return new ho(e.message,t.path.slice(),t.query,t.variables)}function Ao(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Io=function(){function e(e){var t=this;this.knownResults=new(Si?WeakMap:Map),this.config=li(e,{addTypename:!1!==e.addTypename,canonizeResults:vo(e)}),this.canon=e.canon||new xi,this.executeSelectionSet=$a((function(e){var n,r=e.context.canonizeResults,i=Ao(e);i[3]=!r;var a=(n=t.executeSelectionSet).peek.apply(n,i);return a?r?Le(Le({},a),{result:t.canon.admit(a.result)}):a:(Yo(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:Ao,makeCacheKey:function(e,t,n,r){if(Po(n.store))return n.store.makeCacheKey(e,hr(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=$a((function(e){return Yo(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(Po(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new xi},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,a=e.variables,o=e.returnPartialData,s=void 0===o||o,u=e.canonizeResults,l=void 0===u?this.config.canonizeResults:u,c=this.config.cache.policies;a=Le(Le({},xr(Er(n))),a);var d=fr(i),f=this.executeSelectionSet({selectionSet:Yr(n).selectionSet,objectOrReference:d,enclosingRef:d,context:{store:t,query:n,policies:c,variables:a,varString:Oi(a),canonizeResults:l,fragmentMap:cr(Sr(n)),path:[]}}),h=f.missing&&f.missing.length>0;if(h&&!s)throw f.missing[0];return{result:f.result,missing:f.missing,complete:!h}},e.prototype.isFresh=function(e,t,n,r){if(Po(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,a=e.context;if(hr(r)&&!a.policies.rootTypenamesById[r.__ref]&&!a.store.has(r.__ref))return{result:this.canon.empty,missing:[Co(__DEV__?new Yn("Dangling reference to missing "+r.__ref+" object"):new Yn(5),a)]};var o=a.variables,s=a.policies,u=a.store,l=[],c={result:null},d=u.getFieldValue(r,"__typename");function f(){return c.missing||(c.missing=[])}function h(e){var t;return e.missing&&(t=f()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof d&&!s.rootIdsByTypename[d]&&l.push({__typename:d});var p=new Set(n.selections);p.forEach((function(e){var n;if(Wi(e,o))if(wr(e)){var u=s.readField({fieldName:e.name.value,field:e,variables:a.variables,from:r},a),c=br(e);a.path.push(c),void 0===u?Hi.added(e)||f().push(Co(__DEV__?new Yn("Can't find field '"+e.name.value+"' on "+(hr(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2))):new Yn(6),a)):Array.isArray(u)?u=h(t.executeSubSelectedArray({field:e,array:u,enclosingRef:i,context:a})):e.selectionSet?null!=u&&(u=h(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:u,enclosingRef:hr(u)?u:i,context:a}))):a.canonizeResults&&(u=t.canon.pass(u)),void 0!==u&&l.push(((n={})[c]=u,n)),xn(a.path.pop()===c)}else{var m=dr(e,a.fragmentMap);m&&s.fragmentMatches(m,d)&&m.selectionSet.selections.forEach(p.add,p)}}));var m=fa(l);return c.result=a.canonizeResults?this.canon.admit(m):po(m),this.knownResults.set(c.result,n),c},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,a=e.enclosingRef,o=e.context;function s(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),xn(o.path.pop()===n),e.result}return r.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map((function(e,t){return null===e?null:(o.path.push(t),Array.isArray(e)?s(n.executeSubSelectedArray({field:r,array:e,enclosingRef:a,context:o}),t):r.selectionSet?s(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:hr(e)?e:a,context:o}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){ur(n)&&(__DEV__?xn(!hr(n),"Missing selection set for object of type "+function(e,t){return hr(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)+" returned for query field "+t.name.value):xn(!hr(n),7),Object.values(n).forEach(r.add,r))}))}}(o.store,r,e),xn(o.path.pop()===t),e))})),{result:o.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),No=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,a=t.dataId,o=t.variables,s=t.overwrite,u=Tr(r),l=new pa;o=Le(Le({},xr(u)),o);var c={store:e,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:o,varString:Oi(o),fragmentMap:cr(Sr(r)),overwrite:!!s,incomingById:new Map,clientOnly:!1},d=this.processSelectionSet({result:i||Object.create(null),dataId:a,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:c});if(!hr(d))throw __DEV__?new Yn("Could not identify object "+JSON.stringify(i)):new Yn(8);return c.incomingById.forEach((function(t,r){var i=t.fields,a=t.mergeTree,o=t.selections,s=fr(r);if(a&&a.map.size){var u=n.applyMerges(a,s,i,c);if(hr(u))return;i=u}if(__DEV__&&!c.overwrite){var l=new Set;o.forEach((function(e){wr(e)&&e.selectionSet&&l.add(e.name.value)})),Object.keys(i).forEach((function(e){(function(e){return l.has(bo(e))})(e)&&!function(e){var t=a&&a.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},a=i(e);if(a){var o=i(t);if(o&&!hr(a)&&!mi(a,o)&&!Object.keys(a).every((function(e){return void 0!==r.getFieldValue(o,e)}))){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),u=bo(n),l=s+"."+u;if(!zo.has(l)){zo.add(l);var c=[];Array.isArray(a)||Array.isArray(o)||[a,o].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||c.includes(t)||c.push(t)})),__DEV__&&xn.warn("Cache data may be lost when replacing the "+u+" field of a "+s+" object.\n\nTo address this problem (which is not a bug in Apollo Client), "+(c.length?"either ensure all objects of type "+c.join(" and ")+" have an ID or a custom merge function, or ":"")+"define a custom merge function for the "+l+" field, so InMemoryCache can safely merge these objects:\n\n existing: "+JSON.stringify(a).slice(0,1e3)+"\n incoming: "+JSON.stringify(o).slice(0,1e3)+"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n")}}}}(s,i,e,c.store)}))}e.merge(r,i)})),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,a=e.context,o=e.mergeTree,s=this.cache.policies,u=s.identify(r,i,a.fragmentMap),l=u[0],c=u[1];if("string"==typeof(n=n||l)){var d=a.written[n]||(a.written[n]=[]),f=fr(n);if(d.indexOf(i)>=0)return f;if(d.push(i),this.reader&&this.reader.isFresh(r,f,i,a))return f}var h=Object.create(null);c&&(h=a.merge(h,c));var p=n&&s.rootTypenamesById[n]||Mr(r,i,a.fragmentMap)||n&&a.store.get(n,"__typename");"string"==typeof p&&(h.__typename=p);var m=new Set(i.selections);if(m.forEach((function(e){var n;if(Wi(e,a.variables))if(wr(e)){var i=br(e),u=r[i],l=a.clientOnly;if(a.clientOnly=l||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0!==u){var c=s.getStoreFieldName({typename:p,fieldName:e.name.value,field:e,variables:a.variables}),d=Ro(o,c),f=t.processFieldValue(u,e,a,d),_=void 0;if(e.selectionSet&&!(_=a.store.getFieldValue(f,"__typename"))&&hr(f)){var y=a.incomingById.get(f.__ref);_=y&&y.fields.__typename}var v=s.getMergeFunction(p,e.name.value,_);v?d.info={field:e,typename:p,merge:v}:Uo(o,c),h=a.merge(h,((n={})[c]=f,n))}else a.clientOnly||Hi.added(e)||__DEV__&&xn.error(("Missing field '"+br(e)+"' while writing result "+JSON.stringify(r,null,2)).substring(0,1e3));a.clientOnly=l}else{var g=dr(e,a.fragmentMap);g&&s.fragmentMatches(g,p,r,a.variables)&&g.selectionSet.selections.forEach(m.add,m)}})),"string"==typeof n){var _=a.incomingById.get(n);return _?(_.fields=a.merge(_.fields,h),_.mergeTree=function e(t,n){if(t===n||!n||Ho(n))return t;if(!t||Ho(t))return n;var r=t.info&&n.info?Le(Le({},t.info),n.info):t.info||n.info,i=t.map.size&&n.map.size,a={info:r,map:i?new Map:t.map.size?t.map:n.map};if(i){var o=new Set(n.map.keys());t.map.forEach((function(t,r){a.map.set(r,e(t,n.map.get(r))),o.delete(r)})),o.forEach((function(r){a.map.set(r,e(n.map.get(r),t.map.get(r)))}))}return a}(_.mergeTree,o),_.selections.forEach(m.add,m),_.selections=m):a.incomingById.set(n,{fields:h,mergeTree:Ho(o)?void 0:o,selections:m}),fr(n)}return h},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,a){var o=i.processFieldValue(e,t,n,Ro(r,a));return Uo(r,a),o})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?ra(e):e},e.prototype.applyMerges=function(e,t,n,r,i){var a,o=this;if(e.map.size&&!hr(n)){var s,u=Array.isArray(n)||!hr(t)&&!wo(t)?void 0:t,l=n;u&&!i&&(i=[hr(u)?u.__ref:u]);var c=function(e,t){return Array.isArray(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=c(u,t),a=c(l,t);if(void 0!==a){i&&i.push(t);var d=o.applyMerges(e,n,a,r,i);d!==a&&(s=s||new Map).set(t,d),i&&xn(i.pop()===t)}})),s&&(n=Array.isArray(l)?l.slice(0):Le({},l),s.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(a=r.store).getStorage.apply(a,i)):n},e}(),Fo=[];function Ro(e,t){var n=e.map;return n.has(t)||n.set(t,Fo.pop()||{map:new Map}),n.get(t)}function Ho(e){return!e||!(e.info||e.map.size)}function Uo(e,t){var n=e.map,r=n.get(t);r&&Ho(r)&&(Fo.push(r),n.delete(t))}var zo=new Set;function Wo(e){var t=$i("stringifyForDisplay");return JSON.stringify(e,(function(e,n){return void 0===n?t:n})).split(JSON.stringify(t)).join("<undefined>")}function Bo(e){return void 0!==e.args?e.args:e.field?gr(e.field,e.variables):null}_r.setStringify(Oi);var qo=function(){},Vo=function(e,t){return t.fieldName},$o=function(e,t,n){return(0,n.mergeObjects)(e,t)},Go=function(e,t){return t},Qo=function(){function e(e){this.config=e,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=Le({dataIdFromObject:_o},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t,n){var r=t&&n?Mr(e,t,n):e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,a={typename:r,selectionSet:t,fragmentMap:n},o=r&&this.getTypePolicy(r),s=o&&o.keyFn||this.config.dataIdFromObject;s;){var u=s(e,a);if(!Array.isArray(u)){i=u;break}s=Zo(u)}return i=i?String(i):void 0,a.keyObject?[i,a.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,a=r.mutationType,o=r.subscriptionType,s=Te(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),a&&t.setRootTypename("Mutation",n),o&&t.setRootTypename("Subscription",n),mo.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,a=t.fields;function o(e,t){e.merge="function"==typeof t?t:!0===t?$o:!1===t?Go:e.merge}o(r,t.merge),r.keyFn=!1===i?qo:Array.isArray(i)?Zo(i):"function"==typeof i?i:r.keyFn,a&&Object.keys(a).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=a[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,u=i.read,l=i.merge;r.keyFn=!1===s?Vo:Array.isArray(s)?Xo(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),o(r,l)}r.read&&r.merge&&(r.keyFn=r.keyFn||Vo)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?xn(!r||r===e,"Cannot change root "+e+" __typename more than once"):xn(!r||r===e,2),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(go);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!mo.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,a=Te(r,["fields"]);Object.assign(n,a),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var o=this.getSupertypeSet(t,!0),s=[o],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},l=!(!n||!this.fuzzySubtypes.size),c=!1,d=0;d<s.length;++d){var f=s[d];if(f.has(a))return o.has(a)||(c&&__DEV__&&xn.warn("Inferring subtype "+t+" of supertype "+a),o.add(a)),!0;f.forEach(u),l&&d===s.length-1&&Mo(e.selectionSet,n,r)&&(l=!1,c=!0,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&u(n)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),a=i&&i.keyFn;if(a&&n)for(var o={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=Bo(e);a;){var u=a(s,o);if(!Array.isArray(u)){t=u||r;break}a=Xo(u)}return void 0===t&&(t=e.field?function(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,a=r.value;return pr(n[e.name.value],i,a,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return pr(r,n,i,t)}))),_r(e.name.value,r,n)}(e.field,e.variables):_r(r,Bo(e))),!1===t?r:r===bo(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),a=bo(i),o=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,a,!1),u=s&&s.read;if(u){var l=Jo(this,n,e,t,t.store.getStorage(hr(n)?n.__ref:n,i));return Ga.withValue(this.cache,u,[o,l])}return o}},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var a=n.field,o=n.typename,s=n.merge;return s===$o?Ko(r.store)(e,t):s===Go?t:(r.overwrite&&(e=void 0),s(e,t,Jo(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:r.variables},r,i||Object.create(null))))},e}();function Jo(e,t,n,r,i){var a=e.getStoreFieldName(n),o=bo(a),s=n.variables||r.variables,u=r.store,l=u.toReference,c=u.canRead;return{args:Bo(n),field:n.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:hr,toReference:l,storage:i,cache:e.cache,canRead:c,readField:function(n,i){var a;if("string"==typeof n)a={fieldName:n,from:arguments.length>1?i:t};else{if(!ur(n))return void(__DEV__&&xn.warn("Unexpected readField arguments: "+Wo(Array.from(arguments))));a=Le({},n),mo.call(n,"from")||(a.from=t)}return __DEV__&&void 0===a.from&&__DEV__&&xn.warn("Undefined 'from' passed to readField with arguments "+Wo(Array.from(arguments))),void 0===a.variables&&(a.variables=s),e.readField(a,r)},mergeObjects:Ko(r.store)}}function Ko(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new Yn("Cannot automatically merge arrays"):new Yn(3);if(ur(t)&&ur(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(hr(t)&&wo(n))return e.merge(t.__ref,n),t;if(wo(t)&&hr(n))return e.merge(t,n.__ref),n;if(wo(t)&&wo(n))return Le(Le({},t),n)}return n}}function Xo(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify(es(t,e,!1)):n.fieldName}}function Zo(e){var t=new Di(Si);return function(n,r){var i;if(r.selectionSet&&r.fragmentMap){var a=t.lookupArray([r.selectionSet,r.fragmentMap]);i=a.aliasMap||(a.aliasMap=function e(t,n){var r=Object.create(null),i=new Set([t]);return i.forEach((function(t){t.selections.forEach((function(t){if(wr(t)){if(t.alias){var a=t.alias.value,o=t.name.value;o!==a&&((r.aliases||(r.aliases=Object.create(null)))[o]=a)}t.selectionSet&&((r.subsets||(r.subsets=Object.create(null)))[t.name.value]=e(t.selectionSet,n))}else{var s=dr(t,n);s&&i.add(s.selectionSet)}}))})),r}(r.selectionSet,r.fragmentMap))}var o=r.keyObject=es(n,e,!0,i);return r.typename+":"+JSON.stringify(o)}}function es(e,t,n,r){var i,a,o=Object.create(null);return t.forEach((function(t){if(Array.isArray(t)){if("string"==typeof a&&"string"==typeof i){var s=r&&r.subsets,u=s&&s[a];o[a]=es(e[i],t,n,u)}}else{var l=r&&r.aliases,c=l&&l[t]||t;mo.call(e,c)?o[a=t]=e[i=c]:(__DEV__?xn(!n,"Missing field '"+c+"' while computing key fields"):xn(!n,4),i=a=void 0)}})),o}var ts=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=Xa,n.txCount=0,n.config=function(e){return li(yo,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new Qo({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return ke(t,e),t.prototype.init=function(){var e=this.data=new Do.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader;this.storeWriter=new No(this,this.storeReader=new Io({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:vo(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=$a((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(Po(n)){var r=e.optimistic,i=e.rootId,a=e.variables;return n.makeCacheKey(e.query,e.callback,Oi({optimistic:r,rootId:i,variables:a}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(Le(Le({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof ho)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(mo.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(Le(Le({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,n=this;return this.watches.size||Ja(t=this).vars.forEach((function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){n.watches.delete(e)&&!n.watches.size&&Ka(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){Oi.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){return hr(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(mo.call(e,"id"))return!1;e=Le(Le({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),Oi.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),Ka(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t=this,n=e.update,r=e.optimistic,i=void 0===r||r,a=e.removeOptimistic,o=e.onWatchUpdated,s=function(e){var r=t,i=r.data,a=r.optimisticData;++t.txCount,e&&(t.data=t.optimisticData=e);try{n(t)}finally{--t.txCount,t.data=i,t.optimisticData=a}},u=new Set;o&&!this.txCount&&this.broadcastWatches(Le(Le({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof i?this.optimisticData=this.optimisticData.addLayer(i,s):!1===i?s(this.data):s(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),o&&u.size?(this.broadcastWatches(Le(Le({},e),{onWatchUpdated:function(e,t){var n=o.call(this,e,t);return!1!==n&&u.delete(e),n}})),u.size&&u.forEach((function(e){return t.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e)},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Hi(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&mi(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(fo);const ns=JSON.parse('{"g":{"Credentials":["HubspotCredentials","StripeCredentials","ZuoraCredentials"],"ResetPeriodConfiguration":["MonthlyResetPeriodConfig","WeeklyResetPeriodConfig"]}}');var rs=r(4098),is=r.n(rs),as=function(){function e(e){var t=e.batchDebounce,n=e.batchInterval,r=e.batchMax,i=e.batchHandler,a=e.batchKey;this.queuedRequests=new Map,this.batchDebounce=t,this.batchInterval=n,this.batchMax=r||0,this.batchHandler=i,this.batchKey=a||function(){return""}}return e.prototype.enqueueRequest=function(e){var t=this,n=Le({},e),r=!1,i=this.batchKey(e.operation);return n.observable||(n.observable=new sr((function(e){t.queuedRequests.has(i)||t.queuedRequests.set(i,[]),r||(t.queuedRequests.get(i).push(n),r=!0),n.next=n.next||[],e.next&&n.next.push(e.next.bind(e)),n.error=n.error||[],e.error&&n.error.push(e.error.bind(e)),n.complete=n.complete||[],e.complete&&n.complete.push(e.complete.bind(e)),1===t.queuedRequests.get(i).length?t.scheduleQueueConsumption(i):t.batchDebounce&&(clearTimeout(t.scheduledBatchTimer),t.scheduleQueueConsumption(i)),t.queuedRequests.get(i).length===t.batchMax&&t.consumeQueue(i)}))),n.observable},e.prototype.consumeQueue=function(e){var t=e||"",n=this.queuedRequests.get(t);if(n){this.queuedRequests.delete(t);var r=n.map((function(e){return e.operation})),i=n.map((function(e){return e.forward})),a=[],o=[],s=[],u=[];n.forEach((function(e,t){a.push(e.observable),o.push(e.next),s.push(e.error),u.push(e.complete)}));var l=this.batchHandler(r,i)||sr.of(),c=function(e){s.forEach((function(t){t&&t.forEach((function(t){return t(e)}))}))};return l.subscribe({next:function(e){if(Array.isArray(e)||(e=[e]),o.length!==e.length){var t=new Error("server returned results with length "+e.length+", expected length of "+o.length);return t.result=e,c(t)}e.forEach((function(e,t){o[t]&&o[t].forEach((function(t){return t(e)}))}))},error:c,complete:function(){u.forEach((function(e){e&&e.forEach((function(e){return e()}))}))}}),a}},e.prototype.scheduleQueueConsumption=function(e){var t=this,n=e||"";this.scheduledBatchTimer=setTimeout((function(){t.queuedRequests.get(n)&&t.queuedRequests.get(n).length&&t.consumeQueue(n)}),this.batchInterval)},e}(),os=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.batchDebounce,a=r.batchInterval,o=void 0===a?10:a,s=r.batchMax,u=void 0===s?0:s,l=r.batchHandler,c=void 0===l?function(){return null}:l,d=r.batchKey,f=void 0===d?function(){return""}:d;return n.batcher=new as({batchDebounce:i,batchInterval:o,batchMax:u,batchHandler:c,batchKey:f}),t.batchHandler.length<=1&&(n.request=function(e){return n.batcher.enqueueRequest({operation:e})}),n}return ke(t,e),t.prototype.request=function(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})},t}(Ar),ss=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.uri,a=void 0===i?"/graphql":i,o=r.fetch,s=r.includeExtensions,u=r.batchInterval,l=r.batchDebounce,c=r.batchMax,d=r.batchKey,f=Te(r,["uri","fetch","includeExtensions","batchInterval","batchDebounce","batchMax","batchKey"]);Br(o),o||(o=fetch);var h={http:{includeExtensions:s},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return n.batchDebounce=l,n.batchInterval=u||10,n.batchMax=c||10,d=d||function(e){var t=e.getContext(),n={http:t.http,options:t.fetchOptions,credentials:t.credentials,headers:t.headers};return Hr(e,a)+JSON.stringify(n)},n.batcher=new os({batchDebounce:n.batchDebounce,batchInterval:n.batchInterval,batchMax:n.batchMax,batchKey:d,batchHandler:function(e){var t=Hr(e[0],a),n=e[0].getContext(),r={};if(n.clientAwareness){var i=n.clientAwareness,s=i.name,u=i.version;s&&(r["apollographql-client-name"]=s),u&&(r["apollographql-client-version"]=u)}var l,c={http:n.http,options:n.fetchOptions,credentials:n.credentials,headers:Le(Le({},r),n.headers)},d=e.map((function(e){return ni(e,ti,h,c)})),f=d.map((function(e){return e.body})),p=d[0].options;if("GET"===p.method)return ai(new Error("apollo-link-batch-http does not support GET requests"));try{p.body=Rr(f,"Payload")}catch(e){return ai(e)}if(!p.signal){var m=ii(),_=m.controller,y=m.signal;(l=_)&&(p.signal=y)}return new sr((function(n){return o(t,p).then((function(t){return e.forEach((function(e){return e.setContext({response:t})})),t})).then(Wr(e)).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){l&&l.abort()}}))}}),n}return ke(t,e),t.prototype.request=function(e){return this.batcher.request(e)},t}(Ar),us=function(){function e(e,t,n,r){var i=this;this.operation=e,this.nextLink=t,this.delayFor=n,this.retryIf=r,this.retryCount=0,this.values=[],this.complete=!1,this.canceled=!1,this.observers=[],this.currentSubscription=null,this.onNext=function(e){i.values.push(e);for(var t=0,n=i.observers;t<n.length;t++){var r=n[t];r&&r.next(e)}},this.onComplete=function(){i.complete=!0;for(var e=0,t=i.observers;e<t.length;e++){var n=t[e];n&&n.complete()}},this.onError=function(e){return De(i,void 0,void 0,(function(){var t,n,r;return Se(this,(function(i){switch(i.label){case 0:return this.retryCount+=1,[4,this.retryIf(this.retryCount,this.operation,e)];case 1:if(i.sent())return this.scheduleRetry(this.delayFor(this.retryCount,this.operation,e)),[2];for(this.error=e,t=0,n=this.observers;t<n.length;t++)(r=n[t])&&r.error(e);return[2]}}))}))}}return e.prototype.subscribe=function(e){if(this.canceled)throw new Error("Subscribing to a retryable link that was canceled is not supported");this.observers.push(e);for(var t=0,n=this.values;t<n.length;t++){var r=n[t];e.next(r)}this.complete?e.complete():this.error&&e.error(this.error)},e.prototype.unsubscribe=function(e){var t=this.observers.indexOf(e);if(t<0)throw new Error("RetryLink BUG! Attempting to unsubscribe unknown observer!");this.observers[t]=null,this.observers.every((function(e){return null===e}))&&this.cancel()},e.prototype.start=function(){this.currentSubscription||this.try()},e.prototype.cancel=function(){this.currentSubscription&&this.currentSubscription.unsubscribe(),clearTimeout(this.timerId),this.timerId=void 0,this.currentSubscription=null,this.canceled=!0},e.prototype.try=function(){this.currentSubscription=this.nextLink(this.operation).subscribe({next:this.onNext,error:this.onError,complete:this.onComplete})},e.prototype.scheduleRetry=function(e){var t=this;if(this.timerId)throw new Error("RetryLink BUG! Encountered overlapping retries");this.timerId=setTimeout((function(){t.timerId=void 0,t.try()}),e)},e}(),ls=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.attempts,a=r.delay;return n.delayFor="function"==typeof a?a:function(e){var t=e||{},n=t.initial,r=void 0===n?300:n,i=t.jitter,a=void 0===i||i,o=t.max,s=void 0===o?1/0:o,u=a?r:r/2;return function(e){var t=Math.min(s,u*Math.pow(2,e));return a&&(t=Math.random()*t),t}}(a),n.retryIf="function"==typeof i?i:function(e){var t=e||{},n=t.retryIf,r=t.max,i=void 0===r?5:r;return function(e,t,r){return!(e>=i)&&(n?n(r,t):!!r)}}(i),n}return ke(t,e),t.prototype.request=function(e,t){var n=new us(e,t,this.delayFor,this.retryIf);return n.start(),new sr((function(e){return n.subscribe(e),function(){n.unsubscribe(e)}}))},t}(Ar),cs=r(4147);function ds(e){return new Ar((function(t,n){return t.setContext({headers:{"X-API-KEY":e,source:vn}}),n(t)}))}var fs=function(e){return!!e&&![500,400].includes(e.statusCode)},hs=function(){function e(){var e=this;this.setFeatures=function(t){return e.features=new Set(t)},this.entitlements=new Map,this.features=new Set,this.isLoaded=!1}return e.prototype.getEntitlement=function(e){return this.entitlements.get(e)||null},e.prototype.validateFeature=function(e){return this.features.has(e)},e.prototype.setEntitlements=function(e){this.entitlements=e,this.isLoaded=!0},e.prototype.getEntitlements=function(){return this.entitlements},e}(),ps=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},ms=xt(ys||(ys=ps(["\n fragment EntitlementFragment on Entitlement {\n isGranted\n accessDeniedReason\n customerId\n usageLimit\n hasUnlimitedUsage\n currentUsage\n requestedUsage\n nextResetDate\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n }\n fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {\n __typename\n ... on MonthlyResetPeriodConfig {\n ...MonthlyResetPeriodConfigFragment\n }\n ... on WeeklyResetPeriodConfig {\n ...WeeklyResetPeriodConfigFragment\n }\n }\n fragment FeatureFragment on EntitlementFeature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n description\n displayName\n refId\n }\n fragment MonthlyResetPeriodConfigFragment on MonthlyResetPeriodConfig {\n monthlyAccordingTo\n }\n fragment WeeklyResetPeriodConfigFragment on WeeklyResetPeriodConfig {\n weeklyAccordingTo\n }\n"],["\n fragment EntitlementFragment on Entitlement {\n isGranted\n accessDeniedReason\n customerId\n usageLimit\n hasUnlimitedUsage\n currentUsage\n requestedUsage\n nextResetDate\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n }\n fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {\n __typename\n ... on MonthlyResetPeriodConfig {\n ...MonthlyResetPeriodConfigFragment\n }\n ... on WeeklyResetPeriodConfig {\n ...WeeklyResetPeriodConfigFragment\n }\n }\n fragment FeatureFragment on EntitlementFeature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n description\n displayName\n refId\n }\n fragment MonthlyResetPeriodConfigFragment on MonthlyResetPeriodConfig {\n monthlyAccordingTo\n }\n fragment WeeklyResetPeriodConfigFragment on WeeklyResetPeriodConfig {\n weeklyAccordingTo\n }\n"])));const _s=function(){function e(e){this.client=e}return e.prototype.getEntitlements=function(e){return this.client.query({query:xt(vs||(vs=ps(["\n query GetEntitlements($query: FetchEntitlementsQuery!) {\n entitlements: cachedEntitlements(query: $query) {\n ...EntitlementFragment\n }\n }\n ","\n "],["\n query GetEntitlements($query: FetchEntitlementsQuery!) {\n entitlements: cachedEntitlements(query: $query) {\n ...EntitlementFragment\n }\n }\n ","\n "])),ms),variables:{query:{customerId:e}},fetchPolicy:"no-cache"})},e.prototype.pollEntitlements=function(e,t){return this.client.watchQuery({query:xt(gs||(gs=ps(["\n query GetEntitlements($query: FetchEntitlementsQuery!) {\n entitlements: cachedEntitlements(query: $query) {\n ...EntitlementFragment\n }\n }\n ","\n "],["\n query GetEntitlements($query: FetchEntitlementsQuery!) {\n entitlements: cachedEntitlements(query: $query) {\n ...EntitlementFragment\n }\n }\n ","\n "])),ms),variables:{query:{customerId:e}},fetchPolicy:"no-cache",pollInterval:t,errorPolicy:"none"})},e.prototype.reportEntitlementRequested=function(e,t,n,r){return i=this,o=function(){return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(i){switch(i.label){case 0:return[4,this.client.mutate({mutation:xt(bs||(bs=ps(["\n mutation reportEntitlementCheckRequested($entitlementCheckRequested: EntitlementCheckRequested!) {\n reportEntitlementCheckRequested(entitlementCheckRequested: $entitlementCheckRequested)\n }\n "],["\n mutation reportEntitlementCheckRequested($entitlementCheckRequested: EntitlementCheckRequested!) {\n reportEntitlementCheckRequested(entitlementCheckRequested: $entitlementCheckRequested)\n }\n "]))),variables:{entitlementCheckRequested:{entitlementCheckResult:n,customerId:t,featureId:e,requestedUsage:r}},fetchPolicy:"no-cache"})];case 1:return i.sent(),[2]}}))},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{s(o.next(e))}catch(e){t(e)}}function r(e){try{s(o.throw(e))}catch(e){t(e)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof a?i:new a((function(e){e(i)}))).then(n,r)}s((o=o.apply(i,[])).next())}));var i,a,o},e}();var ys,vs,gs,bs,Ms=function(){function e(){}return e.decideEntitlementPolicy=function(e,t){var n,r;if(!e||!e.calculatedEntitlement.feature)return{hasAccess:!1,accessDeniedReason:he.CustomerNotEntitledForFeature};var i=e.calculatedEntitlement.feature,a=i.featureType,o=i.meterType;switch(a){case pe.Boolean:return{hasAccess:!0};case pe.Numeric:if((null===(n=e.calculatedEntitlement.feature)||void 0===n?void 0:n.meterType)===me.None)return{hasAccess:!0};if(e.calculatedEntitlement.hasUnlimitedUsage)return{hasAccess:!0};var s=e.featureUsage.currentUsage;return o===me.Incremental&&e.featureUsage.nextResetDate<(new Date).getTime()&&(s=0),s+(t||0)<=((null===(r=e.calculatedEntitlement)||void 0===r?void 0:r.usageLimit)||0)?{hasAccess:!0}:{hasAccess:!1,accessDeniedReason:he.RequestedUsageExceedsLimit}}},e}(),ws=function(){function e(e,t,n){this.entitlementsApi=e,this.customerId=t,this.loggerService=n}return e.prototype.reportEntitlementCheckRequested=function(e,t,n){return r=this,a=function(){var r=this;return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(i){return this.entitlementsApi.reportEntitlementRequested(e,this.customerId,t,n).then((function(){r.loggerService.debug("Successfully reported entitlement check requested")}),(function(e){r.loggerService.error("Failed to report entitlement check requested",e)})),[2]}))},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{s(a.next(e))}catch(e){t(e)}}function o(e){try{s(a.throw(e))}catch(e){t(e)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(n,o)}s((a=a.apply(r,[])).next())}));var r,i,a},e}(),ks=function(){return(ks=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Ls=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}u((r=r.apply(e,t||[])).next())}))},Ts=function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},Ds=function(){function e(e,t,n,r,i){this.customerId=e,this.cacheService=t,this.loggerService=i,this.modelMapper=new Tn,this.loadingEntitlements=null,this.entitlementsApi=new _s(n),this.entitlementCheckReportingService=new ws(new _s(r),e,i),this.entitlementsPollingObserver=null}return e.prototype.startPolling=function(e){var t=this;this.stopPolling(),this.entitlementsPollingObserver=this.entitlementsApi.pollEntitlements(this.customerId,e),this.entitlementsPollingObserver.subscribe((function(n){var r;if(n.errors||!n.data||!n.data.entitlements)return t.loggerService.error("Failed to poll entitlements. Error: ".concat(n.errors),{errors:(null===(r=n.errors)||void 0===r?void 0:r.map((function(e){return e.message})).join(", "))||""}),void setTimeout((function(){return t.restartPolling(e)}),e);t.storeFetchedEntitlementsInCache(n.data.entitlements)}),(function(n){t.loggerService.error("Failed to poll entitlements. Error: ".concat(n.message),n),setTimeout((function(){return t.restartPolling(e)}),e)}))},e.prototype.stopPolling=function(){var e;null===(e=this.entitlementsPollingObserver)||void 0===e||e.stopPolling()},e.prototype.restartPolling=function(e){this.stopPolling(),this.startPolling(e)},e.prototype.refresh=function(){return Ls(this,void 0,void 0,(function(){return Ts(this,(function(e){switch(e.label){case 0:return[4,this.loadEntitlements()];case 1:return e.sent(),[2]}}))}))},e.prototype.getBooleanEntitlement=function(e,t){var n=this.cacheService.getEntitlement(e),r=Ms.decideEntitlementPolicy(n);if((null==n?void 0:n.calculatedEntitlement.feature)&&n.calculatedEntitlement.feature.featureType!==pe.Boolean)return this.entitlementCheckReportingService.reportEntitlementCheckRequested(e,this.modelMapper.mapFallbackBooleanEntitlementResult(t,r)),t;if(!n){var i=this.modelMapper.mapEntitlementResult(r);return this.entitlementCheckReportingService.reportEntitlementCheckRequested(e,i),ks(ks({},r),{isFallback:!1})}var a=this.modelMapper.mapEntitlementResult(r,n);return this.entitlementCheckReportingService.reportEntitlementCheckRequested(e,a),this.modelMapper.mapBooleanEntitlement(n,r)},e.prototype.getNumericEntitlement=function(e,t){var n,r=this.cacheService.getEntitlement(e),i=Ms.decideEntitlementPolicy(r);if((null==r?void 0:r.calculatedEntitlement.feature)&&(null===(n=r.calculatedEntitlement.feature)||void 0===n?void 0:n.featureType)!==pe.Numeric){var a=this.modelMapper.mapFallbackNumericEntitlementResult(t,i);return this.entitlementCheckReportingService.reportEntitlementCheckRequested(e,a),t}if(!r){var o=this.modelMapper.mapEntitlementResult(i);return this.entitlementCheckReportingService.reportEntitlementCheckRequested(e,o),ks(ks({},i),{isFallback:!1,isUnlimited:!1})}var s=this.modelMapper.mapEntitlementResult(i,r);return this.entitlementCheckReportingService.reportEntitlementCheckRequested(e,s),this.modelMapper.mapNumericEntitlement(r,i)},e.prototype.getMeteredEntitlement=function(e,t,n){var r,i,a=this.cacheService.getEntitlement(e),o=Ms.decideEntitlementPolicy(a,null==n?void 0:n.requestedUsage);if((null==a?void 0:a.calculatedEntitlement.feature)&&(null===(r=a.calculatedEntitlement.feature)||void 0===r?void 0:r.meterType)!==me.Fluctuating&&(null===(i=a.calculatedEntitlement.feature)||void 0===i?void 0:i.meterType)!==me.Incremental){var s=this.modelMapper.mapFallbackMeteredEntitlementResult(t,o,null==n?void 0:n.requestedUsage);return this.entitlementCheckReportingService.reportEntitlementCheckRequested(e,s),t}if(!a){var u=this.modelMapper.mapEntitlementResult(o,void 0,null==n?void 0:n.requestedUsage);return this.entitlementCheckReportingService.reportEntitlementCheckRequested(e,u),ks(ks({},o),{currentUsage:0,isFallback:!1,isUnlimited:!1,requestedUsage:(null==n?void 0:n.requestedUsage)||0})}var l=this.modelMapper.mapEntitlementResult(o,a,null==n?void 0:n.requestedUsage);return this.entitlementCheckReportingService.reportEntitlementCheckRequested(e,l),this.modelMapper.mapMeteredEntitlement(a,o,null==n?void 0:n.requestedUsage)},e.prototype.loadEntitlements=function(){return Ls(this,void 0,void 0,(function(){return Ts(this,(function(e){switch(e.label){case 0:this.loadingEntitlements||(this.loadingEntitlements=this.loadEntitlementsFromRemote()),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,this.loadingEntitlements];case 2:return[2,e.sent()];case 3:return this.loadingEntitlements=null,[7];case 4:return[2]}}))}))},e.prototype.loadEntitlementsFromRemote=function(){return Ls(this,void 0,void 0,(function(){var e;return Ts(this,(function(t){switch(t.label){case 0:return[4,this.entitlementsApi.getEntitlements(this.customerId)];case 1:return e=t.sent(),this.storeFetchedEntitlementsInCache(e.data.entitlements),[2]}}))}))},e.prototype.storeFetchedEntitlementsInCache=function(e){var t=this.modelMapper.mapCachedEntitlements(e);this.cacheService.setEntitlements(t)},e.prototype.getEntitlements=function(){return Ls(this,void 0,void 0,(function(){var e=this;return Ts(this,(function(t){switch(t.label){case 0:return this.cacheService.isLoaded?[3,2]:[4,this.loadEntitlements()];case 1:t.sent(),t.label=2;case 2:return[2,Array.from(this.cacheService.getEntitlements().values()).map((function(t){var n=Ms.decideEntitlementPolicy(t);return e.modelMapper.mapEntitlement(t,n)}))]}}))}))},e}(),Ss=r(2991),Es=Object.prototype.toString;function Ys(e){switch(Es.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Fs(e,Error)}}function xs(e,t){return Es.call(e)===`[object ${t}]`}function Os(e){return xs(e,"ErrorEvent")}function js(e){return xs(e,"DOMError")}function Ps(e){return xs(e,"String")}function Cs(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function As(e){return xs(e,"Object")}function Is(e){return"undefined"!=typeof Event&&Fs(e,Event)}function Ns(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Fs(e,t){try{return e instanceof t}catch(e){return!1}}function Rs(e,t){try{let i=e;var n=[];let a=0,o=0;var r=" > ".length;let s;for(;i&&a++<5&&(s=Hs(i,t),!("html"===s||a>1&&o+n.length*r+s.length>=80));)n.push(s),o+=s.length,i=i.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function Hs(e,t){var n=e,r=[];let i,a,o,s,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());var l=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(l&&l.length)l.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else if(n.id&&r.push("#"+n.id),i=n.className,i&&Ps(i))for(a=i.split(/\s+/),u=0;u<a.length;u++)r.push("."+a[u]);var c=["type","name","title","alt"];for(u=0;u<c.length;u++)o=c[u],s=n.getAttribute(o),s&&r.push(`[${o}="${s}"]`);return r.join("")}function Us(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function zs(e,t){if(!Array.isArray(e))return"";var n=[];for(let t=0;t<e.length;t++){var r=e[t];try{n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Ws(e,t){return!!Ps(e)&&(xs(t,"RegExp")?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}function Bs(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{Vs(i,r)}catch(e){}e[t]=i}}function qs(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function Vs(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,qs(e,"__sentry_original__",t)}function $s(e){return e.__sentry_original__}function Gs(e){if(Ys(e))return{message:e.message,name:e.name,stack:e.stack,...Js(e)};if(Is(e)){var t={type:e.type,target:Qs(e.target),currentTarget:Qs(e.currentTarget),...Js(e)};return"undefined"!=typeof CustomEvent&&Fs(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Qs(e){try{return"undefined"!=typeof Element&&Fs(e,Element)?Rs(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function Js(e){if("object"==typeof e&&null!==e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Ks(e,t=40){var n=Object.keys(Gs(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Us(n[0],t);for(let e=n.length;e>0;e--){var r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:Us(r,t)}return""}function Xs(e){return function e(t,n){if(As(t)){if(void 0!==(a=n.get(t)))return a;var r={};for(var i of(n.set(t,r),Object.keys(t)))void 0!==t[i]&&(r[i]=e(t[i],n));return r}var a;return Array.isArray(t)?void 0!==(a=n.get(t))?a:(r=[],n.set(t,r),t.forEach(t=>{r.push(e(t,n))}),r):t}(e,new Map)}let Zs;class eu{constructor(){eu.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=eu.id}setupOnce(){Zs=Function.prototype.toString,Function.prototype.toString=function(...e){var t=$s(this)||this;return Zs.apply(t,e)}}}eu.__initStatic();var tu=(0,Ss.R)(),nu=["debug","info","warn","error","log","assert","trace"];function ru(e){var t=(0,Ss.R)();if(!("console"in t))return e();var n=t.console,r={};nu.forEach(e=>{var i=n[e]&&n[e].__sentry_original__;e in t.console&&i&&(r[e]=n[e],n[e]=i)});try{return e()}finally{Object.keys(r).forEach(e=>{n[e]=r[e]})}}function iu(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?nu.forEach(n=>{t[n]=(...t)=>{e&&ru(()=>{tu.console[n](`Sentry Logger [${n}]:`,...t)})}}):nu.forEach(e=>{t[e]=()=>{}}),t}let au;function ou(){var e=(0,Ss.R)(),t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");var n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function su(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function uu(e){const{message:t,event_id:n}=e;if(t)return t;var r=su(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function lu(e,t,n){var r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function cu(e,t){var n=su(e);if(n){var r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){var i={...r&&r.data,...t.data};n.mechanism.data=i}}}function du(e){if(e&&e.__sentry_captured__)return!0;try{qs(e,"__sentry_captured__",!0)}catch(e){}return!1}au="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,Ss.Y)("logger",iu):iu();var fu=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class hu{static __initStatic(){this.id="InboundFilters"}__init(){this.name=hu.id}constructor(e={}){this._options=e,hu.prototype.__init.call(this)}setupOnce(e,t){var n=e=>{var n=t();if(n){var r=n.getIntegration(hu);if(r){var i=n.getClient(),a=i?i.getOptions():{};return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("Event dropped due to being internal Sentry Error.\nEvent: "+uu(e)),!0):function(e,t){return!(!t||!t.length)&&function(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[""+n,`${t}: ${n}`]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error("Cannot extract message for event "+uu(e)),[]}return[]}(e).some(e=>t.some(t=>Ws(e,t)))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+uu(e)),!0):function(e,t){if(!t||!t.length)return!1;var n=pu(e);return!!n&&t.some(e=>Ws(n,e))}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${uu(e)}.\nUrl: ${pu(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;var n=pu(e);return!n||t.some(e=>Ws(n,e))}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${uu(e)}.\nUrl: ${pu(e)}`),!0)}(e,function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...fu],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(r._options,a))?null:e}}return e};n.id=this.name,e(n)}}function pu(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let n=e.length-1;n>=0;n--){var t=e[n];if(t&&"<anonymous>"!==t.filename&&"[native code]"!==t.filename)return t.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error("Cannot extract url for event "+uu(e)),null}}hu.__initStatic();var mu,_u=r(1170),yu=r(2176);function vu(e){return new bu(t=>{t(e)})}function gu(e){return new bu((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(mu||(mu={}));class bu{__init(){this._state=mu.PENDING}__init2(){this._handlers=[]}constructor(e){bu.prototype.__init.call(this),bu.prototype.__init2.call(this),bu.prototype.__init3.call(this),bu.prototype.__init4.call(this),bu.prototype.__init5.call(this),bu.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new bu((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new bu((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{i?n(r):t(r)})})}__init3(){this._resolve=e=>{this._setResult(mu.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(mu.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===mu.PENDING&&(Ns(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state!==mu.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===mu.RESOLVED&&e[1](this._value),this._state===mu.REJECTED&&e[2](this._value),e[0]=!0)})}}}}function Mu(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,_u.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:ou()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=""+t.did),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}class wu{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){var t=new wu;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments]),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&Mu(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts={...this._contexts,[e]:t},this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){var t=e(this);return t instanceof wu?t:this}return e instanceof wu?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):As(e)&&(e=e,this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r={timestamp:(0,_u.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags={transaction:n,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...ku(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,r=0){return new bu((i,a)=>{var o=e[r];if(null===t||"function"!=typeof o)i(t);else{var s=o({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.id&&null===s&&au.log(`Event processor "${o.id}" dropped event`),Ns(s)?s.then(t=>this._notifyEventProcessors(e,t,n,r+1).then(i)).then(null,a):this._notifyEventProcessors(e,s,n,r+1).then(i).then(null,a)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function ku(){return(0,Ss.Y)("globalEventProcessors",()=>[])}function Lu(e){ku().push(e)}var Tu=100;class Du{__init(){this._stack=[{}]}constructor(e,t=new wu,n=4){this._version=n,Du.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){var e=wu.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:ou(),r=new Error("Sentry syntheticException");return this._withClient((i,a)=>{i.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},a)}),n}captureMessage(e,t,n){var r=this._lastEventId=n&&n.event_id?n.event_id:ou(),i=new Error(e);return this._withClient((a,o)=>{a.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},o)}),r}captureEvent(e,t){var n=t&&t.event_id?t.event_id:ou();return"transaction"!==e.type&&(this._lastEventId=n),this._withClient((r,i)=>{r.captureEvent(e,{...t,event_id:n},i)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:a=Tu}=r.getOptions&&r.getOptions()||{};if(!(a<=0)){var o={timestamp:(0,_u.yW)(),...e},s=i?ru(()=>i(o,t)):o;null!==s&&n.addBreadcrumb(s,a)}}setUser(e){var t=this.getScope();t&&t.setUser(e)}setTags(e){var t=this.getScope();t&&t.setTags(e)}setExtras(e){var t=this.getScope();t&&t.setExtras(e)}setTag(e,t){var n=this.getScope();n&&n.setTag(e,t)}setExtra(e,t){var n=this.getScope();n&&n.setExtra(e,t)}setContext(e,t){var n=this.getScope();n&&n.setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();t&&n&&e(t)}run(e){var t=Eu(this);try{e(this)}finally{Eu(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&function(e,t){let n={};"ok"===e.status&&(n={status:"exited"}),Mu(e,n)}(n),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i}=n&&n.getOptions()||{};var a=(0,Ss.R)();const{userAgent:o}=a.navigator||{};var s=function(e){var t=(0,_u.ph)(),n={sid:ou(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Xs({sid:""+e.sid,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?""+e.did:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Mu(n,e),n}({release:r,environment:i,...t&&{user:t.getUser()},...o&&{userAgent:o},...e});if(t){var u=t.getSession&&t.getSession();u&&"ok"===u.status&&Mu(u,{status:"exited"}),this.endSession(),t.setSession(s)}return s}shouldSendDefaultPii(){var e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();if(e){var n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){var n=Su().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Su(){var e=(0,Ss.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function Eu(e){var t=Su(),n=Ou(t);return ju(t,e),n}function Yu(){var e=Su();return xu(e)&&!Ou(e).isOlderThan(4)||ju(e,new Du),(0,yu.KV)()?function(e){try{var t=Su().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return Ou(e);if(!xu(n)||Ou(n).isOlderThan(4)){var r=Ou(e).getStackTop();ju(n,new Du(r.client,wu.clone(r.scope)))}return Ou(n)}catch(t){return Ou(e)}}(e):Ou(e)}function xu(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Ou(e){return(0,Ss.Y)("hub",()=>new Du,e)}function ju(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}var Pu="<anonymous>";function Cu(e){try{return e&&"function"==typeof e&&e.name||Pu}catch(e){return Pu}}function Au(){if(!("fetch"in(0,Ss.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function Iu(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var Nu=(0,Ss.R)(),Fu={},Ru={};function Hu(e,t){Fu[e]=Fu[e]||[],Fu[e].push(t),function(e){if(!Ru[e])switch(Ru[e]=!0,e){case"console":"console"in Nu&&nu.forEach((function(e){e in Nu.console&&Bs(Nu.console,e,(function(t){return function(...n){Uu("console",{args:n,level:e}),t&&t.apply(Nu.console,n)}}))}));break;case"dom":!function(){if("document"in Nu){var e=Uu.bind(null,"dom"),t=$u(e,!0);Nu.document.addEventListener("click",t,!1),Nu.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{var n=Nu[t]&&Nu[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Bs(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var a=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=a[n]=a[n]||{refCount:0};if(!o.handler){var s=$u(e);o.handler=s,t.call(this,n,s,i)}o.refCount+=1}catch(e){}return t.call(this,n,r,i)}})),Bs(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var i=this.__sentry_instrumentation_handlers__||{},a=i[t];a&&(a.refCount-=1,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))})}}();break;case"xhr":!function(){if("XMLHttpRequest"in Nu){var e=XMLHttpRequest.prototype;Bs(e,"open",(function(e){return function(...t){var n=this,r=t[1],i=n.__sentry_xhr__={method:Ps(t[0])?t[0].toUpperCase():t[0],url:t[1]};Ps(r)&&"POST"===i.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);var a=function(){if(4===n.readyState){try{i.status_code=n.status}catch(e){}Uu("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?Bs(n,"onreadystatechange",(function(e){return function(...t){return a(),e.apply(n,t)}})):n.addEventListener("readystatechange",a),e.apply(n,t)}})),Bs(e,"send",(function(e){return function(...t){return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),Uu("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}}();break;case"fetch":(function(){if(!Au())return!1;var e=(0,Ss.R)();if(Iu(e.fetch))return!0;let t=!1;var n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=Iu(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&Bs(Nu,"fetch",(function(e){return function(...t){var n={args:t,fetchData:{method:zu(t),url:Wu(t)},startTimestamp:Date.now()};return Uu("fetch",{...n}),e.apply(Nu,t).then(e=>(Uu("fetch",{...n,endTimestamp:Date.now(),response:e}),e),e=>{throw Uu("fetch",{...n,endTimestamp:Date.now(),error:e}),e})}}));break;case"history":!function(){if(function(){var e=(0,Ss.R)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}()){var e=Nu.onpopstate;Nu.onpopstate=function(...t){var n=Nu.location.href,r=Bu;if(Bu=n,Uu("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},Bs(Nu.history,"pushState",t),Bs(Nu.history,"replaceState",t)}function t(e){return function(...t){var n=t.length>2?t[2]:void 0;if(n){var r=Bu,i=String(n);Bu=i,Uu("history",{from:r,to:i})}return e.apply(this,t)}}}();break;case"error":Gu=Nu.onerror,Nu.onerror=function(e,t,n,r,i){return Uu("error",{column:r,error:i,line:n,msg:e,url:t}),!!Gu&&Gu.apply(this,arguments)};break;case"unhandledrejection":Qu=Nu.onunhandledrejection,Nu.onunhandledrejection=function(e){return Uu("unhandledrejection",e),!Qu||Qu.apply(this,arguments)};break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("unknown instrumentation type:",e)}}(e)}function Uu(e,t){if(e&&Fu[e])for(var n of Fu[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Cu(n)}\nError:`,t)}}function zu(e=[]){return"Request"in Nu&&Fs(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Wu(e=[]){return"string"==typeof e[0]?e[0]:"Request"in Nu&&Fs(e[0],Request)?e[0].url:String(e[0])}let Bu,qu,Vu;function $u(e,t=!1){return n=>{if(n&&Vu!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===qu||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(Vu,n))&&(e({event:n,name:r,global:t}),Vu=n),clearTimeout(qu),qu=Nu.setTimeout(()=>{qu=void 0},1e3)}}}let Gu=null,Qu=null;function Ju(e,t=1/0,n=1/0){try{return Xu("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Ku(e,t=3,n=102400){var r,i=Ju(e,t);return r=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?Ku(e,t-1,n):i}function Xu(e,t,n=1/0,i=1/0,a=function(){var e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[o,s]=a;if(null===t||["number","boolean","string"].includes(typeof t)&&("number"!=typeof(u=t)||u==u))return t;var u,l=function(e,t){try{return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":void 0!==r.g&&t===r.g?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":function(e){return As(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${Cu(t)}]`:"symbol"==typeof t?`[${String(t)}]`:"bigint"==typeof t?`[BigInt: ${String(t)}]`:`[object ${Object.getPrototypeOf(t).constructor.name}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;if(0===n)return l.replace("object ","");if(o(t))return"[Circular ~]";var c=t;if(c&&"function"==typeof c.toJSON)try{return Xu("",c.toJSON(),n-1,i,a)}catch(e){}var d=Array.isArray(t)?[]:{};let f=0;var h=Gs(t);for(var p in h)if(Object.prototype.hasOwnProperty.call(h,p)){if(f>=i){d[p]="[MaxProperties ~]";break}var m=h[p];d[p]=Xu(p,m,n-1,i,a),f+=1}return s(t),d}function Zu(e,t){var n=tl(e,t),r={type:t&&t.name,value:rl(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function el(e,t){return{exception:{values:[Zu(e,t)]}}}function tl(e,t){var n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(nl.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}var nl=/Minified React error #\d+;/i;function rl(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function il(e,t,n,r,i){let a;if(Os(t)&&t.error)return el(e,t.error);if(js(t)||xs(t,"DOMException")){var o=t;if("stack"in t)a=el(e,t);else{var s=o.name||(js(o)?"DOMError":"DOMException"),u=o.message?`${s}: ${o.message}`:s;a=al(e,u,n,r),lu(a,u)}return"code"in o&&(a.tags={...a.tags,"DOMException.code":""+o.code}),a}return Ys(t)?el(e,t):As(t)||Is(t)?(a=function(e,t,n,r){var i={exception:{values:[{type:Is(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${Ks(t)}`}]},extra:{__serialized__:Ku(t)}};if(n){var a=tl(e,n);a.length&&(i.exception.values[0].stacktrace={frames:a})}return i}(e,t,n,i),cu(a,{synthetic:!0}),a):(a=al(e,t,n,r),lu(a,""+t,void 0),cu(a,{synthetic:!0}),a)}function al(e,t,n,r){var i={message:t};if(r&&n){var a=tl(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}return i}function ol(e,t){return Yu().captureException(e,{captureContext:t})}function sl(e){Yu().withScope(e)}let ul=0;function ll(){return ul>0}function cl(){ul+=1,setTimeout(()=>{ul-=1})}function dl(e,t={},n){if("function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if($s(e))return e}catch(t){return e}var i=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map(e=>dl(e,t));return e.apply(this,i)}catch(e){throw cl(),sl(n=>{n.addEventProcessor(e=>(t.mechanism&&(lu(e,void 0,void 0),cu(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),ol(e)}),e}};try{for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=e[a])}catch(e){}Vs(i,e),qs(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}class fl{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=fl.id}__init2(){this._installFunc={onerror:hl,onunhandledrejection:pl}}constructor(e){fl.prototype.__init.call(this),fl.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;var e,t=this._options;for(var n in t){var r=this._installFunc[n];r&&t[n]&&(e=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log("Global Handler attached: "+e),r(),this._installFunc[n]=void 0)}}}function hl(){Hu("error",e=>{const[t,n,r]=yl();if(!t.getIntegration(fl))return;const{msg:i,url:a,line:o,column:s,error:u}=e;if(!(ll()||u&&u.__sentry_own_request__)){var l=void 0===u&&Ps(i)?function(e,t,n,r){let i=Os(e)?e.message:e,a="Error";var o=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return o&&(a=o[1],i=o[2]),ml({exception:{values:[{type:a,value:i}]}},t,n,r)}(i,a,o,s):ml(il(n,u||i,void 0,r,!1),a,o,s);l.level="error",_l(t,u,l,"onerror")}})}function pl(){Hu("unhandledrejection",e=>{const[t,n,r]=yl();if(!t.getIntegration(fl))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(e){}if(ll()||i&&i.__sentry_own_request__)return!0;var a=Cs(i)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(i)}]}}:il(n,i,void 0,r,!0);a.level="error",_l(t,i,a,"onunhandledrejection")})}function ml(e,t,n,r){var i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},u=s.frames=s.frames||[],l=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,d=Ps(t)&&t.length>0?t:function(){var e=(0,Ss.R)();try{return e.document.location.href}catch(e){return""}}();return 0===u.length&&u.push({colno:l,filename:d,function:"?",in_app:!0,lineno:c}),e}function _l(e,t,n,r){cu(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function yl(){var e=Yu(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}fl.__initStatic();var vl=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class gl{static __initStatic(){this.id="TryCatch"}__init(){this.name=gl.id}constructor(e){gl.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){var e=(0,Ss.R)();this._options.setTimeout&&Bs(e,"setTimeout",bl),this._options.setInterval&&Bs(e,"setInterval",bl),this._options.requestAnimationFrame&&Bs(e,"requestAnimationFrame",Ml),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Bs(XMLHttpRequest.prototype,"send",wl);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:vl).forEach(kl)}}function bl(e){return function(...t){var n=t[0];return t[0]=dl(n,{mechanism:{data:{function:Cu(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function Ml(e){return function(t){return e.apply(this,[dl(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Cu(e)},handled:!0,type:"instrument"}})])}}function wl(e){return function(...t){var n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&Bs(n,e,(function(t){var n={mechanism:{data:{function:e,handler:Cu(t)},handled:!0,type:"instrument"}},r=$s(t);return r&&(n.mechanism.data.handler=Cu(r)),dl(t,n)}))}),e.apply(this,t)}}function kl(e){var t=(0,Ss.R)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Bs(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=dl(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Cu(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,dl(r,{mechanism:{data:{function:"addEventListener",handler:Cu(r),target:e},handled:!0,type:"instrument"}}),i])}})),Bs(n,"removeEventListener",(function(e){return function(t,n,r){var i=n;try{var a=i&&i.__sentry_wrapped__;a&&e.call(this,t,a,r)}catch(e){}return e.call(this,t,i,r)}})))}gl.__initStatic();var Ll=["fatal","error","warning","log","info","debug"];function Tl(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}var Dl="Breadcrumbs";class Sl{static __initStatic(){this.id=Dl}__init(){this.name=Sl.id}constructor(e){Sl.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){var e;this.options.console&&Hu("console",El),this.options.dom&&Hu("dom",(e=this.options.dom,function(t){let n,r="object"==typeof e?e.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=t.event.target?Rs(t.event.target,r):Rs(t.event,r)}catch(e){n="<unknown>"}0!==n.length&&Yu().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&Hu("xhr",Yl),this.options.fetch&&Hu("fetch",xl),this.options.history&&Hu("history",Ol)}}function El(e){var t,n={category:"console",data:{arguments:e.args,logger:"console"},level:(t=e.level,"warn"===t?"warning":Ll.includes(t)?t:"log"),message:zs(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message="Assertion failed: "+(zs(e.args.slice(1)," ")||"console.assert"),n.data.arguments=e.args.slice(1)}Yu().addBreadcrumb(n,{input:e.args,level:e.level})}function Yl(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;const{method:t,url:n,status_code:r,body:i}=e.xhr.__sentry_xhr__||{};Yu().addBreadcrumb({category:"xhr",data:{method:t,url:n,status_code:r},type:"http"},{xhr:e.xhr,input:i})}}function xl(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?Yu().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):Yu().addBreadcrumb({category:"fetch",data:{...e.fetchData,status_code:e.response.status},type:"http"},{input:e.args,response:e.response})))}function Ol(e){var t=(0,Ss.R)();let n=e.from,r=e.to;var i=Tl(t.location.href);let a=Tl(n);var o=Tl(r);a.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),Yu().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}Sl.__initStatic();class jl{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=jl.id}constructor(e={}){jl.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){var e=Yu().getClient();e&&Lu((t,n)=>{var r=Yu().getIntegration(jl);return r?function(e,t,n,r,i){if(!(r.exception&&r.exception.values&&i&&Fs(i.originalException,Error)))return r;var a=function e(t,n,r,i,a=[]){if(!Fs(r[i],Error)||a.length+1>=n)return a;var o=Zu(t,r[i]);return e(t,n,r[i],i,[o,...a])}(e,n,i.originalException,t);return r.exception.values=[...a,...r.exception.values],r}(e.getOptions().stackParser,r._key,r._limit,t,n):t})}}jl.__initStatic();var Pl=(0,Ss.R)();class Cl{constructor(){Cl.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Cl.id}setupOnce(){Lu(e=>{if(Yu().getIntegration(Cl)){if(!Pl.navigator&&!Pl.location&&!Pl.document)return e;var t=e.request&&e.request.url||Pl.location&&Pl.location.href;const{referrer:r}=Pl.document||{},{userAgent:i}=Pl.navigator||{};var n={...t&&{url:t},headers:{...e.request&&e.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}}};return{...e,request:n}}return e})}}Cl.__initStatic();class Al{constructor(){Al.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Al.id}setupOnce(e,t){var n=e=>{var n=t().getIntegration(Al);if(n){try{if(function(e,t){return!(!t||!function(e,t){var n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Nl(e,t)||!Il(e,t))}(e,t)&&!function(e,t){var n=Fl(t),r=Fl(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&Nl(e,t)&&Il(e,t))}(e,t))}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function Il(e,t){let n=Rl(e),r=Rl(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,r=r,r.length!==n.length)return!1;for(let e=0;e<r.length;e++){var i=r[e],a=n[e];if(i.filename!==a.filename||i.lineno!==a.lineno||i.colno!==a.colno||i.function!==a.function)return!1}return!0}function Nl(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function Fl(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Rl(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}Al.__initStatic();let Hl={};var Ul=(0,Ss.R)();Ul.Sentry&&Ul.Sentry.Integrations&&(Hl=Ul.Sentry.Integrations);var zl={...Hl,...i,...a};function Wl(e,t,n,r){var i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var Bl=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ql=/\((\S*)(?::(\d+))(?::(\d+))\)/,Vl=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,$l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Gl=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ql=function(...e){var t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{var r=[];for(var i of e.split("\n").slice(n)){var a=i.replace(/\(error: (.*)\)/,"$1");for(var o of t){var s=o(a);if(s){r.push(s);break}}}return function(e){if(!e.length)return[];let t=e;var n=t[0].function||"",r=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map(e=>({...e,filename:e.filename||t[0].filename,function:e.function||"?"})).reverse()}(r)}}([30,e=>{var t=Bl.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=ql.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}const[e,r]=Jl(t[1]||"?",t[2]);return Wl(r,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{var t=Vl.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=$l.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}let e=t[3],r=t[1]||"?";return[r,e]=Jl(r,e),Wl(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{var t=Gl.exec(e);return t?Wl(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}]),Jl=(e,t)=>{var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]};class Kl extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function Xl(e,t=[]){return[e,t]}function Zl(e,t){const[n,r]=e;return[n,[...r,t]]}function ec(e,t){e[1].forEach(e=>{var n=e[0].type;t(e,n)})}function tc(e,t){return(t||new TextEncoder).encode(e)}function nc(e,t){const[n,r]=e;let i=JSON.stringify(n);function a(e){"string"==typeof i?i="string"==typeof e?i+e:[tc(i,t),e]:i.push("string"==typeof e?tc(e,t):e)}for(var o of r){const[e,t]=o;a(`\n${JSON.stringify(e)}\n`),a("string"==typeof t||t instanceof Uint8Array?t:JSON.stringify(t))}return"string"==typeof i?i:function(e){var t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(var i of e)n.set(i,r),r+=i.length;return n}(i)}function rc(e,t){var n="string"==typeof e.data?tc(e.data,t):e.data;return[Xs({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var ic={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function ac(e){return ic[e]}function oc(e,t,n=function(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return gu(new Kl("Not adding Promise due to buffer limit reached."));var i=r();return-1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new bu((n,r)=>{let i=t.length;if(!i)return n(!0);var a=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{vu(e).then(()=>{--i||(clearTimeout(a),n(!0))},r)})})}}}(e.bufferSize||30)){let r={};return{send:function(i){var a=[];if(ec(i,(t,n)=>{var i=ac(n);!function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)?a.push(t):e.recordDroppedEvent("ratelimit_backoff",i)}),0===a.length)return vu();var o=Xl(i[0],a),s=t=>{ec(o,(n,r)=>{e.recordDroppedEvent(t,ac(r))})};return n.add(()=>t({body:nc(o,e.textEncoder)}).then(e=>{void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){var i={...e},a=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(a)for(var s of a.trim().split(",")){const[e,t]=s.split(":",2);var u=parseInt(e,10),l=1e3*(isNaN(u)?60:u);if(t)for(var c of t.split(";"))i[c]=r+l;else i.all=r+l}else o?i.all=r+function(e,t=Date.now()){var n=parseInt(""+e,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+e);return isNaN(r)?6e4:r-t}(o,r):429===t&&(i.all=r+6e4);return i}(r,e)},e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error("Failed while sending event:",e),s("network_error")})).then(e=>e,e=>{if(e instanceof Kl)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error("Skipped sending event due to full buffer"),s("queue_overflow"),vu();throw e})},flush:e=>n.drain(e)}}var sc=(0,Ss.R)();let uc;function lc(){if(uc)return uc;if(Iu(sc.fetch))return uc=sc.fetch.bind(sc);var e=sc.document;let t=sc.fetch;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return uc=t.bind(sc)}function cc(e,t=lc()){return oc(e,(function(n){var r={body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,...e.fetchOptions};return t(e.url,r).then(e=>({statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}))}function dc(e){return oc(e,(function(t){return new bu((n,r)=>{var i=new XMLHttpRequest;for(var a in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,a)&&i.setRequestHeader(a,e.headers[a]);i.send(t.body)})}))}var fc=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function hc(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?":"+i:""}@${n}${a?":"+a:""}/${r?r+"/":r}${o}`}function pc(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function mc(e,t={}){var n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){var t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return`${t}//${e.host}${n}${e.path?"/"+e.path:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return n={sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`).join("&");var n}(e,r)}`}function _c(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}var yc=[],vc="Not capturing exception because it's already been captured.";class gc{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(gc.prototype.__init.call(this),gc.prototype.__init2.call(this),gc.prototype.__init3.call(this),gc.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=(function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach(t=>{if(!e[t])throw new Kl(`Invalid Sentry Dsn: ${t} missing`)}),!n.match(/^\d+$/))throw new Kl("Invalid Sentry Dsn: Invalid projectId "+n);if(!function(e){return"http"===e||"https"===e}(r))throw new Kl("Invalid Sentry Dsn: Invalid protocol "+r);if(t&&isNaN(parseInt(t,10)))throw new Kl("Invalid Sentry Dsn: Invalid port "+t)}(r="string"==typeof(n=e.dsn)?function(e){var t=fc.exec(e);if(!t)throw new Kl("Invalid Sentry Dsn: "+e);const[n,r,i="",a,o="",s]=t.slice(1);let u="",l=s;var c=l.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),l=c.pop()),l){var d=l.match(/^\d+/);d&&(l=d[0])}return pc({host:a,pass:i,path:u,projectId:l,port:o,protocol:n,publicKey:r})}(n):pc(n)),r);var t=mc(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("No DSN provided, client will not do anything.");var n,r}captureException(e,t,n){if(du(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log(vc));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then(e=>this._captureEvent(e,t,n)).then(e=>{r=e})),r}captureMessage(e,t,n,r){let i=n&&n.event_id;var a=Cs(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(a.then(e=>this._captureEvent(e,n,r)).then(e=>{i=e})),i}captureEvent(e,t,n){if(t&&t.originalException&&du(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log(vc));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then(e=>{r=e})),r}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Mu(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getTransport(){return this._transport}flush(e){var t=this._transport;return t?this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e)):vu(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,e))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){var t={};return e.forEach(e=>{t[e.name]=e,-1===yc.indexOf(e.name)&&(e.setupOnce(Lu,Yu),yc.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log("Integration installed: "+e.name))}),t}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}sendEvent(e,t={}){if(this._dsn){let r=function(e,t,n,r){var i=_c(n),a=e.type||"event";const{transactionSampling:o}=e.sdkProcessingMetadata||{},{method:s,rate:u}=o||{};!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);var l=function(e,t,n,r){var i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baggage,a=i&&function(e){return e[0]}(i);return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:hc(r)},..."transaction"===e.type&&a&&{trace:Xs({...a})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,Xl(l,[[{type:a,sample_rates:[{id:s,rate:u}]},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(var n of t.attachments||[])r=Zl(r,rc(n,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(r)}}sendSession(e){if(this._dsn){var t=function(e,t,n,r){var i=_c(n);return Xl({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:hc(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t){if(this._options.sendClientReports){var n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(e,t){let n=!1,r=!1;var i=t.exception&&t.exception.values;if(i)for(var a of(r=!0,i)){var o=a.mechanism;if(o&&!1===o.handled){n=!0;break}}var s="ok"===e.status;(s&&0===e.errors||s&&n)&&(Mu(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new bu(t=>{let n=0;var r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const{normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=this.getOptions();var a={...e,event_id:e.event_id||t.event_id||ou(),timestamp:e.timestamp||(0,_u.yW)()};this._applyClientOptions(a),this._applyIntegrationsMetadata(a);let o=n;t.captureContext&&(o=wu.clone(o).update(t.captureContext));let s=vu(a);if(o){var u=[...t.attachments||[],...o.getAttachments()];u.length&&(t.attachments=u),s=o.applyToEvent(a,t)}return s.then(e=>"number"==typeof r&&r>0?this._normalizeEvent(e,r,i):e)}_normalizeEvent(e,t,n){if(!e)return null;var r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Ju(e.data,t,n)}}))},...e.user&&{user:Ju(e.user,t,n)},...e.contexts&&{contexts:Ju(e.contexts,t,n)},...e.extra&&{extra:Ju(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Ju(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>(e.data&&(e.data=Ju(e.data,t,n)),e))),r}_applyClientOptions(e){var t=this.getOptions();const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=Us(e.message,a));var o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=Us(o.value,a));var s=e.request;s&&s.url&&(s.url=Us(s.url,a))}_applyIntegrationsMetadata(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var t=e;"log"===t.logLevel?au.log(t.message):au.warn(t)}})}_processEvent(e,t,n){const{beforeSend:r,sampleRate:i}=this.getOptions();if(!this._isEnabled())return gu(new Kl("SDK not enabled, will not capture event.","log"));var a="transaction"===e.type;return!a&&"number"==typeof i&&Math.random()>i?(this.recordDroppedEvent("sample_rate","error"),gu(new Kl(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"))):this._prepareEvent(e,t,n).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",e.type||"error"),new Kl("An event processor returned null, will not send event.","log");return t.data&&!0===t.data.__sentry__||a||!r?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(Ns(e))return e.then(e=>{if(!As(e)&&null!==e)throw new Kl(t);return e},e=>{throw new Kl("beforeSend rejected with "+e)});if(!As(e)&&null!==e)throw new Kl(t);return e}(r(n,t))}).then(r=>{if(null===r)throw this.recordDroppedEvent("before_send",e.type||"error"),new Kl("`beforeSend` returned `null`, will not send event.","log");var i=n&&n.getSession();return!a&&i&&this._updateSessionFromEvent(i,r),this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof Kl)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Kl("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)})}_process(e){this._numProcessing+=1,e.then(e=>(this._numProcessing-=1,e),e=>(this._numProcessing-=1,e))}_sendEnvelope(e){this._transport&&this._dsn?this._transport.send(e).then(null,e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error("Error while sending event:",e)}):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error("Transport disabled")}_clearOutcomes(){var e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}})}}var bc=(0,Ss.R)();class Mc extends gc{constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"7.11.1"}],version:"7.11.1"},super(e),e.sendClientReports&&bc.document&&bc.document.addEventListener("visibilitychange",()=>{"hidden"===bc.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){var i=il(e,t,n&&n.syntheticException||void 0,r);return cu(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),vu(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){var a=al(e,t,r&&r.syntheticException||void 0,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),vu(a)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){var n=this.getIntegrationById(Dl);n&&n.options&&n.options.sentry&&Yu().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:uu(e)},{event:e}),super.sendEvent(e,t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){var e=this._clearOutcomes();if(0!==e.length)if(this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log("Sending outcomes:",e);var t,n,r=mc(this._dsn,this._options),i=(t=e,Xl((n=this._options.tunnel&&hc(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:(0,_u.yW)(),discarded_events:t}]]));try{!function(e,t){"[object Navigator]"===Object.prototype.toString.call(sc&&sc.navigator)&&"function"==typeof sc.navigator.sendBeacon?sc.navigator.sendBeacon.bind(sc.navigator)(e,t):Au()&&lc()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error(e)})}(r,nc(i))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.error(e)}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log("No dsn provided, will not send outcomes");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&au.log("No outcomes to send")}}var wc=r(4147),kc=[new zl.InboundFilters,new zl.FunctionToString,new zl.TryCatch,new zl.Breadcrumbs,new zl.LinkedErrors,new zl.Dedupe,new zl.HttpContext],Lc=new Du,Tc=function(){return(Tc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Dc(e,t){return n=this,i=function(){return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e()];case 1:return[2,n.sent()];case 2:return[2,Ec(n.sent(),t)];case 3:return[2]}}))},new((r=void 0)||(r=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function o(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,o)}s((i=i.apply(n,[])).next())}));var n,r,i}function Sc(e,t){try{return e()}catch(e){return Ec(e,t)}}function Ec(e,t){var n=t.loggerService,r=t.sdkConfiguration,i=t.errorMessage,a=t.rethrowError,o=t.errorReportMetadata,s=i?i(e):"Operation failed. Error: ".concat(e.message);if(n.error(s,e),function(e,t){var n=t.sdkConfiguration,r=t.errorMessage,i=t.errorReportMetadata;Lc.withScope((function(t){var a={errorMessage:r};if(n){var o=n.customerId,s=Tc(Tc({},n),{apiKey:void 0});o&&t.setTags({customerId:o}),a.sdkConfiguration=s}i&&(a=Tc(Tc({},a),i)),t.setExtras(a),Lc.captureException(e)}))}(e,{sdkConfiguration:r,errorMessage:s,errorReportMetadata:o}),a)throw new Error(s)}var Yc=function(){return(Yc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},xc=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}u((r=r.apply(e,t||[])).next())}))},Oc=function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},jc=function(){function e(e,t){this.modelMapper=new Tn,this.configuration=e,this.graphClient=function(e){var t=e.apiKey,n=e.baseUri,r=ds(t),i=function(e){return new si({uri:"".concat(e,"/graphql"),fetch:is()})}(n),a=new ls({attempts:{max:5,retryIf:fs},delay:{initial:500,max:2e3,jitter:!0}});return new co({link:r.concat(a.concat(i)),cache:new ts({possibleTypes:ns.g}),name:"js-client-sdk",version:cs.version})}(this.configuration),this.batchedGraphClient=function(e){var t=e.apiKey,n=e.baseUri,r=ds(t),i=function(e){return new ss({uri:"".concat(e,"/graphql"),batchMax:25,batchInterval:500,fetch:is()})}(n);return new co({link:r.concat(i),cache:new ts({possibleTypes:ns.g}),name:"js-client-sdk",version:cs.version})}(this.configuration),this.loggerService=t,this.apiGateway=new hn(this.graphClient),this.entitlementsService=null}return e.initialize=function(t){return xc(this,void 0,void 0,(function(){var n,r,i,a;return Oc(this,(function(s){switch(s.label){case 0:if(n=function(e){var t={baseUri:"https://api.stigg.io",entitlementPollingInterval:3e4,logConfiguration:{logger:console,logLevel:o.ERROR}};return yn()(t,e)}(t),r=new ye(n.logConfiguration.logger,n.logConfiguration.logLevel),!function(e,t){var n=!0;return mn()(e.apiKey)&&(t.error("You must configure the client with an SDK key"),n=!1),e.entitlementPollingInterval&&e.entitlementPollingInterval<5e3&&(t.error("Entitlements polling interval cannot be lower than 5000ms"),n=!1),n}(n,r))return[2,null];s.label=1;case 1:return s.trys.push([1,4,,5]),i=new e(n,r),t.customerId?[4,i.setCustomerId(t.customerId)]:[3,3];case 2:s.sent(),s.label=3;case 3:return this.initializeSdk(i),[2,i];case 4:return a=s.sent(),r.error("Failed to initialize Stigg JS SDK. Error: ".concat(a.message)),[2,null];case 5:return[2]}}))}))},e.initializeSdk=function(e){return xc(this,void 0,void 0,(function(){var t,n;return Oc(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e.apiGateway.sdkConfiguration.getSdkConfiguration()];case 1:return(null==(t=r.sent())?void 0:t.sentryDsn)&&(o=t.sentryDsn,a=function(){var e,t;return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(n){return e={dsn:o,normalizeDepth:6,release:"".concat("js-client-sdk","@").concat(wc.version),integrations:kc,stackParser:Ql,transport:Au()?cc:dc},t=new Mc(e),Lc.bindClient(t),[2]}))},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{o(a.next(e))}catch(e){t(e)}}function r(e){try{o(a.throw(e))}catch(e){t(e)}}function o(t){var a;t.done?e(t.value):(a=t.value,a instanceof i?a:new i((function(e){e(a)}))).then(n,r)}o((a=a.apply(void 0,[])).next())}))),[3,3];case 2:return n=r.sent(),e.loggerService.error("Failed to load sdk configuration",n),[3,3];case 3:return[2]}var i,a,o}))}))},Object.defineProperty(e.prototype,"isCustomerLoaded",{get:function(){return!!this.configuration.customerId},enumerable:!1,configurable:!0}),e.prototype.setCustomerId=function(e){var t;return xc(this,void 0,void 0,(function(){var n=this;return Oc(this,(function(r){return null===(t=this.entitlementsService)||void 0===t||t.stopPolling(),this.configuration.customerId=e,this.entitlementsService=new Ds(e,new hs,this.graphClient,this.batchedGraphClient,this.loggerService),this.entitlementsService.startPolling(this.configuration.entitlementPollingInterval),[2,Dc((function(){return xc(n,void 0,void 0,(function(){var e;return Oc(this,(function(t){switch(t.label){case 0:return[4,null===(e=this.entitlementsService)||void 0===e?void 0:e.loadEntitlements()];case 1:return t.sent(),[2]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to load initial entitlements for customer. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.refresh=function(){return xc(this,void 0,void 0,(function(){var e=this;return Oc(this,(function(t){return[2,Dc((function(){return xc(e,void 0,void 0,(function(){var e;return Oc(this,(function(t){switch(t.label){case 0:return[4,null===(e=this.entitlementsService)||void 0===e?void 0:e.refresh()];case 1:return t.sent(),[2]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to refresh entitlements. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getBooleanEntitlement=function(e){var t=this,n=e.featureId,r=e.options,i=Yc(Yc({},ve),(null==r?void 0:r.fallback)||{});return Sc((function(){return t.entitlementsService?t.entitlementsService.getBooleanEntitlement(n,i):i}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get boolean entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:n,options:r}})||i},e.prototype.getNumericEntitlement=function(e){var t=this,n=e.featureId,r=e.options,i=Yc(Yc({},ge),(null==r?void 0:r.fallback)||{});return Sc((function(){return t.entitlementsService?t.entitlementsService.getNumericEntitlement(n,i):i}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get numeric entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:n,options:r}})||i},e.prototype.getMeteredEntitlement=function(e){var t=this,n=e.featureId,r=e.options,i=Yc(Yc({},be),(null==r?void 0:r.fallback)||{});return Sc((function(){return t.entitlementsService?t.entitlementsService.getMeteredEntitlement(n,i,r):i}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get metered entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:n,options:r}})||i},e.prototype.getPaywall=function(e){var t=(void 0===e?{}:e).productId;return xc(this,void 0,void 0,(function(){var e=this;return Oc(this,(function(n){return[2,Dc((function(){return xc(e,void 0,void 0,(function(){var e;return Oc(this,(function(n){switch(n.label){case 0:return[4,this.apiGateway.paywall.getPlans(t)];case 1:return e=n.sent(),[2,this.modelMapper.mapPlans(e.data)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get paywall. Error: ".concat(e.message)},rethrowError:!0,errorReportMetadata:{productId:t}})]}))}))},e.prototype.getCoupons=function(){return xc(this,void 0,void 0,(function(){var e=this;return Oc(this,(function(t){return[2,Dc((function(){return xc(e,void 0,void 0,(function(){var e;return Oc(this,(function(t){switch(t.label){case 0:return[4,this.apiGateway.coupons.getCoupons()];case 1:return e=t.sent(),[2,this.modelMapper.mapCoupons(e.data)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get coupons. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getCustomer=function(){return xc(this,void 0,void 0,(function(){var e=this;return Oc(this,(function(t){return[2,Dc((function(){return xc(e,void 0,void 0,(function(){var e,t,n;return Oc(this,(function(r){switch(r.label){case 0:return e=gn(this.configuration),[4,this.apiGateway.customers.getCustomer(e)];case 1:if(t=r.sent(),!(n=t.data.customers.edges[0]))throw new Error("Customer not found");return[2,this.modelMapper.mapCustomer(n.node)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get customer. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getEntitlements=function(){return xc(this,void 0,void 0,(function(){var e=this;return Oc(this,(function(t){return[2,Dc((function(){return xc(e,void 0,void 0,(function(){var e;return Oc(this,(function(t){return gn(this.configuration),[2,(null===(e=this.entitlementsService)||void 0===e?void 0:e.getEntitlements())||[]]}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get entitlements. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.waitForCheckoutCompleted=function(e){var t=void 0===e?{}:e,n=t.timeoutMs,r=void 0===n?15e3:n,i=t.refreshOnComplete,a=void 0===i||i;return xc(this,void 0,void 0,(function(){var e,t,n,i,o,s;return Oc(this,(function(u){switch(u.label){case 0:if("undefined"==typeof window)throw new Error("`waitForCheckoutCompleted` was called, but `window` is not defined");if(e=new URLSearchParams(window.location.search),!(t=e.get("subscriptionId")))return this.loggerService.log("`waitCheckoutCompleted` was called, but no `subscriptionId` found in query params"),[2,null];n=Date.now(),i=!1,o=null,u.label=1;case 1:return i?[4,new Promise((function(e){return setTimeout(e,1e3)}))]:[3,3];case 2:u.sent(),u.label=3;case 3:return[4,this.getCustomer()];case 4:s=u.sent(),o=s.getActiveSubscriptions().find((function(e){return e.id===t}))||null,i=!0,u.label=5;case 5:if(!o&&Date.now()-n<r)return[3,1];u.label=6;case 6:if(!o)throw new Error("Timeout while waiting for checkout to complete, subscription ".concat(t," is not active"));return a?[4,this.refresh()]:[3,8];case 7:u.sent(),u.label=8;case 8:return[2,o]}}))}))},e}()},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"@stigg/js-client-sdk","version":"0.40.0","description":"Stigg client-side SDK for Browser","main":"dist/index.js","typings":"dist/index.d.ts","repository":"https://github.com/stiggio/js-client-sdk.git","license":"MIT","scripts":{"start":"webpack serve","build:types":"tsc --emitDeclarationOnly","build":"yarn build:types && webpack","build:watch":"webpack --watch","build:prod":"yarn build:types && webpack --env production","generate":"graphql-codegen && yarn run fix:lint","fix":"run-s fix:*","fix:prettier":"prettier \\"src/**/*.ts\\" --write","fix:lint":"eslint src --ext .ts --fix","test":"jest","test:watch":"jest --watch","test:cov":"jest --coverage","prepare":"husky install","docs":"typedoc"},"files":["dist/**/*"],"dependencies":{"@apollo/client":"^3.4.17","@sentry/browser":"^7.11.1","cross-fetch":"^3.1.4","graphql":"^16.0.1","husky":"^7.0.4","lint-staged":"^12.0.2","lodash":"^4.17.21"},"devDependencies":{"@commitlint/cli":"^14.1.0","@commitlint/config-conventional":"^14.1.0","@graphql-codegen/cli":"^2.3.0","@graphql-codegen/fragment-matcher":"^3.2.1","@graphql-codegen/schema-ast":"^2.4.0","@graphql-codegen/typescript":"^2.4.0","@graphql-codegen/typescript-operations":"^2.2.0","@types/jest":"^27.0.2","@types/lodash":"^4.14.177","@typescript-eslint/eslint-plugin":"^5.4.0","@typescript-eslint/parser":"^5.4.0","eslint":"^8.2.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^27.3.1","jest-fetch-mock":"^3.0.3","msw":"^0.35.0","npm-run-all":"^4.1.5","prettier":"^2.4.1","ts-jest":"^27.0.7","ts-loader":"^9.2.6","typedoc":"^0.22.13","typedoc-plugin-rename-defaults":"^0.4.0","typescript":"^4.5.3","webpack":"^5.64.1","webpack-cli":"^4.9.1","webpack-dev-server":"^4.5.0"},"publishConfig":{"access":"public"},"lint-staged":{"*.{js,jsx,ts,tsx}":["prettier --check","eslint --cache"]}}')}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var a=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}return r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r(5694)})()}).call(this,n(82))},function(e,t,n){"use strict";var r=n(54),i="object"==typeof self&&self&&self.Object===Object&&self,a=r.a||i||Function("return this")();t.a=a},function(e,t,n){"use strict";t.a=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";t.a=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";var r=n(5).a.Symbol;t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2),i=n(83);t.GlobalTypeStyles=r.createGlobalStyle`
2
2
  body {
3
3
  color: ${i.getFontColor(i.TextType.Body)};
4
4
  font-family: ${i.getFontFamily(i.TextType.Body)};