@stigg/js-client-sdk 4.12.0 → 4.13.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/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +2 -2
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see index.esm.js.LICENSE.txt */
|
|
2
|
-
var e={3616:function(e,t,n){!function(e){!function(t){var r="undefined"!=typeof globalThis&&globalThis||void 0!==e&&e||void 0!==n.g&&n.g||{},i="URLSearchParams"in r,o="Symbol"in r&&"iterator"in Symbol,a="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,u="ArrayBuffer"in r;if(u)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function p(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function m(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function g(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function y(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():u&&a&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,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):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=m(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(){if(this._bodyArrayBuffer)return m(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(a)return this.blob().then(y);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,i,o=m(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,n=g(t=new FileReader),i=(r=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?r[1]:"utf-8",t.readAsText(e,i),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)},s&&(this.formData=function(){return this.text().then(I)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=p(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[p(e)]},h.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},h.prototype.set=function(e,t){this.map[p(e)]=d(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),f(e)},h.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),f(e)},h.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),f(e)},o&&(h.prototype[Symbol.iterator]=h.prototype.entries);var E=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,i,o=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=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 h(t.headers)),this.method=(i=(n=t.method||this.method||"GET").toUpperCase(),E.indexOf(i)>-1?i:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function I(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 S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var T=[301,302,303,307,308];S.redirect=function(e,t){if(-1===T.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},t.DOMException=r.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 C(e,n){return new Promise(function(i,o){var s=new _(e,n);if(s.signal&&s.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function l(){c.abort()}if(c.onload=function(){var e,t,n={statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(e){console.warn("Response "+e.message)}}}),t)};0===s.url.indexOf("file://")&&(c.status<200||c.status>599)?n.status=200:n.status=c.status,n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var r="response"in c?c.response:c.responseText;setTimeout(function(){i(new S(r,n))},0)},c.onerror=function(){setTimeout(function(){o(new TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){o(new TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){o(new t.DOMException("Aborted","AbortError"))},0)},c.open(s.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(s.url),!0),"include"===s.credentials?c.withCredentials=!0:"omit"===s.credentials&&(c.withCredentials=!1),"responseType"in c&&(a?c.responseType="blob":u&&(c.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof h||r.Headers&&n.headers instanceof r.Headers)){var f=[];Object.getOwnPropertyNames(n.headers).forEach(function(e){f.push(p(e)),c.setRequestHeader(e,d(n.headers[e]))}),s.headers.forEach(function(e,t){-1===f.indexOf(t)&&c.setRequestHeader(t,e)})}else s.headers.forEach(function(e,t){c.setRequestHeader(t,e)});s.signal&&(s.signal.addEventListener("abort",l),c.onreadystatechange=function(){4===c.readyState&&s.signal.removeEventListener("abort",l)}),c.send(void 0===s._bodyInit?null:s._bodyInit)})}C.polyfill=!0,r.fetch||(r.fetch=C,r.Headers=h,r.Request=_,r.Response=S),t.Headers=h,t.Request=_,t.Response=S,t.fetch=C,Object.defineProperty(t,"__esModule",{value:!0})}({})}("undefined"!=typeof self?self:this)},6279:(e,t,n)=>{var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g,i=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==n.g&&n.g||{},i="URLSearchParams"in r,o="Symbol"in r&&"iterator"in Symbol,a="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,u="ArrayBuffer"in r;if(u)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function p(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function m(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function g(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function y(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():u&&a&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,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):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=m(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(){if(this._bodyArrayBuffer)return m(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(a)return this.blob().then(y);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,i,o=m(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,n=g(t=new FileReader),i=(r=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?r[1]:"utf-8",t.readAsText(e,i),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)},s&&(this.formData=function(){return this.text().then(I)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=p(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[p(e)]},h.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},h.prototype.set=function(e,t){this.map[p(e)]=d(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),f(e)},h.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),f(e)},h.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),f(e)},o&&(h.prototype[Symbol.iterator]=h.prototype.entries);var E=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,i,o=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=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 h(t.headers)),this.method=(i=(n=t.method||this.method||"GET").toUpperCase(),E.indexOf(i)>-1?i:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function I(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 S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var T=[301,302,303,307,308];S.redirect=function(e,t){if(-1===T.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},t.DOMException=r.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 C(e,n){return new Promise(function(i,o){var s=new _(e,n);if(s.signal&&s.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function l(){c.abort()}if(c.onload=function(){var e,t,n={statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(e){console.warn("Response "+e.message)}}}),t)};0===s.url.indexOf("file://")&&(c.status<200||c.status>599)?n.status=200:n.status=c.status,n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var r="response"in c?c.response:c.responseText;setTimeout(function(){i(new S(r,n))},0)},c.onerror=function(){setTimeout(function(){o(new TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){o(new TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){o(new t.DOMException("Aborted","AbortError"))},0)},c.open(s.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(s.url),!0),"include"===s.credentials?c.withCredentials=!0:"omit"===s.credentials&&(c.withCredentials=!1),"responseType"in c&&(a?c.responseType="blob":u&&(c.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof h||r.Headers&&n.headers instanceof r.Headers)){var f=[];Object.getOwnPropertyNames(n.headers).forEach(function(e){f.push(p(e)),c.setRequestHeader(e,d(n.headers[e]))}),s.headers.forEach(function(e,t){-1===f.indexOf(t)&&c.setRequestHeader(t,e)})}else s.headers.forEach(function(e,t){c.setRequestHeader(t,e)});s.signal&&(s.signal.addEventListener("abort",l),c.onreadystatechange=function(){4===c.readyState&&s.signal.removeEventListener("abort",l)}),c.send(void 0===s._bodyInit?null:s._bodyInit)})}C.polyfill=!0,r.fetch||(r.fetch=C,r.Headers=h,r.Request=_,r.Response=S),t.Headers=h,t.Request=_,t.Response=S,t.fetch=C,Object.defineProperty(t,"__esModule",{value:!0})}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=r.fetch?r:i;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},8879:function(e){e.exports=function(){var e=6e4,t=36e5,n="millisecond",r="second",i="minute",o="hour",a="day",s="week",u="month",c="quarter",l="year",p="date",d="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,u),o=n-i<0,a=t.clone().add(r+(o?-1:1),u);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:l,w:s,d:a,D:p,h:o,m:i,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",b={};b[v]=m;var E="$isDayjsObject",_=function(e){return e instanceof C||!(!e||!e[E])},I=function e(t,n,r){var i;if(!t)return v;if("string"==typeof t){var o=t.toLowerCase();b[o]&&(i=o),n&&(b[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(v=i),i||!r&&v},S=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},T=y;T.l=I,T.i=_,T.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=I(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[E]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return T},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return S(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<S(e)},g.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,c=!!T.u(t)||t,d=T.p(e),f=function(e,t){var r=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(a)},h=function(e,t){return T.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case l:return c?f(1,0):f(31,11);case u:return c?f(1,g):f(0,g+1);case s:var b=this.$locale().weekStart||0,E=(m<b?m+7:m)-b;return f(c?y-E:y+(6-E),g);case a:case p:return h(v+"Hours",0);case o:return h(v+"Minutes",1);case i:return h(v+"Seconds",2);case r:return h(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,c=T.p(e),d="set"+(this.$u?"UTC":""),f=(s={},s[a]=d+"Date",s[p]=d+"Date",s[u]=d+"Month",s[l]=d+"FullYear",s[o]=d+"Hours",s[i]=d+"Minutes",s[r]=d+"Seconds",s[n]=d+"Milliseconds",s)[c],h=c===a?this.$D+(t-this.$W):t;if(c===u||c===l){var m=this.clone().set(p,1);m.$d[f](h),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[T.p(e)]()},g.add=function(n,c){var p,d=this;n=Number(n);var f=T.p(c),h=function(e){var t=S(d);return T.w(t.date(t.date()+Math.round(e*n)),d)};if(f===u)return this.set(u,this.$M+n);if(f===l)return this.set(l,this.$y+n);if(f===a)return h(1);if(f===s)return h(7);var m=(p={},p[i]=e,p[o]=t,p[r]=1e3,p)[f]||1,g=this.$d.getTime()+n*m;return T.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=T.z(this),o=this.$H,a=this.$m,s=this.$M,u=n.weekdays,c=n.months,l=n.meridiem,p=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},f=function(e){return T.s(o%12||12,e,"0")},m=l||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return T.s(t.$y,4,"0");case"M":return s+1;case"MM":return T.s(s+1,2,"0");case"MMM":return p(n.monthsShort,s,c,3);case"MMMM":return p(c,s);case"D":return t.$D;case"DD":return T.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(n.weekdaysMin,t.$W,u,2);case"ddd":return p(n.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(o);case"HH":return T.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(o,a,!0);case"A":return m(o,a,!1);case"m":return String(a);case"mm":return T.s(a,2,"0");case"s":return String(t.$s);case"ss":return T.s(t.$s,2,"0");case"SSS":return T.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,p,d){var f,h=this,m=T.p(p),g=S(n),y=(g.utcOffset()-this.utcOffset())*e,v=this-g,b=function(){return T.m(h,g)};switch(m){case l:f=b()/12;break;case u:f=b();break;case c:f=b()/3;break;case s:f=(v-y)/6048e5;break;case a:f=(v-y)/864e5;break;case o:f=v/t;break;case i:f=v/e;break;case r:f=v/1e3;break;default:f=v}return d?f:T.a(f)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return b[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=I(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return T.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),w=C.prototype;return S.prototype=w,[["$ms",n],["$s",r],["$m",i],["$H",o],["$W",a],["$M",u],["$y",l],["$D",p]].forEach(function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),S.extend=function(e,t){return e.$i||(e(t,C,S),e.$i=!0),S},S.locale=I,S.isDayjs=_,S.unix=function(e){return S(1e3*e)},S.en=b[v],S.Ls=b,S.p={},S}()},2699:e=>{var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,i)})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,a,c;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(o){r.once&&e.removeEventListener(t,i),n(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=h(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},3591:function(e){e.exports=function(){function e(e){return Number.isInteger(e)&&e>=0}function t(e){this.name="ArgumentError",this.message=e}return function(n,r){if(r=r||{},"function"!=typeof n)throw new t("fetch must be a function");if("object"!=typeof r)throw new t("defaults must be an object");if(void 0!==r.retries&&!e(r.retries))throw new t("retries must be a positive integer");if(void 0!==r.retryDelay&&!e(r.retryDelay)&&"function"!=typeof r.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");if(void 0!==r.retryOn&&!Array.isArray(r.retryOn)&&"function"!=typeof r.retryOn)throw new t("retryOn property expects an array or function");return r=Object.assign({retries:3,retryDelay:1e3,retryOn:[]},r),function(i,o){var a=r.retries,s=r.retryDelay,u=r.retryOn;if(o&&void 0!==o.retries){if(!e(o.retries))throw new t("retries must be a positive integer");a=o.retries}if(o&&void 0!==o.retryDelay){if(!e(o.retryDelay)&&"function"!=typeof o.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");s=o.retryDelay}if(o&&o.retryOn){if(!Array.isArray(o.retryOn)&&"function"!=typeof o.retryOn)throw new t("retryOn property expects an array or function");u=o.retryOn}return new Promise(function(e,t){var r=function(r){var s="undefined"!=typeof Request&&i instanceof Request?i.clone():i;n(s,o).then(function(n){if(Array.isArray(u)&&-1===u.indexOf(n.status))e(n);else if("function"==typeof u)try{return Promise.resolve(u(r,null,n)).then(function(t){t?c(r,null,n):e(n)}).catch(t)}catch(e){t(e)}else r<a?c(r,null,n):e(n)}).catch(function(e){if("function"==typeof u)try{Promise.resolve(u(r,e,null)).then(function(n){n?c(r,e,null):t(e)}).catch(function(e){t(e)})}catch(e){t(e)}else r<a?c(r,e,null):t(e)})};function c(e,t,n){var i="function"==typeof s?s(e,t,n):s;setTimeout(function(){r(++e)},i)}r(0)})}}}()},8749:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(5836),o=r(n(1510)),a=n(7077),s=function(e){return(0,i.isExtractableFile)(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.default=function(e,t,n,r){void 0===r&&(r=a.defaultJsonSerializer);var u=(0,i.extractFiles)({query:e,variables:t,operationName:n},"",s),c=u.clone,l=u.files;if(0===l.size){if(!Array.isArray(e))return r.stringify(c);if(void 0!==t&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");var p=e.reduce(function(e,n,r){return e.push({query:n,variables:t?t[r]:void 0}),e},[]);return r.stringify(p)}var d=new("undefined"==typeof FormData?o.default:FormData);d.append("operations",r.stringify(c));var f={},h=0;return l.forEach(function(e){f[++h]=e}),d.append("map",r.stringify(f)),h=0,l.forEach(function(e,t){d.append("".concat(++h),t)}),d}},7077:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defaultJsonSerializer=void 0,t.defaultJsonSerializer={parse:JSON.parse,stringify:JSON.stringify}},3210:function(e,t,n){var r=this&&this.__assign||function(){return r=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},r.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLWebSocketClient=void 0;var a=n(8328),s=n(8139),u="ping",c="pong",l="complete",p=function(){function e(e,t,n){this._type=e,this._payload=t,this._id=n}return Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"payload",{get:function(){return this._payload},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){var e={type:this.type};return null!=this.id&&null!=this.id&&(e.id=this.id),null!=this.payload&&null!=this.payload&&(e.payload=this.payload),JSON.stringify(e)},enumerable:!1,configurable:!0}),e.parse=function(t,n){var r=JSON.parse(t),i=r.type,o=r.payload,a=r.id;return new e(i,n(o),a)},e}(),d=function(){function e(e,t){var n=t.onInit,s=t.onAcknowledged,d=t.onPing,m=t.onPong,g=this;this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=e,e.onopen=function(t){return i(g,void 0,void 0,function(){var t,r,i,a;return o(this,function(o){switch(o.label){case 0:return this.socketState.acknowledged=!1,this.socketState.subscriptions={},r=(t=e).send,i=f,n?[4,n()]:[3,2];case 1:return a=o.sent(),[3,3];case 2:a=null,o.label=3;case 3:return r.apply(t,[i.apply(void 0,[a]).text]),[2]}})})},e.onclose=function(e){g.socketState.acknowledged=!1,g.socketState.subscriptions={}},e.onerror=function(e){console.error(e)},e.onmessage=function(t){try{var n=(v=t.data,void 0===b&&(b=function(e){return e}),p.parse(v,b));switch(n.type){case"connection_ack":return void(g.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(g.socketState.acknowledged=!0,s&&s(n.payload)));case u:return void(d?d(n.payload).then(function(t){return e.send(h(t).text)}):e.send(h(null).text));case c:return void(m&&m(n.payload))}if(!g.socketState.acknowledged)return;if(void 0===n.id||null===n.id||!g.socketState.subscriptions[n.id])return;var i=g.socketState.subscriptions[n.id],o=i.query,f=i.variables,y=i.subscriber;switch(n.type){case"next":return!n.payload.errors&&n.payload.data&&y.next&&y.next(n.payload.data),void(n.payload.errors&&y.error&&y.error(new a.ClientError(r(r({},n.payload),{status:200}),{query:o,variables:f})));case"error":return void(y.error&&y.error(new a.ClientError({errors:n.payload,status:200},{query:o,variables:f})));case l:return y.complete&&y.complete(),void delete g.socketState.subscriptions[n.id]}}catch(t){console.error(t),e.close(1006)}var v,b;e.close(4400,"Unknown graphql-ws message.")}}return e.prototype.makeSubscribe=function(e,t,n,r){var i,o,a=this,s=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[s]={query:e,variables:r,subscriber:n},this.socket.send((i=s,o={query:e,operationName:t,variables:r},new p("subscribe",o,i)).text),function(){a.socket.send(function(e){return new p(l,void 0,e)}(s).text),delete a.socketState.subscriptions[s]}},e.prototype.rawRequest=function(e,t){var n=this;return new Promise(function(r,i){var o;n.rawSubscribe(e,{next:function(e,t){return o={data:e,extensions:t}},error:i,complete:function(){return r(o)}},t)})},e.prototype.request=function(e,t){var n=this;return new Promise(function(r,i){var o;n.subscribe(e,{next:function(e){return o=e},error:i,complete:function(){return r(o)}},t)})},e.prototype.subscribe=function(e,t,n){var r=(0,s.resolveRequestDocument)(e),i=r.query,o=r.operationName;return this.makeSubscribe(i,o,t,n)},e.prototype.rawSubscribe=function(e,t,n){return this.makeSubscribe(e,void 0,t,n)},e.prototype.ping=function(e){this.socket.send(function(e){return new p(u,e,void 0)}(e).text)},e.prototype.close=function(){this.socket.close(1e3)},e.PROTOCOL="graphql-transport-ws",e}();function f(e){return new p("connection_init",e)}function h(e){return new p(c,e,void 0)}t.GraphQLWebSocketClient=d},6647:function(e,t,n){var r=this&&this.__assign||function(){return r=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},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})},u=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},c=this&&this.__rest||function(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},l=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;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))},p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveRequestDocument=t.GraphQLWebSocketClient=t.gql=t.batchRequests=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;var d=a(n(6279)),f=d,h=p(n(8749)),m=n(7077),g=n(8041),y=n(8328);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return y.ClientError}});var v=n(8139),b=function(e){var t={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||f&&f.Headers&&e instanceof f.Headers?t=function(e){var t={};return e.forEach(function(e,n){t[n]=e}),t}(e):Array.isArray(e)?e.forEach(function(e){var n=e[0],r=e[1];t[n]=r}):t=e),t},E=function(e){return e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},_=function(e){var t=e.url,n=e.query,i=e.variables,o=e.operationName,a=e.headers,l=e.fetch,p=e.fetchOptions,d=e.middleware;return s(void 0,void 0,void 0,function(){var e,s,f;return u(this,function(u){switch(u.label){case 0:return e=(0,h.default)(n,i,o,p.jsonSerializer),s=r({method:"POST",headers:r(r({},"string"==typeof e?{"Content-Type":"application/json"}:{}),a),body:e},p),d?[4,Promise.resolve(d(r(r({},s),{url:t,operationName:o,variables:i})))]:[3,2];case 1:f=u.sent(),t=f.url,s=c(f,["url"]),u.label=2;case 2:return[4,l(t,s)];case 3:return[2,u.sent()]}})})},I=function(e){var t=e.url,n=e.query,i=e.variables,o=e.operationName,a=e.headers,l=e.fetch,p=e.fetchOptions,d=e.middleware;return s(void 0,void 0,void 0,function(){var e,s,f;return u(this,function(u){switch(u.label){case 0:return e=function(e){var t=e.query,n=e.variables,r=e.operationName,i=e.jsonSerializer;if(!Array.isArray(t)){var o=["query=".concat(encodeURIComponent(E(t)))];return n&&o.push("variables=".concat(encodeURIComponent(i.stringify(n)))),r&&o.push("operationName=".concat(encodeURIComponent(r))),o.join("&")}if(void 0!==n&&!Array.isArray(n))throw new Error("Cannot create query with given variable type, array expected");var a=t.reduce(function(e,t,r){return e.push({query:E(t),variables:n?i.stringify(n[r]):void 0}),e},[]);return"query=".concat(encodeURIComponent(i.stringify(a)))}({query:n,variables:i,operationName:o,jsonSerializer:p.jsonSerializer}),s=r({method:"GET",headers:a},p),d?[4,Promise.resolve(d(r(r({},s),{url:t,operationName:o,variables:i})))]:[3,2];case 1:f=u.sent(),t=f.url,s=c(f,["url"]),u.label=2;case 2:return[4,l("".concat(t,"?").concat(e),s)];case 3:return[2,u.sent()]}})})},S=function(){function e(e,t){void 0===t&&(t={}),this.url=e,this.options=t}return e.prototype.rawRequest=function(e,t,n){return s(this,void 0,void 0,function(){var i,o,a,s,l,p,f,h,m,y,E,_;return u(this,function(u){return i=(0,g.parseRawRequestArgs)(e,t,n),o=this.options,a=o.headers,s=o.fetch,l=void 0===s?d.default:s,p=o.method,f=void 0===p?"POST":p,h=o.requestMiddleware,m=o.responseMiddleware,y=c(o,["headers","fetch","method","requestMiddleware","responseMiddleware"]),E=this.url,void 0!==i.signal&&(y.signal=i.signal),_=(0,v.resolveRequestDocument)(i.query).operationName,[2,T({url:E,query:i.query,variables:i.variables,headers:r(r({},b(P(a))),b(i.requestHeaders)),operationName:_,fetch:l,method:f,fetchOptions:y,middleware:h}).then(function(e){return m&&m(e),e}).catch(function(e){throw m&&m(e),e})]})})},e.prototype.request=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return s(this,void 0,void 0,function(){var n,i,o,a,s,l,p,f,h,m,y,E,_,I,S,C;return u(this,function(u){return n=t[0],i=t[1],o=(0,g.parseRequestArgs)(e,n,i),a=this.options,s=a.headers,l=a.fetch,p=void 0===l?d.default:l,f=a.method,h=void 0===f?"POST":f,m=a.requestMiddleware,y=a.responseMiddleware,E=c(a,["headers","fetch","method","requestMiddleware","responseMiddleware"]),_=this.url,void 0!==o.signal&&(E.signal=o.signal),I=(0,v.resolveRequestDocument)(o.document),S=I.query,C=I.operationName,[2,T({url:_,query:S,variables:o.variables,headers:r(r({},b(P(s))),b(o.requestHeaders)),operationName:C,fetch:p,method:h,fetchOptions:E,middleware:m}).then(function(e){return y&&y(e),e.data}).catch(function(e){throw y&&y(e),e})]})})},e.prototype.batchRequests=function(e,t){var n=(0,g.parseBatchRequestArgs)(e,t),i=this.options,o=i.headers,a=i.fetch,s=void 0===a?d.default:a,u=i.method,l=void 0===u?"POST":u,p=i.requestMiddleware,f=i.responseMiddleware,h=c(i,["headers","fetch","method","requestMiddleware","responseMiddleware"]),m=this.url;void 0!==n.signal&&(h.signal=n.signal);var y=n.documents.map(function(e){var t=e.document;return(0,v.resolveRequestDocument)(t).query}),E=n.documents.map(function(e){return e.variables});return T({url:m,query:y,variables:E,headers:r(r({},b(P(o))),b(n.requestHeaders)),operationName:void 0,fetch:s,method:l,fetchOptions:h,middleware:p}).then(function(e){return f&&f(e),e.data}).catch(function(e){throw f&&f(e),e})},e.prototype.setHeaders=function(e){return this.options.headers=e,this},e.prototype.setHeader=function(e,t){var n,r=this.options.headers;return r?r[e]=t:this.options.headers=((n={})[e]=t,n),this},e.prototype.setEndpoint=function(e){return this.url=e,this},e}();function T(e){var t=e.url,n=e.query,i=e.variables,o=e.headers,a=e.operationName,l=e.fetch,p=e.method,d=void 0===p?"POST":p,f=e.fetchOptions,h=e.middleware;return s(this,void 0,void 0,function(){var e,s,p,m,g,v,b,E,S,T,C;return u(this,function(u){switch(u.label){case 0:return e="POST"===d.toUpperCase()?_:I,s=Array.isArray(n),[4,e({url:t,query:n,variables:i,operationName:a,headers:o,fetch:l,fetchOptions:f,middleware:h})];case 1:return[4,w(p=u.sent(),f.jsonSerializer)];case 2:if(m=u.sent(),g=s&&Array.isArray(m)?!m.some(function(e){return!e.data}):!!m.data,v=!m.errors||"all"===f.errorPolicy||"ignore"===f.errorPolicy,p.ok&&v&&g)return b=p.headers,E=p.status,m.errors,S=c(m,["errors"]),T="ignore"===f.errorPolicy?S:m,[2,r(r({},s?{data:T}:T),{headers:b,status:E})];throw C="string"==typeof m?{error:m}:m,new y.ClientError(r(r({},C),{status:p.status,headers:p.headers}),{query:n,variables:i})}})})}function C(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return s(this,void 0,void 0,function(){var i;return u(this,function(o){return i=g.parseRequestExtendedArgs.apply(void 0,l([e,t],n,!1)),[2,new S(i.url).request(r({},i))]})})}function w(e,t){return void 0===t&&(t=m.defaultJsonSerializer),s(this,void 0,void 0,function(){var n,r,i;return u(this,function(o){switch(o.label){case 0:return e.headers.forEach(function(e,t){"content-type"===t.toLowerCase()&&(n=e)}),n&&(n.toLowerCase().startsWith("application/json")||n.toLowerCase().startsWith("application/graphql+json")||n.toLowerCase().startsWith("application/graphql-response+json"))?(i=(r=t).parse,[4,e.text()]):[3,2];case 1:return[2,i.apply(r,[o.sent()])];case 2:return[2,e.text()]}})})}function P(e){return"function"==typeof e?e():e}t.GraphQLClient=S,t.rawRequest=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return s(this,void 0,void 0,function(){var i;return u(this,function(o){return i=g.parseRawRequestExtendedArgs.apply(void 0,l([e,t],n,!1)),[2,new S(i.url).rawRequest(r({},i))]})})},t.request=C,t.batchRequests=function(e,t,n){return s(this,void 0,void 0,function(){var i;return u(this,function(o){return i=(0,g.parseBatchRequestsExtendedArgs)(e,t,n),[2,new S(i.url).batchRequests(r({},i))]})})},t.default=C,t.gql=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.reduce(function(e,n,r){return"".concat(e).concat(n).concat(r in t?t[r]:"")},"")};var D=n(3210);Object.defineProperty(t,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return D.GraphQLWebSocketClient}});var A=n(8139);Object.defineProperty(t,"resolveRequestDocument",{enumerable:!0,get:function(){return A.resolveRequestDocument}})},8041:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseBatchRequestsExtendedArgs=t.parseRawRequestExtendedArgs=t.parseRequestExtendedArgs=t.parseBatchRequestArgs=t.parseRawRequestArgs=t.parseRequestArgs=void 0,t.parseRequestArgs=function(e,t,n){return e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0}},t.parseRawRequestArgs=function(e,t,n){return e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0}},t.parseBatchRequestArgs=function(e,t){return e.documents?e:{documents:e,requestHeaders:t,signal:void 0}},t.parseRequestExtendedArgs=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1];return e.document?e:{url:e,document:t,variables:i,requestHeaders:o,signal:void 0}},t.parseRawRequestExtendedArgs=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1];return e.query?e:{url:e,query:t,variables:i,requestHeaders:o,signal:void 0}},t.parseBatchRequestsExtendedArgs=function(e,t,n){return e.documents?e:{url:e,documents:t,requestHeaders:n,signal:void 0}}},8139:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resolveRequestDocument=void 0;var r=n(7267);function i(e){var t,n=void 0,r=e.definitions.filter(function(e){return"OperationDefinition"===e.kind});return 1===r.length&&(n=null===(t=r[0].name)||void 0===t?void 0:t.value),n}t.resolveRequestDocument=function(e){if("string"==typeof e){var t=void 0;try{t=i((0,r.parse)(e))}catch(e){}return{query:e,operationName:t}}var n=i(e);return{query:(0,r.print)(e),operationName:n}}},8328:function(e,t){var n,r=this&&this.__extends||(n=function(e,t){return n=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])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClientError=void 0;var i=function(e){function t(n,r){var i=this,o="".concat(t.extractMessage(n),": ").concat(JSON.stringify({response:n,request:r}));return i=e.call(this,o)||this,Object.setPrototypeOf(i,t.prototype),i.response=n,i.request=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return r(t,e),t.extractMessage=function(e){try{return e.errors[0].message}catch(t){return"GraphQL Error (Code: ".concat(e.status,")")}},t}(Error);t.ClientError=i},9653:e=>{e.exports=function(e){var t=e.uri,n=e.name,r=e.type;this.uri=t,this.name=n,this.type=r}},7368:(e,t,n)=>{var r=n(2180);e.exports=function e(t,n,i){var o;void 0===n&&(n=""),void 0===i&&(i=r);var a=new Map;function s(e,t){var n=a.get(t);n?n.push.apply(n,e):a.set(t,e)}if(i(t))o=null,s([n],t);else{var u=n?n+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)o=Array.prototype.map.call(t,function(e,t){return s([""+u+t],e),null});else if(Array.isArray(t))o=t.map(function(t,n){var r=e(t,""+u+n,i);return r.files.forEach(s),r.clone});else if(t&&t.constructor===Object)for(var c in o={},t){var l=e(t[c],""+u+c,i);l.files.forEach(s),o[c]=l.clone}else o=t}return{clone:o,files:a}}},5836:(e,t,n)=>{t.ReactNativeFile=n(9653),t.extractFiles=n(7368),t.isExtractableFile=n(2180)},2180:(e,t,n)=>{var r=n(9653);e.exports=function(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||e instanceof r}},9515:(e,t,n)=>{var r=n(8761)(n(7772),"DataView");e.exports=r},9612:(e,t,n)=>{var r=n(2118),i=n(6909),o=n(8138),a=n(4174),s=n(7942);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=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},235:(e,t,n)=>{var r=n(3945),i=n(1846),o=n(8028),a=n(2344),s=n(4769);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=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},326:(e,t,n)=>{var r=n(8761)(n(7772),"Map");e.exports=r},6738:(e,t,n)=>{var r=n(2411),i=n(6417),o=n(6928),a=n(9493),s=n(4150);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=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},2760:(e,t,n)=>{var r=n(8761)(n(7772),"Promise");e.exports=r},2143:(e,t,n)=>{var r=n(8761)(n(7772),"Set");e.exports=r},5386:(e,t,n)=>{var r=n(6738),i=n(2842),o=n(2482);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},6571:(e,t,n)=>{var r=n(235),i=n(5243),o=n(2858),a=n(4417),s=n(8605),u=n(1418);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},857:(e,t,n)=>{var r=n(7772).Symbol;e.exports=r},9162:(e,t,n)=>{var r=n(7772).Uint8Array;e.exports=r},3215:(e,t,n)=>{var r=n(8761)(n(7772),"WeakMap");e.exports=r},9432: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)}},2517:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},7552:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},1634:(e,t,n)=>{var r=n(6473),i=n(9631),o=n(6152),a=n(3226),s=n(9045),u=n(7598),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),l=!n&&i(e),p=!n&&!l&&a(e),d=!n&&!l&&!p&&u(e),f=n||l||p||d,h=f?r(e.length,String):[],m=h.length;for(var g in e)!t&&!c.call(e,g)||f&&("length"==g||p&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},343: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}},5067: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}},7064: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}},8582:(e,t,n)=>{var r=n(3940),i=n(1225);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},91:(e,t,n)=>{var r=n(3940),i=n(1225),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},2218:(e,t,n)=>{var r=n(1225);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},7993:(e,t,n)=>{var r=n(752),i=n(249);e.exports=function(e,t){return e&&r(t,i(t),e)}},5906:(e,t,n)=>{var r=n(752),i=n(4225);e.exports=function(e,t){return e&&r(t,i(t),e)}},3940:(e,t,n)=>{var r=n(3043);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},8874:(e,t,n)=>{var r=n(6571),i=n(2517),o=n(91),a=n(7993),s=n(5906),u=n(2175),c=n(1522),l=n(7680),p=n(9987),d=n(3483),f=n(6939),h=n(940),m=n(9917),g=n(8222),y=n(8725),v=n(6152),b=n(3226),E=n(4714),_=n(9259),I=n(3679),S=n(249),T=n(4225),C="[object Arguments]",w="[object Function]",P="[object Object]",D={};D[C]=D["[object Array]"]=D["[object ArrayBuffer]"]=D["[object DataView]"]=D["[object Boolean]"]=D["[object Date]"]=D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Map]"]=D["[object Number]"]=D[P]=D["[object RegExp]"]=D["[object Set]"]=D["[object String]"]=D["[object Symbol]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D["[object Error]"]=D[w]=D["[object WeakMap]"]=!1,e.exports=function e(t,n,A,O,N,R){var F,k=1&n,x=2&n,U=4&n;if(A&&(F=N?A(t,O,N,R):A(t)),void 0!==F)return F;if(!_(t))return t;var M=v(t);if(M){if(F=m(t),!k)return c(t,F)}else{var L=h(t),j=L==w||"[object GeneratorFunction]"==L;if(b(t))return u(t,k);if(L==P||L==C||j&&!N){if(F=x||j?{}:y(t),!k)return x?p(t,s(F,t)):l(t,a(F,t))}else{if(!D[L])return N?t:{};F=g(t,L,k)}}R||(R=new r);var V=R.get(t);if(V)return V;R.set(t,F),I(t)?t.forEach(function(r){F.add(e(r,n,A,r,t,R))}):E(t)&&t.forEach(function(r,i){F.set(i,e(r,n,A,i,t,R))});var B=M?void 0:(U?x?f:d:x?T:S)(t);return i(B||t,function(r,i){B&&(r=t[i=r]),o(F,i,e(r,n,A,i,t,R))}),F}},9413:(e,t,n)=>{var r=n(9259),i=Object.create,o=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=o},4303:(e,t,n)=>{var r=n(6548),i=n(2019)(r);e.exports=i},1359:e=>{e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},2034:(e,t,n)=>{var r=n(5067),i=n(5882);e.exports=function e(t,n,o,a,s){var u=-1,c=t.length;for(o||(o=i),s||(s=[]);++u<c;){var l=t[u];n>0&&o(l)?n>1?e(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},5308:(e,t,n)=>{var r=n(5463)();e.exports=r},6548:(e,t,n)=>{var r=n(5308),i=n(249);e.exports=function(e,t){return e&&r(e,t,i)}},3324:(e,t,n)=>{var r=n(7297),i=n(3812);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},1897:(e,t,n)=>{var r=n(5067),i=n(6152);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},3366:(e,t,n)=>{var r=n(857),i=n(2107),o=n(7157),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},187:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},7832:(e,t,n)=>{var r=n(1359),i=n(2195),o=n(6024);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},5183:(e,t,n)=>{var r=n(3366),i=n(5125);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},8746:(e,t,n)=>{var r=n(1952),i=n(5125);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},1952:(e,t,n)=>{var r=n(6571),i=n(4871),o=n(1491),a=n(7416),s=n(940),u=n(6152),c=n(3226),l=n(7598),p="[object Arguments]",d="[object Array]",f="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,y){var v=u(e),b=u(t),E=v?d:s(e),_=b?d:s(t),I=(E=E==p?f:E)==f,S=(_=_==p?f:_)==f,T=E==_;if(T&&c(e)){if(!c(t))return!1;v=!0,I=!1}if(T&&!I)return y||(y=new r),v||l(e)?i(e,t,n,m,g,y):o(e,t,E,n,m,g,y);if(!(1&n)){var C=I&&h.call(e,"__wrapped__"),w=S&&h.call(t,"__wrapped__");if(C||w){var P=C?e.value():e,D=w?t.value():t;return y||(y=new r),g(P,D,n,m,y)}}return!!T&&(y||(y=new r),a(e,t,n,m,g,y))}},4511:(e,t,n)=>{var r=n(940),i=n(5125);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},7036:(e,t,n)=>{var r=n(6571),i=n(8746);e.exports=function(e,t,n,o){var a=n.length,s=a,u=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var l=(c=n[a])[0],p=e[l],d=c[1];if(u&&c[2]){if(void 0===p&&!(l in e))return!1}else{var f=new r;if(o)var h=o(p,d,l,e,t,f);if(!(void 0===h?i(d,p,3,o,f):h))return!1}}return!0}},2195:e=>{e.exports=function(e){return e!=e}},6840:(e,t,n)=>{var r=n(1049),i=n(7394),o=n(9259),a=n(7035),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,p=c.hasOwnProperty,d=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?d:s).test(a(e))}},8436:(e,t,n)=>{var r=n(940),i=n(5125);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},5522:(e,t,n)=>{var r=n(3366),i=n(1158),o=n(5125),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},8286:(e,t,n)=>{var r=n(6423),i=n(4716),o=n(3059),a=n(6152),s=n(5798);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},6411:(e,t,n)=>{var r=n(6001),i=n(4248),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},8390:(e,t,n)=>{var r=n(9259),i=n(6001),o=n(2966),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},3401:(e,t,n)=>{var r=n(4303),i=n(7878);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,function(e,r,i){o[++n]=t(e,r,i)}),o}},6423:(e,t,n)=>{var r=n(7036),i=n(5225),o=n(3477);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},4716:(e,t,n)=>{var r=n(8746),i=n(2579),o=n(5041),a=n(1401),s=n(8792),u=n(3477),c=n(3812);e.exports=function(e,t){return a(e)&&s(t)?u(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},4565:(e,t,n)=>{var r=n(6571),i=n(8582),o=n(5308),a=n(5561),s=n(9259),u=n(4225),c=n(2434);e.exports=function e(t,n,l,p,d){t!==n&&o(n,function(o,u){if(d||(d=new r),s(o))a(t,n,u,l,e,p,d);else{var f=p?p(c(t,u),o,u+"",t,n,d):void 0;void 0===f&&(f=o),i(t,u,f)}},u)}},5561:(e,t,n)=>{var r=n(8582),i=n(2175),o=n(6190),a=n(1522),s=n(8725),u=n(9631),c=n(6152),l=n(3746),p=n(3226),d=n(1049),f=n(9259),h=n(7030),m=n(7598),g=n(2434),y=n(3329);e.exports=function(e,t,n,v,b,E,_){var I=g(e,n),S=g(t,n),T=_.get(S);if(T)r(e,n,T);else{var C=E?E(I,S,n+"",e,t,_):void 0,w=void 0===C;if(w){var P=c(S),D=!P&&p(S),A=!P&&!D&&m(S);C=S,P||D||A?c(I)?C=I:l(I)?C=a(I):D?(w=!1,C=i(S,!0)):A?(w=!1,C=o(S,!0)):C=[]:h(S)||u(S)?(C=I,u(I)?C=y(I):f(I)&&!d(I)||(C=s(S))):w=!1}w&&(_.set(S,C),b(C,S,v,E,_),_.delete(S)),r(e,n,C)}}},256:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},2952:(e,t,n)=>{var r=n(3324);e.exports=function(e){return function(t){return r(t,e)}}},6060:(e,t,n)=>{var r=n(3059),i=n(3114),o=n(5251);e.exports=function(e,t){return o(i(e,t,r),e+"")}},6532:(e,t,n)=>{var r=n(6874),i=n(3043),o=n(3059),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},9872:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},4751:(e,t,n)=>{var r=n(4303);e.exports=function(e,t){var n;return r(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}},6473:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},1054:(e,t,n)=>{var r=n(857),i=n(343),o=n(6152),a=n(4795),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},1704:(e,t,n)=>{var r=n(2153),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},7826:e=>{e.exports=function(e){return function(t){return e(t)}}},9078:(e,t,n)=>{var r=n(7297),i=n(6974),o=n(2721),a=n(3812),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=-1,u=(t=r(t,e)).length;if(!u)return!0;for(;++n<u;){var c=a(t[n]);if("__proto__"===c&&!s.call(e,"__proto__"))return!1;if(("constructor"===c||"prototype"===c)&&n<u-1)return!1}var l=o(e,t);return null==l||delete l[a(i(t))]}},753:(e,t,n)=>{var r=n(343);e.exports=function(e,t){return r(t,function(t){return e[t]})}},9950:e=>{e.exports=function(e,t){return e.has(t)}},7297:(e,t,n)=>{var r=n(6152),i=n(1401),o=n(4452),a=n(6188);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},9882:(e,t,n)=>{var r=n(9162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},2175:(e,t,n)=>{e=n.nmd(e);var r=n(7772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.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}},4727:(e,t,n)=>{var r=n(9882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},6058:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},169:(e,t,n)=>{var r=n(857),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},6190:(e,t,n)=>{var r=n(9882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},1522: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}},752:(e,t,n)=>{var r=n(91),i=n(3940);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var c=t[s],l=o?o(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),a?i(n,c,l):r(n,c,l)}return n}},7680:(e,t,n)=>{var r=n(752),i=n(633);e.exports=function(e,t){return r(e,i(e),t)}},9987:(e,t,n)=>{var r=n(752),i=n(2680);e.exports=function(e,t){return r(e,i(e),t)}},4019:(e,t,n)=>{var r=n(7772)["__core-js_shared__"];e.exports=r},7263:(e,t,n)=>{var r=n(6060),i=n(2406);e.exports=function(e){return r(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t})}},2019:(e,t,n)=>{var r=n(7878);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},5463:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}},8642:(e,t,n)=>{var r=n(7030);e.exports=function(e){return r(e)?void 0:e}},3043:(e,t,n)=>{var r=n(8761),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},4871:(e,t,n)=>{var r=n(5386),i=n(7064),o=n(9950);e.exports=function(e,t,n,a,s,u){var c=1&n,l=e.length,p=t.length;if(l!=p&&!(c&&p>l))return!1;var d=u.get(e),f=u.get(t);if(d&&f)return d==t&&f==e;var h=-1,m=!0,g=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h<l;){var y=e[h],v=t[h];if(a)var b=c?a(v,y,h,t,e,u):a(y,v,h,e,t,u);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!i(t,function(e,t){if(!o(g,t)&&(y===e||s(y,e,n,a,u)))return g.push(t)})){m=!1;break}}else if(y!==v&&!s(y,v,n,a,u)){m=!1;break}}return u.delete(e),u.delete(t),m}},1491:(e,t,n)=>{var r=n(857),i=n(9162),o=n(1225),a=n(4871),s=n(5179),u=n(4207),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,p,d){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||!p(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+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 f=s;case"[object Set]":var h=1&r;if(f||(f=u),e.size!=t.size&&!h)return!1;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var g=a(f(e),f(t),r,c,p,d);return d.delete(e),g;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},7416:(e,t,n)=>{var r=n(3483),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var u=1&n,c=r(e),l=c.length;if(l!=r(t).length&&!u)return!1;for(var p=l;p--;){var d=c[p];if(!(u?d in t:i.call(t,d)))return!1}var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=u;++p<l;){var y=e[d=c[p]],v=t[d];if(o)var b=u?o(v,y,d,t,e,s):o(y,v,d,e,t,s);if(!(void 0===b?y===v||a(y,v,n,o,s):b)){m=!1;break}g||(g="constructor"==d)}if(m&&!g){var E=e.constructor,_=t.constructor;E==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof _&&_ instanceof _||(m=!1)}return s.delete(e),s.delete(t),m}},9097:(e,t,n)=>{var r=n(5676),i=n(3114),o=n(5251);e.exports=function(e){return o(i(e,void 0,r),e+"")}},1242:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},3483:(e,t,n)=>{var r=n(1897),i=n(633),o=n(249);e.exports=function(e){return r(e,o,i)}},6939:(e,t,n)=>{var r=n(1897),i=n(2680),o=n(4225);e.exports=function(e){return r(e,o,i)}},7937:(e,t,n)=>{var r=n(8304);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},5225:(e,t,n)=>{var r=n(8792),i=n(249);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},8761:(e,t,n)=>{var r=n(6840),i=n(8109);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},7353:(e,t,n)=>{var r=n(241)(Object.getPrototypeOf,Object);e.exports=r},2107:(e,t,n)=>{var r=n(857),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},633:(e,t,n)=>{var r=n(7552),i=n(981),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return o.call(e,t)}))}:i;e.exports=s},2680:(e,t,n)=>{var r=n(5067),i=n(7353),o=n(633),a=n(981),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},940:(e,t,n)=>{var r=n(9515),i=n(326),o=n(2760),a=n(2143),s=n(3215),u=n(3366),c=n(7035),l="[object Map]",p="[object Promise]",d="[object Set]",f="[object WeakMap]",h="[object DataView]",m=c(r),g=c(i),y=c(o),v=c(a),b=c(s),E=u;(r&&E(new r(new ArrayBuffer(1)))!=h||i&&E(new i)!=l||o&&E(o.resolve())!=p||a&&E(new a)!=d||s&&E(new s)!=f)&&(E=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return h;case g:return l;case y:return p;case v:return d;case b:return f}return t}),e.exports=E},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1369:(e,t,n)=>{var r=n(7297),i=n(9631),o=n(6152),a=n(9045),s=n(1158),u=n(3812);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,p=!1;++c<l;){var d=u(t[c]);if(!(p=null!=e&&n(e,d)))break;e=e[d]}return p||++c!=l?p:!!(l=null==e?0:e.length)&&s(l)&&a(d,l)&&(o(e)||i(e))}},2118:(e,t,n)=>{var r=n(9191);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},6909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8138:(e,t,n)=>{var r=n(9191),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}},4174:(e,t,n)=>{var r=n(9191),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},7942:(e,t,n)=>{var r=n(9191);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}},9917:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},8222:(e,t,n)=>{var r=n(9882),i=n(4727),o=n(6058),a=n(169),s=n(6190);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},8725:(e,t,n)=>{var r=n(9413),i=n(7353),o=n(6001);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},5882:(e,t,n)=>{var r=n(857),i=n(9631),o=n(6152),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},9045: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}},2406:(e,t,n)=>{var r=n(1225),i=n(7878),o=n(9045),a=n(9259);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},1401:(e,t,n)=>{var r=n(6152),i=n(4795),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\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))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},8304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7394:(e,t,n)=>{var r,i=n(4019),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},6001:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},8792:(e,t,n)=>{var r=n(9259);e.exports=function(e){return e==e&&!r(e)}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,n)=>{var r=n(2218),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))}},8028:(e,t,n)=>{var r=n(2218);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},2344:(e,t,n)=>{var r=n(2218);e.exports=function(e){return r(this.__data__,e)>-1}},4769:(e,t,n)=>{var r=n(2218);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}},2411:(e,t,n)=>{var r=n(9612),i=n(235),o=n(326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},6417:(e,t,n)=>{var r=n(7937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).get(e)}},9493:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).has(e)}},4150:(e,t,n)=>{var r=n(7937);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}},5179:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},3477:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},7777:(e,t,n)=>{var r=n(733);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},9191:(e,t,n)=>{var r=n(8761)(Object,"create");e.exports=r},4248:(e,t,n)=>{var r=n(241)(Object.keys,Object);e.exports=r},2966:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4146:(e,t,n)=>{e=n.nmd(e);var r=n(1242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},241:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},3114:(e,t,n)=>{var r=n(9432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);++a<s;)u[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(u),r(e,this,c)}}},2721:(e,t,n)=>{var r=n(3324),i=n(9872);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},7772:(e,t,n)=>{var r=n(1242),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},2434:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},2842:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2482:e=>{e.exports=function(e){return this.__data__.has(e)}},4207:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},5251:(e,t,n)=>{var r=n(6532),i=n(7787)(r);e.exports=i},7787:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},5243:(e,t,n)=>{var r=n(235);e.exports=function(){this.__data__=new r,this.size=0}},2858:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:e=>{e.exports=function(e){return this.__data__.get(e)}},8605:e=>{e.exports=function(e){return this.__data__.has(e)}},1418:(e,t,n)=>{var r=n(235),i=n(326),o=n(6738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},6024: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}},4452:(e,t,n)=>{var r=n(7777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=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(o,"$1"):n||e)}),t});e.exports=a},3812:(e,t,n)=>{var r=n(4795);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7035: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""}},2153:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},6874:e=>{e.exports=function(e){return function(){return e}}},1225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5676:(e,t,n)=>{var r=n(2034);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},2579:(e,t,n)=>{var r=n(3324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},5041:(e,t,n)=>{var r=n(187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},3059:e=>{e.exports=function(e){return e}},1886:(e,t,n)=>{var r=n(7832),i=n(7878),o=n(5505),a=n(8101),s=n(8346),u=Math.max;e.exports=function(e,t,n,c){e=i(e)?e:s(e),n=n&&!c?a(n):0;var l=e.length;return n<0&&(n=u(l+n,0)),o(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&r(e,t,n)>-1}},9631:(e,t,n)=>{var r=n(5183),i=n(5125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},6152:e=>{var t=Array.isArray;e.exports=t},7878:(e,t,n)=>{var r=n(1049),i=n(1158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},3746:(e,t,n)=>{var r=n(7878),i=n(5125);e.exports=function(e){return i(e)&&r(e)}},3226:(e,t,n)=>{e=n.nmd(e);var r=n(7772),i=n(6330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u},5455:(e,t,n)=>{var r=n(6411),i=n(940),o=n(9631),a=n(6152),s=n(7878),u=n(3226),c=n(6001),l=n(7598),p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||l(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}},1049:(e,t,n)=>{var r=n(3366),i=n(9259);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}},1158:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4714:(e,t,n)=>{var r=n(4511),i=n(7826),o=n(4146),a=o&&o.isMap,s=a?i(a):r;e.exports=s},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},7030:(e,t,n)=>{var r=n(3366),i=n(7353),o=n(5125),a=Function.prototype,s=Object.prototype,u=a.toString,c=s.hasOwnProperty,l=u.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},3679:(e,t,n)=>{var r=n(8436),i=n(7826),o=n(4146),a=o&&o.isSet,s=a?i(a):r;e.exports=s},5505:(e,t,n)=>{var r=n(3366),i=n(6152),o=n(5125);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},4795:(e,t,n)=>{var r=n(3366),i=n(5125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},7598:(e,t,n)=>{var r=n(5522),i=n(7826),o=n(4146),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},249:(e,t,n)=>{var r=n(1634),i=n(6411),o=n(7878);e.exports=function(e){return o(e)?r(e):i(e)}},4225:(e,t,n)=>{var r=n(1634),i=n(8390),o=n(7878);e.exports=function(e){return o(e)?r(e,!0):i(e)}},6974:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},6635:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,c=128,l=1/0,p=9007199254740991,d=NaN,f=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",y="[object Boolean]",v="[object Date]",b="[object Error]",E="[object Function]",_="[object GeneratorFunction]",I="[object Map]",S="[object Number]",T="[object Object]",C="[object Promise]",w="[object RegExp]",P="[object Set]",D="[object String]",A="[object Symbol]",O="[object WeakMap]",N="[object ArrayBuffer]",R="[object DataView]",F="[object Float32Array]",k="[object Float64Array]",x="[object Int8Array]",U="[object Int16Array]",M="[object Int32Array]",L="[object Uint8Array]",j="[object Uint8ClampedArray]",V="[object Uint16Array]",B="[object Uint32Array]",G=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Q=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,z=RegExp(Q.source),W=RegExp(H.source),Z=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",Ie="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",Te="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",we="\\ufe0e\\ufe0f",Pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",De="["+_e+"]",Ae="["+Pe+"]",Oe="["+Ie+"]",Ne="\\d+",Re="["+Se+"]",Fe="["+Te+"]",ke="[^"+_e+Pe+Ne+Se+Te+Ce+"]",xe="\\ud83c[\\udffb-\\udfff]",Ue="[^"+_e+"]",Me="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Ce+"]",Ve="\\u200d",Be="(?:"+Fe+"|"+ke+")",Ge="(?:"+je+"|"+ke+")",qe="(?:['’](?:d|ll|m|re|s|t|ve))?",$e="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+Oe+"|"+xe+")?",He="["+we+"]?",ze=He+Qe+"(?:"+Ve+"(?:"+[Ue,Me,Le].join("|")+")"+He+Qe+")*",We="(?:"+[Re,Me,Le].join("|")+")"+ze,Ze="(?:"+[Ue+Oe+"?",Oe,Me,Le,De].join("|")+")",Ye=RegExp("['’]","g"),Ke=RegExp(Oe,"g"),Je=RegExp(xe+"(?="+xe+")|"+Ze+ze,"g"),Xe=RegExp([je+"?"+Fe+"+"+qe+"(?="+[Ae,je,"$"].join("|")+")",Ge+"+"+$e+"(?="+[Ae,je+Be,"$"].join("|")+")",je+"?"+Be+"+"+qe,je+"+"+$e,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ne,We].join("|"),"g"),et=RegExp("["+Ve+_e+Ie+we+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,it={};it[F]=it[k]=it[x]=it[U]=it[M]=it[L]=it[j]=it[V]=it[B]=!0,it[m]=it[g]=it[N]=it[y]=it[R]=it[v]=it[b]=it[E]=it[I]=it[S]=it[T]=it[w]=it[P]=it[D]=it[O]=!1;var ot={};ot[m]=ot[g]=ot[N]=ot[R]=ot[y]=ot[v]=ot[F]=ot[k]=ot[x]=ot[U]=ot[M]=ot[I]=ot[S]=ot[T]=ot[w]=ot[P]=ot[D]=ot[A]=ot[L]=ot[j]=ot[V]=ot[B]=!0,ot[b]=ot[E]=ot[O]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ut=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,lt="object"==typeof self&&self&&self.Object===Object&&self,pt=ct||lt||Function("return this")(),dt=t&&!t.nodeType&&t,ft=dt&&e&&!e.nodeType&&e,ht=ft&&ft.exports===dt,mt=ht&&ct.process,gt=function(){try{return ft&&ft.require&&ft.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),yt=gt&>.isArrayBuffer,vt=gt&>.isDate,bt=gt&>.isMap,Et=gt&>.isRegExp,_t=gt&>.isSet,It=gt&>.isTypedArray;function St(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)}function Tt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function wt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function At(e,t){return!(null==e||!e.length)&&jt(e,t,0)>-1}function Ot(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Nt(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}function Rt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Ft(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function kt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function xt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ut=qt("length");function Mt(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Lt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function jt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Lt(e,Bt,n)}function Vt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Bt(e){return e!=e}function Gt(e,t){var n=null==e?0:e.length;return n?Ht(e,t)/n:d}function qt(e){return function(t){return null==t?i:t[e]}}function $t(e){return function(t){return null==e?i:e[t]}}function Qt(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function Ht(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function zt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Wt(e){return e?e.slice(0,dn(e)+1).replace(re,""):e}function Zt(e){return function(t){return e(t)}}function Yt(e,t){return Nt(t,function(t){return e[t]})}function Kt(e,t){return e.has(t)}function Jt(e,t){for(var n=-1,r=e.length;++n<r&&jt(t,e[n],0)>-1;);return n}function Xt(e,t){for(var n=e.length;n--&&jt(t,e[n],0)>-1;);return n}var en=$t({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=$t({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function an(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function un(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function cn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function ln(e){return rn(e)?function(e){for(var t=Je.lastIndex=0;Je.test(e);)++t;return t}(e):Ut(e)}function pn(e){return rn(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.split("")}(e)}function dn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var fn=$t({"&":"&","<":"<",">":">",""":'"',"'":"'"}),hn=function e(t){var n,r=(t=null==t?pt:hn.defaults(pt.Object(),t,hn.pick(pt,nt))).Array,ie=t.Date,_e=t.Error,Ie=t.Function,Se=t.Math,Te=t.Object,Ce=t.RegExp,we=t.String,Pe=t.TypeError,De=r.prototype,Ae=Ie.prototype,Oe=Te.prototype,Ne=t["__core-js_shared__"],Re=Ae.toString,Fe=Oe.hasOwnProperty,ke=0,xe=(n=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ue=Oe.toString,Me=Re.call(Te),Le=pt._,je=Ce("^"+Re.call(Fe).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=ht?t.Buffer:i,Be=t.Symbol,Ge=t.Uint8Array,qe=Ve?Ve.allocUnsafe:i,$e=an(Te.getPrototypeOf,Te),Qe=Te.create,He=Oe.propertyIsEnumerable,ze=De.splice,We=Be?Be.isConcatSpreadable:i,Ze=Be?Be.iterator:i,Je=Be?Be.toStringTag:i,et=function(){try{var e=uo(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,ct=ie&&ie.now!==pt.Date.now&&ie.now,lt=t.setTimeout!==pt.setTimeout&&t.setTimeout,dt=Se.ceil,ft=Se.floor,mt=Te.getOwnPropertySymbols,gt=Ve?Ve.isBuffer:i,Ut=t.isFinite,$t=De.join,mn=an(Te.keys,Te),gn=Se.max,yn=Se.min,vn=ie.now,bn=t.parseInt,En=Se.random,_n=De.reverse,In=uo(t,"DataView"),Sn=uo(t,"Map"),Tn=uo(t,"Promise"),Cn=uo(t,"Set"),wn=uo(t,"WeakMap"),Pn=uo(Te,"create"),Dn=wn&&new wn,An={},On=Mo(In),Nn=Mo(Sn),Rn=Mo(Tn),Fn=Mo(Cn),kn=Mo(wn),xn=Be?Be.prototype:i,Un=xn?xn.valueOf:i,Mn=xn?xn.toString:i;function Ln(e){if(es(e)&&!qa(e)&&!(e instanceof Gn)){if(e instanceof Bn)return e;if(Fe.call(e,"__wrapped__"))return Lo(e)}return new Bn(e)}var jn=function(){function e(){}return function(t){if(!Xa(t))return{};if(Qe)return Qe(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Vn(){}function Bn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Gn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function qn(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])}}function $n(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])}}function Qn(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])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Qn;++t<n;)this.add(e[t])}function zn(e){var t=this.__data__=new $n(e);this.size=t.size}function Wn(e,t){var n=qa(e),r=!n&&Ga(e),i=!n&&!r&&za(e),o=!n&&!r&&!i&&us(e),a=n||r||i||o,s=a?zt(e.length,we):[],u=s.length;for(var c in e)!t&&!Fe.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||go(c,u))||s.push(c);return s}function Zn(e){var t=e.length;return t?e[Qr(0,t-1)]:i}function Yn(e,t){return Ro(wi(e),or(t,0,e.length))}function Kn(e){return Ro(wi(e))}function Jn(e,t,n){(n!==i&&!ja(e[t],n)||n===i&&!(t in e))&&rr(e,t,n)}function Xn(e,t,n){var r=e[t];Fe.call(e,t)&&ja(r,n)&&(n!==i||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(ja(e[n][0],t))return n;return-1}function tr(e,t,n,r){return lr(e,function(e,i,o){t(r,e,n(e),o)}),r}function nr(e,t){return e&&Pi(t,Os(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:Cs(e,t[n]);return a}function or(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ar(e,t,n,r,o,a){var s,u=1&t,c=2&t,l=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!Xa(e))return e;var p=qa(e);if(p){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Fe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return wi(e,s)}else{var d=po(e),f=d==E||d==_;if(za(e))return Ei(e,u);if(d==T||d==m||f&&!o){if(s=c||f?{}:ho(e),!u)return c?function(e,t){return Pi(e,lo(e),t)}(e,function(e,t){return e&&Pi(t,Ns(t),e)}(s,e)):function(e,t){return Pi(e,co(e),t)}(e,nr(s,e))}else{if(!ot[d])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case N:return _i(e);case y:case v:return new i(+e);case R:return function(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case F:case k:case x:case U:case M:case L:case j:case V:case B:return Ii(e,n);case I:return new i;case S:case D:return new i(e);case w:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case P:return new i;case A:return r=e,Un?Te(Un.call(r)):{}}}(e,d,u)}}a||(a=new zn);var h=a.get(e);if(h)return h;a.set(e,s),os(e)?e.forEach(function(r){s.add(ar(r,t,n,r,e,a))}):ts(e)&&e.forEach(function(r,i){s.set(i,ar(r,t,n,i,e,a))});var g=p?i:(l?c?to:eo:c?Ns:Os)(e);return Ct(g||e,function(r,i){g&&(r=e[i=r]),Xn(s,i,ar(r,t,n,i,e,a))}),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Te(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Pe(o);return Do(function(){e.apply(i,n)},t)}function cr(e,t,n,r){var i=-1,o=At,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=Nt(t,Zt(n))),r?(o=Ot,a=!1):t.length>=200&&(o=Kt,a=!1,t=new Hn(t));e:for(;++i<s;){var l=e[i],p=null==n?l:n(l);if(l=r||0!==l?l:0,a&&p==p){for(var d=c;d--;)if(t[d]===p)continue e;u.push(l)}else o(t,p,r)||u.push(l)}return u}Ln.templateSettings={escape:Z,evaluate:Y,interpolate:K,variable:"",imports:{_:Ln}},Ln.prototype=Vn.prototype,Ln.prototype.constructor=Ln,Bn.prototype=jn(Vn.prototype),Bn.prototype.constructor=Bn,Gn.prototype=jn(Vn.prototype),Gn.prototype.constructor=Gn,qn.prototype.clear=function(){this.__data__=Pn?Pn(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(Pn){var n=t[e];return n===a?i:n}return Fe.call(t,e)?t[e]:i},qn.prototype.has=function(e){var t=this.__data__;return Pn?t[e]!==i:Fe.call(t,e)},qn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Pn&&t===i?a:t,this},$n.prototype.clear=function(){this.__data__=[],this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():ze.call(t,n,1),--this.size,0))},$n.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?i:t[n][1]},$n.prototype.has=function(e){return er(this.__data__,e)>-1},$n.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(Sn||$n),string:new qn}},Qn.prototype.delete=function(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t},Qn.prototype.get=function(e){return ao(this,e).get(e)},Qn.prototype.has=function(e){return ao(this,e).has(e)},Qn.prototype.set=function(e,t){var n=ao(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Hn.prototype.add=Hn.prototype.push=function(e){return this.__data__.set(e,a),this},Hn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new $n,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $n){var r=n.__data__;if(!Sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qn(r)}return n.set(e,t),this.size=n.size,this};var lr=Oi(vr),pr=Oi(br,!0);function dr(e,t){var n=!0;return lr(e,function(e,r,i){return n=!!t(e,r,i)}),n}function fr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(u===i?s==s&&!ss(s):n(s,u)))var u=s,c=a}return c}function hr(e,t){var n=[];return lr(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function mr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=mo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?mr(s,t-1,n,r,i):Rt(i,s):r||(i[i.length]=s)}return i}var gr=Ni(),yr=Ni(!0);function vr(e,t){return e&&gr(e,t,Os)}function br(e,t){return e&&yr(e,t,Os)}function Er(e,t){return Dt(t,function(t){return Ya(e[t])})}function _r(e,t){for(var n=0,r=(t=gi(t,e)).length;null!=e&&n<r;)e=e[Uo(t[n++])];return n&&n==r?e:i}function Ir(e,t,n){var r=t(e);return qa(e)?r:Rt(r,n(e))}function Sr(e){return null==e?e===i?"[object Undefined]":"[object Null]":Je&&Je in Te(e)?function(e){var t=Fe.call(e,Je),n=e[Je];try{e[Je]=i;var r=!0}catch(e){}var o=Ue.call(e);return r&&(t?e[Je]=n:delete e[Je]),o}(e):function(e){return Ue.call(e)}(e)}function Tr(e,t){return e>t}function Cr(e,t){return null!=e&&Fe.call(e,t)}function wr(e,t){return null!=e&&t in Te(e)}function Pr(e,t,n){for(var o=n?Ot:At,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,p=[];u--;){var d=e[u];u&&t&&(d=Nt(d,Zt(t))),l=yn(d.length,l),c[u]=!n&&(t||a>=120&&d.length>=120)?new Hn(u&&d):i}d=e[0];var f=-1,h=c[0];e:for(;++f<a&&p.length<l;){var m=d[f],g=t?t(m):m;if(m=n||0!==m?m:0,!(h?Kt(h,g):o(p,g,n))){for(u=s;--u;){var y=c[u];if(!(y?Kt(y,g):o(e[u],g,n)))continue e}h&&h.push(g),p.push(m)}}return p}function Dr(e,t,n){var r=null==(e=Co(e,t=gi(t,e)))?e:e[Uo(Zo(t))];return null==r?i:St(r,e,n)}function Ar(e){return es(e)&&Sr(e)==m}function Or(e,t,n,r,o){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var s=qa(e),u=qa(t),c=s?g:po(e),l=u?g:po(t),p=(c=c==m?T:c)==T,d=(l=l==m?T:l)==T,f=c==l;if(f&&za(e)){if(!za(t))return!1;s=!0,p=!1}if(f&&!p)return a||(a=new zn),s||us(e)?Ji(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case N:return!(e.byteLength!=t.byteLength||!o(new Ge(e),new Ge(t)));case y:case v:case S:return ja(+e,+t);case b:return e.name==t.name&&e.message==t.message;case w:case D:return e==t+"";case I:var s=on;case P:var u=1&r;if(s||(s=un),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=Ji(s(e),s(t),r,i,o,a);return a.delete(e),l;case A:if(Un)return Un.call(e)==Un.call(t)}return!1}(e,t,c,n,r,o,a);if(!(1&n)){var h=p&&Fe.call(e,"__wrapped__"),E=d&&Fe.call(t,"__wrapped__");if(h||E){var _=h?e.value():e,C=E?t.value():t;return a||(a=new zn),o(_,C,n,r,a)}}return!!f&&(a||(a=new zn),function(e,t,n,r,o,a){var s=1&n,u=eo(e),c=u.length;if(c!=eo(t).length&&!s)return!1;for(var l=c;l--;){var p=u[l];if(!(s?p in t:Fe.call(t,p)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++l<c;){var g=e[p=u[l]],y=t[p];if(r)var v=s?r(y,g,p,t,e,a):r(g,y,p,e,t,a);if(!(v===i?g===y||o(g,y,n,r,a):v)){h=!1;break}m||(m="constructor"==p)}if(h&&!m){var b=e.constructor,E=t.constructor;b==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,o,a))}(e,t,n,r,Or,o))}function Nr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Te(e);o--;){var u=n[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var c=(u=n[o])[0],l=e[c],p=u[1];if(s&&u[2]){if(l===i&&!(c in e))return!1}else{var d=new zn;if(r)var f=r(l,p,c,e,t,d);if(!(f===i?Or(p,l,3,r,d):f))return!1}}return!0}function Rr(e){return!(!Xa(e)||(t=e,xe&&xe in t))&&(Ya(e)?je:me).test(Mo(e));var t}function Fr(e){return"function"==typeof e?e:null==e?nu:"object"==typeof e?qa(e)?Lr(e[0],e[1]):Mr(e):pu(e)}function kr(e){if(!_o(e))return mn(e);var t=[];for(var n in Te(e))Fe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function xr(e,t){return e<t}function Ur(e,t){var n=-1,i=Qa(e)?r(e.length):[];return lr(e,function(e,r,o){i[++n]=t(e,r,o)}),i}function Mr(e){var t=so(e);return 1==t.length&&t[0][2]?So(t[0][0],t[0][1]):function(n){return n===e||Nr(n,e,t)}}function Lr(e,t){return vo(e)&&Io(t)?So(Uo(e),t):function(n){var r=Cs(n,e);return r===i&&r===t?ws(n,e):Or(t,r,3)}}function jr(e,t,n,r,o){e!==t&&gr(t,function(a,s){if(o||(o=new zn),Xa(a))!function(e,t,n,r,o,a,s){var u=wo(e,n),c=wo(t,n),l=s.get(c);if(l)Jn(e,n,l);else{var p=a?a(u,c,n+"",e,t,s):i,d=p===i;if(d){var f=qa(c),h=!f&&za(c),m=!f&&!h&&us(c);p=c,f||h||m?qa(u)?p=u:Ha(u)?p=wi(u):h?(d=!1,p=Ei(c,!0)):m?(d=!1,p=Ii(c,!0)):p=[]:rs(c)||Ga(c)?(p=u,Ga(u)?p=gs(u):Xa(u)&&!Ya(u)||(p=ho(c))):d=!1}d&&(s.set(c,p),o(p,c,r,a,s),s.delete(c)),Jn(e,n,p)}}(e,t,s,n,jr,r,o);else{var u=r?r(wo(e,s),a,s+"",e,t,o):i;u===i&&(u=a),Jn(e,s,u)}},Ns)}function Vr(e,t){var n=e.length;if(n)return go(t+=t<0?n:0,n)?e[t]:i}function Br(e,t,n){t=t.length?Nt(t,function(e){return qa(e)?function(t){return _r(t,1===e.length?e[0]:e)}:e}):[nu];var r=-1;t=Nt(t,Zt(oo()));var i=Ur(e,function(e,n,i){var o=Nt(t,function(t){return t(e)});return{criteria:o,index:++r,value:e}});return function(e){var t=e.length;for(e.sort(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var u=Si(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});t--;)e[t]=e[t].value;return e}(i)}function Gr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=_r(e,a);n(s,a)&&Yr(o,gi(a,e),s)}return o}function qr(e,t,n,r){var i=r?Vt:jt,o=-1,a=t.length,s=e;for(e===t&&(t=wi(t)),n&&(s=Nt(e,Zt(n)));++o<a;)for(var u=0,c=t[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==e&&ze.call(s,u,1),ze.call(e,u,1);return e}function $r(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;go(i)?ze.call(e,i,1):ui(e,i)}}return e}function Qr(e,t){return e+ft(En()*(t-e+1))}function Hr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=ft(t/2))&&(e+=e)}while(t);return n}function zr(e,t){return Ao(To(e,t,nu),e+"")}function Wr(e){return Zn(js(e))}function Zr(e,t){var n=js(e);return Ro(n,or(t,0,n.length))}function Yr(e,t,n,r){if(!Xa(e))return e;for(var o=-1,a=(t=gi(t,e)).length,s=a-1,u=e;null!=u&&++o<a;){var c=Uo(t[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var p=u[c];(l=r?r(p,c,u):i)===i&&(l=Xa(p)?p:go(t[o+1])?[]:{})}Xn(u,c,l),u=u[c]}return e}var Kr=Dn?function(e,t){return Dn.set(e,t),e}:nu,Jr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Xs(t),writable:!0})}:nu;function Xr(e){return Ro(js(e))}function ei(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function ti(e,t){var n;return lr(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function ni(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!ss(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ri(e,t,nu,n)}function ri(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,u=null===t,c=ss(t),l=t===i;o<a;){var p=ft((o+a)/2),d=n(e[p]),f=d!==i,h=null===d,m=d==d,g=ss(d);if(s)var y=r||m;else y=l?m&&(r||f):u?m&&f&&(r||!h):c?m&&f&&!h&&(r||!g):!h&&!g&&(r?d<=t:d<t);y?o=p+1:a=p}return yn(a,4294967294)}function ii(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!ja(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function oi(e){return"number"==typeof e?e:ss(e)?d:+e}function ai(e){if("string"==typeof e)return e;if(qa(e))return Nt(e,ai)+"";if(ss(e))return Mn?Mn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function si(e,t,n){var r=-1,i=At,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=Ot;else if(o>=200){var c=t?null:Hi(e);if(c)return un(c);a=!1,i=Kt,u=new Hn}else u=t?[]:s;e:for(;++r<o;){var l=e[r],p=t?t(l):l;if(l=n||0!==l?l:0,a&&p==p){for(var d=u.length;d--;)if(u[d]===p)continue e;t&&u.push(p),s.push(l)}else i(u,p,n)||(u!==s&&u.push(p),s.push(l))}return s}function ui(e,t){var n=-1,r=(t=gi(t,e)).length;if(!r)return!0;for(;++n<r;){var i=Uo(t[n]);if("__proto__"===i&&!Fe.call(e,"__proto__"))return!1;if(("constructor"===i||"prototype"===i)&&n<r-1)return!1}var o=Co(e,t);return null==o||delete o[Uo(Zo(t))]}function ci(e,t,n,r){return Yr(e,t,n(_r(e,t)),r)}function li(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ei(e,r?0:o,r?o+1:i):ei(e,r?o+1:0,r?i:o)}function pi(e,t){var n=e;return n instanceof Gn&&(n=n.value()),Ft(t,function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))},n)}function di(e,t,n){var i=e.length;if(i<2)return i?si(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],u=-1;++u<i;)u!=o&&(a[o]=cr(a[o]||s,e[u],t,n));return si(mr(a,1),t,n)}function fi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var u=r<a?t[r]:i;n(s,e[r],u)}return s}function hi(e){return Ha(e)?e:[]}function mi(e){return"function"==typeof e?e:nu}function gi(e,t){return qa(e)?e:vo(e,t)?[e]:xo(ys(e))}var yi=zr;function vi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ei(e,t,n)}var bi=at||function(e){return pt.clearTimeout(e)};function Ei(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function _i(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function Ii(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Si(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=ss(e),s=t!==i,u=null===t,c=t==t,l=ss(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!l&&e<t||l&&n&&o&&!r&&!a||u&&n&&o||!s&&o||!c)return-1}return 0}function Ti(e,t,n,i){for(var o=-1,a=e.length,s=n.length,u=-1,c=t.length,l=gn(a-s,0),p=r(c+l),d=!i;++u<c;)p[u]=t[u];for(;++o<s;)(d||o<a)&&(p[n[o]]=e[o]);for(;l--;)p[u++]=e[o++];return p}function Ci(e,t,n,i){for(var o=-1,a=e.length,s=-1,u=n.length,c=-1,l=t.length,p=gn(a-u,0),d=r(p+l),f=!i;++o<p;)d[o]=e[o];for(var h=o;++c<l;)d[h+c]=t[c];for(;++s<u;)(f||o<a)&&(d[h+n[s]]=e[o++]);return d}function wi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Pi(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):i;c===i&&(c=e[u]),o?rr(n,u,c):Xn(n,u,c)}return n}function Di(e,t){return function(n,r){var i=qa(n)?Tt:tr,o=t?t():{};return i(n,e,oo(r,2),o)}}function Ai(e){return zr(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&yo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Te(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t})}function Oi(e,t){return function(n,r){if(null==n)return n;if(!Qa(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Te(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Ni(e){return function(t,n,r){for(var i=-1,o=Te(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function Ri(e){return function(t){var n=rn(t=ys(t))?pn(t):i,r=n?n[0]:t.charAt(0),o=n?vi(n,1).join(""):t.slice(1);return r[e]()+o}}function Fi(e){return function(t){return Ft(Ys(Gs(t).replace(Ye,"")),e,"")}}function ki(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=jn(e.prototype),r=e.apply(n,t);return Xa(r)?r:n}}function xi(e){return function(t,n,r){var o=Te(t);if(!Qa(t)){var a=oo(n,3);t=Os(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function Ui(e){return Xi(function(t){var n=t.length,r=n,a=Bn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Pe(o);if(a&&!u&&"wrapper"==ro(s))var u=new Bn([],!0)}for(r=u?r:n;++r<n;){var c=ro(s=t[r]),l="wrapper"==c?no(s):i;u=l&&bo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[ro(l[0])].apply(u,l[3]):1==s.length&&bo(s)?u[c]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&qa(r))return u.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}function Mi(e,t,n,o,a,s,u,l,p,d){var f=t&c,h=1&t,m=2&t,g=24&t,y=512&t,v=m?i:ki(e);return function c(){for(var b=arguments.length,E=r(b),_=b;_--;)E[_]=arguments[_];if(g)var I=io(c),S=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(E,I);if(o&&(E=Ti(E,o,a,g)),s&&(E=Ci(E,s,u,g)),b-=S,g&&b<d){var T=sn(E,I);return $i(e,t,Mi,c.placeholder,n,E,T,l,p,d-b)}var C=h?n:this,w=m?C[e]:e;return b=E.length,l?E=function(e,t){for(var n=e.length,r=yn(t.length,n),o=wi(e);r--;){var a=t[r];e[r]=go(a,n)?o[a]:i}return e}(E,l):y&&b>1&&E.reverse(),f&&p<b&&(E.length=p),this&&this!==pt&&this instanceof c&&(w=v||ki(w)),w.apply(C,E)}}function Li(e,t){return function(n,r){return function(e,t,n,r){return vr(e,function(e,i,o){t(r,n(e),i,o)}),r}(n,e,t(r),{})}}function ji(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=ai(n),r=ai(r)):(n=oi(n),r=oi(r)),o=e(n,r)}return o}}function Vi(e){return Xi(function(t){return t=Nt(t,Zt(oo())),zr(function(n){var r=this;return e(t,function(e){return St(e,r,n)})})})}function Bi(e,t){var n=(t=t===i?" ":ai(t)).length;if(n<2)return n?Hr(t,e):t;var r=Hr(t,dt(e/ln(t)));return rn(t)?vi(pn(r),0,e).join(""):r.slice(0,e)}function Gi(e){return function(t,n,o){return o&&"number"!=typeof o&&yo(t,n,o)&&(n=o=i),t=ds(t),n===i?(n=t,t=0):n=ds(n),function(e,t,n,i){for(var o=-1,a=gn(dt((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:ds(o),e)}}function qi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function $i(e,t,n,r,o,a,s,c,l,p){var d=8&t;t|=d?u:64,4&(t&=~(d?64:u))||(t&=-4);var f=[e,t,o,d?a:i,d?s:i,d?i:a,d?i:s,c,l,p],h=n.apply(i,f);return bo(e)&&Po(h,f),h.placeholder=r,Oo(h,e,t)}function Qi(e){var t=Se[e];return function(e,n){if(e=ms(e),(n=null==n?0:yn(fs(n),292))&&Ut(e)){var r=(ys(e)+"e").split("e");return+((r=(ys(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Hi=Cn&&1/un(new Cn([,-0]))[1]==l?function(e){return new Cn(e)}:su;function zi(e){return function(t){var n=po(t);return n==I?on(t):n==P?cn(t):function(e,t){return Nt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Wi(e,t,n,a,l,p,d,f){var h=2&t;if(!h&&"function"!=typeof e)throw new Pe(o);var m=a?a.length:0;if(m||(t&=-97,a=l=i),d=d===i?d:gn(fs(d),0),f=f===i?f:fs(f),m-=l?l.length:0,64&t){var g=a,y=l;a=l=i}var v=h?i:no(e),b=[e,t,n,a,l,g,y,p,d,f];if(v&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Ti(l,u,t[4]):u,e[4]=l?sn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Ci(l,u,t[6]):u,e[6]=l?sn(e[5],s):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,v),e=b[0],t=b[1],n=b[2],a=b[3],l=b[4],!(f=b[9]=b[9]===i?h?0:e.length:gn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||16==t?function(e,t,n){var o=ki(e);return function a(){for(var s=arguments.length,u=r(s),c=s,l=io(a);c--;)u[c]=arguments[c];var p=s<3&&u[0]!==l&&u[s-1]!==l?[]:sn(u,l);return(s-=p.length)<n?$i(e,t,Mi,a.placeholder,i,u,p,i,i,n-s):St(this&&this!==pt&&this instanceof a?o:e,this,u)}}(e,t,f):t!=u&&33!=t||l.length?Mi.apply(i,b):function(e,t,n,i){var o=1&t,a=ki(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=i.length,p=r(l+u),d=this&&this!==pt&&this instanceof t?a:e;++c<l;)p[c]=i[c];for(;u--;)p[c++]=arguments[++s];return St(d,o?n:this,p)}}(e,t,n,a);else var E=function(e,t,n){var r=1&t,i=ki(e);return function t(){return(this&&this!==pt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Oo((v?Kr:Po)(E,b),e,t)}function Zi(e,t,n,r){return e===i||ja(e,Oe[n])&&!Fe.call(r,n)?t:e}function Yi(e,t,n,r,o,a){return Xa(e)&&Xa(t)&&(a.set(t,e),jr(e,t,i,Yi,a),a.delete(t)),e}function Ki(e){return rs(e)?i:e}function Ji(e,t,n,r,o,a){var s=1&n,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),p=a.get(t);if(l&&p)return l==t&&p==e;var d=-1,f=!0,h=2&n?new Hn:i;for(a.set(e,t),a.set(t,e);++d<u;){var m=e[d],g=t[d];if(r)var y=s?r(g,m,d,t,e,a):r(m,g,d,e,t,a);if(y!==i){if(y)continue;f=!1;break}if(h){if(!xt(t,function(e,t){if(!Kt(h,t)&&(m===e||o(m,e,n,r,a)))return h.push(t)})){f=!1;break}}else if(m!==g&&!o(m,g,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function Xi(e){return Ao(To(e,i,$o),e+"")}function eo(e){return Ir(e,Os,co)}function to(e){return Ir(e,Ns,lo)}var no=Dn?function(e){return Dn.get(e)}:su;function ro(e){for(var t=e.name+"",n=An[t],r=Fe.call(An,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function io(e){return(Fe.call(Ln,"placeholder")?Ln:e).placeholder}function oo(){var e=Ln.iteratee||ru;return e=e===ru?Fr:e,arguments.length?e(arguments[0],arguments[1]):e}function ao(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function so(e){for(var t=Os(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Io(i)]}return t}function uo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Rr(n)?n:i}var co=mt?function(e){return null==e?[]:(e=Te(e),Dt(mt(e),function(t){return He.call(e,t)}))}:hu,lo=mt?function(e){for(var t=[];e;)Rt(t,co(e)),e=$e(e);return t}:hu,po=Sr;function fo(e,t,n){for(var r=-1,i=(t=gi(t,e)).length,o=!1;++r<i;){var a=Uo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ja(i)&&go(a,i)&&(qa(e)||Ga(e))}function ho(e){return"function"!=typeof e.constructor||_o(e)?{}:jn($e(e))}function mo(e){return qa(e)||Ga(e)||!!(We&&e&&e[We])}function go(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function yo(e,t,n){if(!Xa(n))return!1;var r=typeof t;return!!("number"==r?Qa(n)&&go(t,n.length):"string"==r&&t in n)&&ja(n[t],e)}function vo(e,t){if(qa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ss(e))||X.test(e)||!J.test(e)||null!=t&&e in Te(t)}function bo(e){var t=ro(e),n=Ln[t];if("function"!=typeof n||!(t in Gn.prototype))return!1;if(e===n)return!0;var r=no(n);return!!r&&e===r[0]}(In&&po(new In(new ArrayBuffer(1)))!=R||Sn&&po(new Sn)!=I||Tn&&po(Tn.resolve())!=C||Cn&&po(new Cn)!=P||wn&&po(new wn)!=O)&&(po=function(e){var t=Sr(e),n=t==T?e.constructor:i,r=n?Mo(n):"";if(r)switch(r){case On:return R;case Nn:return I;case Rn:return C;case Fn:return P;case kn:return O}return t});var Eo=Ne?Ya:mu;function _o(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oe)}function Io(e){return e==e&&!Xa(e)}function So(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Te(n))}}function To(e,t,n){return t=gn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=gn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var u=r(t+1);++o<t;)u[o]=i[o];return u[t]=n(s),St(e,this,u)}}function Co(e,t){return t.length<2?e:_r(e,ei(t,0,-1))}function wo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Po=No(Kr),Do=lt||function(e,t){return pt.setTimeout(e,t)},Ao=No(Jr);function Oo(e,t,n){var r=t+"";return Ao(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(h,function(n){var r="_."+n[0];t&n[1]&&!At(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function No(e){var t=0,n=0;return function(){var r=vn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ro(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=Qr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Fo,ko,xo=(Fo=Fa(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,function(e,n,r,i){t.push(r?i.replace(le,"$1"):n||e)}),t},function(e){return 500===ko.size&&ko.clear(),e}),ko=Fo.cache,Fo);function Uo(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Mo(e){if(null!=e){try{return Re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Lo(e){if(e instanceof Gn)return e.clone();var t=new Bn(e.__wrapped__,e.__chain__);return t.__actions__=wi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var jo=zr(function(e,t){return Ha(e)?cr(e,mr(t,1,Ha,!0)):[]}),Vo=zr(function(e,t){var n=Zo(t);return Ha(n)&&(n=i),Ha(e)?cr(e,mr(t,1,Ha,!0),oo(n,2)):[]}),Bo=zr(function(e,t){var n=Zo(t);return Ha(n)&&(n=i),Ha(e)?cr(e,mr(t,1,Ha,!0),i,n):[]});function Go(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:fs(n);return i<0&&(i=gn(r+i,0)),Lt(e,oo(t,3),i)}function qo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=fs(n),o=n<0?gn(r+o,0):yn(o,r-1)),Lt(e,oo(t,3),o,!0)}function $o(e){return null!=e&&e.length?mr(e,1):[]}function Qo(e){return e&&e.length?e[0]:i}var Ho=zr(function(e){var t=Nt(e,hi);return t.length&&t[0]===e[0]?Pr(t):[]}),zo=zr(function(e){var t=Zo(e),n=Nt(e,hi);return t===Zo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Pr(n,oo(t,2)):[]}),Wo=zr(function(e){var t=Zo(e),n=Nt(e,hi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Pr(n,i,t):[]});function Zo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Yo=zr(Ko);function Ko(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}var Jo=Xi(function(e,t){var n=null==e?0:e.length,r=ir(e,t);return $r(e,Nt(t,function(e){return go(e,n)?+e:e}).sort(Si)),r});function Xo(e){return null==e?e:_n.call(e)}var ea=zr(function(e){return si(mr(e,1,Ha,!0))}),ta=zr(function(e){var t=Zo(e);return Ha(t)&&(t=i),si(mr(e,1,Ha,!0),oo(t,2))}),na=zr(function(e){var t=Zo(e);return t="function"==typeof t?t:i,si(mr(e,1,Ha,!0),i,t)});function ra(e){if(!e||!e.length)return[];var t=0;return e=Dt(e,function(e){if(Ha(e))return t=gn(e.length,t),!0}),zt(t,function(t){return Nt(e,qt(t))})}function ia(e,t){if(!e||!e.length)return[];var n=ra(e);return null==t?n:Nt(n,function(e){return St(t,i,e)})}var oa=zr(function(e,t){return Ha(e)?cr(e,t):[]}),aa=zr(function(e){return di(Dt(e,Ha))}),sa=zr(function(e){var t=Zo(e);return Ha(t)&&(t=i),di(Dt(e,Ha),oo(t,2))}),ua=zr(function(e){var t=Zo(e);return t="function"==typeof t?t:i,di(Dt(e,Ha),i,t)}),ca=zr(ra),la=zr(function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,ia(e,n)});function pa(e){var t=Ln(e);return t.__chain__=!0,t}function da(e,t){return t(e)}var fa=Xi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Gn&&go(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:da,args:[o],thisArg:i}),new Bn(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)}),ha=Di(function(e,t,n){Fe.call(e,n)?++e[n]:rr(e,n,1)}),ma=xi(Go),ga=xi(qo);function ya(e,t){return(qa(e)?Ct:lr)(e,oo(t,3))}function va(e,t){return(qa(e)?wt:pr)(e,oo(t,3))}var ba=Di(function(e,t,n){Fe.call(e,n)?e[n].push(t):rr(e,n,[t])}),Ea=zr(function(e,t,n){var i=-1,o="function"==typeof t,a=Qa(e)?r(e.length):[];return lr(e,function(e){a[++i]=o?St(t,e,n):Dr(e,t,n)}),a}),_a=Di(function(e,t,n){rr(e,n,t)});function Ia(e,t){return(qa(e)?Nt:Ur)(e,oo(t,3))}var Sa=Di(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ta=zr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&yo(e,t[0],t[1])?t=[]:n>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),Br(e,mr(t,1),[])}),Ca=ct||function(){return pt.Date.now()};function wa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Wi(e,c,i,i,i,i,t)}function Pa(e,t){var n;if("function"!=typeof t)throw new Pe(o);return e=fs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Da=zr(function(e,t,n){var r=1;if(n.length){var i=sn(n,io(Da));r|=u}return Wi(e,r,t,n,i)}),Aa=zr(function(e,t,n){var r=3;if(n.length){var i=sn(n,io(Aa));r|=u}return Wi(t,r,e,n,i)});function Oa(e,t,n){var r,a,s,u,c,l,p=0,d=!1,f=!1,h=!0;if("function"!=typeof e)throw new Pe(o);function m(t){var n=r,o=a;return r=a=i,p=t,u=e.apply(o,n)}function g(e){var n=e-l;return l===i||n>=t||n<0||f&&e-p>=s}function y(){var e=Ca();if(g(e))return v(e);c=Do(y,function(e){var n=t-(e-l);return f?yn(n,s-(e-p)):n}(e))}function v(e){return c=i,h&&r?m(e):(r=a=i,u)}function b(){var e=Ca(),n=g(e);if(r=arguments,a=this,l=e,n){if(c===i)return function(e){return p=e,c=Do(y,t),d?m(e):u}(l);if(f)return bi(c),c=Do(y,t),m(l)}return c===i&&(c=Do(y,t)),u}return t=ms(t)||0,Xa(n)&&(d=!!n.leading,s=(f="maxWait"in n)?gn(ms(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){c!==i&&bi(c),p=0,r=l=a=c=i},b.flush=function(){return c===i?u:v(Ca())},b}var Na=zr(function(e,t){return ur(e,1,t)}),Ra=zr(function(e,t,n){return ur(e,ms(t)||0,n)});function Fa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Fa.Cache||Qn),n}function ka(e){if("function"!=typeof e)throw new Pe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Fa.Cache=Qn;var xa=yi(function(e,t){var n=(t=1==t.length&&qa(t[0])?Nt(t[0],Zt(oo())):Nt(mr(t,1),Zt(oo()))).length;return zr(function(r){for(var i=-1,o=yn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return St(e,this,r)})}),Ua=zr(function(e,t){var n=sn(t,io(Ua));return Wi(e,u,i,t,n)}),Ma=zr(function(e,t){var n=sn(t,io(Ma));return Wi(e,64,i,t,n)}),La=Xi(function(e,t){return Wi(e,256,i,i,i,t)});function ja(e,t){return e===t||e!=e&&t!=t}var Va=qi(Tr),Ba=qi(function(e,t){return e>=t}),Ga=Ar(function(){return arguments}())?Ar:function(e){return es(e)&&Fe.call(e,"callee")&&!He.call(e,"callee")},qa=r.isArray,$a=yt?Zt(yt):function(e){return es(e)&&Sr(e)==N};function Qa(e){return null!=e&&Ja(e.length)&&!Ya(e)}function Ha(e){return es(e)&&Qa(e)}var za=gt||mu,Wa=vt?Zt(vt):function(e){return es(e)&&Sr(e)==v};function Za(e){if(!es(e))return!1;var t=Sr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Ya(e){if(!Xa(e))return!1;var t=Sr(e);return t==E||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ka(e){return"number"==typeof e&&e==fs(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function Xa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=bt?Zt(bt):function(e){return es(e)&&po(e)==I};function ns(e){return"number"==typeof e||es(e)&&Sr(e)==S}function rs(e){if(!es(e)||Sr(e)!=T)return!1;var t=$e(e);if(null===t)return!0;var n=Fe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Re.call(n)==Me}var is=Et?Zt(Et):function(e){return es(e)&&Sr(e)==w},os=_t?Zt(_t):function(e){return es(e)&&po(e)==P};function as(e){return"string"==typeof e||!qa(e)&&es(e)&&Sr(e)==D}function ss(e){return"symbol"==typeof e||es(e)&&Sr(e)==A}var us=It?Zt(It):function(e){return es(e)&&Ja(e.length)&&!!it[Sr(e)]},cs=qi(xr),ls=qi(function(e,t){return e<=t});function ps(e){if(!e)return[];if(Qa(e))return as(e)?pn(e):wi(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=po(e);return(t==I?on:t==P?un:js)(e)}function ds(e){return e?(e=ms(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fs(e){var t=ds(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?or(fs(e),0,f):0}function ms(e){if("number"==typeof e)return e;if(ss(e))return d;if(Xa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Xa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Wt(e);var n=he.test(e);return n||ge.test(e)?ut(e.slice(2),n?2:8):fe.test(e)?d:+e}function gs(e){return Pi(e,Ns(e))}function ys(e){return null==e?"":ai(e)}var vs=Ai(function(e,t){if(_o(t)||Qa(t))Pi(t,Os(t),e);else for(var n in t)Fe.call(t,n)&&Xn(e,n,t[n])}),bs=Ai(function(e,t){Pi(t,Ns(t),e)}),Es=Ai(function(e,t,n,r){Pi(t,Ns(t),e,r)}),_s=Ai(function(e,t,n,r){Pi(t,Os(t),e,r)}),Is=Xi(ir),Ss=zr(function(e,t){e=Te(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&yo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Ns(a),u=-1,c=s.length;++u<c;){var l=s[u],p=e[l];(p===i||ja(p,Oe[l])&&!Fe.call(e,l))&&(e[l]=a[l])}return e}),Ts=zr(function(e){return e.push(i,Yi),St(Fs,i,e)});function Cs(e,t,n){var r=null==e?i:_r(e,t);return r===i?n:r}function ws(e,t){return null!=e&&fo(e,t,wr)}var Ps=Li(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),e[t]=n},Xs(nu)),Ds=Li(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),Fe.call(e,t)?e[t].push(n):e[t]=[n]},oo),As=zr(Dr);function Os(e){return Qa(e)?Wn(e):kr(e)}function Ns(e){return Qa(e)?Wn(e,!0):function(e){if(!Xa(e))return function(e){var t=[];if(null!=e)for(var n in Te(e))t.push(n);return t}(e);var t=_o(e),n=[];for(var r in e)("constructor"!=r||!t&&Fe.call(e,r))&&n.push(r);return n}(e)}var Rs=Ai(function(e,t,n){jr(e,t,n)}),Fs=Ai(function(e,t,n,r){jr(e,t,n,r)}),ks=Xi(function(e,t){var n={};if(null==e)return n;var r=!1;t=Nt(t,function(t){return t=gi(t,e),r||(r=t.length>1),t}),Pi(e,to(e),n),r&&(n=ar(n,7,Ki));for(var i=t.length;i--;)ui(n,t[i]);return n}),xs=Xi(function(e,t){return null==e?{}:function(e,t){return Gr(e,t,function(t,n){return ws(e,n)})}(e,t)});function Us(e,t){if(null==e)return{};var n=Nt(to(e),function(e){return[e]});return t=oo(t),Gr(e,n,function(e,n){return t(e,n[0])})}var Ms=zi(Os),Ls=zi(Ns);function js(e){return null==e?[]:Yt(e,Os(e))}var Vs=Fi(function(e,t,n){return t=t.toLowerCase(),e+(n?Bs(t):t)});function Bs(e){return Zs(ys(e).toLowerCase())}function Gs(e){return(e=ys(e))&&e.replace(ve,en).replace(Ke,"")}var qs=Fi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),$s=Fi(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Qs=Ri("toLowerCase"),Hs=Fi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),zs=Fi(function(e,t,n){return e+(n?" ":"")+Zs(t)}),Ws=Fi(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Zs=Ri("toUpperCase");function Ys(e,t,n){return e=ys(e),(t=n?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Xe)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Ks=zr(function(e,t){try{return St(e,i,t)}catch(e){return Za(e)?e:new _e(e)}}),Js=Xi(function(e,t){return Ct(t,function(t){t=Uo(t),rr(e,t,Da(e[t],e))}),e});function Xs(e){return function(){return e}}var eu=Ui(),tu=Ui(!0);function nu(e){return e}function ru(e){return Fr("function"==typeof e?e:ar(e,1))}var iu=zr(function(e,t){return function(n){return Dr(n,e,t)}}),ou=zr(function(e,t){return function(n){return Dr(e,n,t)}});function au(e,t,n){var r=Os(t),i=Er(t,r);null!=n||Xa(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,Os(t)));var o=!(Xa(n)&&"chain"in n&&!n.chain),a=Ya(e);return Ct(i,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=wi(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})}),e}function su(){}var uu=Vi(Nt),cu=Vi(Pt),lu=Vi(xt);function pu(e){return vo(e)?qt(Uo(e)):function(e){return function(t){return _r(t,e)}}(e)}var du=Gi(),fu=Gi(!0);function hu(){return[]}function mu(){return!1}var gu,yu=ji(function(e,t){return e+t},0),vu=Qi("ceil"),bu=ji(function(e,t){return e/t},1),Eu=Qi("floor"),_u=ji(function(e,t){return e*t},1),Iu=Qi("round"),Su=ji(function(e,t){return e-t},0);return Ln.after=function(e,t){if("function"!=typeof t)throw new Pe(o);return e=fs(e),function(){if(--e<1)return t.apply(this,arguments)}},Ln.ary=wa,Ln.assign=vs,Ln.assignIn=bs,Ln.assignInWith=Es,Ln.assignWith=_s,Ln.at=Is,Ln.before=Pa,Ln.bind=Da,Ln.bindAll=Js,Ln.bindKey=Aa,Ln.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Ln.chain=pa,Ln.chunk=function(e,t,n){t=(n?yo(e,t,n):t===i)?1:gn(fs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=r(dt(o/t));a<o;)u[s++]=ei(e,a,a+=t);return u},Ln.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Ln.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Rt(qa(n)?wi(n):[n],mr(t,1))},Ln.cond=function(e){var t=null==e?0:e.length,n=oo();return e=t?Nt(e,function(e){if("function"!=typeof e[1])throw new Pe(o);return[n(e[0]),e[1]]}):[],zr(function(n){for(var r=-1;++r<t;){var i=e[r];if(St(i[0],this,n))return St(i[1],this,n)}})},Ln.conforms=function(e){return function(e){var t=Os(e);return function(n){return sr(n,e,t)}}(ar(e,1))},Ln.constant=Xs,Ln.countBy=ha,Ln.create=function(e,t){var n=jn(e);return null==t?n:nr(n,t)},Ln.curry=function e(t,n,r){var o=Wi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Ln.curryRight=function e(t,n,r){var o=Wi(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Ln.debounce=Oa,Ln.defaults=Ss,Ln.defaultsDeep=Ts,Ln.defer=Na,Ln.delay=Ra,Ln.difference=jo,Ln.differenceBy=Vo,Ln.differenceWith=Bo,Ln.drop=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=n||t===i?1:fs(t))<0?0:t,r):[]},Ln.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,0,(t=r-(t=n||t===i?1:fs(t)))<0?0:t):[]},Ln.dropRightWhile=function(e,t){return e&&e.length?li(e,oo(t,3),!0,!0):[]},Ln.dropWhile=function(e,t){return e&&e.length?li(e,oo(t,3),!0):[]},Ln.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&yo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=fs(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:fs(r))<0&&(r+=o),r=n>r?0:hs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Ln.filter=function(e,t){return(qa(e)?Dt:hr)(e,oo(t,3))},Ln.flatMap=function(e,t){return mr(Ia(e,t),1)},Ln.flatMapDeep=function(e,t){return mr(Ia(e,t),l)},Ln.flatMapDepth=function(e,t,n){return n=n===i?1:fs(n),mr(Ia(e,t),n)},Ln.flatten=$o,Ln.flattenDeep=function(e){return null!=e&&e.length?mr(e,l):[]},Ln.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===i?1:fs(t)):[]},Ln.flip=function(e){return Wi(e,512)},Ln.flow=eu,Ln.flowRight=tu,Ln.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];rr(r,i[0],i[1])}return r},Ln.functions=function(e){return null==e?[]:Er(e,Os(e))},Ln.functionsIn=function(e){return null==e?[]:Er(e,Ns(e))},Ln.groupBy=ba,Ln.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},Ln.intersection=Ho,Ln.intersectionBy=zo,Ln.intersectionWith=Wo,Ln.invert=Ps,Ln.invertBy=Ds,Ln.invokeMap=Ea,Ln.iteratee=ru,Ln.keyBy=_a,Ln.keys=Os,Ln.keysIn=Ns,Ln.map=Ia,Ln.mapKeys=function(e,t){var n={};return t=oo(t,3),vr(e,function(e,r,i){rr(n,t(e,r,i),e)}),n},Ln.mapValues=function(e,t){var n={};return t=oo(t,3),vr(e,function(e,r,i){rr(n,r,t(e,r,i))}),n},Ln.matches=function(e){return Mr(ar(e,1))},Ln.matchesProperty=function(e,t){return Lr(e,ar(t,1))},Ln.memoize=Fa,Ln.merge=Rs,Ln.mergeWith=Fs,Ln.method=iu,Ln.methodOf=ou,Ln.mixin=au,Ln.negate=ka,Ln.nthArg=function(e){return e=fs(e),zr(function(t){return Vr(t,e)})},Ln.omit=ks,Ln.omitBy=function(e,t){return Us(e,ka(oo(t)))},Ln.once=function(e){return Pa(2,e)},Ln.orderBy=function(e,t,n,r){return null==e?[]:(qa(t)||(t=null==t?[]:[t]),qa(n=r?i:n)||(n=null==n?[]:[n]),Br(e,t,n))},Ln.over=uu,Ln.overArgs=xa,Ln.overEvery=cu,Ln.overSome=lu,Ln.partial=Ua,Ln.partialRight=Ma,Ln.partition=Sa,Ln.pick=xs,Ln.pickBy=Us,Ln.property=pu,Ln.propertyOf=function(e){return function(t){return null==e?i:_r(e,t)}},Ln.pull=Yo,Ln.pullAll=Ko,Ln.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,oo(n,2)):e},Ln.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,i,n):e},Ln.pullAt=Jo,Ln.range=du,Ln.rangeRight=fu,Ln.rearg=La,Ln.reject=function(e,t){return(qa(e)?Dt:hr)(e,ka(oo(t,3)))},Ln.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=oo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return $r(e,i),n},Ln.rest=function(e,t){if("function"!=typeof e)throw new Pe(o);return zr(e,t=t===i?t:fs(t))},Ln.reverse=Xo,Ln.sampleSize=function(e,t,n){return t=(n?yo(e,t,n):t===i)?1:fs(t),(qa(e)?Yn:Zr)(e,t)},Ln.set=function(e,t,n){return null==e?e:Yr(e,t,n)},Ln.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Yr(e,t,n,r)},Ln.shuffle=function(e){return(qa(e)?Kn:Xr)(e)},Ln.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&yo(e,t,n)?(t=0,n=r):(t=null==t?0:fs(t),n=n===i?r:fs(n)),ei(e,t,n)):[]},Ln.sortBy=Ta,Ln.sortedUniq=function(e){return e&&e.length?ii(e):[]},Ln.sortedUniqBy=function(e,t){return e&&e.length?ii(e,oo(t,2)):[]},Ln.split=function(e,t,n){return n&&"number"!=typeof n&&yo(e,t,n)&&(t=n=i),(n=n===i?f:n>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=ai(t))&&rn(e)?vi(pn(e),0,n):e.split(t,n):[]},Ln.spread=function(e,t){if("function"!=typeof e)throw new Pe(o);return t=null==t?0:gn(fs(t),0),zr(function(n){var r=n[t],i=vi(n,0,t);return r&&Rt(i,r),St(e,this,i)})},Ln.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Ln.take=function(e,t,n){return e&&e.length?ei(e,0,(t=n||t===i?1:fs(t))<0?0:t):[]},Ln.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=r-(t=n||t===i?1:fs(t)))<0?0:t,r):[]},Ln.takeRightWhile=function(e,t){return e&&e.length?li(e,oo(t,3),!1,!0):[]},Ln.takeWhile=function(e,t){return e&&e.length?li(e,oo(t,3)):[]},Ln.tap=function(e,t){return t(e),e},Ln.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Pe(o);return Xa(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Oa(e,t,{leading:r,maxWait:t,trailing:i})},Ln.thru=da,Ln.toArray=ps,Ln.toPairs=Ms,Ln.toPairsIn=Ls,Ln.toPath=function(e){return qa(e)?Nt(e,Uo):ss(e)?[e]:wi(xo(ys(e)))},Ln.toPlainObject=gs,Ln.transform=function(e,t,n){var r=qa(e),i=r||za(e)||us(e);if(t=oo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Xa(e)&&Ya(o)?jn($e(e)):{}}return(i?Ct:vr)(e,function(e,r,i){return t(n,e,r,i)}),n},Ln.unary=function(e){return wa(e,1)},Ln.union=ea,Ln.unionBy=ta,Ln.unionWith=na,Ln.uniq=function(e){return e&&e.length?si(e):[]},Ln.uniqBy=function(e,t){return e&&e.length?si(e,oo(t,2)):[]},Ln.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?si(e,i,t):[]},Ln.unset=function(e,t){return null==e||ui(e,t)},Ln.unzip=ra,Ln.unzipWith=ia,Ln.update=function(e,t,n){return null==e?e:ci(e,t,mi(n))},Ln.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ci(e,t,mi(n),r)},Ln.values=js,Ln.valuesIn=function(e){return null==e?[]:Yt(e,Ns(e))},Ln.without=oa,Ln.words=Ys,Ln.wrap=function(e,t){return Ua(mi(t),e)},Ln.xor=aa,Ln.xorBy=sa,Ln.xorWith=ua,Ln.zip=ca,Ln.zipObject=function(e,t){return fi(e||[],t||[],Xn)},Ln.zipObjectDeep=function(e,t){return fi(e||[],t||[],Yr)},Ln.zipWith=la,Ln.entries=Ms,Ln.entriesIn=Ls,Ln.extend=bs,Ln.extendWith=Es,au(Ln,Ln),Ln.add=yu,Ln.attempt=Ks,Ln.camelCase=Vs,Ln.capitalize=Bs,Ln.ceil=vu,Ln.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ms(n))==n?n:0),t!==i&&(t=(t=ms(t))==t?t:0),or(ms(e),t,n)},Ln.clone=function(e){return ar(e,4)},Ln.cloneDeep=function(e){return ar(e,5)},Ln.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:i)},Ln.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:i)},Ln.conformsTo=function(e,t){return null==t||sr(e,t,Os(t))},Ln.deburr=Gs,Ln.defaultTo=function(e,t){return null==e||e!=e?t:e},Ln.divide=bu,Ln.endsWith=function(e,t,n){e=ys(e),t=ai(t);var r=e.length,o=n=n===i?r:or(fs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Ln.eq=ja,Ln.escape=function(e){return(e=ys(e))&&W.test(e)?e.replace(H,tn):e},Ln.escapeRegExp=function(e){return(e=ys(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Ln.every=function(e,t,n){var r=qa(e)?Pt:dr;return n&&yo(e,t,n)&&(t=i),r(e,oo(t,3))},Ln.find=ma,Ln.findIndex=Go,Ln.findKey=function(e,t){return Mt(e,oo(t,3),vr)},Ln.findLast=ga,Ln.findLastIndex=qo,Ln.findLastKey=function(e,t){return Mt(e,oo(t,3),br)},Ln.floor=Eu,Ln.forEach=ya,Ln.forEachRight=va,Ln.forIn=function(e,t){return null==e?e:gr(e,oo(t,3),Ns)},Ln.forInRight=function(e,t){return null==e?e:yr(e,oo(t,3),Ns)},Ln.forOwn=function(e,t){return e&&vr(e,oo(t,3))},Ln.forOwnRight=function(e,t){return e&&br(e,oo(t,3))},Ln.get=Cs,Ln.gt=Va,Ln.gte=Ba,Ln.has=function(e,t){return null!=e&&fo(e,t,Cr)},Ln.hasIn=ws,Ln.head=Qo,Ln.identity=nu,Ln.includes=function(e,t,n,r){e=Qa(e)?e:js(e),n=n&&!r?fs(n):0;var i=e.length;return n<0&&(n=gn(i+n,0)),as(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&jt(e,t,n)>-1},Ln.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:fs(n);return i<0&&(i=gn(r+i,0)),jt(e,t,i)},Ln.inRange=function(e,t,n){return t=ds(t),n===i?(n=t,t=0):n=ds(n),function(e,t,n){return e>=yn(t,n)&&e<gn(t,n)}(e=ms(e),t,n)},Ln.invoke=As,Ln.isArguments=Ga,Ln.isArray=qa,Ln.isArrayBuffer=$a,Ln.isArrayLike=Qa,Ln.isArrayLikeObject=Ha,Ln.isBoolean=function(e){return!0===e||!1===e||es(e)&&Sr(e)==y},Ln.isBuffer=za,Ln.isDate=Wa,Ln.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},Ln.isEmpty=function(e){if(null==e)return!0;if(Qa(e)&&(qa(e)||"string"==typeof e||"function"==typeof e.splice||za(e)||us(e)||Ga(e)))return!e.length;var t=po(e);if(t==I||t==P)return!e.size;if(_o(e))return!kr(e).length;for(var n in e)if(Fe.call(e,n))return!1;return!0},Ln.isEqual=function(e,t){return Or(e,t)},Ln.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Or(e,t,i,n):!!r},Ln.isError=Za,Ln.isFinite=function(e){return"number"==typeof e&&Ut(e)},Ln.isFunction=Ya,Ln.isInteger=Ka,Ln.isLength=Ja,Ln.isMap=ts,Ln.isMatch=function(e,t){return e===t||Nr(e,t,so(t))},Ln.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Nr(e,t,so(t),n)},Ln.isNaN=function(e){return ns(e)&&e!=+e},Ln.isNative=function(e){if(Eo(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)},Ln.isNil=function(e){return null==e},Ln.isNull=function(e){return null===e},Ln.isNumber=ns,Ln.isObject=Xa,Ln.isObjectLike=es,Ln.isPlainObject=rs,Ln.isRegExp=is,Ln.isSafeInteger=function(e){return Ka(e)&&e>=-9007199254740991&&e<=p},Ln.isSet=os,Ln.isString=as,Ln.isSymbol=ss,Ln.isTypedArray=us,Ln.isUndefined=function(e){return e===i},Ln.isWeakMap=function(e){return es(e)&&po(e)==O},Ln.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==Sr(e)},Ln.join=function(e,t){return null==e?"":$t.call(e,t)},Ln.kebabCase=qs,Ln.last=Zo,Ln.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=fs(n))<0?gn(r+o,0):yn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Lt(e,Bt,o,!0)},Ln.lowerCase=$s,Ln.lowerFirst=Qs,Ln.lt=cs,Ln.lte=ls,Ln.max=function(e){return e&&e.length?fr(e,nu,Tr):i},Ln.maxBy=function(e,t){return e&&e.length?fr(e,oo(t,2),Tr):i},Ln.mean=function(e){return Gt(e,nu)},Ln.meanBy=function(e,t){return Gt(e,oo(t,2))},Ln.min=function(e){return e&&e.length?fr(e,nu,xr):i},Ln.minBy=function(e,t){return e&&e.length?fr(e,oo(t,2),xr):i},Ln.stubArray=hu,Ln.stubFalse=mu,Ln.stubObject=function(){return{}},Ln.stubString=function(){return""},Ln.stubTrue=function(){return!0},Ln.multiply=_u,Ln.nth=function(e,t){return e&&e.length?Vr(e,fs(t)):i},Ln.noConflict=function(){return pt._===this&&(pt._=Le),this},Ln.noop=su,Ln.now=Ca,Ln.pad=function(e,t,n){e=ys(e);var r=(t=fs(t))?ln(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Bi(ft(i),n)+e+Bi(dt(i),n)},Ln.padEnd=function(e,t,n){e=ys(e);var r=(t=fs(t))?ln(e):0;return t&&r<t?e+Bi(t-r,n):e},Ln.padStart=function(e,t,n){e=ys(e);var r=(t=fs(t))?ln(e):0;return t&&r<t?Bi(t-r,n)+e:e},Ln.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(ys(e).replace(re,""),t||0)},Ln.random=function(e,t,n){if(n&&"boolean"!=typeof n&&yo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ds(e),t===i?(t=e,e=0):t=ds(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=En();return yn(e+o*(t-e+st("1e-"+((o+"").length-1))),t)}return Qr(e,t)},Ln.reduce=function(e,t,n){var r=qa(e)?Ft:Qt,i=arguments.length<3;return r(e,oo(t,4),n,i,lr)},Ln.reduceRight=function(e,t,n){var r=qa(e)?kt:Qt,i=arguments.length<3;return r(e,oo(t,4),n,i,pr)},Ln.repeat=function(e,t,n){return t=(n?yo(e,t,n):t===i)?1:fs(t),Hr(ys(e),t)},Ln.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ln.result=function(e,t,n){var r=-1,o=(t=gi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[Uo(t[r])];a===i&&(r=o,a=n),e=Ya(a)?a.call(e):a}return e},Ln.round=Iu,Ln.runInContext=e,Ln.sample=function(e){return(qa(e)?Zn:Wr)(e)},Ln.size=function(e){if(null==e)return 0;if(Qa(e))return as(e)?ln(e):e.length;var t=po(e);return t==I||t==P?e.size:kr(e).length},Ln.snakeCase=Hs,Ln.some=function(e,t,n){var r=qa(e)?xt:ti;return n&&yo(e,t,n)&&(t=i),r(e,oo(t,3))},Ln.sortedIndex=function(e,t){return ni(e,t)},Ln.sortedIndexBy=function(e,t,n){return ri(e,t,oo(n,2))},Ln.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ni(e,t);if(r<n&&ja(e[r],t))return r}return-1},Ln.sortedLastIndex=function(e,t){return ni(e,t,!0)},Ln.sortedLastIndexBy=function(e,t,n){return ri(e,t,oo(n,2),!0)},Ln.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ni(e,t,!0)-1;if(ja(e[n],t))return n}return-1},Ln.startCase=zs,Ln.startsWith=function(e,t,n){return e=ys(e),n=null==n?0:or(fs(n),0,e.length),t=ai(t),e.slice(n,n+t.length)==t},Ln.subtract=Su,Ln.sum=function(e){return e&&e.length?Ht(e,nu):0},Ln.sumBy=function(e,t){return e&&e.length?Ht(e,oo(t,2)):0},Ln.template=function(e,t,n){var r=Ln.templateSettings;n&&yo(e,t,n)&&(t=i),e=ys(e),t=_s({},t,r,Zi);var o=_s({},t.imports,r.imports,Zi),a=Os(o),s=Yt(o,a);Ct(a,function(e){if(ce.test(e))throw new _e("Invalid `imports` option passed into `_.template`")});var u,c,l=0,p=t.interpolate||be,d="__p += '",f=Ce((t.escape||be).source+"|"+p.source+"|"+(p===K?pe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Fe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(f,function(t,n,r,i,o,a){return r||(r=i),d+=e.slice(l,a).replace(Ee,nn),n&&(u=!0,d+="' +\n__e("+n+") +\n'"),o&&(c=!0,d+="';\n"+o+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=a+t.length,t}),d+="';\n";var m=Fe.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new _e("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(c?d.replace(G,""):d).replace(q,"$1").replace($,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(u?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Ks(function(){return Ie(a,h+"return "+d).apply(i,s)});if(g.source=d,Za(g))throw g;return g},Ln.times=function(e,t){if((e=fs(e))<1||e>p)return[];var n=f,r=yn(e,f);t=oo(t),e-=f;for(var i=zt(r,t);++n<e;)t(n);return i},Ln.toFinite=ds,Ln.toInteger=fs,Ln.toLength=hs,Ln.toLower=function(e){return ys(e).toLowerCase()},Ln.toNumber=ms,Ln.toSafeInteger=function(e){return e?or(fs(e),-9007199254740991,p):0===e?e:0},Ln.toString=ys,Ln.toUpper=function(e){return ys(e).toUpperCase()},Ln.trim=function(e,t,n){if((e=ys(e))&&(n||t===i))return Wt(e);if(!e||!(t=ai(t)))return e;var r=pn(e),o=pn(t);return vi(r,Jt(r,o),Xt(r,o)+1).join("")},Ln.trimEnd=function(e,t,n){if((e=ys(e))&&(n||t===i))return e.slice(0,dn(e)+1);if(!e||!(t=ai(t)))return e;var r=pn(e);return vi(r,0,Xt(r,pn(t))+1).join("")},Ln.trimStart=function(e,t,n){if((e=ys(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=ai(t)))return e;var r=pn(e);return vi(r,Jt(r,pn(t))).join("")},Ln.truncate=function(e,t){var n=30,r="...";if(Xa(t)){var o="separator"in t?t.separator:o;n="length"in t?fs(t.length):n,r="omission"in t?ai(t.omission):r}var a=(e=ys(e)).length;if(rn(e)){var s=pn(e);a=s.length}if(n>=a)return e;var u=n-ln(r);if(u<1)return r;var c=s?vi(s,0,u).join(""):e.slice(0,u);if(o===i)return c+r;if(s&&(u+=c.length-u),is(o)){if(e.slice(u).search(o)){var l,p=c;for(o.global||(o=Ce(o.source,ys(de.exec(o))+"g")),o.lastIndex=0;l=o.exec(p);)var d=l.index;c=c.slice(0,d===i?u:d)}}else if(e.indexOf(ai(o),u)!=u){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+r},Ln.unescape=function(e){return(e=ys(e))&&z.test(e)?e.replace(Q,fn):e},Ln.uniqueId=function(e){var t=++ke;return ys(e)+t},Ln.upperCase=Ws,Ln.upperFirst=Zs,Ln.each=ya,Ln.eachRight=va,Ln.first=Qo,au(Ln,(gu={},vr(Ln,function(e,t){Fe.call(Ln.prototype,t)||(gu[t]=e)}),gu),{chain:!1}),Ln.VERSION="4.18.1",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Ln[e].placeholder=Ln}),Ct(["drop","take"],function(e,t){Gn.prototype[e]=function(n){n=n===i?1:gn(fs(n),0);var r=this.__filtered__&&!t?new Gn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,f),type:e+(r.__dir__<0?"Right":"")}),r},Gn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Ct(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Gn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Ct(["head","last"],function(e,t){var n="take"+(t?"Right":"");Gn.prototype[e]=function(){return this[n](1).value()[0]}}),Ct(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Gn.prototype[e]=function(){return this.__filtered__?new Gn(this):this[n](1)}}),Gn.prototype.compact=function(){return this.filter(nu)},Gn.prototype.find=function(e){return this.filter(e).head()},Gn.prototype.findLast=function(e){return this.reverse().find(e)},Gn.prototype.invokeMap=zr(function(e,t){return"function"==typeof e?new Gn(this):this.map(function(n){return Dr(n,e,t)})}),Gn.prototype.reject=function(e){return this.filter(ka(oo(e)))},Gn.prototype.slice=function(e,t){e=fs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Gn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=fs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Gn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Gn.prototype.toArray=function(){return this.take(f)},vr(Gn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Ln[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Ln.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Gn,c=s[0],l=u||qa(t),p=function(e){var t=o.apply(Ln,Rt([e],s));return r&&d?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var d=this.__chain__,f=!!this.__actions__.length,h=a&&!d,m=u&&!f;if(!a&&l){t=m?t:new Gn(this);var g=e.apply(t,s);return g.__actions__.push({func:da,args:[p],thisArg:i}),new Bn(g,d)}return h&&m?e.apply(this,s):(g=this.thru(p),h?r?g.value()[0]:g.value():g)})}),Ct(["pop","push","shift","sort","splice","unshift"],function(e){var t=De[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Ln.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(qa(i)?i:[],e)}return this[n](function(n){return t.apply(qa(n)?n:[],e)})}}),vr(Gn.prototype,function(e,t){var n=Ln[t];if(n){var r=n.name+"";Fe.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}}),An[Mi(i,2).name]=[{name:"wrapper",func:i}],Gn.prototype.clone=function(){var e=new Gn(this.__wrapped__);return e.__actions__=wi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=wi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=wi(this.__views__),e},Gn.prototype.reverse=function(){if(this.__filtered__){var e=new Gn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Gn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qa(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=gn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,p=l.length,d=0,f=yn(u,this.__takeCount__);if(!n||!r&&i==u&&f==u)return pi(e,this.__actions__);var h=[];e:for(;u--&&d<f;){for(var m=-1,g=e[c+=t];++m<p;){var y=l[m],v=y.iteratee,b=y.type,E=v(g);if(2==b)g=E;else if(!E){if(1==b)continue e;break e}}h[d++]=g}return h},Ln.prototype.at=fa,Ln.prototype.chain=function(){return pa(this)},Ln.prototype.commit=function(){return new Bn(this.value(),this.__chain__)},Ln.prototype.next=function(){this.__values__===i&&(this.__values__=ps(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Ln.prototype.plant=function(e){for(var t,n=this;n instanceof Vn;){var r=Lo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Ln.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Gn){var t=e;return this.__actions__.length&&(t=new Gn(this)),(t=t.reverse()).__actions__.push({func:da,args:[Xo],thisArg:i}),new Bn(t,this.__chain__)}return this.thru(Xo)},Ln.prototype.toJSON=Ln.prototype.valueOf=Ln.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Ln.prototype.first=Ln.prototype.head,Ze&&(Ln.prototype[Ze]=function(){return this}),Ln}();pt._=hn,(r=function(){return hn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},6760:(e,t,n)=>{var r=n(343),i=n(8286),o=n(3401),a=n(6152);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},733:(e,t,n)=>{var r=n(6738);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],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},8537:(e,t,n)=>{var r=n(4565),i=n(7263)(function(e,t,n){r(e,t,n)});e.exports=i},7620:(e,t,n)=>{var r=n(343),i=n(8874),o=n(9078),a=n(7297),s=n(752),u=n(8642),c=n(9097),l=n(6939),p=c(function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,function(t){return t=a(t,e),c||(c=t.length>1),t}),s(e,l(e),n),c&&(n=i(n,7,u));for(var p=t.length;p--;)o(n,t[p]);return n});e.exports=p},5798:(e,t,n)=>{var r=n(256),i=n(2952),o=n(1401),a=n(3812);e.exports=function(e){return o(e)?r(a(e)):i(e)}},1525:(e,t,n)=>{var r=n(7064),i=n(8286),o=n(4751),a=n(6152),s=n(2406);e.exports=function(e,t,n){var u=a(e)?r:o;return n&&s(e,t,n)&&(t=void 0),u(e,i(t,3))}},981:e=>{e.exports=function(){return[]}},6330:e=>{e.exports=function(){return!1}},5707:(e,t,n)=>{var r=n(7642),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},8101:(e,t,n)=>{var r=n(5707);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},7642:(e,t,n)=>{var r=n(1704),i=n(9259),o=n(4795),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(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)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},3329:(e,t,n)=>{var r=n(752),i=n(4225);e.exports=function(e){return r(e,i(e))}},6188:(e,t,n)=>{var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},8346:(e,t,n)=>{var r=n(753),i=n(249);e.exports=function(e){return null==e?[]:r(e,i(e))}},1434:(e,t,n)=>{t.TypedEmitter=n(2699).EventEmitter},3884:(e,t,n)=>{n.d(t,{fEx:()=>R,zVd:()=>F,zu7:()=>k,dpb:()=>x,T0E:()=>Go,d4U:()=>qo,nwm:()=>U,Ijf:()=>M,v2N:()=>L,fg_:()=>j,$SX:()=>V,Mbo:()=>B,E34:()=>G,Bkk:()=>vs,Y92:()=>Qa,m06:()=>xs,bM9:()=>q,ucG:()=>is,sZY:()=>_h,Yti:()=>a.BaseEntitlement,PLi:()=>$,yTz:()=>Q,FzK:()=>H,tvV:()=>z,ugv:()=>W,feI:()=>a.BooleanEntitlement,Yop:()=>a.BooleanEntitlementFallback,mu$:()=>a.BooleanEntitlementOptions,sf5:()=>Ch,x3v:()=>_s,jAf:()=>ws,u4I:()=>Z,bno:()=>Y,bEP:()=>wa,weZ:()=>Aa,bfH:()=>o.ClientConfiguration,uS8:()=>K,K6s:()=>Os,eyU:()=>As,wE_:()=>J,RJY:()=>X,zdd:()=>Do,i2A:()=>ee,fc5:()=>te,K79:()=>ne,$i2:()=>re,m0x:()=>Hs,$QI:()=>$s,WJn:()=>Fs,Pzm:()=>Ja,Q_D:()=>pa,fc8:()=>ie,XCy:()=>Wa,W0R:()=>cs,MnN:()=>a.CreditEntitlement,ETy:()=>a.CreditEntitlementFallback,vPg:()=>va,Q0c:()=>a.CreditEntitlementOptions,NWj:()=>oe,lj3:()=>Ya,XQy:()=>ae,R8w:()=>Za,gYt:()=>se,g9Q:()=>ue,U9R:()=>ce,bSK:()=>le,BGD:()=>pe,Eq9:()=>de,mKD:()=>Ka,_Yx:()=>rs,uMJ:()=>fe,oiL:()=>Xa,Fa6:()=>he,$ur:()=>me,Ch6:()=>a.CustomerEntitlementsResult,of1:()=>a.CustomerEntitlementsResultV2,hk_:()=>Oo,vjn:()=>Vh,_d$:()=>_a,NSU:()=>Ta,Eph:()=>ga,g31:()=>Ca,u9g:()=>Ea,aqW:()=>fa,LBz:()=>ma,qYx:()=>da,X$1:()=>ha,OoB:()=>Ro,pDu:()=>ge,rpU:()=>ye,fYe:()=>Jo,Pg9:()=>ve,GBW:()=>Ko,g20:()=>be,i1W:()=>Ee,vQb:()=>Ls,yEZ:()=>_e,Wky:()=>hs,C2e:()=>Ie,Lbh:()=>Se,RCf:()=>Th,z2r:()=>a.Entitlement,AVk:()=>Te,cUI:()=>aa,HHl:()=>as,XHu:()=>Ce,Uze:()=>we,sA9:()=>ba,cG4:()=>ca,H5H:()=>a.EntitlementV2,RlM:()=>a.EntitlementsFallback,JrM:()=>Pe,bII:()=>sa,jUP:()=>os,FT8:()=>De,xEh:()=>a.EnumEntitlement,cjh:()=>a.EnumEntitlementFallback,$Yq:()=>a.EnumEntitlementOptions,Pr8:()=>Ae,YOP:()=>Oe,IZr:()=>Ne,$BG:()=>Re,Qj0:()=>Fe,jKp:()=>ke,e8S:()=>vu,m5b:()=>Is,wO5:()=>Ss,VpA:()=>bu,FFB:()=>xe,y3V:()=>Ue,Zr9:()=>Me,g3t:()=>Le,m72:()=>je,i3Z:()=>Ve,zcH:()=>Be,zOd:()=>En,o_I:()=>Ge,bWm:()=>qe,EP_:()=>ya,o5f:()=>oa,i4m:()=>$e,sEr:()=>Qe,GAT:()=>He,iKc:()=>ze,Tex:()=>We,XsQ:()=>Ia,U9t:()=>Ze,OpC:()=>Ys,bgy:()=>Ks,T5f:()=>yu,jPD:()=>cu,Q$1:()=>eu,Cmg:()=>fu,$Iz:()=>hu,tIq:()=>mu,zHr:()=>gu,ZeH:()=>Ws,$Av:()=>uu,TpL:()=>Zs,pWb:()=>iu,Rk$:()=>ou,roX:()=>nu,RXg:()=>ru,_xu:()=>lu,RVX:()=>tu,Fd7:()=>au,N9K:()=>su,do1:()=>Xs,hH:()=>Js,K0T:()=>pu,p7R:()=>du,E7k:()=>Vs,EAJ:()=>Ye,Mal:()=>ms,KeG:()=>Bs,uMn:()=>Ke,qBr:()=>Je,DFP:()=>ea,m76:()=>ps,$jJ:()=>ds,B8X:()=>Xe,N5j:()=>bs,Us3:()=>et,isD:()=>tt,nN6:()=>Ma,CQ1:()=>i.LogConfiguration,ini:()=>ku,YdH:()=>i.Logger,VsH:()=>Sh,Kyg:()=>nt,XY6:()=>rt,QmV:()=>it,puT:()=>ot,_sg:()=>a.MeteredEntitlement,BuV:()=>a.MeteredEntitlementFallback,fAd:()=>a.MeteredEntitlementOptions,bGN:()=>ks,$Bh:()=>Ra,hVT:()=>Fa,k8_:()=>Oa,wn5:()=>ka,lgL:()=>xa,VeJ:()=>Na,pSI:()=>at,ctk:()=>Ih,GL8:()=>a.NumericEntitlement,VHF:()=>a.NumericEntitlementFallback,o5C:()=>a.NumericEntitlementOptions,gpE:()=>st,PVi:()=>ut,opi:()=>gb,AQp:()=>Cu,Bve:()=>Eu,r$Y:()=>_u,zBW:()=>Tu,LpH:()=>Iu,H81:()=>Su,q5V:()=>ct,BoX:()=>Bo,a8K:()=>jo,zv6:()=>lt,RzF:()=>Mo,iI3:()=>pt,DW2:()=>Vo,lKo:()=>Lo,jCI:()=>dt,OeJ:()=>ft,ab2:()=>la,TVs:()=>ht,JU:()=>ns,QdX:()=>mt,Kf7:()=>gt,LtK:()=>yt,r6R:()=>es,fvX:()=>ja,r4r:()=>La,FcI:()=>Ua,qw4:()=>Va,Cc7:()=>vt,kd9:()=>$o,bOA:()=>Qo,qXR:()=>bt,yGq:()=>Cs,ZD9:()=>Ts,wEB:()=>ko,YGW:()=>Et,Chb:()=>Fo,_HY:()=>_t,cMT:()=>Uo,p_C:()=>It,Pte:()=>St,Ehw:()=>Ao,JkE:()=>Tt,ku9:()=>Ct,$Vq:()=>wt,QZw:()=>Pt,q6C:()=>ls,YlF:()=>$a,rDA:()=>ys,CjA:()=>Ha,u0j:()=>Dt,Zam:()=>At,JDz:()=>Rs,ZSL:()=>Ns,dO5:()=>Ds,K5h:()=>Ps,UK7:()=>za,JyR:()=>ia,GHz:()=>gs,_He:()=>Gs,kyC:()=>zs,nM6:()=>Ot,zWW:()=>Ho,xrg:()=>ts,bj8:()=>Po,bGH:()=>qa,cTO:()=>wo,SrV:()=>Nt,Xm9:()=>Rt,PO0:()=>Ft,FVE:()=>pb,iSe:()=>c.StiggClient,CPx:()=>Au,x3Z:()=>kt,e$z:()=>xt,Yo2:()=>Pa,ueJ:()=>Ut,eo$:()=>Mt,w1y:()=>Lt,c06:()=>jt,lS0:()=>Vt,abb:()=>Bt,ird:()=>Gt,_oj:()=>qt,e1Q:()=>$t,Ugm:()=>Yo,hvo:()=>Wo,tV1:()=>Qt,FL0:()=>No,Dxn:()=>ra,G6j:()=>Ht,eSW:()=>zt,DWP:()=>Wt,zjf:()=>Xo,Eam:()=>ta,URA:()=>na,yBL:()=>Zt,SQC:()=>Yt,_q5:()=>Co,o88:()=>Kt,cUf:()=>Jt,YVG:()=>Xt,J5K:()=>zo,nOi:()=>en,yhH:()=>tn,HsO:()=>Zo,XqI:()=>nn,wRo:()=>rn,hYU:()=>on,UAI:()=>an,aYi:()=>sn,PNd:()=>un,N9N:()=>xo,$02:()=>Ms,Dc_:()=>js,bk4:()=>cn,p13:()=>ln,Yky:()=>r,mGS:()=>Sa,_gQ:()=>Us,Dfv:()=>pn,bd6:()=>qs,eKV:()=>fs,EQD:()=>Es,QNm:()=>Ba,yaX:()=>Ga,X3h:()=>dn,Buv:()=>fn,_yy:()=>hn,l3m:()=>ua,aVo:()=>us,f4i:()=>ss,FoD:()=>mn,O0T:()=>gn,yyj:()=>Qs,rCU:()=>yn,l9N:()=>vn,EOH:()=>bn,LkV:()=>Da,ZPm:()=>vb,mKo:()=>Pu,RZ6:()=>Nu,Dvk:()=>Fu,HBH:()=>Ou,McM:()=>Ru});var r={};n.r(r),n.d(r,{AccessDeniedReason:()=>R,AccountAccessMethod:()=>F,AccountAccessRole:()=>k,AccountStatus:()=>x,AddonDependencyFragmentDoc:()=>Go,AddonFragmentDoc:()=>qo,AddonSortFields:()=>U,AggregationFunction:()=>M,Alignment:()=>L,ApiKeyScopeAction:()=>j,ApiKeyScopeResource:()=>V,ApiKeySortFields:()=>B,ApiKeyType:()=>G,ApplySubscriptionDocument:()=>vs,ApplySubscriptionFragmentDoc:()=>Qa,ArchiveCustomerDocument:()=>xs,Auth0ApplicationType:()=>q,AutoRechargeSettingsFragmentDoc:()=>is,BillingAnchor:()=>$,BillingCadence:()=>Q,BillingModel:()=>H,BillingPeriod:()=>z,BillingVendorIdentifier:()=>W,CancelSubscriptionDocument:()=>_s,CancelSubscriptionUpdatesDocument:()=>ws,ChangeType:()=>Z,ChargeType:()=>Y,CheckoutConfigurationFragmentDoc:()=>wa,CheckoutStateFragmentDoc:()=>Aa,ConditionOperation:()=>K,ConsumeCreditsAsyncDocument:()=>Os,ConsumeCreditsDocument:()=>As,ContractState:()=>J,ContractType:()=>X,CouponFragmentDoc:()=>Do,CouponSortFields:()=>ee,CouponSource:()=>te,CouponStatus:()=>ne,CouponType:()=>re,CreateCouponDocument:()=>Hs,CreatePaymentSessionDocument:()=>$s,CreateSubscriptionDocument:()=>Fs,CreditBalanceFragmentDoc:()=>Ja,CreditBalanceUpdatedPayloadFragmentDoc:()=>pa,CreditCadence:()=>ie,CreditConsumptionResponseFragmentDoc:()=>Wa,CreditCostEstimationFragmentDoc:()=>cs,CreditEntitlementFragmentDoc:()=>va,CreditGrantCadence:()=>oe,CreditGrantFragmentDoc:()=>Ya,CreditGrantInvoiceBillingReason:()=>ae,CreditGrantInvoiceFragmentDoc:()=>Za,CreditGrantInvoiceStatus:()=>se,CreditGrantSourceType:()=>ue,CreditGrantStatus:()=>ce,CreditGrantType:()=>le,CreditGrantTypeInput:()=>pe,CreditLedgerEventType:()=>de,CreditLedgerFragmentDoc:()=>Ka,CreditUsageFragmentDoc:()=>rs,CreditUsageTimeRange:()=>fe,CreditsBalanceSummaryFragmentDoc:()=>Xa,Currency:()=>he,CustomCurrencyStatus:()=>me,CustomerFragmentDoc:()=>Oo,CustomerPortalBillingInformationFragmentDoc:()=>_a,CustomerPortalConfigurationFragmentDoc:()=>Ta,CustomerPortalEntitlementFragmentDoc:()=>ga,CustomerPortalFragmentDoc:()=>Ca,CustomerPortalPromotionalEntitlementFragmentDoc:()=>Ea,CustomerPortalSubscriptionAddonFragmentDoc:()=>fa,CustomerPortalSubscriptionFragmentDoc:()=>ma,CustomerPortalSubscriptionPriceFragmentDoc:()=>da,CustomerPortalSubscriptionScheduledUpdateDataFragmentDoc:()=>ha,CustomerResourceFragmentDoc:()=>Ro,CustomerResourceSortFields:()=>ge,CustomerSortFields:()=>ye,CustomerStatisticsFragmentDoc:()=>Jo,CustomerSubscriptionSortFields:()=>ve,CustomerWithSubscriptionsFragmentDoc:()=>Ko,DataExportJobStatus:()=>be,DataExportSourceType:()=>Ee,DelegateSubscriptionToCustomerDocument:()=>Ls,Department:()=>_e,DetachCustomerPaymentMethodDocument:()=>hs,DiscountDurationType:()=>Ie,DiscountType:()=>Se,EntitlementBehavior:()=>Te,EntitlementFragmentDoc:()=>aa,EntitlementReferenceFragmentDoc:()=>as,EntitlementResetPeriod:()=>Ce,EntitlementType:()=>we,EntitlementUnionFragmentDoc:()=>ba,EntitlementUsageUpdatedFragmentDoc:()=>ca,EntitlementsStateAccessDeniedReason:()=>Pe,EntitlementsUpdatedPayloadFragmentDoc:()=>sa,EntitlementsUpdatedV2PayloadFragmentDoc:()=>os,EntitySelectionMode:()=>De,EnvironmentAccessRole:()=>Ae,EnvironmentExportState:()=>Oe,EnvironmentProvisionStatus:()=>Ne,EnvironmentSortFields:()=>Re,EnvironmentType:()=>Fe,ErrorCode:()=>ke,EstimateEventCostDocument:()=>vu,EstimateSubscriptionDocument:()=>Is,EstimateSubscriptionUpdateDocument:()=>Ss,EstimateUsageCostDocument:()=>bu,EstimationRequestWarning:()=>xe,EstimationWarningCode:()=>Ue,EventActor:()=>Me,EventEntityType:()=>Le,EventLogSortFields:()=>je,EventLogType:()=>Ve,EventQueueProvisioningStatus:()=>Be,ExperimentGroupType:()=>En,ExperimentSortFields:()=>Ge,ExperimentStatus:()=>qe,FeatureEntitlementFragmentDoc:()=>ya,FeatureFragmentDoc:()=>oa,FeatureGroupSortFields:()=>$e,FeatureGroupStatus:()=>Qe,FeatureSortFields:()=>He,FeatureStatus:()=>ze,FeatureType:()=>We,FontVariantFragmentDoc:()=>Ia,FontWeight:()=>Ze,GetActiveSubscriptionsDocument:()=>Ys,GetActiveSubscriptionsListDocument:()=>Ks,GetAutomaticRechargeConfigurationDocument:()=>yu,GetCheckoutStateDocument:()=>cu,GetCouponsDocument:()=>eu,GetCreditBalanceDocument:()=>fu,GetCreditGrantsDocument:()=>hu,GetCreditLedgerDocument:()=>mu,GetCreditUsageDocument:()=>gu,GetCustomerByIdDocument:()=>Ws,GetCustomerPortalByRefIdDocument:()=>uu,GetCustomerStatisticsDocument:()=>Zs,GetEntitlementDocument:()=>iu,GetEntitlementV2Document:()=>ou,GetEntitlementsDocument:()=>nu,GetEntitlementsStateDocument:()=>ru,GetMockPaywallDocument:()=>lu,GetPaywallDocument:()=>tu,GetProductsDocument:()=>au,GetSdkConfigurationDocument:()=>su,GetSubscriptionDocument:()=>Xs,GetSubscriptionsDocument:()=>Js,GetUsageHistoryDocument:()=>pu,GetUsageHistoryV2Document:()=>du,GrantCreditsDocument:()=>Vs,GrantExpirationPeriod:()=>Ye,GrantPromotionalEntitlementsDocument:()=>ms,GrantPromotionalEntitlementsGroupDocument:()=>Bs,HookSortFields:()=>Ke,HookStatus:()=>Je,ImmediateSubscriptionPreviewInvoiceFragmentDoc:()=>ea,ImportCustomerBulkDocument:()=>ps,ImportCustomerDocument:()=>ds,ImportIntegrationTaskSortFields:()=>Xe,ImportSubscriptionsBulkDocument:()=>bs,IntegrationSortFields:()=>et,InvoiceLineItemType:()=>tt,LayoutConfigurationFragmentDoc:()=>Ma,MemberSortFields:()=>nt,MemberStatus:()=>rt,MergeApplyState:()=>it,MeterType:()=>ot,MigrateSubscriptionToLatestDocument:()=>ks,MockPaywallAddonDependencyFragmentDoc:()=>Ra,MockPaywallAddonFragmentDoc:()=>Fa,MockPaywallPackageEntitlementFragmentDoc:()=>Oa,MockPaywallPlanCompatiblePackageGroupsFragmentDoc:()=>ka,MockPaywallPlanFragmentDoc:()=>xa,MockPaywallPriceFragmentDoc:()=>Na,MonthlyAccordingTo:()=>at,OfferSortFields:()=>st,OfferStatus:()=>ut,OnCreditBalanceUpdatedDocument:()=>Cu,OnEntitlementsUpdatedDocument:()=>Eu,OnEntitlementsUpdatedV2Document:()=>_u,OnPackagePublishedDocument:()=>Tu,OnUsageUpdatedDocument:()=>Iu,OnUsageUpdatedV2Document:()=>Su,OverageBillingPeriod:()=>ct,OveragePriceFragmentDoc:()=>Bo,PackageCreditEntitlementFragmentDoc:()=>jo,PackageDtoSortFields:()=>lt,PackageEntitlementFragmentDoc:()=>Mo,PackageEntitlementSortFields:()=>pt,PackageEntitlementUnionFragmentDoc:()=>Vo,PackageFeatureEntitlementFragmentDoc:()=>Lo,PackageGroupSortFields:()=>dt,PackageGroupStatus:()=>ft,PackagePublishedPayloadFragmentDoc:()=>la,PackageStatus:()=>ht,PageInfoFragmentDoc:()=>ns,PaymentCollection:()=>mt,PaymentCollectionMethod:()=>gt,PaymentMethodType:()=>yt,PaymentSessionFragmentDoc:()=>es,PaywallCalculatedPricePointsFragmentDoc:()=>ja,PaywallConfigurationFragmentDoc:()=>La,PaywallCurrencyFragmentDoc:()=>Ua,PaywallFragmentDoc:()=>Va,PlanChangeType:()=>vt,PlanCompatiblePackageGroupsFragmentDoc:()=>$o,PlanFragmentDoc:()=>Qo,PlanSortFields:()=>bt,PreviewNextInvoiceDocument:()=>Cs,PreviewSubscriptionDocument:()=>Ts,PriceFragmentDoc:()=>ko,PriceSortFields:()=>Et,PriceTierFragmentDoc:()=>Fo,PricingType:()=>_t,ProductFragmentDoc:()=>Uo,ProductSortFields:()=>It,ProductStatus:()=>St,PromotionalEntitlementFragmentDoc:()=>Ao,PromotionalEntitlementPeriod:()=>Tt,PromotionalEntitlementSortFields:()=>Ct,PromotionalEntitlementStatus:()=>wt,ProrationBehavior:()=>Pt,ProvisionCustomerDocument:()=>ls,ProvisionCustomerFragmentDoc:()=>$a,ProvisionSubscriptionDocument:()=>ys,ProvisionSubscriptionFragmentDoc:()=>Ha,ProvisionSubscriptionStatus:()=>Dt,PublishMigrationType:()=>At,ReportEntitlementCheckRequestedDocument:()=>Rs,ReportEventDocument:()=>Ns,ReportUsageBulkDocument:()=>Ds,ReportUsageDocument:()=>Ps,ReportUsageFragmentDoc:()=>za,ResetPeriodConfigurationFragmentDoc:()=>ia,RevokePromotionalEntitlementDocument:()=>gs,RevokePromotionalEntitlementsGroupDocument:()=>Gs,SaveAutomaticRechargeConfigurationDocument:()=>zs,ScheduleStrategy:()=>Ot,ScheduleVariablesFragmentDoc:()=>Ho,SlimCustomCurrencyFragmentDoc:()=>ts,SlimCustomerFragmentDoc:()=>Po,SlimSubscriptionFragmentDoc:()=>qa,SlimSubscriptionFragmentV2FragmentDoc:()=>wo,SortDirection:()=>Nt,SortNulls:()=>Rt,SourceType:()=>Ft,StripeAccountMode:()=>kt,StripeAccountSource:()=>xt,StripeCheckoutCredentialsFragmentDoc:()=>Pa,SubscriptionAddonSortFields:()=>Ut,SubscriptionBillingCycleAnchor:()=>Mt,SubscriptionCancelReason:()=>Lt,SubscriptionCancellationAction:()=>jt,SubscriptionCancellationTime:()=>Vt,SubscriptionCouponStatus:()=>Bt,SubscriptionDecisionStrategy:()=>Gt,SubscriptionEndSetup:()=>qt,SubscriptionEntitlementSortFields:()=>$t,SubscriptionFragmentDoc:()=>Yo,SubscriptionFutureUpdateDataFragmentDoc:()=>Wo,SubscriptionInvoiceBillingReason:()=>Qt,SubscriptionInvoiceFragmentDoc:()=>No,SubscriptionInvoicePreviewFragmentDoc:()=>ra,SubscriptionInvoiceStatus:()=>Ht,SubscriptionMigrationTaskSortFields:()=>zt,SubscriptionMigrationTime:()=>Wt,SubscriptionPreviewFragmentDoc:()=>Xo,SubscriptionPreviewInvoiceFragmentDoc:()=>ta,SubscriptionPreviewV2FragmentDoc:()=>na,SubscriptionPriceSortFields:()=>Zt,SubscriptionProrationBehavior:()=>Yt,SubscriptionQueryFragmentDoc:()=>Co,SubscriptionQuerySortFields:()=>Kt,SubscriptionScheduleStatus:()=>Jt,SubscriptionScheduleType:()=>Xt,SubscriptionScheduledUpdateDataFragmentDoc:()=>zo,SubscriptionStartSetup:()=>en,SubscriptionStatus:()=>tn,SubscriptionTrialConfigurationFragmentDoc:()=>Zo,SubscriptionUpdateUsageCutoffBehavior:()=>nn,SyncStatus:()=>rn,TaskStatus:()=>on,TaskType:()=>an,ThresholdType:()=>sn,TiersMode:()=>un,TotalPriceFragmentDoc:()=>xo,TransferSubscriptionDocument:()=>Ms,TransferSubscriptionToResourceDocument:()=>js,TrialEndBehavior:()=>cn,TrialPeriodUnits:()=>ln,TypographyConfigurationFragmentDoc:()=>Sa,UnarchiveCustomerDocument:()=>Us,UnitTransformationRound:()=>pn,UnlinkPromotionalEntitlementsGroupDocument:()=>qs,UpdateCustomerDocument:()=>fs,UpdateSubscriptionDocument:()=>Es,UsageHistoryFragmentDoc:()=>Ba,UsageHistoryV2FragmentDoc:()=>Ga,UsageMarkerType:()=>dn,UsageMeasurementSortFields:()=>fn,UsageUpdateBehavior:()=>hn,UsageUpdatedFragmentDoc:()=>ua,UsageUpdatedV2PayloadFragmentDoc:()=>us,UsageV2FragmentDoc:()=>ss,VendorIdentifier:()=>mn,VendorType:()=>gn,VoidCreditGrantDocument:()=>Qs,WeeklyAccordingTo:()=>yn,WidgetType:()=>vn,YearlyAccordingTo:()=>bn,ZuoraCheckoutCredentialsFragmentDoc:()=>Da,getSdk:()=>Pu});var i={};n.r(i),n.d(i,{i:()=>ku,m:()=>Mu});var o={};n.r(o),n.d(o,{jJ:()=>ju,Hk:()=>Lu,dt:()=>Qu,P_:()=>qu,OK:()=>Gu});var a={};n.r(a),n.d(a,{uiS:()=>jh,sZY:()=>_h,sf5:()=>Ch,RCf:()=>Th,zVU:()=>xh,VsH:()=>Sh,ctk:()=>Ih,qCH:()=>Uh,$X:()=>Lh});var s={};n.r(s),n.d(s,{FunctionToString:()=>Mg,InboundFilters:()=>Bg,LinkedErrors:()=>Zg});var u={};n.r(u),n.d(u,{Breadcrumbs:()=>ev,Dedupe:()=>av,GlobalHandlers:()=>Ey,HttpContext:()=>iv,LinkedErrors:()=>nv,TryCatch:()=>wy});var c={};n.r(c),n.d(c,{F:()=>pb});var l=n(5455),p=n.n(l),d=n(8537),f=n.n(d),h=function(e,t){return h=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])},h(e,t)};function m(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}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var g=function(){return g=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},g.apply(this,arguments)};function y(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 v(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})}function b(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function E(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;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))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var _=n(5390),I=new Map,S=new Map,T=!0,C=!1;function w(e){return e.replace(/[\s,]+/g," ").trim()}function P(e){var t,n,r,i=w(e);if(!I.has(i)){var o=(0,_.Qc)(e,{experimentalFragmentVariables:C,allowLegacyFragmentVariables:C});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");I.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=o,n=new Set,r=[],t.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=w((a=e.loc).source.body.substring(a.start,a.end)),o=S.get(t);o&&!o.has(i)?T&&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"):o||S.set(t,o=new Set),o.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e);var a}),g(g({},t),{definitions:r}))))}return I.get(i)}function D(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]}),P(r)}var A,O=D;(A=D||(D={})).gql=O,A.resetCaches=function(){I.clear(),S.clear()},A.disableFragmentWarnings=function(){T=!1},A.enableExperimentalFragmentVariables=function(){C=!0},A.disableExperimentalFragmentVariables=function(){C=!1},D.default=D;const N=D;var R,F,k,x,U,M,L,j,V,B,G,q,$,Q,H,z,W,Z,Y,K,J,X,ee,te,ne,re,ie,oe,ae,se,ue,ce,le,pe,de,fe,he,me,ge,ye,ve,be,Ee,_e,Ie,Se,Te,Ce,we,Pe,De,Ae,Oe,Ne,Re,Fe,ke,xe,Ue,Me,Le,je,Ve,Be,Ge,qe,$e,Qe,He,ze,We,Ze,Ye,Ke,Je,Xe,et,tt,nt,rt,it,ot,at,st,ut,ct,lt,pt,dt,ft,ht,mt,gt,yt,vt,bt,Et,_t,It,St,Tt,Ct,wt,Pt,Dt,At,Ot,Nt,Rt,Ft,kt,xt,Ut,Mt,Lt,jt,Vt,Bt,Gt,qt,$t,Qt,Ht,zt,Wt,Zt,Yt,Kt,Jt,Xt,en,tn,nn,rn,on,an,sn,un,cn,ln,pn,dn,fn,hn,mn,gn,yn,vn,bn,En,_n=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},In=function(){return In=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},In.apply(this,arguments)};!function(e){e.BudgetExceeded="BudgetExceeded",e.CustomerIsArchived="CustomerIsArchived",e.CustomerNotFound="CustomerNotFound",e.CustomerResourceNotFound="CustomerResourceNotFound",e.EntitlementNotFound="EntitlementNotFound",e.FeatureNotFound="FeatureNotFound",e.FeatureTypeMismatch="FeatureTypeMismatch",e.InsufficientCredits="InsufficientCredits",e.NoActiveSubscription="NoActiveSubscription",e.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",e.RequestedUsageExceedingLimit="RequestedUsageExceedingLimit",e.RequestedValuesMismatch="RequestedValuesMismatch",e.Revoked="Revoked",e.Unknown="Unknown"}(R||(R={})),function(e){e.AuthorizedDomain="AUTHORIZED_DOMAIN",e.InviteOnly="INVITE_ONLY",e.Sso="SSO"}(F||(F={})),function(e){e.Member="MEMBER",e.Owner="OWNER"}(k||(k={})),function(e){e.Active="ACTIVE",e.Blocked="BLOCKED"}(x||(x={})),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"}(U||(U={})),function(e){e.Avg="AVG",e.Count="COUNT",e.Max="MAX",e.Min="MIN",e.Sum="SUM",e.Unique="UNIQUE"}(M||(M={})),function(e){e.Center="CENTER",e.Left="LEFT",e.Right="RIGHT"}(L||(L={})),function(e){e.Read="READ",e.Write="WRITE"}(j||(j={})),function(e){e.ApiKey="API_KEY",e.Coupon="COUPON",e.Customer="CUSTOMER",e.Environment="ENVIRONMENT",e.EventQueue="EVENT_QUEUE",e.Subscription="SUBSCRIPTION"}(V||(V={})),function(e){e.Id="id"}(B||(B={})),function(e){e.Client="CLIENT",e.Salesforce="SALESFORCE",e.Scoped="SCOPED",e.Server="SERVER",e.Workflow="WORKFLOW"}(G||(G={})),function(e){e.Both="BOTH",e.Individual="INDIVIDUAL",e.Organization="ORGANIZATION"}(q||(q={})),function(e){e.StartOfTheMonth="START_OF_THE_MONTH",e.SubscriptionsConsolidateBilling="SUBSCRIPTIONS_CONSOLIDATE_BILLING",e.SubscriptionStart="SUBSCRIPTION_START"}($||($={})),function(e){e.OneOff="ONE_OFF",e.Recurring="RECURRING"}(Q||(Q={})),function(e){e.CreditBased="CREDIT_BASED",e.FlatFee="FLAT_FEE",e.MinimumSpend="MINIMUM_SPEND",e.PerUnit="PER_UNIT",e.UsageBased="USAGE_BASED"}(H||(H={})),function(e){e.Annually="ANNUALLY",e.Monthly="MONTHLY"}(z||(z={})),function(e){e.Stripe="STRIPE",e.Zuora="ZUORA"}(W||(W={})),function(e){e.Added="ADDED",e.Deleted="DELETED",e.Modified="MODIFIED",e.Reordered="REORDERED"}(Z||(Z={})),function(e){e.Credit="CREDIT",e.Feature="FEATURE"}(Y||(Y={})),function(e){e.Contains="CONTAINS",e.EndsWith="ENDS_WITH",e.Equals="EQUALS",e.GreaterThan="GREATER_THAN",e.GreaterThanOrEqual="GREATER_THAN_OR_EQUAL",e.In="IN",e.IsNotNull="IS_NOT_NULL",e.IsNull="IS_NULL",e.LessThan="LESS_THAN",e.LessThanOrEqual="LESS_THAN_OR_EQUAL",e.NotEquals="NOT_EQUALS",e.StartsWith="STARTS_WITH"}(K||(K={})),function(e){e.Active="ACTIVE",e.Canceled="CANCELED",e.Draft="DRAFT",e.EndBilling="END_BILLING"}(J||(J={})),function(e){e.Enterprise="ENTERPRISE",e.Referral="REFERRAL",e.Reseller="RESELLER",e.Subscription="SUBSCRIPTION"}(X||(X={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.EnvironmentId="environmentId",e.Id="id",e.Name="name",e.RefId="refId",e.Source="source",e.Status="status",e.Type="type",e.UpdatedAt="updatedAt"}(ee||(ee={})),function(e){e.Stigg="STIGG",e.StiggAdhoc="STIGG_ADHOC",e.Stripe="STRIPE"}(te||(te={})),function(e){e.Active="ACTIVE",e.Archived="ARCHIVED"}(ne||(ne={})),function(e){e.Fixed="FIXED",e.Percentage="PERCENTAGE"}(re||(re={})),function(e){e.Month="MONTH",e.Year="YEAR"}(ie||(ie={})),function(e){e.BeginningOfBillingPeriod="BEGINNING_OF_BILLING_PERIOD",e.Monthly="MONTHLY"}(oe||(oe={})),function(e){e.Manual="MANUAL",e.Other="OTHER"}(ae||(ae={})),function(e){e.Canceled="CANCELED",e.Open="OPEN",e.Paid="PAID"}(se||(se={})),function(e){e.AddonEntitlement="ADDON_ENTITLEMENT",e.PlanEntitlement="PLAN_ENTITLEMENT",e.Price="PRICE"}(ue||(ue={})),function(e){e.Active="ACTIVE",e.Expired="EXPIRED",e.PaymentPending="PAYMENT_PENDING",e.Scheduled="SCHEDULED",e.Voided="VOIDED"}(ce||(ce={})),function(e){e.Overdraft="OVERDRAFT",e.Paid="PAID",e.Promotional="PROMOTIONAL",e.Recurring="RECURRING"}(le||(le={})),function(e){e.Paid="PAID",e.Promotional="PROMOTIONAL"}(pe||(pe={})),function(e){e.CreditsConsumed="CREDITS_CONSUMED",e.CreditsConsumptionTransferSource="CREDITS_CONSUMPTION_TRANSFER_SOURCE",e.CreditsConsumptionTransferTarget="CREDITS_CONSUMPTION_TRANSFER_TARGET",e.CreditsExpired="CREDITS_EXPIRED",e.CreditsGranted="CREDITS_GRANTED",e.CreditsUpdated="CREDITS_UPDATED",e.CreditsVoided="CREDITS_VOIDED"}(de||(de={})),function(e){e.LastDay="LAST_DAY",e.LastMonth="LAST_MONTH",e.LastWeek="LAST_WEEK",e.LastYear="LAST_YEAR"}(fe||(fe={})),function(e){e.Aed="AED",e.All="ALL",e.Amd="AMD",e.Ang="ANG",e.Aud="AUD",e.Awg="AWG",e.Azn="AZN",e.Bam="BAM",e.Bbd="BBD",e.Bdt="BDT",e.Bgn="BGN",e.Bif="BIF",e.Bmd="BMD",e.Bnd="BND",e.Brl="BRL",e.Bsd="BSD",e.Bwp="BWP",e.Byn="BYN",e.Bzd="BZD",e.Cad="CAD",e.Cdf="CDF",e.Chf="CHF",e.Clp="CLP",e.Cny="CNY",e.Czk="CZK",e.Djf="DJF",e.Dkk="DKK",e.Dop="DOP",e.Dzd="DZD",e.Egp="EGP",e.Etb="ETB",e.Eur="EUR",e.Fjd="FJD",e.Gbp="GBP",e.Gel="GEL",e.Gip="GIP",e.Gmd="GMD",e.Gnf="GNF",e.Gyd="GYD",e.Hkd="HKD",e.Hrk="HRK",e.Htg="HTG",e.Idr="IDR",e.Ils="ILS",e.Inr="INR",e.Isk="ISK",e.Jmd="JMD",e.Jpy="JPY",e.Kes="KES",e.Kgs="KGS",e.Khr="KHR",e.Kmf="KMF",e.Krw="KRW",e.Kyd="KYD",e.Kzt="KZT",e.Lbp="LBP",e.Lkr="LKR",e.Lrd="LRD",e.Lsl="LSL",e.Mad="MAD",e.Mdl="MDL",e.Mga="MGA",e.Mkd="MKD",e.Mmk="MMK",e.Mnt="MNT",e.Mop="MOP",e.Mro="MRO",e.Mvr="MVR",e.Mwk="MWK",e.Mxn="MXN",e.Myr="MYR",e.Mzn="MZN",e.Nad="NAD",e.Ngn="NGN",e.Nok="NOK",e.Npr="NPR",e.Nzd="NZD",e.Pgk="PGK",e.Php="PHP",e.Pkr="PKR",e.Pln="PLN",e.Pyg="PYG",e.Qar="QAR",e.Ron="RON",e.Rsd="RSD",e.Rub="RUB",e.Rwf="RWF",e.Sar="SAR",e.Sbd="SBD",e.Scr="SCR",e.Sek="SEK",e.Sgd="SGD",e.Sle="SLE",e.Sll="SLL",e.Sos="SOS",e.Szl="SZL",e.Thb="THB",e.Tjs="TJS",e.Top="TOP",e.Try="TRY",e.Ttd="TTD",e.Tzs="TZS",e.Uah="UAH",e.Ugx="UGX",e.Usd="USD",e.Uzs="UZS",e.Vnd="VND",e.Vuv="VUV",e.Wst="WST",e.Xaf="XAF",e.Xcd="XCD",e.Xof="XOF",e.Xpf="XPF",e.Yer="YER",e.Zar="ZAR",e.Zmw="ZMW"}(he||(he={})),function(e){e.Active="ACTIVE",e.Archived="ARCHIVED"}(me||(me={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.ResourceId="resourceId"}(ge||(ge={})),function(e){e.AwsMarketplaceCustomerId="awsMarketplaceCustomerId",e.BillingId="billingId",e.CreatedAt="createdAt",e.CrmHubspotCompanyId="crmHubspotCompanyId",e.CrmHubspotCompanyUrl="crmHubspotCompanyUrl",e.CrmId="crmId",e.CustomerId="customerId",e.DeletedAt="deletedAt",e.Email="email",e.EnvironmentId="environmentId",e.Id="id",e.Name="name",e.RefId="refId",e.SalesforceId="salesforceId",e.SearchQuery="searchQuery",e.UpdatedAt="updatedAt"}(ye||(ye={})),function(e){e.BillingCycleAnchor="billingCycleAnchor",e.BillingId="billingId",e.CancelReason="cancelReason",e.CancellationDate="cancellationDate",e.CreatedAt="createdAt",e.CrmId="crmId",e.CrmLinkUrl="crmLinkUrl",e.CurrentBillingPeriodEnd="currentBillingPeriodEnd",e.CurrentBillingPeriodStart="currentBillingPeriodStart",e.CustomerId="customerId",e.EffectiveEndDate="effectiveEndDate",e.EndDate="endDate",e.EnvironmentId="environmentId",e.Id="id",e.OldBillingId="oldBillingId",e.PayingCustomerId="payingCustomerId",e.PaymentCollection="paymentCollection",e.PricingType="pricingType",e.RefId="refId",e.ResourceId="resourceId",e.SalesforceId="salesforceId",e.StartDate="startDate",e.Status="status",e.SubscriptionId="subscriptionId",e.TrialEndDate="trialEndDate"}(ve||(ve={})),function(e){e.Cancelled="CANCELLED",e.Failed="FAILED",e.Incomplete="INCOMPLETE",e.Pending="PENDING",e.Running="RUNNING",e.Succeeded="SUCCEEDED"}(be||(be={})),function(e){e.Clickhouse="CLICKHOUSE",e.Postgres="POSTGRES"}(Ee||(Ee={})),function(e){e.CeoOrFounder="CEO_OR_FOUNDER",e.Engineering="ENGINEERING",e.Growth="GROWTH",e.Marketing="MARKETING",e.Monetization="MONETIZATION",e.Other="OTHER",e.Product="PRODUCT"}(_e||(_e={})),function(e){e.Forever="FOREVER",e.Once="ONCE",e.Repeating="REPEATING"}(Ie||(Ie={})),function(e){e.Fixed="FIXED",e.Percentage="PERCENTAGE"}(Se||(Se={})),function(e){e.Increment="Increment",e.Override="Override"}(Te||(Te={})),function(e){e.Day="DAY",e.Hour="HOUR",e.Month="MONTH",e.Week="WEEK",e.Year="YEAR"}(Ce||(Ce={})),function(e){e.Credit="CREDIT",e.Feature="FEATURE"}(we||(we={})),function(e){e.CustomerIsArchived="CustomerIsArchived",e.CustomerNotFound="CustomerNotFound",e.NoActiveSubscription="NoActiveSubscription"}(Pe||(Pe={})),function(e){e.BlackList="BLACK_LIST",e.WhiteList="WHITE_LIST"}(De||(De={})),function(e){e.Admin="ADMIN",e.None="NONE",e.Support="SUPPORT",e.Viewer="VIEWER"}(Ae||(Ae={})),function(e){e.Failed="FAILED",e.Idle="IDLE",e.InProgress="IN_PROGRESS"}(Oe||(Oe={})),function(e){e.Done="DONE",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.NotProvisioned="NOT_PROVISIONED"}(Ne||(Ne={})),function(e){e.CreatedAt="createdAt",e.DisplayName="displayName",e.Id="id",e.PermanentDeletionDate="permanentDeletionDate",e.Slug="slug"}(Re||(Re={})),function(e){e.Development="DEVELOPMENT",e.Production="PRODUCTION",e.Sandbox="SANDBOX"}(Fe||(Fe={})),function(e){e.AccessDeniedError="AccessDeniedError",e.AccountNotFoundError="AccountNotFoundError",e.AddonDependencyMissingError="AddonDependencyMissingError",e.AddonHasToHavePriceError="AddonHasToHavePriceError",e.AddonIsCompatibleWithGroup="AddonIsCompatibleWithGroup",e.AddonIsCompatibleWithPlan="AddonIsCompatibleWithPlan",e.AddonNotFound="AddonNotFound",e.AddonQuantityExceedsLimitError="AddonQuantityExceedsLimitError",e.AddonWithDraftCannotBeDeletedError="AddonWithDraftCannotBeDeletedError",e.AddonsNotFound="AddonsNotFound",e.AmountTooLarge="AmountTooLarge",e.ApiKeyExpired="ApiKeyExpired",e.ApiKeyHasExpiry="ApiKeyHasExpiry",e.ApiKeyNotFound="ApiKeyNotFound",e.ArchivedCouponCantBeApplied="ArchivedCouponCantBeApplied",e.AuthCustomerMismatch="AuthCustomerMismatch",e.AuthCustomerReadonly="AuthCustomerReadonly",e.AuthorizationServiceError="AuthorizationServiceError",e.AwsMarketplaceIntegrationError="AwsMarketplaceIntegrationError",e.AwsMarketplaceIntegrationValidationError="AwsMarketplaceIntegrationValidationError",e.BadUserInput="BadUserInput",e.BillingIntegrationAlreadyExistsError="BillingIntegrationAlreadyExistsError",e.BillingIntegrationMissing="BillingIntegrationMissing",e.BillingInvoiceStatusError="BillingInvoiceStatusError",e.BillingPeriodMissingError="BillingPeriodMissingError",e.CanNotUpdateEntitlementsFeatureGroup="CanNotUpdateEntitlementsFeatureGroup",e.CannotAddOverrideEntitlementToPlan="CannotAddOverrideEntitlementToPlan",e.CannotArchiveFeatureError="CannotArchiveFeatureError",e.CannotArchiveFeatureGroupError="CannotArchiveFeatureGroupError",e.CannotArchiveProductError="CannotArchiveProductError",e.CannotChangeBillingIntegration="CannotChangeBillingIntegration",e.CannotDeleteCustomerError="CannotDeleteCustomerError",e.CannotDeleteDefaultIntegration="CannotDeleteDefaultIntegration",e.CannotDeleteFeatureError="CannotDeleteFeatureError",e.CannotEditPackageInNonDraftMode="CannotEditPackageInNonDraftMode",e.CannotRemovePaymentMethodFromCustomerError="CannotRemovePaymentMethodFromCustomerError",e.CannotReportUsageForEntitlementWithMeterError="CannotReportUsageForEntitlementWithMeterError",e.CannotUnarchiveProductError="CannotUnarchiveProductError",e.CannotUpdateExpireAtForExpiredCreditGrantError="CannotUpdateExpireAtForExpiredCreditGrantError",e.CannotUpdateUnitTransformationError="CannotUpdateUnitTransformationError",e.CannotUpsertToPackageThatHasDraft="CannotUpsertToPackageThatHasDraft",e.ChangingPayingCustomerIsNotSupportedError="ChangingPayingCustomerIsNotSupportedError",e.CheckoutIsNotSupported="CheckoutIsNotSupported",e.CouponNotFound="CouponNotFound",e.CreditGrantAlreadyVoided="CreditGrantAlreadyVoided",e.CreditGrantCannotBeVoided="CreditGrantCannotBeVoided",e.CreditGrantNotFound="CreditGrantNotFound",e.CustomCurrencyNotFound="CustomCurrencyNotFound",e.CustomerAlreadyHaveCustomerCoupon="CustomerAlreadyHaveCustomerCoupon",e.CustomerAlreadyUsesCoupon="CustomerAlreadyUsesCoupon",e.CustomerHasNoEmailAddress="CustomerHasNoEmailAddress",e.CustomerNoBillingId="CustomerNoBillingId",e.CustomerNotFound="CustomerNotFound",e.CustomerResourceNotFound="CustomerResourceNotFound",e.DataExportIntegrationError="DataExportIntegrationError",e.DeprecatedEstimateSubscriptionError="DeprecatedEstimateSubscriptionError",e.DowngradeBillingPeriodNotSupportedError="DowngradeBillingPeriodNotSupportedError",e.DraftAddonCantBeArchived="DraftAddonCantBeArchived",e.DraftAlreadyExists="DraftAlreadyExists",e.DraftPlanCantBeArchived="DraftPlanCantBeArchived",e.DuplicateAddonProvisionedError="DuplicateAddonProvisionedError",e.DuplicateIntegrationNotAllowed="DuplicateIntegrationNotAllowed",e.DuplicateProductValidationError="DuplicateProductValidationError",e.DuplicatedEntityNotAllowed="DuplicatedEntityNotAllowed",e.EditAllowedOnDraftPackageOnlyError="EditAllowedOnDraftPackageOnlyError",e.EntitlementBelongsToFeatureGroupError="EntitlementBelongsToFeatureGroupError",e.EntitlementLimitExceededError="EntitlementLimitExceededError",e.EntitlementUsageOutOfRangeError="EntitlementUsageOutOfRangeError",e.EntitlementsMustBelongToSamePackage="EntitlementsMustBelongToSamePackage",e.EntityIdDifferentFromRefIdError="EntityIdDifferentFromRefIdError",e.EntityIsArchivedError="EntityIsArchivedError",e.EnvironmentMissing="EnvironmentMissing",e.ExperimentAlreadyRunning="ExperimentAlreadyRunning",e.ExperimentNotFoundError="ExperimentNotFoundError",e.ExperimentStatusError="ExperimentStatusError",e.ExpireAtMustBeLaterThanEffectiveAtError="ExpireAtMustBeLaterThanEffectiveAtError",e.FailedToCreateCheckoutSessionError="FailedToCreateCheckoutSessionError",e.FailedToImportCustomer="FailedToImportCustomer",e.FailedToImportSubscriptions="FailedToImportSubscriptions",e.FailedToResolveBillingIntegration="FailedToResolveBillingIntegration",e.FeatureConfigurationExceededLimitError="FeatureConfigurationExceededLimitError",e.FeatureGroupMissingFeaturesError="FeatureGroupMissingFeaturesError",e.FeatureGroupNotFoundError="FeatureGroupNotFoundError",e.FeatureNotBelongToFeatureGroupError="FeatureNotBelongToFeatureGroupError",e.FeatureNotFound="FeatureNotFound",e.FetchAllCountriesPricesNotAllowed="FetchAllCountriesPricesNotAllowed",e.FreePlanCantHaveCompatiblePackageGroupError="FreePlanCantHaveCompatiblePackageGroupError",e.FutureUpdateNotFound="FutureUpdateNotFound",e.GovernanceNotEnabled="GovernanceNotEnabled",e.GraphQlAliasesLimitExceeded="GraphQLAliasesLimitExceeded",e.GraphQlBatchedOperationsLimitExceeded="GraphQLBatchedOperationsLimitExceeded",e.GraphQlUnsupportedDirective="GraphQLUnsupportedDirective",e.HubspotIntegrationError="HubspotIntegrationError",e.IdentityForbidden="IdentityForbidden",e.ImportAlreadyInProgress="ImportAlreadyInProgress",e.ImportSubscriptionsBulkError="ImportSubscriptionsBulkError",e.IncompatibleSubscriptionAddon="IncompatibleSubscriptionAddon",e.InitStripePaymentMethodError="InitStripePaymentMethodError",e.IntegrationNotFound="IntegrationNotFound",e.IntegrationValidationError="IntegrationValidationError",e.IntegrityViolation="IntegrityViolation",e.InvalidAddressError="InvalidAddressError",e.InvalidArgumentError="InvalidArgumentError",e.InvalidCancellationDate="InvalidCancellationDate",e.InvalidDoggoSignatureError="InvalidDoggoSignatureError",e.InvalidEntitlementResetPeriod="InvalidEntitlementResetPeriod",e.InvalidMemberDelete="InvalidMemberDelete",e.InvalidMetadataError="InvalidMetadataError",e.InvalidQuantity="InvalidQuantity",e.InvalidReceivedSignatureError="InvalidReceivedSignatureError",e.InvalidSubscriptionStatus="InvalidSubscriptionStatus",e.InvalidTaxId="InvalidTaxId",e.InvalidUpdatePriceUnitAmountError="InvalidUpdatePriceUnitAmountError",e.InvoicePreviewNotAvailableForDraftContract="InvoicePreviewNotAvailableForDraftContract",e.MemberInvitationError="MemberInvitationError",e.MemberNotFound="MemberNotFound",e.MergeEnvironmentValidationError="MergeEnvironmentValidationError",e.MeterMustBeAssociatedToMeteredFeature="MeterMustBeAssociatedToMeteredFeature",e.MeteringNotAvailableForFeatureType="MeteringNotAvailableForFeatureType",e.MissingBillingInvoiceError="MissingBillingInvoiceError",e.MissingEntityIdError="MissingEntityIdError",e.MultiSubscriptionCantBeAutoCancellationSourceError="MultiSubscriptionCantBeAutoCancellationSourceError",e.NoActiveSubscriptionForCustomer="NoActiveSubscriptionForCustomer",e.NoDraftOfferFound="NoDraftOfferFound",e.NoFeatureEntitlementError="NoFeatureEntitlementError",e.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",e.NoProductsAvailable="NoProductsAvailable",e.ObjectAlreadyBeingUsedByAnotherRequestError="ObjectAlreadyBeingUsedByAnotherRequestError",e.OfferAlreadyExists="OfferAlreadyExists",e.OfferNotFound="OfferNotFound",e.OperationNotAllowedDuringInProgressExperiment="OperationNotAllowedDuringInProgressExperiment",e.OperationTimeout="OperationTimeout",e.PackageAlreadyPublished="PackageAlreadyPublished",e.PackageGroupMinItemsError="PackageGroupMinItemsError",e.PackageGroupNotFound="PackageGroupNotFound",e.PackagePricingTypeNotSet="PackagePricingTypeNotSet",e.PaymentMethodNotFoundError="PaymentMethodNotFoundError",e.PlanCannotBePublishWhenBasePlanIsDraft="PlanCannotBePublishWhenBasePlanIsDraft",e.PlanCannotBePublishWhenCompatibleAddonIsDraft="PlanCannotBePublishWhenCompatibleAddonIsDraft",e.PlanIsUsedAsDefaultStartPlan="PlanIsUsedAsDefaultStartPlan",e.PlanIsUsedAsDowngradePlan="PlanIsUsedAsDowngradePlan",e.PlanNotFound="PlanNotFound",e.PlanWithChildCantBeDeleted="PlanWithChildCantBeDeleted",e.PlansCircularDependencyError="PlansCircularDependencyError",e.PreparePaymentMethodFormError="PreparePaymentMethodFormError",e.PriceNotFound="PriceNotFound",e.PricingModelNotSupportedByBillingIntegration="PricingModelNotSupportedByBillingIntegration",e.ProductNotFoundError="ProductNotFoundError",e.ProductNotPublishedError="ProductNotPublishedError",e.PromotionCodeCustomerNotFirstPurchase="PromotionCodeCustomerNotFirstPurchase",e.PromotionCodeMaxRedemptionsReached="PromotionCodeMaxRedemptionsReached",e.PromotionCodeMinimumAmountNotReached="PromotionCodeMinimumAmountNotReached",e.PromotionCodeNotActive="PromotionCodeNotActive",e.PromotionCodeNotForCustomer="PromotionCodeNotForCustomer",e.PromotionCodeNotFound="PromotionCodeNotFound",e.PromotionalEntitlementNotFoundError="PromotionalEntitlementNotFoundError",e.RateLimitExceeded="RateLimitExceeded",e.RecalculateEntitlementsError="RecalculateEntitlementsError",e.RequiredSsoAuthenticationError="RequiredSsoAuthenticationError",e.ResyncAlreadyInProgress="ResyncAlreadyInProgress",e.ScheduledMigrationAlreadyExistsError="ScheduledMigrationAlreadyExistsError",e.SchedulingAtEndOfBillingPeriod="SchedulingAtEndOfBillingPeriod",e.SelectedBillingModelDoesntMatchImportedItemError="SelectedBillingModelDoesntMatchImportedItemError",e.SingleSubscriptionCantBeAutoCancellationTargetError="SingleSubscriptionCantBeAutoCancellationTargetError",e.StripeCustomerIsDeleted="StripeCustomerIsDeleted",e.StripeError="StripeError",e.SubscriptionAlreadyCanceledOrExpired="SubscriptionAlreadyCanceledOrExpired",e.SubscriptionAlreadyOnLatestPlanError="SubscriptionAlreadyOnLatestPlanError",e.SubscriptionDoesNotHaveBillingPeriod="SubscriptionDoesNotHaveBillingPeriod",e.SubscriptionMustHaveSinglePlanError="SubscriptionMustHaveSinglePlanError",e.SubscriptionNoBillingId="SubscriptionNoBillingId",e.SubscriptionNotFound="SubscriptionNotFound",e.TooManyCustomCurrencies="TooManyCustomCurrencies",e.TooManySubscriptionsPerCustomer="TooManySubscriptionsPerCustomer",e.TrialMustBeCancelledImmediately="TrialMustBeCancelledImmediately",e.UnPublishedPackage="UnPublishedPackage",e.Unauthenticated="Unauthenticated",e.UnexpectedError="UnexpectedError",e.UnsupportedFeatureType="UnsupportedFeatureType",e.UnsupportedParameter="UnsupportedParameter",e.UnsupportedSubscriptionScheduleType="UnsupportedSubscriptionScheduleType",e.UnsupportedVendorIdentifier="UnsupportedVendorIdentifier",e.UsageMeasurementDiffOutOfRangeError="UsageMeasurementDiffOutOfRangeError",e.VendorIsNotSupported="VendorIsNotSupported",e.VersionExceedsMaxValueError="VersionExceedsMaxValueError",e.WorkflowTriggerNotFound="WorkflowTriggerNotFound"}(ke||(ke={})),function(e){e.FeatureNotCreditBased="FEATURE_NOT_CREDIT_BASED",e.FeatureNotFound="FEATURE_NOT_FOUND",e.ResourceScopedSubscriptionExists="RESOURCE_SCOPED_SUBSCRIPTION_EXISTS"}(xe||(xe={})),function(e){e.UnsupportedAggregation="UNSUPPORTED_AGGREGATION"}(Ue||(Ue={})),function(e){e.AppCustomer="APP_CUSTOMER",e.AppPublic="APP_PUBLIC",e.AppServer="APP_SERVER",e.Aws="AWS",e.Import="IMPORT",e.Migration="MIGRATION",e.Salesforce="SALESFORCE",e.Scheduler="SCHEDULER",e.ScopedKey="SCOPED_KEY",e.Service="SERVICE",e.Stripe="STRIPE",e.Support="SUPPORT",e.System="SYSTEM",e.User="USER",e.Workflow="WORKFLOW"}(Me||(Me={})),function(e){e.Addon="ADDON",e.Coupon="COUPON",e.Credit="CREDIT",e.Customer="CUSTOMER",e.CustomCurrency="CUSTOM_CURRENCY",e.Entitlement="ENTITLEMENT",e.Feature="FEATURE",e.FeatureGroup="FEATURE_GROUP",e.Import="IMPORT",e.Measurement="MEASUREMENT",e.Package="PACKAGE",e.PackageGroup="PACKAGE_GROUP",e.Plan="PLAN",e.Product="PRODUCT",e.PromotionalEntitlement="PROMOTIONAL_ENTITLEMENT",e.Subscription="SUBSCRIPTION"}(Le||(Le={})),function(e){e.CreatedAt="createdAt",e.EntityId="entityId",e.EntityType="entityType",e.EnvironmentId="environmentId",e.EventLogType="eventLogType",e.Id="id",e.ParentEntityId="parentEntityId",e.TraceId="traceId"}(je||(je={})),function(e){e.AddonCreated="ADDON_CREATED",e.AddonDeleted="ADDON_DELETED",e.AddonUpdated="ADDON_UPDATED",e.ApiKeyCreated="API_KEY_CREATED",e.ApiKeyRevoked="API_KEY_REVOKED",e.ApiKeyRotated="API_KEY_ROTATED",e.ApiKeyUpdated="API_KEY_UPDATED",e.AutomaticRechargeConfigurationChanged="AUTOMATIC_RECHARGE_CONFIGURATION_CHANGED",e.AutomaticRechargeOperationAttempted="AUTOMATIC_RECHARGE_OPERATION_ATTEMPTED",e.CouponArchived="COUPON_ARCHIVED",e.CouponCreated="COUPON_CREATED",e.CouponUpdated="COUPON_UPDATED",e.CreateSubscriptionFailed="CREATE_SUBSCRIPTION_FAILED",e.CreditsAutomaticRechargeLimitExceeded="CREDITS_AUTOMATIC_RECHARGE_LIMIT_EXCEEDED",e.CreditsBalanceDepletedOld="CREDITS_BALANCE_DEPLETED_OLD",e.CreditsBalanceLowOld="CREDITS_BALANCE_LOW_OLD",e.CreditsGrantBalanceLowOld="CREDITS_GRANT_BALANCE_LOW_OLD",e.CreditsGrantDepletedOld="CREDITS_GRANT_DEPLETED_OLD",e.CreditsGrantExpiredOld="CREDITS_GRANT_EXPIRED_OLD",e.CreditsGrantGrantedOld="CREDITS_GRANT_GRANTED_OLD",e.CreditsGrantUpdatedOld="CREDITS_GRANT_UPDATED_OLD",e.CreditBalanceDepleted="CREDIT_BALANCE_DEPLETED",e.CreditBalanceLow="CREDIT_BALANCE_LOW",e.CreditBalanceUpdated="CREDIT_BALANCE_UPDATED",e.CreditGrantBalanceDepleted="CREDIT_GRANT_BALANCE_DEPLETED",e.CreditGrantBalanceLow="CREDIT_GRANT_BALANCE_LOW",e.CreditGrantCreated="CREDIT_GRANT_CREATED",e.CreditGrantDepleted="CREDIT_GRANT_DEPLETED",e.CreditGrantExpired="CREDIT_GRANT_EXPIRED",e.CreditGrantProcessCompleted="CREDIT_GRANT_PROCESS_COMPLETED",e.CreditGrantUpdated="CREDIT_GRANT_UPDATED",e.CreditGrantVoided="CREDIT_GRANT_VOIDED",e.CustomerCreated="CUSTOMER_CREATED",e.CustomerDeleted="CUSTOMER_DELETED",e.CustomerEntitlementCalculationTriggered="CUSTOMER_ENTITLEMENT_CALCULATION_TRIGGERED",e.CustomerPaymentFailed="CUSTOMER_PAYMENT_FAILED",e.CustomerResourceEntitlementCalculationTriggered="CUSTOMER_RESOURCE_ENTITLEMENT_CALCULATION_TRIGGERED",e.CustomerUpdated="CUSTOMER_UPDATED",e.CustomCurrencyArchived="CUSTOM_CURRENCY_ARCHIVED",e.CustomCurrencyCreated="CUSTOM_CURRENCY_CREATED",e.CustomCurrencyUnarchived="CUSTOM_CURRENCY_UNARCHIVED",e.CustomCurrencyUpdated="CUSTOM_CURRENCY_UPDATED",e.DataExportSyncFailed="DATA_EXPORT_SYNC_FAILED",e.EdgeApiClientConfigurationDataResync="EDGE_API_CLIENT_CONFIGURATION_DATA_RESYNC",e.EdgeApiCustomerDataResync="EDGE_API_CUSTOMER_DATA_RESYNC",e.EdgeApiCustomCurrencyCacheDataResync="EDGE_API_CUSTOM_CURRENCY_CACHE_DATA_RESYNC",e.EdgeApiDataResync="EDGE_API_DATA_RESYNC",e.EdgeApiDoggoResync="EDGE_API_DOGGO_RESYNC",e.EdgeApiPackageEntitlementsDataResync="EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC",e.EdgeApiPlanCacheDataResync="EDGE_API_PLAN_CACHE_DATA_RESYNC",e.EdgeApiProductCacheDataResync="EDGE_API_PRODUCT_CACHE_DATA_RESYNC",e.EdgeApiSubscriptionsDataResync="EDGE_API_SUBSCRIPTIONS_DATA_RESYNC",e.EntitlementsUpdated="ENTITLEMENTS_UPDATED",e.EntitlementDenied="ENTITLEMENT_DENIED",e.EntitlementGranted="ENTITLEMENT_GRANTED",e.EntitlementRequested="ENTITLEMENT_REQUESTED",e.EntitlementUsageExceeded="ENTITLEMENT_USAGE_EXCEEDED",e.EnvironmentDeleted="ENVIRONMENT_DELETED",e.FeatureArchived="FEATURE_ARCHIVED",e.FeatureCreated="FEATURE_CREATED",e.FeatureDeleted="FEATURE_DELETED",e.FeatureGroupArchived="FEATURE_GROUP_ARCHIVED",e.FeatureGroupCreated="FEATURE_GROUP_CREATED",e.FeatureGroupUnArchived="FEATURE_GROUP_UN_ARCHIVED",e.FeatureGroupUpdated="FEATURE_GROUP_UPDATED",e.FeatureUpdated="FEATURE_UPDATED",e.ImportIntegrationCatalogTriggered="IMPORT_INTEGRATION_CATALOG_TRIGGERED",e.ImportIntegrationCustomersTriggered="IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED",e.ImportSubscriptionsBulkTriggered="IMPORT_SUBSCRIPTIONS_BULK_TRIGGERED",e.MeasurementReported="MEASUREMENT_REPORTED",e.PackageGroupCreated="PACKAGE_GROUP_CREATED",e.PackageGroupUpdated="PACKAGE_GROUP_UPDATED",e.PackagePublished="PACKAGE_PUBLISHED",e.PlanCreated="PLAN_CREATED",e.PlanDeleted="PLAN_DELETED",e.PlanUpdated="PLAN_UPDATED",e.ProductCreated="PRODUCT_CREATED",e.ProductDeleted="PRODUCT_DELETED",e.ProductUnarchived="PRODUCT_UNARCHIVED",e.ProductUpdated="PRODUCT_UPDATED",e.PromotionalEntitlementEndsSoon="PROMOTIONAL_ENTITLEMENT_ENDS_SOON",e.PromotionalEntitlementExpired="PROMOTIONAL_ENTITLEMENT_EXPIRED",e.PromotionalEntitlementGranted="PROMOTIONAL_ENTITLEMENT_GRANTED",e.PromotionalEntitlementRevoked="PROMOTIONAL_ENTITLEMENT_REVOKED",e.PromotionalEntitlementUpdated="PROMOTIONAL_ENTITLEMENT_UPDATED",e.RecalculateEntitlementsTriggered="RECALCULATE_ENTITLEMENTS_TRIGGERED",e.ResyncIntegrationTriggered="RESYNC_INTEGRATION_TRIGGERED",e.StripeAppDrawerViewed="STRIPE_APP_DRAWER_VIEWED",e.SubscriptionsMigrated="SUBSCRIPTIONS_MIGRATED",e.SubscriptionsMigrationTriggered="SUBSCRIPTIONS_MIGRATION_TRIGGERED",e.SubscriptionBillingMonthEndsSoon="SUBSCRIPTION_BILLING_MONTH_ENDS_SOON",e.SubscriptionCanceled="SUBSCRIPTION_CANCELED",e.SubscriptionCreated="SUBSCRIPTION_CREATED",e.SubscriptionExpired="SUBSCRIPTION_EXPIRED",e.SubscriptionSpentLimitExceeded="SUBSCRIPTION_SPENT_LIMIT_EXCEEDED",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.SubscriptionUsageChargeTriggered="SUBSCRIPTION_USAGE_CHARGE_TRIGGERED",e.SubscriptionUsageUpdated="SUBSCRIPTION_USAGE_UPDATED",e.SyncFailed="SYNC_FAILED",e.WidgetConfigurationUpdated="WIDGET_CONFIGURATION_UPDATED"}(Ve||(Ve={})),function(e){e.Active="ACTIVE",e.Deprovisioning="DEPROVISIONING",e.Failed="FAILED",e.Provisioning="PROVISIONING"}(Be||(Be={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Name="name",e.ProductId="productId",e.RefId="refId",e.Status="status"}(Ge||(Ge={})),function(e){e.Completed="COMPLETED",e.Draft="DRAFT",e.InProgress="IN_PROGRESS"}(qe||(qe={})),function(e){e.CreatedAt="createdAt",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.FeatureGroupId="featureGroupId",e.Id="id",e.IsLatest="isLatest",e.Status="status",e.UpdatedAt="updatedAt",e.VersionNumber="versionNumber"}($e||($e={})),function(e){e.Archived="ARCHIVED",e.Published="PUBLISHED"}(Qe||(Qe={})),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"}(He||(He={})),function(e){e.Active="ACTIVE",e.New="NEW",e.Suspended="SUSPENDED"}(ze||(ze={})),function(e){e.Boolean="BOOLEAN",e.Enum="ENUM",e.Number="NUMBER"}(We||(We={})),function(e){e.Bold="BOLD",e.Normal="NORMAL"}(Ze||(Ze={})),function(e){e.OneMonth="OneMonth",e.OneYear="OneYear"}(Ye||(Ye={})),function(e){e.CreatedAt="createdAt",e.Endpoint="endpoint",e.EnvironmentId="environmentId",e.Id="id",e.Status="status"}(Ke||(Ke={})),function(e){e.Active="ACTIVE",e.Inactive="INACTIVE"}(Je||(Je={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.TaskType="taskType"}(Xe||(Xe={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.VendorIdentifier="vendorIdentifier",e.VendorType="vendorType"}(et||(et={})),function(e){e.AddonCharge="AddonCharge",e.BaseCharge="BaseCharge",e.InAdvanceCommitmentCharge="InAdvanceCommitmentCharge",e.MinimumSpendAdjustmentCharge="MinimumSpendAdjustmentCharge",e.MinimumSpendCharge="MinimumSpendCharge",e.Other="Other",e.OverageCharge="OverageCharge",e.PayAsYouGoCharge="PayAsYouGoCharge",e.TierCharge="TierCharge",e.ZeroAmountBaseCharge="ZeroAmountBaseCharge"}(tt||(tt={})),function(e){e.CreatedAt="createdAt",e.Email="email",e.Id="id"}(nt||(nt={})),function(e){e.Invited="INVITED",e.Registered="REGISTERED"}(rt||(rt={})),function(e){e.Completed="COMPLETED",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.Pending="PENDING"}(it||(it={})),function(e){e.Fluctuating="Fluctuating",e.Incremental="Incremental",e.None="None"}(ot||(ot={})),function(e){e.StartOfTheMonth="StartOfTheMonth",e.SubscriptionStart="SubscriptionStart"}(at||(at={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.IsDefault="isDefault",e.IsLatest="isLatest",e.OfferId="offerId",e.Status="status",e.Version="version"}(st||(st={})),function(e){e.Archived="ARCHIVED",e.Draft="DRAFT",e.Published="PUBLISHED"}(ut||(ut={})),function(e){e.Monthly="MONTHLY",e.OnSubscriptionRenewal="ON_SUBSCRIPTION_RENEWAL"}(ct||(ct={})),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"}(lt||(lt={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.PackageId="packageId",e.UpdatedAt="updatedAt"}(pt||(pt={})),function(e){e.CreatedAt="createdAt",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.IsLatest="isLatest",e.PackageGroupId="packageGroupId",e.ProductId="productId",e.Status="status",e.UpdatedAt="updatedAt",e.VersionNumber="versionNumber"}(dt||(dt={})),function(e){e.Archived="ARCHIVED",e.Draft="DRAFT",e.Published="PUBLISHED"}(ft||(ft={})),function(e){e.Archived="ARCHIVED",e.Draft="DRAFT",e.Published="PUBLISHED"}(ht||(ht={})),function(e){e.ActionRequired="ACTION_REQUIRED",e.Failed="FAILED",e.NotRequired="NOT_REQUIRED",e.Processing="PROCESSING"}(mt||(mt={})),function(e){e.Charge="CHARGE",e.Invoice="INVOICE",e.None="NONE"}(gt||(gt={})),function(e){e.Bank="BANK",e.Card="CARD",e.CashApp="CASH_APP"}(yt||(yt={})),function(e){e.Downgrade="DOWNGRADE",e.None="NONE",e.Upgrade="UPGRADE"}(vt||(vt={})),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"}(bt||(bt={})),function(e){e.BillingCadence="billingCadence",e.BillingId="billingId",e.BillingModel="billingModel",e.BillingPeriod="billingPeriod",e.CreatedAt="createdAt",e.Id="id",e.TiersMode="tiersMode"}(Et||(Et={})),function(e){e.Custom="CUSTOM",e.Free="FREE",e.Paid="PAID"}(_t||(_t={})),function(e){e.AwsMarketplaceProductCode="awsMarketplaceProductCode",e.AwsMarketplaceProductId="awsMarketplaceProductId",e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsDefaultProduct="isDefaultProduct",e.MultipleSubscriptions="multipleSubscriptions",e.RefId="refId",e.Status="status",e.UpdatedAt="updatedAt"}(It||(It={})),function(e){e.Archived="ARCHIVED",e.Published="PUBLISHED"}(St||(St={})),function(e){e.Custom="CUSTOM",e.Lifetime="LIFETIME",e.OneMonth="ONE_MONTH",e.OneWeek="ONE_WEEK",e.OneYear="ONE_YEAR",e.SixMonth="SIX_MONTH"}(Tt||(Tt={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.UpdatedAt="updatedAt"}(Ct||(Ct={})),function(e){e.Active="Active",e.Expired="Expired",e.Paused="Paused"}(wt||(wt={})),function(e){e.CreateProrations="CREATE_PRORATIONS",e.InvoiceImmediately="INVOICE_IMMEDIATELY"}(Pt||(Pt={})),function(e){e.PaymentRequired="PAYMENT_REQUIRED",e.Success="SUCCESS"}(Dt||(Dt={})),function(e){e.AllCustomers="ALL_CUSTOMERS",e.NewCustomers="NEW_CUSTOMERS"}(At||(At={})),function(e){e.EndOfBillingMonth="END_OF_BILLING_MONTH",e.EndOfBillingPeriod="END_OF_BILLING_PERIOD",e.Immediate="IMMEDIATE"}(Ot||(Ot={})),function(e){e.Asc="ASC",e.Desc="DESC"}(Nt||(Nt={})),function(e){e.NullsFirst="NULLS_FIRST",e.NullsLast="NULLS_LAST"}(Rt||(Rt={})),function(e){e.JsClientSdk="JS_CLIENT_SDK",e.NodeServerSdk="NODE_SERVER_SDK",e.PersistentCacheService="PERSISTENT_CACHE_SERVICE"}(Ft||(Ft={})),function(e){e.Live="LIVE",e.Sandbox="SANDBOX",e.Test="TEST"}(kt||(kt={})),function(e){e.App="APP",e.Connect="CONNECT"}(xt||(xt={})),function(e){e.CreatedAt="createdAt",e.Id="id",e.Quantity="quantity",e.UpdatedAt="updatedAt"}(Ut||(Ut={})),function(e){e.Now="NOW",e.Unchanged="UNCHANGED"}(Mt||(Mt={})),function(e){e.AutoCancellationRule="AutoCancellationRule",e.CancelledByBilling="CancelledByBilling",e.CustomerArchived="CustomerArchived",e.DetachBilling="DetachBilling",e.Expired="Expired",e.Immediate="Immediate",e.PendingPaymentExpired="PendingPaymentExpired",e.ScheduledCancellation="ScheduledCancellation",e.TrialConverted="TrialConverted",e.TrialEnded="TrialEnded",e.UpgradeOrDowngrade="UpgradeOrDowngrade"}(Lt||(Lt={})),function(e){e.Default="DEFAULT",e.RevokeEntitlements="REVOKE_ENTITLEMENTS"}(jt||(jt={})),function(e){e.EndOfBillingPeriod="END_OF_BILLING_PERIOD",e.Immediate="IMMEDIATE",e.SpecificDate="SPECIFIC_DATE"}(Vt||(Vt={})),function(e){e.Active="ACTIVE",e.Expired="EXPIRED",e.Removed="REMOVED"}(Bt||(Bt={})),function(e){e.PredefinedFreePlan="PREDEFINED_FREE_PLAN",e.PredefinedTrialPlan="PREDEFINED_TRIAL_PLAN",e.RequestedPlan="REQUESTED_PLAN",e.SkippedSubscriptionCreation="SKIPPED_SUBSCRIPTION_CREATION"}(Gt||(Gt={})),function(e){e.CancelSubscription="CANCEL_SUBSCRIPTION",e.DowngradeToFree="DOWNGRADE_TO_FREE"}(qt||(qt={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.SubscriptionId="subscriptionId",e.UpdatedAt="updatedAt"}($t||($t={})),function(e){e.BillingCycle="BILLING_CYCLE",e.Manual="MANUAL",e.MinimumInvoiceAmountExceeded="MINIMUM_INVOICE_AMOUNT_EXCEEDED",e.Other="OTHER",e.SubscriptionCreation="SUBSCRIPTION_CREATION",e.SubscriptionUpdate="SUBSCRIPTION_UPDATE"}(Qt||(Qt={})),function(e){e.Canceled="CANCELED",e.Open="OPEN",e.Paid="PAID"}(Ht||(Ht={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.TaskType="taskType"}(zt||(zt={})),function(e){e.EndOfBillingPeriod="END_OF_BILLING_PERIOD",e.Immediate="IMMEDIATE"}(Wt||(Wt={})),function(e){e.BillingModel="billingModel",e.CreatedAt="createdAt",e.FeatureId="featureId",e.HasSoftLimit="hasSoftLimit",e.Id="id",e.UpdatedAt="updatedAt",e.UsageLimit="usageLimit"}(Zt||(Zt={})),function(e){e.CreateProrations="CREATE_PRORATIONS",e.InvoiceImmediately="INVOICE_IMMEDIATELY",e.None="NONE"}(Yt||(Yt={})),function(e){e.BillingId="billingId",e.CancellationDate="cancellationDate",e.CreatedAt="createdAt",e.CustomerId="customerId",e.EndDate="endDate",e.EnvironmentId="environmentId",e.PaymentCollection="paymentCollection",e.PricingType="pricingType",e.ProductId="productId",e.ResourceId="resourceId",e.SalesforceId="salesforceId",e.StartDate="startDate",e.Status="status",e.SubscriptionId="subscriptionId"}(Kt||(Kt={})),function(e){e.Canceled="Canceled",e.Done="Done",e.Failed="Failed",e.PendingPayment="PendingPayment",e.Scheduled="Scheduled"}(Jt||(Jt={})),function(e){e.AdditionalMetaData="AdditionalMetaData",e.Addon="Addon",e.BillingInfoMetadata="BillingInfoMetadata",e.BillingPeriod="BillingPeriod",e.Coupon="Coupon",e.Downgrade="Downgrade",e.MigrateToLatest="MigrateToLatest",e.Plan="Plan",e.PriceOverride="PriceOverride",e.RecurringCredits="RecurringCredits",e.UnitAmount="UnitAmount"}(Xt||(Xt={})),function(e){e.FreePlan="FREE_PLAN",e.PlanSelection="PLAN_SELECTION",e.TrialPeriod="TRIAL_PERIOD"}(en||(en={})),function(e){e.Active="ACTIVE",e.Canceled="CANCELED",e.Expired="EXPIRED",e.InTrial="IN_TRIAL",e.NotStarted="NOT_STARTED",e.PaymentPending="PAYMENT_PENDING"}(tn||(tn={})),function(e){e.AlwaysReset="ALWAYS_RESET",e.BillingPeriodChange="BILLING_PERIOD_CHANGE",e.NeverReset="NEVER_RESET"}(nn||(nn={})),function(e){e.Error="ERROR",e.NoSyncRequired="NO_SYNC_REQUIRED",e.Pending="PENDING",e.Success="SUCCESS"}(rn||(rn={})),function(e){e.Canceled="CANCELED",e.Completed="COMPLETED",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.PartiallyFailed="PARTIALLY_FAILED",e.Pending="PENDING"}(on||(on={})),function(e){e.EnvironmentExport="ENVIRONMENT_EXPORT",e.EnvironmentMergeApply="ENVIRONMENT_MERGE_APPLY",e.ImportIntegrationCatalog="IMPORT_INTEGRATION_CATALOG",e.ImportIntegrationCustomers="IMPORT_INTEGRATION_CUSTOMERS",e.ImportSubscriptionsBulk="IMPORT_SUBSCRIPTIONS_BULK",e.RecalculateBatchEntitlements="RECALCULATE_BATCH_ENTITLEMENTS",e.RecalculateEntitlements="RECALCULATE_ENTITLEMENTS",e.ResyncIntegration="RESYNC_INTEGRATION",e.SubscriptionMigration="SUBSCRIPTION_MIGRATION",e.SubscriptionMigrationV2="SUBSCRIPTION_MIGRATION_V2"}(an||(an={})),function(e){e.CreditAmount="CreditAmount",e.DollarAmount="DollarAmount"}(sn||(sn={})),function(e){e.Graduated="GRADUATED",e.Volume="VOLUME"}(un||(un={})),function(e){e.CancelSubscription="CANCEL_SUBSCRIPTION",e.ConvertToPaid="CONVERT_TO_PAID"}(cn||(cn={})),function(e){e.Day="DAY",e.Month="MONTH"}(ln||(ln={})),function(e){e.Down="DOWN",e.Up="UP"}(pn||(pn={})),function(e){e.PeriodicReset="PERIODIC_RESET",e.SubscriptionChangeReset="SUBSCRIPTION_CHANGE_RESET"}(dn||(dn={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id"}(fn||(fn={})),function(e){e.Delta="DELTA",e.Set="SET"}(hn||(hn={})),function(e){e.Airwallex="AIRWALLEX",e.AppStore="APP_STORE",e.Auth0="AUTH0",e.AwsMarketplace="AWS_MARKETPLACE",e.BigQuery="BIG_QUERY",e.Hubspot="HUBSPOT",e.OpenFga="OPEN_FGA",e.Prequel="PREQUEL",e.Received="RECEIVED",e.Salesforce="SALESFORCE",e.Snowflake="SNOWFLAKE",e.Stripe="STRIPE",e.Zuora="ZUORA"}(mn||(mn={})),function(e){e.Auth="AUTH",e.Billing="BILLING",e.Crm="CRM",e.DataExport="DATA_EXPORT",e.Invoicing="INVOICING",e.Marketplace="MARKETPLACE"}(gn||(gn={})),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"}(yn||(yn={})),function(e){e.Checkout="CHECKOUT",e.CustomerPortal="CUSTOMER_PORTAL",e.Paywall="PAYWALL"}(vn||(vn={})),function(e){e.SubscriptionStart="SubscriptionStart"}(bn||(bn={})),function(e){e.Control="CONTROL",e.Variant="VARIANT"}(En||(En={}));var Sn,Tn,Cn,wn,Pn,Dn,An,On,Nn,Rn,Fn,kn,xn,Un,Mn,Ln,jn,Vn,Bn,Gn,qn,$n,Qn,Hn,zn,Wn,Zn,Yn,Kn,Jn,Xn,er,tr,nr,rr,ir,or,ar,sr,ur,cr,lr,pr,dr,fr,hr,mr,gr,yr,vr,br,Er,_r,Ir,Sr,Tr,Cr,wr,Pr,Dr,Ar,Or,Nr,Rr,Fr,kr,xr,Ur,Mr,Lr,jr,Vr,Br,Gr,qr,$r,Qr,Hr,zr,Wr,Zr,Yr,Kr,Jr,Xr,ei,ti,ni,ri,ii,oi,ai,si,ui,ci,li,pi,di,fi,hi,mi,gi,yi,vi,bi,Ei,_i,Ii,Si,Ti,Ci,wi,Pi,Di,Ai,Oi,Ni,Ri,Fi,ki,xi,Ui,Mi,Li,ji,Vi,Bi,Gi,qi,$i,Qi,Hi,zi,Wi,Zi,Yi,Ki,Ji,Xi,eo,to,no,ro,io,oo,ao,so,uo,co,lo,po,fo,ho,mo,go,yo,vo,bo,Eo,_o,Io,So,To,Co=N(Sn||(Sn=_n(["\n fragment SubscriptionQueryFragment on SubscriptionQuery {\n subscriptionId\n status\n pricingType\n startDate\n currentBillingPeriodEnd\n customer {\n customerId\n }\n payingCustomer {\n customerId\n }\n resource {\n resourceId\n }\n plan {\n planId: refId\n displayName\n }\n addons {\n quantity\n addon {\n addonId: refId\n }\n }\n trialConfiguration {\n trialEndBehavior\n }\n trialEndDate\n}\n "],["\n fragment SubscriptionQueryFragment on SubscriptionQuery {\n subscriptionId\n status\n pricingType\n startDate\n currentBillingPeriodEnd\n customer {\n customerId\n }\n payingCustomer {\n customerId\n }\n resource {\n resourceId\n }\n plan {\n planId: refId\n displayName\n }\n addons {\n quantity\n addon {\n addonId: refId\n }\n }\n trialConfiguration {\n trialEndBehavior\n }\n trialEndDate\n}\n "]))),wo=N(Tn||(Tn=_n(["\n fragment SlimSubscriptionFragmentV2 on CustomerSubscription {\n subscriptionId\n status\n pricingType\n startDate\n endDate\n cancellationDate\n effectiveEndDate\n currentBillingPeriodEnd\n currentBillingPeriodStart\n billingPeriod\n additionalMetaData\n totalPrice {\n subTotal {\n amount\n currency\n }\n total {\n amount\n currency\n }\n }\n customer {\n customerId\n email\n }\n payingCustomer {\n customerId\n email\n }\n resource {\n resourceId\n }\n plan {\n planId: refId\n displayName\n description\n product {\n refId\n displayName\n downgradePlan {\n refId\n displayName\n }\n }\n }\n addons {\n quantity\n addon {\n addonId: refId\n }\n }\n prices {\n billingModel\n price {\n billingPeriod\n price {\n amount\n currency\n }\n }\n }\n trialConfiguration {\n trialEndBehavior\n }\n trialEndDate\n}\n "],["\n fragment SlimSubscriptionFragmentV2 on CustomerSubscription {\n subscriptionId\n status\n pricingType\n startDate\n endDate\n cancellationDate\n effectiveEndDate\n currentBillingPeriodEnd\n currentBillingPeriodStart\n billingPeriod\n additionalMetaData\n totalPrice {\n subTotal {\n amount\n currency\n }\n total {\n amount\n currency\n }\n }\n customer {\n customerId\n email\n }\n payingCustomer {\n customerId\n email\n }\n resource {\n resourceId\n }\n plan {\n planId: refId\n displayName\n description\n product {\n refId\n displayName\n downgradePlan {\n refId\n displayName\n }\n }\n }\n addons {\n quantity\n addon {\n addonId: refId\n }\n }\n prices {\n billingModel\n price {\n billingPeriod\n price {\n amount\n currency\n }\n }\n }\n trialConfiguration {\n trialEndBehavior\n }\n trialEndDate\n}\n "]))),Po=N(Cn||(Cn=_n(["\n fragment SlimCustomerFragment on Customer {\n id\n name\n email\n createdAt\n updatedAt\n refId\n customerId\n billingId\n additionalMetaData\n awsMarketplaceCustomerId\n}\n "],["\n fragment SlimCustomerFragment on Customer {\n id\n name\n email\n createdAt\n updatedAt\n refId\n customerId\n billingId\n additionalMetaData\n awsMarketplaceCustomerId\n}\n "]))),Do=N(wn||(wn=_n(["\n fragment CouponFragment on Coupon {\n id\n discountValue\n percentOff\n amountsOff {\n amount\n currency\n }\n type\n additionalMetaData\n refId\n name\n description\n createdAt\n updatedAt\n billingId\n billingLinkUrl\n status\n syncStates {\n vendorIdentifier\n status\n }\n}\n "],["\n fragment CouponFragment on Coupon {\n id\n discountValue\n percentOff\n amountsOff {\n amount\n currency\n }\n type\n additionalMetaData\n refId\n name\n description\n createdAt\n updatedAt\n billingId\n billingLinkUrl\n status\n syncStates {\n vendorIdentifier\n status\n }\n}\n "]))),Ao=N(Pn||(Pn=_n(["\n fragment PromotionalEntitlementFragment on PromotionalEntitlement {\n status\n usageLimit\n featureId\n hasUnlimitedUsage\n hasSoftLimit\n resetPeriod\n endDate\n isVisible\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n}\n "],["\n fragment PromotionalEntitlementFragment on PromotionalEntitlement {\n status\n usageLimit\n featureId\n hasUnlimitedUsage\n hasSoftLimit\n resetPeriod\n endDate\n isVisible\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n}\n "]))),Oo=N(Dn||(Dn=_n(["\n fragment CustomerFragment on Customer {\n ...SlimCustomerFragment\n hasPaymentMethod\n hasActiveSubscription\n defaultPaymentExpirationMonth\n defaultPaymentExpirationYear\n defaultPaymentMethodLast4Digits\n defaultPaymentMethodType\n trialedPlans {\n productId\n productRefId\n planRefId\n planId\n }\n experimentInfo {\n groupType\n groupName\n id\n name\n }\n coupon {\n ...CouponFragment\n }\n eligibleForTrial {\n productId\n productRefId\n eligible\n }\n promotionalEntitlements {\n ...PromotionalEntitlementFragment\n }\n}\n "],["\n fragment CustomerFragment on Customer {\n ...SlimCustomerFragment\n hasPaymentMethod\n hasActiveSubscription\n defaultPaymentExpirationMonth\n defaultPaymentExpirationYear\n defaultPaymentMethodLast4Digits\n defaultPaymentMethodType\n trialedPlans {\n productId\n productRefId\n planRefId\n planId\n }\n experimentInfo {\n groupType\n groupName\n id\n name\n }\n coupon {\n ...CouponFragment\n }\n eligibleForTrial {\n productId\n productRefId\n eligible\n }\n promotionalEntitlements {\n ...PromotionalEntitlementFragment\n }\n}\n "]))),No=N(An||(An=_n(["\n fragment SubscriptionInvoiceFragment on SubscriptionInvoice {\n billingId\n status\n createdAt\n dueDate\n updatedAt\n errorMessage\n requiresAction\n paymentSecret\n paymentUrl\n pdfUrl\n billingReason\n currency\n subTotal\n subTotalExcludingTax\n total\n totalExcludingTax\n tax\n amountDue\n attemptCount\n}\n "],["\n fragment SubscriptionInvoiceFragment on SubscriptionInvoice {\n billingId\n status\n createdAt\n dueDate\n updatedAt\n errorMessage\n requiresAction\n paymentSecret\n paymentUrl\n pdfUrl\n billingReason\n currency\n subTotal\n subTotalExcludingTax\n total\n totalExcludingTax\n tax\n amountDue\n attemptCount\n}\n "]))),Ro=N(On||(On=_n(["\n fragment CustomerResourceFragment on CustomerResource {\n resourceId\n}\n "],["\n fragment CustomerResourceFragment on CustomerResource {\n resourceId\n}\n "]))),Fo=N(Nn||(Nn=_n(["\n fragment PriceTierFragment on PriceTier {\n upTo\n unitPrice {\n amount\n currency\n }\n flatPrice {\n amount\n currency\n }\n}\n "],["\n fragment PriceTierFragment on PriceTier {\n upTo\n unitPrice {\n amount\n currency\n }\n flatPrice {\n amount\n currency\n }\n}\n "]))),ko=N(Rn||(Rn=_n(["\n fragment PriceFragment on Price {\n billingModel\n billingPeriod\n billingCadence\n billingId\n minUnitQuantity\n maxUnitQuantity\n billingCountryCode\n price {\n amount\n currency\n }\n creditRate {\n amount\n customCurrencyId\n currencyId\n }\n tiersMode\n tiers {\n ...PriceTierFragment\n }\n feature {\n refId\n featureUnits\n featureUnitsPlural\n displayName\n description\n }\n blockSize\n topUpCustomCurrencyId\n customCurrency {\n displayName\n units {\n singular\n plural\n }\n }\n}\n "],["\n fragment PriceFragment on Price {\n billingModel\n billingPeriod\n billingCadence\n billingId\n minUnitQuantity\n maxUnitQuantity\n billingCountryCode\n price {\n amount\n currency\n }\n creditRate {\n amount\n customCurrencyId\n currencyId\n }\n tiersMode\n tiers {\n ...PriceTierFragment\n }\n feature {\n refId\n featureUnits\n featureUnitsPlural\n displayName\n description\n }\n blockSize\n topUpCustomCurrencyId\n customCurrency {\n displayName\n units {\n singular\n plural\n }\n }\n}\n "]))),xo=N(Fn||(Fn=_n(["\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 "]))),Uo=N(kn||(kn=_n(["\n fragment ProductFragment on Product {\n refId\n displayName\n description\n additionalMetaData\n awsMarketplaceProductId\n productSettings {\n downgradePlan {\n refId\n displayName\n }\n }\n}\n "],["\n fragment ProductFragment on Product {\n refId\n displayName\n description\n additionalMetaData\n awsMarketplaceProductId\n productSettings {\n downgradePlan {\n refId\n displayName\n }\n }\n}\n "]))),Mo=N(xn||(xn=_n(["\n fragment PackageEntitlementFragment on PackageEntitlement {\n usageLimit\n hasUnlimitedUsage\n hasSoftLimit\n featureId\n resetPeriod\n hiddenFromWidgets\n isCustom\n displayNameOverride\n enumValues\n isGranted\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n}\n "],["\n fragment PackageEntitlementFragment on PackageEntitlement {\n usageLimit\n hasUnlimitedUsage\n hasSoftLimit\n featureId\n resetPeriod\n hiddenFromWidgets\n isCustom\n displayNameOverride\n enumValues\n isGranted\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n}\n "]))),Lo=N(Un||(Un=_n(["\n fragment PackageFeatureEntitlementFragment on PackageFeatureEntitlement {\n __typename\n id\n behavior\n description\n displayNameOverride\n enumValues\n featureId\n hasSoftLimit\n hasUnlimitedUsage\n hiddenFromWidgets\n isCustom\n isGranted\n order\n resetPeriod\n usageLimit\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n}\n "],["\n fragment PackageFeatureEntitlementFragment on PackageFeatureEntitlement {\n __typename\n id\n behavior\n description\n displayNameOverride\n enumValues\n featureId\n hasSoftLimit\n hasUnlimitedUsage\n hiddenFromWidgets\n isCustom\n isGranted\n order\n resetPeriod\n usageLimit\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n}\n "]))),jo=N(Mn||(Mn=_n(["\n fragment PackageCreditEntitlementFragment on PackageCreditEntitlement {\n __typename\n id\n amount\n behavior\n cadence\n customCurrencyId\n description\n displayNameOverride\n hasSoftLimit\n hiddenFromWidgets\n isCustom\n isGranted\n order\n dependencyFeature {\n refId\n displayName\n description\n featureType\n featureUnits\n featureUnitsPlural\n }\n customCurrency {\n currencyId\n displayName\n symbol\n units {\n singular\n plural\n }\n }\n}\n "],["\n fragment PackageCreditEntitlementFragment on PackageCreditEntitlement {\n __typename\n id\n amount\n behavior\n cadence\n customCurrencyId\n description\n displayNameOverride\n hasSoftLimit\n hiddenFromWidgets\n isCustom\n isGranted\n order\n dependencyFeature {\n refId\n displayName\n description\n featureType\n featureUnits\n featureUnitsPlural\n }\n customCurrency {\n currencyId\n displayName\n symbol\n units {\n singular\n plural\n }\n }\n}\n "]))),Vo=N(Ln||(Ln=_n(["\n fragment PackageEntitlementUnionFragment on PackageEntitlementUnion {\n ... on PackageFeatureEntitlement {\n ...PackageFeatureEntitlementFragment\n }\n ... on PackageCreditEntitlement {\n ...PackageCreditEntitlementFragment\n }\n}\n "],["\n fragment PackageEntitlementUnionFragment on PackageEntitlementUnion {\n ... on PackageFeatureEntitlement {\n ...PackageFeatureEntitlementFragment\n }\n ... on PackageCreditEntitlement {\n ...PackageCreditEntitlementFragment\n }\n}\n "]))),Bo=N(jn||(jn=_n(["\n fragment OveragePriceFragment on Price {\n billingModel\n billingPeriod\n billingId\n billingCountryCode\n price {\n amount\n currency\n }\n tiersMode\n tiers {\n ...PriceTierFragment\n }\n feature {\n refId\n featureUnits\n featureUnitsPlural\n displayName\n description\n }\n}\n "],["\n fragment OveragePriceFragment on Price {\n billingModel\n billingPeriod\n billingId\n billingCountryCode\n price {\n amount\n currency\n }\n tiersMode\n tiers {\n ...PriceTierFragment\n }\n feature {\n refId\n featureUnits\n featureUnitsPlural\n displayName\n description\n }\n}\n "]))),Go=N(Vn||(Vn=_n(["\n fragment AddonDependencyFragment on Addon {\n id\n refId\n displayName\n description\n}\n "],["\n fragment AddonDependencyFragment on Addon {\n id\n refId\n displayName\n description\n}\n "]))),qo=N(Bn||(Bn=_n(["\n fragment AddonFragment on Addon {\n id\n refId\n billingId\n displayName\n description\n additionalMetaData\n hiddenFromWidgets\n entitlements {\n ...PackageEntitlementFragment\n }\n packageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n prices {\n ...PriceFragment\n }\n overagePrices {\n ...OveragePriceFragment\n }\n pricingType\n maxQuantity\n dependencies {\n ...AddonDependencyFragment\n }\n}\n "],["\n fragment AddonFragment on Addon {\n id\n refId\n billingId\n displayName\n description\n additionalMetaData\n hiddenFromWidgets\n entitlements {\n ...PackageEntitlementFragment\n }\n packageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n prices {\n ...PriceFragment\n }\n overagePrices {\n ...OveragePriceFragment\n }\n pricingType\n maxQuantity\n dependencies {\n ...AddonDependencyFragment\n }\n}\n "]))),$o=N(Gn||(Gn=_n(["\n fragment PlanCompatiblePackageGroupsFragment on PlanCompatiblePackageGroups {\n packageGroupId\n displayName\n addons {\n ...AddonFragment\n }\n options {\n minItems\n freeItems\n }\n}\n "],["\n fragment PlanCompatiblePackageGroupsFragment on PlanCompatiblePackageGroups {\n packageGroupId\n displayName\n addons {\n ...AddonFragment\n }\n options {\n minItems\n freeItems\n }\n}\n "]))),Qo=N(qn||(qn=_n(["\n fragment PlanFragment on Plan {\n id\n refId\n displayName\n description\n billingId\n versionNumber\n additionalMetaData\n hiddenFromWidgets\n product {\n ...ProductFragment\n }\n basePlan {\n refId\n displayName\n }\n entitlements {\n ...PackageEntitlementFragment\n }\n inheritedEntitlements {\n ...PackageEntitlementFragment\n }\n compatibleAddons {\n ...AddonFragment\n }\n compatiblePackageGroups {\n ...PlanCompatiblePackageGroupsFragment\n }\n prices {\n ...PriceFragment\n }\n overagePrices {\n ...OveragePriceFragment\n }\n pricingType\n defaultTrialConfig {\n duration\n units\n budget {\n limit\n }\n trialEndBehavior\n }\n awsMarketplacePlanDimension\n packageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n inheritedPackageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n}\n "],["\n fragment PlanFragment on Plan {\n id\n refId\n displayName\n description\n billingId\n versionNumber\n additionalMetaData\n hiddenFromWidgets\n product {\n ...ProductFragment\n }\n basePlan {\n refId\n displayName\n }\n entitlements {\n ...PackageEntitlementFragment\n }\n inheritedEntitlements {\n ...PackageEntitlementFragment\n }\n compatibleAddons {\n ...AddonFragment\n }\n compatiblePackageGroups {\n ...PlanCompatiblePackageGroupsFragment\n }\n prices {\n ...PriceFragment\n }\n overagePrices {\n ...OveragePriceFragment\n }\n pricingType\n defaultTrialConfig {\n duration\n units\n budget {\n limit\n }\n trialEndBehavior\n }\n awsMarketplacePlanDimension\n packageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n inheritedPackageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n}\n "]))),Ho=N($n||($n=_n(["\n fragment ScheduleVariablesFragment on ScheduleVariables {\n __typename\n ... on PlanChangeVariables {\n planRefId\n changeType\n billingPeriod\n billableFeatures {\n featureId\n quantity\n }\n addons {\n addonRefId\n quantity\n }\n priceOverrides {\n planRefId\n addonRefId\n featureId\n }\n }\n ... on DowngradeChangeVariables {\n downgradePlanRefId\n billingPeriod\n billableFeatures {\n featureId\n quantity\n }\n addons {\n addonRefId\n quantity\n }\n priceOverrides {\n planRefId\n addonRefId\n featureId\n }\n }\n ... on BillingPeriodChangeVariables {\n billingPeriod\n }\n ... on UnitAmountChangeVariables {\n newUnitAmount\n featureId\n }\n ... on AddonChangeVariables {\n addonRefId\n newQuantity\n }\n ... on PlanPriceOverrideChangeVariables {\n planRefId\n featureId\n }\n ... on AddonPriceOverrideChangeVariables {\n addonRefId\n featureId\n }\n}\n "],["\n fragment ScheduleVariablesFragment on ScheduleVariables {\n __typename\n ... on PlanChangeVariables {\n planRefId\n changeType\n billingPeriod\n billableFeatures {\n featureId\n quantity\n }\n addons {\n addonRefId\n quantity\n }\n priceOverrides {\n planRefId\n addonRefId\n featureId\n }\n }\n ... on DowngradeChangeVariables {\n downgradePlanRefId\n billingPeriod\n billableFeatures {\n featureId\n quantity\n }\n addons {\n addonRefId\n quantity\n }\n priceOverrides {\n planRefId\n addonRefId\n featureId\n }\n }\n ... on BillingPeriodChangeVariables {\n billingPeriod\n }\n ... on UnitAmountChangeVariables {\n newUnitAmount\n featureId\n }\n ... on AddonChangeVariables {\n addonRefId\n newQuantity\n }\n ... on PlanPriceOverrideChangeVariables {\n planRefId\n featureId\n }\n ... on AddonPriceOverrideChangeVariables {\n addonRefId\n featureId\n }\n}\n "]))),zo=N(Qn||(Qn=_n(["\n fragment SubscriptionScheduledUpdateData on SubscriptionScheduledUpdate {\n subscriptionScheduleType\n scheduleStatus\n scheduledExecutionTime\n targetPackage {\n id\n refId\n displayName\n }\n scheduleVariables {\n ...ScheduleVariablesFragment\n }\n}\n "],["\n fragment SubscriptionScheduledUpdateData on SubscriptionScheduledUpdate {\n subscriptionScheduleType\n scheduleStatus\n scheduledExecutionTime\n targetPackage {\n id\n refId\n displayName\n }\n scheduleVariables {\n ...ScheduleVariablesFragment\n }\n}\n "]))),Wo=N(Hn||(Hn=_n(["\n fragment SubscriptionFutureUpdateData on SubscriptionFutureUpdate {\n subscriptionScheduleType\n scheduleStatus\n scheduledExecutionTime\n targetPackage {\n id\n refId\n displayName\n }\n scheduleVariables {\n ...ScheduleVariablesFragment\n }\n}\n "],["\n fragment SubscriptionFutureUpdateData on SubscriptionFutureUpdate {\n subscriptionScheduleType\n scheduleStatus\n scheduledExecutionTime\n targetPackage {\n id\n refId\n displayName\n }\n scheduleVariables {\n ...ScheduleVariablesFragment\n }\n}\n "]))),Zo=N(zn||(zn=_n(["\n fragment SubscriptionTrialConfigurationFragment on TrialConfiguration {\n trialEndBehavior\n}\n "],["\n fragment SubscriptionTrialConfigurationFragment on TrialConfiguration {\n trialEndBehavior\n}\n "]))),Yo=N(Wn||(Wn=_n(["\n fragment SubscriptionFragment on CustomerSubscription {\n id\n subscriptionId\n payingCustomer {\n ...SlimCustomerFragment\n }\n startDate\n endDate\n trialEndDate\n cancellationDate\n effectiveEndDate\n status\n refId\n currentBillingPeriodEnd\n additionalMetaData\n billingId\n billingLinkUrl\n latestInvoice {\n ...SubscriptionInvoiceFragment\n }\n paymentCollection\n paymentCollectionMethod\n billingSyncError\n resource {\n ...CustomerResourceFragment\n }\n experimentInfo {\n name\n groupType\n groupName\n id\n }\n prices {\n usageLimit\n price {\n ...PriceFragment\n }\n }\n totalPrice {\n ...TotalPriceFragment\n }\n pricingType\n plan {\n ...PlanFragment\n }\n addons {\n id\n quantity\n addon {\n ...AddonFragment\n }\n }\n scheduledUpdates {\n ...SubscriptionScheduledUpdateData\n }\n futureUpdates {\n ...SubscriptionFutureUpdateData\n }\n trialConfiguration {\n ...SubscriptionTrialConfigurationFragment\n }\n}\n "],["\n fragment SubscriptionFragment on CustomerSubscription {\n id\n subscriptionId\n payingCustomer {\n ...SlimCustomerFragment\n }\n startDate\n endDate\n trialEndDate\n cancellationDate\n effectiveEndDate\n status\n refId\n currentBillingPeriodEnd\n additionalMetaData\n billingId\n billingLinkUrl\n latestInvoice {\n ...SubscriptionInvoiceFragment\n }\n paymentCollection\n paymentCollectionMethod\n billingSyncError\n resource {\n ...CustomerResourceFragment\n }\n experimentInfo {\n name\n groupType\n groupName\n id\n }\n prices {\n usageLimit\n price {\n ...PriceFragment\n }\n }\n totalPrice {\n ...TotalPriceFragment\n }\n pricingType\n plan {\n ...PlanFragment\n }\n addons {\n id\n quantity\n addon {\n ...AddonFragment\n }\n }\n scheduledUpdates {\n ...SubscriptionScheduledUpdateData\n }\n futureUpdates {\n ...SubscriptionFutureUpdateData\n }\n trialConfiguration {\n ...SubscriptionTrialConfigurationFragment\n }\n}\n "]))),Ko=N(Zn||(Zn=_n(["\n fragment CustomerWithSubscriptionsFragment on Customer {\n ...CustomerFragment\n subscriptions {\n ...SubscriptionFragment\n }\n}\n "],["\n fragment CustomerWithSubscriptionsFragment on Customer {\n ...CustomerFragment\n subscriptions {\n ...SubscriptionFragment\n }\n}\n "]))),Jo=N(Yn||(Yn=_n(["\n fragment CustomerStatisticsFragment on Customer {\n statistics {\n activeSubscriptionsByPricingType {\n pricingType\n totalCount\n }\n }\n}\n "],["\n fragment CustomerStatisticsFragment on Customer {\n statistics {\n activeSubscriptionsByPricingType {\n pricingType\n totalCount\n }\n }\n}\n "]))),Xo=N(Kn||(Kn=_n(["\n fragment SubscriptionPreviewFragment on SubscriptionPreview {\n subTotal {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n total {\n amount\n currency\n }\n discountAmount {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n tax {\n amount\n currency\n }\n billingPeriodRange {\n start\n end\n }\n discount {\n name\n type\n value\n durationType\n durationInMonths\n }\n subscription {\n subTotal {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n total {\n amount\n currency\n }\n tax {\n amount\n currency\n }\n discountAmount {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n discount {\n name\n type\n value\n durationType\n durationInMonths\n }\n }\n proration {\n prorationDate\n credit {\n amount\n currency\n }\n debit {\n amount\n currency\n }\n netAmount {\n amount\n currency\n }\n }\n isPlanDowngrade\n hasScheduledUpdates\n credits {\n initial {\n amount\n currency\n }\n used {\n amount\n currency\n }\n remaining {\n amount\n currency\n }\n }\n}\n "],["\n fragment SubscriptionPreviewFragment on SubscriptionPreview {\n subTotal {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n total {\n amount\n currency\n }\n discountAmount {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n tax {\n amount\n currency\n }\n billingPeriodRange {\n start\n end\n }\n discount {\n name\n type\n value\n durationType\n durationInMonths\n }\n subscription {\n subTotal {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n total {\n amount\n currency\n }\n tax {\n amount\n currency\n }\n discountAmount {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n discount {\n name\n type\n value\n durationType\n durationInMonths\n }\n }\n proration {\n prorationDate\n credit {\n amount\n currency\n }\n debit {\n amount\n currency\n }\n netAmount {\n amount\n currency\n }\n }\n isPlanDowngrade\n hasScheduledUpdates\n credits {\n initial {\n amount\n currency\n }\n used {\n amount\n currency\n }\n remaining {\n amount\n currency\n }\n }\n}\n "]))),ea=N(Jn||(Jn=_n(["\n fragment ImmediateSubscriptionPreviewInvoiceFragment on ImmediateSubscriptionPreviewInvoice {\n total {\n amount\n currency\n }\n subTotal {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n tax {\n amount\n currency\n }\n discount {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n discountDetails {\n type\n value\n durationType\n durationInMonths\n }\n credits {\n initial {\n amount\n currency\n }\n used {\n amount\n currency\n }\n remaining {\n amount\n currency\n }\n }\n proration {\n prorationDate\n hasProrations\n credit {\n amount\n currency\n }\n debit {\n amount\n currency\n }\n netAmount {\n amount\n currency\n }\n }\n}\n "],["\n fragment ImmediateSubscriptionPreviewInvoiceFragment on ImmediateSubscriptionPreviewInvoice {\n total {\n amount\n currency\n }\n subTotal {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n tax {\n amount\n currency\n }\n discount {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n discountDetails {\n type\n value\n durationType\n durationInMonths\n }\n credits {\n initial {\n amount\n currency\n }\n used {\n amount\n currency\n }\n remaining {\n amount\n currency\n }\n }\n proration {\n prorationDate\n hasProrations\n credit {\n amount\n currency\n }\n debit {\n amount\n currency\n }\n netAmount {\n amount\n currency\n }\n }\n}\n "]))),ta=N(Xn||(Xn=_n(["\n fragment SubscriptionPreviewInvoiceFragment on SubscriptionPreviewInvoice {\n total {\n amount\n currency\n }\n subTotal {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n tax {\n amount\n currency\n }\n discount {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n discountDetails {\n type\n value\n durationType\n durationInMonths\n }\n}\n "],["\n fragment SubscriptionPreviewInvoiceFragment on SubscriptionPreviewInvoice {\n total {\n amount\n currency\n }\n subTotal {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n tax {\n amount\n currency\n }\n discount {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n discountDetails {\n type\n value\n durationType\n durationInMonths\n }\n}\n "]))),na=N(er||(er=_n(["\n fragment SubscriptionPreviewV2Fragment on SubscriptionPreviewV2 {\n immediateInvoice {\n ...ImmediateSubscriptionPreviewInvoiceFragment\n }\n recurringInvoice {\n ...SubscriptionPreviewInvoiceFragment\n }\n billingPeriodRange {\n start\n end\n }\n isPlanDowngrade\n hasScheduledUpdates\n}\n "],["\n fragment SubscriptionPreviewV2Fragment on SubscriptionPreviewV2 {\n immediateInvoice {\n ...ImmediateSubscriptionPreviewInvoiceFragment\n }\n recurringInvoice {\n ...SubscriptionPreviewInvoiceFragment\n }\n billingPeriodRange {\n start\n end\n }\n isPlanDowngrade\n hasScheduledUpdates\n}\n "]))),ra=N(tr||(tr=_n(["\n fragment SubscriptionInvoicePreviewFragment on SubscriptionInvoicePreview {\n amountDue {\n amount\n currency\n }\n minimumSpendAdjustment {\n amount\n currency\n }\n total {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n subTotal {\n amount\n currency\n }\n subTotalExcludingTax {\n amount\n currency\n }\n tax {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n discount {\n amount\n currency\n }\n discountDetails {\n name\n type\n value\n durationType\n durationInMonths\n }\n credits {\n initial {\n amount\n currency\n }\n used {\n amount\n currency\n }\n remaining {\n amount\n currency\n }\n }\n lastUpdatedAt\n lines {\n type\n description\n costDescription\n amount {\n amount\n currency\n }\n unitPrice {\n amount\n currency\n }\n quantity\n proration\n price {\n ...PriceFragment\n }\n usageLimit\n period {\n start\n end\n }\n hasSoftLimit\n lines {\n type\n description\n costDescription\n quantity\n proration\n usageLimit\n hasSoftLimit\n }\n }\n}\n "],["\n fragment SubscriptionInvoicePreviewFragment on SubscriptionInvoicePreview {\n amountDue {\n amount\n currency\n }\n minimumSpendAdjustment {\n amount\n currency\n }\n total {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n subTotal {\n amount\n currency\n }\n subTotalExcludingTax {\n amount\n currency\n }\n tax {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n discount {\n amount\n currency\n }\n discountDetails {\n name\n type\n value\n durationType\n durationInMonths\n }\n credits {\n initial {\n amount\n currency\n }\n used {\n amount\n currency\n }\n remaining {\n amount\n currency\n }\n }\n lastUpdatedAt\n lines {\n type\n description\n costDescription\n amount {\n amount\n currency\n }\n unitPrice {\n amount\n currency\n }\n quantity\n proration\n price {\n ...PriceFragment\n }\n usageLimit\n period {\n start\n end\n }\n hasSoftLimit\n lines {\n type\n description\n costDescription\n quantity\n proration\n usageLimit\n hasSoftLimit\n }\n }\n}\n "]))),ia=N(nr||(nr=_n(["\n fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {\n __typename\n ... on YearlyResetPeriodConfig {\n yearlyAccordingTo\n }\n ... on MonthlyResetPeriodConfig {\n monthlyAccordingTo\n }\n ... on WeeklyResetPeriodConfig {\n weeklyAccordingTo\n }\n}\n "],["\n fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {\n __typename\n ... on YearlyResetPeriodConfig {\n yearlyAccordingTo\n }\n ... on MonthlyResetPeriodConfig {\n monthlyAccordingTo\n }\n ... on WeeklyResetPeriodConfig {\n weeklyAccordingTo\n }\n}\n "]))),oa=N(rr||(rr=_n(["\n fragment FeatureFragment on EntitlementFeature {\n __typename\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n description\n displayName\n refId\n unitTransformation {\n divide\n round\n }\n}\n "],["\n fragment FeatureFragment on EntitlementFeature {\n __typename\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n description\n displayName\n refId\n unitTransformation {\n divide\n round\n }\n}\n "]))),aa=N(ir||(ir=_n(["\n fragment EntitlementFragment on Entitlement {\n __typename\n isGranted\n accessDeniedReason\n customerId\n resourceId\n usageLimit\n hasUnlimitedUsage\n hasSoftLimit\n currentUsage\n requestedUsage\n requestedValues\n enumValues\n entitlementUpdatedAt\n usageUpdatedAt\n usagePeriodAnchor\n usagePeriodStart\n usagePeriodEnd\n nextResetDate\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n creditRate {\n amount\n currencyId\n }\n validUntil\n}\n "],["\n fragment EntitlementFragment on Entitlement {\n __typename\n isGranted\n accessDeniedReason\n customerId\n resourceId\n usageLimit\n hasUnlimitedUsage\n hasSoftLimit\n currentUsage\n requestedUsage\n requestedValues\n enumValues\n entitlementUpdatedAt\n usageUpdatedAt\n usagePeriodAnchor\n usagePeriodStart\n usagePeriodEnd\n nextResetDate\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n creditRate {\n amount\n currencyId\n }\n validUntil\n}\n "]))),sa=N(or||(or=_n(["\n fragment EntitlementsUpdatedPayload on EntitlementsUpdated {\n customerId\n resourceId\n accessDeniedReason\n entitlements {\n ...EntitlementFragment\n }\n}\n "],["\n fragment EntitlementsUpdatedPayload on EntitlementsUpdated {\n customerId\n resourceId\n accessDeniedReason\n entitlements {\n ...EntitlementFragment\n }\n}\n "]))),ua=N(ar||(ar=_n(["\n fragment UsageUpdatedFragment on UsageMeasurementUpdated {\n customerId\n resourceId\n featureId\n currentUsage\n usagePeriodStart\n usagePeriodEnd\n nextResetDate\n}\n "],["\n fragment UsageUpdatedFragment on UsageMeasurementUpdated {\n customerId\n resourceId\n featureId\n currentUsage\n usagePeriodStart\n usagePeriodEnd\n nextResetDate\n}\n "]))),ca=N(sr||(sr=_n(["\n fragment EntitlementUsageUpdated on UsageUpdated {\n usage {\n ...UsageUpdatedFragment\n }\n entitlement {\n ...EntitlementFragment\n }\n}\n "],["\n fragment EntitlementUsageUpdated on UsageUpdated {\n usage {\n ...UsageUpdatedFragment\n }\n entitlement {\n ...EntitlementFragment\n }\n}\n "]))),la=N(ur||(ur=_n(["\n fragment PackagePublishedPayload on PackagePublished {\n accountId\n environmentId\n packageType\n packageRefId\n packageVersion\n migrationType\n}\n "],["\n fragment PackagePublishedPayload on PackagePublished {\n accountId\n environmentId\n packageType\n packageRefId\n packageVersion\n migrationType\n}\n "]))),pa=N(cr||(cr=_n(["\n fragment CreditBalanceUpdatedPayload on CreditBalanceUpdated {\n currency {\n currencyId\n displayName\n symbol\n units {\n singular\n plural\n }\n }\n currencyId\n currentBalance\n customerId\n validUntil\n resourceId\n totalConsumed\n totalGranted\n}\n "],["\n fragment CreditBalanceUpdatedPayload on CreditBalanceUpdated {\n currency {\n currencyId\n displayName\n symbol\n units {\n singular\n plural\n }\n }\n currencyId\n currentBalance\n customerId\n validUntil\n resourceId\n totalConsumed\n totalGranted\n}\n "]))),da=N(lr||(lr=_n(["\n fragment CustomerPortalSubscriptionPriceFragment on CustomerPortalSubscriptionPrice {\n billingPeriod\n billingModel\n blockSize\n price {\n amount\n currency\n }\n creditRate {\n amount\n currencyId\n }\n feature {\n id\n refId\n displayName\n featureUnits\n featureUnitsPlural\n }\n}\n "],["\n fragment CustomerPortalSubscriptionPriceFragment on CustomerPortalSubscriptionPrice {\n billingPeriod\n billingModel\n blockSize\n price {\n amount\n currency\n }\n creditRate {\n amount\n currencyId\n }\n feature {\n id\n refId\n displayName\n featureUnits\n featureUnitsPlural\n }\n}\n "]))),fa=N(pr||(pr=_n(["\n fragment CustomerPortalSubscriptionAddonFragment on CustomerPortalAddon {\n addonId\n description\n displayName\n quantity\n}\n "],["\n fragment CustomerPortalSubscriptionAddonFragment on CustomerPortalAddon {\n addonId\n description\n displayName\n quantity\n}\n "]))),ha=N(dr||(dr=_n(["\n fragment CustomerPortalSubscriptionScheduledUpdateDataFragment on SubscriptionScheduledUpdate {\n subscriptionScheduleType\n scheduleStatus\n scheduledExecutionTime\n targetPackage {\n id\n refId\n displayName\n pricingType\n }\n scheduleVariables {\n ...ScheduleVariablesFragment\n }\n}\n "],["\n fragment CustomerPortalSubscriptionScheduledUpdateDataFragment on SubscriptionScheduledUpdate {\n subscriptionScheduleType\n scheduleStatus\n scheduledExecutionTime\n targetPackage {\n id\n refId\n displayName\n pricingType\n }\n scheduleVariables {\n ...ScheduleVariablesFragment\n }\n}\n "]))),ma=N(fr||(fr=_n(["\n fragment CustomerPortalSubscriptionFragment on CustomerPortalSubscription {\n subscriptionId\n planId\n planName\n pricingType\n prices {\n ...CustomerPortalSubscriptionPriceFragment\n }\n pricing {\n unitQuantity\n billingPeriod\n billingModel\n pricingType\n usageBasedEstimatedBill\n price {\n amount\n currency\n }\n creditRate {\n amount\n currencyId\n }\n feature {\n featureUnits\n featureUnitsPlural\n displayName\n }\n }\n status\n trialRemainingDays\n billingPeriodRange {\n start\n end\n }\n totalPrice {\n subTotal {\n amount\n currency\n }\n total {\n amount\n currency\n }\n addonsTotal {\n amount\n currency\n }\n }\n addons {\n ...CustomerPortalSubscriptionAddonFragment\n }\n scheduledUpdates {\n ...CustomerPortalSubscriptionScheduledUpdateDataFragment\n }\n previewNextInvoice {\n total {\n amount\n currency\n }\n amountDue {\n amount\n currency\n }\n lines {\n quantity\n period {\n start\n end\n }\n price {\n feature {\n refId\n }\n }\n }\n }\n}\n "],["\n fragment CustomerPortalSubscriptionFragment on CustomerPortalSubscription {\n subscriptionId\n planId\n planName\n pricingType\n prices {\n ...CustomerPortalSubscriptionPriceFragment\n }\n pricing {\n unitQuantity\n billingPeriod\n billingModel\n pricingType\n usageBasedEstimatedBill\n price {\n amount\n currency\n }\n creditRate {\n amount\n currencyId\n }\n feature {\n featureUnits\n featureUnitsPlural\n displayName\n }\n }\n status\n trialRemainingDays\n billingPeriodRange {\n start\n end\n }\n totalPrice {\n subTotal {\n amount\n currency\n }\n total {\n amount\n currency\n }\n addonsTotal {\n amount\n currency\n }\n }\n addons {\n ...CustomerPortalSubscriptionAddonFragment\n }\n scheduledUpdates {\n ...CustomerPortalSubscriptionScheduledUpdateDataFragment\n }\n previewNextInvoice {\n total {\n amount\n currency\n }\n amountDue {\n amount\n currency\n }\n lines {\n quantity\n period {\n start\n end\n }\n price {\n feature {\n refId\n }\n }\n }\n }\n}\n "]))),ga=N(hr||(hr=_n(["\n fragment CustomerPortalEntitlementFragment on Entitlement {\n isGranted\n usageLimit\n currentUsage\n hasUnlimitedUsage\n hasSoftLimit\n usagePeriodStart\n usagePeriodEnd\n nextResetDate\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n}\n "],["\n fragment CustomerPortalEntitlementFragment on Entitlement {\n isGranted\n usageLimit\n currentUsage\n hasUnlimitedUsage\n hasSoftLimit\n usagePeriodStart\n usagePeriodEnd\n nextResetDate\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n}\n "]))),ya=N(mr||(mr=_n(["\n fragment FeatureEntitlementFragment on FeatureEntitlement {\n __typename\n isGranted\n accessDeniedReason\n usageLimit\n hasUnlimitedUsage\n hasSoftLimit\n currentUsage\n enumValues\n entitlementUpdatedAt\n usageUpdatedAt\n usagePeriodAnchor\n usagePeriodStart\n usagePeriodEnd\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n creditRate {\n amount\n currencyId\n }\n validUntil\n}\n "],["\n fragment FeatureEntitlementFragment on FeatureEntitlement {\n __typename\n isGranted\n accessDeniedReason\n usageLimit\n hasUnlimitedUsage\n hasSoftLimit\n currentUsage\n enumValues\n entitlementUpdatedAt\n usageUpdatedAt\n usagePeriodAnchor\n usagePeriodStart\n usagePeriodEnd\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n creditRate {\n amount\n currencyId\n }\n validUntil\n}\n "]))),va=N(gr||(gr=_n(["\n fragment CreditEntitlementFragment on CreditEntitlement {\n __typename\n isGranted\n accessDeniedReason\n currency {\n currencyId\n displayName\n description\n unitSingular\n unitPlural\n additionalMetaData\n }\n usageLimit\n currentUsage\n hasSoftLimit\n usageUpdatedAt\n entitlementUpdatedAt\n usagePeriodEnd\n validUntil\n}\n "],["\n fragment CreditEntitlementFragment on CreditEntitlement {\n __typename\n isGranted\n accessDeniedReason\n currency {\n currencyId\n displayName\n description\n unitSingular\n unitPlural\n additionalMetaData\n }\n usageLimit\n currentUsage\n hasSoftLimit\n usageUpdatedAt\n entitlementUpdatedAt\n usagePeriodEnd\n validUntil\n}\n "]))),ba=N(yr||(yr=_n(["\n fragment EntitlementUnionFragment on EntitlementUnion {\n ... on FeatureEntitlement {\n ...FeatureEntitlementFragment\n }\n ... on CreditEntitlement {\n ...CreditEntitlementFragment\n }\n}\n "],["\n fragment EntitlementUnionFragment on EntitlementUnion {\n ... on FeatureEntitlement {\n ...FeatureEntitlementFragment\n }\n ... on CreditEntitlement {\n ...CreditEntitlementFragment\n }\n}\n "]))),Ea=N(vr||(vr=_n(["\n fragment CustomerPortalPromotionalEntitlementFragment on CustomerPortalPromotionalEntitlement {\n displayName\n hasUnlimitedUsage\n hasSoftLimit\n usageLimit\n period\n startDate\n endDate\n}\n "],["\n fragment CustomerPortalPromotionalEntitlementFragment on CustomerPortalPromotionalEntitlement {\n displayName\n hasUnlimitedUsage\n hasSoftLimit\n usageLimit\n period\n startDate\n endDate\n}\n "]))),_a=N(br||(br=_n(["\n fragment CustomerPortalBillingInformationFragment on CustomerPortalBillingInformation {\n email\n name\n defaultPaymentMethodLast4Digits\n defaultPaymentMethodId\n defaultPaymentExpirationMonth\n defaultPaymentExpirationYear\n defaultPaymentMethodType\n}\n "],["\n fragment CustomerPortalBillingInformationFragment on CustomerPortalBillingInformation {\n email\n name\n defaultPaymentMethodLast4Digits\n defaultPaymentMethodId\n defaultPaymentExpirationMonth\n defaultPaymentExpirationYear\n defaultPaymentMethodType\n}\n "]))),Ia=N(Er||(Er=_n(["\n fragment FontVariantFragment on FontVariant {\n fontSize\n fontWeight\n}\n "],["\n fragment FontVariantFragment on FontVariant {\n fontSize\n fontWeight\n}\n "]))),Sa=N(_r||(_r=_n(["\n fragment TypographyConfigurationFragment on TypographyConfiguration {\n fontFamily\n h1 {\n ...FontVariantFragment\n }\n h2 {\n ...FontVariantFragment\n }\n h3 {\n ...FontVariantFragment\n }\n body {\n ...FontVariantFragment\n }\n}\n "],["\n fragment TypographyConfigurationFragment on TypographyConfiguration {\n fontFamily\n h1 {\n ...FontVariantFragment\n }\n h2 {\n ...FontVariantFragment\n }\n h3 {\n ...FontVariantFragment\n }\n body {\n ...FontVariantFragment\n }\n}\n "]))),Ta=N(Ir||(Ir=_n(["\n fragment CustomerPortalConfigurationFragment on CustomerPortalConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n currentPlanBackground\n iconsColor\n paywallBackgroundColor\n }\n typography {\n ...TypographyConfigurationFragment\n }\n customCss\n}\n "],["\n fragment CustomerPortalConfigurationFragment on CustomerPortalConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n currentPlanBackground\n iconsColor\n paywallBackgroundColor\n }\n typography {\n ...TypographyConfigurationFragment\n }\n customCss\n}\n "]))),Ca=N(Sr||(Sr=_n(["\n fragment CustomerPortalFragment on CustomerPortal {\n subscriptions {\n ...CustomerPortalSubscriptionFragment\n }\n entitlements {\n ...CustomerPortalEntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n promotionalEntitlements {\n ...CustomerPortalPromotionalEntitlementFragment\n }\n billingInformation {\n ...CustomerPortalBillingInformationFragment\n }\n showWatermark\n billingPortalUrl\n canUpgradeSubscription\n configuration {\n ...CustomerPortalConfigurationFragment\n }\n resource {\n ...CustomerResourceFragment\n }\n}\n "],["\n fragment CustomerPortalFragment on CustomerPortal {\n subscriptions {\n ...CustomerPortalSubscriptionFragment\n }\n entitlements {\n ...CustomerPortalEntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n promotionalEntitlements {\n ...CustomerPortalPromotionalEntitlementFragment\n }\n billingInformation {\n ...CustomerPortalBillingInformationFragment\n }\n showWatermark\n billingPortalUrl\n canUpgradeSubscription\n configuration {\n ...CustomerPortalConfigurationFragment\n }\n resource {\n ...CustomerResourceFragment\n }\n}\n "]))),wa=N(Tr||(Tr=_n(["\n fragment CheckoutConfigurationFragment on CheckoutConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n summaryBackgroundColor\n __typename\n }\n typography {\n ...TypographyConfigurationFragment\n __typename\n }\n customCss\n content {\n collectPhoneNumber\n }\n __typename\n}\n "],["\n fragment CheckoutConfigurationFragment on CheckoutConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n summaryBackgroundColor\n __typename\n }\n typography {\n ...TypographyConfigurationFragment\n __typename\n }\n customCss\n content {\n collectPhoneNumber\n }\n __typename\n}\n "]))),Pa=N(Cr||(Cr=_n(["\n fragment StripeCheckoutCredentialsFragment on StripeCheckoutCredentials {\n accountId\n setupSecret\n publicKey\n}\n "],["\n fragment StripeCheckoutCredentialsFragment on StripeCheckoutCredentials {\n accountId\n setupSecret\n publicKey\n}\n "]))),Da=N(wr||(wr=_n(["\n fragment ZuoraCheckoutCredentialsFragment on ZuoraCheckoutCredentials {\n publishableKey\n}\n "],["\n fragment ZuoraCheckoutCredentialsFragment on ZuoraCheckoutCredentials {\n publishableKey\n}\n "]))),Aa=N(Pr||(Pr=_n(["\n fragment CheckoutStateFragment on CheckoutState {\n configuration {\n ...CheckoutConfigurationFragment\n }\n setupSecret\n customer {\n ...CustomerFragment\n }\n activeSubscription {\n ...SubscriptionFragment\n }\n resource {\n ...CustomerResourceFragment\n }\n plan {\n ...PlanFragment\n }\n billingIntegration {\n billingIdentifier\n billingCredentials {\n ... on StripeCheckoutCredentials {\n ...StripeCheckoutCredentialsFragment\n }\n ... on ZuoraCheckoutCredentials {\n ...ZuoraCheckoutCredentialsFragment\n }\n }\n credentials {\n accountId\n publicKey\n }\n }\n}\n "],["\n fragment CheckoutStateFragment on CheckoutState {\n configuration {\n ...CheckoutConfigurationFragment\n }\n setupSecret\n customer {\n ...CustomerFragment\n }\n activeSubscription {\n ...SubscriptionFragment\n }\n resource {\n ...CustomerResourceFragment\n }\n plan {\n ...PlanFragment\n }\n billingIntegration {\n billingIdentifier\n billingCredentials {\n ... on StripeCheckoutCredentials {\n ...StripeCheckoutCredentialsFragment\n }\n ... on ZuoraCheckoutCredentials {\n ...ZuoraCheckoutCredentialsFragment\n }\n }\n credentials {\n accountId\n publicKey\n }\n }\n}\n "]))),Oa=N(Dr||(Dr=_n(["\n fragment MockPaywallPackageEntitlementFragment on Entitlement {\n usageLimit\n hasUnlimitedUsage\n hasSoftLimit\n resetPeriod\n hiddenFromWidgets\n displayNameOverride\n enumValues\n isGranted\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n}\n "],["\n fragment MockPaywallPackageEntitlementFragment on Entitlement {\n usageLimit\n hasUnlimitedUsage\n hasSoftLimit\n resetPeriod\n hiddenFromWidgets\n displayNameOverride\n enumValues\n isGranted\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n}\n "]))),Na=N(Ar||(Ar=_n(["\n fragment MockPaywallPriceFragment on PaywallPrice {\n billingModel\n billingPeriod\n billingCadence\n billingId\n minUnitQuantity\n maxUnitQuantity\n billingCountryCode\n price {\n amount\n currency\n }\n creditRate {\n amount\n currencyId\n }\n tiersMode\n tiers {\n ...PriceTierFragment\n }\n feature {\n refId\n featureUnits\n featureUnitsPlural\n displayName\n }\n blockSize\n topUpCustomCurrencyId\n customCurrency {\n displayName\n units {\n singular\n plural\n }\n }\n}\n "],["\n fragment MockPaywallPriceFragment on PaywallPrice {\n billingModel\n billingPeriod\n billingCadence\n billingId\n minUnitQuantity\n maxUnitQuantity\n billingCountryCode\n price {\n amount\n currency\n }\n creditRate {\n amount\n currencyId\n }\n tiersMode\n tiers {\n ...PriceTierFragment\n }\n feature {\n refId\n featureUnits\n featureUnitsPlural\n displayName\n }\n blockSize\n topUpCustomCurrencyId\n customCurrency {\n displayName\n units {\n singular\n plural\n }\n }\n}\n "]))),Ra=N(Or||(Or=_n(["\n fragment MockPaywallAddonDependencyFragment on PaywallAddon {\n refId\n displayName\n description\n}\n "],["\n fragment MockPaywallAddonDependencyFragment on PaywallAddon {\n refId\n displayName\n description\n}\n "]))),Fa=N(Nr||(Nr=_n(["\n fragment MockPaywallAddonFragment on PaywallAddon {\n refId\n displayName\n description\n additionalMetaData\n billingId\n maxQuantity\n hiddenFromWidgets\n dependencies {\n ...MockPaywallAddonDependencyFragment\n }\n entitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n packageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n prices {\n ...MockPaywallPriceFragment\n }\n pricingType\n}\n "],["\n fragment MockPaywallAddonFragment on PaywallAddon {\n refId\n displayName\n description\n additionalMetaData\n billingId\n maxQuantity\n hiddenFromWidgets\n dependencies {\n ...MockPaywallAddonDependencyFragment\n }\n entitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n packageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n prices {\n ...MockPaywallPriceFragment\n }\n pricingType\n}\n "]))),ka=N(Rr||(Rr=_n(["\n fragment MockPaywallPlanCompatiblePackageGroupsFragment on PaywallPlanCompatiblePackageGroup {\n packageGroupId\n displayName\n description\n addons {\n ...MockPaywallAddonFragment\n }\n options {\n minItems\n freeItems\n }\n}\n "],["\n fragment MockPaywallPlanCompatiblePackageGroupsFragment on PaywallPlanCompatiblePackageGroup {\n packageGroupId\n displayName\n description\n addons {\n ...MockPaywallAddonFragment\n }\n options {\n minItems\n freeItems\n }\n}\n "]))),xa=N(Fr||(Fr=_n(["\n fragment MockPaywallPlanFragment on PaywallPlan {\n refId\n description\n displayName\n billingId\n additionalMetaData\n product {\n refId\n displayName\n description\n additionalMetaData\n }\n basePlan {\n refId\n displayName\n }\n entitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n inheritedEntitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n packageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n inheritedPackageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n prices {\n ...MockPaywallPriceFragment\n }\n pricingType\n defaultTrialConfig {\n duration\n units\n budget {\n limit\n }\n trialEndBehavior\n }\n compatibleAddons {\n ...MockPaywallAddonFragment\n }\n compatiblePackageGroups {\n ...MockPaywallPlanCompatiblePackageGroupsFragment\n }\n}\n "],["\n fragment MockPaywallPlanFragment on PaywallPlan {\n refId\n description\n displayName\n billingId\n additionalMetaData\n product {\n refId\n displayName\n description\n additionalMetaData\n }\n basePlan {\n refId\n displayName\n }\n entitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n inheritedEntitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n packageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n inheritedPackageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n prices {\n ...MockPaywallPriceFragment\n }\n pricingType\n defaultTrialConfig {\n duration\n units\n budget {\n limit\n }\n trialEndBehavior\n }\n compatibleAddons {\n ...MockPaywallAddonFragment\n }\n compatiblePackageGroups {\n ...MockPaywallPlanCompatiblePackageGroupsFragment\n }\n}\n "]))),Ua=N(kr||(kr=_n(["\n fragment PaywallCurrencyFragment on PaywallCurrency {\n code\n symbol\n}\n "],["\n fragment PaywallCurrencyFragment on PaywallCurrency {\n code\n symbol\n}\n "]))),Ma=N(xr||(xr=_n(["\n fragment LayoutConfigurationFragment on PaywallLayoutConfiguration {\n alignment\n planWidth\n planMargin\n planPadding\n}\n "],["\n fragment LayoutConfigurationFragment on PaywallLayoutConfiguration {\n alignment\n planWidth\n planMargin\n planPadding\n}\n "]))),La=N(Ur||(Ur=_n(["\n fragment PaywallConfigurationFragment on PaywallConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n currentPlanBackground\n }\n typography {\n ...TypographyConfigurationFragment\n }\n layout {\n ...LayoutConfigurationFragment\n }\n customCss\n}\n "],["\n fragment PaywallConfigurationFragment on PaywallConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n currentPlanBackground\n }\n typography {\n ...TypographyConfigurationFragment\n }\n layout {\n ...LayoutConfigurationFragment\n }\n customCss\n}\n "]))),ja=N(Mr||(Mr=_n(["\n fragment PaywallCalculatedPricePointsFragment on PaywallPricePoint {\n planId\n additionalChargesMayApply\n billingPeriod\n amount\n currency\n billingCountryCode\n feature {\n refId\n featureUnits\n featureUnitsPlural\n displayName\n description\n }\n}\n "],["\n fragment PaywallCalculatedPricePointsFragment on PaywallPricePoint {\n planId\n additionalChargesMayApply\n billingPeriod\n amount\n currency\n billingCountryCode\n feature {\n refId\n featureUnits\n featureUnitsPlural\n displayName\n description\n }\n}\n "]))),Va=N(Lr||(Lr=_n(["\n fragment PaywallFragment on Paywall {\n plans {\n ...PlanFragment\n }\n currency {\n ...PaywallCurrencyFragment\n }\n configuration {\n ...PaywallConfigurationFragment\n }\n customer {\n ...CustomerFragment\n }\n activeSubscriptions {\n ...SubscriptionFragment\n }\n resource {\n ...CustomerResourceFragment\n }\n paywallCalculatedPricePoints {\n ...PaywallCalculatedPricePointsFragment\n }\n}\n "],["\n fragment PaywallFragment on Paywall {\n plans {\n ...PlanFragment\n }\n currency {\n ...PaywallCurrencyFragment\n }\n configuration {\n ...PaywallConfigurationFragment\n }\n customer {\n ...CustomerFragment\n }\n activeSubscriptions {\n ...SubscriptionFragment\n }\n resource {\n ...CustomerResourceFragment\n }\n paywallCalculatedPricePoints {\n ...PaywallCalculatedPricePointsFragment\n }\n}\n "]))),Ba=N(jr||(jr=_n(["\n fragment UsageHistoryFragment on UsageHistory {\n startDate\n endDate\n markers {\n type\n timestamp\n }\n usageMeasurements {\n date\n value\n isResetPoint\n }\n groups {\n groupInfo {\n key\n value\n }\n usageMeasurements {\n date\n value\n isResetPoint\n }\n }\n}\n "],["\n fragment UsageHistoryFragment on UsageHistory {\n startDate\n endDate\n markers {\n type\n timestamp\n }\n usageMeasurements {\n date\n value\n isResetPoint\n }\n groups {\n groupInfo {\n key\n value\n }\n usageMeasurements {\n date\n value\n isResetPoint\n }\n }\n}\n "]))),Ga=N(Vr||(Vr=_n(["\n fragment UsageHistoryV2Fragment on UsageHistoryV2 {\n markers {\n type\n timestamp\n }\n series {\n tags {\n key\n value\n }\n points {\n timestamp\n value\n isResetPoint\n }\n }\n}\n "],["\n fragment UsageHistoryV2Fragment on UsageHistoryV2 {\n markers {\n type\n timestamp\n }\n series {\n tags {\n key\n value\n }\n points {\n timestamp\n value\n isResetPoint\n }\n }\n}\n "]))),qa=N(Br||(Br=_n(["\n fragment SlimSubscriptionFragment on CustomerSubscription {\n id\n subscriptionId\n refId\n status\n additionalMetaData\n billingId\n billingLinkUrl\n effectiveEndDate\n cancellationDate\n currentBillingPeriodEnd\n pricingType\n latestInvoice {\n ...SubscriptionInvoiceFragment\n }\n paymentCollection\n billingSyncError\n resource {\n ...CustomerResourceFragment\n }\n experimentInfo {\n name\n id\n groupType\n groupName\n }\n prices {\n usageLimit\n price {\n ...PriceFragment\n }\n }\n totalPrice {\n ...TotalPriceFragment\n }\n plan {\n id\n refId\n }\n addons {\n quantity\n addon {\n id\n refId\n }\n }\n customer {\n id\n refId\n }\n}\n "],["\n fragment SlimSubscriptionFragment on CustomerSubscription {\n id\n subscriptionId\n refId\n status\n additionalMetaData\n billingId\n billingLinkUrl\n effectiveEndDate\n cancellationDate\n currentBillingPeriodEnd\n pricingType\n latestInvoice {\n ...SubscriptionInvoiceFragment\n }\n paymentCollection\n billingSyncError\n resource {\n ...CustomerResourceFragment\n }\n experimentInfo {\n name\n id\n groupType\n groupName\n }\n prices {\n usageLimit\n price {\n ...PriceFragment\n }\n }\n totalPrice {\n ...TotalPriceFragment\n }\n plan {\n id\n refId\n }\n addons {\n quantity\n addon {\n id\n refId\n }\n }\n customer {\n id\n refId\n }\n}\n "]))),$a=N(Gr||(Gr=_n(["\n fragment ProvisionCustomerFragment on ProvisionedCustomer {\n customer {\n ...SlimCustomerFragment\n }\n subscriptionDecisionStrategy\n subscription {\n ...SlimSubscriptionFragment\n }\n entitlements {\n ...EntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n}\n "],["\n fragment ProvisionCustomerFragment on ProvisionedCustomer {\n customer {\n ...SlimCustomerFragment\n }\n subscriptionDecisionStrategy\n subscription {\n ...SlimSubscriptionFragment\n }\n entitlements {\n ...EntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n}\n "]))),Qa=N(qr||(qr=_n(["\n fragment ApplySubscriptionFragment on ApplySubscription {\n subscription {\n ...SubscriptionFragment\n }\n entitlements {\n ...EntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n}\n "],["\n fragment ApplySubscriptionFragment on ApplySubscription {\n subscription {\n ...SubscriptionFragment\n }\n entitlements {\n ...EntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n}\n "]))),Ha=N($r||($r=_n(["\n fragment ProvisionSubscriptionFragment on ProvisionSubscriptionResult {\n status\n checkoutUrl\n checkoutBillingId\n subscription {\n ...SlimSubscriptionFragment\n }\n entitlements {\n ...EntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n}\n "],["\n fragment ProvisionSubscriptionFragment on ProvisionSubscriptionResult {\n status\n checkoutUrl\n checkoutBillingId\n subscription {\n ...SlimSubscriptionFragment\n }\n entitlements {\n ...EntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n}\n "]))),za=N(Qr||(Qr=_n(["\n fragment ReportUsageFragment on UsageMeasurementWithCurrentUsage {\n id\n featureId\n customerId\n resourceId\n currentUsage\n credit {\n currencyId\n currentUsage\n usagePeriodEnd\n timestamp\n consumed\n }\n usagePeriodStart\n usagePeriodEnd\n nextResetDate\n timestamp\n}\n "],["\n fragment ReportUsageFragment on UsageMeasurementWithCurrentUsage {\n id\n featureId\n customerId\n resourceId\n currentUsage\n credit {\n currencyId\n currentUsage\n usagePeriodEnd\n timestamp\n consumed\n }\n usagePeriodStart\n usagePeriodEnd\n nextResetDate\n timestamp\n}\n "]))),Wa=N(Hr||(Hr=_n(["\n fragment CreditConsumptionResponseFragment on CreditConsumptionResponse {\n customerId\n currencyId\n resourceId\n amount\n timestamp\n credit {\n currencyId\n currentUsage\n usageLimit\n usagePeriodEnd\n timestamp\n }\n}\n "],["\n fragment CreditConsumptionResponseFragment on CreditConsumptionResponse {\n customerId\n currencyId\n resourceId\n amount\n timestamp\n credit {\n currencyId\n currentUsage\n usageLimit\n usagePeriodEnd\n timestamp\n }\n}\n "]))),Za=N(zr||(zr=_n(["\n fragment CreditGrantInvoiceFragment on CreditGrantInvoice {\n billingId\n status\n createdAt\n dueDate\n updatedAt\n errorMessage\n requiresAction\n paymentSecret\n paymentUrl\n pdfUrl\n billingReason\n currency\n subTotal\n subTotalExcludingTax\n total\n totalExcludingTax\n tax\n amountDue\n attemptCount\n}\n "],["\n fragment CreditGrantInvoiceFragment on CreditGrantInvoice {\n billingId\n status\n createdAt\n dueDate\n updatedAt\n errorMessage\n requiresAction\n paymentSecret\n paymentUrl\n pdfUrl\n billingReason\n currency\n subTotal\n subTotalExcludingTax\n total\n totalExcludingTax\n tax\n amountDue\n attemptCount\n}\n "]))),Ya=N(Wr||(Wr=_n(["\n fragment CreditGrantFragment on CreditGrant {\n grantId\n amount\n comment\n currencyId\n customerId\n displayName\n effectiveAt\n expireAt\n grantType\n priority\n consumedAmount\n cost {\n amount\n currency\n }\n createdAt\n updatedAt\n resourceId\n additionalMetaData\n automaticRechargeConfigurationId\n status\n voidedAt\n paymentCollection\n invoiceId\n latestInvoice {\n ...CreditGrantInvoiceFragment\n }\n}\n "],["\n fragment CreditGrantFragment on CreditGrant {\n grantId\n amount\n comment\n currencyId\n customerId\n displayName\n effectiveAt\n expireAt\n grantType\n priority\n consumedAmount\n cost {\n amount\n currency\n }\n createdAt\n updatedAt\n resourceId\n additionalMetaData\n automaticRechargeConfigurationId\n status\n voidedAt\n paymentCollection\n invoiceId\n latestInvoice {\n ...CreditGrantInvoiceFragment\n }\n}\n "]))),Ka=N(Zr||(Zr=_n(["\n fragment CreditLedgerFragment on CreditLedgerEvent {\n timestamp\n eventType\n customerId\n resourceId\n eventId\n featureId\n amount\n creditGrantId\n creditCurrencyId\n}\n "],["\n fragment CreditLedgerFragment on CreditLedgerEvent {\n timestamp\n eventType\n customerId\n resourceId\n eventId\n featureId\n amount\n creditGrantId\n creditCurrencyId\n}\n "]))),Ja=N(Yr||(Yr=_n(["\n fragment CreditBalanceFragment on CreditBalance {\n customerId\n currency {\n currencyId\n displayName\n symbol\n units {\n singular\n plural\n }\n }\n currentBalance\n totalConsumed\n totalGranted\n resourceId\n validUntil\n}\n "],["\n fragment CreditBalanceFragment on CreditBalance {\n customerId\n currency {\n currencyId\n displayName\n symbol\n units {\n singular\n plural\n }\n }\n currentBalance\n totalConsumed\n totalGranted\n resourceId\n validUntil\n}\n "]))),Xa=N(Kr||(Kr=_n(["\n fragment CreditsBalanceSummaryFragment on CreditBalanceSummary {\n customerId\n balances {\n ...CreditBalanceFragment\n }\n}\n "],["\n fragment CreditsBalanceSummaryFragment on CreditBalanceSummary {\n customerId\n balances {\n ...CreditBalanceFragment\n }\n}\n "]))),es=N(Jr||(Jr=_n(["\n fragment PaymentSessionFragment on PaymentSession {\n token\n}\n "],["\n fragment PaymentSessionFragment on PaymentSession {\n token\n}\n "]))),ts=N(Xr||(Xr=_n(["\n fragment SlimCustomCurrencyFragment on SlimCustomCurrency {\n currencyId\n displayName\n units {\n singular\n plural\n }\n}\n "],["\n fragment SlimCustomCurrencyFragment on SlimCustomCurrency {\n currencyId\n displayName\n units {\n singular\n plural\n }\n}\n "]))),ns=N(ei||(ei=_n(["\n fragment PageInfoFragment on PageInfo {\n startCursor\n endCursor\n hasNextPage\n hasPreviousPage\n}\n "],["\n fragment PageInfoFragment on PageInfo {\n startCursor\n endCursor\n hasNextPage\n hasPreviousPage\n}\n "]))),rs=N(ti||(ti=_n(["\n fragment CreditUsageFragment on CreditUsage {\n series {\n featureId\n featureName\n totalCredits\n points {\n timestamp\n value\n }\n }\n currency {\n ...SlimCustomCurrencyFragment\n }\n pageInfo {\n ...PageInfoFragment\n }\n}\n "],["\n fragment CreditUsageFragment on CreditUsage {\n series {\n featureId\n featureName\n totalCredits\n points {\n timestamp\n value\n }\n }\n currency {\n ...SlimCustomCurrencyFragment\n }\n pageInfo {\n ...PageInfoFragment\n }\n}\n "]))),is=N(ni||(ni=_n(["\n fragment AutoRechargeSettingsFragment on AutoRechargeSettingsDTO {\n customerId\n currencyId\n isEnabled\n thresholdType\n thresholdValue\n targetBalance\n maxSpendLimit\n grantExpirationPeriod\n currentMonthlySpend\n createdAt\n updatedAt\n}\n "],["\n fragment AutoRechargeSettingsFragment on AutoRechargeSettingsDTO {\n customerId\n currencyId\n isEnabled\n thresholdType\n thresholdValue\n targetBalance\n maxSpendLimit\n grantExpirationPeriod\n currentMonthlySpend\n createdAt\n updatedAt\n}\n "]))),os=N(ri||(ri=_n(["\n fragment EntitlementsUpdatedV2Payload on EntitlementsUpdatedV2 {\n customerId\n resourceId\n accessDeniedReason\n entitlements {\n ...EntitlementUnionFragment\n }\n}\n "],["\n fragment EntitlementsUpdatedV2Payload on EntitlementsUpdatedV2 {\n customerId\n resourceId\n accessDeniedReason\n entitlements {\n ...EntitlementUnionFragment\n }\n}\n "]))),as=N(ii||(ii=_n(["\n fragment EntitlementReferenceFragment on EntitlementReference {\n id\n type\n}\n "],["\n fragment EntitlementReferenceFragment on EntitlementReference {\n id\n type\n}\n "]))),ss=N(oi||(oi=_n(["\n fragment UsageV2Fragment on UsageV2 {\n currentUsage\n usageUpdatedAt\n usagePeriodStart\n usagePeriodEnd\n}\n "],["\n fragment UsageV2Fragment on UsageV2 {\n currentUsage\n usageUpdatedAt\n usagePeriodStart\n usagePeriodEnd\n}\n "]))),us=N(ai||(ai=_n(["\n fragment UsageUpdatedV2Payload on UsageUpdatedV2 {\n customerId\n resourceId\n entitlementReference {\n ...EntitlementReferenceFragment\n }\n usage {\n ...UsageV2Fragment\n }\n}\n "],["\n fragment UsageUpdatedV2Payload on UsageUpdatedV2 {\n customerId\n resourceId\n entitlementReference {\n ...EntitlementReferenceFragment\n }\n usage {\n ...UsageV2Fragment\n }\n}\n "]))),cs=N(si||(si=_n(["\n fragment CreditCostEstimationFragment on CreditCostEstimation {\n estimates {\n currencyId\n estimatedCost\n currentBalance\n balanceAfterEstimate\n wouldOverdraft\n breakdown {\n featureId\n cost\n warningCode\n }\n }\n warnings\n}\n "],["\n fragment CreditCostEstimationFragment on CreditCostEstimation {\n estimates {\n currencyId\n estimatedCost\n currentBalance\n balanceAfterEstimate\n wouldOverdraft\n breakdown {\n featureId\n cost\n warningCode\n }\n }\n warnings\n}\n "]))),ls=N(ui||(ui=_n(["\n mutation ProvisionCustomer($input: ProvisionCustomerInput!) {\n provisionCustomer(input: $input) {\n ...ProvisionCustomerFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n mutation ProvisionCustomer($input: ProvisionCustomerInput!) {\n provisionCustomer(input: $input) {\n ...ProvisionCustomerFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),$a,Po,qa,No,Ro,ko,Fo,xo,aa,ia,oa,ba,ya,va),ps=N(ci||(ci=_n(["\n mutation ImportCustomerBulk($input: ImportCustomerBulkInput!) {\n importCustomersBulk(input: $input)\n}\n "],["\n mutation ImportCustomerBulk($input: ImportCustomerBulkInput!) {\n importCustomersBulk(input: $input)\n}\n "]))),ds=N(li||(li=_n(["\n mutation ImportCustomer($input: ImportCustomerInput!) {\n importCustomer: importOneCustomer(input: $input) {\n ...SlimCustomerFragment\n }\n}\n ",""],["\n mutation ImportCustomer($input: ImportCustomerInput!) {\n importCustomer: importOneCustomer(input: $input) {\n ...SlimCustomerFragment\n }\n}\n ",""])),Po),fs=N(pi||(pi=_n(["\n mutation UpdateCustomer($input: UpdateCustomerInput!) {\n updateCustomer: updateOneCustomer(input: $input) {\n ...SlimCustomerFragment\n }\n}\n ",""],["\n mutation UpdateCustomer($input: UpdateCustomerInput!) {\n updateCustomer: updateOneCustomer(input: $input) {\n ...SlimCustomerFragment\n }\n}\n ",""])),Po),hs=N(di||(di=_n(["\n mutation DetachCustomerPaymentMethod($input: DetachCustomerPaymentMethodInput!) {\n detachCustomerPaymentMethod(input: $input) {\n ...SlimCustomerFragment\n }\n}\n ",""],["\n mutation DetachCustomerPaymentMethod($input: DetachCustomerPaymentMethodInput!) {\n detachCustomerPaymentMethod(input: $input) {\n ...SlimCustomerFragment\n }\n}\n ",""])),Po),ms=N(fi||(fi=_n(["\n mutation GrantPromotionalEntitlements($input: GrantPromotionalEntitlementsInput!) {\n grantPromotionalEntitlements(input: $input) {\n ...PromotionalEntitlementFragment\n }\n}\n ",""],["\n mutation GrantPromotionalEntitlements($input: GrantPromotionalEntitlementsInput!) {\n grantPromotionalEntitlements(input: $input) {\n ...PromotionalEntitlementFragment\n }\n}\n ",""])),Ao),gs=N(hi||(hi=_n(["\n mutation RevokePromotionalEntitlement($input: RevokePromotionalEntitlementInput!) {\n revokePromotionalEntitlement(input: $input) {\n id\n }\n}\n "],["\n mutation RevokePromotionalEntitlement($input: RevokePromotionalEntitlementInput!) {\n revokePromotionalEntitlement(input: $input) {\n id\n }\n}\n "]))),ys=N(mi||(mi=_n(["\n mutation ProvisionSubscription($input: ProvisionSubscriptionInput!) {\n provisionSubscription: provisionSubscriptionV2(input: $input) {\n ...ProvisionSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n mutation ProvisionSubscription($input: ProvisionSubscriptionInput!) {\n provisionSubscription: provisionSubscriptionV2(input: $input) {\n ...ProvisionSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),Ha,qa,No,Ro,ko,Fo,xo,aa,ia,oa,ba,ya,va),vs=N(gi||(gi=_n(["\n mutation ApplySubscription($input: ApplySubscriptionInput!) {\n applySubscription(input: $input) {\n ...ApplySubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n mutation ApplySubscription($input: ApplySubscriptionInput!) {\n applySubscription(input: $input) {\n ...ApplySubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),Qa,Yo,Po,No,Ro,ko,Fo,xo,Qo,Uo,Mo,qo,Vo,Lo,jo,Bo,Go,$o,zo,Ho,Wo,Zo,aa,ia,oa,ba,ya,va),bs=N(yi||(yi=_n(["\n mutation ImportSubscriptionsBulk($input: ImportSubscriptionsBulkInput!) {\n importSubscriptionsBulk(input: $input)\n}\n "],["\n mutation ImportSubscriptionsBulk($input: ImportSubscriptionsBulkInput!) {\n importSubscriptionsBulk(input: $input)\n}\n "]))),Es=N(vi||(vi=_n(["\n mutation UpdateSubscription($input: UpdateSubscriptionInput!) {\n updateSubscription: updateOneSubscription(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""],["\n mutation UpdateSubscription($input: UpdateSubscriptionInput!) {\n updateSubscription: updateOneSubscription(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""])),qa,No,Ro,ko,Fo,xo),_s=N(bi||(bi=_n(["\n mutation CancelSubscription($input: SubscriptionCancellationInput!) {\n cancelSubscription(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""],["\n mutation CancelSubscription($input: SubscriptionCancellationInput!) {\n cancelSubscription(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""])),qa,No,Ro,ko,Fo,xo),Is=N(Ei||(Ei=_n(["\n mutation EstimateSubscription($input: EstimateSubscriptionInput!) {\n estimateSubscription(input: $input) {\n ...SubscriptionPreviewFragment\n }\n}\n ",""],["\n mutation EstimateSubscription($input: EstimateSubscriptionInput!) {\n estimateSubscription(input: $input) {\n ...SubscriptionPreviewFragment\n }\n}\n ",""])),Xo),Ss=N(_i||(_i=_n(["\n mutation EstimateSubscriptionUpdate($input: EstimateSubscriptionUpdateInput!) {\n estimateSubscriptionUpdate(input: $input) {\n ...SubscriptionPreviewFragment\n }\n}\n ",""],["\n mutation EstimateSubscriptionUpdate($input: EstimateSubscriptionUpdateInput!) {\n estimateSubscriptionUpdate(input: $input) {\n ...SubscriptionPreviewFragment\n }\n}\n ",""])),Xo),Ts=N(Ii||(Ii=_n(["\n mutation PreviewSubscription($input: PreviewSubscriptionInput!) {\n previewSubscription(input: $input) {\n ...SubscriptionPreviewV2Fragment\n }\n}\n ","\n","\n",""],["\n mutation PreviewSubscription($input: PreviewSubscriptionInput!) {\n previewSubscription(input: $input) {\n ...SubscriptionPreviewV2Fragment\n }\n}\n ","\n","\n",""])),na,ea,ta),Cs=N(Si||(Si=_n(["\n mutation PreviewNextInvoice($input: PreviewNextInvoiceInput!) {\n previewNextInvoice(input: $input) {\n ...SubscriptionInvoicePreviewFragment\n }\n}\n ","\n","\n",""],["\n mutation PreviewNextInvoice($input: PreviewNextInvoiceInput!) {\n previewNextInvoice(input: $input) {\n ...SubscriptionInvoicePreviewFragment\n }\n}\n ","\n","\n",""])),ra,ko,Fo),ws=N(Ti||(Ti=_n(["\n mutation CancelSubscriptionUpdates($input: SubscriptionUpdateScheduleCancellationInput!) {\n cancelSchedule(input: $input)\n}\n "],["\n mutation CancelSubscriptionUpdates($input: SubscriptionUpdateScheduleCancellationInput!) {\n cancelSchedule(input: $input)\n}\n "]))),Ps=N(Ci||(Ci=_n(["\n mutation ReportUsage($input: ReportUsageInput!) {\n reportUsage(input: $input) {\n ...ReportUsageFragment\n }\n}\n ",""],["\n mutation ReportUsage($input: ReportUsageInput!) {\n reportUsage(input: $input) {\n ...ReportUsageFragment\n }\n}\n ",""])),za),Ds=N(wi||(wi=_n(["\n mutation ReportUsageBulk($input: ReportUsageBulkInput!) {\n reportUsageBulk(input: $input) {\n ...ReportUsageFragment\n }\n}\n ",""],["\n mutation ReportUsageBulk($input: ReportUsageBulkInput!) {\n reportUsageBulk(input: $input) {\n ...ReportUsageFragment\n }\n}\n ",""])),za),As=N(Pi||(Pi=_n(["\n mutation ConsumeCredits($input: ConsumeCreditInput!) {\n consumeCredits(input: $input) {\n ...CreditConsumptionResponseFragment\n }\n}\n ",""],["\n mutation ConsumeCredits($input: ConsumeCreditInput!) {\n consumeCredits(input: $input) {\n ...CreditConsumptionResponseFragment\n }\n}\n ",""])),Wa),Os=N(Di||(Di=_n(["\n mutation ConsumeCreditsAsync($input: ConsumeCreditsAsyncInput!) {\n consumeCreditsAsync(input: $input)\n}\n "],["\n mutation ConsumeCreditsAsync($input: ConsumeCreditsAsyncInput!) {\n consumeCreditsAsync(input: $input)\n}\n "]))),Ns=N(Ai||(Ai=_n(["\n mutation ReportEvent($input: UsageEventsReportInput!) {\n reportEvent(events: $input)\n}\n "],["\n mutation ReportEvent($input: UsageEventsReportInput!) {\n reportEvent(events: $input)\n}\n "]))),Rs=N(Oi||(Oi=_n(["\n mutation ReportEntitlementCheckRequested($entitlementCheckRequested: EntitlementCheckRequested!) {\n reportEntitlementCheckRequested(\n entitlementCheckRequested: $entitlementCheckRequested\n )\n}\n "],["\n mutation ReportEntitlementCheckRequested($entitlementCheckRequested: EntitlementCheckRequested!) {\n reportEntitlementCheckRequested(\n entitlementCheckRequested: $entitlementCheckRequested\n )\n}\n "]))),Fs=N(Ni||(Ni=_n(["\n mutation CreateSubscription($input: SubscriptionInput!) {\n createSubscription(subscription: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""],["\n mutation CreateSubscription($input: SubscriptionInput!) {\n createSubscription(subscription: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""])),qa,No,Ro,ko,Fo,xo),ks=N(Ri||(Ri=_n(["\n mutation MigrateSubscriptionToLatest($input: SubscriptionMigrationInput!) {\n migrateSubscriptionToLatest(input: $input) {\n subscriptionId\n }\n}\n "],["\n mutation MigrateSubscriptionToLatest($input: SubscriptionMigrationInput!) {\n migrateSubscriptionToLatest(input: $input) {\n subscriptionId\n }\n}\n "]))),xs=N(Fi||(Fi=_n(["\n mutation ArchiveCustomer($input: ArchiveCustomerInput!) {\n archiveCustomer(input: $input) {\n customerId\n }\n}\n "],["\n mutation ArchiveCustomer($input: ArchiveCustomerInput!) {\n archiveCustomer(input: $input) {\n customerId\n }\n}\n "]))),Us=N(ki||(ki=_n(["\n mutation UnarchiveCustomer($input: UnarchiveCustomerInput!) {\n unarchiveCustomer(input: $input) {\n ...SlimCustomerFragment\n }\n}\n ",""],["\n mutation UnarchiveCustomer($input: UnarchiveCustomerInput!) {\n unarchiveCustomer(input: $input) {\n ...SlimCustomerFragment\n }\n}\n ",""])),Po),Ms=N(xi||(xi=_n(["\n mutation TransferSubscription($input: TransferSubscriptionInput!) {\n transferSubscription(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""],["\n mutation TransferSubscription($input: TransferSubscriptionInput!) {\n transferSubscription(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""])),qa,No,Ro,ko,Fo,xo),Ls=N(Ui||(Ui=_n(["\n mutation DelegateSubscriptionToCustomer($input: DelegateSubscriptionToCustomerInput!) {\n delegateSubscriptionToCustomer(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""],["\n mutation DelegateSubscriptionToCustomer($input: DelegateSubscriptionToCustomerInput!) {\n delegateSubscriptionToCustomer(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""])),qa,No,Ro,ko,Fo,xo),js=N(Mi||(Mi=_n(["\n mutation TransferSubscriptionToResource($input: TransferSubscriptionToResourceInput!) {\n transferSubscriptionToResource(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""],["\n mutation TransferSubscriptionToResource($input: TransferSubscriptionToResourceInput!) {\n transferSubscriptionToResource(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""])),qa,No,Ro,ko,Fo,xo),Vs=N(Li||(Li=_n(["\n mutation GrantCredits($input: CreditGrantInput!) {\n createCreditGrant(input: $input) {\n ...CreditGrantFragment\n }\n}\n ","\n",""],["\n mutation GrantCredits($input: CreditGrantInput!) {\n createCreditGrant(input: $input) {\n ...CreditGrantFragment\n }\n}\n ","\n",""])),Ya,Za),Bs=N(ji||(ji=_n(["\n mutation GrantPromotionalEntitlementsGroup($input: GrantPromotionalEntitlementsGroupInput!) {\n grantPromotionalEntitlementsGroup(input: $input) {\n ...PromotionalEntitlementFragment\n }\n}\n ",""],["\n mutation GrantPromotionalEntitlementsGroup($input: GrantPromotionalEntitlementsGroupInput!) {\n grantPromotionalEntitlementsGroup(input: $input) {\n ...PromotionalEntitlementFragment\n }\n}\n ",""])),Ao),Gs=N(Vi||(Vi=_n(["\n mutation RevokePromotionalEntitlementsGroup($input: RevokePromotionalEntitlementsGroupInput!) {\n revokePromotionalEntitlementsGroup(input: $input) {\n ...PromotionalEntitlementFragment\n }\n}\n ",""],["\n mutation RevokePromotionalEntitlementsGroup($input: RevokePromotionalEntitlementsGroupInput!) {\n revokePromotionalEntitlementsGroup(input: $input) {\n ...PromotionalEntitlementFragment\n }\n}\n ",""])),Ao),qs=N(Bi||(Bi=_n(["\n mutation UnlinkPromotionalEntitlementsGroup($input: UnlinkPromotionalEntitlementsGroupInput!) {\n unlinkPromotionalEntitlementsGroup(input: $input) {\n ...PromotionalEntitlementFragment\n }\n}\n ",""],["\n mutation UnlinkPromotionalEntitlementsGroup($input: UnlinkPromotionalEntitlementsGroupInput!) {\n unlinkPromotionalEntitlementsGroup(input: $input) {\n ...PromotionalEntitlementFragment\n }\n}\n ",""])),Ao),$s=N(Gi||(Gi=_n(["\n mutation CreatePaymentSession($input: PaymentSessionInput!) {\n createPaymentSession(input: $input) {\n ...PaymentSessionFragment\n }\n}\n ",""],["\n mutation CreatePaymentSession($input: PaymentSessionInput!) {\n createPaymentSession(input: $input) {\n ...PaymentSessionFragment\n }\n}\n ",""])),es),Qs=N(qi||(qi=_n(["\n mutation VoidCreditGrant($input: VoidCreditGrantInput!) {\n voidCreditGrant(input: $input) {\n ...CreditGrantFragment\n }\n}\n ","\n",""],["\n mutation VoidCreditGrant($input: VoidCreditGrantInput!) {\n voidCreditGrant(input: $input) {\n ...CreditGrantFragment\n }\n}\n ","\n",""])),Ya,Za),Hs=N($i||($i=_n(["\n mutation CreateCoupon($input: CreateCouponInput!) {\n createOneCoupon(input: $input) {\n ...CouponFragment\n }\n}\n ",""],["\n mutation CreateCoupon($input: CreateCouponInput!) {\n createOneCoupon(input: $input) {\n ...CouponFragment\n }\n}\n ",""])),Do),zs=N(Qi||(Qi=_n(["\n mutation SaveAutomaticRechargeConfiguration($input: SaveAutoRechargeSettingsInput!) {\n saveAutoRechargeSettings(input: $input) {\n ...AutoRechargeSettingsFragment\n }\n}\n ",""],["\n mutation SaveAutomaticRechargeConfiguration($input: SaveAutoRechargeSettingsInput!) {\n saveAutoRechargeSettings(input: $input) {\n ...AutoRechargeSettingsFragment\n }\n}\n ",""])),is),Ws=N(Hi||(Hi=_n(["\n query GetCustomerById($input: GetCustomerByRefIdInput!) {\n getCustomerByRefId(input: $input) {\n ...CustomerWithSubscriptionsFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n query GetCustomerById($input: GetCustomerByRefIdInput!) {\n getCustomerByRefId(input: $input) {\n ...CustomerWithSubscriptionsFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),Ko,Oo,Po,Do,Ao,Yo,No,Ro,ko,Fo,xo,Qo,Uo,Mo,qo,Vo,Lo,jo,Bo,Go,$o,zo,Ho,Wo,Zo),Zs=N(zi||(zi=_n(["\n query GetCustomerStatistics($input: GetCustomerByRefIdInput!) {\n getCustomerByRefId(input: $input) {\n ...CustomerStatisticsFragment\n }\n}\n ",""],["\n query GetCustomerStatistics($input: GetCustomerByRefIdInput!) {\n getCustomerByRefId(input: $input) {\n ...CustomerStatisticsFragment\n }\n}\n ",""])),Jo),Ys=N(Wi||(Wi=_n(["\n query GetActiveSubscriptions($input: GetActiveSubscriptionsInput!) {\n getActiveSubscriptions(input: $input) {\n ...SubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n query GetActiveSubscriptions($input: GetActiveSubscriptionsInput!) {\n getActiveSubscriptions(input: $input) {\n ...SubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),Yo,Po,No,Ro,ko,Fo,xo,Qo,Uo,Mo,qo,Vo,Lo,jo,Bo,Go,$o,zo,Ho,Wo,Zo),Ks=N(Zi||(Zi=_n(["\n query GetActiveSubscriptionsList($input: GetActiveSubscriptionsInput!) {\n getActiveSubscriptions(input: $input) {\n ...SlimSubscriptionFragmentV2\n }\n}\n ",""],["\n query GetActiveSubscriptionsList($input: GetActiveSubscriptionsInput!) {\n getActiveSubscriptions(input: $input) {\n ...SlimSubscriptionFragmentV2\n }\n}\n ",""])),wo),Js=N(Yi||(Yi=_n(["\n query GetSubscriptions($filter: SubscriptionQueryFilter, $paging: CursorPaging, $sorting: [SubscriptionQuerySort!]) {\n subscriptions(filter: $filter, paging: $paging, sorting: $sorting) {\n edges {\n node {\n ...SubscriptionQueryFragment\n }\n }\n pageInfo {\n ...PageInfoFragment\n }\n }\n}\n ","\n",""],["\n query GetSubscriptions($filter: SubscriptionQueryFilter, $paging: CursorPaging, $sorting: [SubscriptionQuerySort!]) {\n subscriptions(filter: $filter, paging: $paging, sorting: $sorting) {\n edges {\n node {\n ...SubscriptionQueryFragment\n }\n }\n pageInfo {\n ...PageInfoFragment\n }\n }\n}\n ","\n",""])),Co,ns),Xs=N(Ki||(Ki=_n(["\n query GetSubscription($input: GetSubscriptionInput!) {\n getSubscription(input: $input) {\n ...SubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n query GetSubscription($input: GetSubscriptionInput!) {\n getSubscription(input: $input) {\n ...SubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),Yo,Po,No,Ro,ko,Fo,xo,Qo,Uo,Mo,qo,Vo,Lo,jo,Bo,Go,$o,zo,Ho,Wo,Zo),eu=N(Ji||(Ji=_n(["\n query GetCoupons {\n coupons(filter: {status: {eq: ACTIVE}}, paging: {first: 25}) {\n edges {\n node {\n ...CouponFragment\n }\n }\n }\n}\n ",""],["\n query GetCoupons {\n coupons(filter: {status: {eq: ACTIVE}}, paging: {first: 25}) {\n edges {\n node {\n ...CouponFragment\n }\n }\n }\n}\n ",""])),Do),tu=N(Xi||(Xi=_n(["\n query GetPaywall($input: GetPaywallInput!) {\n paywall(input: $input) {\n ...PaywallFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n query GetPaywall($input: GetPaywallInput!) {\n paywall(input: $input) {\n ...PaywallFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),Va,Qo,Uo,Mo,qo,Vo,Lo,jo,ko,Fo,Bo,Go,$o,Ua,La,Sa,Ia,Ma,Oo,Po,Do,Ao,Yo,No,Ro,xo,zo,Ho,Wo,Zo,ja),nu=N(eo||(eo=_n(["\n query GetEntitlements($query: FetchEntitlementsQuery!) {\n entitlements: cachedEntitlements(query: $query) {\n ...EntitlementFragment\n }\n}\n ","\n","\n",""],["\n query GetEntitlements($query: FetchEntitlementsQuery!) {\n entitlements: cachedEntitlements(query: $query) {\n ...EntitlementFragment\n }\n}\n ","\n","\n",""])),aa,ia,oa),ru=N(to||(to=_n(["\n query GetEntitlementsState($query: FetchEntitlementsQuery!) {\n entitlementsState(query: $query) {\n __typename\n entitlements {\n ...EntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n accessDeniedReason\n }\n}\n ","\n","\n","\n","\n","\n",""],["\n query GetEntitlementsState($query: FetchEntitlementsQuery!) {\n entitlementsState(query: $query) {\n __typename\n entitlements {\n ...EntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n accessDeniedReason\n }\n}\n ","\n","\n","\n","\n","\n",""])),aa,ia,oa,ba,ya,va),iu=N(no||(no=_n(["\n query GetEntitlement($query: FetchEntitlementQuery!) {\n entitlement(query: $query) {\n ...EntitlementFragment\n }\n}\n ","\n","\n",""],["\n query GetEntitlement($query: FetchEntitlementQuery!) {\n entitlement(query: $query) {\n ...EntitlementFragment\n }\n}\n ","\n","\n",""])),aa,ia,oa),ou=N(ro||(ro=_n(["\n query GetEntitlementV2($query: GetEntitlementV2Input!) {\n entitlementV2(query: $query) {\n ...EntitlementUnionFragment\n }\n}\n ","\n","\n","\n","\n",""],["\n query GetEntitlementV2($query: GetEntitlementV2Input!) {\n entitlementV2(query: $query) {\n ...EntitlementUnionFragment\n }\n}\n ","\n","\n","\n","\n",""])),ba,ya,ia,oa,va),au=N(io||(io=_n(["\n query GetProducts {\n products(paging: {first: 20}) {\n edges {\n node {\n ...ProductFragment\n }\n }\n }\n}\n ",""],["\n query GetProducts {\n products(paging: {first: 20}) {\n edges {\n node {\n ...ProductFragment\n }\n }\n }\n}\n ",""])),Uo),su=N(oo||(oo=_n(["\n query GetSdkConfiguration {\n sdkConfiguration {\n sentryDsn\n isWidgetWatermarkEnabled\n showWatermark\n }\n}\n "],["\n query GetSdkConfiguration {\n sdkConfiguration {\n sentryDsn\n isWidgetWatermarkEnabled\n showWatermark\n }\n}\n "]))),uu=N(ao||(ao=_n(["\n query GetCustomerPortalByRefId($input: CustomerPortalInput!) {\n customerPortal(input: $input) {\n ...CustomerPortalFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n query GetCustomerPortalByRefId($input: CustomerPortalInput!) {\n customerPortal(input: $input) {\n ...CustomerPortalFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),Ca,ma,da,fa,ha,Ho,ga,ia,oa,ba,ya,va,Ea,_a,Ta,Sa,Ia,Ro),cu=N(so||(so=_n(["\n query GetCheckoutState($input: CheckoutStateInput!) {\n checkoutState(input: $input) {\n ...CheckoutStateFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n query GetCheckoutState($input: CheckoutStateInput!) {\n checkoutState(input: $input) {\n ...CheckoutStateFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),Aa,wa,Sa,Ia,Oo,Po,Do,Ao,Yo,No,Ro,ko,Fo,xo,Qo,Uo,Mo,qo,Vo,Lo,jo,Bo,Go,$o,zo,Ho,Wo,Zo,Pa,Da),lu=N(uo||(uo=_n(["\n query GetMockPaywall($input: GetPaywallInput!) {\n mockPaywall(input: $input) {\n plans {\n ...MockPaywallPlanFragment\n }\n configuration {\n ...PaywallConfigurationFragment\n }\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n query GetMockPaywall($input: GetPaywallInput!) {\n mockPaywall(input: $input) {\n plans {\n ...MockPaywallPlanFragment\n }\n configuration {\n ...PaywallConfigurationFragment\n }\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),xa,Oa,Vo,Lo,jo,Na,Fo,Fa,Ra,ka,La,Sa,Ia,Ma),pu=N(co||(co=_n(["\n query GetUsageHistory($usageHistoryInput: UsageHistoryInput!) {\n usageHistory(usageHistoryInput: $usageHistoryInput) {\n ...UsageHistoryFragment\n }\n}\n ",""],["\n query GetUsageHistory($usageHistoryInput: UsageHistoryInput!) {\n usageHistory(usageHistoryInput: $usageHistoryInput) {\n ...UsageHistoryFragment\n }\n}\n ",""])),Ba),du=N(lo||(lo=_n(["\n query GetUsageHistoryV2($input: UsageHistoryV2Input!) {\n usageHistoryV2(input: $input) {\n ...UsageHistoryV2Fragment\n }\n}\n ",""],["\n query GetUsageHistoryV2($input: UsageHistoryV2Input!) {\n usageHistoryV2(input: $input) {\n ...UsageHistoryV2Fragment\n }\n}\n ",""])),Ga),fu=N(po||(po=_n(["\n query GetCreditBalance($input: CreditBalanceSummaryInput!) {\n creditBalanceSummary(input: $input) {\n ...CreditsBalanceSummaryFragment\n }\n}\n ","\n",""],["\n query GetCreditBalance($input: CreditBalanceSummaryInput!) {\n creditBalanceSummary(input: $input) {\n ...CreditsBalanceSummaryFragment\n }\n}\n ","\n",""])),Xa,Ja),hu=N(fo||(fo=_n(["\n query GetCreditGrants($input: GetCreditGrantsInput!) {\n creditGrants(input: $input) {\n pageInfo {\n ...PageInfoFragment\n }\n edges {\n node {\n ...CreditGrantFragment\n }\n }\n totalCount\n }\n}\n ","\n","\n",""],["\n query GetCreditGrants($input: GetCreditGrantsInput!) {\n creditGrants(input: $input) {\n pageInfo {\n ...PageInfoFragment\n }\n edges {\n node {\n ...CreditGrantFragment\n }\n }\n totalCount\n }\n}\n ","\n","\n",""])),ns,Ya,Za),mu=N(ho||(ho=_n(["\n query GetCreditLedger($input: CreditLedgerInput!) {\n creditsLedger(input: $input) {\n pageInfo {\n ...PageInfoFragment\n }\n edges {\n node {\n ...CreditLedgerFragment\n }\n cursor\n }\n totalCount\n }\n}\n ","\n",""],["\n query GetCreditLedger($input: CreditLedgerInput!) {\n creditsLedger(input: $input) {\n pageInfo {\n ...PageInfoFragment\n }\n edges {\n node {\n ...CreditLedgerFragment\n }\n cursor\n }\n totalCount\n }\n}\n ","\n",""])),ns,Ka),gu=N(mo||(mo=_n(["\n query GetCreditUsage($input: CreditUsageInput!) {\n creditUsage(input: $input) {\n ...CreditUsageFragment\n }\n}\n ","\n","\n",""],["\n query GetCreditUsage($input: CreditUsageInput!) {\n creditUsage(input: $input) {\n ...CreditUsageFragment\n }\n}\n ","\n","\n",""])),rs,ts,ns),yu=N(go||(go=_n(["\n query GetAutomaticRechargeConfiguration($input: GetAutoRechargeSettingsInput!) {\n getAutoRechargeSettings(input: $input) {\n ...AutoRechargeSettingsFragment\n }\n}\n ",""],["\n query GetAutomaticRechargeConfiguration($input: GetAutoRechargeSettingsInput!) {\n getAutoRechargeSettings(input: $input) {\n ...AutoRechargeSettingsFragment\n }\n}\n ",""])),is),vu=N(yo||(yo=_n(["\n query EstimateEventCost($input: EstimateEventCostInput!) {\n estimateEventCost(input: $input) {\n ...CreditCostEstimationFragment\n }\n}\n ",""],["\n query EstimateEventCost($input: EstimateEventCostInput!) {\n estimateEventCost(input: $input) {\n ...CreditCostEstimationFragment\n }\n}\n ",""])),cs),bu=N(vo||(vo=_n(["\n query EstimateUsageCost($input: EstimateUsageCostInput!) {\n estimateUsageCost(input: $input) {\n ...CreditCostEstimationFragment\n }\n}\n ",""],["\n query EstimateUsageCost($input: EstimateUsageCostInput!) {\n estimateUsageCost(input: $input) {\n ...CreditCostEstimationFragment\n }\n}\n ",""])),cs),Eu=N(bo||(bo=_n(["\n subscription OnEntitlementsUpdated {\n entitlementsUpdated {\n ...EntitlementsUpdatedPayload\n }\n}\n ","\n","\n","\n",""],["\n subscription OnEntitlementsUpdated {\n entitlementsUpdated {\n ...EntitlementsUpdatedPayload\n }\n}\n ","\n","\n","\n",""])),sa,aa,ia,oa),_u=N(Eo||(Eo=_n(["\n subscription OnEntitlementsUpdatedV2 {\n entitlementsUpdatedV2 {\n ...EntitlementsUpdatedV2Payload\n }\n}\n ","\n","\n","\n","\n","\n",""],["\n subscription OnEntitlementsUpdatedV2 {\n entitlementsUpdatedV2 {\n ...EntitlementsUpdatedV2Payload\n }\n}\n ","\n","\n","\n","\n","\n",""])),os,ba,ya,ia,oa,va),Iu=N(_o||(_o=_n(["\n subscription OnUsageUpdated {\n usageUpdated {\n ...EntitlementUsageUpdated\n }\n}\n ","\n","\n","\n","\n",""],["\n subscription OnUsageUpdated {\n usageUpdated {\n ...EntitlementUsageUpdated\n }\n}\n ","\n","\n","\n","\n",""])),ca,ua,aa,ia,oa),Su=N(Io||(Io=_n(["\n subscription OnUsageUpdatedV2 {\n usageUpdatedV2 {\n ...UsageUpdatedV2Payload\n }\n}\n ","\n","\n",""],["\n subscription OnUsageUpdatedV2 {\n usageUpdatedV2 {\n ...UsageUpdatedV2Payload\n }\n}\n ","\n","\n",""])),us,as,ss),Tu=N(So||(So=_n(["\n subscription OnPackagePublished {\n packagePublished {\n ...PackagePublishedPayload\n }\n}\n ",""],["\n subscription OnPackagePublished {\n packagePublished {\n ...PackagePublishedPayload\n }\n}\n ",""])),la),Cu=N(To||(To=_n(["\n subscription OnCreditBalanceUpdated {\n creditBalanceUpdated {\n ...CreditBalanceUpdatedPayload\n }\n}\n ",""],["\n subscription OnCreditBalanceUpdated {\n creditBalanceUpdated {\n ...CreditBalanceUpdatedPayload\n }\n}\n ",""])),pa),wu=function(e,t,n){return e()};function Pu(e,t){return void 0===t&&(t=wu),{ProvisionCustomer:function(n,r){return t(function(t){return e.request(ls,n,In(In({},r),t))},"ProvisionCustomer","mutation")},ImportCustomerBulk:function(n,r){return t(function(t){return e.request(ps,n,In(In({},r),t))},"ImportCustomerBulk","mutation")},ImportCustomer:function(n,r){return t(function(t){return e.request(ds,n,In(In({},r),t))},"ImportCustomer","mutation")},UpdateCustomer:function(n,r){return t(function(t){return e.request(fs,n,In(In({},r),t))},"UpdateCustomer","mutation")},DetachCustomerPaymentMethod:function(n,r){return t(function(t){return e.request(hs,n,In(In({},r),t))},"DetachCustomerPaymentMethod","mutation")},GrantPromotionalEntitlements:function(n,r){return t(function(t){return e.request(ms,n,In(In({},r),t))},"GrantPromotionalEntitlements","mutation")},RevokePromotionalEntitlement:function(n,r){return t(function(t){return e.request(gs,n,In(In({},r),t))},"RevokePromotionalEntitlement","mutation")},ProvisionSubscription:function(n,r){return t(function(t){return e.request(ys,n,In(In({},r),t))},"ProvisionSubscription","mutation")},ApplySubscription:function(n,r){return t(function(t){return e.request(vs,n,In(In({},r),t))},"ApplySubscription","mutation")},ImportSubscriptionsBulk:function(n,r){return t(function(t){return e.request(bs,n,In(In({},r),t))},"ImportSubscriptionsBulk","mutation")},UpdateSubscription:function(n,r){return t(function(t){return e.request(Es,n,In(In({},r),t))},"UpdateSubscription","mutation")},CancelSubscription:function(n,r){return t(function(t){return e.request(_s,n,In(In({},r),t))},"CancelSubscription","mutation")},EstimateSubscription:function(n,r){return t(function(t){return e.request(Is,n,In(In({},r),t))},"EstimateSubscription","mutation")},EstimateSubscriptionUpdate:function(n,r){return t(function(t){return e.request(Ss,n,In(In({},r),t))},"EstimateSubscriptionUpdate","mutation")},PreviewSubscription:function(n,r){return t(function(t){return e.request(Ts,n,In(In({},r),t))},"PreviewSubscription","mutation")},PreviewNextInvoice:function(n,r){return t(function(t){return e.request(Cs,n,In(In({},r),t))},"PreviewNextInvoice","mutation")},CancelSubscriptionUpdates:function(n,r){return t(function(t){return e.request(ws,n,In(In({},r),t))},"CancelSubscriptionUpdates","mutation")},ReportUsage:function(n,r){return t(function(t){return e.request(Ps,n,In(In({},r),t))},"ReportUsage","mutation")},ReportUsageBulk:function(n,r){return t(function(t){return e.request(Ds,n,In(In({},r),t))},"ReportUsageBulk","mutation")},ConsumeCredits:function(n,r){return t(function(t){return e.request(As,n,In(In({},r),t))},"ConsumeCredits","mutation")},ConsumeCreditsAsync:function(n,r){return t(function(t){return e.request(Os,n,In(In({},r),t))},"ConsumeCreditsAsync","mutation")},ReportEvent:function(n,r){return t(function(t){return e.request(Ns,n,In(In({},r),t))},"ReportEvent","mutation")},ReportEntitlementCheckRequested:function(n,r){return t(function(t){return e.request(Rs,n,In(In({},r),t))},"ReportEntitlementCheckRequested","mutation")},CreateSubscription:function(n,r){return t(function(t){return e.request(Fs,n,In(In({},r),t))},"CreateSubscription","mutation")},MigrateSubscriptionToLatest:function(n,r){return t(function(t){return e.request(ks,n,In(In({},r),t))},"MigrateSubscriptionToLatest","mutation")},ArchiveCustomer:function(n,r){return t(function(t){return e.request(xs,n,In(In({},r),t))},"ArchiveCustomer","mutation")},UnarchiveCustomer:function(n,r){return t(function(t){return e.request(Us,n,In(In({},r),t))},"UnarchiveCustomer","mutation")},TransferSubscription:function(n,r){return t(function(t){return e.request(Ms,n,In(In({},r),t))},"TransferSubscription","mutation")},DelegateSubscriptionToCustomer:function(n,r){return t(function(t){return e.request(Ls,n,In(In({},r),t))},"DelegateSubscriptionToCustomer","mutation")},TransferSubscriptionToResource:function(n,r){return t(function(t){return e.request(js,n,In(In({},r),t))},"TransferSubscriptionToResource","mutation")},GrantCredits:function(n,r){return t(function(t){return e.request(Vs,n,In(In({},r),t))},"GrantCredits","mutation")},GrantPromotionalEntitlementsGroup:function(n,r){return t(function(t){return e.request(Bs,n,In(In({},r),t))},"GrantPromotionalEntitlementsGroup","mutation")},RevokePromotionalEntitlementsGroup:function(n,r){return t(function(t){return e.request(Gs,n,In(In({},r),t))},"RevokePromotionalEntitlementsGroup","mutation")},UnlinkPromotionalEntitlementsGroup:function(n,r){return t(function(t){return e.request(qs,n,In(In({},r),t))},"UnlinkPromotionalEntitlementsGroup","mutation")},CreatePaymentSession:function(n,r){return t(function(t){return e.request($s,n,In(In({},r),t))},"CreatePaymentSession","mutation")},VoidCreditGrant:function(n,r){return t(function(t){return e.request(Qs,n,In(In({},r),t))},"VoidCreditGrant","mutation")},CreateCoupon:function(n,r){return t(function(t){return e.request(Hs,n,In(In({},r),t))},"CreateCoupon","mutation")},SaveAutomaticRechargeConfiguration:function(n,r){return t(function(t){return e.request(zs,n,In(In({},r),t))},"SaveAutomaticRechargeConfiguration","mutation")},GetCustomerById:function(n,r){return t(function(t){return e.request(Ws,n,In(In({},r),t))},"GetCustomerById","query")},GetCustomerStatistics:function(n,r){return t(function(t){return e.request(Zs,n,In(In({},r),t))},"GetCustomerStatistics","query")},GetActiveSubscriptions:function(n,r){return t(function(t){return e.request(Ys,n,In(In({},r),t))},"GetActiveSubscriptions","query")},GetActiveSubscriptionsList:function(n,r){return t(function(t){return e.request(Ks,n,In(In({},r),t))},"GetActiveSubscriptionsList","query")},GetSubscriptions:function(n,r){return t(function(t){return e.request(Js,n,In(In({},r),t))},"GetSubscriptions","query")},GetSubscription:function(n,r){return t(function(t){return e.request(Xs,n,In(In({},r),t))},"GetSubscription","query")},GetCoupons:function(n,r){return t(function(t){return e.request(eu,n,In(In({},r),t))},"GetCoupons","query")},GetPaywall:function(n,r){return t(function(t){return e.request(tu,n,In(In({},r),t))},"GetPaywall","query")},GetEntitlements:function(n,r){return t(function(t){return e.request(nu,n,In(In({},r),t))},"GetEntitlements","query")},GetEntitlementsState:function(n,r){return t(function(t){return e.request(ru,n,In(In({},r),t))},"GetEntitlementsState","query")},GetEntitlement:function(n,r){return t(function(t){return e.request(iu,n,In(In({},r),t))},"GetEntitlement","query")},GetEntitlementV2:function(n,r){return t(function(t){return e.request(ou,n,In(In({},r),t))},"GetEntitlementV2","query")},GetProducts:function(n,r){return t(function(t){return e.request(au,n,In(In({},r),t))},"GetProducts","query")},GetSdkConfiguration:function(n,r){return t(function(t){return e.request(su,n,In(In({},r),t))},"GetSdkConfiguration","query")},GetCustomerPortalByRefId:function(n,r){return t(function(t){return e.request(uu,n,In(In({},r),t))},"GetCustomerPortalByRefId","query")},GetCheckoutState:function(n,r){return t(function(t){return e.request(cu,n,In(In({},r),t))},"GetCheckoutState","query")},GetMockPaywall:function(n,r){return t(function(t){return e.request(lu,n,In(In({},r),t))},"GetMockPaywall","query")},GetUsageHistory:function(n,r){return t(function(t){return e.request(pu,n,In(In({},r),t))},"GetUsageHistory","query")},GetUsageHistoryV2:function(n,r){return t(function(t){return e.request(du,n,In(In({},r),t))},"GetUsageHistoryV2","query")},GetCreditBalance:function(n,r){return t(function(t){return e.request(fu,n,In(In({},r),t))},"GetCreditBalance","query")},GetCreditGrants:function(n,r){return t(function(t){return e.request(hu,n,In(In({},r),t))},"GetCreditGrants","query")},GetCreditLedger:function(n,r){return t(function(t){return e.request(mu,n,In(In({},r),t))},"GetCreditLedger","query")},GetCreditUsage:function(n,r){return t(function(t){return e.request(gu,n,In(In({},r),t))},"GetCreditUsage","query")},GetAutomaticRechargeConfiguration:function(n,r){return t(function(t){return e.request(yu,n,In(In({},r),t))},"GetAutomaticRechargeConfiguration","query")},EstimateEventCost:function(n,r){return t(function(t){return e.request(vu,n,In(In({},r),t))},"EstimateEventCost","query")},EstimateUsageCost:function(n,r){return t(function(t){return e.request(bu,n,In(In({},r),t))},"EstimateUsageCost","query")},OnEntitlementsUpdated:function(n,r){return t(function(t){return e.request(Eu,n,In(In({},r),t))},"OnEntitlementsUpdated","subscription")},OnEntitlementsUpdatedV2:function(n,r){return t(function(t){return e.request(_u,n,In(In({},r),t))},"OnEntitlementsUpdatedV2","subscription")},OnUsageUpdated:function(n,r){return t(function(t){return e.request(Iu,n,In(In({},r),t))},"OnUsageUpdated","subscription")},OnUsageUpdatedV2:function(n,r){return t(function(t){return e.request(Su,n,In(In({},r),t))},"OnUsageUpdatedV2","subscription")},OnPackagePublished:function(n,r){return t(function(t){return e.request(Tu,n,In(In({},r),t))},"OnPackagePublished","subscription")},OnCreditBalanceUpdated:function(n,r){return t(function(t){return e.request(Cu,n,In(In({},r),t))},"OnCreditBalanceUpdated","subscription")}}}var Du=n(6647),Au={createClient:function(e){var t=e.apiUrl,n=void 0===t?"https://api.stigg.io/graphql":t;return Pu(new Du.GraphQLClient(n,{headers:{"X-API-KEY":e.apiKey}}),function(e,t,n){return e({"x-graphql-operation-name":t})})}};function Ou(e){return"FeatureEntitlement"===e.__typename}function Nu(e){return"CreditEntitlement"===e.__typename}function Ru(e){return"FeatureEntitlementWithSummary"===(null==e?void 0:e.__typename)}function Fu(e){return"CreditEntitlementWithSummary"===(null==e?void 0:e.__typename)}var ku,xu=n(1886),Uu=n.n(xu);!function(e){e.ALL="ALL",e.NONE="NONE",e.LOG="LOG",e.ERROR="ERROR"}(ku||(ku={}));var Mu=function(){function e(e,t){this.logger=e,this.logLevel=t}return e.prototype.error=function(e,t){this.logLevel!==ku.NONE&&this.logger.error("[Stigg] ".concat(e),t||{})},e.prototype.log=function(e,t){Uu()([ku.ERROR,ku.NONE],this.logLevel)||this.logger.log("[Stigg] ".concat(e),t||{})},e.prototype.debug=function(e,t){Uu()([ku.LOG,ku.ALL],this.logLevel)&&this.logger.debug("[Stigg] ".concat(e),t||{})},e}(),Lu=Ft.JsClientSdk,ju="js-client-sdk",Vu=["localhost","127.0.0.1","::1"],Bu=function(){var e="https://api.stigg.io";return{baseUri:e,baseEdgeUri:$u(e),logConfiguration:{logger:console,logLevel:ku.ERROR},enableEdge:!0,cacheTtlMs:3e4}};function Gu(e,t){if(p()(e.apiKey)&&!e.offline){var n="You must configure the client with an SDK key";throw t.error(n),new Error(n)}}function qu(e){var t=Bu(),n=e.baseEdgeUri?e.baseEdgeUri:e.baseUri?$u(e.baseUri):t.baseEdgeUri,r=e.cacheTtlMs||e.entitlementPollingInterval;return f()(t,e,{baseEdgeUri:n,cacheTtlMs:r})}function $u(e){var t=new URL(e);return Vu.includes(t.hostname)?t.port="3060":t.hostname="edge.".concat(t.hostname),t.toString().slice(0,-1)}function Qu(e){var t=e.customerId;if(!t||p()(t))throw new Error("You must set customer ID first, use setCustomerId function or pass it via the constructor");return t}var Hu=n(6635);const zu=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getSdkConfiguration=function(){return this.edgeApiClient?this.edgeApiClient.getSdkConfiguration():this.client.query({query:su})},e}();var Wu=function(){return Wu=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},Wu.apply(this,arguments)},Zu=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getPaywall=function(e){var t=e.productId,n=e.customerId,r=e.resourceId,i=e.context,o=e.billingCountryCode,a=e.includeHiddenPlans;return!n&&this.edgeApiClient?this.edgeApiClient.getPaywall(t,o,a):this.client.query({query:tu,fetchPolicy:"no-cache",variables:{input:Wu(Wu(Wu(Wu(Wu(Wu({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{resourceId:r}:{}),i?{context:i}:{}),o?{billingCountryCode:o}:{}),a?{includeHiddenPlans:a}:{})}})},e}();const Yu=Zu;var Ku=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})},Ju=function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};const Xu=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getCustomer=function(e){return this.client.query({query:Ws,variables:{input:{customerId:e}},fetchPolicy:"no-cache"})},e.prototype.getActiveSubscriptions=function(e,t){return Ku(this,void 0,void 0,function(){return Ju(this,function(n){return[2,this.client.query({query:Ys,variables:{input:(0,Hu.isArray)(t)?{customerId:e,resourceIds:t}:{customerId:e,resourceId:t}},fetchPolicy:"no-cache"})]})})},e.prototype.getActiveSubscriptionsList=function(e,t){return Ku(this,void 0,void 0,function(){return Ju(this,function(n){return this.edgeApiClient?[2,this.edgeApiClient.getActiveSubscriptionsList(e,t)]:[2,this.client.query({query:Ks,variables:{input:(0,Hu.isArray)(t)?{customerId:e,resourceIds:t}:{customerId:e,resourceId:t}},fetchPolicy:"no-cache"})]})})},e.prototype.getSubscription=function(e){return Ku(this,void 0,void 0,function(){return Ju(this,function(t){return[2,this.client.query({query:Xs,variables:{input:{subscriptionId:e}},fetchPolicy:"no-cache"})]})})},e.prototype.getCustomerPortal=function(e,t,n){return this.client.query({query:uu,variables:{input:{customerId:e,resourceId:t,productId:n}},fetchPolicy:"no-cache"})},e.prototype.fetchUsageHistory=function(e){return Ku(this,arguments,void 0,function(e){var t=e.customerId,n=e.resourceId,r=e.endDate,i=e.startDate,o=e.featureId;return Ju(this,function(e){return[2,this.client.query({query:pu,variables:{usageHistoryInput:{customerRefId:t,featureRefId:o,resourceRefId:n,startDate:i,endDate:r||new Date}},fetchPolicy:"no-cache"})]})})},e}(),ec=function(){function e(e){this.client=e}return e.prototype.getCoupons=function(){return this.client.query({query:eu,fetchPolicy:"no-cache"})},e}();var 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},tc.apply(this,arguments)},nc=function(){function e(e){this.client=e}return e.prototype.applySubscription=function(e){var t=e.customerId,n=e.payingCustomerId,r=e.planId,i=e.paymentMethodId,o=e.addons,a=e.billableFeatures,s=e.billingInformation,u=e.billingCountryCode,c=e.billingId,l=e.billingPeriod,p=e.metadata,d=e.promotionCode,f=e.resourceId,h=e.skipTrial,m=e.startDate,g=e.unitQuantity,y=e.scheduleStrategy,v=e.billingCycleAnchor;return this.client.mutate({mutation:vs,variables:{input:{customerId:t,payingCustomerId:n,planId:r,paymentMethodId:i,startDate:m,addons:o,billingId:c,billingPeriod:l,unitQuantity:g,billableFeatures:a,additionalMetaData:p,resourceId:f,skipTrial:h,promotionCode:d,billingInformation:this.mapBillingInformation(s),billingCountryCode:u,scheduleStrategy:y,billingCycleAnchor:v}}})},e.prototype.getSubscriptions=function(e,t,n,r){return i=this,o=arguments,s=function(e,t,n,r,i){return void 0===i&&(i={limit:10}),function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,function(o){return[2,this.client.query({query:Js,variables:tc({filter:tc(tc(tc(tc({},e?{customerId:{eq:e}}:{}),t?{resourceId:(0,Hu.isArray)(t)?{in:t}:{eq:t}}:{}),n?{status:(0,Hu.isArray)(n)?{in:n}:{eq:n}}:{}),r?{productId:(0,Hu.isArray)(r)?{in:r}:{eq:r}}:{})},i?{paging:tc({},i.startingAfter?{first:i.limit,after:i.startingAfter}:i.endingBefore?{last:i.limit,before:i.endingBefore}:{first:i.limit})}:{}),fetchPolicy:"no-cache"})]})},new((a=void 0)||(a=Promise))(function(e,t){function n(e){try{u(s.next(e))}catch(e){t(e)}}function r(e){try{u(s.throw(e))}catch(e){t(e)}}function u(t){var i;t.done?e(t.value):(i=t.value,i instanceof a?i:new a(function(e){e(i)})).then(n,r)}u((s=s.apply(i,o||[])).next())});var i,o,a,s},e.prototype.checkoutState=function(e){var t=e.customerId,n=e.resourceId,r=e.planId,i=e.billingCountryCode;return this.client.query({query:cu,fetchPolicy:"no-cache",variables:{input:tc(tc({planId:r,customerId:t},n?{resourceId:n}:{}),i?{billingCountryCode:i}:{})}})},e.prototype.mapBillingInformation=function(e){if(e)return{taxRateIds:null==e?void 0:e.taxRateIds,billingAddress:null==e?void 0:e.billingAddress,integrationId:null==e?void 0:e.integrationId,prorationBehavior:null==e?void 0:e.prorationBehavior,taxIds:null==e?void 0:e.taxIds}},e}();const rc=nc;var ic=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})},oc=function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},ac=function(){function e(e){this.client=e}return e.prototype.estimateSubscription=function(e){return ic(this,void 0,void 0,function(){var t,n;return oc(this,function(r){return[2,this.client.mutate({mutation:Is,variables:{input:{resourceId:e.resourceId,planId:e.planId,customerId:e.customerId,payingCustomerId:e.payingCustomerId,startDate:e.startDate,addons:e.addons,billingPeriod:e.billingPeriod,priceUnitAmount:e.unitQuantity,billableFeatures:e.billableFeatures,billingInformation:{taxRateIds:null===(t=null==e?void 0:e.billingInformation)||void 0===t?void 0:t.taxRateIds,taxPercentage:null===(n=null==e?void 0:e.billingInformation)||void 0===n?void 0:n.taxPercentage},promotionCode:e.promotionCode,billingCountryCode:e.billingCountryCode,skipTrial:e.skipTrial}}})]})})},e.prototype.estimateSubscriptionUpdate=function(e){return ic(this,void 0,void 0,function(){return oc(this,function(t){return[2,this.client.mutate({mutation:Ss,variables:{input:{subscriptionId:e.subscriptionId,unitQuantity:e.unitQuantity,billableFeatures:e.billableFeatures,addons:e.addons,promotionCode:e.promotionCode}}})]})})},e.prototype.previewNextInvoice=function(e){return ic(this,void 0,void 0,function(){return oc(this,function(t){return[2,this.client.mutate({mutation:Cs,fetchPolicy:"no-cache",variables:{input:{subscriptionId:e.subscriptionId}}})]})})},e.prototype.previewSubscription=function(e){return ic(this,void 0,void 0,function(){return oc(this,function(t){return[2,this.client.mutate({mutation:Ts,fetchPolicy:"no-cache",variables:{input:{planId:e.planId,customerId:e.customerId,payingCustomerId:e.payingCustomerId,resourceId:e.resourceId,startDate:e.startDate,addons:e.addons,billingPeriod:e.billingPeriod,billableFeatures:e.billableFeatures,promotionCode:e.promotionCode,scheduleStrategy:e.scheduleStrategy,billingCountryCode:e.billingCountryCode,billingInformation:null==e?void 0:e.billingInformation,billingCycleAnchor:e.billingCycleAnchor}}})]})})},e}();const sc=ac;var uc=function(){return uc=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},uc.apply(this,arguments)},cc=function(){function e(e){this.client=e}return e.prototype.getMockPaywall=function(e){var t=e.productId,n=e.customerId,r=e.context;return this.client.query({query:lu,fetchPolicy:"no-cache",variables:{input:uc(uc(uc({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{context:r}:{})}})},e}();const lc=cc;var pc=function(){function e(e){this.client=e}return e.prototype.getUsageHistoryV2=function(e){return t=this,n=void 0,i=function(){return function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,function(t){return[2,this.client.query({query:du,variables:{input:e},fetchPolicy:"no-cache"})]})},new((r=void 0)||(r=Promise))(function(e,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r(function(e){e(n)})).then(a,s)}u((i=i.apply(t,n||[])).next())});var t,n,r,i},e}(),dc=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})},fc=function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};const hc=function(){function e(e){this.client=e}return e.prototype.getCreditBalance=function(e){return dc(this,void 0,void 0,function(){return fc(this,function(t){return[2,this.client.query({query:fu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.getCreditGrants=function(e){return dc(this,void 0,void 0,function(){return fc(this,function(t){return[2,this.client.query({query:hu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.getCreditLedger=function(e){return dc(this,void 0,void 0,function(){return fc(this,function(t){return[2,this.client.query({query:mu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.getCreditUsage=function(e){return dc(this,void 0,void 0,function(){return fc(this,function(t){return[2,this.client.query({query:gu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.estimateEventCost=function(e){return dc(this,void 0,void 0,function(){return fc(this,function(t){return[2,this.client.query({query:vu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.estimateUsageCost=function(e){return dc(this,void 0,void 0,function(){return fc(this,function(t){return[2,this.client.query({query:bu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e}(),mc=function(){function e(e){this.client=e}return e.prototype.createPaymentSession=function(e){return this.client.mutate({mutation:$s,variables:{input:e}})},e}();var gc=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})},yc=function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};const vc=function(){function e(e){this.client=e}return e.prototype.getConfiguration=function(e){return gc(this,void 0,void 0,function(){return yc(this,function(t){return[2,this.client.query({query:yu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.saveConfiguration=function(e){return gc(this,void 0,void 0,function(){return yc(this,function(t){return[2,this.client.mutate({mutation:zs,variables:{input:e}})]})})},e}(),bc=function(e,t){this.sdkConfiguration=new zu(e,t),this.paywall=new Yu(e,t),this.subscriptions=new rc(e),this.mockPaywall=new lc(e),this.customers=new Xu(e,t),this.coupons=new ec(e),this.subscriptionEstimations=new sc(e),this.usageHistoryApi=new pc(e),this.credits=new hc(e),this.checkout=new mc(e),this.automaticRecharge=new vc(e)};var Ec="Invariant Violation",_c=Object.setPrototypeOf,Ic=void 0===_c?function(e,t){return e.__proto__=t,e}:_c,Sc=function(e){function t(n){void 0===n&&(n=Ec);var r=e.call(this,"number"==typeof n?Ec+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=Ec,Ic(r,t.prototype),r}return m(t,e),t}(Error);function Tc(e,t){if(!e)throw new Sc(t)}var Cc=["debug","log","warn","error","silent"],wc=Cc.indexOf("log");function Pc(e){return function(){if(Cc.indexOf(e)>=wc)return(console[e]||console.log).apply(console,arguments)}}function Dc(e){try{return e()}catch(e){}}!function(e){e.debug=Pc("debug"),e.log=Pc("log"),e.warn=Pc("warn"),e.error=Pc("error")}(Tc||(Tc={}));const Ac=Dc(function(){return globalThis})||Dc(function(){return window})||Dc(function(){return self})||Dc(function(){return n.g})||Dc(function(){return Function("return this")()});var Oc="__",Nc=[Oc,Oc].join("DEV");const Rc=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(Ac,Nc,{value:"production"!==Dc(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),Ac[Nc]}}();function Fc(e){try{return e()}catch(e){}}var kc=Fc(function(){return globalThis})||Fc(function(){return window})||Fc(function(){return self})||Fc(function(){return n.g})||Fc(function(){return Fc.constructor("return this")()}),xc=!1;function Uc(e){return Array.isArray(e)&&e.length>0}!kc||Fc(function(){return"production"})||Fc(function(){return process})||(Object.defineProperty(kc,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),xc=!0),n(4957).H,xc&&(delete kc.process,xc=!1),__DEV__?Tc("boolean"==typeof Rc,Rc):Tc("boolean"==typeof Rc,38);var Mc=function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.clientErrors,s=n.networkError,u=n.errorMessage,c=n.extraInfo,l=e.call(this,u)||this;return l.graphQLErrors=o||[],l.clientErrors=a||[],l.networkError=s||null,l.message=u||(i="",(Uc((r=l).graphQLErrors)||Uc(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$/,"")),l.extraInfo=c,l.__proto__=t.prototype,l}return m(t,e),t}(Error),Lc=(n(3616),n(3591)),jc=fetch,Vc=n.n(Lc)()(fetch,{retryOn:function(e,t,n){return!(e>5)&&(null!==t||!(null==n?void 0:n.status)||n.status>=500)},retryDelay:function(e){return 1e3*Math.pow(2,e)}}),Bc=function(){function e(e,t){this.config=e,this.dynamicData=t}return e.create=function(t,n){return t.enableEdge?new e(t,n):null},e.prototype.getPaywall=function(e,t,n){var r=e?"/p/".concat(e):"",i=t?"billingCountryCode=".concat(t):"",o=n?"&includeHiddenPlans=".concat(n):"";return this.get("/v1".concat(r,"/paywall.json?").concat(i).concat(o))},e.prototype.getEntitlementsState=function(e,t){var n=t?"?resourceId=".concat(t):"";return this.get("/v1/c/".concat(e,"/entitlements-state.json").concat(n))},e.prototype.getActiveSubscriptionsList=function(e,t){var n=new URLSearchParams;(0,Hu.isString)(t)?n.set("resourceId",t):(0,Hu.isArray)(t)&&t.forEach(function(e){return n.append("resourceIds",e)});var r="/v1/c/".concat(e,"/subscriptions.json?").concat(n.toString());return this.get(r)},e.prototype.getSdkConfiguration=function(){return this.get("/v1/config/client-sdk-configuration.json")},e.prototype.get=function(e){return t=this,n=void 0,i=function(){var t,n,r,i,o;return function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,function(a){switch(a.label){case 0:return(t=new Headers).append("X-API-KEY",this.config.apiKey),t.append("X-API-VERSION","1"),t.append("source",Lu),(n=this.dynamicData.customerToken)&&t.append("X-CUSTOMER-KEY",n),[4,Vc("".concat(this.config.baseEdgeUri).concat(e),{headers:t,method:"GET"})];case 1:if(!(r=a.sent()).ok)throw(i=new Error("Failed to fetch data from Edge. Reason: ".concat(r.statusText))).response=r,i;return[4,r.json()];case 2:if(o=a.sent(),!p()(o.errors))throw new Mc({graphQLErrors:o.errors});return[2,o]}})},new((r=void 0)||(r=Promise))(function(e,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r(function(e){e(n)})).then(a,s)}u((i=i.apply(t,n||[])).next())});var t,n,r,i},e}();function Gc(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 qc(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 $c(e,t,n){return t&&qc(e.prototype,t),n&&qc(e,n),e}var Qc=function(){return"function"==typeof Symbol},Hc=function(e){return Qc()&&Boolean(Symbol[e])},zc=function(e){return Hc(e)?Symbol[e]:"@@"+e};Qc()&&!Hc("observable")&&(Symbol.observable=Symbol("observable"));var Wc=zc("iterator"),Zc=zc("observable"),Yc=zc("species");function Kc(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function Jc(e){var t=e.constructor;return void 0!==t&&null===(t=t[Yc])&&(t=void 0),void 0!==t?t:ul}function Xc(e){return e instanceof ul}function el(e){el.log?el.log(e):setTimeout(function(){throw e})}function tl(e){Promise.resolve().then(function(){try{e()}catch(e){el(e)}})}function nl(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=Kc(t,"unsubscribe");n&&n.call(t)}}catch(e){el(e)}}function rl(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function il(e,t,n){e._state="running";var r=e._observer;try{var i=Kc(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(rl(e),!i)throw n;i.call(r,n);break;case"complete":rl(e),i&&i.call(r)}}catch(e){el(e)}"closed"===e._state?nl(e):"running"===e._state&&(e._state="ready")}function ol(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 tl(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(il(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)})):void il(e,t,n);e._queue.push({type:t,value:n})}}var al=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new sl(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&&(rl(this),nl(this))},$c(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),sl=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){ol(this._subscription,"next",e)},t.error=function(e){ol(this._subscription,"error",e)},t.complete=function(){ol(this._subscription,"complete")},$c(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),ul=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 al(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,o)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}})},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Jc(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(Jc(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=Jc(this),r=arguments.length>1,i=!1,o=arguments[1];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=Jc(this);return new i(function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(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=Jc(this);return new n(function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[Zc]=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=Kc(t,Zc);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return Xc(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(Hc("iterator")&&(r=Kc(t,Wc)))return new n(function(e){tl(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 Gc(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)?Gc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){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 o=n.value;if(e.next(o),e.closed)return}e.complete()}})});if(Array.isArray(t))return new n(function(e){tl(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];return new("function"==typeof this?this:e)(function(e){tl(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},$c(e,null,[{key:Yc,get:function(){return this}}]),e}();function cl(e){return null!==e&&"object"==typeof e}function ll(e,t){var n=t,r=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new Sc("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 Sc(43);"FragmentDefinition"===e.kind&&r.push(e)}),void 0===n&&(__DEV__?Tc(1===r.length,"Found "+r.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):Tc(1===r.length,44),n=r[0].name.value),g(g({},e),{definitions:E([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function pl(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function dl(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?Tc(n,"No fragment named "+e.name.value+"."):Tc(n,45),n;default:return null}}function fl(e){return{__ref:String(e)}}function hl(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function ml(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 ml(i,e.name,e.value,r)}),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(e){var n={};return ml(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 Sc('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new Sc(54);e[t.value]=null}}Qc()&&Object.defineProperty(ul,Symbol("extensions"),{value:{symbol:Zc,hostReportError:el},configurable:!0});var gl=["connection","include","skip","client","rest","export"],yl=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+"("+vl(i)+")"}return n.connection.key}var o=e;if(t){var a=vl(t);o+="("+a+")"}return n&&Object.keys(n).forEach(function(e){-1===gl.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@"+e+"("+vl(n[e])+")":o+="@"+e)}),o},{setStringify:function(e){var t=vl;return vl=e,t}}),vl=function(e){return JSON.stringify(e,bl)};function bl(e,t){return cl(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{})),t}function El(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){var r=e.name,i=e.value;return ml(n,r,i,t)}),n}return null}function _l(e){return e.alias?e.alias.value:e.name.value}function Il(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var o=i[r];if(Sl(o)){if("__typename"===o.name.value)return e[_l(o)]}else{var a=Il(e,dl(o,n).selectionSet,n);if("string"==typeof a)return a}}}function Sl(e){return"Field"===e.kind}function Tl(e){return"InlineFragment"===e.kind}function Cl(e){__DEV__?Tc(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'):Tc(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 Sc('Schema type definitions not allowed in queries. Found: "'+e.kind+'"'):new Sc(47);return e});return __DEV__?Tc(t.length<=1,"Ambiguous GraphQL document: contains "+t.length+" operations"):Tc(t.length<=1,48),e}function wl(e){return Cl(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function Pl(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function Dl(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function Al(e){var t=wl(e);return __DEV__?Tc(t&&"query"===t.operation,"Must contain a query definition."):Tc(t&&"query"===t.operation,49),t}function Ol(e){var t;Cl(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw __DEV__?new Sc("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new Sc(53)}function Nl(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(e){e.defaultValue&&ml(t,e.variable.name,e.defaultValue)}),t}function Rl(e,t){return t?t(e):ul.of()}function Fl(e){return"function"==typeof e?new Ul(e):e}function kl(e){return e.request.length<=1}var xl=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return m(t,e),t}(Error),Ul=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return ul.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(Fl).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i=Fl(n),o=Fl(r||new e(Rl));return kl(i)&&kl(o)?new e(function(e){return t(e)?i.request(e)||ul.of():o.request(e)||ul.of()}):new e(function(e,n){return t(e)?i.request(e,n)||ul.of():o.request(e,n)||ul.of()})},e.execute=function(e,t){return e.request(function(e,t){var n=g({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=g(g({},n),"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return g({},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?Pl(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 Sc("illegal argument: "+i):new Sc(26)}return e}(t))))||ul.of()},e.concat=function(t,n){var r=Fl(t);if(kl(r))return __DEV__&&Tc.warn(new xl("You are calling concat on a terminating link, which will have no effect",r)),r;var i=Fl(n);return kl(i)?new e(function(e){return r.request(e,function(e){return i.request(e)||ul.of()})||ul.of()}):new e(function(e,t){return r.request(e,function(e){return i.request(e,t)||ul.of()})||ul.of()})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(Rl)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new Sc("request is not implemented"):new Sc(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}(),Ml=n(8867),Ll=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new Sc("Network request failed. "+t+" is not serializable: "+e.message):new Sc(23);throw r.parseError=e,r}return n},jl=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},Vl=Object.prototype.hasOwnProperty,Bl=n(9054),Gl={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}};function ql(e){if(e){var t=Object.create(null);return Object.keys(Object(e)).forEach(function(n){t[n.toLowerCase()]=e[n]}),t}return e}function $l(e){return new ul(function(t){t.error(e)})}var Ql=Dc(function(){return fetch}),Hl=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,o=e.useGETForQueries,a=e.includeUnusedVariables,s=void 0!==a&&a,u=y(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new Sc("\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 Sc(22)}(r||Ql);var c={http:{includeExtensions:i},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new Ul(function(e){var t=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(e,n),i=e.getContext(),a={};if(i.clientAwareness){var u=i.clientAwareness,l=u.name,p=u.version;l&&(a["apollographql-client-name"]=l),p&&(a["apollographql-client-version"]=p)}var d,f=g(g({},a),i.headers),h={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:f},m=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=g(g({},t.options),{headers:t.headers,credentials:t.credentials}),o=t.http||{};n.forEach(function(e){i=g(g(g({},i),e.options),{headers:g(g({},i.headers),ql(e.headers))}),e.credentials&&(i.credentials=e.credentials),o=g(g({},o),e.http)});var a=e.operationName,s=e.extensions,u=e.variables,c=e.query,l={operationName:a,variables:u};return o.includeExtensions&&(l.extensions=s),o.includeQuery&&(l.query=(0,Bl.S)(c)),{options:i,body:l}}(e,Gl,c,h),y=m.options,v=m.body;if(v.variables&&!s){var b=new Set(Object.keys(v.variables));(0,Ml.Vn)(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&b.delete(e.name.value)}}),b.size&&(v.variables=g({},v.variables),b.forEach(function(e){delete v.variables[e]}))}if(!y.signal){var E=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),_=E.controller,I=E.signal;(d=_)&&(y.signal=I)}if(o&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(y.method="GET"),"GET"===y.method){var S=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=Ll(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=Ll(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",o)}var a="",s=e,u=e.indexOf("#");-1!==u&&(a=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+n.join("&")+a}}(t,v),T=S.newURI,C=S.parseError;if(C)return $l(C);t=T}else try{y.body=Ll(v,"Payload")}catch(C){return $l(C)}return new ul(function(n){var i;return(r||Dc(function(){return fetch})||Ql)(t,y).then(function(t){return e.setContext({response:t}),t}).then((i=e,function(e){return e.text().then(function(t){try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}).then(function(t){return e.status>=300&&jl(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||Vl.call(t,"data")||Vl.call(t,"errors")||jl(e,t,"Server response was missing for query '"+(Array.isArray(i)?i.map(function(e){return e.operationName}):i.operationName)+"'."),t})})).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(){d&&d.abort()}})})}(t).request)||this;return n.options=t,n}return m(t,e),t}(Ul),zl=Ul.execute;function Wl(){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}const{toString:Zl,hasOwnProperty:Yl}=Object.prototype,Kl=Function.prototype.toString,Jl=new Map;function Xl(e,t){try{return ep(e,t)}finally{Jl.clear()}}function ep(e,t){if(e===t)return!0;const n=Zl.call(e);if(n!==Zl.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(ip(e,t))return!0;const n=tp(e),r=tp(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;++e)if(!Yl.call(t,n[e]))return!1;for(let r=0;r<i;++r){const i=n[r];if(!ep(e[i],t[i]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(ip(e,t))return!0;const r=e.entries(),i="[object Map]"===n;for(;;){const e=r.next();if(e.done)break;const[n,o]=e.value;if(!t.has(n))return!1;if(i&&!ep(o,t.get(n)))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]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let n=e.byteLength;if(n===t.byteLength)for(;n--&&e[n]===t[n];);return-1===n}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const n=Kl.call(e);return n===Kl.call(t)&&!function(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(n,rp)}}return!1}function tp(e){return Object.keys(e).filter(np,e)}function np(e){return void 0!==this[e]}const rp="{ [native code] }";function ip(e,t){let n=Jl.get(e);if(n){if(n.has(t))return!0}else Jl.set(e,n=new Set);return n.add(t),!1}var op,ap,sp=function(){return Object.create(null)},up=Array.prototype,cp=up.forEach,lp=up.slice,pp=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=sp),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 cp.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(lp.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}(),dp="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),fp="function"==typeof WeakSet,hp="function"==typeof Symbol&&"function"==typeof Symbol.for,mp=function(){function e(){this.known=new(fp?WeakSet:Set),this.pool=new pp(dp),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return cl(e)&&this.known.has(e)},e.prototype.pass=function(e){if(cl(e)){var t=function(e){return cl(e)?Array.isArray(e)?e.slice(0):g({__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(cl(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),o=[i],a=this.sortedKeys(e);o.push(a.json);var s,u=o.length;if(a.sorted.forEach(function(n){o.push(t.admit(e[n]))}),!(s=this.pool.lookupArray(o)).object){var c=s.object=Object.create(i);this.known.add(c),a.sorted.forEach(function(e,t){c[e]=o[u+t]}),__DEV__&&Object.freeze(c)}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}(),gp=Object.assign(function(e){if(cl(e)){void 0===op&&yp();var t=op.admit(e),n=ap.get(t);return void 0===n&&ap.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)},{reset:yp});function yp(){op=new mp,ap=new(dp?WeakMap:Map)}function vp(e,t,n){return new ul(function(r){var i=r.next,o=r.error,a=r.complete,s=0,u=!1,c={then:function(e){return new Promise(function(t){return t(e())})}};function l(e,t){return e?function(t){++s;var n=function(){return e(t)};c=c.then(n,n).then(function(e){--s,i&&i.call(r,e),u&&p.complete()},function(e){throw--s,e}).catch(function(e){o&&o.call(r,e)})}:function(e){return t&&t.call(r,e)}}var p={next:l(t,i),error:l(n,o),complete:function(){u=!0,s||a&&a.call(r)}},d=e.subscribe(p);return function(){return d.unsubscribe()}})}function bp(e){return e.errors&&e.errors.length>0||!1}function Ep(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 _p={kind:"Field",name:{kind:"Name",value:"__typename"}};function Ip(e,t){return e.selectionSet.selections.every(function(e){return"FragmentSpread"===e.kind&&Ip(t[e.name.value],t)})}function Sp(e){return Ip(wl(e)||function(e){__DEV__?Tc("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'):Tc("Document"===e.kind,50),__DEV__?Tc(e.definitions.length<=1,"Fragment must have exactly one definition."):Tc(e.definitions.length<=1,51);var t=e.definitions[0];return __DEV__?Tc("FragmentDefinition"===t.kind,"Must be a fragment definition."):Tc("FragmentDefinition"===t.kind,52),t}(e),pl(Dl(e)))?null:e}function Tp(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function Cp(e,t){var n=Object.create(null),r=[],i=Object.create(null),o=[],a=Sp((0,Ml.Vn)(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(Tp(e)))return t.arguments&&t.arguments.forEach(function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})}),t.selectionSet&&Dp(t.selectionSet).forEach(function(e){o.push({name:e.name.value})}),null}},FragmentSpread:{enter:function(e){i[e.name.value]=!0}},Directive:{enter:function(t){if(Tp(e)(t))return null}}}));return a&&Ep(r,function(e){return!!e.name&&!n[e.name]}).length&&(a=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 Sp((0,Ml.Vn)(t,{OperationDefinition:{enter:function(t){return g(g({},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,a)),a&&Ep(o,function(e){return!!e.name&&!i[e.name]}).length&&(a=function(e,t){function n(t){if(e.some(function(e){return e.name===t.name.value}))return null}return Sp((0,Ml.Vn)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(o,a)),a}var wp=Object.assign(function(e){return(0,Ml.Vn)(Cl(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some(function(e){return Sl(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var i=n;if(!(Sl(i)&&i.directives&&i.directives.some(function(e){return"export"===e.name.value})))return g(g({},e),{selections:E(E([],r,!0),[_p],!1)})}}}}})},{added:function(e){return e===_p}}),Pp={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some(function(e){return"key"===e.name.value})||__DEV__&&Tc.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 Dp(e){var t=[];return e.selections.forEach(function(e){(Sl(e)||Tl(e))&&e.selectionSet?Dp(e.selectionSet).forEach(function(e){return t.push(e)}):"FragmentSpread"===e.kind&&t.push(e)}),t}function Ap(e){return"query"===Ol(e).operation?e:(0,Ml.Vn)(e,{OperationDefinition:{enter:function(e){return g(g({},e),{operation:"query"})}}})}function Op(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__?Tc(n&&1===n.length,"Incorrect number of arguments for the @"+r+" directive."):Tc(n&&1===n.length,40);var i=n[0];__DEV__?Tc(i.name&&"if"===i.name.value,"Invalid argument for the @"+r+" directive."):Tc(i.name&&"if"===i.name.value,41);var o=i.value;__DEV__?Tc(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @"+r+" directive must be a variable or a boolean value."):Tc(o&&("Variable"===o.kind||"BooleanValue"===o.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__?Tc(void 0!==i,"Invalid variable referenced in @"+n.name.value+" directive."):Tc(void 0!==i,39)):i=r.value.value,"skip"===n.name.value?!i:i})}function Np(e,t){return function(e){var t=[];return(0,Ml.Vn)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some(function(t){return e.indexOf(t)>-1})}function Rp(e){return e&&Np(["client"],e)&&Np(["export"],e)}var Fp=new Map;function kp(e){var t=Fp.get(e)||1;return Fp.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function xp(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function Up(e){function t(t){Object.defineProperty(e,t,{value:ul})}return hp&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Mp(e){return e&&"function"==typeof e.then}var Lp,jp=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],xp(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),xp(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?Mp(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(),xp(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 ul(t)]),Mp(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return m(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},o=this.addCount;this.addObserver(i),this.addCount=o},t}(ul);function Vp(e){return!!e&&e<7}Up(jp),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"}(Lp||(Lp={}));var Bp=Object.prototype.toString;function Gp(e){return qp(e)}function qp(e,t){switch(Bp.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(e,r){n[r]=qp(e,t)}),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(n){r[n]=qp(e[n],t)}),r;default:return e}}var $p=Object.assign,Qp=Object.hasOwnProperty,Hp=!1,zp=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=Wp)}catch(e){}var n=!o.observers.size;o.observers.add(e);var r=o.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&o.reobserve().catch(function(){}),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}})||this;o.observers=new Set,o.subscriptions=new Set,o.isTornDown=!1,o.options=i,o.queryId=r.queryId||n.generateQueryId();var a=wl(i.query);return o.queryName=a&&a.name&&a.name.value,o.initialFetchPolicy=i.fetchPolicy||"cache-first",o.queryManager=n,o.queryInfo=r,o}return m(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||Lp.ready,r=g(g({},t),{loading:Vp(n),networkStatus:n}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if((t||"network-only"!==o&&"no-cache"!==o&&"standby"!==o)&&!this.queryManager.transform(this.options.query).hasForcedResolvers){var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(r.data=a.result),Xl(r.data,{})&&(r.data=void 0),a.complete?(r.networkStatus!==Lp.loading||"cache-first"!==o&&"cache-only"!==o||(r.networkStatus=Lp.ready,r.loading=!1),delete r.partial):"no-cache"!==o&&(r.partial=!0),!__DEV__||a.complete||this.options.partialRefetch||r.loading||r.data||r.error||Zp(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!Xl(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||Xl(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&&Qp.call(e,"variables")){var i=Al(this.options.query),o=i.variableDefinitions;o&&o.some(function(e){return"variables"===e.variable.name.value})||__DEV__&&Tc.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&&!Xl(this.options.variables,e)&&(n.variables=this.options.variables=g(g({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,Lp.refetch)},t.prototype.fetchMore=function(e){var t=this,n=g(g({},e.query?e:g(g(g({},this.options),e),{variables:g(g({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=Lp.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,Lp.fetchMore).then(function(r){var i=r.data,o=e.updateQuery;return o?(__DEV__&&!Hp&&(__DEV__&&Tc.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."),Hp=!0),t.updateQuery(function(e){return o(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__&&Tc.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 Xl(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},Lp.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__?Tc(n,"Attempted to start a polling query without a polling interval."):Tc(n,12),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(Vp(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},Lp.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=g(g({},this.last),{result:this.queryManager.assumeImmutableResults?e:Gp(e),variables:t}),Uc(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===Lp.refetch||t===Lp.fetchMore||t===Lp.poll,i=this.options.variables,o=r?Wl(this.options,e):$p(this.options,Wl(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!Xl(e.variables,i)&&(o.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=Lp.setVariables)));var a=o.variables&&g({},o.variables),s=this.fetch(o,t),u={next:function(e){n.reportResult(e,a)},error:function(e){n.reportError(e,a)}};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),xp(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=g(g({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:Lp.error,loading:!1});this.updateLastResult(n,t),xp(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}(ul);function Wp(e){__DEV__&&Tc.error("Unhandled error",e.message,e.stack)}function Zp(e){__DEV__&&Uc(e)&&__DEV__&&Tc.debug("Missing cache result fields: "+e.map(function(e){return e.path.join(".")}).join(", "),e)}Up(zp);var Yp=Object.prototype.hasOwnProperty;function Kp(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Jp(e)}function Jp(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new ed,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var Xp=function(e,t,n){return this.merge(e[n],t[n])},ed=function(){function e(e){void 0===e&&(e=Xp),this.reconciler=e,this.isObject=cl,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 cl(t)&&cl(e)?(Object.keys(t).forEach(function(i){if(Yp.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,E([e,t,i],r,!1));a!==o&&((e=n.shallowCopyForMerge(e))[i]=a)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return cl(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):g({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();let td=null;const nd={};let rd=1;function id(e){try{return e()}catch(e){}}const od="@wry/context:Slot",ad=id(()=>globalThis)||id(()=>global)||Object.create(null),sd=ad[od]||Array[od]||function(e){try{Object.defineProperty(ad,od,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",rd++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=td;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===nd)break;return e!==td&&(td.slots[this.id]=t),!0}return td&&(td.slots[this.id]=nd),!1}getValue(){if(this.hasValue())return td.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=td;td={parent:o,slots:i};try{return t.apply(r,n)}finally{td=o}}static bind(e){const t=td;return function(){const n=td;try{return td=t,e.apply(this,arguments)}finally{td=n}}}static noContext(e,t,n){if(!td)return e.apply(n,t);{const r=td;try{return td=null,e.apply(n,t)}finally{td=r}}}}),{bind:ud,noContext:cd}=sd;function ld(){}var pd,dd=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=ld),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}(),fd=new sd,hd=Object.prototype.hasOwnProperty,md=void 0===(pd=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:pd;function gd(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var yd=[];function vd(e,t){if(!e)throw new Error(t||"assertion failure")}function bd(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var Ed=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&&!Sd(this))return _d(this),this.value[0]},e.prototype.recompute=function(e){return vd(!this.recomputing,"already recomputing"),_d(this),Sd(this)?function(e,t){return Od(e),fd.withValue(e,Id,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{gd(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,Sd(e)||Cd(e)}(e),bd(e.value)}(this,e):bd(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Td(this),gd(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),Od(this),wd(this,function(t,n){t.setDirty(),Nd(t,e)})},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=yd.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(md(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),yd.push(this.deps),this.deps=null)},e.count=0,e}();function _d(e){var t=fd.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Sd(e)?Pd(t,e):Dd(t,e),t}function Id(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 Sd(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Td(e){wd(e,Pd)}function Cd(e){wd(e,Dd)}function wd(e,t){var n=e.parents.size;if(n)for(var r=md(e.parents),i=0;i<n;++i)t(r[i],e)}function Pd(e,t){vd(e.childValues.has(t)),vd(Sd(t));var n=!Sd(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=yd.pop()||new Set;e.dirtyChildren.add(t),n&&Td(e)}function Dd(e,t){vd(e.childValues.has(t)),vd(!Sd(t));var n,r,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,t.value.slice(0)):(n=o,r=t.value,(i=n.length)>0&&i===r.length&&n[i-1]===r[i-1]||e.setDirty()),Ad(e,t),Sd(e)||Cd(e)}function Ad(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(yd.length<100&&yd.push(n),e.dirtyChildren=null))}function Od(e){e.childValues.size>0&&e.childValues.forEach(function(t,n){Nd(e,n)}),e.forgetDeps(),vd(null===e.dirtyChildren)}function Nd(e,t){t.parents.delete(e),e.childValues.delete(t),Ad(e,t)}var Rd={setDirty:!0,dispose:!0,forget:!0};function Fd(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=fd.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(gd(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&hd.call(Rd,n)?n:"setDirty";md(r).forEach(function(e){return e[i]()}),t.delete(e),gd(r)}},r}function kd(){var e=new pp("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}kd();var xd=new Set;function Ud(e,t){void 0===t&&(t=Object.create(null));var n=new dd(t.max||Math.pow(2,16),function(e){return e.dispose()}),r=t.keyArgs,i=t.makeCacheKey||kd(),o=function(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new Ed(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),xd.add(n),fd.hasValue()||(xd.forEach(function(e){return e.clean()}),xd.clear()),s};function a(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(o,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))},o.forgetKey=u,o.forget=function(){return u(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}var Md=null,Ld={},jd=1,Vd="@wry/context:Slot",Bd=Array,Gd=Bd[Vd]||function(){var e=function(){function e(){this.id=["slot",jd++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=Md;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Ld)break;return e!==Md&&(Md.slots[this.id]=t),!0}return Md&&(Md.slots[this.id]=Ld),!1},e.prototype.getValue=function(){if(this.hasValue())return Md.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=Md;Md={parent:a,slots:o};try{return t.apply(r,n)}finally{Md=a}},e.bind=function(e){var t=Md;return function(){var n=Md;try{return Md=t,e.apply(this,arguments)}finally{Md=n}}},e.noContext=function(e,t,n){if(!Md)return e.apply(n,t);var r=Md;try{return Md=null,e.apply(n,t)}finally{Md=r}},e}();try{Object.defineProperty(Bd,Vd,{value:Bd[Vd]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();Gd.bind,Gd.noContext;var qd=new Gd,$d=new WeakMap;function Qd(e){var t=$d.get(e);return t||$d.set(e,t={vars:new Set,dep:Fd()}),t}function Hd(e){Qd(e).vars.forEach(function(t){return t.forgetCache(e)})}function zd(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){Qd(e).dep.dirty(r),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)});var a=Array.from(n);n.clear(),a.forEach(function(t){return t(e)})}}else{var s=qd.getValue();s&&(i(s),Qd(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),Qd(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var Wd=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=Kp(t.resolvers,e)}):this.resolvers=Kp(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,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return v(this,void 0,void 0,function(){return b(this,function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then(function(e){return g(g({},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 Np(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){Cl(e);var t=Cp([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,Ml.Vn)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return Sl(e)&&"__typename"===e.name.value}))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return g(g({},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={}),v(this,void 0,void 0,function(){return b(this,function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return g(g({},t),e.exportedVariables)})]:[2,g({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,Ml.Vn)(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 Ml.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Ap(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),v(this,void 0,void 0,function(){var a,s,u,c,l,p,d,f,h;return b(this,function(m){return a=Ol(e),s=Dl(e),u=pl(s),c=a.operation,l=c?c.charAt(0).toUpperCase()+c.slice(1):"Query",d=(p=this).cache,f=p.client,h={fragmentMap:u,context:g(g({},n),{cache:d,client:f}),variables:r,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,h).then(function(e){return{result:e,exportedVariables:h.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n){return v(this,void 0,void 0,function(){var r,i,o,a,s,u=this;return b(this,function(c){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function(e){return v(u,void 0,void 0,function(){var s,u;return b(this,function(c){return Op(e,o)?Sl(e)?[2,this.resolveField(e,t,n).then(function(t){var n;void 0!==t&&a.push(((n={})[_l(e)]=t,n))})]:(Tl(e)?s=e:(s=r[e.name.value],__DEV__?Tc(s,"No fragment named "+e.name.value):Tc(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){a.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(s)).then(function(){return Jp(a)})]})})},e.prototype.resolveField=function(e,t,n){return v(this,void 0,void 0,function(){var r,i,o,a,s,u,c,l,p,d=this;return b(this,function(f){return r=n.variables,i=e.name.value,o=_l(e),a=i!==o,s=t[o]||t[i],u=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(c=t.__typename||n.defaultOperationType,(l=this.resolvers&&this.resolvers[c])&&(p=l[a?i:o])&&(u=Promise.resolve(qd.withValue(this.cache,p,[t,El(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)?d.resolveSubSelectedArray(e,t,n):e.selectionSet?d.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}(),Zd=new(dp?WeakMap:Map);function Yd(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return Zd.set(e,(Zd.get(e)+1)%1e15),n.apply(this,arguments)})}function Kd(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Jd=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;Zd.has(n)||(Zd.set(n,0),Yd(n,"evict"),Yd(n,"modify"),Yd(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||Lp.loading;return this.variables&&this.networkStatus!==Lp.loading&&!Xl(this.variables,e.variables)&&(t=Lp.setVariables),Xl(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(){Kd(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&&Xl(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||Xl(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;Kd(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(Vp(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=g(g({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Xl(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===Zd.get(this.cache)&&Xl(t,n.variables)&&Xl(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=Uc(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(Xd(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:Zd.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(e.data=r.lastDiff.diff.result);var o=r.getDiffOptions(t.variables),a=i.diff(o);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(a,o),a.complete&&(e.data=a.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Lp.ready},e.prototype.markError=function(e){return this.networkStatus=Lp.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Xd(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!bp(e);return!r&&n&&e.data&&(r=!0),r}var ef=Object.prototype.hasOwnProperty,tf=function(){function e(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=void 0!==r&&r,o=e.onBroadcast,a=e.ssrMode,s=void 0!==a&&a,u=e.clientAwareness,c=void 0===u?{}:u,l=e.localState,p=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(dp?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=c,this.localState=l||new Wd({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!p,(this.onBroadcast=o)&&(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 Sc("QueryManager stopped while query was in flight"):new Sc(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,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,u=void 0!==s&&s,c=e.update,l=e.onQueryUpdated,p=e.errorPolicy,d=void 0===p?"none":p,f=e.fetchPolicy,h=void 0===f?"network-only":f,m=e.keepRootFields,y=e.context;return v(this,void 0,void 0,function(){var e,o,s;return b(this,function(p){switch(p.label){case 0:return __DEV__?Tc(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):Tc(t,14),__DEV__?Tc("network-only"===h||"no-cache"===h,"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."):Tc("network-only"===h||"no-cache"===h,15),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,y)]:[3,2];case 1:n=p.sent(),p.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),r&&this.markMutationOptimistic(r,{mutationId:e,document:t,variables:n,fetchPolicy:h,errorPolicy:d,context:y,updateQueries:i,update:c,keepRootFields:m}),this.broadcastQueries(),s=this,[2,new Promise(function(p,f){return vp(s.getObservableFromLink(t,g(g({},y),{optimisticResponse:r}),n,!1),function(p){if(bp(p)&&"none"===d)throw new Mc({graphQLErrors:p.errors});o&&(o.loading=!1,o.error=null);var f=g({},p);return"function"==typeof a&&(a=a(f)),"ignore"===d&&bp(f)&&delete f.errors,s.markMutationResult({mutationId:e,result:f,document:t,variables:n,fetchPolicy:h,errorPolicy:d,context:y,update:c,updateQueries:i,awaitRefetchQueries:u,refetchQueries:a,removeOptimistic:r?e:void 0,onQueryUpdated:l,keepRootFields:m})}).subscribe({next:function(e){s.broadcastQueries(),p(e)},error:function(t){o&&(o.loading=!1,o.error=t),r&&s.cache.removeOptimistic(e),s.broadcastQueries(),f(t instanceof Mc?t:new Mc({networkError:t}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&Xd(r,e.errorPolicy)){i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var a=e.updateQueries;a&&this.queries.forEach(function(e,o){var s=e.observableQuery,u=s&&s.queryName;if(u&&ef.call(a,u)){var c=a[u],l=n.queries.get(o),p=l.document,d=l.variables,f=t.diff({query:p,variables:d,returnPartialData:!0,optimistic:!1}),h=f.result;if(f.complete&&h){var m=c(h,{mutationResult:r,queryName:p&&Pl(p)||void 0,queryVariables:d});m&&i.push({result:m,dataId:"ROOT_QUERY",query:p,variables:d})}}})}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach(function(e){return t.write(e)});var a=e.update;if(a){if(!o){var s=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&(r=g(g({},r),{data:s.result}))}a(t,r,{context:e.context,variables:e.variables})}o||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(g(g({},t),{result:{data:r}}),e)}catch(e){__DEV__&&Tc.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),Cp([Pp],Cl(t))),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:Rp(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:Nl(wl(r)),asQuery:g(g({},r),{definitions:r.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?g(g({},e),{operation:"query"}):e})})},u=function(e){e&&!n.has(e)&&n.set(e,s)};u(e),u(r),u(o),u(a)}return n.get(e)},e.prototype.getVariables=function(e,t){return g(g({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=g(g({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new Jd(this),n=new zp({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__?Tc(e.query,"query option is required. You must specify your GraphQL document in the query option."):Tc(e.query,16),__DEV__?Tc("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):Tc("Document"===e.query.kind,17),__DEV__?Tc(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):Tc(!e.returnPartialData,18),__DEV__?Tc(!e.pollInterval,"pollInterval option only supported on watchQuery."):Tc(!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 Sc("Store reset while query was in flight (not completed in link chain)"):new Sc(20)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=Lp.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):cl(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):cl(e)&&e.query&&i.add(e)}),this.queries.forEach(function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void n.set(i,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&r.has(s)||a&&r.has(a))&&(n.set(i,o),s&&r.set(s,!0),a&&r.set(a,!0))}}),i.size&&i.forEach(function(e){var r=kp("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new zp({queryManager:t,queryInfo:i,options:g(g({},e),{fetchPolicy:"network-only"})});Tc(o.queryId===r),i.setObservableQuery(o),n.set(r,o)}),__DEV__&&r.size&&r.forEach(function(e,t){e||__DEV__&&Tc.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 o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&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,o=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var u=function(e){return t.getObservableFromLink(n,s,e).map(function(o){if("no-cache"!==r&&(Xd(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),bp(o))throw new Mc({graphQLErrors:o.errors});return o})};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,s).then(u);return new ul(function(e){var t=null;return c.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return u(o)},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,o,a=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,c=this.link,l={query:s,variables:n,operationName:Pl(s)||void 0,context:this.prepareContext(g(g({},t),{forceFetch:!r}))};if(t=l.context,r){var p=u.get(s)||new Map;u.set(s,p);var d=gp(n);if(!(o=p.get(d))){var f=new jp([zl(c,l)]);p.set(d,o=f),f.cleanup(function(){p.delete(d)&&p.size<1&&u.delete(s)})}}else o=new jp([zl(c,l)])}else o=new jp([ul.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=vp(o,function(e){return a.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})})),o},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return vp(this.getObservableFromLink(e.document,n.context,n.variables),function(i){var o=Uc(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new Mc({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||Lp.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors),a},function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new Mc({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=Lp.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),s=t.fetchPolicy,u=void 0===s?"cache-first":s,c=t.errorPolicy,l=void 0===c?"none":c,p=t.returnPartialData,d=void 0!==p&&p,f=t.notifyOnNetworkStatusChange,h=void 0!==f&&f,m=t.context,g=void 0===m?{}:m,y=Object.assign({},t,{query:i,variables:o,fetchPolicy:u,errorPolicy:l,returnPartialData:d,notifyOnNetworkStatusChange:h,context:g}),v=function(e){return y.variables=e,r.fetchQueryByPolicy(a,y,n)};this.fetchCancelFns.set(e,function(e){setTimeout(function(){return b.cancel(e)})});var b=new jp(this.transform(y.query).hasClientExports?this.localState.addExportedVariables(y.query,y.variables,y.context).then(v):v(y.variables));return b.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)}),b},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?kp("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){c.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})});var l=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof Jd&&e.watcher.observableQuery;if(r){if(u){c.delete(r.queryId);var i=u(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&l.set(r,i),!1}null!==u&&c.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),c.size&&c.forEach(function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=u(i,a,o)}u&&!0!==r||(r=i.refetch()),!1!==r&&l.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,u=t.errorPolicy,c=t.returnPartialData,l=t.context,p=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var f=function(){return e.getDiff(o)},h=function(t,n){void 0===n&&(n=e.networkStatus||Lp.loading);var a=t.result;!__DEV__||c||Xl(a,{})||Zp(t.missing);var s=function(e){return ul.of(g({data:e,loading:Vp(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:l,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):s(a)},m="no-cache"===a?0:n===Lp.refetch&&"merge"!==s?1:2,y=function(){return r.getResultsFromLink(e,m,{variables:o,context:l,fetchPolicy:a,errorPolicy:u})},v=p&&"number"==typeof d&&d!==n&&Vp(n);switch(a){default:case"cache-first":return(b=f()).complete?[h(b,e.markReady())]:c||v?[h(b),y()]:[y()];case"cache-and-network":var b;return(b=f()).complete||c||v?[h(b),y()]:[y()];case"cache-only":return[h(f(),e.markReady())];case"network-only":return v?[h(f()),y()]:[y()];case"no-cache":return v?[h(e.getDiff()),y()]:[y()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Jd(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return g(g({},t),{clientAwareness:this.clientAwareness})},e}(),nf=!1;function rf(e,t){return Wl(e,t,t.variables&&{variables:g(g({},e.variables),t.variables)})}var of=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,s=void 0!==a&&a,u=e.ssrForceFetchDelay,c=void 0===u?0:u,l=e.connectToDevTools,p=void 0===l?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:l,d=e.queryDeduplication,f=void 0===d||d,h=e.defaultOptions,m=e.assumeImmutableResults,g=void 0!==m&&m,y=e.resolvers,v=e.typeDefs,b=e.fragmentMatcher,E=e.name,_=e.version,I=e.link;if(I||(I=n?new Hl({uri:n,credentials:r,headers:i}):Ul.empty()),!o)throw __DEV__?new Sc("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 Sc(9);if(this.link=I,this.cache=o,this.disableNetworkFetches=s||c>0,this.queryDeduplication=f,this.defaultOptions=h||{},this.typeDefs=v,c&&setTimeout(function(){return t.disableNetworkFetches=!1},c),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),p&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!nf&&__DEV__&&(nf=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var S=window.navigator,T=S&&S.userAgent,C=void 0;"string"==typeof T&&(T.indexOf("Chrome/")>-1?C="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":T.indexOf("Firefox/")>-1&&(C="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),C&&__DEV__&&Tc.log("Download the Apollo DevTools for a better development experience: "+C)}this.version="3.4.17",this.localState=new Wd({cache:o,client:this,resolvers:y,fragmentMatcher:b}),this.queryManager=new tf({cache:this.cache,link:this.link,queryDeduplication:f,ssrMode:s,clientAwareness:{name:E,version:_},localState:this.localState,assumeImmutableResults:g,onBroadcast:p?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=rf(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=g(g({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=rf(this.defaultOptions.query,e)),__DEV__?Tc("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."):Tc("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=g(g({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=rf(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 zl(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__&&Tc.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}(),af=function(){function e(){this.getFragmentDoc=Ud(ll)}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(g(g({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(g(g({},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=y(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,o=y(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e}(),sf=function(e){function t(n,r,i,o){var a=e.call(this,n)||this;return a.message=n,a.path=r,a.query=i,a.variables=o,a.__proto__=t.prototype,a}return m(t,e),t}(Error);function uf(e){return __DEV__&&(t=e,(n=new Set([t])).forEach(function(e){cl(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(t){cl(e[t])&&n.add(e[t])})})),e;var t,n}var cf=Object.prototype.hasOwnProperty;function lf(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 pf={dataIdFromObject:lf,addTypename:!0,resultCaching:!0,canonizeResults:!1};function df(e){var t=e.canonizeResults;return void 0===t?pf.canonizeResults:t}var ff=/^[_a-z][_0-9a-z]*/i;function hf(e){var t=e.match(ff);return t?t[0]:e}function mf(e,t,n){return!!cl(t)&&(Array.isArray(t)?t.every(function(t){return mf(e,t,n)}):e.selections.every(function(e){if(Sl(e)&&Op(e,n)){var r=_l(e);return cf.call(t,r)&&(!e.selectionSet||mf(e.selectionSet,t[r],n))}return!0}))}function gf(e){return cl(e)&&!hl(e)&&!Array.isArray(e)}var yf=Object.create(null),vf=function(){return yf},bf=Object.create(null),Ef=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 uf(hl(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return hl(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return fl(e);if(hl(e))return e;var r=n.policies.identify(e)[0];if(r){var i=fl(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return g({},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),cf.call(this.data,e)){var n=this.data[e];if(n&&cf.call(n,t))return n[t]}return"__typename"===t&&cf.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Tf?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),cf.call(this.data,e)?this.data[e]:this instanceof Tf?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;hl(e)&&(e=e.__ref),hl(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){__DEV__?Tc("string"==typeof n,"store.merge expects a string ID"):Tc("string"==typeof n,1);var a=new ed(wf).merge(i,o);if(this.data[n]=a,a!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=hf(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof Tf||delete a[e]}}),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==a.__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),o=!1,a=!0,s={DELETE:yf,INVALIDATE:bf,isReference:hl,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||fl(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(u){var c=hf(u),l=r[u];if(void 0!==l){var p="function"==typeof t?t:t[u]||t[c];if(p){var d=p===vf?yf:p(uf(l),g(g({},s),{fieldName:c,storeFieldName:u,storage:n.getStorage(e,u)}));d===bf?n.group.dirty(e,u):(d===yf&&(d=void 0),d!==l&&(i[u]=d,o=!0,l=d))}void 0!==l&&(a=!1)}}),o)return this.merge(e,i),a&&(this instanceof Tf?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 o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=vf,r):vf)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(cf.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof Tf&&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){cf.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&&cf.call(e,n)||t.delete(n)}),e){var n=e.__META,r=y(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 Tf?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){cf.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 Tf;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!cf.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){hl(e)&&(t[e.__ref]=!0),cl(e)&&Object.keys(e).forEach(function(t){var n=e[t];cl(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),_f=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?Fd():null,this.keyMaker=new pp(dp)},e.prototype.depend=function(e,t){if(this.d){this.d(If(e,t));var n=hf(t);n!==t&&this.d(If(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(If(e,t),"__exists"===t?"forget":"setDirty")},e}();function If(e,t){return t+"#"+e}function Sf(e,t){Pf(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,o=t.seed,a=e.call(this,n,new _f(i))||this;return a.stump=new Cf(a),a.storageTrie=new pp(dp),o&&a.replace(o),a}return m(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}(Ef||(Ef={}));var Tf=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return m(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){Xl(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 g(g({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return cf.call(this.data,t)?g(g({},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}(Ef),Cf=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new _f(t.group.caching,t.group))||this}return m(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(Tf);function wf(e,t,n){var r=e[n],i=t[n];return Xl(r,i)?r:i}function Pf(e){return!!(e instanceof Ef&&e.group.caching)}function Df(e,t){return new sf(e.message,t.path.slice(),t.query,t.variables)}function Af(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Of=function(){function e(e){var t=this;this.knownResults=new(dp?WeakMap:Map),this.config=Wl(e,{addTypename:!1!==e.addTypename,canonizeResults:df(e)}),this.canon=e.canon||new mp,this.executeSelectionSet=Ud(function(e){var n,r=e.context.canonizeResults,i=Af(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?g(g({},o),{result:t.canon.admit(o.result)}):o:(Sf(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:Af,makeCacheKey:function(e,t,n,r){if(Pf(n.store))return n.store.makeCacheKey(e,hl(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=Ud(function(e){return Sf(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(Pf(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new mp},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,o=e.variables,a=e.returnPartialData,s=void 0===a||a,u=e.canonizeResults,c=void 0===u?this.config.canonizeResults:u,l=this.config.cache.policies;o=g(g({},Nl(Al(n))),o);var p=fl(i),d=this.executeSelectionSet({selectionSet:Ol(n).selectionSet,objectOrReference:p,enclosingRef:p,context:{store:t,query:n,policies:l,variables:o,varString:gp(o),canonizeResults:c,fragmentMap:pl(Dl(n)),path:[]}}),f=d.missing&&d.missing.length>0;if(f&&!s)throw d.missing[0];return{result:d.result,missing:d.missing,complete:!f}},e.prototype.isFresh=function(e,t,n,r){if(Pf(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,o=e.context;if(hl(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:[Df(__DEV__?new Sc("Dangling reference to missing "+r.__ref+" object"):new Sc(5),o)]};var a=o.variables,s=o.policies,u=o.store,c=[],l={result:null},p=u.getFieldValue(r,"__typename");function d(){return l.missing||(l.missing=[])}function f(e){var t;return e.missing&&(t=d()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof p&&!s.rootIdsByTypename[p]&&c.push({__typename:p});var h=new Set(n.selections);h.forEach(function(e){var n;if(Op(e,a))if(Sl(e)){var u=s.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),l=_l(e);o.path.push(l),void 0===u?wp.added(e)||d().push(Df(__DEV__?new Sc("Can't find field '"+e.name.value+"' on "+(hl(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2))):new Sc(6),o)):Array.isArray(u)?u=f(t.executeSubSelectedArray({field:e,array:u,enclosingRef:i,context:o})):e.selectionSet?null!=u&&(u=f(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:u,enclosingRef:hl(u)?u:i,context:o}))):o.canonizeResults&&(u=t.canon.pass(u)),void 0!==u&&c.push(((n={})[l]=u,n)),Tc(o.path.pop()===l)}else{var m=dl(e,o.fragmentMap);m&&s.fragmentMatches(m,p)&&m.selectionSet.selections.forEach(h.add,h)}});var m=Jp(c);return l.result=o.canonizeResults?this.canon.admit(m):uf(m),this.knownResults.set(l.result,n),l},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context;function s(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),Tc(a.path.pop()===n),e.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(e,t){return null===e?null:(a.path.push(t),Array.isArray(e)?s(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?s(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:hl(e)?e:o,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){cl(n)&&(__DEV__?Tc(!hl(n),"Missing selection set for object of type "+function(e,t){return hl(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)+" returned for query field "+t.name.value):Tc(!hl(n),7),Object.values(n).forEach(r.add,r))})}}(a.store,r,e),Tc(a.path.pop()===t),e))}),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),Nf=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,o=t.dataId,a=t.variables,s=t.overwrite,u=wl(r),c=new ed;a=g(g({},Nl(u)),a);var l={store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:gp(a),fragmentMap:pl(Dl(r)),overwrite:!!s,incomingById:new Map,clientOnly:!1},p=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:l});if(!hl(p))throw __DEV__?new Sc("Could not identify object "+JSON.stringify(i)):new Sc(8);return l.incomingById.forEach(function(t,r){var i=t.fields,o=t.mergeTree,a=t.selections,s=fl(r);if(o&&o.map.size){var u=n.applyMerges(o,s,i,l);if(hl(u))return;i=u}if(__DEV__&&!l.overwrite){var c=new Set;a.forEach(function(e){Sl(e)&&e.selectionSet&&c.add(e.name.value)}),Object.keys(i).forEach(function(e){(function(e){return c.has(hf(e))})(e)&&!function(e){var t=o&&o.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},o=i(e);if(o){var a=i(t);if(a&&!hl(o)&&!Xl(o,a)&&!Object.keys(o).every(function(e){return void 0!==r.getFieldValue(a,e)})){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),u=hf(n),c=s+"."+u;if(!Mf.has(c)){Mf.add(c);var l=[];Array.isArray(o)||Array.isArray(a)||[o,a].forEach(function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||l.includes(t)||l.push(t)}),__DEV__&&Tc.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), "+(l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"")+"define a custom merge function for the "+c+" field, so InMemoryCache can safely merge these objects:\n\n existing: "+JSON.stringify(o).slice(0,1e3)+"\n incoming: "+JSON.stringify(a).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,l.store)})}e.merge(r,i)}),e.retain(p.__ref),p},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,u=s.identify(r,i,o.fragmentMap),c=u[0],l=u[1];if("string"==typeof(n=n||c)){var p=o.written[n]||(o.written[n]=[]),d=fl(n);if(p.indexOf(i)>=0)return d;if(p.push(i),this.reader&&this.reader.isFresh(r,d,i,o))return d}var f=Object.create(null);l&&(f=o.merge(f,l));var h=n&&s.rootTypenamesById[n]||Il(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof h&&(f.__typename=h);var m=new Set(i.selections);if(m.forEach(function(e){var n;if(Op(e,o.variables))if(Sl(e)){var i=_l(e),u=r[i],c=o.clientOnly;if(o.clientOnly=c||!(!e.directives||!e.directives.some(function(e){return"client"===e.name.value})),void 0!==u){var l=s.getStoreFieldName({typename:h,fieldName:e.name.value,field:e,variables:o.variables}),p=Ff(a,l),d=t.processFieldValue(u,e,o,p),g=void 0;if(e.selectionSet&&!(g=o.store.getFieldValue(d,"__typename"))&&hl(d)){var y=o.incomingById.get(d.__ref);g=y&&y.fields.__typename}var v=s.getMergeFunction(h,e.name.value,g);v?p.info={field:e,typename:h,merge:v}:Uf(a,l),f=o.merge(f,((n={})[l]=d,n))}else o.clientOnly||wp.added(e)||__DEV__&&Tc.error(("Missing field '"+_l(e)+"' while writing result "+JSON.stringify(r,null,2)).substring(0,1e3));o.clientOnly=c}else{var b=dl(e,o.fragmentMap);b&&s.fragmentMatches(b,h,r,o.variables)&&b.selectionSet.selections.forEach(m.add,m)}}),"string"==typeof n){var g=o.incomingById.get(n);return g?(g.fields=o.merge(g.fields,f),g.mergeTree=kf(g.mergeTree,a),g.selections.forEach(m.add,m),g.selections=m):o.incomingById.set(n,{fields:f,mergeTree:xf(a)?void 0:a,selections:m}),fl(n)}return f},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,n,Ff(r,o));return Uf(r,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?Gp(e):e},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!hl(n)){var s,u=Array.isArray(n)||!hl(t)&&!gf(t)?void 0:t,c=n;u&&!i&&(i=[hl(u)?u.__ref:u]);var l=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=l(u,t),o=l(c,t);if(void 0!==o){i&&i.push(t);var p=a.applyMerges(e,n,o,r,i);p!==o&&(s=s||new Map).set(t,p),i&&Tc(i.pop()===t)}}),s&&(n=Array.isArray(c)?c.slice(0):g({},c),s.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(o=r.store).getStorage.apply(o,i)):n},e}(),Rf=[];function Ff(e,t){var n=e.map;return n.has(t)||n.set(t,Rf.pop()||{map:new Map}),n.get(t)}function kf(e,t){if(e===t||!t||xf(t))return e;if(!e||xf(e))return t;var n=e.info&&t.info?g(g({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var o=new Set(t.map.keys());e.map.forEach(function(e,n){i.map.set(n,kf(e,t.map.get(n))),o.delete(n)}),o.forEach(function(n){i.map.set(n,kf(t.map.get(n),e.map.get(n)))})}return i}function xf(e){return!e||!(e.info||e.map.size)}function Uf(e,t){var n=e.map,r=n.get(t);r&&xf(r)&&(Rf.push(r),n.delete(t))}var Mf=new Set;function Lf(e){var t=kp("stringifyForDisplay");return JSON.stringify(e,function(e,n){return void 0===n?t:n}).split(JSON.stringify(t)).join("<undefined>")}function jf(e){return void 0!==e.args?e.args:e.field?El(e.field,e.variables):null}yl.setStringify(gp);var Vf=function(){},Bf=function(e,t){return t.fieldName},Gf=function(e,t,n){return(0,n.mergeObjects)(e,t)},qf=function(e,t){return t},$f=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=g({dataIdFromObject:lf},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?Il(e,t,n):e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,o={typename:r,selectionSet:t,fragmentMap:n},a=r&&this.getTypePolicy(r),s=a&&a.keyFn||this.config.dataIdFromObject;s;){var u=s(e,o);if(!Array.isArray(u)){i=u;break}s=Wf(u)}return i=i?String(i):void 0,o.keyObject?[i,o.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var r=e[n],i=r.queryType,o=r.mutationType,a=r.subscriptionType,s=y(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),cf.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,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?Gf:!1===t?qf:e.merge}a(r,t.merge),r.keyFn=!1===i?Vf:Array.isArray(i)?Wf(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach(function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;r.keyFn=!1===s?Bf:Array.isArray(s)?zf(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||Bf)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?Tc(!r||r===e,"Cannot change root "+e+" __typename more than once"):Tc(!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(ff);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!cf.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,o=y(r,["fields"]);Object.assign(n,o),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 o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},c=!(!n||!this.fuzzySubtypes.size),l=!1,p=0;p<s.length;++p){var d=s[p];if(d.has(o))return a.has(o)||(l&&__DEV__&&Tc.warn("Inferring subtype "+t+" of supertype "+o),a.add(o)),!0;d.forEach(u),c&&p===s.length-1&&mf(e.selectionSet,n,r)&&(c=!1,l=!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),o=i&&i.keyFn;if(o&&n)for(var a={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=jf(e);o;){var u=o(s,a);if(!Array.isArray(u)){t=u||r;break}o=zf(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,o=r.value;return ml(n[e.name.value],i,o,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(e){var n=e.name,i=e.value;return ml(r,n,i,t)})),yl(e.name.value,r,n)}(e.field,e.variables):yl(r,jf(e))),!1===t?r:r===hf(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),o=hf(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=Qf(this,n,e,t,t.store.getStorage(hl(n)?n.__ref:n,i));return qd.withValue(this.cache,u,[a,c])}return a}},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 o=n.field,a=n.typename,s=n.merge;return s===Gf?Hf(r.store)(e,t):s===qf?t:(r.overwrite&&(e=void 0),s(e,t,Qf(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function Qf(e,t,n,r,i){var o=e.getStoreFieldName(n),a=hf(o),s=n.variables||r.variables,u=r.store,c=u.toReference,l=u.canRead;return{args:jf(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:hl,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(n,i){var o;if("string"==typeof n)o={fieldName:n,from:arguments.length>1?i:t};else{if(!cl(n))return void(__DEV__&&Tc.warn("Unexpected readField arguments: "+Lf(Array.from(arguments))));o=g({},n),cf.call(n,"from")||(o.from=t)}return __DEV__&&void 0===o.from&&__DEV__&&Tc.warn("Undefined 'from' passed to readField with arguments "+Lf(Array.from(arguments))),void 0===o.variables&&(o.variables=s),e.readField(o,r)},mergeObjects:Hf(r.store)}}function Hf(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new Sc("Cannot automatically merge arrays"):new Sc(3);if(cl(t)&&cl(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(hl(t)&&gf(n))return e.merge(t.__ref,n),t;if(gf(t)&&hl(n))return e.merge(t,n.__ref),n;if(gf(t)&&gf(n))return g(g({},t),n)}return n}}function zf(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify(Yf(t,e,!1)):n.fieldName}}function Wf(e){var t=new pp(dp);return function(n,r){var i;if(r.selectionSet&&r.fragmentMap){var o=t.lookupArray([r.selectionSet,r.fragmentMap]);i=o.aliasMap||(o.aliasMap=Zf(r.selectionSet,r.fragmentMap))}var a=r.keyObject=Yf(n,e,!0,i);return r.typename+":"+JSON.stringify(a)}}function Zf(e,t){var n=Object.create(null),r=new Set([e]);return r.forEach(function(e){e.selections.forEach(function(e){if(Sl(e)){if(e.alias){var i=e.alias.value,o=e.name.value;o!==i&&((n.aliases||(n.aliases=Object.create(null)))[o]=i)}e.selectionSet&&((n.subsets||(n.subsets=Object.create(null)))[e.name.value]=Zf(e.selectionSet,t))}else{var a=dl(e,t);a&&r.add(a.selectionSet)}})}),n}function Yf(e,t,n,r){var i,o,a=Object.create(null);return t.forEach(function(t){if(Array.isArray(t)){if("string"==typeof o&&"string"==typeof i){var s=r&&r.subsets,u=s&&s[o];a[o]=Yf(e[i],t,n,u)}}else{var c=r&&r.aliases,l=c&&c[t]||t;cf.call(e,l)?a[o=t]=e[i=l]:(__DEV__?Tc(!n,"Missing field '"+l+"' while computing key fields"):Tc(!n,4),i=o=void 0)}}),a}var Kf=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=zd,n.txCount=0,n.config=function(e){return Wl(pf,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new $f({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return m(t,e),t.prototype.init=function(){var e=this.data=new Ef.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 Nf(this,this.storeReader=new Of({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:df(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=Ud(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(Pf(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,gp({optimistic:r,rootId:i,variables:o}))}}}),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(g(g({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof sf)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(cf.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(g(g({},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||Qd(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&&Hd(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){gp.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 hl(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(cf.call(e,"id"))return!1;e=g(g({},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(),gp.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),Hd(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,o=e.removeOptimistic,a=e.onWatchUpdated,s=function(e){var r=t,i=r.data,o=r.optimisticData;++t.txCount,e&&(t.data=t.optimisticData=e);try{n(t)}finally{--t.txCount,t.data=i,t.optimisticData=o}},u=new Set;a&&!this.txCount&&this.broadcastWatches(g(g({},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 o&&(this.optimisticData=this.optimisticData.removeLayer(o)),a&&u.size?(this.broadcastWatches(g(g({},e),{onWatchUpdated:function(e,t){var n=a.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=wp(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&&Xl(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(af),Jf=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 v(i,void 0,void 0,function(){var t,n,r;return b(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}(),Xf=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.attempts,o=r.delay;return n.delayFor="function"==typeof o?o:function(e){var t=e||{},n=t.initial,r=void 0===n?300:n,i=t.jitter,o=void 0===i||i,a=t.max,s=void 0===a?1/0:a,u=o?r:r/2;return function(e){var t=Math.min(s,u*Math.pow(2,e));return o&&(t=Math.random()*t),t}}(o),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 m(t,e),t.prototype.request=function(e,t){var n=new Jf(e,t,this.delayFor,this.retryIf);return n.start(),new ul(function(e){return n.subscribe(e),function(){n.unsubscribe(e)}})},t}(Ul);const eh="4.12.0";var th=function(e){return!!e&&![500,400].includes(e.statusCode)};var nh=[ot.Incremental,ot.Fluctuating];function rh(e){return(null==e?void 0:e.featureType)===We.Number&&!(0,Hu.isNil)(e.meterType)&&nh.includes(e.meterType)}var ih=function(){function e(e,t){this.calculatedEntitlement=e,this.usageData=t}return e.prototype.isUsageTrackable=function(){switch(this.calculatedEntitlement.type){case we.Credit:return!0;case we.Feature:return rh(this.calculatedEntitlement.feature);default:return!1}},e.prototype.getEntitlementQuery=function(){var e=this.calculatedEntitlement.type;switch(e){case we.Feature:return{type:e,id:this.calculatedEntitlement.feature.id};case we.Credit:return{type:e,id:this.calculatedEntitlement.currency.currencyId};default:throw new Error("Unknown entitlement type ".concat(e))}},e}();function oh(e){return e.calculatedEntitlement.type===we.Feature}function ah(e){return e.calculatedEntitlement.type===we.Credit}var sh,uh=function(){function e(e){if(this.map=new Map,e)for(var t=0,n=e;t<n.length;t++){var r=n[t];this.set(r)}}return e.getUniqueKey=function(e){return e.type===we.Feature?e.id:"".concat(e.type,":").concat(e.id)},e.prototype.get=function(t){return this.map.get(e.getUniqueKey(t))},e.prototype.set=function(t){var n=e.getUniqueKey(t.getEntitlementQuery());return this.map.set(n,t),this},Object.defineProperty(e.prototype,"size",{get:function(){return this.map.size},enumerable:!1,configurable:!0}),e.prototype.values=function(){return Array.from(this.map.values())},e.prototype.updateUsage=function(e,t){var n=this.get(e);if(n){var r=new ih(n.calculatedEntitlement,t);this.set(r)}},e.prototype.toJSON=function(){return Object.fromEntries(this.map)},e.fromJSON=function(t){for(var n=new e,r=0,i=Object.entries(t);r<i.length;r++){var o=i[r],a=o[0],s=o[1],u=new ih(s.calculatedEntitlement,s.usageData);n.map.set(a,u)}return n},e.empty=function(){return new e},e.fromEntitlements=function(t){return new e(t)},e.fromInput=function(t,n){for(var r=new e,i=new Map,o=0,a=(0,Hu.compact)(n.map(function(e){return t.mapEntitlement(e)}));o<a.length;o++){var s=a[o],u=s.entitlement,c=s.usageUpdatedAt;if(r.set(u),c){var l=e.getUniqueKey(u.getEntitlementQuery());i.set(l,new Date(c))}}return{entitlements:r,usageUpdatedAtMap:i}},e}(),ch=(new Date(0),function(e,t){return{cacheMiss:!1,entitlements:e,accessDeniedReason:t,globalCustomerMissing:!1}}),lh=((sh={})[Pe.CustomerNotFound]=R.CustomerNotFound,sh[Pe.NoActiveSubscription]=R.NoActiveSubscription,sh[Pe.CustomerIsArchived]=R.CustomerIsArchived,sh);function ph(e){return e?lh[e]:null}var dh=n(8879),fh=n.n(dh);var hh=function(){function e(){}return e.prototype.transform=function(e){for(var t=new Date,n=uh.empty(),r=0,i=e.values();r<i.length;r++){var o=i[r];n.set(this.transformEntitlement(o,t))}return n},e.prototype.transformEntitlement=function(e,t){var n,r,i;if(!oh(e))return e;var o=e.calculatedEntitlement,a=e.usageData;if(!(rh(o.feature)&&a.usagePeriodEnd&&a.usagePeriodEnd<t.getTime()))return e;var s,u,c=o.resetPeriod,l=o.usagePeriodAnchor;return l&&c&&(s=(n=function(e,t,n){var r=fh()(t),i=fh()(e),o=function(e){switch(e){case Ce.Year:return"years";case Ce.Month:return"months";case Ce.Week:return"weeks";case Ce.Day:return"days";case Ce.Hour:return"hours";default:throw new Error("Unsupported reset period")}}(n),a=Math.floor(r.diff(i,o,!0)),s=i.clone().add(a,o),u=i.clone().add(a+1,o);return{usagePeriodStart:s.toDate(),usagePeriodEnd:u.toDate()}}(new Date(l),t,c)).usagePeriodStart,u=n.usagePeriodEnd),new ih(o,{currentUsage:0,usagePeriodStart:null!==(r=null==s?void 0:s.getTime())&&void 0!==r?r:null,usagePeriodEnd:null!==(i=null==u?void 0:u.getTime())&&void 0!==i?i:null})},e}(),mh=function(){return mh=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},mh.apply(this,arguments)},gh=function(){function e(){}return e.prototype.transform=function(e){for(var t=uh.empty(),n=new Map,r=0,i=e.values();r<i.length;r++){var o=i[r];t.set(this.processEntitlement(o,e,n))}return t},e.prototype.processEntitlement=function(e,t,n){if(!oh(e)||!e.calculatedEntitlement.creditRate)return e;var r=e.calculatedEntitlement.creditRate.currencyId,i=this.getCachedCreditAccessReason(r,t,n);return this.withCreditAccessReason(e,i)},e.prototype.getCachedCreditAccessReason=function(e,t,n){var r=n.get(e);if(void 0!==r)return r;var i=t.get({type:we.Credit,id:e}),o=this.getCreditAccessDeniedReason(i);return n.set(e,o),o},e.prototype.getCreditAccessDeniedReason=function(e){return e&&this.hasSufficientCredits(e)?null:R.InsufficientCredits},e.prototype.hasSufficientCredits=function(e){return e.calculatedEntitlement.usageLimit-e.usageData.currentUsage>0},e.prototype.withCreditAccessReason=function(e,t){var n=e.calculatedEntitlement.accessDeniedReason;return null!==n&&n!==R.InsufficientCredits||t===n?e:new ih(mh(mh({},e.calculatedEntitlement),{accessDeniedReason:t}),e.usageData)},e}(),yh=function(){function e(){this.transformations=[new hh,new gh]}return e.prototype.transform=function(e){for(var t=e,n=0,r=this.transformations;n<r.length;n++)t=r[n].transform(t);return t},e}(),vh=function(){function e(e){this.query=e}return e.prototype.transform=function(e){var t=e.get(this.query);if(!t)return uh.empty();var n=this.getCreditRateDependency(t,e);return uh.fromEntitlements((0,Hu.compact)([t,n]))},e.prototype.getCreditRateDependency=function(e,t){if(oh(e)){var n=e.calculatedEntitlement.creditRate;if(n)return t.get({type:we.Credit,id:n.currencyId})}},e}(),bh=function(){function e(e,t,n){var r=this;this.entitlements=e,this.instrumentation=t,this.cacheMapper=n,this.freshen=new yh,this.clearCache=function(){r.entitlements.clear()}}return e.prototype.buildCacheKey=function(e,t){return t?"".concat(e,":").concat(t):e},e.prototype.waitForInitialization=function(){return Promise.resolve()},e.prototype.setCustomer=function(e){var t=e.customerId,n=e.resourceId,r=e.entitlements,i=e.accessDeniedReason,o=this.buildCacheKey(t,n),a=uh.fromInput(this.cacheMapper,r).entitlements;return this.entitlements.set(o,{entitlements:a,accessDeniedReason:ph(i)}),this.freshen.transform(a)},e.prototype.purge=function(e){var t=this;(Array.isArray(e)?e:[e]).forEach(function(e){var n=e.customerId,r=e.resourceId,i=t.buildCacheKey(n,r);t.entitlements.delete(i)})},e.prototype.getCustomerEntitlements=function(e){var t=e.customerId,n=e.resourceId;return this.getCached({customerId:t,resourceId:n})},e.prototype.updateUsage=function(e){var t,n,r=e.customerId,i=e.resourceId,o=e.entitlementReference,a=e.usage,s=this.buildCacheKey(r,i);null===(n=null===(t=this.entitlements.get(s))||void 0===t?void 0:t.entitlements)||void 0===n||n.updateUsage(o,a)},e.prototype.getCustomerEntitlement=function(e){var t=e.query,n=new vh(t),r=this.getCached(e,n),i=r.entitlements,o=r.accessDeniedReason,a=r.cacheMiss,s=r.globalCustomerMissing;return{cacheMiss:a,accessDeniedReason:o,entitlement:a?null:(null==i?void 0:i.get(t))||null,globalCustomerMissing:s}},e.prototype.getCached=function(e,t){var n,r,i,o,a,s=e.customerId,u=e.resourceId,c=this.buildCacheKey(s,u),l=this.entitlements.get(c)||null;if(!l)return null===(r=(n=this.instrumentation).trackMiss)||void 0===r||r.call(n,{customerId:s,resourceId:u}),void 0===a&&(a=!1),{cacheMiss:!0,entitlements:null,accessDeniedReason:null,globalCustomerMissing:a};var p=l.entitlements,d=l.accessDeniedReason,f=t?t.transform(p):p,h=this.freshen.transform(f);return null===(o=(i=this.instrumentation).trackHit)||void 0===o||o.call(i,{customerId:s,resourceId:u}),ch(h,d)},e}(),Eh=function(e){return e?new Date(e):void 0},_h={type:"BOOLEAN",isFallback:!0,hasAccess:!1,accessDeniedReason:R.Unknown},Ih={type:"NUMERIC",isFallback:!0,hasAccess:!1,isUnlimited:!1,accessDeniedReason:R.Unknown},Sh={type:"METERED",isFallback:!0,hasAccess:!1,isUnlimited:!1,hasSoftLimit:!1,currentUsage:0,requestedUsage:1,accessDeniedReason:R.Unknown},Th={type:"ENUM",isFallback:!0,hasAccess:!1,enumValues:[],accessDeniedReason:R.Unknown},Ch={isFallback:!0,hasAccess:!1,accessDeniedReason:R.Unknown,currency:{currencyId:""},usageLimit:0,currentUsage:0,remaining:0,hasSoftLimit:!1},wh=function(){function e(e){Object.assign(this,e)}return e.prototype.getActiveSubscriptions=function(){return this.subscriptions.filter(function(e){return e.status===tn.Active})},e.prototype.getActiveTrials=function(){return this.subscriptions.filter(function(e){return e.status===tn.InTrial})},e.prototype.getActivePromotionalEntitlements=function(){return this.promotionalEntitlements.filter(function(e){return e.status===wt.Active})},e}(),Ph=function(){function e(){}return e.decideEntitlementPolicy=function(e){var t=e.entitlementType,n=e.accessDeniedReason,r=e.entitlement,i=e.requestedUsage,o=void 0===i?0:i,a=e.requestedValues,s=void 0===a?[]:a;return r?r.calculatedEntitlement.accessDeniedReason?{hasAccess:!1,accessDeniedReason:r.calculatedEntitlement.accessDeniedReason}:ah(r)?this.decideCreditAccess(r):oh(r)?this.decideFeatureAccess(r,o,s):{hasAccess:!1,accessDeniedReason:R.NoFeatureEntitlementInSubscription}:n?{accessDeniedReason:n,hasAccess:!1}:{hasAccess:!1,accessDeniedReason:this.getNotFoundReason(t)}},e.getNotFoundReason=function(e){return e===we.Feature?R.NoFeatureEntitlementInSubscription:R.EntitlementNotFound},e.decideFeatureAccess=function(e,t,n){var r=e.calculatedEntitlement.feature,i=r.featureType,o=r.meterType;switch(i){case We.Boolean:return{hasAccess:!0};case We.Enum:var a=(0,Hu.difference)(n,e.calculatedEntitlement.enumValues||[]);return(0,Hu.isEmpty)(a)?{hasAccess:!0}:{hasAccess:!1,accessDeniedReason:R.RequestedValuesMismatch};case We.Number:if(o===ot.None)return{hasAccess:!0};if(e.calculatedEntitlement.hasUnlimitedUsage||e.calculatedEntitlement.hasSoftLimit)return{hasAccess:!0};var s=e.calculatedEntitlement.usageLimit||0,u=e.usageData.currentUsage;return this.decideUsageBasedAccess(s,u,t)}},e.decideCreditAccess=function(e){if(e.calculatedEntitlement.hasSoftLimit)return{hasAccess:!0};var t=e.calculatedEntitlement.usageLimit,n=e.usageData.currentUsage;return this.decideUsageBasedAccess(t,n,1)},e.decideUsageBasedAccess=function(e,t,n){return t+n<=e?{hasAccess:!0}:{hasAccess:!1,accessDeniedReason:R.RequestedUsageExceedingLimit}},e}(),Dh=function(){return Dh=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},Dh.apply(this,arguments)},Ah=function(){function e(){var e=this;this.mapSlimCustomer=function(e){return{id:e.refId,name:e.name||void 0,email:e.email||void 0,billingId:e.billingId||void 0,createdAt:new Date(e.createdAt),updatedAt:new Date(e.updatedAt),metadata:e.additionalMetaData,awsMarketplaceCustomerId:e.awsMarketplaceCustomerId}},this.mapProvisionedCustomer=function(t){var n=e.mapSlimCustomer(t.provisionCustomer.customer),r=t.provisionCustomer.subscription?e.mapSlimSubscription(t.provisionCustomer.subscription):void 0;return{customer:n,subscriptionDecisionStrategy:t.provisionCustomer.subscriptionDecisionStrategy,subscription:r}},this.mapProvisionedSubscriptionResult=function(t){var n=t.provisionSubscription,r=n.subscription,i=n.status,o=n.checkoutUrl;return{subscription:r?e.mapSlimSubscription(r):void 0,checkoutUrl:o,provisionStatus:i}},this.mapSlimSubscription=function(t){var n,r,i=(t.prices||[])[0],o=t.totalPrice;return{id:t.refId,resource:t.resource?e.mapResource(t.resource):null,planId:t.plan.refId,status:t.status,addons:(null===(n=t.addons)||void 0===n?void 0:n.map(function(e){return{addonId:e.addon.refId,quantity:e.quantity}}))||[],addonIds:(null===(r=t.addons)||void 0===r?void 0:r.map(function(e){return e.addon.refId}))||[],customerId:t.customer.refId,metadata:t.additionalMetaData,billingId:t.billingId||void 0,billingLinkUrl:t.billingLinkUrl||void 0,latestInvoice:e.mapLatestInvoice(t.latestInvoice),paymentCollection:t.paymentCollection,prices:e.getSubscriptionPrices(t),totalPrice:o,price:i&&o&&i.price?e.mapTotalPrice(i.price,o,i.usageLimit):null,pricingType:t.pricingType,effectiveEndDate:Eh(t.effectiveEndDate),experimentInfo:(0,Hu.omit)(t.experimentInfo,"__typename"),billingSyncError:t.billingSyncError||void 0}},this.mapApplySubscriptionResults=function(t,n){var r=t.applySubscription.subscription;return{subscription:r?e.mapSlimSubscription(Dh(Dh({},r),{customer:{id:"",refId:n}})):void 0}},this.mapFullCustomer=function(t){var n;return new wh(Dh(Dh({},e.mapSlimCustomer(t)),{alreadyTrialPlans:(null===(n=t.trialedPlans)||void 0===n?void 0:n.map(function(e){return{planId:e.planRefId,productId:e.productRefId}}))||[],hasPaymentMethod:t.hasPaymentMethod,paymentMethodDetails:e.mapPaymentDetails(t),subscriptions:(0,Hu.map)(t.subscriptions,function(t){return e.mapFullSubscription(t)}),coupon:t.coupon?e.mapCoupon(t.coupon):void 0,promotionalEntitlements:(0,Hu.map)(t.promotionalEntitlements,function(t){return e.mapPromotionalEntitlement(t)}),experimentInfo:(0,Hu.omit)(t.experimentInfo,"__typename")}))}}return e.prototype.mapEntitlement=function(e,t,n,r){if(oh(e))return this.mapFeatureEntitlement(e,t,n,r);if(ah(e))return this.mapCreditEntitlement(e,t);throw new Error("Unknown entitlement type: ".concat(e.calculatedEntitlement.type))},e.prototype.mapFeatureEntitlement=function(e,t,n,r){var i=e.calculatedEntitlement;if(!i.feature)return this.mapBooleanEntitlement(e,t);var o=i.feature,a=o.featureType,s=o.meterType,u=a===We.Number&&(s===ot.Incremental||s===ot.Fluctuating);switch(a){case We.Boolean:return this.mapBooleanEntitlement(e,t);case We.Enum:return this.mapEnumEntitlement(e,t,r);case We.Number:return u?this.mapMeteredEntitlement(e,t,n):this.mapNumericEntitlement(e,t)}},e.prototype.mapBooleanEntitlement=function(e,t){return{type:"BOOLEAN",isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,feature:e.calculatedEntitlement.feature?Dh(Dh({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapEnumEntitlement=function(e,t,n){var r;return{type:"ENUM",isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,feature:e.calculatedEntitlement.feature?Dh(Dh({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0,enumValues:null!==(r=e.calculatedEntitlement.enumValues)&&void 0!==r?r:[],requestedValues:n}},e.prototype.mapNumericEntitlement=function(e,t){var n=e.calculatedEntitlement,r=n.hasUnlimitedUsage,i=n.usageLimit;return{type:"NUMERIC",isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:r,value:null!=i?i:void 0,feature:e.calculatedEntitlement.feature?Dh(Dh({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapMeteredEntitlement=function(e,t,n){var r=e.calculatedEntitlement,i=r.hasUnlimitedUsage,o=r.usageLimit,a=r.hasSoftLimit,s=r.resetPeriod,u=r.usagePeriodAnchor,c=e.usageData,l=c.currentUsage,p=c.usagePeriodStart,d=c.usagePeriodEnd;return{type:"METERED",isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:i,hasSoftLimit:!!a,usageLimit:null!=o?o:void 0,currentUsage:l,requestedUsage:n||0,resetPeriod:null!=s?s:void 0,usagePeriodAnchor:Eh(u),usagePeriodStart:Eh(p),usagePeriodEnd:Eh(d),nextResetDate:Eh(d),feature:e.calculatedEntitlement.feature?Dh(Dh({},e.calculatedEntitlement.feature),{meterType:e.calculatedEntitlement.feature.meterType||void 0,isMetered:!0}):void 0}},e.prototype.mapCreditEntitlement=function(e,t){var n=e.calculatedEntitlement,r=n.currency,i=n.usageLimit,o=n.hasSoftLimit,a=e.usageData,s=a.currentUsage,u=a.usagePeriodEnd,c=Math.max(i-s,0);return{hasAccess:t.hasAccess,isFallback:!1,accessDeniedReason:t.accessDeniedReason,currency:r,usageLimit:i,currentUsage:s,remaining:c,hasSoftLimit:null!=o&&o,usagePeriodEnd:Eh(u)}},e.prototype.getSubscriptionPrices=function(e){var t=this;return e.prices?e.prices.filter(function(e){return!!e.price}).map(function(e){return t.mapPrice(e.price,e.usageLimit)}):[]},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.mapPaymentDetails=function(e){var t=e.defaultPaymentExpirationYear,n=e.defaultPaymentExpirationMonth,r=e.defaultPaymentMethodLast4Digits;if((0,Hu.some)([r,n,t],function(e){return e}))return{expirationMonth:n,expirationYear:t,last4Digits:r}},e.prototype.mapCoupon=function(e){return{id:e.refId,name:e.name,description:e.description,metadata:e.additionalMetaData,discountValue:e.discountValue,percentOff:e.percentOff,amountsOff:e.amountsOff}},e.prototype.mapPrice=function(e,t){var n=e.feature,r=e.price,i=e.billingId,o=e.billingModel,a=e.billingPeriod,s=e.minUnitQuantity,u=e.maxUnitQuantity,c=e.tiers,l=e.tiersMode,p=e.billingCountryCode,d=e.billingCadence,f=e.blockSize,h=e.topUpCustomCurrencyId,m=e.customCurrency,g={pricingModel:o,billingPeriod:a,billingCadence:d,billingId:i,amount:r?r.amount:null,currency:this.getPriceCurrency(e),tiers:c,tiersMode:l,minUnitQuantity:s,maxUnitQuantity:u,billingCountryCode:p,blockSize:f,creditRate:e.creditRate?{amount:e.creditRate.amount}:null,topUpCustomCurrencyId:h,customCurrency:m};return n&&(g.feature={featureId:n.refId,displayName:n.displayName,description:n.description,units:n.featureUnits,unitsPlural:n.featureUnitsPlural,unitQuantity:t}),g},e.prototype.mapPlan=function(e,t){var n,r,i=this;return void 0===t&&(t=0),{id:e.refId,order:t,billingId:e.billingId,displayName:e.displayName,description:e.description,basePlan:e.basePlan?{id:e.basePlan.refId,displayName:e.basePlan.displayName}:void 0,entitlements:(0,Hu.map)(e.entitlements,function(e){return i.mapPackageEntitlement(e)}),inheritedEntitlements:(0,Hu.map)(e.inheritedEntitlements,function(e){return i.mapPackageEntitlement(e)}),packageEntitlements:null!==(n=e.packageEntitlements)&&void 0!==n?n:[],inheritedPackageEntitlements:null!==(r=e.inheritedPackageEntitlements)&&void 0!==r?r:[],pricePoints:(0,Hu.map)(e.prices,function(e){return i.mapPrice(e)}),pricingType:e.pricingType,defaultTrialConfig:this.mapDefaultTrialConfig(e.defaultTrialConfig),compatibleAddons:this.mapCompatibleAddons(e),compatiblePackageGroups:this.mapCompatiblePackageGroups(e),product:{id:e.product.refId,displayName:e.product.displayName,description:e.product.description,metadata:e.product.additionalMetaData,awsMarketplaceProductId:e.product.awsMarketplaceProductId,downgradePlan:e.product.productSettings.downgradePlan?{id:e.product.productSettings.downgradePlan.refId,displayName:e.product.productSettings.downgradePlan.displayName}:void 0},metadata:e.additionalMetaData,awsMarketplacePlanDimension:e.awsMarketplacePlanDimension}},e.prototype.mapProduct=function(e){return{id:e.refId,displayName:e.displayName,description:e.description,metadata:e.additionalMetaData,downgradePlan:e.productSettings.downgradePlan?{id:e.productSettings.downgradePlan.refId,displayName:e.productSettings.downgradePlan.displayName}:void 0}},e.prototype.mapProducts=function(e){var t=this;return e.products.edges.map(function(e){return e.node}).map(function(e){return t.mapProduct(e)})},e.prototype.mapDefaultTrialConfig=function(e){if(e)return{duration:null==e?void 0:e.duration,units:null==e?void 0:e.units,budget:e.budget?{limit:e.budget.limit}:void 0}},e.prototype.mapCompatibleAddons=function(e){var t=this;if(e.pricingType===_t.Free||!e.compatibleAddons)return[];var n=e.compatibleAddons;return(e.pricingType===_t.Paid?n.filter(function(e){return e.pricingType===_t.Paid}):n).map(function(e){return t.mapAddon(e)})},e.prototype.mapPackageEntitlement=function(e){var t=e.feature;return{usageLimit:e.usageLimit||0,hasSoftLimit:e.hasSoftLimit,feature:{id:t.refId,featureType:t.featureType,description:t.description||"",meterType:t.meterType||void 0,units:t.featureUnits||void 0,unitsPlural:t.featureUnitsPlural||void 0,displayName:t.displayName,isMetered:rh(t),metadata:t.additionalMetaData},hasUnlimitedUsage:e.hasUnlimitedUsage,resetPeriod:e.resetPeriod,hiddenFromWidgets:e.hiddenFromWidgets,displayNameOverride:e.displayNameOverride,isGranted:e.isGranted}},e.prototype.mapFullSubscriptions=function(e){var t=this;return e.map(function(e){return t.mapFullSubscription(e)})},e.prototype.mapFullSubscription=function(e){var t,n=this,r=e.totalPrice,i=(e.prices||[])[0];return{id:e.refId,payingCustomer:e.payingCustomer?this.mapSlimCustomer(e.payingCustomer):null,resource:e.resource?this.mapResource(e.resource):null,status:e.status,plan:this.mapPlan(e.plan),price:i&&r&&i.price?this.mapTotalPrice(i.price,r,i.usageLimit):null,prices:this.getSubscriptionPrices(e),totalPrice:r,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:Eh(e.startDate),endDate:Eh(e.endDate),trialEndDate:Eh(e.trialEndDate),cancellationDate:Eh(e.cancellationDate),currentBillingPeriodEnd:Eh(e.currentBillingPeriodEnd),effectiveEndDate:Eh(e.effectiveEndDate),metadata:e.additionalMetaData,billingId:e.billingId||void 0,billingLinkUrl:e.billingLinkUrl||void 0,experimentInfo:(0,Hu.omit)(e.experimentInfo,"__typename"),latestInvoice:this.mapLatestInvoice(e.latestInvoice),paymentCollection:e.paymentCollection,paymentCollectionMethod:e.paymentCollectionMethod||void 0,billingSyncError:e.billingSyncError||void 0,futureUpdates:e.futureUpdates}},e.prototype.mapLatestInvoice=function(e){return e?Dh(Dh({},e),{createdAt:Eh(e.createdAt),updatedAt:Eh(e.updatedAt)}):void 0},e.prototype.mapTotalPrice=function(e,t,n){var r=e.feature,i=e.billingModel,o=e.billingPeriod,a=e.tiers,s=e.tiersMode,u={pricingModel:i,billingPeriod:o,amount:t.total.amount,grossAmount:t.subTotal.amount,currency:this.getPriceCurrency(e),tiersMode:s,tiers:a};return r&&(u.feature={featureId:r.refId,displayName:r.displayName,units:r.featureUnits,unitsPlural:r.featureUnitsPlural,unitQuantity:n}),u},e.prototype.mapDependencyAddon=function(e){return{refId:e.refId,displayName:e.displayName,description:e.description||void 0}},e.prototype.mapAddon=function(e){var t,n,r=this;return{id:e.refId,displayName:e.displayName,billingId:e.billingId,description:e.description||"",entitlements:(0,Hu.map)(e.entitlements,function(e){return r.mapPackageEntitlement(e)}),packageEntitlements:null!==(t=e.packageEntitlements)&&void 0!==t?t:[],pricePoints:(0,Hu.map)(e.prices,function(e){return r.mapPrice(e)}),pricingType:e.pricingType,metadata:e.additionalMetaData,maxQuantity:e.maxQuantity||void 0,dependencies:(null===(n=e.dependencies)||void 0===n?void 0:n.map(function(e){return r.mapDependencyAddon(e)}))||[]}},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:t.featureType,meterType:t.meterType||void 0,units:t.featureUnits||void 0,unitsPlural:t.featureUnitsPlural||void 0,isMetered:rh(t),metadata:t.additionalMetaData},hasUnlimitedUsage:e.hasUnlimitedUsage,expiresAt:e.endDate,hasExpirationDate:!!e.endDate,isVisible:e.isVisible}},e.prototype.mapReportUsageAck=function(e){var t;return{measurementId:e.id,customerId:e.customerId,resourceId:e.resourceId||void 0,featureId:e.featureId,currentUsage:null!==(t=e.currentUsage)&&void 0!==t?t:void 0,credit:e.credit?{currencyId:e.credit.currencyId,currentUsage:e.credit.currentUsage,usagePeriodEnd:Eh(e.credit.usagePeriodEnd),consumed:e.credit.consumed}:void 0,usagePeriodStart:Eh(e.usagePeriodStart),usagePeriodEnd:Eh(e.usagePeriodEnd),nextResetDate:Eh(e.usagePeriodEnd)}},e.prototype.mapConsumeCreditsResult=function(e){var t;return{customerId:e.customerId,currencyId:e.currencyId,resourceId:e.resourceId||void 0,amount:e.amount,timestamp:null!==(t=Eh(e.timestamp))&&void 0!==t?t:new Date,credit:e.credit?{currencyId:e.credit.currencyId,currentUsage:e.credit.currentUsage,usageLimit:e.credit.usageLimit,usagePeriodEnd:Eh(e.credit.usagePeriodEnd)}:void 0}},e.prototype.mapResource=function(e){return{id:e.resourceId}},e.prototype.mapPaywall=function(e){return{plans:this.mapPlans(e),configuration:null==e?void 0:e.paywall.configuration,customer:(null==e?void 0:e.paywall.customer)?this.mapSlimCustomer(null==e?void 0:e.paywall.customer):null,resource:(null==e?void 0:e.paywall.resource)?this.mapResource(null==e?void 0:e.paywall.resource):null,activeSubscriptions:(null==e?void 0:e.paywall.activeSubscriptions)?this.mapFullSubscriptions(null==e?void 0:e.paywall.activeSubscriptions):null,currency:e.paywall.currency}},e.prototype.mapPlans=function(e){var t,n=this;return((null===(t=null==e?void 0:e.paywall)||void 0===t?void 0:t.plans)||[]).map(function(e,t){return n.mapPlan(e,t)})},e.prototype.mapTaxFields=function(e){return e.tax&&e.taxDetails?{tax:this.mapMoney(e.tax),taxDetails:{displayName:e.taxDetails.displayName,percentage:e.taxDetails.percentage,inclusive:e.taxDetails.inclusive}}:{}},e.prototype.mapSubscriptionPreview=function(e){var t=e.subscription,n=e.proration,r=e.billingPeriodRange;return Dh(Dh(Dh({total:this.mapMoney(e.total),totalExcludingTax:this.mapMoney(e.totalExcludingTax),subTotal:this.mapMoney(e.subTotal)},this.mapTaxFields(e)),e.discount?{discount:this.mapDiscount(e.discount)}:{}),{billingPeriodRange:{start:r.start?new Date(r.start):void 0,end:r.end?new Date(r.end):void 0},proration:n?{credit:this.mapMoney(n.credit),debit:this.mapMoney(n.debit),netAmount:this.mapMoney(n.netAmount),prorationDate:new Date(n.prorationDate)}:void 0,subscription:t?{total:this.mapMoney(t.total),totalExcludingTax:this.mapMoney(t.totalExcludingTax),subTotal:this.mapMoney(t.subTotal),tax:this.mapMoney(t.tax)}:void 0})},e.prototype.mapCredits=function(e){return{initial:this.mapMoney(e.initial),used:this.mapMoney(e.used),remaining:this.mapMoney(e.remaining)}},e.prototype.mapSubscriptionPreviewV2=function(e){var t=e.immediateInvoice,n=e.recurringInvoice,r=e.billingPeriodRange,i=e.hasScheduledUpdates,o=e.isPlanDowngrade;return{immediateInvoice:Dh(Dh({},this.mapSubscriptionPreviewInvoice(t)),{proration:t.proration?{credit:this.mapMoney(t.proration.credit),debit:this.mapMoney(t.proration.debit),netAmount:this.mapMoney(t.proration.netAmount),prorationDate:new Date(t.proration.prorationDate),hasProrations:t.proration.hasProrations||void 0}:void 0,credits:t.credits?this.mapCredits(t.credits):void 0}),recurringInvoice:n?Dh({},this.mapSubscriptionPreviewInvoice(n)):void 0,billingPeriodRange:{start:r.start&&new Date(r.start),end:r.end&&new Date(r.end)},isPlanDowngrade:!!o,hasScheduledUpdates:!!i}},e.prototype.mapSubscriptionPreviewInvoice=function(e){return Dh(Dh({total:this.mapMoney(e.total),subTotal:this.mapMoney(e.subTotal),totalExcludingTax:this.mapMoney(e.totalExcludingTax),discount:e.discount?this.mapMoney(e.discount):void 0},e.discountDetails?{discountDetails:this.mapDiscount(e.discountDetails)}:{}),this.mapTaxFields(e))},e.prototype.mapDiscount=function(e){var t=e.type,n=e.value,r=e.durationType,i=e.durationInMonths;return Dh({type:t,value:n,durationType:r},i?{durationInMonths:i}:{})},e.prototype.mapMoney=function(e){return{amount:e.amount,currency:e.currency}},e.prototype.mapUsageHistory=function(e){return e.usageMeasurements.map(function(e){var t=e.date,n=e.value,r=e.isResetPoint;return{date:new Date(t),value:n,isResetPoint:!!r}})},e.prototype.mapCustomerStatistics=function(e){return{statistics:{activeSubscriptionsByPricingType:e.statistics?e.statistics.activeSubscriptionsByPricingType.map(function(e){return(0,Hu.omit)(e,"__typename")}):[]}}},e.prototype.getPriceCurrency=function(e){var t,n,r=e.price,i=e.tiers;return(null==r?void 0:r.currency)||(null===(t=null==i?void 0:i[0].unitPrice)||void 0===t?void 0:t.currency)||(null===(n=null==i?void 0:i[0].flatPrice)||void 0===n?void 0:n.currency)||he.Usd},e.prototype.mapCompatiblePackageGroups=function(e){var t=this;if(e.pricingType===_t.Free||!e.compatiblePackageGroups)return[];var n=e.compatiblePackageGroups,r=e.pricingType;return n.map(function(e){var n=e.packageGroupId,i=e.displayName,o=e.addons,a=e.options;return{packageGroupId:n,displayName:i,addons:t.mapCompatibleAddons({compatibleAddons:o,pricingType:r}),options:{minItems:(null==a?void 0:a.minItems)||void 0,freeItems:(null==a?void 0:a.freeItems)||void 0}}})},e}(),Oh=function(){return Oh=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},Oh.apply(this,arguments)};function Nh(e){return null!=e&&"requestedUsage"in e}function Rh(e){return null!=e&&"requestedValues"in e}function Fh(e){var t=e.currencyId,n=e.accessDeniedReason,r=e.fallback,i=void 0===r?{}:r,o=Oh(Oh(Oh(Oh(Oh({},Ch),{currency:{currencyId:t}}),void 0!==n&&{accessDeniedReason:n}),i),{isFallback:!0}),a=o.usageLimit,s=o.currentUsage,u=o.remaining,c=o.hasAccess?void 0:o.accessDeniedReason;return Oh(Oh({},o),{accessDeniedReason:c,remaining:"number"==typeof a&&"number"==typeof s?Math.max(a-s,0):u})}var kh=function(){return kh=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},kh.apply(this,arguments)},xh=function(){function e(e){this.modelMapper=null!=e?e:new Ah}return e.prototype.evaluateBooleanEntitlement=function(e,t,n){var r,i=Ph.decideEntitlementPolicy({entitlementType:we.Feature,accessDeniedReason:t,entitlement:e});return e&&(null==(r=e.calculatedEntitlement.feature)?void 0:r.featureType)!==We.Boolean?kh(kh({},n),{accessDeniedReason:R.FeatureTypeMismatch}):e?this.modelMapper.mapBooleanEntitlement(e,i):kh(kh({type:"BOOLEAN"},i),{isFallback:!1})},e.prototype.evaluateNumericEntitlement=function(e,t,n){var r,i=Ph.decideEntitlementPolicy({entitlementType:we.Feature,accessDeniedReason:t,entitlement:e});return e&&((null==(r=e.calculatedEntitlement.feature)?void 0:r.featureType)!==We.Number||!(0,Hu.isNil)(r.meterType)&&r.meterType!=ot.None)?kh(kh({},n),{accessDeniedReason:R.FeatureTypeMismatch}):e?this.modelMapper.mapNumericEntitlement(e,i):kh(kh({type:"NUMERIC"},i),{isFallback:!1,isUnlimited:!1})},e.prototype.evaluateMeteredEntitlement=function(e,t,n,r){var i=Ph.decideEntitlementPolicy({entitlementType:we.Feature,accessDeniedReason:t,entitlement:e,requestedUsage:r});return e&&!rh(e.calculatedEntitlement.feature)?kh(kh({},n),{accessDeniedReason:R.FeatureTypeMismatch}):e?this.modelMapper.mapMeteredEntitlement(e,i,r):kh(kh({type:"METERED"},i),{currentUsage:0,isFallback:!1,isUnlimited:!1,hasSoftLimit:!1,requestedUsage:r||0})},e.prototype.evaluateEnumEntitlement=function(e,t,n,r){var i,o=Ph.decideEntitlementPolicy({entitlementType:we.Feature,accessDeniedReason:t,entitlement:e,requestedValues:r});return e&&(null==(i=e.calculatedEntitlement.feature)?void 0:i.featureType)!==We.Enum?kh(kh({},n),{accessDeniedReason:R.FeatureTypeMismatch}):e?this.modelMapper.mapEnumEntitlement(e,o,r):kh(kh({type:"ENUM"},o),{isFallback:!1,enumValues:[],requestedValues:r||[]})},e.prototype.evaluateCreditEntitlement=function(e,t,n,r){var i=Ph.decideEntitlementPolicy({entitlementType:we.Credit,accessDeniedReason:t,entitlement:e});return e?this.modelMapper.mapCreditEntitlement(e,i):kh(kh({},Fh({currencyId:n,accessDeniedReason:i.accessDeniedReason,fallback:r})),{hasAccess:i.hasAccess,isFallback:!!r})},e.prototype.evaluateEntitlement=function(e,t,n,r,i){var o,a=Nh(r)?r.requestedUsage:void 0,s=Rh(r)?r.requestedValues:void 0,u=Ph.decideEntitlementPolicy({entitlementType:e.type,accessDeniedReason:n,entitlement:t,requestedUsage:a,requestedValues:s});return t?this.modelMapper.mapEntitlement(t,u,a,s):i?kh(kh({},i),{accessDeniedReason:null!==(o=u.accessDeniedReason)&&void 0!==o?o:i.accessDeniedReason,isFallback:!0}):function(e,t,n){if(e.type===we.Credit)return Fh({currencyId:e.id,accessDeniedReason:n,fallback:null==t?void 0:t.fallback});var r=function(e){var t,n=null!==(t=null==e?void 0:e.fallback)&&void 0!==t?t:{};return Nh(e)?Oh(Oh({},Sh),n):Rh(e)?Oh(Oh({},Th),n):function(e){var t=null==e?void 0:e.fallback;return null!=e&&null!=t&&"value"in t}(e)?Oh(Oh({},Ih),n):Oh(Oh({},_h),n)}(t),i=r.hasAccess?void 0:null!=n?n:r.accessDeniedReason;return Oh(Oh({},r),{accessDeniedReason:i,isFallback:!0})}(e,r,u.accessDeniedReason)},e}();function Uh(e){return"feature"in e}var Mh=function(){return Mh=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},Mh.apply(this,arguments)};function Lh(e){return e?Object.keys(e).map(function(t){return Mh({isFallback:!0,accessDeniedReason:R.Unknown,feature:{id:t}},e[t])}):[]}var jh=function(){function e(e){this.loggerService=e}return e.prototype.mapEntitlement=function(e){var t=e.__typename;switch(t){case"CreditEntitlement":return this.mapCreditEntitlement(e);case"FeatureEntitlement":case"Entitlement":var n=e.feature;return n?this.mapFeatureEntitlement(e,n):(this.loggerService.error("Skipping feature entitlement without feature data"),null);default:return this.loggerService.error("Skipping unknown entitlement type: ".concat(t)),null}},e.prototype.mapCreditEntitlement=function(e){var t,n,r,i,o,a,s,u,c,l,p,d,f=null!==(n=null===(t=Eh(e.usageUpdatedAt))||void 0===t?void 0:t.getTime())&&void 0!==n?n:null;return{entitlement:new ih({type:we.Credit,currency:{currencyId:e.currency.currencyId,displayName:null!==(r=e.currency.displayName)&&void 0!==r?r:void 0,description:null!==(i=e.currency.description)&&void 0!==i?i:void 0,unitSingular:null!==(o=e.currency.unitSingular)&&void 0!==o?o:void 0,unitPlural:null!==(a=e.currency.unitPlural)&&void 0!==a?a:void 0,additionalMetaData:null!==(s=e.currency.additionalMetaData)&&void 0!==s?s:void 0},usageLimit:null!==(u=e.usageLimit)&&void 0!==u?u:0,hasSoftLimit:!!e.hasSoftLimit,accessDeniedReason:e.accessDeniedReason||null,validUntil:(null===(c=Eh(e.validUntil))||void 0===c?void 0:c.getTime())||null},{currentUsage:null!==(l=e.currentUsage)&&void 0!==l?l:0,usagePeriodStart:null,usagePeriodEnd:null!==(d=null===(p=Eh(e.usagePeriodEnd))||void 0===p?void 0:p.getTime())&&void 0!==d?d:null}),usageUpdatedAt:f}},e.prototype.mapFeatureEntitlement=function(e,t){var n,r,i,o,a,s,u,c,l,p={id:t.refId,displayName:t.displayName,description:t.description||void 0,featureType:t.featureType,meterType:t.meterType||void 0,units:t.featureUnits||"",unitsPlural:t.featureUnitsPlural||"",unitTransformation:t.unitTransformation||void 0},d=null;e.creditRate&&(d={amount:e.creditRate.amount,currencyId:e.creditRate.currencyId});var f=null!==(r=null===(n=Eh(e.usageUpdatedAt))||void 0===n?void 0:n.getTime())&&void 0!==r?r:null;return{entitlement:new ih({type:we.Feature,feature:p,usageLimit:null!==(i=e.usageLimit)&&void 0!==i?i:null,hasUnlimitedUsage:e.hasUnlimitedUsage,hasSoftLimit:!!e.hasSoftLimit,accessDeniedReason:e.accessDeniedReason||null,enumValues:e.enumValues||null,validUntil:(null===(o=Eh(e.validUntil))||void 0===o?void 0:o.getTime())||null,usagePeriodAnchor:(null===(a=Eh(e.usagePeriodAnchor))||void 0===a?void 0:a.getTime())||null,creditRate:d,resetPeriod:e.resetPeriod||null,resetPeriodConfiguration:e.resetPeriodConfiguration||null},{currentUsage:e.currentUsage||0,usagePeriodStart:null!==(u=null===(s=Eh(e.usagePeriodStart))||void 0===s?void 0:s.getTime())&&void 0!==u?u:null,usagePeriodEnd:null!==(l=null===(c=Eh(e.usagePeriodEnd))||void 0===c?void 0:c.getTime())&&void 0!==l?l:null}),usageUpdatedAt:f}},e}(),Vh=function(){function e(e){Object.assign(this,e)}return e.prototype.getActiveSubscriptions=function(){return this.subscriptions.filter(function(e){return e.status===tn.Active})},e.prototype.getActiveTrials=function(){return this.subscriptions.filter(function(e){return e.status===tn.InTrial})},e.prototype.getActivePromotionalEntitlements=function(){return this.promotionalEntitlements.filter(function(e){return e.status===wt.Active})},e}();const Bh=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getEntitlementsState=function(e){return t=this,n=arguments,i=function(e,t,n){return void 0===t&&(t=!1),function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,function(r){return this.edgeApiClient&&!t?[2,this.edgeApiClient.getEntitlementsState(e,n)]:[2,this.client.query({query:ru,variables:{query:{customerId:e,resourceId:n}},fetchPolicy:"no-cache"})]})},new((r=void 0)||(r=Promise))(function(e,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r(function(e){e(n)})).then(a,s)}u((i=i.apply(t,n||[])).next())});var t,n,r,i},e}();var Gh,qh=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})},$h=function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},Qh=function(){function e(e,t,n,r,i,o,a){this.customerId=e,this.resourceId=t,this.cacheService=n,this.loggerService=o,this.onEntitlementsUpdated=a,this.evaluator=new xh,this.loadingEntitlements=null,this.entitlementsApi=new Bh(r,i)}return e.prototype.refresh=function(){return qh(this,void 0,Promise,function(){return $h(this,function(e){switch(e.label){case 0:return[4,this.loadEntitlements(!0)];case 1:return e.sent(),[2]}})})},Object.defineProperty(e.prototype,"isInitialized",{get:function(){return this.cacheService.isLoaded()},enumerable:!1,configurable:!0}),e.prototype.getBooleanEntitlement=function(e,t,n){var r=this.getEntitlement(we.Feature,e),i=r.entitlement,o=r.accessDeniedReason;return this.evaluator.evaluateBooleanEntitlement(i,o,t)},e.prototype.getNumericEntitlement=function(e,t,n){var r=this.getEntitlement(we.Feature,e),i=r.entitlement,o=r.accessDeniedReason;return this.evaluator.evaluateNumericEntitlement(i,o,t)},e.prototype.getMeteredEntitlement=function(e,t,n){var r=this.getEntitlement(we.Feature,e),i=r.entitlement,o=r.accessDeniedReason;return this.evaluator.evaluateMeteredEntitlement(i,o,t,null==n?void 0:n.requestedUsage)},e.prototype.getEnumEntitlement=function(e,t,n){var r=this.getEntitlement(we.Feature,e),i=r.entitlement,o=r.accessDeniedReason;return this.evaluator.evaluateEnumEntitlement(i,o,t,null==n?void 0:n.requestedValues)},e.prototype.getCreditEntitlement=function(e,t){var n=this.getEntitlement(we.Credit,e),r=n.entitlement,i=n.accessDeniedReason;return this.evaluator.evaluateCreditEntitlement(r,i,e,t)},e.prototype.loadEntitlements=function(e){return qh(this,void 0,Promise,function(){return $h(this,function(t){switch(t.label){case 0:this.loadingEntitlements||(this.loadingEntitlements=this.loadEntitlementsFromRemote(e)),t.label=1;case 1:return t.trys.push([1,,3,4]),[4,this.loadingEntitlements];case 2:return[2,t.sent()];case 3:return this.loadingEntitlements=null,[7];case 4:return[2]}})})},e.prototype.loadEntitlementsFromRemote=function(e){return qh(this,void 0,void 0,function(){var t,n,r,i;return $h(this,function(o){switch(o.label){case 0:return[4,this.entitlementsApi.getEntitlementsState(this.customerId,e,this.resourceId)];case 1:return t=o.sent(),n=t.data.entitlementsState.entitlementsV2,r=null!==(i=t.data.entitlementsState.accessDeniedReason)&&void 0!==i?i:null,this.storeFetchedEntitlementsInCache(n,r),[2]}})})},e.prototype.storeFetchedEntitlementsInCache=function(e,t){var n;this.cacheService.updateLastChecked();var r=this.cacheService.getLastUpdate(),i=this.getLastEntitlementsUpdate(e);r&&i.getTime()<r.getTime()||(this.cacheService.setCustomer({customerId:this.customerId,resourceId:null!==(n=this.resourceId)&&void 0!==n?n:null,entitlements:e,accessDeniedReason:t,entitlementsTimestamp:i.getTime()}),this.onEntitlementsUpdated(this.evaluateCustomerEntitlements()))},e.prototype.getLastEntitlementsUpdate=function(e){return(0,Hu.max)(e.flatMap(function(e){return[new Date(e.entitlementUpdatedAt),new Date(e.usageUpdatedAt)]}))||new Date},e.prototype.getEntitlement=function(e,t){var n,r=this.cacheService.getCustomerEntitlement({customerId:this.customerId,resourceId:null!==(n=this.resourceId)&&void 0!==n?n:null,query:{type:e,id:t}});return this.renewOutdatedCacheInBackground(),r},e.prototype.getCustomerEntitlements=function(){return qh(this,void 0,Promise,function(){return $h(this,function(e){switch(e.label){case 0:return[4,this.renewOutdatedCache()];case 1:return e.sent(),[2,this.evaluateCustomerEntitlements()]}})})},e.prototype.evaluateCustomerEntitlements=function(){var e,t=this,n=this.cacheService.getCustomerEntitlements({customerId:this.customerId,resourceId:null!==(e=this.resourceId)&&void 0!==e?e:null}),r=n.entitlements,i=n.accessDeniedReason;return r?{entitlements:r.values().map(function(e){return t.evaluator.evaluateEntitlement(e.getEntitlementQuery(),e,i)}),accessDeniedReason:i}:{entitlements:[],accessDeniedReason:i}},e.prototype.renewOutdatedCache=function(){return qh(this,void 0,Promise,function(){return $h(this,function(e){switch(e.label){case 0:return!this.cacheService.isLoaded()||this.cacheService.isOutdated()?[4,this.loadEntitlements()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},e.prototype.renewOutdatedCacheInBackground=function(){var e=this;this.renewOutdatedCache().catch(function(t){e.loggerService.error("Failed to renew cache in background",t)})},e}(),Hh=n(1434),zh=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wh=function(e){function t(){return e.call(this)||this}return zh(t,e),t}(Hh.TypedEmitter);!function(e){e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="READY",e.FAILED="FAILED"}(Gh||(Gh={}));var Zh=function(){function e(e){this.eventEmitter=e,this.initializationPromise=null,this.initializationStatus=Gh.IN_PROGRESS,this.initFailureError=null}return e.prototype.getInitializationPromise=function(){var e=this;return this.initializationPromise?this.initializationPromise:this.initializationStatus===Gh.SUCCESS?Promise.resolve():this.initializationStatus===Gh.FAILED?Promise.reject(this.initFailureError):(this.initializationPromise=new Promise(function(t,n){e.eventEmitter.once("initializeSuccessfully",function(){t()}),e.eventEmitter.once("initializeFailed",function(e){n(e)})}),this.initializationPromise)},e.prototype.signalSuccessInit=function(){this.initializationStatus=Gh.SUCCESS,this.eventEmitter.emit("initializeSuccessfully")},e.prototype.signalFailedInit=function(e){this.initializationStatus=Gh.FAILED,this.initFailureError=e,this.eventEmitter.emit("initializeFailed",e)},e}();const Yh=Object.prototype.toString;function Kh(e){switch(Yh.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return sm(e,Error)}}function Jh(e,t){return Yh.call(e)===`[object ${t}]`}function Xh(e){return Jh(e,"ErrorEvent")}function em(e){return Jh(e,"DOMError")}function tm(e){return Jh(e,"String")}function nm(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function rm(e){return null===e||nm(e)||"object"!=typeof e&&"function"!=typeof e}function im(e){return Jh(e,"Object")}function om(e){return"undefined"!=typeof Event&&sm(e,Event)}function am(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function sm(e,t){try{return e instanceof t}catch(e){return!1}}function um(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function cm(e){return e&&e.Math==Math?e:void 0}const lm="object"==typeof globalThis&&cm(globalThis)||"object"==typeof window&&cm(window)||"object"==typeof self&&cm(self)||"object"==typeof n.g&&cm(n.g)||function(){return this}()||{};function pm(){return lm}function dm(e,t,n){const r=n||lm,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const fm=pm();function hm(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let o=0,a=0;const s=" > ",u=s.length;let c;const l=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&o++<r&&(c=mm(n,l),!("html"===c||o>1&&a+i.length*u+c.length>=p));)i.push(c),a+=c.length,n=n.parentNode;return i.reverse().join(s)}catch(e){return"<unknown>"}}function mm(e,t){const n=e,r=[];let i,o,a,s,u;if(!n||!n.tagName)return"";if(fm.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(c&&c.length)c.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&tm(i))for(o=i.split(/\s+/),u=0;u<o.length;u++)r.push(`.${o[u]}`);const l=["aria-label","type","name","title","alt"];for(u=0;u<l.length;u++)a=l[u],s=n.getAttribute(a),s&&r.push(`[${a}="${s}"]`);return r.join("")}const gm="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ym=["debug","info","warn","error","log","assert","trace"],vm={};function bm(e){if(!("console"in lm))return e();const t=lm.console,n={},r=Object.keys(vm);r.forEach(e=>{const r=vm[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}const Em=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return gm?ym.forEach(n=>{t[n]=(...t)=>{e&&bm(()=>{lm.console[n](`Sentry Logger [${n}]:`,...t)})}}):ym.forEach(e=>{t[e]=()=>{}}),t}();function _m(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Im(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const r=e[t];try{um(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Sm(e,t=[],n=!1){return t.some(t=>function(e,t,n=!1){return!!tm(e)&&(Jh(t,"RegExp")?t.test(e):!!tm(t)&&(n?e===t:e.includes(t)))}(e,t,n))}function Tm(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"==typeof i&&wm(i,r),e[t]=i}function Cm(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){gm&&Em.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function wm(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Cm(e,"__sentry_original__",t)}catch(e){}}function Pm(e){return e.__sentry_original__}function Dm(e){if(Kh(e))return{message:e.message,name:e.name,stack:e.stack,...Om(e)};if(om(e)){const t={type:e.type,target:Am(e.target),currentTarget:Am(e.currentTarget),...Om(e)};return"undefined"!=typeof CustomEvent&&sm(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Am(e){try{return"undefined"!=typeof Element&&sm(e,Element)?hm(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function Om(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Nm(e){return Rm(e,new Map)}function Rm(e,t){if(function(e){if(!im(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=Rm(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach(e=>{r.push(Rm(e,t))}),r}return e}function Fm(){const e=lm,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function km(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function xm(e){const{message:t,event_id:n}=e;if(t)return t;const r=km(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Um(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function Mm(e,t){const n=km(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function Lm(e){if(e&&e.__sentry_captured__)return!0;try{Cm(e,"__sentry_captured__",!0)}catch(e){}return!1}function jm(){return Date.now()/1e3}const Vm=function(){const{performance:e}=lm;if(!e||!e.now)return jm;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();let Bm;(()=>{const{performance:e}=lm;if(!e||!e.now)return void(Bm="none");const t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i<t,a=e.timing&&e.timing.navigationStart,s="number"==typeof a?Math.abs(a+n-r):t;o||s<t?i<=s?(Bm="timeOrigin",e.timeOrigin):Bm="navigationStart":Bm="dateNow"})();const Gm="production",qm="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var $m;function Qm(e){return new zm(t=>{t(e)})}function Hm(e){return new zm((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}($m||($m={}));class zm{constructor(e){zm.prototype.__init.call(this),zm.prototype.__init2.call(this),zm.prototype.__init3.call(this),zm.prototype.__init4.call(this),this._state=$m.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new zm((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 zm((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)})})}__init(){this._resolve=e=>{this._setResult($m.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult($m.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===$m.PENDING&&(am(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===$m.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===$m.RESOLVED&&e[1](this._value),this._state===$m.REJECTED&&e[2](this._value),e[0]=!0)})}}}function Wm(){return dm("globalEventProcessors",()=>[])}function Zm(e){Wm().push(e)}function Ym(e,t,n,r=0){return new zm((i,o)=>{const a=e[r];if(null===t||"function"!=typeof a)i(t);else{const s=a({...t},n);qm&&a.id&&null===s&&Em.log(`Event processor "${a.id}" dropped event`),am(s)?s.then(t=>Ym(e,t,n,r+1).then(i)).then(null,o):Ym(e,s,n,r+1).then(i).then(null,o)}})}function Km(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||Vm(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Fm()),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{const t=e.timestamp-e.started;e.duration=t>=0?t: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)}function Jm(e){return e.transaction}function Xm(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:a,tags:s,origin:u}=eg(e);return Nm({data:r,op:i,parent_span_id:o,span_id:t,status:a,tags:s,trace_id:n,origin:u})}function eg(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function tg(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},a=Nm({environment:r.environment||Gm,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}function ng(e){const t=Ag();if(!t)return{};const n=tg(eg(e).trace_id||"",t,mg().getScope()),r=Jm(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:o,source:a}=r.metadata;null!=o&&(n.sample_rate=`${o}`);const s=eg(r);return a&&"url"!==a&&(n.transaction=s.description),n.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return Boolean(1&t)}(r)),t.emit&&t.emit("createDsc",n),n}function rg(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;!function(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,u=Nm(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const c=Nm(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const l=Nm(i);l&&Object.keys(l).length&&(e.user={...l,...e.user});const p=Nm(o);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts}),a&&(e.level=a),s&&(e.transaction=s)}(e,t),r&&function(e,t){e.contexts={trace:Xm(t),...e.contexts};const n=Jm(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:ng(t),...e.sdkProcessingMetadata};const r=eg(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,r),function(e,t){var n;e.fingerprint=e.fingerprint?(n=e.fingerprint,Array.isArray(n)?n:[n]):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,i),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,o)}function ig(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:u,fingerprint:c,eventProcessors:l,attachments:p,propagationContext:d,transactionName:f,span:h}=t;og(e,"extra",n),og(e,"tags",r),og(e,"user",i),og(e,"contexts",o),og(e,"sdkProcessingMetadata",s),a&&(e.level=a),f&&(e.transactionName=f),h&&(e.span=h),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...d}}function og(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}let ag;class sg{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=ug()}static clone(e){return e?e.clone():new sg}clone(){const e=new sg;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Km(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[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;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;const t="function"==typeof e?e(this):e;if(t instanceof sg){const e=t.getScopeData();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.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if(im(t)){const t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)}return 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._propagationContext=ug(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:jm(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:i,_user:o,_level:a,_fingerprint:s,_eventProcessors:u,_propagationContext:c,_sdkProcessingMetadata:l,_transactionName:p,_span:d}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:i,user:o,level:a,fingerprint:s||[],eventProcessors:u,propagationContext:c,sdkProcessingMetadata:l,transactionName:p,span:d}}applyToEvent(e,t={},n=[]){return rg(e,this.getScopeData()),Ym([...n,...Wm(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Fm();if(!this._client)return Em.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:Fm();if(!this._client)return Em.warn("No client configured on scope - will not capture message!"),r;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Fm();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Em.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function ug(){return{traceId:Fm(),spanId:Fm().substring(16)}}const cg="7.120.4",lg=parseFloat(cg),pg=100;class dg{constructor(e,t,n,r=lg){let i,o;this._version=r,t?i=t:(i=new sg,i.setClient(e)),n?o=n:(o=new sg,o.setClient(e)),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=o}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(e){throw this.popScope(),e}return am(n)?n.then(e=>(this.popScope(),e),e=>{throw this.popScope(),e}):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:Fm(),r=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Fm(),i=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Fm();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=pg}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const a={timestamp:jm(),...e},s=i?bm(()=>i(a,t)):a;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,o))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=hg(this);try{e(this)}finally{hg(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return qm&&Em.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return qm&&!n&&(this.getClient()?Em.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):Em.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&function(e){let t={};"ok"===e.status&&(t={status:"exited"}),Km(e,t)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=Gm}=n&&n.getOptions()||{},{userAgent:o}=lm.navigator||{},a=function(e){const t=Vm(),n={sid:Fm(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Nm({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,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Km(n,e),n}({release:r,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),s=t.getSession&&t.getSession();return s&&"ok"===s.status&&Km(s,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=fg().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);qm&&Em.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function fg(){return lm.__SENTRY__=lm.__SENTRY__||{extensions:{},hub:void 0},lm}function hg(e){const t=fg(),n=gg(t);return yg(t,e),n}function mg(){const e=fg();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=fg()){return t=e,!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)&&!gg(e).isOlderThan(lg)||yg(e,new dg),gg(e);var t}(e)}function gg(e){return dm("hub",()=>new dg,e)}function yg(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}const vg=/\(error: (.*)\)/,bg=/captureMessage|captureException/;const Eg="<anonymous>";function _g(e){try{return e&&"function"==typeof e&&e.name||Eg}catch(e){return Eg}}function Ig(e,t=100,n=1/0){try{return Tg("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Sg(e,t=3,n=102400){const r=Ig(e,t);return i=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?Sg(e,t-1,n):r;var i}function Tg(e,t,r=1/0,i=1/0,o=function(){const 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[a,s]=o;if(null==t||["number","boolean","string"].includes(typeof t)&&("number"!=typeof(u=t)||u==u))return t;var u;const c=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(um(t))return"[VueViewModel]";if(function(e){return im(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${_g(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;const l="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:r;if(0===l)return c.replace("object ","");if(a(t))return"[Circular ~]";const p=t;if(p&&"function"==typeof p.toJSON)try{return Tg("",p.toJSON(),l-1,i,o)}catch(e){}const d=Array.isArray(t)?[]:{};let f=0;const h=Dm(t);for(const e in h){if(!Object.prototype.hasOwnProperty.call(h,e))continue;if(f>=i){d[e]="[MaxProperties ~]";break}const t=h[e];d[e]=Tg(e,t,l-1,i,o),f++}return s(t),d}const Cg=new WeakMap;const wg=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Pg(e,t){return mg().captureEvent(e,t)}function Dg(e,t){mg().addBreadcrumb(e,t)}function Ag(){return mg().getClient()}const Og=[];function Ng(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Rg(e,t,n){if(n[t.name])qm&&Em.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===Og.indexOf(t.name)&&(t.setupOnce(Zm,mg),Og.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=(t,r)=>n(t,r,e);r.id=t.name,e.addEventProcessor(r)}qm&&Em.log(`Integration installed: ${t.name}`)}}function Fg(e,t){const n=function(...e){return t(...e)};return n.id=e,n}let kg;const xg="FunctionToString",Ug=new WeakMap,Mg=Fg(xg,()=>({name:xg,setupOnce(){kg=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Pm(this),n=Ug.has(Ag())&&void 0!==t?t:this;return kg.apply(n,e)}}catch(e){}},setup(e){Ug.set(e,!0)}})),Lg=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],jg=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Vg="InboundFilters",Bg=Fg(Vg,(e={})=>({name:Vg,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),o=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Lg],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:jg],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,i);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(qm&&Em.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${xm(e)}`),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){const t=[];let n;e.message&&t.push(e.message);try{n=e.exception.values[e.exception.values.length-1]}catch(e){}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),qm&&0===t.length&&Em.error(`Could not extract message for event ${xm(e)}`),t}(e).some(e=>Sm(e,t))}(e,t.ignoreErrors)?(qm&&Em.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${xm(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&Sm(n,t)}(e,t.ignoreTransactions)?(qm&&Em.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${xm(e)}`),!0):function(e,t){if(!t||!t.length)return!1;const n=Gg(e);return!!n&&Sm(n,t)}(e,t.denyUrls)?(qm&&Em.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${xm(e)}.\nUrl: ${Gg(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;const n=Gg(e);return!n||Sm(n,t)}(e,t.allowUrls)&&(qm&&Em.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${xm(e)}.\nUrl: ${Gg(e)}`),!0)}(t,o)?null:t}}));function Gg(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return qm&&Em.error(`Cannot extract url for event ${xm(e)}`),null}}function qg(e,t,n=250,r,i,o,a){if(!(o.exception&&o.exception.values&&a&&sm(a.originalException,Error)))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;var u,c;s&&(o.exception.values=(u=$g(e,t,i,a.originalException,r,o.exception.values,s,0),c=n,u.map(e=>(e.value&&(e.value=_m(e.value,c)),e))))}function $g(e,t,n,r,i,o,a,s){if(o.length>=n+1)return o;let u=[...o];if(sm(r[i],Error)){Qg(a,s);const o=e(t,r[i]),c=u.length;Hg(o,i,c,s),u=$g(e,t,n,r[i],i,[o,...u],o,c)}return Array.isArray(r.errors)&&r.errors.forEach((r,o)=>{if(sm(r,Error)){Qg(a,s);const c=e(t,r),l=u.length;Hg(c,`errors[${o}]`,l,s),u=$g(e,t,n,r,i,[c,...u],c,l)}}),u}function Qg(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function Hg(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function zg(e,t){const n={type:t.name||t.constructor.name,value:t.message},r=function(e,t){return e(t.stack||"",1)}(e,t);return r.length&&(n.stacktrace={frames:r}),n}const Wg="LinkedErrors",Zg=Fg(Wg,(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:Wg,setupOnce(){},preprocessEvent(e,r,i){const o=i.getOptions();qg(zg,o.stackParser,o.maxValueLength,n,t,e,r)}}}),Yg=s,Kg=lm;let Jg=0;function Xg(){return Jg>0}function ey(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(Pm(e))return e}catch(t){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=r.map(e=>ey(e,t));return e.apply(this,i)}catch(e){throw Jg++,setTimeout(()=>{Jg--}),function(...e){const t=mg();if(2===e.length){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}t.withScope(e[0])}(n=>{var i;n.addEventProcessor(e=>(t.mechanism&&(Um(e,void 0,void 0),Mm(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),i=e,mg().captureException(i,function(e){if(e)return function(e){return e instanceof sg||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>wg.includes(e))}(e)?{captureContext:e}:e}(void 0))}),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}wm(r,e),Cm(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}const ty={},ny={};function ry(e,t){ty[e]=ty[e]||[],ty[e].push(t)}function iy(e,t){ny[e]||(t(),ny[e]=!0)}function oy(e,t){const n=e&&ty[e];if(n)for(const r of n)try{r(t)}catch(t){gm&&Em.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${_g(r)}\nError:`,t)}}let ay=null;function sy(){ay=lm.onerror,lm.onerror=function(e,t,n,r,i){return oy("error",{column:r,error:i,line:n,msg:e,url:t}),!(!ay||ay.__SENTRY_LOADER__)&&ay.apply(this,arguments)},lm.onerror.__SENTRY_INSTRUMENTED__=!0}let uy=null;function cy(){uy=lm.onunhandledrejection,lm.onunhandledrejection=function(e){return oy("unhandledrejection",e),!(uy&&!uy.__SENTRY_LOADER__)||uy.apply(this,arguments)},lm.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const ly="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function py(e,t){const n=fy(e,t),r={type:t&&t.name,value:my(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function dy(e,t){return{exception:{values:[py(e,t)]}}}function fy(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(hy.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const hy=/Minified React error #\d+;/i;function my(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function gy(e,t,n,r,i){let o;if(Xh(t)&&t.error)return dy(e,t.error);if(em(t)||Jh(t,"DOMException")){const i=t;if("stack"in t)o=dy(e,t);else{const t=i.name||(em(i)?"DOMError":"DOMException"),a=i.message?`${t}: ${i.message}`:t;o=yy(e,a,n,r),Um(o,a)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return Kh(t)?dy(e,t):im(t)||om(t)?(o=function(e,t,n,r){const i=Ag(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:om(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:vy(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Sg(t,o)}};if(n){const t=fy(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,i),Mm(o,{synthetic:!0}),o):(o=yy(e,t,n,r),Um(o,`${t}`,void 0),Mm(o,{synthetic:!0}),o)}function yy(e,t,n,r){const i={};if(r&&n){const r=fy(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(nm(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function vy(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(Dm(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return _m(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:_m(r,t)}return""}(e),r=t?"promise rejection":"exception";return Xh(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:om(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}const by="GlobalHandlers",Ey=Fg(by,(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:by,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){!function(){const t="error";ry(t,t=>{const{stackParser:n,attachStacktrace:r}=Sy();if(Ag()!==e||Xg())return;const{msg:i,url:o,line:a,column:s,error:u}=t,c=void 0===u&&tm(i)?function(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=Xh(e)?e.message:e,a="Error";const s=o.match(i);s&&(a=s[1],o=s[2]);return _y({exception:{values:[{type:a,value:o}]}},t,n,r)}(i,o,a,s):_y(gy(n,u||i,void 0,r,!1),o,a,s);c.level="error",Pg(c,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}),iy(t,sy)}()}(e),Iy("onerror")),t.onunhandledrejection&&(function(e){!function(){const t="unhandledrejection";ry(t,t=>{const{stackParser:n,attachStacktrace:r}=Sy();if(Ag()!==e||Xg())return;const i=function(e){if(rm(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return e}(t),o=rm(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:gy(n,i,void 0,r,!0);o.level="error",Pg(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}),iy(t,cy)}()}(e),Iy("onunhandledrejection"))}}});function _y(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,p=tm(t)&&t.length>0?t:function(){try{return fm.document.location.href}catch(e){return""}}();return 0===u.length&&u.push({colno:c,filename:p,function:"?",in_app:!0,lineno:l}),e}function Iy(e){ly&&Em.log(`Global Handler attached: ${e}`)}function Sy(){const e=Ag();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Ty=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Cy="TryCatch",wy=Fg(Cy,(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Cy,setupOnce(){t.setTimeout&&Tm(Kg,"setTimeout",Py),t.setInterval&&Tm(Kg,"setInterval",Py),t.requestAnimationFrame&&Tm(Kg,"requestAnimationFrame",Dy),t.XMLHttpRequest&&"XMLHttpRequest"in Kg&&Tm(XMLHttpRequest.prototype,"send",Ay);const e=t.eventTarget;e&&(Array.isArray(e)?e:Ty).forEach(Oy)}}});function Py(e){return function(...t){const n=t[0];return t[0]=ey(n,{mechanism:{data:{function:_g(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Dy(e){return function(t){return e.apply(this,[ey(t,{mechanism:{data:{function:"requestAnimationFrame",handler:_g(e)},handled:!1,type:"instrument"}})])}}function Ay(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&Tm(n,e,function(t){const n={mechanism:{data:{function:e,handler:_g(t)},handled:!1,type:"instrument"}},r=Pm(t);return r&&(n.mechanism.data.handler=_g(r)),ey(t,n)})}),e.apply(this,t)}}function Oy(e){const t=Kg,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Tm(n,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=ey(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:_g(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,ey(r,{mechanism:{data:{function:"addEventListener",handler:_g(r),target:e},handled:!1,type:"instrument"}}),i])}}),Tm(n,"removeEventListener",function(e){return function(t,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,i,r)}}))}function Ny(){"console"in lm&&ym.forEach(function(e){e in lm.console&&Tm(lm.console,e,function(t){return vm[e]=t,function(...t){oy("console",{args:t,level:e});const n=vm[e];n&&n.apply(lm.console,t)}})})}const Ry=lm;let Fy,ky,xy;function Uy(){if(!Ry.document)return;const e=oy.bind(null,"dom"),t=My(e,!0);Ry.document.addEventListener("click",t,!1),Ry.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=Ry[t]&&Ry[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Tm(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){const r=My(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(e){}return t.call(this,n,r,i)}}),Tm(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}function My(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;Cm(n,"_sentryCaptured",!0),r&&!r._sentryId&&Cm(r,"_sentryId",Fm());const i="keypress"===n.type?"input":n.type;(function(e){if(e.type!==ky)return!1;try{if(!e.target||e.target._sentryId!==xy)return!1}catch(e){}return!0})(n)||(e({event:n,name:i,global:t}),ky=n.type,xy=r?r._sentryId:void 0),clearTimeout(Fy),Fy=Ry.setTimeout(()=>{xy=void 0,ky=void 0},1e3)}}const Ly=lm,jy="__sentry_xhr_v3__";function Vy(){if(!Ly.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Tm(e,"open",function(e){return function(...t){const n=Date.now(),r=tm(t[0])?t[0].toUpperCase():void 0,i=function(e){if(tm(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!r||!i)return e.apply(this,t);this[jy]={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const e=this[jy];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}oy("xhr",{args:[r,i],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?Tm(this,"onreadystatechange",function(e){return function(...t){return o(),e.apply(this,t)}}):this.addEventListener("readystatechange",o),Tm(this,"setRequestHeader",function(e){return function(...t){const[n,r]=t,i=this[jy];return i&&tm(n)&&tm(r)&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}}),e.apply(this,t)}}),Tm(e,"send",function(e){return function(...t){const n=this[jy];return n?(void 0!==t[0]&&(n.body=t[0]),oy("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)):e.apply(this,t)}})}const By=pm();function Gy(){if(!("fetch"in By))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function qy(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function $y(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!Gy())return!1;if(qy(By.fetch))return!0;let e=!1;const t=By.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=qy(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){gm&&Em.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&Tm(lm,"fetch",function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Hy(t),method:Qy(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Hy(t),method:Qy(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return oy("fetch",{...i}),e.apply(lm,t).then(e=>(oy("fetch",{...i,endTimestamp:Date.now(),response:e}),e),e=>{throw oy("fetch",{...i,endTimestamp:Date.now(),error:e}),e})}})}function Qy(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Hy(e){return"string"==typeof e?e:e?Qy(e,"url")?e.url:e.toString?e.toString():"":""}const zy=pm(),Wy=lm;let Zy;function Yy(){if(!function(){const e=zy.chrome,t=e&&e.app&&e.app.runtime,n="history"in zy&&!!zy.history.pushState&&!!zy.history.replaceState;return!t&&n}())return;const e=Wy.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Zy,t=String(n);Zy=t,oy("history",{from:e,to:t})}return e.apply(this,t)}}Wy.onpopstate=function(...t){const n=Wy.location.href,r=Zy;if(Zy=n,oy("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},Tm(Wy.history,"pushState",t),Tm(Wy.history,"replaceState",t)}const Ky=["fatal","error","warning","log","info","debug"];function Jy(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Xy="Breadcrumbs",ev=Fg(Xy,(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Xy,setupOnce(){},setup(e){var n;t.console&&function(e){const t="console";ry(t,e),iy(t,Ny)}(function(e){return function(t){if(Ag()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:(r=t.level,"warn"===r?"warning":Ky.includes(r)?r:"log"),message:Im(t.args," ")};var r;if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${Im(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}Dg(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(Ag()!==e)return;let r,i,o="object"==typeof t?t.serializeAttribute:void 0,a="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>1024&&(ly&&Em.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof o&&(o=[o]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=hm(t,{keyAttrs:o,maxStringLength:a}),i=function(e){if(!fm.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}(t)}catch(e){r="<unknown>"}if(0===r.length)return;const s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),Dg(s,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),ry("dom",n),iy("dom",Uy)),t.xhr&&function(e){ry("xhr",e),iy("xhr",Vy)}(function(e){return function(t){if(Ag()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[jy];if(!n||!r||!i)return;const{method:o,url:a,status_code:s,body:u}=i;Dg({category:"xhr",data:{method:o,url:a,status_code:s},type:"http"},{xhr:t.xhr,input:u,startTimestamp:n,endTimestamp:r})}}(e)),t.fetch&&function(e){const t="fetch";ry(t,e),iy(t,$y)}(function(e){return function(t){if(Ag()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error)Dg({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r});else{const e=t.response;Dg({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:r})}}}(e)),t.history&&function(e){const t="history";ry(t,e),iy(t,Yy)}(function(e){return function(t){if(Ag()!==e)return;let n=t.from,r=t.to;const i=Jy(Kg.location.href);let o=n?Jy(n):void 0;const a=Jy(r);o&&o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),Dg({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){Ag()===e&&Dg({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:xm(t)},{event:t})}}(e))}}}),tv="LinkedErrors",nv=Fg(tv,(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:tv,setupOnce(){},preprocessEvent(e,r,i){const o=i.getOptions();qg(py,o.stackParser,o.maxValueLength,n,t,e,r)}}}),rv="HttpContext",iv=Fg(rv,()=>({name:rv,setupOnce(){},preprocessEvent(e){if(!Kg.navigator&&!Kg.location&&!Kg.document)return;const t=e.request&&e.request.url||Kg.location&&Kg.location.href,{referrer:n}=Kg.document||{},{userAgent:r}=Kg.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}})),ov="Dedupe",av=Fg(ov,()=>{let e;return{name:ov,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!uv(e,t)&&!!sv(e,t))))}(e,t)||!!function(e,t){const n=cv(t),r=cv(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!uv(e,t)&&!!sv(e,t)))}(e,t))}(t,e))return ly&&Em.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}});function sv(e,t){let n=lv(e),r=lv(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function uv(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function cv(e){return e.exception&&e.exception.values&&e.exception.values[0]}function lv(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}let pv={};Kg.Sentry&&Kg.Sentry.Integrations&&(pv=Kg.Sentry.Integrations);const dv={...pv,...Yg,...u},fv="?";function hv(e,t,n,r){const i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const mv=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gv=/\((\S*)(?::(\d+))(?::(\d+))\)/,yv=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,vv=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,bv=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ev=function(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{const r=[],i=e.split("\n");for(let e=n;e<i.length;e++){const n=i[e];if(n.length>1024)continue;const o=vg.test(n)?n.replace(vg,"$1"):n;if(!o.match(/\S*Error: /)){for(const e of t){const t=e(o);if(t){r.push(t);break}}if(r.length>=50)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),bg.test(t[t.length-1].function||"")&&(t.pop(),bg.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"}))}(r)}}([30,e=>{const t=mv.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=gv.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=_v(t[1]||fv,t[2]);return hv(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=yv.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=vv.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||fv;return[n,e]=_v(n,e),hv(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=bv.exec(e);return t?hv(t[2],t[1]||fv,+t[3],t[4]?+t[4]:void 0):void 0}]),_v=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:fv,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class Iv 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}}const Sv=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Tv(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function Cv(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function wv(e,t=[]){return[e,t]}function Pv(e,t){const[n,r]=e;return[n,[...r,t]]}function Dv(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function Av(e,t){return(t||new TextEncoder).encode(e)}function Ov(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[Av(i,t),e]:i.push("string"==typeof e?Av(e,t):e)}for(const e of r){const[t,n]=e;if(o(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(Ig(n))}o(e)}}return"string"==typeof i?i:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(i)}function Nv(e,t){const n="string"==typeof e.data?Av(e.data,t):e.data;return[Nm({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Rv={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Fv(e){return Rv[e]}function kv(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function xv(e,t,n=function(e){const 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 Hm(new Iv("Not adding Promise because buffer limit was reached."));const 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 zm((n,r)=>{let i=t.length;if(!i)return n(!0);const o=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{Qm(e).then(()=>{--i||(clearTimeout(o),n(!0))},r)})})}}}(e.bufferSize||30)){let r={};function i(i){const o=[];if(Dv(i,(t,n)=>{const i=Fv(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)){const r=Uv(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(t)}),0===o.length)return Qm();const a=wv(i[0],o),s=t=>{Dv(a,(n,r)=>{const i=Uv(n,r);e.recordDroppedEvent(t,Fv(r),i)})};return n.add(()=>t({body:Ov(a,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&qm&&Em.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(const e of o.trim().split(",")){const[t,n,,,o]=e.split(":",5),a=parseInt(t,10),s=1e3*(isNaN(a)?60:a);if(n)for(const e of n.split(";"))"metric_bucket"===e&&o&&!o.split(";").includes("custom")||(i[e]=r+s);else i.all=r+s}else a?i.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}(r,e),e),e=>{throw s("network_error"),e})).then(e=>e,e=>{if(e instanceof Iv)return qm&&Em.error("Skipped sending event because buffer is full."),s("queue_overflow"),Qm();throw e})}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function Uv(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let Mv;function Lv(e,t=function(){if(Mv)return Mv;if(qy(Kg.fetch))return Mv=Kg.fetch.bind(Kg);const e=Kg.document;let t=Kg.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){ly&&Em.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Mv=t.bind(Kg)}()){let n=0,r=0;return xv(e,function(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then(e=>(n-=o,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return Mv=void 0,n-=o,r--,Hm(e)}})}function jv(e){return xv(e,function(t){return new zm((n,r)=>{const i=new XMLHttpRequest;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);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)})})}function Vv(e,t={}){const 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){const 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)}`}const Bv="Not capturing exception because it's already been captured.";class Gv{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){const t="string"==typeof e?function(e){const t=Sv.exec(e);if(!t)return void bm(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[n,r,i="",o,a="",s]=t.slice(1);let u="",c=s;const l=c.split("/");if(l.length>1&&(u=l.slice(0,-1).join("/"),c=l.pop()),c){const e=c.match(/^\d+/);e&&(c=e[0])}return Cv({host:o,pass:i,path:u,projectId:c,port:a,protocol:n,publicKey:r})}(e):Cv(e);if(t&&function(e){if(!gm)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(Em.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(Em.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(Em.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(Em.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}(e.dsn):qm&&Em.warn("No DSN provided, client will not send events."),this._dsn){const t=Vv(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(Lm(e))return void(qm&&Em.log(Bv));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;const o=nm(e)?e:String(e),a=rm(e)?this.eventFromMessage(o,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&&Lm(t.originalException))return void(qm&&Em.log(Bv));let r=t&&t.event_id;const i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,i||n).then(e=>{r=e})),r}captureSession(e){"string"!=typeof e.release?qm&&Em.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Km(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):Qm(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return qm&&Em.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];Rg(this,e,this._integrations),t||Ng(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const i=kv(n),o=e.type&&"replay_event"!==e.type?e.type:"event";!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);const a=function(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Tv(r)},...i&&{trace:Nm({...i})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,wv(a,[[{type:o},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=Pv(n,Nv(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){const t=function(e,t,n,r){const i=kv(n);return wv({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Tv(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const r="number"==typeof n?n:1,i=`${e}:${t}`;qm&&Em.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}captureAggregateMetrics(e){qm&&Em.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=function(e,t,n,r){const i={sent_at:(new Date).toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=Tv(t));const o=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?`|#${e.map(([e,t])=>`${e}:${t}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return wv(i,[o])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach(t=>{t&&Rg(e,t,n)}),n}(this,e),Ng(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1;const i=t.exception&&t.exception.values;if(i){r=!0;for(const e of i){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const o="ok"===e.status;(o&&0===e.errors||o&&n)&&(Km(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new zm(t=>{let n=0;const 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._transport}_prepareEvent(e,t,n,r=function(){return mg().getIsolationScope()}()){const i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),function(e,t,n,r,i,o){const{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,u={...t,event_id:t.event_id||n.event_id||Fm(),timestamp:t.timestamp||jm()},c=n.integrations||e.integrations.map(e=>e.name);!function(e,t){const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:Gm),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=_m(e.message,o));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=_m(a.value,o));const s=e.request;s&&s.url&&(s.url=_m(s.url,o))}(u,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(u,c),void 0===t.type&&function(e,t){const n=lm._sentryDebugIds;if(!n)return;let r;const i=Cg.get(t);i?r=i:(r=new Map,Cg.set(t,r));const o=Object.keys(n).reduce((e,i)=>{let o;const a=r.get(i);a?o=a:(o=t(i),r.set(i,o));for(let t=o.length-1;t>=0;t--){const r=o[t];if(r.filename){e[r.filename]=n[i];break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=o[e.filename])})})}catch(e){}}(u,e.stackParser);const l=function(e,t){if(!t)return e;const n=e?e.clone():new sg;return n.update(t),n}(r,n.captureContext);n.mechanism&&Mm(u,n.mechanism);const p=i&&i.getEventProcessors?i.getEventProcessors():[],d=(ag||(ag=new sg),ag).getScopeData();o&&ig(d,o.getScopeData()),l&&ig(d,l.getScopeData());const f=[...n.attachments||[],...d.attachments];return f.length&&(n.attachments=f),rg(u,d),Ym([...p,...Wm(),...d.eventProcessors],u,n).then(e=>(e&&function(e){const t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}(e),"number"==typeof a&&a>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Ig(e.data,t,n)}}))},...e.user&&{user:Ig(e.user,t,n)},...e.contexts&&{contexts:Ig(e.contexts,t,n)},...e.extra&&{extra:Ig(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=Ig(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>{const r=eg(e).data;return r&&(e.data=Ig(r,t,n)),e})),r}(e,a,s):e))}(i,e,t,n,this,r).then(e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if((!e.contexts||!e.contexts.trace)&&t){const{traceId:r,spanId:i,parentSpanId:o,dsc:a}=t;e.contexts={trace:{trace_id:r,span_id:i,parent_span_id:o},...e.contexts};const s=a||tg(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:s,...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{if(qm){const t=e;"log"===t.logLevel?Em.log(t.message):Em.warn(t)}})}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:i}=r,o=$v(e),a=qv(e),s=e.type||"error",u=`before send for type \`${s}\``;if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),Hm(new Iv(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const c="replay_event"===s?"replay":s,l=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,l).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new Iv("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const i=function(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;if(qv(t)&&r)return r(t,n);if($v(t)&&i){if(t.spans){const e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(t,n)}return t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(am(e))return e.then(e=>{if(!im(e)&&null!==e)throw new Iv(n);return e},e=>{throw new Iv(`${t} rejected with ${e}`)});if(!im(e)&&null!==e)throw new Iv(n);return e}(i,u)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",c,e),o){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new Iv(`${u} returned \`null\`, will not send event.`,"log")}const i=n&&n.getSession();if(!o&&i&&this._updateSessionFromEvent(i,r),o){const e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const a=r.transaction_info;if(o&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}return this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof Iv)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Iv(`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++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,e=>{qm&&Em.error("Error while sending event:",e)});qm&&Em.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}})}}function qv(e){return void 0===e.type}function $v(e){return"transaction"===e.type}class Qv extends Gv{constructor(e){!function(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:cg})),version:cg}),e._metadata=i}(e,"browser",["browser"],Kg.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&Kg.document&&Kg.document.addEventListener("visibilitychange",()=>{"hidden"===Kg.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){const i=gy(e,t,n&&n.syntheticException||void 0,r);return Mm(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),Qm(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){const o=yy(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),Qm(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(ly&&Em.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Tv(r)}},o=function(e){return[{type:"user_report"},e]}(e);return wv(i,[o])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(ly&&Em.log("No outcomes to send"));if(!this._dsn)return void(ly&&Em.log("No dsn provided, will not send outcomes"));ly&&Em.log("Sending outcomes:",e);const t=(n=e,wv((r=this._options.tunnel&&Tv(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:jm(),discarded_events:n}]]));var n,r;this._sendEnvelope(t)}}var Hv=[new dv.InboundFilters,new dv.FunctionToString,new dv.TryCatch,new dv.Breadcrumbs,new dv.LinkedErrors,new dv.Dedupe,new dv.HttpContext],zv=new dg,Wv=n(6760),Zv=n.n(Wv),Yv=n(7620),Kv=n.n(Yv),Jv=n(1525),Xv=n.n(Jv),eb=function(){return eb=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},eb.apply(this,arguments)},tb=function(){function e(){var e=this;this.mapApplySubscriptionResults=function(t){var n=t.applySubscription.subscription;return{subscription:n?e.mapSubscription(n):void 0}},this.mapSlimCustomer=function(e){return{id:e.refId,name:e.name||void 0,email:e.email||void 0,billingId:e.billingId||void 0,createdAt:new Date(e.createdAt),updatedAt:new Date(e.updatedAt),metadata:e.additionalMetaData,awsMarketplaceCustomerId:e.awsMarketplaceCustomerId}}}return e.prototype.mapPlans=function(e){var t=this;return((null==e?void 0:e.paywall.plans)||[]).map(function(e,n){return t.mapPlan(e,n)})},e.prototype.mapPaywall=function(e){var t=this.mapPlans(e),n=null==e?void 0:e.paywall.configuration,r=!(null==e?void 0:e.paywall.resource)&&(null==e?void 0:e.paywall.activeSubscriptions)||[];return{plans:t,configuration:n,customer:(null==e?void 0:e.paywall.customer)?this.mapCustomer(null==e?void 0:e.paywall.customer,r):null,resource:(null==e?void 0:e.paywall.resource)?this.mapResource(null==e?void 0:e.paywall.resource):null,activeSubscriptions:(null==e?void 0:e.paywall.activeSubscriptions)?this.mapSubscriptions(null==e?void 0:e.paywall.activeSubscriptions):null,currency:e.paywall.currency,paywallCalculatedPricePoints:e.paywall.paywallCalculatedPricePoints}},e.prototype.mapMockPlans=function(e){var t=this;return{plans:((null==e?void 0:e.mockPaywall.plans)||[]).map(function(e,n){return t.mapPlan(e,n)}),configuration:e.mockPaywall.configuration,customer:null,resource:null,activeSubscriptions:null,currency:{code:he.Usd,symbol:"$"}}},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.mapResource=function(e){return{id:e.resourceId}},e.prototype.mapCustomerPortal=function(e){var t=e.resource?this.mapResource(e.resource):null;return eb(eb({},e),{resource:t})},e.prototype.mapCheckoutState=function(e){var t=e.configuration,n=e.customer,r=e.plan,i=e.billingIntegration,o=e.resource,a=e.activeSubscription;return{setupSecret:e.setupSecret,configuration:t,customer:this.mapCustomer(n,a?[a]:[]),plan:this.mapPlan(r),resource:o?this.mapResource(o):null,billingIntegration:i,activeSubscription:a?this.mapSubscription(a):null}},e.prototype.mapCustomer=function(e,t){var n,r,i=this;return new Vh({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:Zv()(t,function(e){return i.mapSubscription(e)}),promotionalEntitlements:Zv()(e.promotionalEntitlements,function(e){return i.mapPromotionalEntitlement(e)}),metadata:e.additionalMetaData,paymentMethodDetails:this.mapPaymentDetails(e),trialedPlans:(null===(n=e.trialedPlans)||void 0===n?void 0:n.map(function(e){return{productId:e.productRefId,planId:e.planRefId}}))||void 0,eligibleForTrial:null===(r=e.eligibleForTrial)||void 0===r?void 0:r.map(function(e){return{productId:e.productRefId,eligible:e.eligible}}),experimentInfo:Kv()(e.experimentInfo,"__typename")})},e.prototype.mapPaymentDetails=function(e){var t=e.defaultPaymentExpirationYear,n=e.defaultPaymentExpirationMonth,r=e.defaultPaymentMethodLast4Digits;if(Xv()([r,n,t],function(e){return e}))return{expirationMonth:n,expirationYear:t,last4Digits:r}},e.prototype.mapPriceWithTotalPrice=function(e,t,n){var r=e.feature,i=e.tiersMode,o=e.tiers,a=e.billingModel,s=e.billingPeriod,u=e.blockSize,c={pricingModel:a,billingPeriod:s,amount:t.total.amount,grossAmount:t.subTotal.amount,currency:this.getPriceCurrency(e),tiersMode:i,tiers:o,isTieredPrice:!!i,blockSize:u};return r&&(c.feature={featureId:r.refId,displayName:r.displayName,units:r.featureUnits,unitsPlural:r.featureUnitsPlural,unitQuantity:n}),c},e.prototype.mapPrice=function(e,t){var n=e.feature,r=e.price,i=e.tiers,o=e.tiersMode,a=e.billingId,s=e.billingModel,u=e.billingPeriod,c=e.minUnitQuantity,l=e.maxUnitQuantity,p=e.billingCountryCode,d=e.blockSize,f=e.billingCadence,h=e.topUpCustomCurrencyId,m=e.customCurrency,g={pricingModel:s,billingPeriod:u,billingId:a,amount:r?r.amount:null,currency:this.getPriceCurrency(e),tiersMode:o,tiers:i,isTieredPrice:!!o,minUnitQuantity:c,maxUnitQuantity:l,billingCountryCode:p,blockSize:d,creditRate:e.creditRate?{amount:e.creditRate.amount}:null,billingCadence:f,topUpCustomCurrencyId:h,customCurrency:m};return n&&(g.feature={featureId:n.refId,displayName:n.displayName,units:n.featureUnits,unitsPlural:n.featureUnitsPlural,unitQuantity:t}),g},e.prototype.mapPlan=function(e,t){var n,r,i=this;return void 0===t&&(t=0),{id:e.refId,order:t,displayName:e.displayName,description:e.description,billingId:e.billingId,basePlan:e.basePlan?{id:e.basePlan.refId,displayName:e.basePlan.displayName}:void 0,entitlements:Zv()(e.entitlements,function(e){return i.mapPackageEntitlement(e)}),inheritedEntitlements:Zv()(e.inheritedEntitlements,function(e){return i.mapPackageEntitlement(e)}),packageEntitlements:null!==(n=e.packageEntitlements)&&void 0!==n?n:void 0,inheritedPackageEntitlements:null!==(r=e.inheritedPackageEntitlements)&&void 0!==r?r:void 0,pricePoints:Zv()(e.prices,function(e){return i.mapPrice(e)}),pricingType:e.pricingType,defaultTrialConfig:this.mapDefaultTrialConfig(e.defaultTrialConfig),compatibleAddons:this.mapCompatibleAddons(e),compatiblePackageGroups:this.mapCompatiblePackageGroups(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===_t.Free||!e.compatibleAddons)return[];var n=e.compatibleAddons;return(e.pricingType===_t.Paid?n.filter(function(e){return e.pricingType===_t.Paid}):n).map(function(e){return t.mapAddon(e)})},e.prototype.mapDefaultTrialConfig=function(e){if(e)return{duration:null==e?void 0:e.duration,units:null==e?void 0:e.units,budget:e.budget?{limit:e.budget.limit}:void 0}},e.prototype.mapPackageEntitlement=function(e){var t=e.feature;return t?{usageLimit:e.usageLimit||0,feature:{id:t.refId,featureType: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===ot.Fluctuating||t.meterType===ot.Incremental,metadata:t.additionalMetaData},isCustom:e.isCustom||void 0,hasUnlimitedUsage:e.hasUnlimitedUsage,resetPeriod:e.resetPeriod,hiddenFromWidgets:e.hiddenFromWidgets,displayNameOverride:e.displayNameOverride,enumValues:e.enumValues,isGranted:e.isGranted}:{usageLimit:e.usageLimit||0,hasUnlimitedUsage:e.hasUnlimitedUsage,resetPeriod:e.resetPeriod,isGranted:e.isGranted}},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:t.featureType,meterType:t.meterType||void 0,units:t.featureUnits||void 0,unitsPlural:t.featureUnitsPlural||void 0,isMetered:t.meterType===ot.Fluctuating||t.meterType===ot.Incremental},hasUnlimitedUsage:e.hasUnlimitedUsage,expiresAt:e.endDate,hasExpirationDate:!!e.endDate,isVisible:e.isVisible}},e.prototype.mapSubscription=function(e){var t,n,r=this,i=e.totalPrice,o=(e.prices||[])[0];return{id:e.subscriptionId,billingId:e.billingId||void 0,resourceId:null===(t=e.resource)||void 0===t?void 0:t.resourceId,payingCustomer:e.payingCustomer?this.mapSlimCustomer(e.payingCustomer):null,status:e.status,currentBillingPeriodEnd:this.mapDate(e.currentBillingPeriodEnd),plan:this.mapPlan(e.plan),prices:e.prices?e.prices.filter(function(e){return null!==e.price}).map(function(e){return r.mapPrice(e.price,e.usageLimit)}):[],totalPrice:i,price:o&&i&&o.price?this.mapPriceWithTotalPrice(o.price,i,o.usageLimit):null,pricingType:e.pricingType,addons:(null===(n=e.addons)||void 0===n?void 0:n.map(function(e){var t=e.quantity,n=e.addon;return{quantity:t,addon:r.mapAddon(n)}}))||[],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,experimentInfo:Kv()(e.experimentInfo,"__typename"),scheduledUpdates:e.scheduledUpdates||[],futureUpdates:e.futureUpdates||[],latestInvoice:this.mapLatestInvoice(e.latestInvoice),paymentCollection:e.paymentCollection,paymentCollectionMethod:e.paymentCollectionMethod||void 0}},e.prototype.mapLatestInvoice=function(e){return e?eb(eb({},e),{createdAt:this.mapDate(e.createdAt),updatedAt:this.mapDate(e.updatedAt)}):void 0},e.prototype.mapDate=function(e){return e?new Date(e):void 0},e.prototype.mapAddon=function(e){var t,n,r,i=this;return{hiddenFromWidgets:e.hiddenFromWidgets,id:e.refId,displayName:e.displayName,description:e.description||"",billingId:e.billingId,entitlements:Zv()(e.entitlements,function(e){return i.mapPackageEntitlement(e)}),packageEntitlements:null!==(t=e.packageEntitlements)&&void 0!==t?t:void 0,pricePoints:Zv()(e.prices,function(e){return i.mapPrice(e)}),pricingType:e.pricingType,dependencies:(null===(n=e.dependencies)||void 0===n?void 0:n.map(function(e){return i.mapDependencyAddon(e)}))||[],metadata:e.additionalMetaData,maxQuantity:null!==(r=e.maxQuantity)&&void 0!==r?r:void 0}},e.prototype.mapTaxFields=function(e){return(null==e?void 0:e.tax)&&(null==e?void 0:e.taxDetails)?{tax:this.mapMoney(e.tax),taxDetails:{displayName:e.taxDetails.displayName,percentage:e.taxDetails.percentage,inclusive:e.taxDetails.inclusive}}:{}},e.prototype.mapSubscriptionPreview=function(e){var t=e.subscription,n=e.proration,r=e.billingPeriodRange,i=e.credits;return eb(eb(eb({total:this.mapMoney(e.total),totalExcludingTax:this.mapMoney(e.totalExcludingTax),subTotal:this.mapMoney(e.subTotal),discountAmount:e.discountAmount?this.mapMoney(e.discountAmount):void 0},this.mapTaxFields(e)),e.discount?{discount:this.mapDiscount(e.discount)}:{}),{billingPeriodRange:{start:r.start&&new Date(r.start),end:r.end&&new Date(r.end)},proration:n?{credit:this.mapMoney(n.credit),debit:this.mapMoney(n.debit),netAmount:this.mapMoney(n.netAmount),prorationDate:new Date(n.prorationDate)}:void 0,subscription:t?eb(eb({total:this.mapMoney(t.total),totalExcludingTax:this.mapMoney(t.totalExcludingTax),subTotal:this.mapMoney(t.subTotal),discountAmount:t.discountAmount?this.mapMoney(t.discountAmount):void 0},t.discount?{discount:this.mapDiscount(t.discount)}:{}),this.mapTaxFields(t)):void 0,isPlanDowngrade:!!e.isPlanDowngrade,hasScheduledUpdates:!!e.hasScheduledUpdates,credits:i?{initial:this.mapMoney(i.initial),used:this.mapMoney(i.used),remaining:this.mapMoney(i.remaining)}:void 0})},e.prototype.mapCredits=function(e){return{initial:this.mapMoney(e.initial),used:this.mapMoney(e.used),remaining:this.mapMoney(e.remaining)}},e.prototype.mapSubscriptionPreviewV2=function(e){var t=e.immediateInvoice,n=e.recurringInvoice,r=e.billingPeriodRange,i=e.hasScheduledUpdates,o=e.isPlanDowngrade;return{immediateInvoice:eb(eb({},this.mapSubscriptionPreviewInvoice(t)),{proration:t.proration?{credit:this.mapMoney(t.proration.credit),debit:this.mapMoney(t.proration.debit),netAmount:this.mapMoney(t.proration.netAmount),prorationDate:new Date(t.proration.prorationDate),hasProrations:t.proration.hasProrations||void 0}:void 0,credits:t.credits?this.mapCredits(t.credits):void 0}),recurringInvoice:n?eb({},this.mapSubscriptionPreviewInvoice(n)):void 0,billingPeriodRange:{start:r.start&&new Date(r.start),end:r.end&&new Date(r.end)},isPlanDowngrade:!!o,hasScheduledUpdates:!!i}},e.prototype.mapSubscriptionPreviewInvoice=function(e){return eb(eb({total:this.mapMoney(e.total),subTotal:this.mapMoney(e.subTotal),totalExcludingTax:this.mapMoney(e.totalExcludingTax),discount:e.discount?this.mapMoney(e.discount):void 0},e.discountDetails?{discountDetails:this.mapDiscount(e.discountDetails)}:{}),this.mapTaxFields(e))},e.prototype.mapDiscount=function(e){var t=e.name,n=e.type,r=e.value,i=e.durationType,o=e.durationInMonths;return eb({name:t,type:n,value:r,durationType:i},o?{durationInMonths:o}:{})},e.prototype.mapMoney=function(e){return{amount:e.amount,currency:e.currency}},e.prototype.mapCoupon=function(e){return{id:e.refId,name:e.name,description:e.description,metadata:e.additionalMetaData,discountValue:e.discountValue,percentOff:e.percentOff,amountsOff:e.amountsOff}},e.prototype.mapSubscriptions=function(e){var t=this;return e.map(function(e){return t.mapSubscription(e)})},e.prototype.mapUsageHistory=function(e){return e.usageMeasurements.map(function(e){var t=e.date,n=e.value,r=e.isResetPoint;return{date:new Date(t),value:n,isResetPoint:!!r}})},e.prototype.getPriceCurrency=function(e){var t,n,r=e.price,i=e.tiers;return(null==r?void 0:r.currency)||(null===(t=null==i?void 0:i[0].unitPrice)||void 0===t?void 0:t.currency)||(null===(n=null==i?void 0:i[0].flatPrice)||void 0===n?void 0:n.currency)||he.Usd},e.prototype.mapCompatiblePackageGroups=function(e){var t=this;return e.pricingType!==_t.Free&&e.compatiblePackageGroups?e.compatiblePackageGroups.map(function(e){var n=e.packageGroupId,r=e.displayName,i=e.options,o=e.addons;return{packageGroupId:n,displayName:r,addons:(null==o?void 0:o.map(function(e){return t.mapAddon(e)}))||[],options:{minItems:(null==i?void 0:i.minItems)||void 0,freeItems:(null==i?void 0:i.freeItems)||void 0}}}):[]},e.prototype.mapDependencyAddon=function(e){return{refId:e.refId,displayName:e.displayName,description:e.description||void 0}},e}(),nb=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rb=function(e){function t(t,n){void 0===n&&(n=3e4);var r=e.call(this,new Map,{},t)||this;return r.ttlMs=n,r.lastUpdate=null,r.lastChecked=null,r}return nb(t,e),t.prototype.updateLastChecked=function(){this.lastChecked=new Date},t.prototype.setCustomer=function(t){return this.lastUpdate=new Date(t.entitlementsTimestamp),e.prototype.setCustomer.call(this,t)},t.prototype.getLastUpdate=function(){return this.lastUpdate},t.prototype.isLoaded=function(){return!!this.lastUpdate},t.prototype.isOutdated=function(){return null===this.lastChecked||(new Date).getTime()-this.lastChecked.getTime()>this.ttlMs},t}(bh),ib=function(){return ib=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},ib.apply(this,arguments)};function ob(e,t){return n=this,r=void 0,o=function(){return function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(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,sb(n.sent(),t)];case 3:return[2]}})},new((i=void 0)||(i=Promise))(function(e,t){function a(e){try{u(o.next(e))}catch(e){t(e)}}function s(e){try{u(o.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i(function(e){e(n)})).then(a,s)}u((o=o.apply(n,r||[])).next())});var n,r,i,o}function ab(e,t){try{return e()}catch(e){return sb(e,t)}}function sb(e,t){var n=t.loggerService,r=t.sdkConfiguration,i=t.errorMessage,o=t.rethrowError,a=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;zv.withScope(function(t){var o={errorMessage:r};if(n){var a=n.customerId,s=ib(ib({},n),{apiKey:void 0});a&&t.setTags({customerId:a}),o.sdkConfiguration=s}i&&(o=ib(ib({},o),i)),t.setExtras(o),zv.captureException(e)})}(e,{sdkConfiguration:r,errorMessage:s,errorReportMetadata:a}),o)throw new Error(s)}var ub=function(){return ub=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},ub.apply(this,arguments)},cb=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})},lb=function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},pb=function(){function e(e,t){this.modelMapper=new tb,this.eventEmitter=new Wh,this.showWatermark=!1,this.isWidgetWatermarkEnabled=!1,this.configuration=e,this.edgeApiClient=Bc.create(e,e),this.graphClient=function(e){var t=e.apiKey,n=e.baseUri,r=e.clientName,i=void 0===r?ju:r,o=e.clientVersion,a=void 0===o?eh:o,s=function(e,t){return new Ul(function(n,r){var i={"X-API-KEY":e,"x-graphql-operation-name":n.operationName,source:Lu},o=t.customerToken;return o&&(i["X-CUSTOMER-KEY"]=o),n.setContext({headers:i}),r(n)})}(t,e),u=function(e){return new Hl({uri:"".concat(e,"/graphql"),fetch:jc})}(n),c=new Xf({attempts:{max:5,retryIf:th},delay:{initial:500,max:2e3,jitter:!0}});return new of({link:s.concat(c.concat(u)),cache:new Kf,name:i,version:a,defaultOptions:{query:{fetchPolicy:"no-cache"}}})}(this.configuration),this.loggerService=t,this.cacheMapper=new jh(t),this.apiGateway=new bc(this.graphClient,this.edgeApiClient),this.globalEntitlementsService=null,this.resourceEntitlementsService=null,this.initializationStateTracker=new Zh(this.eventEmitter)}return e.initialize=function(t){var n=qu(t),r=new Mu(n.logConfiguration.logger,n.logConfiguration.logLevel);Gu(n,r);var i=new e(n,r);return this.initializeSdk(i).then(function(){n.customerId?n.lazyLoad||i.setCustomerId(n.customerId,n.customerToken,n.resourceId):i.initializationStateTracker.signalSuccessInit()}).catch(function(e){return i.initializationStateTracker.signalFailedInit(e)}),i},e.prototype.waitForInitialization=function(){return cb(this,void 0,Promise,function(){var e=this;return lb(this,function(t){return[2,this.initializationStateTracker.getInitializationPromise().then(function(){return e})]})})},e.initializeSdk=function(e){return cb(this,void 0,void 0,function(){var t,n,r,i,o,a,s,u;return lb(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,e.apiGateway.sdkConfiguration.getSdkConfiguration()];case 1:return t=c.sent(),n=null===(o=t.data)||void 0===o?void 0:o.sdkConfiguration,!zv.getClient()&&(null==n?void 0:n.sentryDsn)&&(h=n.sentryDsn,l=void 0,p=void 0,f=function(){var e,t;return function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,function(n){return e={dsn:h,normalizeDepth:6,release:"".concat(ju,"@").concat(eh),integrations:Hv,stackParser:Ev,transport:Gy()?Lv:jv},t=new Qv(e),zv.bindClient(t),[2]})},new((d=void 0)||(d=Promise))(function(e,t){function n(e){try{i(f.next(e))}catch(e){t(e)}}function r(e){try{i(f.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof d?i:new d(function(e){e(i)})).then(n,r)}i((f=f.apply(l,p||[])).next())})),e.showWatermark=!!(null==n?void 0:n.showWatermark),[3,3];case 2:throw r=c.sent(),401===(null===(a=r.response)||void 0===a?void 0:a.status)||r.graphQLErrors&&(null===(u=null===(s=r.graphQLErrors[0])||void 0===s?void 0:s.extensions)||void 0===u?void 0:u.code)===ke.Unauthenticated?(i="Authentication failed. Double check your SDK key.",e.loggerService.error(i),new Error(i,{cause:r})):(e.loggerService.error("Failed to load sdk configuration",r),r);case 3:return[2]}var l,p,d,f,h})})},Object.defineProperty(e.prototype,"isCustomerLoaded",{get:function(){var e;return(null===(e=this.globalEntitlementsService)||void 0===e?void 0:e.isInitialized)||!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isResourceLoaded",{get:function(){var e;return(null===(e=this.resourceEntitlementsService)||void 0===e?void 0:e.isInitialized)||!1},enumerable:!1,configurable:!0}),e.prototype.getShowWatermark=function(){return this.showWatermark},e.prototype.addListener=function(e,t){this.eventEmitter.on(e,t)},e.prototype.removeListener=function(e,t){this.eventEmitter.off(e,t)},e.prototype.setCustomerId=function(e){return cb(this,arguments,Promise,function(e,t,n){var r,i,o,a,s,u=this;return void 0===t&&(t=null),void 0===n&&(n=null),lb(this,function(c){switch(c.label){case 0:if(r=this.configuration,i=r.customerToken,o=r.customerId,a=r.resourceId,e===o&&t===i&&n===a)return[2];if(this.clearCustomer(),!e)return this.loggerService.log("`setCustomerId` was called without a customerId, did you mean to call `clearCustomer`?"),[2];if(!(0,Hu.isString)(e))throw new Error("customerId parameter must be a string");if(t&&!(0,Hu.isString)(t))throw new Error("customerToken parameter must be a string");if(n&&!(0,Hu.isString)(n))throw new Error("resourceId parameter must be a string");this.configuration.customerId=e,this.configuration.customerToken=t,this.configuration.resourceId=n,this.globalEntitlementsService=new Qh(e,void 0,new rb(this.cacheMapper,this.configuration.cacheTtlMs),this.graphClient,this.edgeApiClient,this.loggerService,function(e){return u.eventEmitter.emit("entitlementsUpdated",e)}),n&&(this.resourceEntitlementsService=new Qh(e,n,new rb(this.cacheMapper,this.configuration.cacheTtlMs),this.graphClient,this.edgeApiClient,this.loggerService,function(e){return u.eventEmitter.emit("entitlementsUpdated",e)})),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,ob(function(){return cb(u,void 0,void 0,function(){var e,t;return lb(this,function(n){switch(n.label){case 0:return[4,Promise.all([null===(e=this.globalEntitlementsService)||void 0===e?void 0:e.loadEntitlements(),null===(t=this.resourceEntitlementsService)||void 0===t?void 0:t.loadEntitlements()])];case 1:return n.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})];case 2:return c.sent(),this.initializationStateTracker.signalSuccessInit(),[3,4];case 3:return s=c.sent(),this.initializationStateTracker.signalFailedInit(s),[3,4];case 4:return[2]}})})},e.prototype.clearCustomer=function(){this.globalEntitlementsService=null,this.resourceEntitlementsService=null,this.configuration.customerId=null,this.configuration.customerToken=null,this.configuration.resourceId=null},e.prototype.setResource=function(e){return cb(this,void 0,Promise,function(){var t,n,r=this;return lb(this,function(i){switch(i.label){case 0:if(!this.configuration.customerId)throw new Error("`setResource` must be called when customer was set, did you forget to call `setCustomerId`?");if(t=this.configuration.resourceId,e===t)return[2];if(this.clearResource(),!(0,Hu.isString)(e))throw new Error("resourceId parameter must be a string");this.configuration.resourceId=e,this.resourceEntitlementsService=new Qh(this.configuration.customerId,e,new rb(this.cacheMapper,this.configuration.cacheTtlMs),this.graphClient,this.edgeApiClient,this.loggerService,function(e){return r.eventEmitter.emit("entitlementsUpdated",e)}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,ob(function(){return cb(r,void 0,void 0,function(){var e;return lb(this,function(t){return null===(e=this.resourceEntitlementsService)||void 0===e||e.loadEntitlements(),[2]})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to load initial entitlements for customer resource. Error: ".concat(e.message)},rethrowError:!0})];case 2:return i.sent(),this.initializationStateTracker.signalSuccessInit(),[3,4];case 3:return n=i.sent(),this.initializationStateTracker.signalFailedInit(n),[3,4];case 4:return[2]}})})},e.prototype.clearResource=function(){if(!this.configuration.customerId)throw new Error("`clearResource` must be called when customer was set, did you forget to call `setCustomerId`?");this.resourceEntitlementsService=null,this.configuration.resourceId=null},e.prototype.refresh=function(){return cb(this,void 0,Promise,function(){var e=this;return lb(this,function(t){return[2,ob(function(){return cb(e,void 0,void 0,function(){var e,t;return lb(this,function(n){switch(n.label){case 0:return[4,Promise.all([null===(e=this.globalEntitlementsService)||void 0===e?void 0:e.refresh(),null===(t=this.resourceEntitlementsService)||void 0===t?void 0:t.refresh()])];case 1:return n.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,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=ub(ub({},_h),a);return ab(function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId," with resourceId ").concat(o,"}")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getBooleanEntitlement(r,s,i):s:n.globalEntitlementsService.getBooleanEntitlement(r,s,i):(n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId,". Reason: ").concat(n.globalEntitlementsService?"Customer not loaded":"Entitlements service not initialized "),{initializationStatus:n.initializationStateTracker.initializationStatus,customerId:n.configuration.customerId||""}),s)},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get boolean entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlement")),s)},e.prototype.getNumericEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=ub(ub({},Ih),a);return ab(function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId," with resourceId ").concat(o,"}")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getNumericEntitlement(r,s,i):s:n.globalEntitlementsService.getNumericEntitlement(r,s,i):(n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId,". Reason: ").concat(n.globalEntitlementsService?"Customer not loaded":"Entitlements service not initialized "),{initializationStatus:n.initializationStateTracker.initializationStatus,customerId:n.configuration.customerId||""}),s)},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get numeric entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlement")),s)},e.prototype.getMeteredEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=ub(ub({},Sh),a);return ab(function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId," with resourceId ").concat(o,"}")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getMeteredEntitlement(r,s,i):s:n.globalEntitlementsService.getMeteredEntitlement(r,s,i):(n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId,". Reason: ").concat(n.globalEntitlementsService?"Customer not loaded":"Entitlements service not initialized "),{initializationStatus:n.initializationStateTracker.initializationStatus,customerId:n.configuration.customerId||""}),s)},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get metered entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlement")),s)},e.prototype.getEnumEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=ub(ub({},Th),a);return ab(function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId," with resourceId ").concat(o,"}")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getEnumEntitlement(r,s,i):s:n.globalEntitlementsService.getEnumEntitlement(r,s,i):(n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId,". Reason: ").concat(n.globalEntitlementsService?"Customer not loaded":"Entitlements service not initialized "),{initializationStatus:n.initializationStateTracker.initializationStatus,customerId:n.configuration.customerId||""}),s)},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get enum entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlement")),s)},e.prototype.getCreditEntitlement=function(e){var t=this,n=e.currencyId,r=e.options,i=e.resourceId,o=(null==r?void 0:r.fallback)||{},a=ub(ub(ub({},Ch),{currency:{currencyId:n}}),o),s=ub(ub({},a),{remaining:Math.max(a.usageLimit-a.currentUsage,0)});return ab(function(){return t.globalEntitlementsService&&t.isCustomerLoaded?i?i!==t.configuration.resourceId?(t.loggerService.log("Resource ID ".concat(i," does not match the current resource ID ").concat(t.configuration.resourceId,".")),t.loggerService.log("Using fallback entitlements for customer: ".concat(t.configuration.customerId," with resourceId ").concat(i,"}")),s):t.isResourceLoaded&&t.resourceEntitlementsService?t.resourceEntitlementsService.getCreditEntitlement(n,s):s:t.globalEntitlementsService.getCreditEntitlement(n,s):(t.loggerService.log("Using fallback entitlements for customer: ".concat(t.configuration.customerId,". Reason: ").concat(t.globalEntitlementsService?"Customer not loaded":"Entitlements service not initialized "),{initializationStatus:t.initializationStateTracker.initializationStatus,customerId:t.configuration.customerId||""}),s)},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get credit entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{currencyId:n,options:r}})||(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlement")),s)},e.prototype.getPaywall=function(){return cb(this,arguments,Promise,function(e){var t,n=this,r=void 0===e?{}:e,i=r.productId,o=r.resourceId,a=r.context,s=r.billingCountryCode,u=r.includeHiddenPlans;return lb(this,function(e){return t={productId:i,customerId:this.configuration.customerId,resourceId:o,context:a,billingCountryCode:s,includeHiddenPlans:u},[2,ob(function(){return cb(n,void 0,void 0,function(){var e;return lb(this,function(n){switch(n.label){case 0:return(null==i?void 0:i.startsWith("stiggTestData"))?[4,this.apiGateway.mockPaywall.getMockPaywall(t)]:[3,2];case 1:return e=n.sent(),[2,this.modelMapper.mapMockPlans(e.data)];case 2:return[4,this.apiGateway.paywall.getPaywall(t)];case 3:return e=n.sent(),[2,this.modelMapper.mapPaywall(e.data)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get paywall. Error: ".concat(e.message)},rethrowError:!0,errorReportMetadata:{productId:i}})]})})},e.prototype.getCoupons=function(){return cb(this,void 0,Promise,function(){var e=this;return lb(this,function(t){return[2,ob(function(){return cb(e,void 0,void 0,function(){var e;return lb(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 cb(this,void 0,Promise,function(){var e=this;return lb(this,function(t){return[2,ob(function(){return cb(e,void 0,void 0,function(){var e,t,n,r;return lb(this,function(i){switch(i.label){case 0:return e=Qu(this.configuration),[4,this.apiGateway.customers.getCustomer(e)];case 1:if(t=i.sent(),!(n=t.data.getCustomerByRefId))throw new Error("Customer not found");return r=n.subscriptions||[],[2,this.modelMapper.mapCustomer(n,r)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get customer. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.getCustomerPortal=function(){return cb(this,arguments,Promise,function(e){var t=this,n=void 0===e?{}:e,r=n.resourceId,i=n.productId;return lb(this,function(e){return[2,ob(function(){return cb(t,void 0,void 0,function(){var e,t;return lb(this,function(n){switch(n.label){case 0:return e=Qu(this.configuration),[4,this.apiGateway.customers.getCustomerPortal(e,r,i)];case 1:return t=n.sent(),[2,this.modelMapper.mapCustomerPortal(t.data.customerPortal)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get customer portal details. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.getCheckoutState=function(e){return cb(this,arguments,Promise,function(e){var t=this,n=e.planId,r=e.resourceId,i=void 0===r?this.configuration.resourceId:r,o=e.billingCountryCode;return lb(this,function(e){return[2,ob(function(){return cb(t,void 0,void 0,function(){var e,t;return lb(this,function(r){switch(r.label){case 0:return e=Qu(this.configuration),[4,this.apiGateway.subscriptions.checkoutState({customerId:e,resourceId:i,planId:n,billingCountryCode:o})];case 1:return t=r.sent(),[2,this.modelMapper.mapCheckoutState(t.data.checkoutState)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get checkout details. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.applySubscription=function(e){return cb(this,void 0,Promise,function(){var t=this;return lb(this,function(n){return[2,ob(function(){return cb(t,void 0,void 0,function(){var t,n;return lb(this,function(r){switch(r.label){case 0:return t=Qu(this.configuration),[4,this.apiGateway.subscriptions.applySubscription(ub({customerId:t},e))];case 1:if(!(n=r.sent().data)||!n.applySubscription)throw new Error("Invalid response");return[2,this.modelMapper.mapApplySubscriptionResults(n)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to apply subscription to customer. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.fetchUsageHistory=function(e){return cb(this,void 0,Promise,function(){var t=this;return lb(this,function(n){return[2,ob(function(){return cb(t,void 0,void 0,function(){var t;return lb(this,function(n){switch(n.label){case 0:return[4,this.apiGateway.customers.fetchUsageHistory(e)];case 1:if(!(t=n.sent().data)||!t.usageHistory)throw new Error("Invalid response");return[2,this.modelMapper.mapUsageHistory(t.usageHistory)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to fetch usage history. Error: ".concat(e.message)},rethrowError:!1})]})})},e.prototype.getEntitlements=function(e){return cb(this,void 0,Promise,function(){return lb(this,function(t){switch(t.label){case 0:return[4,this.getEntitlementsState(e)];case 1:return[2,t.sent().entitlements]}})})},e.prototype.getEntitlementsState=function(e){return cb(this,void 0,Promise,function(){var t;return lb(this,function(n){switch(n.label){case 0:return[4,this.getEntitlementsStateV2(e)];case 1:return[2,{entitlements:(t=n.sent()).entitlements.filter(Uh),accessDeniedReason:t.accessDeniedReason}]}})})},e.prototype.getEntitlementsStateV2=function(e){return cb(this,void 0,Promise,function(){var t,n,r=this;return lb(this,function(i){switch(i.label){case 0:return t={entitlements:Lh(this.configuration.entitlementsFallback),accessDeniedReason:null},[4,ob(function(){return cb(r,void 0,void 0,function(){var n;return lb(this,function(r){return Qu(this.configuration),e?e!==this.configuration.resourceId?(this.loggerService.log("Resource ID ".concat(e," does not match the current resource ID ").concat(this.configuration.resourceId,".")),this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId," with resourceId ").concat(e,"}")),[2,t]):this.isResourceLoaded&&this.resourceEntitlementsService?(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId)),[2,this.resourceEntitlementsService.getCustomerEntitlements()]):[2,t]:[2,null===(n=this.globalEntitlementsService)||void 0===n?void 0:n.getCustomerEntitlements()]})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get entitlements. Error: ".concat(e.message)},rethrowError:!0})];case 1:return(n=i.sent())?[2,n]:(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlements.")),[2,t])}})})},e.prototype.estimateSubscription=function(e){return cb(this,void 0,Promise,function(){var t=this;return lb(this,function(n){return[2,ob(function(){return cb(t,void 0,void 0,function(){var t;return lb(this,function(n){switch(n.label){case 0:return[4,this.apiGateway.subscriptionEstimations.estimateSubscription(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,this.modelMapper.mapSubscriptionPreview(t.estimateSubscription)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate subscription. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.estimateSubscriptionUpdate=function(e){return cb(this,void 0,Promise,function(){var t=this;return lb(this,function(n){return[2,ob(function(){return cb(t,void 0,void 0,function(){var t;return lb(this,function(n){switch(n.label){case 0:return[4,this.apiGateway.subscriptionEstimations.estimateSubscriptionUpdate(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,this.modelMapper.mapSubscriptionPreview(t.estimateSubscriptionUpdate)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate subscription update. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.previewNextInvoice=function(e){return cb(this,void 0,Promise,function(){var t=this;return lb(this,function(n){return[2,ob(function(){return cb(t,void 0,void 0,function(){var t;return lb(this,function(n){switch(n.label){case 0:return[4,this.apiGateway.subscriptionEstimations.previewNextInvoice(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,t.previewNextInvoice]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to preview subscription next invoice. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.previewSubscription=function(e){return cb(this,void 0,Promise,function(){var t=this;return lb(this,function(n){return[2,ob(function(){return cb(t,void 0,void 0,function(){var t;return lb(this,function(n){switch(n.label){case 0:return[4,this.apiGateway.subscriptionEstimations.previewSubscription(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,this.modelMapper.mapSubscriptionPreviewV2(t.previewSubscription)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate checkout. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.estimateEventCost=function(e){return cb(this,void 0,Promise,function(){var t=this;return lb(this,function(n){return[2,ob(function(){return cb(t,void 0,void 0,function(){var t;return lb(this,function(n){switch(n.label){case 0:return[4,this.apiGateway.credits.estimateEventCost(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,t.estimateEventCost]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate event credit cost. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.estimateUsageCost=function(e){return cb(this,void 0,Promise,function(){var t=this;return lb(this,function(n){return[2,ob(function(){return cb(t,void 0,void 0,function(){var t;return lb(this,function(n){switch(n.label){case 0:return[4,this.apiGateway.credits.estimateUsageCost(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,t.estimateUsageCost]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate usage credit cost. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.getUsageHistoryV2=function(e){return cb(this,void 0,Promise,function(){var t=this;return lb(this,function(n){return[2,ob(function(){return cb(t,void 0,void 0,function(){return lb(this,function(t){switch(t.label){case 0:return[4,this.apiGateway.usageHistoryApi.getUsageHistoryV2(e)];case 1:return[2,t.sent().data.usageHistoryV2]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get usage history. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.waitForCheckoutCompleted=function(){return cb(this,arguments,Promise,function(e){var t,n,r,i,o,a,s,u,c=void 0===e?{}:e,l=c.timeoutMs,p=void 0===l?15e3:l,d=c.refreshOnComplete,f=void 0===d||d;return lb(this,function(e){switch(e.label){case 0:if("undefined"==typeof window)throw new Error("`waitForCheckoutCompleted` was called, but `window` is not defined");if(t=new URLSearchParams(window.location.search),n=t.get("subscriptionId"),r=t.get("resourceId")||void 0,i=t.get("checkoutCompleted"),!n)return this.loggerService.log("`waitCheckoutCompleted` was called, but no `subscriptionId` found in query params"),[2,null];if(!i||"false"===i.toLowerCase())return this.loggerService.log("The checkout session was cancelled by the user"),[2,null];o=Date.now(),a=!1,e.label=1;case 1:return a?[4,new Promise(function(e){return setTimeout(e,1e3)})]:[3,3];case 2:e.sent(),e.label=3;case 3:return[4,this.getActiveSubscriptions({resourceId:r})];case 4:u=e.sent(),s=u.find(function(e){return e.id===n})||null,a=!0,e.label=5;case 5:if(!s&&Date.now()-o<p)return[3,1];e.label=6;case 6:if(!s)throw new Error("Timeout while waiting for checkout to complete, subscription ".concat(n," is not active"));return f?[4,this.refresh()]:[3,8];case 7:e.sent(),e.label=8;case 8:return[2,s]}})})},e.prototype.getSubscriptions=function(){return cb(this,arguments,Promise,function(e){var t,n,r,i,o,a=this;return void 0===e&&(e={}),lb(this,function(s){return t=e.customerId,n=e.resourceId,r=e.status,i=e.productId,o=e.pagination,[2,ob(function(){return cb(a,void 0,void 0,function(){var e;return lb(this,function(a){switch(a.label){case 0:return[4,this.apiGateway.subscriptions.getSubscriptions(t,n,r,i,o)];case 1:return[2,{data:(e=a.sent()).data.subscriptions.edges.map(function(e){return e.node}),pageInfo:e.data.subscriptions.pageInfo}]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get active subscriptions. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.getActiveSubscriptions=function(e){var t=this,n=(void 0===e?{}:e).resourceId;return ob(function(){return cb(t,void 0,void 0,function(){var e,t,r;return lb(this,function(i){switch(i.label){case 0:return e=Qu(this.configuration),[4,this.apiGateway.customers.getActiveSubscriptions(e,n)];case 1:if(t=i.sent(),!(r=t.data.getActiveSubscriptions))throw new Error("Customer ".concat(n?"or resource ":"","not found"));return[2,this.modelMapper.mapSubscriptions(r)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get active subscriptions. Error: ".concat(e.message)},rethrowError:!0})},e.prototype.getActiveSubscriptionsList=function(){return cb(this,arguments,Promise,function(e){var t=this,n=(void 0===e?{}:e).resourceId;return lb(this,function(e){return[2,ob(function(){return cb(t,void 0,void 0,function(){var e;return lb(this,function(t){switch(t.label){case 0:return e=Qu(this.configuration),[4,this.apiGateway.customers.getActiveSubscriptionsList(e,n)];case 1:return[2,t.sent().data.getActiveSubscriptions]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get active subscriptions list. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.getSubscription=function(e){return cb(this,arguments,Promise,function(e){var t=this,n=e.subscriptionId;return lb(this,function(e){return[2,ob(function(){return cb(t,void 0,void 0,function(){var e,t;return lb(this,function(r){switch(r.label){case 0:return[4,this.apiGateway.customers.getSubscription(n)];case 1:return e=r.sent(),t=e.data.getSubscription,[2,this.modelMapper.mapSubscription(t)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get subscription. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.getCreditUsage=function(e){return cb(this,void 0,Promise,function(){var t=this;return lb(this,function(n){return[2,ob(function(){return cb(t,void 0,void 0,function(){var t,n,r;return lb(this,function(i){switch(i.label){case 0:return t=Qu(this.configuration),n=null!==(r=this.configuration.resourceId)&&void 0!==r?r:void 0,[4,this.apiGateway.credits.getCreditUsage(ub(ub({},e),{customerId:t,resourceId:n}))];case 1:return[2,i.sent().data.creditUsage]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get credit usage. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.getCreditBalance=function(){return cb(this,arguments,Promise,function(e){var t=this;return void 0===e&&(e={}),lb(this,function(n){return[2,ob(function(){return cb(t,void 0,void 0,function(){var t,n,r;return lb(this,function(i){switch(i.label){case 0:return t=Qu(this.configuration),n=null!==(r=this.configuration.resourceId)&&void 0!==r?r:void 0,[4,this.apiGateway.credits.getCreditBalance(ub(ub({},e),{customerId:t,resourceId:n}))];case 1:return[2,i.sent().data.creditBalanceSummary]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return e.message},rethrowError:!0})]})})},e.prototype.getCreditGrants=function(e){return cb(this,void 0,Promise,function(){var t=this;return lb(this,function(n){return[2,ob(function(){return cb(t,void 0,void 0,function(){var t,n,r,i;return lb(this,function(o){switch(o.label){case 0:return t=Qu(this.configuration),n=null!==(i=this.configuration.resourceId)&&void 0!==i?i:void 0,[4,this.apiGateway.credits.getCreditGrants(ub(ub({},e),{customerId:t,resourceId:n}))];case 1:return[2,{data:(r=o.sent()).data.creditGrants.edges.map(function(e){return e.node}),pageInfo:r.data.creditGrants.pageInfo,totalCount:r.data.creditGrants.totalCount}]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return e.message},rethrowError:!0})]})})},e.prototype.getCreditLedger=function(){return cb(this,arguments,Promise,function(e){var t=this;return void 0===e&&(e={}),lb(this,function(n){return[2,ob(function(){return cb(t,void 0,void 0,function(){var t,n,r,i;return lb(this,function(o){switch(o.label){case 0:return t=Qu(this.configuration),n=null!==(i=this.configuration.resourceId)&&void 0!==i?i:void 0,[4,this.apiGateway.credits.getCreditLedger(ub(ub({},e),{customerId:t,resourceId:n}))];case 1:return[2,{data:(r=o.sent()).data.creditsLedger.edges.map(function(e){return e.node}),pageInfo:r.data.creditsLedger.pageInfo,totalCount:r.data.creditsLedger.totalCount}]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return e.message},rethrowError:!0})]})})},e.prototype.createPaymentSession=function(e){return cb(this,void 0,Promise,function(){var t=this;return lb(this,function(n){return[2,ob(function(){return cb(t,void 0,void 0,function(){var t,n;return lb(this,function(r){switch(r.label){case 0:return t=Qu(this.configuration),[4,this.apiGateway.checkout.createPaymentSession(ub(ub({},e),{customerId:t}))];case 1:if(!(n=r.sent()).data||!n.data.createPaymentSession)throw new Error("Invalid response");return[2,n.data.createPaymentSession]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to create payment session. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.getAutomaticRechargeConfiguration=function(e){return cb(this,void 0,Promise,function(){var t=this;return lb(this,function(n){return[2,ob(function(){return cb(t,void 0,void 0,function(){var t;return lb(this,function(n){switch(n.label){case 0:return[4,this.apiGateway.automaticRecharge.getConfiguration(e)];case 1:if(!(t=n.sent()).data)throw new Error("No response data received from automatic recharge get operation");if(!t.data.getAutoRechargeSettings)throw new Error("Invalid response: getAutoRechargeSettings is missing");return[2,t.data.getAutoRechargeSettings]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get automatic recharge configuration. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.saveAutomaticRechargeConfiguration=function(e){return cb(this,void 0,Promise,function(){var t=this;return lb(this,function(n){return[2,ob(function(){return cb(t,void 0,void 0,function(){var t;return lb(this,function(n){switch(n.label){case 0:return[4,this.apiGateway.automaticRecharge.saveConfiguration(e)];case 1:if(!(t=n.sent()).data)throw new Error("No response data received from automatic recharge save operation");if(!t.data.saveAutoRechargeSettings)throw new Error("Invalid response: saveAutoRechargeSettings is missing");return[2,t.data.saveAutoRechargeSettings]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to save automatic recharge configuration. Error: ".concat(e.message)},rethrowError:!0})]})})},e}(),db=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fb=function(){return fb=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},fb.apply(this,arguments)},hb=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})},mb=function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},gb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return db(t,e),t.createOffline=function(e,n){var r=new t(e,n);return r.initializationStateTracker.signalSuccessInit(),r},t.prototype.getBooleanEntitlement=function(e){var t,n=e.featureId,r=e.options,i=(null==r?void 0:r.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[n])||{};return fb(fb({},_h),i)},t.prototype.getMeteredEntitlement=function(e){var t,n=e.featureId,r=e.options,i=(null==r?void 0:r.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[n])||{};return fb(fb({},Sh),i)},t.prototype.getNumericEntitlement=function(e){var t,n=e.featureId,r=e.options,i=(null==r?void 0:r.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[n])||{};return fb(fb({},Ih),i)},t.prototype.getEnumEntitlement=function(e){var t,n=e.featureId,r=e.options,i=(null==r?void 0:r.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[n])||{};return fb(fb({},Th),i)},t.prototype.getCreditEntitlement=function(e){var t=e.currencyId,n=e.options,r=(null==n?void 0:n.fallback)||{},i=fb(fb(fb({},Ch),{currency:{currencyId:t}}),r);return fb(fb({},i),{remaining:Math.max(i.usageLimit-i.currentUsage,0)})},t.prototype.getEntitlements=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,Lh(this.configuration.entitlementsFallback)]})})},t.prototype.getEntitlementsState=function(){return hb(this,void 0,Promise,function(){var e;return mb(this,function(t){switch(t.label){case 0:return[4,this.getEntitlementsStateV2()];case 1:return[2,{entitlements:(e=t.sent()).entitlements.filter(Uh),accessDeniedReason:e.accessDeniedReason}]}})})},t.prototype.getEntitlementsStateV2=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,{entitlements:Lh(this.configuration.entitlementsFallback),accessDeniedReason:null}]})})},t.prototype.addListener=function(){},t.prototype.clearCustomer=function(){},t.prototype.clearResource=function(){},t.prototype.getActiveSubscriptionsList=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,[]]})})},t.prototype.getCoupons=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,[]]})})},t.prototype.getSubscription=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,{id:"mock-subscription-id",addons:[],futureUpdates:[],paymentCollection:mt.NotRequired,plan:{compatibleAddons:[],compatiblePackageGroups:[],displayName:"mock-plan",entitlements:[],id:"mock-plan-id",inheritedEntitlements:[],order:0,pricePoints:[],product:{id:"mock-product-id"}},price:null,prices:[],pricingType:_t.Paid,startDate:new Date,status:tn.Active,totalPrice:{total:{amount:0,currency:he.Usd},subTotal:{amount:0,currency:he.Usd}}}]})})},Object.defineProperty(t.prototype,"isCustomerLoaded",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isResourceLoaded",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.removeListener=function(){},t.prototype.waitForInitialization=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,this]})})},t.prototype.setResource=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2]})})},t.prototype.getCheckoutState=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,{setupSecret:"mock-setup-secret",resource:null,plan:{compatibleAddons:[],compatiblePackageGroups:[],displayName:"mock-plan",entitlements:[],id:"mock-plan-id",inheritedEntitlements:[],order:0,pricePoints:[],product:{id:"mock-product-id"}},customer:{createdAt:new Date,updatedAt:new Date,hasPaymentMethod:!1,id:"mock-customer-id",subscriptions:[],promotionalEntitlements:[],getActivePromotionalEntitlements:function(){return[]},getActiveSubscriptions:function(){return[]},getActiveTrials:function(){return[]}},billingIntegration:{billingIdentifier:W.Stripe,billingCredentials:{setupSecret:"mock-setup-secret",accountId:"mock-account-id",publicKey:"mock-public-key"},credentials:{accountId:"mock-account-id",publicKey:"mock-public-key"}}}]})})},t.prototype.applySubscription=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,{subscription:void 0}]})})},t.prototype.estimateSubscription=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,{billingPeriodRange:{},total:{amount:0,currency:he.Usd},subTotal:{amount:0,currency:he.Usd},totalExcludingTax:{amount:0,currency:he.Usd}}]})})},t.prototype.previewNextInvoice=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,{lastUpdatedAt:new Date,amountDue:{amount:0,currency:he.Usd},minimumSpendAdjustment:{amount:0,currency:he.Usd},total:{amount:0,currency:he.Usd},subTotalExcludingTax:{amount:0,currency:he.Usd},subTotal:{amount:0,currency:he.Usd},totalExcludingTax:{amount:0,currency:he.Usd},tax:{amount:0,currency:he.Usd},lines:[]}]})})},t.prototype.previewSubscription=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,{billingPeriodRange:{},immediateInvoice:{total:{amount:0,currency:he.Usd},subTotal:{amount:0,currency:he.Usd},totalExcludingTax:{amount:0,currency:he.Usd}}}]})})},t.prototype.estimateSubscriptionUpdate=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,{billingPeriodRange:{},total:{amount:0,currency:he.Usd},subTotal:{amount:0,currency:he.Usd},totalExcludingTax:{amount:0,currency:he.Usd}}]})})},t.prototype.estimateEventCost=function(){return hb(this,void 0,void 0,function(){return mb(this,function(e){return[2,{estimates:[],warnings:[]}]})})},t.prototype.estimateUsageCost=function(){return hb(this,void 0,void 0,function(){return mb(this,function(e){return[2,{estimates:[],warnings:[]}]})})},t.prototype.waitForCheckoutCompleted=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,null]})})},t.prototype.refresh=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2]})})},t.prototype.fetchUsageHistory=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,[]]})})},t.prototype.getUsageHistoryV2=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,{markers:[],series:[]}]})})},t.prototype.setCustomerId=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2]})})},t.prototype.getPaywall=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,{activeSubscriptions:[],currency:{code:he.Usd,symbol:"$"},plans:[],customer:null,resource:null}]})})},t.prototype.getCustomerPortal=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,{subscriptions:[],entitlements:[],entitlementsV2:[],promotionalEntitlements:[],billingInformation:{},canUpgradeSubscription:!1,resource:null,showWatermark:!0}]})})},t.prototype.getActiveSubscriptions=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,[]]})})},t.prototype.getSubscriptions=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,{data:[],pageInfo:{}}]})})},t.prototype.getCustomer=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,{id:"offline-customer-id",createdAt:new Date,updatedAt:new Date,subscriptions:[],promotionalEntitlements:[],metadata:{},hasPaymentMethod:!1,email:"offline-customer@example.com",getActivePromotionalEntitlements:function(){return[]},getActiveSubscriptions:function(){return[]},getActiveTrials:function(){return[]}}]})})},t.prototype.getCreditBalance=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,{__typename:"CreditBalanceSummary",customerId:"offline-customer-id",balances:[]}]})})},t.prototype.getCreditGrants=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,{data:[],pageInfo:{},totalCount:0}]})})},t.prototype.getCreditLedger=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,{data:[],pageInfo:{},totalCount:0}]})})},t.prototype.getCreditUsage=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,{series:[],pageInfo:{hasNextPage:!1,hasPreviousPage:!1}}]})})},t.prototype.createPaymentSession=function(){return hb(this,void 0,Promise,function(){return mb(this,function(e){return[2,{__typename:"PaymentSession",token:"mock-token"}]})})},t.prototype.getShowWatermark=function(){return!1},t.prototype.getAutomaticRechargeConfiguration=function(e){return hb(this,void 0,Promise,function(){return mb(this,function(t){return[2,{__typename:"AutoRechargeSettingsDTO",customerId:e.customerId,currencyId:e.currencyId,isEnabled:!1,thresholdType:sn.CreditAmount,thresholdValue:0,targetBalance:0,maxSpendLimit:null,grantExpirationPeriod:Ye.OneMonth,currentMonthlySpend:0,createdAt:new Date,updatedAt:new Date}]})})},t.prototype.saveAutomaticRechargeConfiguration=function(e){return hb(this,void 0,Promise,function(){var t,n,r,i,o;return mb(this,function(a){return[2,{__typename:"AutoRechargeSettingsDTO",customerId:e.customerId,currencyId:e.currencyId,isEnabled:e.isEnabled,thresholdType:null!==(t=e.thresholdType)&&void 0!==t?t:sn.CreditAmount,thresholdValue:null!==(n=e.thresholdValue)&&void 0!==n?n:0,targetBalance:null!==(r=e.targetBalance)&&void 0!==r?r:0,maxSpendLimit:null!==(i=e.maxSpendLimit)&&void 0!==i?i:null,grantExpirationPeriod:null!==(o=e.grantExpirationPeriod)&&void 0!==o?o:Ye.OneMonth,currentMonthlySpend:0,createdAt:new Date,updatedAt:new Date}]})})},t}(pb),yb=pb.initialize.bind(pb);pb.initialize=function(e){var t=qu(e),n=new Mu(t.logConfiguration.logger,t.logConfiguration.logLevel);return t.offline?(n.log("Stigg SDK has been initialized in offline mode, only fallback entitlements are being used."),gb.createOffline(t,n)):yb(e)};const vb=pb},1510:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});const r="undefined"!=typeof globalThis&&globalThis.FormData?globalThis.FormData:"undefined"!=typeof self&&self.FormData?self.FormData:"undefined"!=typeof FormData?FormData:void 0},9793:(e,t,n)=>{n.d(t,{__:()=>b,OS:()=>_,Z:()=>I});var r=n(8660),i=n(1040),o=n(1176),a=n(4293),s=n(6242);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(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 d(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){var t="function"==typeof Map?new Map:void 0;return h=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return m(e,arguments,v(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),y(r,e)},h(e)}function m(e,t,n){return m=g()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&y(i,n.prototype),i},m.apply(null,arguments)}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(h,e);var t,n,r,s,u=(t=h,n=g(),function(){var e,r=v(t);if(n){var i=v(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return d(this,e)});function h(e,t,n,r,o,s,p){var m,g,y,v;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(v=u.call(this,e)).name="GraphQLError",v.originalError=null!=s?s:void 0,v.nodes=E(Array.isArray(t)?t:t?[t]:void 0);for(var b=[],_=0,I=null!==(S=v.nodes)&&void 0!==S?S:[];_<I.length;_++){var S,T=I[_].loc;null!=T&&b.push(T)}b=E(b),v.source=null!=n?n:null===(m=b)||void 0===m?void 0:m[0].source,v.positions=null!=r?r:null===(g=b)||void 0===g?void 0:g.map(function(e){return e.start}),v.locations=r&&n?r.map(function(e){return(0,a.k)(n,e)}):null===(y=b)||void 0===y?void 0:y.map(function(e){return(0,a.k)(e.source,e.start)}),v.path=null!=o?o:void 0;var C=null==s?void 0:s.extensions;return null==p&&(0,i.Z)(C)?v.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},C):v.extensions=null!=p?p:{},Object.defineProperties(f(v),{message:{enumerable:!0},locations:{enumerable:null!=v.locations},path:{enumerable:null!=v.path},extensions:{enumerable:null!=v.extensions&&Object.keys(v.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(f(v),"stack",{value:s.stack,writable:!0,configurable:!0}),d(v)):(Error.captureStackTrace?Error.captureStackTrace(f(v),h):Object.defineProperty(f(v),"stack",{value:Error().stack,writable:!0,configurable:!0}),v)}return r=h,(s=[{key:"toString",value:function(){return _(this)}},{key:"toJSON",value:function(){return I(this)}},{key:o.YF,get:function(){return"Object"}}])&&p(r.prototype,s),h}(h(Error));function E(e){return void 0===e||0===e.length?void 0:e}function _(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+(0,s.Q)(i.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var u=a[o];t+="\n\n"+(0,s.z)(e.source,u)}return t}function I(e){var t;e||(0,r.Z)(0,"Received null or undefined error.");var n=null!==(t=e.message)&&void 0!==t?t:"An unknown error occurred.",i=e.locations,o=e.path,a=e.extensions;return a&&Object.keys(a).length>0?{message:n,locations:i,path:o,extensions:a}:{message:n,locations:i,path:o}}},650:(e,t,n)=>{n.d(t,{h:()=>i});var r=n(9793);function i(e,t,n){return new r.__("Syntax Error: ".concat(n),void 0,e,[t])}},7267:(e,t,n)=>{n.r(t),n.d(t,{BREAK:()=>c.$_,BreakingChangeType:()=>Ro,DEFAULT_DEPRECATION_REASON:()=>Nt,DangerousChangeType:()=>Fo,DirectiveLocation:()=>We.B,ExecutableDefinitionsRule:()=>bn,FieldsOnCorrectTypeRule:()=>Dn,FragmentsOnCompositeTypesRule:()=>Cn,GraphQLBoolean:()=>ot,GraphQLDeprecatedDirective:()=>Rt,GraphQLDirective:()=>Dt,GraphQLEnumType:()=>je,GraphQLError:()=>u.__,GraphQLFloat:()=>nt,GraphQLID:()=>at,GraphQLIncludeDirective:()=>At,GraphQLInputObjectType:()=>Be,GraphQLInt:()=>tt,GraphQLInterfaceType:()=>Ue,GraphQLList:()=>ge,GraphQLNonNull:()=>ye,GraphQLObjectType:()=>Ae,GraphQLScalarType:()=>De,GraphQLSchema:()=>jt,GraphQLSkipDirective:()=>Ot,GraphQLSpecifiedByDirective:()=>Ft,GraphQLString:()=>it,GraphQLUnionType:()=>Me,Kind:()=>U.h,KnownArgumentNamesRule:()=>Gn,KnownDirectivesRule:()=>Mn,KnownFragmentNamesRule:()=>On,KnownTypeNamesRule:()=>Sn,Lexer:()=>Ci.h,Location:()=>on.Ye,LoneAnonymousOperationRule:()=>_n,LoneSchemaDefinitionRule:()=>gr,MaxIntrospectionDepthRule:()=>mr,NoDeprecatedCustomRule:()=>Fi,NoFragmentCyclesRule:()=>Fn,NoSchemaIntrospectionCustomRule:()=>ki,NoUndefinedVariablesRule:()=>xn,NoUnusedFragmentsRule:()=>Nn,NoUnusedVariablesRule:()=>Un,OverlappingFieldsCanBeMergedRule:()=>nr,PossibleFragmentSpreadsRule:()=>Rn,PossibleTypeExtensionsRule:()=>Tr,ProvidedRequiredArgumentsRule:()=>Yn,ScalarLeafsRule:()=>Pn,SchemaMetaFieldDef:()=>Et,SingleFieldSubscriptionsRule:()=>In,Source:()=>Ii.H,Token:()=>on.WU,TokenKind:()=>wi.T,TypeInfo:()=>sn,TypeKind:()=>vt,TypeMetaFieldDef:()=>_t,TypeNameMetaFieldDef:()=>It,UniqueArgumentNamesRule:()=>$n,UniqueDirectiveNamesRule:()=>Ir,UniqueDirectivesPerLocationRule:()=>Ln,UniqueEnumValueNamesRule:()=>br,UniqueFieldDefinitionNamesRule:()=>Er,UniqueFragmentNamesRule:()=>An,UniqueInputFieldNamesRule:()=>dr,UniqueOperationNamesRule:()=>En,UniqueOperationTypesRule:()=>yr,UniqueTypeNamesRule:()=>vr,UniqueVariableNamesRule:()=>kn,ValidationContext:()=>Rr,ValuesOfCorrectTypeRule:()=>Qn,VariablesAreInputTypesRule:()=>wn,VariablesInAllowedPositionRule:()=>Xn,__Directive:()=>dt,__DirectiveLocation:()=>ft,__EnumValue:()=>yt,__Field:()=>mt,__InputValue:()=>gt,__Schema:()=>pt,__Type:()=>ht,__TypeKind:()=>bt,assertAbstractType:()=>me,assertCompositeType:()=>fe,assertDirective:()=>Pt,assertEnumType:()=>X,assertInputObjectType:()=>te,assertInputType:()=>se,assertInterfaceType:()=>Z,assertLeafType:()=>pe,assertListType:()=>re,assertNamedType:()=>Te,assertNonNullType:()=>oe,assertNullableType:()=>_e,assertObjectType:()=>z,assertOutputType:()=>ce,assertScalarType:()=>Q,assertSchema:()=>Lt,assertType:()=>q,assertUnionType:()=>K,assertValidName:()=>m,assertValidSchema:()=>Gt,assertWrappingType:()=>be,astFromValue:()=>ct,buildASTSchema:()=>eo,buildClientSchema:()=>qi,buildSchema:()=>to,coerceInputValue:()=>Gr,concatAST:()=>So,createSourceEventStream:()=>Ri,defaultFieldResolver:()=>yi,defaultTypeResolver:()=>gi,doTypesOverlap:()=>He,execute:()=>Wr,executeSync:()=>Zr,extendSchema:()=>Wi,findBreakingChanges:()=>ko,findDangerousChanges:()=>xo,findDeprecatedUsages:()=>Wo,formatError:()=>u.Z,getDescription:()=>Xi,getDirectiveValues:()=>Hr,getIntrospectionQuery:()=>Li,getLocation:()=>Si.k,getNamedType:()=>Ce,getNullableType:()=>Ie,getOperationAST:()=>ji,getOperationRootType:()=>Lr,getVisitFn:()=>c.CK,graphql:()=>bi,graphqlSync:()=>Ei,introspectionFromSchema:()=>Gi,introspectionTypes:()=>St,isAbstractType:()=>he,isCompositeType:()=>de,isDefinitionNode:()=>ln,isDirective:()=>wt,isEnumType:()=>J,isEqualType:()=>$e,isExecutableDefinitionNode:()=>pn,isInputObjectType:()=>ee,isInputType:()=>ae,isInterfaceType:()=>W,isIntrospectionType:()=>Tt,isLeafType:()=>le,isListType:()=>ne,isNamedType:()=>Se,isNonNullType:()=>ie,isNullableType:()=>Ee,isObjectType:()=>H,isOutputType:()=>ue,isRequiredArgument:()=>xe,isRequiredInputField:()=>qe,isScalarType:()=>$,isSchema:()=>Mt,isSelectionNode:()=>dn,isSpecifiedDirective:()=>xt,isSpecifiedScalarType:()=>ut,isType:()=>G,isTypeDefinitionNode:()=>gn,isTypeExtensionNode:()=>vn,isTypeNode:()=>hn,isTypeSubTypeOf:()=>Qe,isTypeSystemDefinitionNode:()=>mn,isTypeSystemExtensionNode:()=>yn,isUnionType:()=>Y,isValidNameError:()=>g,isValueNode:()=>fn,isWrappingType:()=>ve,lexicographicSortSchema:()=>oo,locatedError:()=>f,parse:()=>a.Qc,parseType:()=>a.gZ,parseValue:()=>a.H2,print:()=>M.S,printError:()=>u.OS,printIntrospectionSchema:()=>lo,printLocation:()=>Ti.Q,printSchema:()=>co,printSourceLocation:()=>Ti.z,printType:()=>mo,recommendedRules:()=>wr,responsePathAsArray:()=>Mr,separateOperations:()=>To,specifiedDirectives:()=>kt,specifiedRules:()=>Pr,specifiedScalarTypes:()=>st,stripIgnoredCharacters:()=>Po,subscribe:()=>Oi,syntaxError:()=>xi.h,typeFromAST:()=>an,validate:()=>Fr,validateSchema:()=>Bt,valueFromAST:()=>Vr,valueFromASTUntyped:()=>j,version:()=>r,versionInfo:()=>i,visit:()=>c.Vn,visitInParallel:()=>c.j1,visitWithTypeInfo:()=>cn});var r="15.10.1",i=Object.freeze({major:15,minor:10,patch:1,preReleaseTag:null});function o(e){return"function"==typeof(null==e?void 0:e.then)}var a=n(5390),s=n(8660),u=n(9793),c=n(8867);const l=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}},p=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})};var d=n(2277);function f(e,t,n){var r,i=e instanceof Error?e:new Error("Unexpected error value: "+(0,d.Z)(e));return Array.isArray(i.path)?i:new u.__(i.message,null!==(r=i.nodes)&&void 0!==r?r:t,i.source,i.positions,n,i)}var h=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function m(e){var t=g(e);if(t)throw t;return e}function g(e){return"string"==typeof e||(0,s.Z)(0,"Expected name to be a string."),e.length>1&&"_"===e[0]&&"_"===e[1]?new u.__('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.')):h.test(e)?void 0:new u.__('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}const y=Object.entries||function(e){return Object.keys(e).map(function(t){return[t,e[t]]})};var v=n(1176);function b(e,t){return e.reduce(function(e,n){return e[t(n)]=n,e},Object.create(null))}function E(e,t){for(var n=Object.create(null),r=0,i=y(e);r<i.length;r++){var o=i[r],a=o[0],s=o[1];n[a]=t(s,a)}return n}function _(e){if(null===Object.getPrototypeOf(e))return e;for(var t=Object.create(null),n=0,r=y(e);n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=a}return t}function I(e,t,n){return e.reduce(function(e,r){return e[t(r)]=n(r),e},Object.create(null))}var S=n(4846),T=5;function C(e,t){var n="string"==typeof e?[e,t]:[void 0,e],r=n[0],i=" Did you mean ";r&&(i+=r+" ");var o=n[1].map(function(e){return'"'.concat(e,'"')});switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}var a=o.slice(0,T),s=a.pop();return i+a.join(", ")+", or "+s+"?"}var w=n(1040);function P(e){return e}var D=n(9499);function A(e,t){for(var n=0,r=0;n<e.length&&r<t.length;){var i=e.charCodeAt(n),o=t.charCodeAt(r);if(R(i)&&R(o)){var a=0;do{++n,a=10*a+i-O,i=e.charCodeAt(n)}while(R(i)&&a>0);var s=0;do{++r,s=10*s+o-O,o=t.charCodeAt(r)}while(R(o)&&s>0);if(a<s)return-1;if(a>s)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}var O=48,N=57;function R(e){return!isNaN(e)&&O<=e&&e<=N}function F(e,t){for(var n=Object.create(null),r=new k(e),i=Math.floor(.4*e.length)+1,o=0;o<t.length;o++){var a=t[o],s=r.measure(a,i);void 0!==s&&(n[a]=s)}return Object.keys(n).sort(function(e,t){var r=n[e]-n[t];return 0!==r?r:A(e,t)})}var k=function(){function e(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=x(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}return e.prototype.measure=function(e,t){if(this._input===e)return 0;var n=e.toLowerCase();if(this._inputLowerCase===n)return 1;var r=x(n),i=this._inputArray;if(r.length<i.length){var o=r;r=i,i=o}var a=r.length,s=i.length;if(!(a-s>t)){for(var u=this._rows,c=0;c<=s;c++)u[0][c]=c;for(var l=1;l<=a;l++){for(var p=u[(l-1)%3],d=u[l%3],f=d[0]=l,h=1;h<=s;h++){var m=r[l-1]===i[h-1]?0:1,g=Math.min(p[h]+1,d[h-1]+1,p[h-1]+m);if(l>1&&h>1&&r[l-1]===i[h-2]&&r[l-2]===i[h-1]){var y=u[(l-2)%3][h-2];g=Math.min(g,y+1)}g<f&&(f=g),d[h]=g}if(f>t)return}var v=u[a%3][s];return v<=t?v:void 0}},e}();function x(e){for(var t=e.length,n=new Array(t),r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}var U=n(5115),M=n(9054),L=n(1424);function j(e,t){switch(e.kind){case U.h.NULL:return null;case U.h.INT:return parseInt(e.value,10);case U.h.FLOAT:return parseFloat(e.value);case U.h.STRING:case U.h.ENUM:case U.h.BOOLEAN:return e.value;case U.h.LIST:return e.values.map(function(e){return j(e,t)});case U.h.OBJECT:return I(e.fields,function(e){return e.name.value},function(e){return j(e.value,t)});case U.h.VARIABLE:return null==t?void 0:t[e.name.value]}(0,L.Z)(0,"Unexpected value node: "+(0,d.Z)(e))}function V(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 B(e,t,n){return t&&V(e.prototype,t),n&&V(e,n),e}function G(e){return $(e)||H(e)||W(e)||Y(e)||J(e)||ee(e)||ne(e)||ie(e)}function q(e){if(!G(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL type."));return e}function $(e){return(0,S.Z)(e,De)}function Q(e){if(!$(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL Scalar type."));return e}function H(e){return(0,S.Z)(e,Ae)}function z(e){if(!H(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL Object type."));return e}function W(e){return(0,S.Z)(e,Ue)}function Z(e){if(!W(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL Interface type."));return e}function Y(e){return(0,S.Z)(e,Me)}function K(e){if(!Y(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL Union type."));return e}function J(e){return(0,S.Z)(e,je)}function X(e){if(!J(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL Enum type."));return e}function ee(e){return(0,S.Z)(e,Be)}function te(e){if(!ee(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL Input Object type."));return e}function ne(e){return(0,S.Z)(e,ge)}function re(e){if(!ne(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL List type."));return e}function ie(e){return(0,S.Z)(e,ye)}function oe(e){if(!ie(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL Non-Null type."));return e}function ae(e){return $(e)||J(e)||ee(e)||ve(e)&&ae(e.ofType)}function se(e){if(!ae(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL input type."));return e}function ue(e){return $(e)||H(e)||W(e)||Y(e)||J(e)||ve(e)&&ue(e.ofType)}function ce(e){if(!ue(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL output type."));return e}function le(e){return $(e)||J(e)}function pe(e){if(!le(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL leaf type."));return e}function de(e){return H(e)||W(e)||Y(e)}function fe(e){if(!de(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL composite type."));return e}function he(e){return W(e)||Y(e)}function me(e){if(!he(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL abstract type."));return e}function ge(e){if(!(this instanceof ge))return new ge(e);this.ofType=q(e)}function ye(e){if(!(this instanceof ye))return new ye(e);this.ofType=_e(e)}function ve(e){return ne(e)||ie(e)}function be(e){if(!ve(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL wrapping type."));return e}function Ee(e){return G(e)&&!ie(e)}function _e(e){if(!Ee(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL nullable type."));return e}function Ie(e){if(e)return ie(e)?e.ofType:e}function Se(e){return $(e)||H(e)||W(e)||Y(e)||J(e)||ee(e)}function Te(e){if(!Se(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL named type."));return e}function Ce(e){if(e){for(var t=e;ve(t);)t=t.ofType;return t}}function we(e){return"function"==typeof e?e():e}function Pe(e){return e&&e.length>0?e:void 0}ge.prototype.toString=function(){return"["+String(this.ofType)+"]"},ge.prototype.toJSON=function(){return this.toString()},Object.defineProperty(ge.prototype,v.YF,{get:function(){return"GraphQLList"}}),(0,D.Z)(ge),ye.prototype.toString=function(){return String(this.ofType)+"!"},ye.prototype.toJSON=function(){return this.toString()},Object.defineProperty(ye.prototype,v.YF,{get:function(){return"GraphQLNonNull"}}),(0,D.Z)(ye);var De=function(){function e(e){var t,n,r,i=null!==(t=e.parseValue)&&void 0!==t?t:P;this.name=e.name,this.description=e.description,this.specifiedByUrl=e.specifiedByUrl,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:P,this.parseValue=i,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:function(e,t){return i(j(e,t))},this.extensions=e.extensions&&_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Pe(e.extensionASTNodes),"string"==typeof e.name||(0,s.Z)(0,"Must provide name."),null==e.specifiedByUrl||"string"==typeof e.specifiedByUrl||(0,s.Z)(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat((0,d.Z)(e.specifiedByUrl),".")),null==e.serialize||"function"==typeof e.serialize||(0,s.Z)(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,s.Z)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){var e;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},B(e,[{key:v.YF,get:function(){return"GraphQLScalarType"}}]),e}();(0,D.Z)(De);var Ae=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Pe(e.extensionASTNodes),this._fields=Ne.bind(void 0,e),this._interfaces=Oe.bind(void 0,e),"string"==typeof e.name||(0,s.Z)(0,"Must provide name."),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,s.Z)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,d.Z)(e.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Fe(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},B(e,[{key:v.YF,get:function(){return"GraphQLObjectType"}}]),e}();function Oe(e){var t,n=null!==(t=we(e.interfaces))&&void 0!==t?t:[];return Array.isArray(n)||(0,s.Z)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function Ne(e){var t=we(e.fields);return Re(t)||(0,s.Z)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),E(t,function(t,n){var r;Re(t)||(0,s.Z)(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in t)||(0,s.Z)(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"==typeof t.resolve||(0,s.Z)(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat((0,d.Z)(t.resolve),"."));var i=null!==(r=t.args)&&void 0!==r?r:{};Re(i)||(0,s.Z)(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var o=y(i).map(function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&_(n.extensions),astNode:n.astNode}});return{name:n,description:t.description,type:t.type,args:o,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:null!=t.deprecationReason,deprecationReason:t.deprecationReason,extensions:t.extensions&&_(t.extensions),astNode:t.astNode}})}function Re(e){return(0,w.Z)(e)&&!Array.isArray(e)}function Fe(e){return E(e,function(e){return{description:e.description,type:e.type,args:ke(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}})}function ke(e){return I(e,function(e){return e.name},function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}})}function xe(e){return ie(e.type)&&void 0===e.defaultValue}(0,D.Z)(Ae);var Ue=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Pe(e.extensionASTNodes),this._fields=Ne.bind(void 0,e),this._interfaces=Oe.bind(void 0,e),"string"==typeof e.name||(0,s.Z)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||(0,s.Z)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,d.Z)(e.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){var e;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Fe(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},B(e,[{key:v.YF,get:function(){return"GraphQLInterfaceType"}}]),e}();(0,D.Z)(Ue);var Me=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Pe(e.extensionASTNodes),this._types=Le.bind(void 0,e),"string"==typeof e.name||(0,s.Z)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||(0,s.Z)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,d.Z)(e.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},t.toConfig=function(){var e;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},B(e,[{key:v.YF,get:function(){return"GraphQLUnionType"}}]),e}();function Le(e){var t=we(e.types);return Array.isArray(t)||(0,s.Z)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}(0,D.Z)(Me);var je=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Pe(e.extensionASTNodes),this._values=(t=this.name,Re(n=e.values)||(0,s.Z)(0,"".concat(t," values must be an object with value names as keys.")),y(n).map(function(e){var n=e[0],r=e[1];return Re(r)||(0,s.Z)(0,"".concat(t,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,d.Z)(r),".")),!("isDeprecated"in r)||(0,s.Z)(0,"".concat(t,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:r.description,value:void 0!==r.value?r.value:n,isDeprecated:null!=r.deprecationReason,deprecationReason:r.deprecationReason,extensions:r.extensions&&_(r.extensions),astNode:r.astNode}})),this._valueLookup=new Map(this._values.map(function(e){return[e.value,e]})),this._nameLookup=b(this._values,function(e){return e.name}),"string"==typeof e.name||(0,s.Z)(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(e){return this._nameLookup[e]},t.serialize=function(e){var t=this._valueLookup.get(e);if(void 0===t)throw new u.__('Enum "'.concat(this.name,'" cannot represent value: ').concat((0,d.Z)(e)));return t.name},t.parseValue=function(e){if("string"!=typeof e){var t=(0,d.Z)(e);throw new u.__('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+Ve(this,t))}var n=this.getValue(e);if(null==n)throw new u.__('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+Ve(this,e));return n.value},t.parseLiteral=function(e,t){if(e.kind!==U.h.ENUM){var n=(0,M.S)(e);throw new u.__('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(n,".")+Ve(this,n),e)}var r=this.getValue(e.value);if(null==r){var i=(0,M.S)(e);throw new u.__('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+Ve(this,i),e)}return r.value},t.toConfig=function(){var e,t=I(this.getValues(),function(e){return e.name},function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}});return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},B(e,[{key:v.YF,get:function(){return"GraphQLEnumType"}}]),e}();function Ve(e,t){return C("the enum value",F(t,e.getValues().map(function(e){return e.name})))}(0,D.Z)(je);var Be=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Pe(e.extensionASTNodes),this._fields=Ge.bind(void 0,e),"string"==typeof e.name||(0,s.Z)(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var e,t=E(this.getFields(),function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}});return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},B(e,[{key:v.YF,get:function(){return"GraphQLInputObjectType"}}]),e}();function Ge(e){var t=we(e.fields);return Re(t)||(0,s.Z)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),E(t,function(t,n){return!("resolve"in t)||(0,s.Z)(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&_(t.extensions),astNode:t.astNode}})}function qe(e){return ie(e.type)&&void 0===e.defaultValue}function $e(e,t){return e===t||(ie(e)&&ie(t)||!(!ne(e)||!ne(t)))&&$e(e.ofType,t.ofType)}function Qe(e,t,n){return t===n||(ie(n)?!!ie(t)&&Qe(e,t.ofType,n.ofType):ie(t)?Qe(e,t.ofType,n):ne(n)?!!ne(t)&&Qe(e,t.ofType,n.ofType):!ne(t)&&he(n)&&(W(t)||H(t))&&e.isSubType(n,t))}function He(e,t,n){return t===n||(he(t)?he(n)?e.getPossibleTypes(t).some(function(t){return e.isSubType(n,t)}):e.isSubType(t,n):!!he(n)&&e.isSubType(n,t))}(0,D.Z)(Be);const ze=Array.from||function(e,t,n){if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r=e[v.Xr];if("function"==typeof r){for(var i,o=r.call(e),a=[],s=0;!(i=o.next()).done;++s)if(a.push(t.call(n,i.value,s)),s>9999999)throw new TypeError("Near-infinite iteration.");return a}var u=e.length;if("number"==typeof u&&u>=0&&u%1==0){for(var c=[],l=0;l<u;++l)Object.prototype.hasOwnProperty.call(e,l)&&c.push(t.call(n,e[l],l));return c}return[]};var We=n(9633);const Ze=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)};function Ye(e){return Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ye(e)}function Ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};if(null==e||"object"!==Ye(e))return null;if(Array.isArray(e))return e.map(t);var n=e[v.Xr];if("function"==typeof n){for(var r,i=n.call(e),o=[],a=0;!(r=i.next()).done;++a)o.push(t(r.value,a));return o}var s=e.length;if("number"==typeof s&&s>=0&&s%1==0){for(var u=[],c=0;c<s;++c){if(!Object.prototype.hasOwnProperty.call(e,c))return null;u.push(t(e[String(c)],c))}return u}return null}const Je=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};var Xe=2147483647,et=-2147483648,tt=new De({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:function(e){var t=rt(e);if("boolean"==typeof t)return t?1:0;var n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),!Je(n))throw new u.__("Int cannot represent non-integer value: ".concat((0,d.Z)(t)));if(n>Xe||n<et)throw new u.__("Int cannot represent non 32-bit signed integer value: "+(0,d.Z)(t));return n},parseValue:function(e){if(!Je(e))throw new u.__("Int cannot represent non-integer value: ".concat((0,d.Z)(e)));if(e>Xe||e<et)throw new u.__("Int cannot represent non 32-bit signed integer value: ".concat(e));return e},parseLiteral:function(e){if(e.kind!==U.h.INT)throw new u.__("Int cannot represent non-integer value: ".concat((0,M.S)(e)),e);var t=parseInt(e.value,10);if(t>Xe||t<et)throw new u.__("Int cannot represent non 32-bit signed integer value: ".concat(e.value),e);return t}}),nt=new De({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){var t=rt(e);if("boolean"==typeof t)return t?1:0;var n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),!Ze(n))throw new u.__("Float cannot represent non numeric value: ".concat((0,d.Z)(t)));return n},parseValue:function(e){if(!Ze(e))throw new u.__("Float cannot represent non numeric value: ".concat((0,d.Z)(e)));return e},parseLiteral:function(e){if(e.kind!==U.h.FLOAT&&e.kind!==U.h.INT)throw new u.__("Float cannot represent non numeric value: ".concat((0,M.S)(e)),e);return parseFloat(e.value)}});function rt(e){if((0,w.Z)(e)){if("function"==typeof e.valueOf){var t=e.valueOf();if(!(0,w.Z)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}var it=new De({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=rt(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if(Ze(t))return t.toString();throw new u.__("String cannot represent value: ".concat((0,d.Z)(e)))},parseValue:function(e){if("string"!=typeof e)throw new u.__("String cannot represent a non string value: ".concat((0,d.Z)(e)));return e},parseLiteral:function(e){if(e.kind!==U.h.STRING)throw new u.__("String cannot represent a non string value: ".concat((0,M.S)(e)),e);return e.value}}),ot=new De({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){var t=rt(e);if("boolean"==typeof t)return t;if(Ze(t))return 0!==t;throw new u.__("Boolean cannot represent a non boolean value: ".concat((0,d.Z)(t)))},parseValue:function(e){if("boolean"!=typeof e)throw new u.__("Boolean cannot represent a non boolean value: ".concat((0,d.Z)(e)));return e},parseLiteral:function(e){if(e.kind!==U.h.BOOLEAN)throw new u.__("Boolean cannot represent a non boolean value: ".concat((0,M.S)(e)),e);return e.value}}),at=new De({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=rt(e);if("string"==typeof t)return t;if(Je(t))return String(t);throw new u.__("ID cannot represent value: ".concat((0,d.Z)(e)))},parseValue:function(e){if("string"==typeof e)return e;if(Je(e))return e.toString();throw new u.__("ID cannot represent value: ".concat((0,d.Z)(e)))},parseLiteral:function(e){if(e.kind!==U.h.STRING&&e.kind!==U.h.INT)throw new u.__("ID cannot represent a non-string and non-integer value: "+(0,M.S)(e),e);return e.value}}),st=Object.freeze([it,tt,nt,ot,at]);function ut(e){return st.some(function(t){var n=t.name;return e.name===n})}function ct(e,t){if(ie(t)){var n=ct(e,t.ofType);return(null==n?void 0:n.kind)===U.h.NULL?null:n}if(null===e)return{kind:U.h.NULL};if(void 0===e)return null;if(ne(t)){var r=t.ofType,i=Ke(e);if(null!=i){for(var o=[],a=0;a<i.length;a++){var s=ct(i[a],r);null!=s&&o.push(s)}return{kind:U.h.LIST,values:o}}return ct(e,r)}if(ee(t)){if(!(0,w.Z)(e))return null;for(var u=[],c=0,l=p(t.getFields());c<l.length;c++){var f=l[c],h=ct(e[f.name],f.type);h&&u.push({kind:U.h.OBJECT_FIELD,name:{kind:U.h.NAME,value:f.name},value:h})}return{kind:U.h.OBJECT,fields:u}}if(le(t)){var m=t.serialize(e);if(null==m)return null;if("boolean"==typeof m)return{kind:U.h.BOOLEAN,value:m};if("number"==typeof m&&Ze(m)){var g=String(m);return lt.test(g)?{kind:U.h.INT,value:g}:{kind:U.h.FLOAT,value:g}}if("string"==typeof m)return J(t)?{kind:U.h.ENUM,value:m}:t===at&<.test(m)?{kind:U.h.INT,value:m}:{kind:U.h.STRING,value:m};throw new TypeError("Cannot convert value to AST: ".concat((0,d.Z)(m),"."))}(0,L.Z)(0,"Unexpected input type: "+(0,d.Z)(t))}var lt=/^-?(?:0|[1-9][0-9]*)$/,pt=new Ae({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:it,resolve:function(e){return e.description}},types:{description:"A list of all types supported by this server.",type:new ye(new ge(new ye(ht))),resolve:function(e){return p(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new ye(ht),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:ht,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:ht,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new ye(new ge(new ye(dt))),resolve:function(e){return e.getDirectives()}}}}}),dt=new Ae({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:new ye(it),resolve:function(e){return e.name}},description:{type:it,resolve:function(e){return e.description}},isRepeatable:{type:new ye(ot),resolve:function(e){return e.isRepeatable}},locations:{type:new ye(new ge(new ye(ft))),resolve:function(e){return e.locations}},args:{type:new ye(new ge(new ye(gt))),args:{includeDeprecated:{type:ot,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter(function(e){return null==e.deprecationReason})}}}}}),ft=new je({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:We.B.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:We.B.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:We.B.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:We.B.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:We.B.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:We.B.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:We.B.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:We.B.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:We.B.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:We.B.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:We.B.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:We.B.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:We.B.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:We.B.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:We.B.UNION,description:"Location adjacent to a union definition."},ENUM:{value:We.B.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:We.B.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:We.B.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:We.B.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),ht=new Ae({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new ye(bt),resolve:function(e){return $(e)?vt.SCALAR:H(e)?vt.OBJECT:W(e)?vt.INTERFACE:Y(e)?vt.UNION:J(e)?vt.ENUM:ee(e)?vt.INPUT_OBJECT:ne(e)?vt.LIST:ie(e)?vt.NON_NULL:void(0,L.Z)(0,'Unexpected type: "'.concat((0,d.Z)(e),'".'))}},name:{type:it,resolve:function(e){return void 0!==e.name?e.name:void 0}},description:{type:it,resolve:function(e){return void 0!==e.description?e.description:void 0}},specifiedByUrl:{type:it,resolve:function(e){return void 0!==e.specifiedByUrl?e.specifiedByUrl:void 0}},fields:{type:new ge(new ye(mt)),args:{includeDeprecated:{type:ot,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(H(e)||W(e)){var r=p(e.getFields());return n?r:r.filter(function(e){return null==e.deprecationReason})}}},interfaces:{type:new ge(new ye(ht)),resolve:function(e){if(H(e)||W(e))return e.getInterfaces()}},possibleTypes:{type:new ge(new ye(ht)),resolve:function(e,t,n,r){var i=r.schema;if(he(e))return i.getPossibleTypes(e)}},enumValues:{type:new ge(new ye(yt)),args:{includeDeprecated:{type:ot,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(J(e)){var r=e.getValues();return n?r:r.filter(function(e){return null==e.deprecationReason})}}},inputFields:{type:new ge(new ye(gt)),args:{includeDeprecated:{type:ot,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(ee(e)){var r=p(e.getFields());return n?r:r.filter(function(e){return null==e.deprecationReason})}}},ofType:{type:ht,resolve:function(e){return void 0!==e.ofType?e.ofType:void 0}}}}}),mt=new Ae({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new ye(it),resolve:function(e){return e.name}},description:{type:it,resolve:function(e){return e.description}},args:{type:new ye(new ge(new ye(gt))),args:{includeDeprecated:{type:ot,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter(function(e){return null==e.deprecationReason})}},type:{type:new ye(ht),resolve:function(e){return e.type}},isDeprecated:{type:new ye(ot),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:it,resolve:function(e){return e.deprecationReason}}}}}),gt=new Ae({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new ye(it),resolve:function(e){return e.name}},description:{type:it,resolve:function(e){return e.description}},type:{type:new ye(ht),resolve:function(e){return e.type}},defaultValue:{type:it,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){var t=e.type,n=ct(e.defaultValue,t);return n?(0,M.S)(n):null}},isDeprecated:{type:new ye(ot),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:it,resolve:function(e){return e.deprecationReason}}}}}),yt=new Ae({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new ye(it),resolve:function(e){return e.name}},description:{type:it,resolve:function(e){return e.description}},isDeprecated:{type:new ye(ot),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:it,resolve:function(e){return e.deprecationReason}}}}}),vt=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),bt=new je({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:vt.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:vt.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:vt.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:vt.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:vt.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:vt.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:vt.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:vt.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Et={name:"__schema",type:new ye(pt),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},_t={name:"__type",type:ht,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new ye(it),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(e,t,n,r){var i=t.name;return r.schema.getType(i)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},It={name:"__typename",type:new ye(it),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,r){return r.parentType.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},St=Object.freeze([pt,dt,ft,ht,mt,gt,yt,bt]);function Tt(e){return St.some(function(t){var n=t.name;return e.name===n})}function Ct(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 wt(e){return(0,S.Z)(e,Dt)}function Pt(e){if(!wt(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL directive."));return e}var Dt=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=e.extensions&&_(e.extensions),this.astNode=e.astNode,e.name||(0,s.Z)(0,"Directive must be named."),Array.isArray(e.locations)||(0,s.Z)(0,"@".concat(e.name," locations must be an Array."));var r=null!==(n=e.args)&&void 0!==n?n:{};(0,w.Z)(r)&&!Array.isArray(r)||(0,s.Z)(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=y(r).map(function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&_(n.extensions),astNode:n.astNode}})}var t,n,r=e.prototype;return r.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:ke(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},r.toString=function(){return"@"+this.name},r.toJSON=function(){return this.toString()},t=e,(n=[{key:v.YF,get:function(){return"GraphQLDirective"}}])&&Ct(t.prototype,n),e}();(0,D.Z)(Dt);var At=new Dt({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[We.B.FIELD,We.B.FRAGMENT_SPREAD,We.B.INLINE_FRAGMENT],args:{if:{type:new ye(ot),description:"Included when true."}}}),Ot=new Dt({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[We.B.FIELD,We.B.FRAGMENT_SPREAD,We.B.INLINE_FRAGMENT],args:{if:{type:new ye(ot),description:"Skipped when true."}}}),Nt="No longer supported",Rt=new Dt({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[We.B.FIELD_DEFINITION,We.B.ARGUMENT_DEFINITION,We.B.INPUT_FIELD_DEFINITION,We.B.ENUM_VALUE],args:{reason:{type:it,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:Nt}}}),Ft=new Dt({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[We.B.SCALAR],args:{url:{type:new ye(it),description:"The URL that specifies the behaviour of this scalar."}}}),kt=Object.freeze([At,Ot,Rt,Ft]);function xt(e){return kt.some(function(t){return t.name===e.name})}function Ut(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 Mt(e){return(0,S.Z)(e,jt)}function Lt(e){if(!Mt(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL schema."));return e}var jt=function(){function e(e){var t;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,w.Z)(e)||(0,s.Z)(0,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,s.Z)(0,'"types" must be Array if provided but got: '.concat((0,d.Z)(e.types),".")),!e.directives||Array.isArray(e.directives)||(0,s.Z)(0,'"directives" must be Array if provided but got: '+"".concat((0,d.Z)(e.directives),".")),this.description=e.description,this.extensions=e.extensions&&_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(t=e.directives)&&void 0!==t?t:kt;var n=new Set(e.types);if(null!=e.types)for(var r=0,i=e.types;r<i.length;r++){var o=i[r];n.delete(o),Vt(o,n)}null!=this._queryType&&Vt(this._queryType,n),null!=this._mutationType&&Vt(this._mutationType,n),null!=this._subscriptionType&&Vt(this._subscriptionType,n);for(var a=0,u=this._directives;a<u.length;a++){var c=u[a];if(wt(c))for(var l=0,p=c.args;l<p.length;l++)Vt(p[l].type,n)}Vt(pt,n),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var f=0,h=ze(n);f<h.length;f++){var m=h[f];if(null!=m){var g=m.name;if(g||(0,s.Z)(0,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[g])throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(g,'".'));if(this._typeMap[g]=m,W(m))for(var y=0,v=m.getInterfaces();y<v.length;y++){var b=v[y];if(W(b)){var E=this._implementationsMap[b.name];void 0===E&&(E=this._implementationsMap[b.name]={objects:[],interfaces:[]}),E.interfaces.push(m)}}else if(H(m))for(var I=0,S=m.getInterfaces();I<S.length;I++){var T=S[I];if(W(T)){var C=this._implementationsMap[T.name];void 0===C&&(C=this._implementationsMap[T.name]={objects:[],interfaces:[]}),C.objects.push(m)}}}}}var t,n,r=e.prototype;return r.getQueryType=function(){return this._queryType},r.getMutationType=function(){return this._mutationType},r.getSubscriptionType=function(){return this._subscriptionType},r.getTypeMap=function(){return this._typeMap},r.getType=function(e){return this.getTypeMap()[e]},r.getPossibleTypes=function(e){return Y(e)?e.getTypes():this.getImplementations(e).objects},r.getImplementations=function(e){var t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}},r.isPossibleType=function(e,t){return this.isSubType(e,t)},r.isSubType=function(e,t){var n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),Y(e))for(var r=0,i=e.getTypes();r<i.length;r++)n[i[r].name]=!0;else{for(var o=this.getImplementations(e),a=0,s=o.objects;a<s.length;a++)n[s[a].name]=!0;for(var u=0,c=o.interfaces;u<c.length;u++)n[c[u].name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]},r.getDirectives=function(){return this._directives},r.getDirective=function(e){return l(this.getDirectives(),function(t){return t.name===e})},r.toConfig=function(){var e;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:p(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[],assumeValid:void 0!==this.__validationErrors}},t=e,(n=[{key:v.YF,get:function(){return"GraphQLSchema"}}])&&Ut(t.prototype,n),e}();function Vt(e,t){var n=Ce(e);if(!t.has(n))if(t.add(n),Y(n))for(var r=0,i=n.getTypes();r<i.length;r++)Vt(i[r],t);else if(H(n)||W(n)){for(var o=0,a=n.getInterfaces();o<a.length;o++)Vt(a[o],t);for(var s=0,u=p(n.getFields());s<u.length;s++){var c=u[s];Vt(c.type,t);for(var l=0,d=c.args;l<d.length;l++)Vt(d[l].type,t)}}else if(ee(n))for(var f=0,h=p(n.getFields());f<h.length;f++)Vt(h[f].type,t);return t}function Bt(e){if(Lt(e),e.__validationErrors)return e.__validationErrors;var t=new qt(e);!function(e){var t=e.schema,n=t.getQueryType();if(n){if(!H(n)){var r;e.reportError("Query root type must be Object type, it cannot be ".concat((0,d.Z)(n),"."),null!==(r=$t(t,"query"))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);var i,o=t.getMutationType();o&&!H(o)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,d.Z)(o),"."),null!==(i=$t(t,"mutation"))&&void 0!==i?i:o.astNode);var a,s=t.getSubscriptionType();s&&!H(s)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,d.Z)(s),"."),null!==(a=$t(t,"subscription"))&&void 0!==a?a:s.astNode)}(t),function(e){for(var t=0,n=e.schema.getDirectives();t<n.length;t++){var r=n[t];if(wt(r)){Qt(e,r);for(var i=0,o=r.args;i<o.length;i++){var a,s=o[i];Qt(e,s),ae(s.type)||e.reportError("The type of @".concat(r.name,"(").concat(s.name,":) must be Input Type ")+"but got: ".concat((0,d.Z)(s.type),"."),s.astNode),xe(s)&&null!=s.deprecationReason&&e.reportError("Required argument @".concat(r.name,"(").concat(s.name,":) cannot be deprecated."),[rn(s.astNode),null===(a=s.astNode)||void 0===a?void 0:a.type])}}else e.reportError("Expected directive but got: ".concat((0,d.Z)(r),"."),null==r?void 0:r.astNode)}}(t),function(e){for(var t=function(e){var t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(!t[o.name]){t[o.name]=!0,r[o.name]=n.length;for(var a=p(o.getFields()),s=0;s<a.length;s++){var u=a[s];if(ie(u.type)&&ee(u.type.ofType)){var c=u.type.ofType,l=r[c.name];if(n.push(u),void 0===l)i(c);else{var d=n.slice(l),f=d.map(function(e){return e.name}).join(".");e.reportError('Cannot reference Input Object "'.concat(c.name,'" within itself through a series of non-null fields: "').concat(f,'".'),d.map(function(e){return e.astNode}))}n.pop()}}r[o.name]=void 0}}}(e),n=e.schema.getTypeMap(),r=0,i=p(n);r<i.length;r++){var o=i[r];Se(o)?(Tt(o)||Qt(e,o),H(o)||W(o)?(Ht(e,o),zt(e,o)):Y(o)?Yt(e,o):J(o)?Kt(e,o):ee(o)&&(Jt(e,o),t(o))):e.reportError("Expected GraphQL named type but got: ".concat((0,d.Z)(o),"."),o.astNode)}}(t);var n=t.getErrors();return e.__validationErrors=n,n}function Gt(e){var t=Bt(e);if(0!==t.length)throw new Error(t.map(function(e){return e.message}).join("\n\n"))}var qt=function(){function e(e){this._errors=[],this.schema=e}var t=e.prototype;return t.reportError=function(e,t){var n=Array.isArray(t)?t.filter(Boolean):t;this.addError(new u.__(e,n))},t.addError=function(e){this._errors.push(e)},t.getErrors=function(){return this._errors},e}();function $t(e,t){for(var n=en(e,function(e){return e.operationTypes}),r=0;r<n.length;r++){var i=n[r];if(i.operation===t)return i.type}}function Qt(e,t){var n=g(t.name);n&&e.addError(f(n,t.astNode))}function Ht(e,t){var n=p(t.getFields());0===n.length&&e.reportError("Type ".concat(t.name," must define one or more fields."),Xt(t));for(var r=0;r<n.length;r++){var i,o=n[r];Qt(e,o),ue(o.type)||e.reportError("The type of ".concat(t.name,".").concat(o.name," must be Output Type ")+"but got: ".concat((0,d.Z)(o.type),"."),null===(i=o.astNode)||void 0===i?void 0:i.type);for(var a=0,s=o.args;a<s.length;a++){var u,c,l=s[a],f=l.name;Qt(e,l),ae(l.type)||e.reportError("The type of ".concat(t.name,".").concat(o.name,"(").concat(f,":) must be Input ")+"Type but got: ".concat((0,d.Z)(l.type),"."),null===(u=l.astNode)||void 0===u?void 0:u.type),xe(l)&&null!=l.deprecationReason&&e.reportError("Required argument ".concat(t.name,".").concat(o.name,"(").concat(f,":) cannot be deprecated."),[rn(l.astNode),null===(c=l.astNode)||void 0===c?void 0:c.type])}}}function zt(e,t){for(var n=Object.create(null),r=0,i=t.getInterfaces();r<i.length;r++){var o=i[r];W(o)?t!==o?n[o.name]?e.reportError("Type ".concat(t.name," can only implement ").concat(o.name," once."),tn(t,o)):(n[o.name]=!0,Zt(e,t,o),Wt(e,t,o)):e.reportError("Type ".concat(t.name," cannot implement itself because it would create a circular reference."),tn(t,o)):e.reportError("Type ".concat((0,d.Z)(t)," must only implement Interface types, ")+"it cannot implement ".concat((0,d.Z)(o),"."),tn(t,o))}}function Wt(e,t,n){for(var r=t.getFields(),i=0,o=p(n.getFields());i<o.length;i++){var a=o[i],s=a.name,u=r[s];if(u){var c,f;Qe(e.schema,u.type,a.type)||e.reportError("Interface field ".concat(n.name,".").concat(s," expects type ")+"".concat((0,d.Z)(a.type)," but ").concat(t.name,".").concat(s," ")+"is type ".concat((0,d.Z)(u.type),"."),[null===(c=a.astNode)||void 0===c?void 0:c.type,null===(f=u.astNode)||void 0===f?void 0:f.type]);for(var h=function(r,i){var o,a,c=i[r],p=c.name,f=l(u.args,function(e){return e.name===p});if(!f)return e.reportError("Interface field argument ".concat(n.name,".").concat(s,"(").concat(p,":) expected but ").concat(t.name,".").concat(s," does not provide it."),[c.astNode,u.astNode]),"continue";$e(c.type,f.type)||e.reportError("Interface field argument ".concat(n.name,".").concat(s,"(").concat(p,":) ")+"expects type ".concat((0,d.Z)(c.type)," but ")+"".concat(t.name,".").concat(s,"(").concat(p,":) is type ")+"".concat((0,d.Z)(f.type),"."),[null===(o=c.astNode)||void 0===o?void 0:o.type,null===(a=f.astNode)||void 0===a?void 0:a.type])},m=0,g=a.args;m<g.length;m++)h(m,g);for(var y=function(r,i){var o=i[r],u=o.name;!l(a.args,function(e){return e.name===u})&&xe(o)&&e.reportError("Object field ".concat(t.name,".").concat(s," includes required argument ").concat(u," that is missing from the Interface field ").concat(n.name,".").concat(s,"."),[o.astNode,a.astNode])},v=0,b=u.args;v<b.length;v++)y(v,b)}else e.reportError("Interface field ".concat(n.name,".").concat(s," expected but ").concat(t.name," does not provide it."),[a.astNode].concat(Xt(t)))}}function Zt(e,t,n){for(var r=t.getInterfaces(),i=0,o=n.getInterfaces();i<o.length;i++){var a=o[i];-1===r.indexOf(a)&&e.reportError(a===t?"Type ".concat(t.name," cannot implement ").concat(n.name," because it would create a circular reference."):"Type ".concat(t.name," must implement ").concat(a.name," because it is implemented by ").concat(n.name,"."),[].concat(tn(n,a),tn(t,n)))}}function Yt(e,t){var n=t.getTypes();0===n.length&&e.reportError("Union type ".concat(t.name," must define one or more member types."),Xt(t));for(var r=Object.create(null),i=0;i<n.length;i++){var o=n[i];r[o.name]?e.reportError("Union type ".concat(t.name," can only include type ").concat(o.name," once."),nn(t,o.name)):(r[o.name]=!0,H(o)||e.reportError("Union type ".concat(t.name," can only include Object types, ")+"it cannot include ".concat((0,d.Z)(o),"."),nn(t,String(o))))}}function Kt(e,t){var n=t.getValues();0===n.length&&e.reportError("Enum type ".concat(t.name," must define one or more values."),Xt(t));for(var r=0;r<n.length;r++){var i=n[r],o=i.name;Qt(e,i),"true"!==o&&"false"!==o&&"null"!==o||e.reportError("Enum type ".concat(t.name," cannot include value: ").concat(o,"."),i.astNode)}}function Jt(e,t){var n=p(t.getFields());0===n.length&&e.reportError("Input Object type ".concat(t.name," must define one or more fields."),Xt(t));for(var r=0;r<n.length;r++){var i,o,a=n[r];Qt(e,a),ae(a.type)||e.reportError("The type of ".concat(t.name,".").concat(a.name," must be Input Type ")+"but got: ".concat((0,d.Z)(a.type),"."),null===(i=a.astNode)||void 0===i?void 0:i.type),qe(a)&&null!=a.deprecationReason&&e.reportError("Required input field ".concat(t.name,".").concat(a.name," cannot be deprecated."),[rn(a.astNode),null===(o=a.astNode)||void 0===o?void 0:o.type])}}function Xt(e){var t=e.astNode,n=e.extensionASTNodes;return t?n?[t].concat(n):[t]:null!=n?n:[]}function en(e,t){for(var n=[],r=0,i=Xt(e);r<i.length;r++){var o,a=i[r];n=n.concat(null!==(o=t(a))&&void 0!==o?o:[])}return n}function tn(e,t){return en(e,function(e){return e.interfaces}).filter(function(e){return e.name.value===t.name})}function nn(e,t){return en(e,function(e){return e.types}).filter(function(e){return e.name.value===t})}function rn(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find(function(e){return e.name.value===Rt.name})}var on=n(781);function an(e,t){var n;return t.kind===U.h.LIST_TYPE?(n=an(e,t.type))&&new ge(n):t.kind===U.h.NON_NULL_TYPE?(n=an(e,t.type))&&new ye(n):t.kind===U.h.NAMED_TYPE?e.getType(t.name.value):void(0,L.Z)(0,"Unexpected type node: "+(0,d.Z)(t))}var sn=function(){function e(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=t?t:un,n&&(ae(n)&&this._inputTypeStack.push(n),de(n)&&this._parentTypeStack.push(n),ue(n)&&this._typeStack.push(n))}var t=e.prototype;return t.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case U.h.SELECTION_SET:var n=Ce(this.getType());this._parentTypeStack.push(de(n)?n:void 0);break;case U.h.FIELD:var r,i,o=this.getParentType();o&&(r=this._getFieldDef(t,o,e))&&(i=r.type),this._fieldDefStack.push(r),this._typeStack.push(ue(i)?i:void 0);break;case U.h.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case U.h.OPERATION_DEFINITION:var a;switch(e.operation){case"query":a=t.getQueryType();break;case"mutation":a=t.getMutationType();break;case"subscription":a=t.getSubscriptionType()}this._typeStack.push(H(a)?a:void 0);break;case U.h.INLINE_FRAGMENT:case U.h.FRAGMENT_DEFINITION:var s=e.typeCondition,u=s?an(t,s):Ce(this.getType());this._typeStack.push(ue(u)?u:void 0);break;case U.h.VARIABLE_DEFINITION:var c=an(t,e.type);this._inputTypeStack.push(ae(c)?c:void 0);break;case U.h.ARGUMENT:var p,d,f,h=null!==(p=this.getDirective())&&void 0!==p?p:this.getFieldDef();h&&(d=l(h.args,function(t){return t.name===e.name.value}))&&(f=d.type),this._argument=d,this._defaultValueStack.push(d?d.defaultValue:void 0),this._inputTypeStack.push(ae(f)?f:void 0);break;case U.h.LIST:var m=Ie(this.getInputType()),g=ne(m)?m.ofType:m;this._defaultValueStack.push(void 0),this._inputTypeStack.push(ae(g)?g:void 0);break;case U.h.OBJECT_FIELD:var y,v,b=Ce(this.getInputType());ee(b)&&(v=b.getFields()[e.name.value])&&(y=v.type),this._defaultValueStack.push(v?v.defaultValue:void 0),this._inputTypeStack.push(ae(y)?y:void 0);break;case U.h.ENUM:var E,_=Ce(this.getInputType());J(_)&&(E=_.getValue(e.value)),this._enumValue=E}},t.leave=function(e){switch(e.kind){case U.h.SELECTION_SET:this._parentTypeStack.pop();break;case U.h.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case U.h.DIRECTIVE:this._directive=null;break;case U.h.OPERATION_DEFINITION:case U.h.INLINE_FRAGMENT:case U.h.FRAGMENT_DEFINITION:this._typeStack.pop();break;case U.h.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case U.h.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case U.h.LIST:case U.h.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case U.h.ENUM:this._enumValue=null}},e}();function un(e,t,n){var r=n.name.value;return r===Et.name&&e.getQueryType()===t?Et:r===_t.name&&e.getQueryType()===t?_t:r===It.name&&de(t)?It:H(t)||W(t)?t.getFields()[r]:void 0}function cn(e,t){return{enter:function(n){e.enter(n);var r=(0,c.CK)(t,n.kind,!1);if(r){var i=r.apply(t,arguments);return void 0!==i&&(e.leave(n),(0,on.UG)(i)&&e.enter(i)),i}},leave:function(n){var r,i=(0,c.CK)(t,n.kind,!0);return i&&(r=i.apply(t,arguments)),e.leave(n),r}}}function ln(e){return pn(e)||mn(e)||yn(e)}function pn(e){return e.kind===U.h.OPERATION_DEFINITION||e.kind===U.h.FRAGMENT_DEFINITION}function dn(e){return e.kind===U.h.FIELD||e.kind===U.h.FRAGMENT_SPREAD||e.kind===U.h.INLINE_FRAGMENT}function fn(e){return e.kind===U.h.VARIABLE||e.kind===U.h.INT||e.kind===U.h.FLOAT||e.kind===U.h.STRING||e.kind===U.h.BOOLEAN||e.kind===U.h.NULL||e.kind===U.h.ENUM||e.kind===U.h.LIST||e.kind===U.h.OBJECT}function hn(e){return e.kind===U.h.NAMED_TYPE||e.kind===U.h.LIST_TYPE||e.kind===U.h.NON_NULL_TYPE}function mn(e){return e.kind===U.h.SCHEMA_DEFINITION||gn(e)||e.kind===U.h.DIRECTIVE_DEFINITION}function gn(e){return e.kind===U.h.SCALAR_TYPE_DEFINITION||e.kind===U.h.OBJECT_TYPE_DEFINITION||e.kind===U.h.INTERFACE_TYPE_DEFINITION||e.kind===U.h.UNION_TYPE_DEFINITION||e.kind===U.h.ENUM_TYPE_DEFINITION||e.kind===U.h.INPUT_OBJECT_TYPE_DEFINITION}function yn(e){return e.kind===U.h.SCHEMA_EXTENSION||vn(e)}function vn(e){return e.kind===U.h.SCALAR_TYPE_EXTENSION||e.kind===U.h.OBJECT_TYPE_EXTENSION||e.kind===U.h.INTERFACE_TYPE_EXTENSION||e.kind===U.h.UNION_TYPE_EXTENSION||e.kind===U.h.ENUM_TYPE_EXTENSION||e.kind===U.h.INPUT_OBJECT_TYPE_EXTENSION}function bn(e){return{Document:function(t){for(var n=0,r=t.definitions;n<r.length;n++){var i=r[n];if(!pn(i)){var o=i.kind===U.h.SCHEMA_DEFINITION||i.kind===U.h.SCHEMA_EXTENSION?"schema":'"'+i.name.value+'"';e.reportError(new u.__("The ".concat(o," definition is not executable."),i))}}return!1}}}function En(e){var t=Object.create(null);return{OperationDefinition:function(n){var r=n.name;return r&&(t[r.value]?e.reportError(new u.__('There can be only one operation named "'.concat(r.value,'".'),[t[r.value],r])):t[r.value]=r),!1},FragmentDefinition:function(){return!1}}}function _n(e){var t=0;return{Document:function(e){t=e.definitions.filter(function(e){return e.kind===U.h.OPERATION_DEFINITION}).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new u.__("This anonymous operation must be the only defined operation.",n))}}}function In(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new u.__(t.name?'Subscription "'.concat(t.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",t.selectionSet.selections.slice(1)))}}}function Sn(e){for(var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null),i=0,o=e.getDocument().definitions;i<o.length;i++){var a=o[i];gn(a)&&(r[a.name.value]=!0)}var s=Object.keys(n).concat(Object.keys(r));return{NamedType:function(t,i,o,a,c){var l,p=t.name.value;if(!n[p]&&!r[p]){var d,f=null!==(d=c[2])&&void 0!==d?d:o,h=null!=f&&(l=f,!Array.isArray(l)&&(mn(l)||yn(l)));if(h&&function(e){return-1!==Tn.indexOf(e)}(p))return;var m=F(p,h?Tn.concat(s):s);e.reportError(new u.__('Unknown type "'.concat(p,'".')+C(m),t))}}}}var Tn=[].concat(st,St).map(function(e){return e.name});function Cn(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var r=an(e.getSchema(),n);if(r&&!de(r)){var i=(0,M.S)(n);e.reportError(new u.__('Fragment cannot condition on non composite type "'.concat(i,'".'),n))}}},FragmentDefinition:function(t){var n=an(e.getSchema(),t.typeCondition);if(n&&!de(n)){var r=(0,M.S)(t.typeCondition);e.reportError(new u.__('Fragment "'.concat(t.name.value,'" cannot condition on non composite type "').concat(r,'".'),t.typeCondition))}}}}function wn(e){return{VariableDefinition:function(t){var n=an(e.getSchema(),t.type);if(n&&!ae(n)){var r=t.variable.name.value,i=(0,M.S)(t.type);e.reportError(new u.__('Variable "$'.concat(r,'" cannot be non-input type "').concat(i,'".'),t.type))}}}}function Pn(e){return{Field:function(t){var n=e.getType(),r=t.selectionSet;if(n)if(le(Ce(n))){if(r){var i=t.name.value,o=(0,d.Z)(n);e.reportError(new u.__('Field "'.concat(i,'" must not have a selection since type "').concat(o,'" has no subfields.'),r))}}else if(!r){var a=t.name.value,s=(0,d.Z)(n);e.reportError(new u.__('Field "'.concat(a,'" of type "').concat(s,'" must have a selection of subfields. Did you mean "').concat(a,' { ... }"?'),t))}}}}function Dn(e){return{Field:function(t){var n=e.getParentType();if(n&&!e.getFieldDef()){var r=e.getSchema(),i=t.name.value,o=C("to use an inline fragment on",function(e,t,n){if(!he(t))return[];for(var r=new Set,i=Object.create(null),o=0,a=e.getPossibleTypes(t);o<a.length;o++){var s=a[o];if(s.getFields()[n]){r.add(s),i[s.name]=1;for(var u=0,c=s.getInterfaces();u<c.length;u++){var l,p=c[u];p.getFields()[n]&&(r.add(p),i[p.name]=(null!==(l=i[p.name])&&void 0!==l?l:0)+1)}}}return ze(r).sort(function(t,n){var r=i[n.name]-i[t.name];return 0!==r?r:W(t)&&e.isSubType(t,n)?-1:W(n)&&e.isSubType(n,t)?1:A(t.name,n.name)}).map(function(e){return e.name})}(r,n,i));""===o&&(o=C(function(e,t){return H(e)||W(e)?F(t,Object.keys(e.getFields())):[]}(n,i))),e.reportError(new u.__('Cannot query field "'.concat(i,'" on type "').concat(n.name,'".')+o,t))}}}}function An(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var r=n.name.value;return t[r]?e.reportError(new u.__('There can be only one fragment named "'.concat(r,'".'),[t[r],n.name])):t[r]=n.name,!1}}}function On(e){return{FragmentSpread:function(t){var n=t.name.value;e.getFragment(n)||e.reportError(new u.__('Unknown fragment "'.concat(n,'".'),t.name))}}}function Nn(e){var t=[],n=[];return{OperationDefinition:function(e){return t.push(e),!1},FragmentDefinition:function(e){return n.push(e),!1},Document:{leave:function(){for(var r=Object.create(null),i=0;i<t.length;i++)for(var o=t[i],a=0,s=e.getRecursivelyReferencedFragments(o);a<s.length;a++)r[s[a].name.value]=!0;for(var c=0;c<n.length;c++){var l=n[c],p=l.name.value;!0!==r[p]&&e.reportError(new u.__('Fragment "'.concat(p,'" is never used.'),l))}}}}}function Rn(e){return{InlineFragment:function(t){var n=e.getType(),r=e.getParentType();if(de(n)&&de(r)&&!He(e.getSchema(),n,r)){var i=(0,d.Z)(r),o=(0,d.Z)(n);e.reportError(new u.__('Fragment cannot be spread here as objects of type "'.concat(i,'" can never be of type "').concat(o,'".'),t))}},FragmentSpread:function(t){var n=t.name.value,r=function(e,t){var n=e.getFragment(t);if(n){var r=an(e.getSchema(),n.typeCondition);if(de(r))return r}}(e,n),i=e.getParentType();if(r&&i&&!He(e.getSchema(),r,i)){var o=(0,d.Z)(i),a=(0,d.Z)(r);e.reportError(new u.__('Fragment "'.concat(n,'" cannot be spread here as objects of type "').concat(o,'" can never be of type "').concat(a,'".'),t))}}}}function Fn(e){var t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(e){return i(e),!1}};function i(o){if(!t[o.name.value]){var a=o.name.value;t[a]=!0;var s=e.getFragmentSpreads(o.selectionSet);if(0!==s.length){r[a]=n.length;for(var c=0;c<s.length;c++){var l=s[c],p=l.name.value,d=r[p];if(n.push(l),void 0===d){var f=e.getFragment(p);f&&i(f)}else{var h=n.slice(d),m=h.slice(0,-1).map(function(e){return'"'+e.name.value+'"'}).join(", ");e.reportError(new u.__('Cannot spread fragment "'.concat(p,'" within itself')+(""!==m?" via ".concat(m,"."):"."),h))}n.pop()}r[a]=void 0}}}}function kn(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var r=n.variable.name.value;t[r]?e.reportError(new u.__('There can be only one variable named "$'.concat(r,'".'),[t[r],n.variable.name])):t[r]=n.variable.name}}}function xn(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var r=e.getRecursiveVariableUsages(n),i=0;i<r.length;i++){var o=r[i].node,a=o.name.value;!0!==t[a]&&e.reportError(new u.__(n.name?'Variable "$'.concat(a,'" is not defined by operation "').concat(n.name.value,'".'):'Variable "$'.concat(a,'" is not defined.'),[o,n]))}}},VariableDefinition:function(e){t[e.variable.name.value]=!0}}}function Un(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){for(var r=Object.create(null),i=e.getRecursiveVariableUsages(n),o=0;o<i.length;o++)r[i[o].node.name.value]=!0;for(var a=0,s=t;a<s.length;a++){var c=s[a],l=c.variable.name.value;!0!==r[l]&&e.reportError(new u.__(n.name?'Variable "$'.concat(l,'" is never used in operation "').concat(n.name.value,'".'):'Variable "$'.concat(l,'" is never used.'),c))}}},VariableDefinition:function(e){t.push(e)}}}function Mn(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():kt,i=0;i<r.length;i++){var o=r[i];t[o.name]=o.locations}for(var a=e.getDocument().definitions,s=0;s<a.length;s++){var c=a[s];c.kind===U.h.DIRECTIVE_DEFINITION&&(t[c.name.value]=c.locations.map(function(e){return e.value}))}return{Directive:function(n,r,i,o,a){var s=n.name.value,c=t[s];if(c){var l=function(e){var t=e[e.length-1];switch(!Array.isArray(t)||(0,L.Z)(0),t.kind){case U.h.OPERATION_DEFINITION:return function(e){switch(e){case"query":return We.B.QUERY;case"mutation":return We.B.MUTATION;case"subscription":return We.B.SUBSCRIPTION}(0,L.Z)(0,"Unexpected operation: "+(0,d.Z)(e))}(t.operation);case U.h.FIELD:return We.B.FIELD;case U.h.FRAGMENT_SPREAD:return We.B.FRAGMENT_SPREAD;case U.h.INLINE_FRAGMENT:return We.B.INLINE_FRAGMENT;case U.h.FRAGMENT_DEFINITION:return We.B.FRAGMENT_DEFINITION;case U.h.VARIABLE_DEFINITION:return We.B.VARIABLE_DEFINITION;case U.h.SCHEMA_DEFINITION:case U.h.SCHEMA_EXTENSION:return We.B.SCHEMA;case U.h.SCALAR_TYPE_DEFINITION:case U.h.SCALAR_TYPE_EXTENSION:return We.B.SCALAR;case U.h.OBJECT_TYPE_DEFINITION:case U.h.OBJECT_TYPE_EXTENSION:return We.B.OBJECT;case U.h.FIELD_DEFINITION:return We.B.FIELD_DEFINITION;case U.h.INTERFACE_TYPE_DEFINITION:case U.h.INTERFACE_TYPE_EXTENSION:return We.B.INTERFACE;case U.h.UNION_TYPE_DEFINITION:case U.h.UNION_TYPE_EXTENSION:return We.B.UNION;case U.h.ENUM_TYPE_DEFINITION:case U.h.ENUM_TYPE_EXTENSION:return We.B.ENUM;case U.h.ENUM_VALUE_DEFINITION:return We.B.ENUM_VALUE;case U.h.INPUT_OBJECT_TYPE_DEFINITION:case U.h.INPUT_OBJECT_TYPE_EXTENSION:return We.B.INPUT_OBJECT;case U.h.INPUT_VALUE_DEFINITION:return e[e.length-3].kind===U.h.INPUT_OBJECT_TYPE_DEFINITION?We.B.INPUT_FIELD_DEFINITION:We.B.ARGUMENT_DEFINITION}}(a);l&&-1===c.indexOf(l)&&e.reportError(new u.__('Directive "@'.concat(s,'" may not be used on ').concat(l,"."),n))}else e.reportError(new u.__('Unknown directive "@'.concat(s,'".'),n))}}}function Ln(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():kt,i=0;i<r.length;i++){var o=r[i];t[o.name]=!o.isRepeatable}for(var a=e.getDocument().definitions,s=0;s<a.length;s++){var c=a[s];c.kind===U.h.DIRECTIVE_DEFINITION&&(t[c.name.value]=!c.repeatable)}var l=Object.create(null),p=Object.create(null);return{enter:function(n){if(null!=n.directives){var r;if(n.kind===U.h.SCHEMA_DEFINITION||n.kind===U.h.SCHEMA_EXTENSION)r=l;else if(gn(n)||vn(n)){var i=n.name.value;void 0===(r=p[i])&&(p[i]=r=Object.create(null))}else r=Object.create(null);for(var o=0,a=n.directives;o<a.length;o++){var s=a[o],c=s.name.value;t[c]&&(r[c]?e.reportError(new u.__('The directive "@'.concat(c,'" can only be used once at this location.'),[r[c],s])):r[c]=s)}}}}}function jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jn(Object(n),!0).forEach(function(t){Bn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gn(e){return Vn(Vn({},qn(e)),{},{Argument:function(t){var n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){var o=t.name.value,a=F(o,r.args.map(function(e){return e.name}));e.reportError(new u.__('Unknown argument "'.concat(o,'" on field "').concat(i.name,".").concat(r.name,'".')+C(a),t))}}})}function qn(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():kt,i=0;i<r.length;i++){var o=r[i];t[o.name]=o.args.map(function(e){return e.name})}for(var a=e.getDocument().definitions,s=0;s<a.length;s++){var c=a[s];if(c.kind===U.h.DIRECTIVE_DEFINITION){var l,p=null!==(l=c.arguments)&&void 0!==l?l:[];t[c.name.value]=p.map(function(e){return e.name.value})}}return{Directive:function(n){var r=n.name.value,i=t[r];if(n.arguments&&i)for(var o=0,a=n.arguments;o<a.length;o++){var s=a[o],c=s.name.value;if(-1===i.indexOf(c)){var l=F(c,i);e.reportError(new u.__('Unknown argument "'.concat(c,'" on directive "@').concat(r,'".')+C(l),s))}}return!1}}}function $n(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var r=n.name.value;return t[r]?e.reportError(new u.__('There can be only one argument named "'.concat(r,'".'),[t[r],n.name])):t[r]=n.name,!1}}}function Qn(e){return{ListValue:function(t){if(!ne(Ie(e.getParentInputType())))return Hn(e,t),!1},ObjectValue:function(t){var n=Ce(e.getInputType());if(!ee(n))return Hn(e,t),!1;for(var r=b(t.fields,function(e){return e.name.value}),i=0,o=p(n.getFields());i<o.length;i++){var a=o[i];if(!r[a.name]&&qe(a)){var s=(0,d.Z)(a.type);e.reportError(new u.__('Field "'.concat(n.name,".").concat(a.name,'" of required type "').concat(s,'" was not provided.'),t))}}},ObjectField:function(t){var n=Ce(e.getParentInputType());if(!e.getInputType()&&ee(n)){var r=F(t.name.value,Object.keys(n.getFields()));e.reportError(new u.__('Field "'.concat(t.name.value,'" is not defined by type "').concat(n.name,'".')+C(r),t))}},NullValue:function(t){var n=e.getInputType();ie(n)&&e.reportError(new u.__('Expected value of type "'.concat((0,d.Z)(n),'", found ').concat((0,M.S)(t),"."),t))},EnumValue:function(t){return Hn(e,t)},IntValue:function(t){return Hn(e,t)},FloatValue:function(t){return Hn(e,t)},StringValue:function(t){return Hn(e,t)},BooleanValue:function(t){return Hn(e,t)}}}function Hn(e,t){var n=e.getInputType();if(n){var r=Ce(n);if(le(r))try{if(void 0===r.parseLiteral(t,void 0)){var i=(0,d.Z)(n);e.reportError(new u.__('Expected value of type "'.concat(i,'", found ').concat((0,M.S)(t),"."),t))}}catch(r){var o=(0,d.Z)(n);r instanceof u.__?e.reportError(r):e.reportError(new u.__('Expected value of type "'.concat(o,'", found ').concat((0,M.S)(t),"; ")+r.message,t,void 0,void 0,void 0,r))}else{var a=(0,d.Z)(n);e.reportError(new u.__('Expected value of type "'.concat(a,'", found ').concat((0,M.S)(t),"."),t))}}}function zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zn(Object(n),!0).forEach(function(t){Zn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yn(e){return Wn(Wn({},Kn(e)),{},{Field:{leave:function(t){var n,r=e.getFieldDef();if(!r)return!1;for(var i=b(null!==(n=t.arguments)&&void 0!==n?n:[],function(e){return e.name.value}),o=0,a=r.args;o<a.length;o++){var s=a[o];if(!i[s.name]&&xe(s)){var c=(0,d.Z)(s.type);e.reportError(new u.__('Field "'.concat(r.name,'" argument "').concat(s.name,'" of type "').concat(c,'" is required, but it was not provided.'),t))}}}}})}function Kn(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():kt,i=0;i<r.length;i++){var o=r[i];t[o.name]=b(o.args.filter(xe),function(e){return e.name})}for(var a=e.getDocument().definitions,s=0;s<a.length;s++){var c=a[s];if(c.kind===U.h.DIRECTIVE_DEFINITION){var l,p=null!==(l=c.arguments)&&void 0!==l?l:[];t[c.name.value]=b(p.filter(Jn),function(e){return e.name.value})}}return{Directive:{leave:function(n){var r=n.name.value,i=t[r];if(i)for(var o,a=b(null!==(o=n.arguments)&&void 0!==o?o:[],function(e){return e.name.value}),s=0,c=Object.keys(i);s<c.length;s++){var l=c[s];if(!a[l]){var p=i[l].type,f=G(p)?(0,d.Z)(p):(0,M.S)(p);e.reportError(new u.__('Directive "@'.concat(r,'" argument "').concat(l,'" of type "').concat(f,'" is required, but it was not provided.'),n))}}}}}}function Jn(e){return e.type.kind===U.h.NON_NULL_TYPE&&null==e.defaultValue}function Xn(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var r=e.getRecursiveVariableUsages(n),i=0;i<r.length;i++){var o=r[i],a=o.node,s=o.type,c=o.defaultValue,l=a.name.value,p=t[l];if(p&&s){var f=e.getSchema(),h=an(f,p.type);if(h&&!er(f,h,p.defaultValue,s,c)){var m=(0,d.Z)(h),g=(0,d.Z)(s);e.reportError(new u.__('Variable "$'.concat(l,'" of type "').concat(m,'" used in position expecting type "').concat(g,'".'),[p,a]))}}}}},VariableDefinition:function(e){t[e.variable.name.value]=e}}}function er(e,t,n,r,i){return ie(r)&&!ie(t)?(null!=n&&n.kind!==U.h.NULL||void 0!==i)&&Qe(e,t,r.ofType):Qe(e,t,r)}function tr(e){return Array.isArray(e)?e.map(function(e){var t=e[0],n=e[1];return'subfields "'.concat(t,'" conflict because ')+tr(n)}).join(" and "):e}function nr(e){var t=new pr,n=new Map;return{SelectionSet:function(r){for(var i=function(e,t,n,r,i){var o=[],a=ur(e,t,r,i),s=a[0],u=a[1];if(function(e,t,n,r,i){for(var o=0,a=y(i);o<a.length;o++){var s=a[o],u=s[0],c=s[1];if(c.length>1)for(var l=0;l<c.length;l++)for(var p=l+1;p<c.length;p++){var d=ar(e,n,r,!1,u,c[l],c[p]);d&&t.push(d)}}}(e,o,t,n,s),0!==u.length)for(var c=0;c<u.length;c++){rr(e,o,t,n,!1,s,u[c]);for(var l=c+1;l<u.length;l++)ir(e,o,t,n,!1,u[c],u[l])}return o}(e,n,t,e.getParentType(),r),o=0;o<i.length;o++){var a=i[o],s=a[0],c=s[0],l=s[1],p=a[1],d=a[2],f=tr(l);e.reportError(new u.__('Fields "'.concat(c,'" conflict because ').concat(f,". Use different aliases on the fields to fetch both if this was intentional."),p.concat(d)))}}}}function rr(e,t,n,r,i,o,a){var s=e.getFragment(a);if(s){var u=cr(e,n,s),c=u[0],l=u[1];if(o!==c){or(e,t,n,r,i,o,c);for(var p=0;p<l.length;p++){var d=l[p];r.has(d,a,i)||(r.add(d,a,i),rr(e,t,n,r,i,o,l[p]))}}}}function ir(e,t,n,r,i,o,a){if(o!==a&&!r.has(o,a,i)){r.add(o,a,i);var s=e.getFragment(o),u=e.getFragment(a);if(s&&u){var c=cr(e,n,s),l=c[0],p=c[1],d=cr(e,n,u),f=d[0],h=d[1];or(e,t,n,r,i,l,f);for(var m=0;m<h.length;m++)ir(e,t,n,r,i,o,h[m]);for(var g=0;g<p.length;g++)ir(e,t,n,r,i,p[g],a)}}}function or(e,t,n,r,i,o,a){for(var s=0,u=Object.keys(o);s<u.length;s++){var c=u[s],l=a[c];if(l)for(var p=o[c],d=0;d<p.length;d++)for(var f=0;f<l.length;f++){var h=ar(e,n,r,i,c,p[d],l[f]);h&&t.push(h)}}}function ar(e,t,n,r,i,o,a){var s,u,c=o[0],p=o[1],f=o[2],h=a[0],m=a[1],g=a[2],y=r||c!==h&&H(c)&&H(h);if(!y){var v,b,E=p.name.value,_=m.name.value;if(E!==_)return[[i,'"'.concat(E,'" and "').concat(_,'" are different fields')],[p],[m]];if(s=null!==(v=p.arguments)&&void 0!==v?v:[],u=null!==(b=m.arguments)&&void 0!==b?b:[],s.length!==u.length||!s.every(function(e){var t,n,r=l(u,function(t){return t.name.value===e.name.value});return!!r&&(t=e.value,n=r.value,(0,M.S)(t)===(0,M.S)(n))}))return[[i,"they have differing arguments"],[p],[m]]}var I=null==f?void 0:f.type,S=null==g?void 0:g.type;if(I&&S&&sr(I,S))return[[i,'they return conflicting types "'.concat((0,d.Z)(I),'" and "').concat((0,d.Z)(S),'"')],[p],[m]];var T=p.selectionSet,C=m.selectionSet;if(T&&C){var w=function(e,t,n,r,i,o,a,s){var u=[],c=ur(e,t,i,o),l=c[0],p=c[1],d=ur(e,t,a,s),f=d[0],h=d[1];if(or(e,u,t,n,r,l,f),0!==h.length)for(var m=0;m<h.length;m++)rr(e,u,t,n,r,l,h[m]);if(0!==p.length)for(var g=0;g<p.length;g++)rr(e,u,t,n,r,f,p[g]);for(var y=0;y<p.length;y++)for(var v=0;v<h.length;v++)ir(e,u,t,n,r,p[y],h[v]);return u}(e,t,n,y,Ce(I),T,Ce(S),C);return function(e,t,n,r){if(e.length>0)return[[t,e.map(function(e){return e[0]})],e.reduce(function(e,t){var n=t[1];return e.concat(n)},[n]),e.reduce(function(e,t){var n=t[2];return e.concat(n)},[r])]}(w,i,p,m)}}function sr(e,t){return ne(e)?!ne(t)||sr(e.ofType,t.ofType):!!ne(t)||(ie(e)?!ie(t)||sr(e.ofType,t.ofType):!!ie(t)||!(!le(e)&&!le(t))&&e!==t)}function ur(e,t,n,r){var i=t.get(r);if(!i){var o=Object.create(null),a=Object.create(null);lr(e,n,r,o,a),i=[o,Object.keys(a)],t.set(r,i)}return i}function cr(e,t,n){var r=t.get(n.selectionSet);if(r)return r;var i=an(e.getSchema(),n.typeCondition);return ur(e,t,i,n.selectionSet)}function lr(e,t,n,r,i){for(var o=0,a=n.selections;o<a.length;o++){var s=a[o];switch(s.kind){case U.h.FIELD:var u=s.name.value,c=void 0;(H(t)||W(t))&&(c=t.getFields()[u]);var l=s.alias?s.alias.value:u;r[l]||(r[l]=[]),r[l].push([t,s,c]);break;case U.h.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case U.h.INLINE_FRAGMENT:var p=s.typeCondition,d=p?an(e.getSchema(),p):t;lr(e,d,s.selectionSet,r,i)}}}var pr=function(){function e(){this._data=Object.create(null)}var t=e.prototype;return t.has=function(e,t,n){var r=this._data[e],i=r&&r[t];return void 0!==i&&(!1!==n||!1===i)},t.add=function(e,t,n){this._pairSetAdd(e,t,n),this._pairSetAdd(t,e,n)},t._pairSetAdd=function(e,t,n){var r=this._data[e];r||(r=Object.create(null),this._data[e]=r),r[t]=n},e}();function dr(e){var t=[],n=Object.create(null);return{ObjectValue:{enter:function(){t.push(n),n=Object.create(null)},leave:function(){n=t.pop()}},ObjectField:function(t){var r=t.name.value;n[r]?e.reportError(new u.__('There can be only one input field named "'.concat(r,'".'),[n[r],t.name])):n[r]=t.name}}}var fr,hr=3;function mr(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.create(null),i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n.kind===U.h.FRAGMENT_SPREAD){var o=n.name.value;if(!0===r[o])return!1;var a=e.getFragment(o);if(!a)return!1;try{return r[o]=!0,t(a,r,i)}finally{r[o]=null}}if(n.kind===U.h.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++i>=hr)return!0;if("selectionSet"in n&&n.selectionSet)for(var s=0,u=n.selectionSet.selections;s<u.length;s++)if(t(u[s],r,i))return!0;return!1}return{Field:function(n){if(("__schema"===n.name.value||"__type"===n.name.value)&&t(n))return e.reportError(new u.__("Maximum introspection depth exceeded",[n])),!1}}}function gr(e){var t,n,r,i=e.getSchema(),o=null!==(t=null!==(n=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==n?n:null==i?void 0:i.getMutationType())&&void 0!==t?t:null==i?void 0:i.getSubscriptionType(),a=0;return{SchemaDefinition:function(t){o?e.reportError(new u.__("Cannot define a new schema within a schema extension.",t)):(a>0&&e.reportError(new u.__("Must provide only one schema definition.",t)),++a)}}}function yr(e){var t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){for(var i,o=null!==(i=t.operationTypes)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a],c=s.operation,l=n[c];r[c]?e.reportError(new u.__("Type for ".concat(c," already defined in the schema. It cannot be redefined."),s)):l?e.reportError(new u.__("There can be only one ".concat(c," type in schema."),[l,s])):n[c]=s}return!1}}function vr(e){var t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){var i=r.name.value;if(null==n||!n.getType(i))return t[i]?e.reportError(new u.__('There can be only one type named "'.concat(i,'".'),[t[i],r.name])):t[i]=r.name,!1;e.reportError(new u.__('Type "'.concat(i,'" already exists in the schema. It cannot also be defined in this type definition.'),r.name))}}function br(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i,o=t.name.value;r[o]||(r[o]=Object.create(null));for(var a=null!==(i=t.values)&&void 0!==i?i:[],s=r[o],c=0;c<a.length;c++){var l=a[c],p=l.name.value,d=n[o];J(d)&&d.getValue(p)?e.reportError(new u.__('Enum value "'.concat(o,".").concat(p,'" already exists in the schema. It cannot also be defined in this type extension.'),l.name)):s[p]?e.reportError(new u.__('Enum value "'.concat(o,".").concat(p,'" can only be defined once.'),[s[p],l.name])):s[p]=l.name}return!1}}function Er(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i,o=t.name.value;r[o]||(r[o]=Object.create(null));for(var a=null!==(i=t.fields)&&void 0!==i?i:[],s=r[o],c=0;c<a.length;c++){var l=a[c],p=l.name.value;_r(n[o],p)?e.reportError(new u.__('Field "'.concat(o,".").concat(p,'" already exists in the schema. It cannot also be defined in this type extension.'),l.name)):s[p]?e.reportError(new u.__('Field "'.concat(o,".").concat(p,'" can only be defined once.'),[s[p],l.name])):s[p]=l.name}return!1}}function _r(e,t){return!!(H(e)||W(e)||ee(e))&&null!=e.getFields()[t]}function Ir(e){var t=Object.create(null),n=e.getSchema();return{DirectiveDefinition:function(r){var i=r.name.value;if(null==n||!n.getDirective(i))return t[i]?e.reportError(new u.__('There can be only one directive named "@'.concat(i,'".'),[t[i],r.name])):t[i]=r.name,!1;e.reportError(new u.__('Directive "@'.concat(i,'" already exists in the schema. It cannot be redefined.'),r.name))}}}function Sr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tr(e){for(var t=e.getSchema(),n=Object.create(null),r=0,i=e.getDocument().definitions;r<i.length;r++){var o=i[r];gn(o)&&(n[o.name.value]=o)}return{ScalarTypeExtension:a,ObjectTypeExtension:a,InterfaceTypeExtension:a,UnionTypeExtension:a,EnumTypeExtension:a,InputObjectTypeExtension:a};function a(r){var i,o,a=r.name.value,s=n[a],c=null==t?void 0:t.getType(a);if(s?i=Cr[s.kind]:c&&(i=$(o=c)?U.h.SCALAR_TYPE_EXTENSION:H(o)?U.h.OBJECT_TYPE_EXTENSION:W(o)?U.h.INTERFACE_TYPE_EXTENSION:Y(o)?U.h.UNION_TYPE_EXTENSION:J(o)?U.h.ENUM_TYPE_EXTENSION:ee(o)?U.h.INPUT_OBJECT_TYPE_EXTENSION:void(0,L.Z)(0,"Unexpected type: "+(0,d.Z)(o))),i){if(i!==r.kind){var l=function(e){switch(e){case U.h.SCALAR_TYPE_EXTENSION:return"scalar";case U.h.OBJECT_TYPE_EXTENSION:return"object";case U.h.INTERFACE_TYPE_EXTENSION:return"interface";case U.h.UNION_TYPE_EXTENSION:return"union";case U.h.ENUM_TYPE_EXTENSION:return"enum";case U.h.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}(0,L.Z)(0,"Unexpected kind: "+(0,d.Z)(e))}(r.kind);e.reportError(new u.__("Cannot extend non-".concat(l,' type "').concat(a,'".'),s?[s,r]:r))}}else{var p=Object.keys(n);t&&(p=p.concat(Object.keys(t.getTypeMap())));var f=F(a,p);e.reportError(new u.__('Cannot extend type "'.concat(a,'" because it is not defined.')+C(f),r.name))}}}var Cr=(Sr(fr={},U.h.SCALAR_TYPE_DEFINITION,U.h.SCALAR_TYPE_EXTENSION),Sr(fr,U.h.OBJECT_TYPE_DEFINITION,U.h.OBJECT_TYPE_EXTENSION),Sr(fr,U.h.INTERFACE_TYPE_DEFINITION,U.h.INTERFACE_TYPE_EXTENSION),Sr(fr,U.h.UNION_TYPE_DEFINITION,U.h.UNION_TYPE_EXTENSION),Sr(fr,U.h.ENUM_TYPE_DEFINITION,U.h.ENUM_TYPE_EXTENSION),Sr(fr,U.h.INPUT_OBJECT_TYPE_DEFINITION,U.h.INPUT_OBJECT_TYPE_EXTENSION),fr),wr=Object.freeze([mr]),Pr=Object.freeze([bn,En,_n,In,Sn,Cn,wn,Pn,Dn,An,On,Nn,Rn,Fn,kn,xn,Un,Mn,Ln,Gn,$n,Qn,Yn,Xn,nr,dr].concat(wr)),Dr=Object.freeze([gr,yr,vr,br,Er,Ir,Sn,Mn,Ln,Tr,qn,$n,dr,Kn]);function Ar(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Or=function(){function e(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}var t=e.prototype;return t.reportError=function(e){this._onError(e)},t.getDocument=function(){return this._ast},t.getFragment=function(e){var t=this._fragments;return t||(this._fragments=t=this.getDocument().definitions.reduce(function(e,t){return t.kind===U.h.FRAGMENT_DEFINITION&&(e[t.name.value]=t),e},Object.create(null))),t[e]},t.getFragmentSpreads=function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var n=[e];0!==n.length;)for(var r=0,i=n.pop().selections;r<i.length;r++){var o=i[r];o.kind===U.h.FRAGMENT_SPREAD?t.push(o):o.selectionSet&&n.push(o.selectionSet)}this._fragmentSpreads.set(e,t)}return t},t.getRecursivelyReferencedFragments=function(e){var t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];for(var n=Object.create(null),r=[e.selectionSet];0!==r.length;)for(var i=r.pop(),o=0,a=this.getFragmentSpreads(i);o<a.length;o++){var s=a[o].name.value;if(!0!==n[s]){n[s]=!0;var u=this.getFragment(s);u&&(t.push(u),r.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t},e}(),Nr=function(e){function t(t,n,r){var i;return(i=e.call(this,t,r)||this)._schema=n,i}return Ar(t,e),t.prototype.getSchema=function(){return this._schema},t}(Or),Rr=function(e){function t(t,n,r,i){var o;return(o=e.call(this,n,i)||this)._schema=t,o._typeInfo=r,o._variableUsages=new Map,o._recursiveVariableUsages=new Map,o}Ar(t,e);var n=t.prototype;return n.getSchema=function(){return this._schema},n.getVariableUsages=function(e){var t=this._variableUsages.get(e);if(!t){var n=[],r=new sn(this._schema);(0,c.Vn)(e,cn(r,{VariableDefinition:function(){return!1},Variable:function(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t},n.getRecursiveVariableUsages=function(e){var t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(var n=0,r=this.getRecursivelyReferencedFragments(e);n<r.length;n++){var i=r[n];t=t.concat(this.getVariableUsages(i))}this._recursiveVariableUsages.set(e,t)}return t},n.getType=function(){return this._typeInfo.getType()},n.getParentType=function(){return this._typeInfo.getParentType()},n.getInputType=function(){return this._typeInfo.getInputType()},n.getParentInputType=function(){return this._typeInfo.getParentInputType()},n.getFieldDef=function(){return this._typeInfo.getFieldDef()},n.getDirective=function(){return this._typeInfo.getDirective()},n.getArgument=function(){return this._typeInfo.getArgument()},n.getEnumValue=function(){return this._typeInfo.getEnumValue()},t}(Or);function Fr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pr,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new sn(e),i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{maxErrors:void 0};t||(0,s.Z)(0,"Must provide document."),Gt(e);var o=Object.freeze({}),a=[],l=new Rr(e,t,r,function(e){if(null!=i.maxErrors&&a.length>=i.maxErrors)throw a.push(new u.__("Too many validation errors, error limit reached. Validation aborted.")),o;a.push(e)}),p=(0,c.j1)(n.map(function(e){return e(l)}));try{(0,c.Vn)(t,cn(r,p))}catch(e){if(e!==o)throw e}return a}function kr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dr,r=[],i=new Nr(e,t,function(e){r.push(e)}),o=n.map(function(e){return e(i)});return(0,c.Vn)(e,(0,c.j1)(o)),r}function xr(e){var t=Object.keys(e),n=t.map(function(t){return e[t]});return Promise.all(n).then(function(e){return e.reduce(function(e,n,r){return e[t[r]]=n,e},Object.create(null))})}function Ur(e,t,n){return{prev:e,key:t,typename:n}}function Mr(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}function Lr(e,t){if("query"===t.operation){var n=e.getQueryType();if(!n)throw new u.__("Schema does not define the required query root type.",t);return n}if("mutation"===t.operation){var r=e.getMutationType();if(!r)throw new u.__("Schema is not configured for mutations.",t);return r}if("subscription"===t.operation){var i=e.getSubscriptionType();if(!i)throw new u.__("Schema is not configured for subscriptions.",t);return i}throw new u.__("Can only have query, mutation and subscription operations.",t)}function jr(e){return e.map(function(e){return"number"==typeof e?"["+e.toString()+"]":"."+e}).join("")}function Vr(e,t,n){if(e){if(e.kind===U.h.VARIABLE){var r=e.name.value;if(null==n||void 0===n[r])return;var i=n[r];if(null===i&&ie(t))return;return i}if(ie(t)){if(e.kind===U.h.NULL)return;return Vr(e,t.ofType,n)}if(e.kind===U.h.NULL)return null;if(ne(t)){var o=t.ofType;if(e.kind===U.h.LIST){for(var a=[],s=0,u=e.values;s<u.length;s++){var c=u[s];if(Br(c,n)){if(ie(o))return;a.push(null)}else{var l=Vr(c,o,n);if(void 0===l)return;a.push(l)}}return a}var f=Vr(e,o,n);if(void 0===f)return;return[f]}if(ee(t)){if(e.kind!==U.h.OBJECT)return;for(var h=Object.create(null),m=b(e.fields,function(e){return e.name.value}),g=0,y=p(t.getFields());g<y.length;g++){var v=y[g],E=m[v.name];if(E&&!Br(E.value,n)){var _=Vr(E.value,v.type,n);if(void 0===_)return;h[v.name]=_}else if(void 0!==v.defaultValue)h[v.name]=v.defaultValue;else if(ie(v.type))return}return h}if(le(t)){var I;try{I=t.parseLiteral(e,n)}catch(e){return}if(void 0===I)return;return I}(0,L.Z)(0,"Unexpected input type: "+(0,d.Z)(t))}}function Br(e,t){return e.kind===U.h.VARIABLE&&(null==t||void 0===t[e.name.value])}function Gr(e,t){return $r(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:qr)}function qr(e,t,n){var r="Invalid value "+(0,d.Z)(t);throw e.length>0&&(r+=' at "value'.concat(jr(e),'"')),n.message=r+": "+n.message,n}function $r(e,t,n,r){if(ie(t))return null!=e?$r(e,t.ofType,n,r):void n(Mr(r),e,new u.__('Expected non-nullable type "'.concat((0,d.Z)(t),'" not to be null.')));if(null==e)return null;if(ne(t)){var i=t.ofType,o=Ke(e,function(e,t){var o=Ur(r,t,void 0);return $r(e,i,n,o)});return null!=o?o:[$r(e,i,n,r)]}if(ee(t)){if(!(0,w.Z)(e))return void n(Mr(r),e,new u.__('Expected type "'.concat(t.name,'" to be an object.')));for(var a={},s=t.getFields(),c=0,l=p(s);c<l.length;c++){var f=l[c],h=e[f.name];if(void 0!==h)a[f.name]=$r(h,f.type,n,Ur(r,f.name,t.name));else if(void 0!==f.defaultValue)a[f.name]=f.defaultValue;else if(ie(f.type)){var m=(0,d.Z)(f.type);n(Mr(r),e,new u.__('Field "'.concat(f.name,'" of required type "').concat(m,'" was not provided.')))}}for(var g=0,y=Object.keys(e);g<y.length;g++){var v=y[g];if(!s[v]){var b=F(v,Object.keys(t.getFields()));n(Mr(r),e,new u.__('Field "'.concat(v,'" is not defined by type "').concat(t.name,'".')+C(b)))}}return a}if(le(t)){var E;try{E=t.parseValue(e)}catch(i){return void(i instanceof u.__?n(Mr(r),e,i):n(Mr(r),e,new u.__('Expected type "'.concat(t.name,'". ')+i.message,void 0,void 0,void 0,void 0,i)))}return void 0===E&&n(Mr(r),e,new u.__('Expected type "'.concat(t.name,'".'))),E}(0,L.Z)(0,"Unexpected input type: "+(0,d.Z)(t))}function Qr(e,t,n){for(var r,i={},o=b(null!==(r=t.arguments)&&void 0!==r?r:[],function(e){return e.name.value}),a=0,s=e.args;a<s.length;a++){var c=s[a],l=c.name,p=c.type,f=o[l];if(f){var h=f.value,m=h.kind===U.h.NULL;if(h.kind===U.h.VARIABLE){var g=h.name.value;if(null==n||!zr(n,g)){if(void 0!==c.defaultValue)i[l]=c.defaultValue;else if(ie(p))throw new u.__('Argument "'.concat(l,'" of required type "').concat((0,d.Z)(p),'" ')+'was provided the variable "$'.concat(g,'" which was not provided a runtime value.'),h);continue}m=null==n[g]}if(m&&ie(p))throw new u.__('Argument "'.concat(l,'" of non-null type "').concat((0,d.Z)(p),'" ')+"must not be null.",h);var y=Vr(h,p,n);if(void 0===y)throw new u.__('Argument "'.concat(l,'" has invalid value ').concat((0,M.S)(h),"."),h);i[l]=y}else if(void 0!==c.defaultValue)i[l]=c.defaultValue;else if(ie(p))throw new u.__('Argument "'.concat(l,'" of required type "').concat((0,d.Z)(p),'" ')+"was not provided.",t)}return i}function Hr(e,t,n){var r=t.directives&&l(t.directives,function(t){return t.name.value===e.name});if(r)return Qr(e,r,n)}function zr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Wr(e,t,n,r,i,o,a,s){return Yr(1===arguments.length?e:{schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,typeResolver:s})}function Zr(e){var t=Yr(e);if(o(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Yr(e){var t=e.schema,n=e.document,r=e.rootValue,i=e.contextValue,a=e.variableValues,s=e.operationName,u=e.fieldResolver,c=e.typeResolver;Jr(t,n,a);var l=Xr(t,n,r,i,a,s,u,c);if(Array.isArray(l))return{errors:l};var p=function(e,t,n){var r=Lr(e.schema,t),i=ti(e,r,t.selectionSet,Object.create(null),Object.create(null)),a=void 0;try{var s="mutation"===t.operation?function(e,t,n,r,i){return a=Object.keys(i),s=function(a,s){var u=i[s],c=Ur(r,s,t.name),l=oi(e,t,n,u,c);return void 0===l?a:o(l)?l.then(function(e){return a[s]=e,a}):(a[s]=l,a)},u=Object.create(null),a.reduce(function(e,t){return o(e)?e.then(function(e){return s(e,t)}):s(e,t)},u);var a,s,u}(e,r,n,a,i):ei(e,r,n,a,i);return o(s)?s.then(void 0,function(t){return e.errors.push(t),Promise.resolve(null)}):s}catch(t){return e.errors.push(t),null}}(l,l.operation,r);return Kr(l,p)}function Kr(e,t){return o(t)?t.then(function(t){return Kr(e,t)}):0===e.errors.length?{data:t}:{errors:e.errors,data:t}}function Jr(e,t,n){t||(0,s.Z)(0,"Must provide document."),Gt(e),null==n||(0,w.Z)(n)||(0,s.Z)(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function Xr(e,t,n,r,i,o,a,s){for(var c,l,p,f=Object.create(null),h=0,m=t.definitions;h<m.length;h++){var g=m[h];switch(g.kind){case U.h.OPERATION_DEFINITION:if(null==o){if(void 0!==p)return[new u.__("Must provide operation name if query contains multiple operations.")];p=g}else(null===(c=g.name)||void 0===c?void 0:c.value)===o&&(p=g);break;case U.h.FRAGMENT_DEFINITION:f[g.name.value]=g}}if(!p)return null!=o?[new u.__('Unknown operation named "'.concat(o,'".'))]:[new u.__("Must provide an operation.")];var y=function(e,t,n,r){var i=[],o=null==r?void 0:r.maxErrors;try{var a=function(e,t,n,r){for(var i={},o=function(o){var a=t[o],s=a.variable.name.value,c=an(e,a.type);if(!ae(c)){var l=(0,M.S)(a.type);return r(new u.__('Variable "$'.concat(s,'" expected value of type "').concat(l,'" which cannot be used as an input type.'),a.type)),"continue"}if(!zr(n,s)){if(a.defaultValue)i[s]=Vr(a.defaultValue,c);else if(ie(c)){var p=(0,d.Z)(c);r(new u.__('Variable "$'.concat(s,'" of required type "').concat(p,'" was not provided.'),a))}return"continue"}var f=n[s];if(null===f&&ie(c)){var h=(0,d.Z)(c);return r(new u.__('Variable "$'.concat(s,'" of non-null type "').concat(h,'" must not be null.'),a)),"continue"}i[s]=Gr(f,c,function(e,t,n){var i='Variable "$'.concat(s,'" got invalid value ')+(0,d.Z)(t);e.length>0&&(i+=' at "'.concat(s).concat(jr(e),'"')),r(new u.__(i+"; "+n.message,a,void 0,void 0,void 0,n.originalError))})},a=0;a<t.length;a++)o(a);return i}(e,t,n,function(e){if(null!=o&&i.length>=o)throw new u.__("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)});if(0===i.length)return{coerced:a}}catch(e){i.push(e)}return{errors:i}}(e,null!==(l=p.variableDefinitions)&&void 0!==l?l:[],null!=i?i:{},{maxErrors:50});return y.errors?y.errors:{schema:e,fragments:f,rootValue:n,contextValue:r,operation:p,variableValues:y.coerced,fieldResolver:null!=a?a:yi,typeResolver:null!=s?s:gi,errors:[]}}function ei(e,t,n,r,i){var a=Object.create(null),s=!1;try{for(var u=0,c=Object.keys(i);u<c.length;u++){var l=c[u],p=oi(e,t,n,i[l],Ur(r,l,t.name));void 0!==p&&(a[l]=p,o(p)&&(s=!0))}}catch(e){if(s)return xr(a).finally(function(){throw e});throw e}return s?xr(a):a}function ti(e,t,n,r,i){for(var o=0,a=n.selections;o<a.length;o++){var s=a[o];switch(s.kind){case U.h.FIELD:if(!ni(e,s))continue;var u=ii(s);r[u]||(r[u]=[]),r[u].push(s);break;case U.h.INLINE_FRAGMENT:if(!ni(e,s)||!ri(e,s,t))continue;ti(e,t,s.selectionSet,r,i);break;case U.h.FRAGMENT_SPREAD:var c=s.name.value;if(i[c]||!ni(e,s))continue;i[c]=!0;var l=e.fragments[c];if(!l||!ri(e,l,t))continue;ti(e,t,l.selectionSet,r,i)}}return r}function ni(e,t){var n=Hr(Ot,t,e.variableValues);if(!0===(null==n?void 0:n.if))return!1;var r=Hr(At,t,e.variableValues);return!1!==(null==r?void 0:r.if)}function ri(e,t,n){var r=t.typeCondition;if(!r)return!0;var i=an(e.schema,r);return i===n||!!he(i)&&e.schema.isSubType(i,n)}function ii(e){return e.alias?e.alias.value:e.name.value}function oi(e,t,n,r,i){var a,s=r[0].name.value,u=vi(e.schema,t,s);if(u){var c=u.type,l=null!==(a=u.resolve)&&void 0!==a?a:e.fieldResolver,p=ai(e,u,r,t,i);try{var d,h=l(n,Qr(u,r[0],e.variableValues),e.contextValue,p);return d=o(h)?h.then(function(t){return ui(e,c,r,p,i,t)}):ui(e,c,r,p,i,h),o(d)?d.then(void 0,function(t){return si(f(t,r,Mr(i)),c,e)}):d}catch(t){return si(f(t,r,Mr(i)),c,e)}}}function ai(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function si(e,t,n){if(ie(t))throw e;return n.errors.push(e),null}function ui(e,t,n,r,i,a){if(a instanceof Error)throw a;if(ie(t)){var s=ui(e,t.ofType,n,r,i,a);if(null===s)throw new Error("Cannot return null for non-nullable field ".concat(r.parentType.name,".").concat(r.fieldName,"."));return s}return null==a?null:ne(t)?function(e,t,n,r,i,a){var s=t.ofType,c=!1,l=Ke(a,function(t,a){var u=Ur(i,a,void 0);try{var l;return l=o(t)?t.then(function(t){return ui(e,s,n,r,u,t)}):ui(e,s,n,r,u,t),o(l)?(c=!0,l.then(void 0,function(t){return si(f(t,n,Mr(u)),s,e)})):l}catch(t){return si(f(t,n,Mr(u)),s,e)}});if(null==l)throw new u.__('Expected Iterable, but did not find one for field "'.concat(r.parentType.name,".").concat(r.fieldName,'".'));return c?Promise.all(l):l}(e,t,n,r,i,a):le(t)?function(e,t){var n=e.serialize(t);if(void 0===n)throw new Error('Expected a value of type "'.concat((0,d.Z)(e),'" but ')+"received: ".concat((0,d.Z)(t)));return n}(t,a):he(t)?function(e,t,n,r,i,a){var s,u=null!==(s=t.resolveType)&&void 0!==s?s:e.typeResolver,c=e.contextValue,l=u(a,c,r,t);return o(l)?l.then(function(o){return li(e,ci(o,e,t,n,r,a),n,r,i,a)}):li(e,ci(l,e,t,n,r,a),n,r,i,a)}(e,t,n,r,i,a):H(t)?li(e,t,n,r,i,a):void(0,L.Z)(0,"Cannot complete value of unexpected output type: "+(0,d.Z)(t))}function ci(e,t,n,r,i,o){if(null==e)throw new u.__('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'". Either the "').concat(n.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),r);var a=Se(e)?e.name:e;if("string"!=typeof a)throw new u.__('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'" with ')+"value ".concat((0,d.Z)(o),', received "').concat((0,d.Z)(e),'".'));var s=t.schema.getType(a);if(null==s)throw new u.__('Abstract type "'.concat(n.name,'" was resolve to a type "').concat(a,'" that does not exist inside schema.'),r);if(!H(s))throw new u.__('Abstract type "'.concat(n.name,'" was resolve to a non-object type "').concat(a,'".'),r);if(!t.schema.isSubType(n,s))throw new u.__('Runtime Object type "'.concat(s.name,'" is not a possible type for "').concat(n.name,'".'),r);return s}function li(e,t,n,r,i,a){if(t.isTypeOf){var s=t.isTypeOf(a,e.contextValue,r);if(o(s))return s.then(function(r){if(!r)throw pi(t,a,n);return di(e,t,n,i,a)});if(!s)throw pi(t,a,n)}return di(e,t,n,i,a)}function pi(e,t,n){return new u.__('Expected value of type "'.concat(e.name,'" but got: ').concat((0,d.Z)(t),"."),n)}function di(e,t,n,r,i){return ei(e,t,i,r,mi(e,t,n))}var fi,hi,mi=(fi=function(e,t,n){for(var r=Object.create(null),i=Object.create(null),o=0;o<n.length;o++){var a=n[o];a.selectionSet&&(r=ti(e,t,a.selectionSet,r,i))}return r},function(e,t,n){hi||(hi=new WeakMap);var r,i=hi.get(e);if(i){if(r=i.get(t)){var o=r.get(n);if(void 0!==o)return o}}else i=new WeakMap,hi.set(e,i);r||(r=new WeakMap,i.set(t,r));var a=fi(e,t,n);return r.set(n,a),a}),gi=function(e,t,n,r){if((0,w.Z)(e)&&"string"==typeof e.__typename)return e.__typename;for(var i=n.schema.getPossibleTypes(r),a=[],s=0;s<i.length;s++){var u=i[s];if(u.isTypeOf){var c=u.isTypeOf(e,t,n);if(o(c))a[s]=c;else if(c)return u.name}}return a.length?Promise.all(a).then(function(e){for(var t=0;t<e.length;t++)if(e[t])return i[t].name}):void 0},yi=function(e,t,n,r){if((0,w.Z)(e)||"function"==typeof e){var i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function vi(e,t,n){return n===Et.name&&e.getQueryType()===t?Et:n===_t.name&&e.getQueryType()===t?_t:n===It.name?It:t.getFields()[n]}function bi(e,t,n,r,i,o,a,s){var u=arguments;return new Promise(function(c){return c(_i(1===u.length?e:{schema:e,source:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,typeResolver:s}))})}function Ei(e,t,n,r,i,a,s,u){var c=_i(1===arguments.length?e:{schema:e,source:t,rootValue:n,contextValue:r,variableValues:i,operationName:a,fieldResolver:s,typeResolver:u});if(o(c))throw new Error("GraphQL execution failed to complete synchronously.");return c}function _i(e){var t,n=e.schema,r=e.source,i=e.rootValue,o=e.contextValue,s=e.variableValues,u=e.operationName,c=e.fieldResolver,l=e.typeResolver,p=Bt(n);if(p.length>0)return{errors:p};try{t=(0,a.Qc)(r)}catch(e){return{errors:[e]}}var d=Fr(n,t);return d.length>0?{errors:d}:Wr({schema:n,document:t,rootValue:i,contextValue:o,variableValues:s,operationName:u,fieldResolver:c,typeResolver:l})}var Ii=n(4957),Si=n(4293),Ti=n(6242),Ci=n(2027),wi=n(7956);function Pi(e){return"function"==typeof(null==e?void 0:e[v.PA])}function Di(e,t){return new Promise(function(n){return n(t(e))})}function Ai(e){return{value:e,done:!1}}function Oi(e,t,n,r,i,o,a,s){return function(e){var t=e.schema,n=e.document,r=e.rootValue,i=e.contextValue,o=e.variableValues,a=e.operationName,s=e.fieldResolver,u=e.subscribeFieldResolver,c=Ri(t,n,r,i,o,a,u),l=function(e){return Wr({schema:t,document:n,rootValue:e,contextValue:i,variableValues:o,operationName:a,fieldResolver:s})};return c.then(function(e){return Pi(e)?function(e,t,n){var r,i,o,a,s,u,c=e[v.PA].call(e);function l(e){return e.done?e:Di(e.value,t).then(Ai,i)}if("function"==typeof c.return&&(r=c.return,i=function(e){var t=function(){return Promise.reject(e)};return r.call(c).then(t,t)}),n){var p=n;o=function(e){return Di(e,p).then(Ai,i)}}return a={next:function(){return c.next().then(l,o)},return:function(){return r?r.call(c).then(l,o):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"==typeof c.throw?c.throw(e).then(l,o):Promise.reject(e).catch(i)}},u=function(){return this},(s=v.PA)in a?Object.defineProperty(a,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[s]=u,a}(e,l,Ni):e})}(1===arguments.length?e:{schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,subscribeFieldResolver:s})}function Ni(e){if(e instanceof u.__)return{errors:[e]};throw e}function Ri(e,t,n,r,i,o,a){return Jr(e,t,i),new Promise(function(s){var c=Xr(e,t,n,r,i,o,a);s(Array.isArray(c)?{errors:c}:function(e){var t=e.schema,n=e.operation,r=e.variableValues,i=e.rootValue,o=Lr(t,n),a=ti(e,o,n.selectionSet,Object.create(null),Object.create(null)),s=Object.keys(a)[0],c=a[s],l=c[0].name.value,p=vi(t,o,l);if(!p)throw new u.__('The subscription field "'.concat(l,'" is not defined.'),c);var h=Ur(void 0,s,o.name),m=ai(e,p,c,o,h);return new Promise(function(t){var n,o=Qr(p,c[0],r),a=e.contextValue;t((null!==(n=p.subscribe)&&void 0!==n?n:e.fieldResolver)(i,o,a,m))}).then(function(e){if(e instanceof Error)throw f(e,c,Mr(h));if(!Pi(e))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat((0,d.Z)(e),"."));return e},function(e){throw f(e,c,Mr(h))})}(c))}).catch(Ni)}function Fi(e){return{Field:function(t){var n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){var i=e.getParentType();null!=i||(0,L.Z)(0),e.reportError(new u.__("The field ".concat(i.name,".").concat(n.name," is deprecated. ").concat(r),t))}},Argument:function(t){var n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){var i=e.getDirective();if(null!=i)e.reportError(new u.__('Directive "@'.concat(i.name,'" argument "').concat(n.name,'" is deprecated. ').concat(r),t));else{var o=e.getParentType(),a=e.getFieldDef();null!=o&&null!=a||(0,L.Z)(0),e.reportError(new u.__('Field "'.concat(o.name,".").concat(a.name,'" argument "').concat(n.name,'" is deprecated. ').concat(r),t))}}},ObjectField:function(t){var n=Ce(e.getParentInputType());if(ee(n)){var r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new u.__("The input field ".concat(n.name,".").concat(r.name," is deprecated. ").concat(i),t))}},EnumValue:function(t){var n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){var i=Ce(e.getInputType());null!=i||(0,L.Z)(0),e.reportError(new u.__('The enum value "'.concat(i.name,".").concat(n.name,'" is deprecated. ').concat(r),t))}}}}function ki(e){return{Field:function(t){var n=Ce(e.getType());n&&Tt(n)&&e.reportError(new u.__('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(t.name.value,'".'),t))}}}var xi=n(650);function Ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Li(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ui(Object(n),!0).forEach(function(t){Mi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ui(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1},e),n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByUrl":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}return"\n query IntrospectionQuery {\n __schema {\n ".concat(o,"\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ").concat(n,"\n ").concat(i,"\n locations\n args").concat(a("(includeDeprecated: true)")," {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(n,"\n ").concat(r,"\n fields(includeDeprecated: true) {\n name\n ").concat(n,"\n args").concat(a("(includeDeprecated: true)")," {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields").concat(a("(includeDeprecated: true)")," {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(n,"\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(n,"\n type { ...TypeRef }\n defaultValue\n ").concat(a("isDeprecated"),"\n ").concat(a("deprecationReason"),"\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n ")}function ji(e,t){for(var n=null,r=0,i=e.definitions;r<i.length;r++){var o,a=i[r];if(a.kind===U.h.OPERATION_DEFINITION)if(null==t){if(n)return null;n=a}else if((null===(o=a.name)||void 0===o?void 0:o.value)===t)return a}return n}function Vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gi(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vi(Object(n),!0).forEach(function(t){Bi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},t),r=Zr({schema:e,document:(0,a.Qc)(Li(n))});return!r.errors&&r.data||(0,L.Z)(0),r.data}function qi(e,t){(0,w.Z)(e)&&(0,w.Z)(e.__schema)||(0,s.Z)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat((0,d.Z)(e),"."));for(var n=e.__schema,r=I(n.types,function(e){return e.name},function(e){return function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case vt.SCALAR:return new De({name:(r=e).name,description:r.description,specifiedByUrl:r.specifiedByUrl});case vt.OBJECT:return new Ae({name:(n=e).name,description:n.description,interfaces:function(){return b(n)},fields:function(){return E(n)}});case vt.INTERFACE:return new Ue({name:(t=e).name,description:t.description,interfaces:function(){return b(t)},fields:function(){return E(t)}});case vt.UNION:return function(e){if(!e.possibleTypes){var t=(0,d.Z)(e);throw new Error("Introspection result missing possibleTypes: ".concat(t,"."))}return new Me({name:e.name,description:e.description,types:function(){return e.possibleTypes.map(y)}})}(e);case vt.ENUM:return function(e){if(!e.enumValues){var t=(0,d.Z)(e);throw new Error("Introspection result missing enumValues: ".concat(t,"."))}return new je({name:e.name,description:e.description,values:I(e.enumValues,function(e){return e.name},function(e){return{description:e.description,deprecationReason:e.deprecationReason}})})}(e);case vt.INPUT_OBJECT:return function(e){if(!e.inputFields){var t=(0,d.Z)(e);throw new Error("Introspection result missing inputFields: ".concat(t,"."))}return new Be({name:e.name,description:e.description,fields:function(){return S(e.inputFields)}})}(e)}var t,n,r,i=(0,d.Z)(e);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(i,"."))}(e)}),i=0,o=[].concat(st,St);i<o.length;i++){var u=o[i];r[u.name]&&(r[u.name]=u)}var c=n.queryType?y(n.queryType):null,l=n.mutationType?y(n.mutationType):null,f=n.subscriptionType?y(n.subscriptionType):null,h=n.directives?n.directives.map(function(e){if(!e.args){var t=(0,d.Z)(e);throw new Error("Introspection result missing directive args: ".concat(t,"."))}if(!e.locations){var n=(0,d.Z)(e);throw new Error("Introspection result missing directive locations: ".concat(n,"."))}return new Dt({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:S(e.args)})}):[];return new jt({description:n.description,query:c,mutation:l,subscription:f,types:p(r),directives:h,assumeValid:null==t?void 0:t.assumeValid});function m(e){if(e.kind===vt.LIST){var t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new ge(m(t))}if(e.kind===vt.NON_NULL){var n=e.ofType;if(!n)throw new Error("Decorated type deeper than introspection query.");return new ye(_e(m(n)))}return g(e)}function g(e){var t=e.name;if(!t)throw new Error("Unknown type reference: ".concat((0,d.Z)(e),"."));var n=r[t];if(!n)throw new Error("Invalid or incomplete schema, unknown type: ".concat(t,". Ensure that a full introspection query is used in order to build a client schema."));return n}function y(e){return z(g(e))}function v(e){return Z(g(e))}function b(e){if(null===e.interfaces&&e.kind===vt.INTERFACE)return[];if(!e.interfaces){var t=(0,d.Z)(e);throw new Error("Introspection result missing interfaces: ".concat(t,"."))}return e.interfaces.map(v)}function E(e){if(!e.fields)throw new Error("Introspection result missing fields: ".concat((0,d.Z)(e),"."));return I(e.fields,function(e){return e.name},_)}function _(e){var t=m(e.type);if(!ue(t)){var n=(0,d.Z)(t);throw new Error("Introspection must provide output type for fields, but received: ".concat(n,"."))}if(!e.args){var r=(0,d.Z)(e);throw new Error("Introspection result missing field args: ".concat(r,"."))}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:S(e.args)}}function S(e){return I(e,function(e){return e.name},T)}function T(e){var t=m(e.type);if(!ae(t)){var n=(0,d.Z)(t);throw new Error("Introspection must provide input type for arguments, but received: ".concat(n,"."))}var r=null!=e.defaultValue?Vr((0,a.H2)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:r,deprecationReason:e.deprecationReason}}}var $i=n(5717);function Qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qi(Object(n),!0).forEach(function(t){zi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wi(e,t,n){Lt(e),null!=t&&t.kind===U.h.DOCUMENT||(0,s.Z)(0,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&function(e,t){var n=kr(e,t);if(0!==n.length)throw new Error(n.map(function(e){return e.message}).join("\n\n"))}(t,e);var r=e.toConfig(),i=Zi(r,t,n);return r===i?e:new jt(i)}function Zi(e,t,n){for(var r,i,o,a,s,u=[],c=Object.create(null),l=[],f=[],h=0,m=t.definitions;h<m.length;h++){var g=m[h];if(g.kind===U.h.SCHEMA_DEFINITION)s=g;else if(g.kind===U.h.SCHEMA_EXTENSION)f.push(g);else if(gn(g))u.push(g);else if(vn(g)){var y=g.name.value,v=c[y];c[y]=v?v.concat([g]):[g]}else g.kind===U.h.DIRECTIVE_DEFINITION&&l.push(g)}if(0===Object.keys(c).length&&0===u.length&&0===l.length&&0===f.length&&null==s)return e;for(var b=Object.create(null),_=0,I=e.types;_<I.length;_++){var S=I[_];b[S.name]=N(S)}for(var T=0;T<u.length;T++){var C,w=u[T],P=w.name.value;b[P]=null!==(C=Yi[P])&&void 0!==C?C:z(w)}var D=Hi(Hi({query:e.query&&O(e.query),mutation:e.mutation&&O(e.mutation),subscription:e.subscription&&O(e.subscription)},s&&k([s])),k(f));return Hi(Hi({description:null===(r=s)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value},D),{},{types:p(b),directives:[].concat(e.directives.map(function(e){var t=e.toConfig();return new Dt(Hi(Hi({},t),{},{args:E(t.args,F)}))}),l.map(function(e){var t=e.locations.map(function(e){return e.value});return new Dt({name:e.name.value,description:Xi(e,n),locations:t,isRepeatable:e.repeatable,args:V(e.arguments),astNode:e})})),extensions:void 0,astNode:null!==(o=s)&&void 0!==o?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:null!==(a=null==n?void 0:n.assumeValid)&&void 0!==a&&a});function A(e){return ne(e)?new ge(A(e.ofType)):ie(e)?new ye(A(e.ofType)):O(e)}function O(e){return b[e.name]}function N(e){return Tt(e)||ut(e)?e:$(e)?function(e){for(var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[],i=n.specifiedByUrl,o=0;o<r.length;o++){var a;i=null!==(a=Ji(r[o]))&&void 0!==a?a:i}return new De(Hi(Hi({},n),{},{specifiedByUrl:i,extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):H(e)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Ae(Hi(Hi({},n),{},{interfaces:function(){return[].concat(e.getInterfaces().map(O),q(r))},fields:function(){return Hi(Hi({},E(n.fields,R)),j(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):W(e)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Ue(Hi(Hi({},n),{},{interfaces:function(){return[].concat(e.getInterfaces().map(O),q(r))},fields:function(){return Hi(Hi({},E(n.fields,R)),j(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):Y(e)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Me(Hi(Hi({},n),{},{types:function(){return[].concat(e.getTypes().map(O),Q(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):J(e)?function(e){var t,n=e.toConfig(),r=null!==(t=c[e.name])&&void 0!==t?t:[];return new je(Hi(Hi({},n),{},{values:Hi(Hi({},n.values),G(r)),extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):ee(e)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Be(Hi(Hi({},n),{},{fields:function(){return Hi(Hi({},E(n.fields,function(e){return Hi(Hi({},e),{},{type:A(e.type)})})),B(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):void(0,L.Z)(0,"Unexpected type: "+(0,d.Z)(e))}function R(e){return Hi(Hi({},e),{},{type:A(e.type),args:E(e.args,F)})}function F(e){return Hi(Hi({},e),{},{type:A(e.type)})}function k(e){for(var t={},n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].operationTypes)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t[a.operation]=x(a.type)}return t}function x(e){var t,n=e.name.value,r=null!==(t=Yi[n])&&void 0!==t?t:b[n];if(void 0===r)throw new Error('Unknown type: "'.concat(n,'".'));return r}function M(e){return e.kind===U.h.LIST_TYPE?new ge(M(e.type)):e.kind===U.h.NON_NULL_TYPE?new ye(M(e.type)):x(e)}function j(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].fields)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a];t[s.name.value]={type:M(s.type),description:Xi(s,n),args:V(s.arguments),deprecationReason:Ki(s),astNode:s}}return t}function V(e){for(var t=null!=e?e:[],r=Object.create(null),i=0;i<t.length;i++){var o=t[i],a=M(o.type);r[o.name.value]={type:a,description:Xi(o,n),defaultValue:Vr(o.defaultValue,a),deprecationReason:Ki(o),astNode:o}}return r}function B(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].fields)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a],u=M(s.type);t[s.name.value]={type:u,description:Xi(s,n),defaultValue:Vr(s.defaultValue,u),deprecationReason:Ki(s),astNode:s}}return t}function G(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].values)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a];t[s.name.value]={description:Xi(s,n),deprecationReason:Ki(s),astNode:s}}return t}function q(e){for(var t=[],n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].interfaces)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t.push(x(a))}return t}function Q(e){for(var t=[],n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].types)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t.push(x(a))}return t}function z(e){var t,r=e.name.value,i=Xi(e,n),o=null!==(t=c[r])&&void 0!==t?t:[];switch(e.kind){case U.h.OBJECT_TYPE_DEFINITION:var a=o,s=[e].concat(a);return new Ae({name:r,description:i,interfaces:function(){return q(s)},fields:function(){return j(s)},astNode:e,extensionASTNodes:a});case U.h.INTERFACE_TYPE_DEFINITION:var u=o,l=[e].concat(u);return new Ue({name:r,description:i,interfaces:function(){return q(l)},fields:function(){return j(l)},astNode:e,extensionASTNodes:u});case U.h.ENUM_TYPE_DEFINITION:var p=o,f=[e].concat(p);return new je({name:r,description:i,values:G(f),astNode:e,extensionASTNodes:p});case U.h.UNION_TYPE_DEFINITION:var h=o,m=[e].concat(h);return new Me({name:r,description:i,types:function(){return Q(m)},astNode:e,extensionASTNodes:h});case U.h.SCALAR_TYPE_DEFINITION:var g=o;return new De({name:r,description:i,specifiedByUrl:Ji(e),astNode:e,extensionASTNodes:g});case U.h.INPUT_OBJECT_TYPE_DEFINITION:var y=o,v=[e].concat(y);return new Be({name:r,description:i,fields:function(){return B(v)},astNode:e,extensionASTNodes:y})}(0,L.Z)(0,"Unexpected type definition node: "+(0,d.Z)(e))}}var Yi=b(st.concat(St),function(e){return e.name});function Ki(e){var t=Hr(Rt,e);return null==t?void 0:t.reason}function Ji(e){var t=Hr(Ft,e);return null==t?void 0:t.url}function Xi(e,t){if(e.description)return e.description.value;if(!0===(null==t?void 0:t.commentDescriptions)){var n=function(e){var t=e.loc;if(t){for(var n=[],r=t.startToken.prev;null!=r&&r.kind===wi.T.COMMENT&&r.next&&r.prev&&r.line+1===r.next.line&&r.line!==r.prev.line;){var i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join("\n"):void 0}}(e);if(void 0!==n)return(0,$i.W7)("\n"+n)}}function eo(e,t){null!=e&&e.kind===U.h.DOCUMENT||(0,s.Z)(0,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&function(e){var t=kr(e);if(0!==t.length)throw new Error(t.map(function(e){return e.message}).join("\n\n"))}(e);var n=Zi({description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(var r=0,i=n.types;r<i.length;r++){var o=i[r];switch(o.name){case"Query":n.query=o;break;case"Mutation":n.mutation=o;break;case"Subscription":n.subscription=o}}for(var a=n.directives,u=function(e){var t=kt[e];a.every(function(e){return e.name!==t.name})&&a.push(t)},c=0;c<kt.length;c++)u(c);return new jt(n)}function to(e,t){return eo((0,a.Qc)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacySDLEmptyFields:null==t?void 0:t.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:null==t?void 0:t.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:null==t?void 0:t.experimentalFragmentVariables}),{commentDescriptions:null==t?void 0:t.commentDescriptions,assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function no(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ro(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?no(Object(n),!0).forEach(function(t){io(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):no(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function io(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oo(e){var t=e.toConfig(),n=I(so(t.types),function(e){return e.name},function(e){if($(e)||Tt(e))return e;if(H(e)){var t=e.toConfig();return new Ae(ro(ro({},t),{},{interfaces:function(){return u(t.interfaces)},fields:function(){return s(t.fields)}}))}if(W(e)){var n=e.toConfig();return new Ue(ro(ro({},n),{},{interfaces:function(){return u(n.interfaces)},fields:function(){return s(n.fields)}}))}if(Y(e)){var i=e.toConfig();return new Me(ro(ro({},i),{},{types:function(){return u(i.types)}}))}if(J(e)){var o=e.toConfig();return new je(ro(ro({},o),{},{values:ao(o.values)}))}if(ee(e)){var a=e.toConfig();return new Be(ro(ro({},a),{},{fields:function(){return ao(a.fields,function(e){return ro(ro({},e),{},{type:r(e.type)})})}}))}(0,L.Z)(0,"Unexpected type: "+(0,d.Z)(e))});return new jt(ro(ro({},t),{},{types:p(n),directives:so(t.directives).map(function(e){var t=e.toConfig();return new Dt(ro(ro({},t),{},{locations:uo(t.locations,function(e){return e}),args:a(t.args)}))}),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)}));function r(e){return ne(e)?new ge(r(e.ofType)):ie(e)?new ye(r(e.ofType)):i(e)}function i(e){return n[e.name]}function o(e){return e&&i(e)}function a(e){return ao(e,function(e){return ro(ro({},e),{},{type:r(e.type)})})}function s(e){return ao(e,function(e){return ro(ro({},e),{},{type:r(e.type),args:a(e.args)})})}function u(e){return so(e).map(i)}}function ao(e,t){for(var n=Object.create(null),r=uo(Object.keys(e),function(e){return e}),i=0;i<r.length;i++){var o=r[i],a=e[o];n[o]=t?t(a):a}return n}function so(e){return uo(e,function(e){return e.name})}function uo(e,t){return e.slice().sort(function(e,n){return A(t(e),t(n))})}function co(e,t){return fo(e,function(e){return!xt(e)},po,t)}function lo(e,t){return fo(e,xt,Tt,t)}function po(e){return!ut(e)&&!Tt(e)}function fo(e,t,n,r){var i=e.getDirectives().filter(t),o=p(e.getTypeMap()).filter(n);return[ho(e)].concat(i.map(function(e){return function(e,t){return Io(t,e)+"directive @"+e.name+bo(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e,r)}),o.map(function(e){return mo(e,r)})).filter(Boolean).join("\n\n")+"\n"}function ho(e){if(null!=e.description||!function(e){var t=e.getQueryType();if(t&&"Query"!==t.name)return!1;var n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;var r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e)){var t=[],n=e.getQueryType();n&&t.push(" query: ".concat(n.name));var r=e.getMutationType();r&&t.push(" mutation: ".concat(r.name));var i=e.getSubscriptionType();return i&&t.push(" subscription: ".concat(i.name)),Io({},e)+"schema {\n".concat(t.join("\n"),"\n}")}}function mo(e,t){return $(e)?function(e,t){return Io(t,e)+"scalar ".concat(e.name)+function(e){if(null==e.specifiedByUrl)return"";var t=ct(e.specifiedByUrl,it);return t||(0,L.Z)(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+(0,M.S)(t)+")"}(e)}(e,t):H(e)?function(e,t){return Io(t,e)+"type ".concat(e.name)+go(e)+yo(t,e)}(e,t):W(e)?function(e,t){return Io(t,e)+"interface ".concat(e.name)+go(e)+yo(t,e)}(e,t):Y(e)?function(e,t){var n=e.getTypes(),r=n.length?" = "+n.join(" | "):"";return Io(t,e)+"union "+e.name+r}(e,t):J(e)?function(e,t){var n=e.getValues().map(function(e,n){return Io(t,e," ",!n)+" "+e.name+_o(e.deprecationReason)});return Io(t,e)+"enum ".concat(e.name)+vo(n)}(e,t):ee(e)?function(e,t){var n=p(e.getFields()).map(function(e,n){return Io(t,e," ",!n)+" "+Eo(e)});return Io(t,e)+"input ".concat(e.name)+vo(n)}(e,t):void(0,L.Z)(0,"Unexpected type: "+(0,d.Z)(e))}function go(e){var t=e.getInterfaces();return t.length?" implements "+t.map(function(e){return e.name}).join(" & "):""}function yo(e,t){return vo(p(t.getFields()).map(function(t,n){return Io(e,t," ",!n)+" "+t.name+bo(e,t.args," ")+": "+String(t.type)+_o(t.deprecationReason)}))}function vo(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function bo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return 0===t.length?"":t.every(function(e){return!e.description})?"("+t.map(Eo).join(", ")+")":"(\n"+t.map(function(t,r){return Io(e,t," "+n,!r)+" "+n+Eo(t)}).join("\n")+"\n"+n+")"}function Eo(e){var t=ct(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=" = ".concat((0,M.S)(t))),n+_o(e.deprecationReason)}function _o(e){if(null==e)return"";var t=ct(e,it);return t&&e!==Nt?" @deprecated(reason: "+(0,M.S)(t)+")":" @deprecated"}function Io(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=t.description;if(null==i)return"";if(!0===(null==e?void 0:e.commentDescriptions))return function(e,t,n){return(t&&!n?"\n":"")+e.split("\n").map(function(e){return t+(""!==e?"# "+e:"#")}).join("\n")+"\n"}(i,n,r);var o=i.length>70;return(n&&!r?"\n"+n:n)+(0,$i.LZ)(i,"",o).replace(/\n/g,"\n"+n)+"\n"}function So(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t=t.concat(r.definitions)}return{kind:"Document",definitions:t}}function To(e){for(var t=[],n=Object.create(null),r=0,i=e.definitions;r<i.length;r++){var o=i[r];switch(o.kind){case U.h.OPERATION_DEFINITION:t.push(o);break;case U.h.FRAGMENT_DEFINITION:n[o.name.value]=wo(o.selectionSet)}}for(var a=Object.create(null),s=function(r){for(var i=t[r],o=new Set,s=0,u=wo(i.selectionSet);s<u.length;s++){var c=u[s];Co(o,n,c)}var l=i.name?i.name.value:"";a[l]={kind:U.h.DOCUMENT,definitions:e.definitions.filter(function(e){return e===i||e.kind===U.h.FRAGMENT_DEFINITION&&o.has(e.name.value)})}},u=0;u<t.length;u++)s(u);return a}function Co(e,t,n){if(!e.has(n)){e.add(n);var r=t[n];if(void 0!==r)for(var i=0;i<r.length;i++)Co(e,t,r[i])}}function wo(e){var t=[];return(0,c.Vn)(e,{FragmentSpread:function(e){t.push(e.name.value)}}),t}function Po(e){for(var t=(0,Ii.T)(e)?e:new Ii.H(e),n=t.body,r=new Ci.h(t),i="",o=!1;r.advance().kind!==wi.T.EOF;){var a=r.token,s=a.kind,u=!(0,Ci.u)(a.kind);o&&(u||a.kind===wi.T.SPREAD)&&(i+=" ");var c=n.slice(a.start,a.end);s===wi.T.BLOCK_STRING?i+=Do(c):i+=c,o=u}return i}function Do(e){var t=e.slice(3,-3),n=(0,$i.W7)(t);(0,$i.Z2)(n)>0&&(n="\n"+n);var r=n[n.length-1];return('"'===r&&'\\"""'!==n.slice(-4)||"\\"===r)&&(n+="\n"),'"""'+n+'"""'}function Ao(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ao(Object(n),!0).forEach(function(t){No(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ao(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function No(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ro=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",IMPLEMENTED_INTERFACE_REMOVED:"IMPLEMENTED_INTERFACE_REMOVED",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_REPEATABLE_REMOVED:"DIRECTIVE_REPEATABLE_REMOVED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"}),Fo=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",IMPLEMENTED_INTERFACE_ADDED:"IMPLEMENTED_INTERFACE_ADDED",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});function ko(e,t){return Uo(e,t).filter(function(e){return e.type in Ro})}function xo(e,t){return Uo(e,t).filter(function(e){return e.type in Fo})}function Uo(e,t){return[].concat(function(e,t){for(var n=[],r=zo(p(e.getTypeMap()),p(t.getTypeMap())),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:Ro.TYPE_REMOVED,description:ut(a)?"Standard scalar ".concat(a.name," was removed because it is not referenced anymore."):"".concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){var c=u[s],l=c[0],d=c[1];J(l)&&J(d)?n.push.apply(n,jo(l,d)):Y(l)&&Y(d)?n.push.apply(n,Lo(l,d)):ee(l)&&ee(d)?n.push.apply(n,Mo(l,d)):H(l)&&H(d)||W(l)&&W(d)?n.push.apply(n,Bo(l,d).concat(Vo(l,d))):l.constructor!==d.constructor&&n.push({type:Ro.TYPE_CHANGED_KIND,description:"".concat(l.name," changed from ")+"".concat(Qo(l)," to ").concat(Qo(d),".")})}return n}(e,t),function(e,t){for(var n=[],r=zo(e.getDirectives(),t.getDirectives()),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:Ro.DIRECTIVE_REMOVED,description:"".concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){for(var c=u[s],l=c[0],p=c[1],d=zo(l.args,p.args),f=0,h=d.added;f<h.length;f++){var m=h[f];xe(m)&&n.push({type:Ro.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(m.name," on directive ").concat(l.name," was added.")})}for(var g=0,y=d.removed;g<y.length;g++){var v=y[g];n.push({type:Ro.DIRECTIVE_ARG_REMOVED,description:"".concat(v.name," was removed from ").concat(l.name,".")})}l.isRepeatable&&!p.isRepeatable&&n.push({type:Ro.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(l.name,".")});for(var b=0,E=l.locations;b<E.length;b++){var _=E[b];-1===p.locations.indexOf(_)&&n.push({type:Ro.DIRECTIVE_LOCATION_REMOVED,description:"".concat(_," was removed from ").concat(l.name,".")})}}return n}(e,t))}function Mo(e,t){for(var n=[],r=zo(p(e.getFields()),p(t.getFields())),i=0,o=r.added;i<o.length;i++){var a=o[i];qe(a)?n.push({type:Ro.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(a.name," on input type ").concat(e.name," was added.")}):n.push({type:Fo.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(a.name," on input type ").concat(e.name," was added.")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:Ro.FIELD_REMOVED,description:"".concat(e.name,".").concat(c.name," was removed.")})}for(var l=0,d=r.persisted;l<d.length;l++){var f=d[l],h=f[0],m=f[1];$o(h.type,m.type)||n.push({type:Ro.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(h.name," changed type from ")+"".concat(String(h.type)," to ").concat(String(m.type),".")})}return n}function Lo(e,t){for(var n=[],r=zo(e.getTypes(),t.getTypes()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:Fo.TYPE_ADDED_TO_UNION,description:"".concat(a.name," was added to union type ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:Ro.TYPE_REMOVED_FROM_UNION,description:"".concat(c.name," was removed from union type ").concat(e.name,".")})}return n}function jo(e,t){for(var n=[],r=zo(e.getValues(),t.getValues()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:Fo.VALUE_ADDED_TO_ENUM,description:"".concat(a.name," was added to enum type ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:Ro.VALUE_REMOVED_FROM_ENUM,description:"".concat(c.name," was removed from enum type ").concat(e.name,".")})}return n}function Vo(e,t){for(var n=[],r=zo(e.getInterfaces(),t.getInterfaces()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:Fo.IMPLEMENTED_INTERFACE_ADDED,description:"".concat(a.name," added to interfaces implemented by ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:Ro.IMPLEMENTED_INTERFACE_REMOVED,description:"".concat(e.name," no longer implements interface ").concat(c.name,".")})}return n}function Bo(e,t){for(var n=[],r=zo(p(e.getFields()),p(t.getFields())),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:Ro.FIELD_REMOVED,description:"".concat(e.name,".").concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){var c=u[s],l=c[0],d=c[1];n.push.apply(n,Go(e,l,d)),qo(l.type,d.type)||n.push({type:Ro.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(l.name," changed type from ")+"".concat(String(l.type)," to ").concat(String(d.type),".")})}return n}function Go(e,t,n){for(var r=[],i=zo(t.args,n.args),o=0,a=i.removed;o<a.length;o++){var s=a[o];r.push({type:Ro.ARG_REMOVED,description:"".concat(e.name,".").concat(t.name," arg ").concat(s.name," was removed.")})}for(var u=0,c=i.persisted;u<c.length;u++){var l=c[u],p=l[0],d=l[1];if($o(p.type,d.type)){if(void 0!==p.defaultValue)if(void 0===d.defaultValue)r.push({type:Fo.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(p.name," defaultValue was removed.")});else{var f=Ho(p.defaultValue,p.type),h=Ho(d.defaultValue,d.type);f!==h&&r.push({type:Fo.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(p.name," has changed defaultValue from ").concat(f," to ").concat(h,".")})}}else r.push({type:Ro.ARG_CHANGED_KIND,description:"".concat(e.name,".").concat(t.name," arg ").concat(p.name," has changed type from ")+"".concat(String(p.type)," to ").concat(String(d.type),".")})}for(var m=0,g=i.added;m<g.length;m++){var y=g[m];xe(y)?r.push({type:Ro.REQUIRED_ARG_ADDED,description:"A required arg ".concat(y.name," on ").concat(e.name,".").concat(t.name," was added.")}):r.push({type:Fo.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(y.name," on ").concat(e.name,".").concat(t.name," was added.")})}return r}function qo(e,t){return ne(e)?ne(t)&&qo(e.ofType,t.ofType)||ie(t)&&qo(e,t.ofType):ie(e)?ie(t)&&qo(e.ofType,t.ofType):Se(t)&&e.name===t.name||ie(t)&&qo(e,t.ofType)}function $o(e,t){return ne(e)?ne(t)&&$o(e.ofType,t.ofType):ie(e)?ie(t)&&$o(e.ofType,t.ofType)||!ie(t)&&$o(e.ofType,t):Se(t)&&e.name===t.name}function Qo(e){return $(e)?"a Scalar type":H(e)?"an Object type":W(e)?"an Interface type":Y(e)?"a Union type":J(e)?"an Enum type":ee(e)?"an Input type":void(0,L.Z)(0,"Unexpected type: "+(0,d.Z)(e))}function Ho(e,t){var n=ct(e,t);null!=n||(0,L.Z)(0);var r=(0,c.Vn)(n,{ObjectValue:function(e){var t=[].concat(e.fields);return t.sort(function(e,t){return A(e.name.value,t.name.value)}),Oo(Oo({},e),{},{fields:t})}});return(0,M.S)(r)}function zo(e,t){for(var n=[],r=[],i=[],o=b(e,function(e){return e.name}),a=b(t,function(e){return e.name}),s=0;s<e.length;s++){var u=e[s],c=a[u.name];void 0===c?r.push(u):i.push([u,c])}for(var l=0;l<t.length;l++){var p=t[l];void 0===o[p.name]&&n.push(p)}return{added:n,persisted:i,removed:r}}function Wo(e,t){return Fr(e,t,[Fi])}},9499:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(1424),i=n(6182);function o(e){var t=e.prototype.toJSON;"function"==typeof t||(0,r.Z)(0),e.prototype.inspect=t,i.Z&&(e.prototype[i.Z]=t)}},8660:(e,t,n)=>{function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,{Z:()=>r})},2277:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(6182);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o=10,a=2;function s(e){return u(e,[])}function u(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(r.Z)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==i){var s=i.call(e);if(s!==e)return"string"==typeof s?s:u(s,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>a)return"[Array]";for(var n=Math.min(o,e.length),r=e.length-n,i=[],s=0;s<n;++s)i.push(u(e[s],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.length>a?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+n.map(function(n){return n+": "+u(e[n],t)}).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},4846:(e,t,n)=>{n.d(t,{Z:()=>r});const r=function(e,t){return e instanceof t}},1424:(e,t,n)=>{function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.d(t,{Z:()=>r})},1040:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){return"object"==r(e)&&null!==e}n.d(t,{Z:()=>i})},6182:(e,t,n)=>{n.d(t,{Z:()=>r});const r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0},781:(e,t,n)=>{n.d(t,{Ye:()=>i,WU:()=>o,UG:()=>a});var r=n(9499),i=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();(0,r.Z)(i);var o=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function a(e){return null!=e&&"string"==typeof e.kind}(0,r.Z)(o)},5717:(e,t,n)=>{function r(e){var t=e.split(/\r\n|[\n\r]/g),n=o(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var a=0;a<t.length&&i(t[a]);)++a;for(var s=t.length;s>a&&i(t[s-1]);)--s;return t.slice(a,s).join("\n")}function i(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function o(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,u="";return!s||r&&i||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}n.d(t,{W7:()=>r,Z2:()=>o,LZ:()=>a})},9633:(e,t,n)=>{n.d(t,{B:()=>r});var r=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"})},5115:(e,t,n)=>{n.d(t,{h:()=>r});var r=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},2027:(e,t,n)=>{n.d(t,{h:()=>s,u:()=>u});var r=n(650),i=n(781),o=n(7956),a=n(5717),s=function(){function e(e){var t=new i.WU(o.T.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==o.T.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=l(this,e)}while(e.kind===o.T.COMMENT);return e},e}();function u(e){return e===o.T.BANG||e===o.T.DOLLAR||e===o.T.AMP||e===o.T.PAREN_L||e===o.T.PAREN_R||e===o.T.SPREAD||e===o.T.COLON||e===o.T.EQUALS||e===o.T.AT||e===o.T.BRACKET_L||e===o.T.BRACKET_R||e===o.T.BRACE_L||e===o.T.PIPE||e===o.T.BRACE_R}function c(e){return isNaN(e)?o.T.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function l(e,t){for(var n=e.source,a=n.body,s=a.length,u=t.end;u<s;){var c=a.charCodeAt(u),l=e.line,h=1+u-e.lineStart;switch(c){case 65279:case 9:case 32:case 44:++u;continue;case 10:++u,++e.line,e.lineStart=u;continue;case 13:10===a.charCodeAt(u+1)?u+=2:++u,++e.line,e.lineStart=u;continue;case 33:return new i.WU(o.T.BANG,u,u+1,l,h,t);case 35:return d(n,u,l,h,t);case 36:return new i.WU(o.T.DOLLAR,u,u+1,l,h,t);case 38:return new i.WU(o.T.AMP,u,u+1,l,h,t);case 40:return new i.WU(o.T.PAREN_L,u,u+1,l,h,t);case 41:return new i.WU(o.T.PAREN_R,u,u+1,l,h,t);case 46:if(46===a.charCodeAt(u+1)&&46===a.charCodeAt(u+2))return new i.WU(o.T.SPREAD,u,u+3,l,h,t);break;case 58:return new i.WU(o.T.COLON,u,u+1,l,h,t);case 61:return new i.WU(o.T.EQUALS,u,u+1,l,h,t);case 64:return new i.WU(o.T.AT,u,u+1,l,h,t);case 91:return new i.WU(o.T.BRACKET_L,u,u+1,l,h,t);case 93:return new i.WU(o.T.BRACKET_R,u,u+1,l,h,t);case 123:return new i.WU(o.T.BRACE_L,u,u+1,l,h,t);case 124:return new i.WU(o.T.PIPE,u,u+1,l,h,t);case 125:return new i.WU(o.T.BRACE_R,u,u+1,l,h,t);case 34:return 34===a.charCodeAt(u+1)&&34===a.charCodeAt(u+2)?g(n,u,l,h,t,e):m(n,u,l,h,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return f(n,u,c,l,h,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return b(n,u,l,h,t)}throw(0,r.h)(n,u,p(c))}var y=e.line,v=1+u-e.lineStart;return new i.WU(o.T.EOF,s,s,y,v,t)}function p(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(c(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(c(e),".")}function d(e,t,n,r,a){var s,u=e.body,c=t;do{s=u.charCodeAt(++c)}while(!isNaN(s)&&(s>31||9===s));return new i.WU(o.T.COMMENT,t,c,n,r,a,u.slice(t+1,c))}function f(e,t,n,a,s,u){var l=e.body,p=n,d=t,f=!1;if(45===p&&(p=l.charCodeAt(++d)),48===p){if((p=l.charCodeAt(++d))>=48&&p<=57)throw(0,r.h)(e,d,"Invalid number, unexpected digit after 0: ".concat(c(p),"."))}else d=h(e,d,p),p=l.charCodeAt(d);if(46===p&&(f=!0,p=l.charCodeAt(++d),d=h(e,d,p),p=l.charCodeAt(d)),69!==p&&101!==p||(f=!0,43!==(p=l.charCodeAt(++d))&&45!==p||(p=l.charCodeAt(++d)),d=h(e,d,p),p=l.charCodeAt(d)),46===p||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(p))throw(0,r.h)(e,d,"Invalid number, expected digit but got: ".concat(c(p),"."));return new i.WU(f?o.T.FLOAT:o.T.INT,t,d,a,s,u,l.slice(t,d))}function h(e,t,n){var i=e.body,o=t,a=n;if(a>=48&&a<=57){do{a=i.charCodeAt(++o)}while(a>=48&&a<=57);return o}throw(0,r.h)(e,o,"Invalid number, expected digit but got: ".concat(c(a),"."))}function m(e,t,n,a,s){for(var u=e.body,l=t+1,p=l,d=0,f="";l<u.length&&!isNaN(d=u.charCodeAt(l))&&10!==d&&13!==d;){if(34===d)return f+=u.slice(p,l),new i.WU(o.T.STRING,t,l+1,n,a,s,f);if(d<32&&9!==d)throw(0,r.h)(e,l,"Invalid character within String: ".concat(c(d),"."));if(++l,92===d){switch(f+=u.slice(p,l-1),d=u.charCodeAt(l)){case 34:f+='"';break;case 47:f+="/";break;case 92:f+="\\";break;case 98:f+="\b";break;case 102:f+="\f";break;case 110:f+="\n";break;case 114:f+="\r";break;case 116:f+="\t";break;case 117:var h=y(u.charCodeAt(l+1),u.charCodeAt(l+2),u.charCodeAt(l+3),u.charCodeAt(l+4));if(h<0){var m=u.slice(l+1,l+5);throw(0,r.h)(e,l,"Invalid character escape sequence: \\u".concat(m,"."))}f+=String.fromCharCode(h),l+=4;break;default:throw(0,r.h)(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(d),"."))}p=++l}}throw(0,r.h)(e,l,"Unterminated string.")}function g(e,t,n,s,u,l){for(var p=e.body,d=t+3,f=d,h=0,m="";d<p.length&&!isNaN(h=p.charCodeAt(d));){if(34===h&&34===p.charCodeAt(d+1)&&34===p.charCodeAt(d+2))return m+=p.slice(f,d),new i.WU(o.T.BLOCK_STRING,t,d+3,n,s,u,(0,a.W7)(m));if(h<32&&9!==h&&10!==h&&13!==h)throw(0,r.h)(e,d,"Invalid character within String: ".concat(c(h),"."));10===h?(++d,++l.line,l.lineStart=d):13===h?(10===p.charCodeAt(d+1)?d+=2:++d,++l.line,l.lineStart=d):92===h&&34===p.charCodeAt(d+1)&&34===p.charCodeAt(d+2)&&34===p.charCodeAt(d+3)?(m+=p.slice(f,d)+'"""',f=d+=4):++d}throw(0,r.h)(e,d,"Unterminated string.")}function y(e,t,n,r){return v(e)<<12|v(t)<<8|v(n)<<4|v(r)}function v(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function b(e,t,n,r,a){for(var s=e.body,u=s.length,c=t+1,l=0;c!==u&&!isNaN(l=s.charCodeAt(c))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++c;return new i.WU(o.T.NAME,t,c,n,r,a,s.slice(t,c))}},4293:(e,t,n)=>{function r(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}n.d(t,{k:()=>r})},5390:(e,t,n)=>{n.d(t,{Qc:()=>l,H2:()=>p,gZ:()=>d});var r=n(650),i=n(5115),o=n(781),a=n(7956),s=n(4957),u=n(9633),c=n(2027);function l(e,t){return new f(e,t).parseDocument()}function p(e,t){var n=new f(e,t);n.expectToken(a.T.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(a.T.EOF),r}function d(e,t){var n=new f(e,t);n.expectToken(a.T.SOF);var r=n.parseTypeReference();return n.expectToken(a.T.EOF),r}var f=function(){function e(e,t){var n=(0,s.T)(e)?e:new s.H(e);this._lexer=new c.h(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(a.T.NAME);return{kind:i.h.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:i.h.DOCUMENT,definitions:this.many(a.T.SOF,this.parseDefinition,a.T.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(a.T.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(a.T.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(a.T.BRACE_L))return{kind:i.h.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(a.T.NAME)&&(t=this.parseName()),{kind:i.h.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(a.T.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(a.T.PAREN_L,this.parseVariableDefinition,a.T.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:i.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(a.T.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(a.T.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(a.T.DOLLAR),{kind:i.h.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:i.h.SELECTION_SET,selections:this.many(a.T.BRACE_L,this.parseSelection,a.T.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(a.T.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(a.T.COLON)?(e=r,t=this.parseName()):t=r,{kind:i.h.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(a.T.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(a.T.PAREN_L,t,a.T.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(a.T.COLON),{kind:i.h.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:i.h.ARGUMENT,name:this.parseName(),value:(this.expectToken(a.T.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(a.T.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(a.T.NAME)?{kind:i.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:i.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:i.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:i.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case a.T.BRACKET_L:return this.parseList(e);case a.T.BRACE_L:return this.parseObject(e);case a.T.INT:return this._lexer.advance(),{kind:i.h.INT,value:t.value,loc:this.loc(t)};case a.T.FLOAT:return this._lexer.advance(),{kind:i.h.FLOAT,value:t.value,loc:this.loc(t)};case a.T.STRING:case a.T.BLOCK_STRING:return this.parseStringLiteral();case a.T.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:i.h.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:i.h.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:i.h.NULL,loc:this.loc(t)};default:return{kind:i.h.ENUM,value:t.value,loc:this.loc(t)}}case a.T.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:i.h.STRING,value:e.value,block:e.kind===a.T.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:i.h.LIST,values:this.any(a.T.BRACKET_L,function(){return t.parseValueLiteral(e)},a.T.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:i.h.OBJECT,fields:this.any(a.T.BRACE_L,function(){return t.parseObjectField(e)},a.T.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(a.T.COLON),{kind:i.h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(a.T.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(a.T.AT),{kind:i.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(a.T.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(a.T.BRACKET_R),e={kind:i.h.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(a.T.BANG)?{kind:i.h.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:i.h.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===a.T.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(a.T.STRING)||this.peek(a.T.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(a.T.BRACE_L,this.parseOperationTypeDefinition,a.T.BRACE_R);return{kind:i.h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(a.T.COLON);var n=this.parseNamedType();return{kind:i.h.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:i.h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:i.h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:a,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(a.T.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(a.T.AMP)||this.peek(a.T.NAME));return t}return this.delimitedMany(a.T.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(a.T.BRACE_L)&&this._lexer.lookahead().kind===a.T.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(a.T.BRACE_L,this.parseFieldDefinition,a.T.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(a.T.COLON);var o=this.parseTypeReference(),s=this.parseDirectives(!0);return{kind:i.h.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:s,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(a.T.PAREN_L,this.parseInputValueDef,a.T.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(a.T.COLON);var r,o=this.parseTypeReference();this.expectOptionalToken(a.T.EQUALS)&&(r=this.parseValueLiteral(!0));var s=this.parseDirectives(!0);return{kind:i.h.INPUT_VALUE_DEFINITION,description:t,name:n,type:o,defaultValue:r,directives:s,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:i.h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:a,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseUnionMemberTypes();return{kind:i.h.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:o,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(a.T.EQUALS)?this.delimitedMany(a.T.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseEnumValuesDefinition();return{kind:i.h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:o,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(a.T.BRACE_L,this.parseEnumValueDefinition,a.T.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:i.h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseInputFieldsDefinition();return{kind:i.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:o,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(a.T.BRACE_L,this.parseInputValueDef,a.T.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===a.T.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)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(a.T.BRACE_L,this.parseOperationTypeDefinition,a.T.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:i.h.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:i.h.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return{kind:i.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return{kind:i.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:i.h.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:i.h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:i.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(a.T.AT);var n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var s=this.parseDirectiveLocations();return{kind:i.h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:o,locations:s,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(a.T.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==u.B[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new o.Ye(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw(0,r.h)(this._lexer.source,t.start,"Expected ".concat(m(e),", found ").concat(h(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==a.T.NAME||t.value!==e)throw(0,r.h)(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(h(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===a.T.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return(0,r.h)(this._lexer.source,t.start,"Unexpected ".concat(h(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function h(e){var t=e.value;return m(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function m(e){return(0,c.u)(e)?'"'.concat(e,'"'):e}},6242:(e,t,n)=>{n.d(t,{Q:()=>i,z:()=>o});var r=n(4293);function i(e){return o(e.source,(0,r.k)(e.source,e.start))}function o(e,t){var n=e.locationOffset.column-1,r=s(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,u=t.line+o,c=1===t.line?n:0,l=t.column+c,p="".concat(e.name,":").concat(u,":").concat(l,"\n"),d=r.split(/\r\n|[\n\r]/g),f=d[i];if(f.length>120){for(var h=Math.floor(l/80),m=l%80,g=[],y=0;y<f.length;y+=80)g.push(f.slice(y,y+80));return p+a([["".concat(u),g[0]]].concat(g.slice(1,h+1).map(function(e){return["",e]}),[[" ",s(m-1)+"^"],["",g[h+1]]]))}return p+a([["".concat(u-1),d[i-1]],["".concat(u),f],["",s(l-1)+"^"],["".concat(u+1),d[i+1]]])}function a(e){var t=e.filter(function(e){return e[0],void 0!==e[1]}),n=Math.max.apply(Math,t.map(function(e){return e[0].length}));return t.map(function(e){var t,r=e[0],i=e[1];return s(n-(t=r).length)+t+(i?" | "+i:" |")}).join("\n")}function s(e){return Array(e+1).join(" ")}},9054:(e,t,n)=>{n.d(t,{S:()=>o});var r=n(8867),i=n(5717);function o(e){return(0,r.Vn)(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return u(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=l("(",u(e.variableDefinitions,", "),")"),i=u(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?u([t,u([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+l(" = ",r)+l(" ",u(i," "))},SelectionSet:function(e){return c(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=l("",t,": ")+n,s=a+l("(",u(r,", "),")");return s.length>80&&(s=a+l("(\n",p(u(r,"\n")),"\n)")),u([s,u(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+l(" ",u(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return u(["...",l("on ",t),u(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(l("(",u(r,", "),")")," ")+"on ".concat(n," ").concat(l("",u(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,i.LZ)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+u(e.values,", ")+"]"},ObjectValue:function(e){return"{"+u(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+l("(",u(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:s(function(e){var t=e.directives,n=e.operationTypes;return u(["schema",u(t," "),c(n)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:s(function(e){return u(["scalar",e.name,u(e.directives," ")]," ")}),ObjectTypeDefinition:s(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["type",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")}),FieldDefinition:s(function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(f(n)?l("(\n",p(u(n,"\n")),"\n)"):l("(",u(n,", "),")"))+": "+r+l(" ",u(i," "))}),InputValueDefinition:s(function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return u([t+": "+n,l("= ",r),u(i," ")]," ")}),InterfaceTypeDefinition:s(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["interface",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")}),UnionTypeDefinition:s(function(e){var t=e.name,n=e.directives,r=e.types;return u(["union",t,u(n," "),r&&0!==r.length?"= "+u(r," | "):""]," ")}),EnumTypeDefinition:s(function(e){var t=e.name,n=e.directives,r=e.values;return u(["enum",t,u(n," "),c(r)]," ")}),EnumValueDefinition:s(function(e){return u([e.name,u(e.directives," ")]," ")}),InputObjectTypeDefinition:s(function(e){var t=e.name,n=e.directives,r=e.fields;return u(["input",t,u(n," "),c(r)]," ")}),DirectiveDefinition:s(function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(f(n)?l("(\n",p(u(n,"\n")),"\n)"):l("(",u(n,", "),")"))+(r?" repeatable":"")+" on "+u(i," | ")}),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return u(["extend schema",u(t," "),c(n)]," ")},ScalarTypeExtension:function(e){return u(["extend scalar",e.name,u(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["extend type",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["extend interface",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return u(["extend union",t,u(n," "),r&&0!==r.length?"= "+u(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return u(["extend enum",t,u(n," "),c(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return u(["extend input",t,u(n," "),c(r)]," ")}};function s(e){return function(t){return u([t.description,e(t)],"\n")}}function u(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter(function(e){return e}).join(n))&&void 0!==t?t:""}function c(e){return l("{\n",p(u(e,"\n")),"\n}")}function l(e,t){return null!=t&&""!==t?e+t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function p(e){return l(" ",e.replace(/\n/g,"\n "))}function d(e){return-1!==e.indexOf("\n")}function f(e){return null!=e&&e.some(d)}},4957:(e,t,n)=>{n.d(t,{H:()=>u,T:()=>c});var r=n(1176),i=n(2277),o=n(8660),a=n(4846);function s(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)}}var u=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||(0,o.Z)(0,"Body must be a string. Received: ".concat((0,i.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,o.Z)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,o.Z)(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n;return t=e,(n=[{key:r.YF,get:function(){return"Source"}}])&&s(t.prototype,n),e}();function c(e){return(0,a.Z)(e,u)}},7956:(e,t,n)=>{n.d(t,{T:()=>r});var r=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"})},8867:(e,t,n)=>{n.d(t,{$_:()=>a,Vn:()=>s,j1:()=>u,CK:()=>c});var r=n(2277),i=n(781),o={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"]},a=Object.freeze({});function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=void 0,u=Array.isArray(e),l=[e],p=-1,d=[],f=void 0,h=void 0,m=void 0,g=[],y=[],v=e;do{var b=++p===l.length,E=b&&0!==d.length;if(b){if(h=0===y.length?void 0:g[g.length-1],f=m,m=y.pop(),E){if(u)f=f.slice();else{for(var _={},I=0,S=Object.keys(f);I<S.length;I++){var T=S[I];_[T]=f[T]}f=_}for(var C=0,w=0;w<d.length;w++){var P=d[w][0],D=d[w][1];u&&(P-=C),u&&null===D?(f.splice(P,1),C++):f[P]=D}}p=s.index,l=s.keys,d=s.edits,u=s.inArray,s=s.prev}else{if(h=m?u?p:l[p]:void 0,null==(f=m?m[h]:v))continue;m&&g.push(h)}var A,O=void 0;if(!Array.isArray(f)){if(!(0,i.UG)(f))throw new Error("Invalid AST Node: ".concat((0,r.Z)(f),"."));var N=c(t,f.kind,b);if(N){if((O=N.call(t,f,h,m,g,y))===a)break;if(!1===O){if(!b){g.pop();continue}}else if(void 0!==O&&(d.push([h,O]),!b)){if(!(0,i.UG)(O)){g.pop();continue}f=O}}}void 0===O&&E&&d.push([h,f]),b?g.pop():(s={inArray:u,index:p,keys:l,edits:d,prev:s},l=(u=Array.isArray(f))?f:null!==(A=n[f.kind])&&void 0!==A?A:[],p=-1,d=[],m&&y.push(m),m=f)}while(void 0!==s);return 0!==d.length&&(v=d[d.length-1][1]),v}function u(e){var t=new Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=c(e[r],n.kind,!1);if(i){var o=i.apply(e[r],arguments);if(!1===o)t[r]=n;else if(o===a)t[r]=a;else if(void 0!==o)return o}}},leave:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=c(e[r],n.kind,!0);if(i){var o=i.apply(e[r],arguments);if(o===a)t[r]=a;else if(void 0!==o&&!1!==o)return o}}else t[r]===n&&(t[r]=null)}}}function c(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[t];if("function"==typeof a)return a}}}},1176:(e,t,n)=>{n.d(t,{Xr:()=>r,PA:()=>i,YF:()=>o});var r="function"==typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:"@@iterator",i="function"==typeof Symbol&&null!=Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator",o="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag"}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r=n(3884),i=r.fEx,o=r.zVd,a=r.zu7,s=r.dpb,u=r.T0E,c=r.d4U,l=r.nwm,p=r.Ijf,d=r.v2N,f=r.fg_,h=r.$SX,m=r.Mbo,g=r.E34,y=r.Bkk,v=r.Y92,b=r.m06,E=r.bM9,_=r.ucG,I=r.sZY,S=r.Yti,T=r.PLi,C=r.yTz,w=r.FzK,P=r.tvV,D=r.ugv,A=r.feI,O=r.Yop,N=r.mu$,R=r.sf5,F=r.x3v,k=r.jAf,x=r.u4I,U=r.bno,M=r.bEP,L=r.weZ,j=r.bfH,V=r.uS8,B=r.K6s,G=r.eyU,q=r.wE_,$=r.RJY,Q=r.zdd,H=r.i2A,z=r.fc5,W=r.K79,Z=r.$i2,Y=r.m0x,K=r.$QI,J=r.WJn,X=r.Pzm,ee=r.Q_D,te=r.fc8,ne=r.XCy,re=r.W0R,ie=r.MnN,oe=r.ETy,ae=r.vPg,se=r.Q0c,ue=r.NWj,ce=r.lj3,le=r.XQy,pe=r.R8w,de=r.gYt,fe=r.g9Q,he=r.U9R,me=r.bSK,ge=r.BGD,ye=r.Eq9,ve=r.mKD,be=r._Yx,Ee=r.uMJ,_e=r.oiL,Ie=r.Fa6,Se=r.$ur,Te=r.Ch6,Ce=r.of1,we=r.hk_,Pe=r.vjn,De=r._d$,Ae=r.NSU,Oe=r.Eph,Ne=r.g31,Re=r.u9g,Fe=r.aqW,ke=r.LBz,xe=r.qYx,Ue=r.X$1,Me=r.OoB,Le=r.pDu,je=r.rpU,Ve=r.fYe,Be=r.Pg9,Ge=r.GBW,qe=r.g20,$e=r.i1W,Qe=r.vQb,He=r.yEZ,ze=r.Wky,We=r.C2e,Ze=r.Lbh,Ye=r.RCf,Ke=r.z2r,Je=r.AVk,Xe=r.cUI,et=r.HHl,tt=r.XHu,nt=r.Uze,rt=r.sA9,it=r.cG4,ot=r.H5H,at=r.RlM,st=r.JrM,ut=r.bII,ct=r.jUP,lt=r.FT8,pt=r.xEh,dt=r.cjh,ft=r.$Yq,ht=r.Pr8,mt=r.YOP,gt=r.IZr,yt=r.$BG,vt=r.Qj0,bt=r.jKp,Et=r.e8S,_t=r.m5b,It=r.wO5,St=r.VpA,Tt=r.FFB,Ct=r.y3V,wt=r.Zr9,Pt=r.g3t,Dt=r.m72,At=r.i3Z,Ot=r.zcH,Nt=r.zOd,Rt=r.o_I,Ft=r.bWm,kt=r.EP_,xt=r.o5f,Ut=r.i4m,Mt=r.sEr,Lt=r.GAT,jt=r.iKc,Vt=r.Tex,Bt=r.XsQ,Gt=r.U9t,qt=r.OpC,$t=r.bgy,Qt=r.T5f,Ht=r.jPD,zt=r.Q$1,Wt=r.Cmg,Zt=r.$Iz,Yt=r.tIq,Kt=r.zHr,Jt=r.ZeH,Xt=r.$Av,en=r.TpL,tn=r.pWb,nn=r.Rk$,rn=r.roX,on=r.RXg,an=r._xu,sn=r.RVX,un=r.Fd7,cn=r.N9K,ln=r.do1,pn=r.hH,dn=r.K0T,fn=r.p7R,hn=r.E7k,mn=r.EAJ,gn=r.Mal,yn=r.KeG,vn=r.uMn,bn=r.qBr,En=r.DFP,_n=r.m76,In=r.$jJ,Sn=r.B8X,Tn=r.N5j,Cn=r.Us3,wn=r.isD,Pn=r.nN6,Dn=r.CQ1,An=r.ini,On=r.YdH,Nn=r.VsH,Rn=r.Kyg,Fn=r.XY6,kn=r.QmV,xn=r.puT,Un=r._sg,Mn=r.BuV,Ln=r.fAd,jn=r.bGN,Vn=r.$Bh,Bn=r.hVT,Gn=r.k8_,qn=r.wn5,$n=r.lgL,Qn=r.VeJ,Hn=r.pSI,zn=r.ctk,Wn=r.GL8,Zn=r.VHF,Yn=r.o5C,Kn=r.gpE,Jn=r.PVi,Xn=r.opi,er=r.AQp,tr=r.Bve,nr=r.r$Y,rr=r.zBW,ir=r.LpH,or=r.H81,ar=r.q5V,sr=r.BoX,ur=r.a8K,cr=r.zv6,lr=r.RzF,pr=r.iI3,dr=r.DW2,fr=r.lKo,hr=r.jCI,mr=r.OeJ,gr=r.ab2,yr=r.TVs,vr=r.JU,br=r.QdX,Er=r.Kf7,_r=r.LtK,Ir=r.r6R,Sr=r.fvX,Tr=r.r4r,Cr=r.FcI,wr=r.qw4,Pr=r.Cc7,Dr=r.kd9,Ar=r.bOA,Or=r.qXR,Nr=r.yGq,Rr=r.ZD9,Fr=r.wEB,kr=r.YGW,xr=r.Chb,Ur=r._HY,Mr=r.cMT,Lr=r.p_C,jr=r.Pte,Vr=r.Ehw,Br=r.JkE,Gr=r.ku9,qr=r.$Vq,$r=r.QZw,Qr=r.q6C,Hr=r.YlF,zr=r.rDA,Wr=r.CjA,Zr=r.u0j,Yr=r.Zam,Kr=r.JDz,Jr=r.ZSL,Xr=r.dO5,ei=r.K5h,ti=r.UK7,ni=r.JyR,ri=r.GHz,ii=r._He,oi=r.kyC,ai=r.nM6,si=r.zWW,ui=r.xrg,ci=r.bj8,li=r.bGH,pi=r.cTO,di=r.SrV,fi=r.Xm9,hi=r.PO0,mi=r.FVE,gi=r.iSe,yi=r.CPx,vi=r.x3Z,bi=r.e$z,Ei=r.Yo2,_i=r.ueJ,Ii=r.eo$,Si=r.w1y,Ti=r.c06,Ci=r.lS0,wi=r.abb,Pi=r.ird,Di=r._oj,Ai=r.e1Q,Oi=r.Ugm,Ni=r.hvo,Ri=r.tV1,Fi=r.FL0,ki=r.Dxn,xi=r.G6j,Ui=r.eSW,Mi=r.DWP,Li=r.zjf,ji=r.Eam,Vi=r.URA,Bi=r.yBL,Gi=r.SQC,qi=r._q5,$i=r.o88,Qi=r.cUf,Hi=r.YVG,zi=r.J5K,Wi=r.nOi,Zi=r.yhH,Yi=r.HsO,Ki=r.XqI,Ji=r.wRo,Xi=r.hYU,eo=r.UAI,to=r.aYi,no=r.PNd,ro=r.N9N,io=r.$02,oo=r.Dc_,ao=r.bk4,so=r.p13,uo=r.Yky,co=r.mGS,lo=r._gQ,po=r.Dfv,fo=r.bd6,ho=r.eKV,mo=r.EQD,go=r.QNm,yo=r.yaX,vo=r.X3h,bo=r.Buv,Eo=r._yy,_o=r.l3m,Io=r.aVo,So=r.f4i,To=r.FoD,Co=r.O0T,wo=r.yyj,Po=r.rCU,Do=r.l9N,Ao=r.EOH,Oo=r.LkV,No=r.ZPm,Ro=r.mKo,Fo=r.RZ6,ko=r.Dvk,xo=r.HBH,Uo=r.McM;export{i as AccessDeniedReason,o as AccountAccessMethod,a as AccountAccessRole,s as AccountStatus,u as AddonDependencyFragmentDoc,c as AddonFragmentDoc,l as AddonSortFields,p as AggregationFunction,d as Alignment,f as ApiKeyScopeAction,h as ApiKeyScopeResource,m as ApiKeySortFields,g as ApiKeyType,y as ApplySubscriptionDocument,v as ApplySubscriptionFragmentDoc,b as ArchiveCustomerDocument,E as Auth0ApplicationType,_ as AutoRechargeSettingsFragmentDoc,I as BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT,S as BaseEntitlement,T as BillingAnchor,C as BillingCadence,w as BillingModel,P as BillingPeriod,D as BillingVendorIdentifier,A as BooleanEntitlement,O as BooleanEntitlementFallback,N as BooleanEntitlementOptions,R as CREDIT_DEFAULT_FALLBACK_ENTITLEMENT,F as CancelSubscriptionDocument,k as CancelSubscriptionUpdatesDocument,x as ChangeType,U as ChargeType,M as CheckoutConfigurationFragmentDoc,L as CheckoutStateFragmentDoc,j as ClientConfiguration,V as ConditionOperation,B as ConsumeCreditsAsyncDocument,G as ConsumeCreditsDocument,q as ContractState,$ as ContractType,Q as CouponFragmentDoc,H as CouponSortFields,z as CouponSource,W as CouponStatus,Z as CouponType,Y as CreateCouponDocument,K as CreatePaymentSessionDocument,J as CreateSubscriptionDocument,X as CreditBalanceFragmentDoc,ee as CreditBalanceUpdatedPayloadFragmentDoc,te as CreditCadence,ne as CreditConsumptionResponseFragmentDoc,re as CreditCostEstimationFragmentDoc,ie as CreditEntitlement,oe as CreditEntitlementFallback,ae as CreditEntitlementFragmentDoc,se as CreditEntitlementOptions,ue as CreditGrantCadence,ce as CreditGrantFragmentDoc,le as CreditGrantInvoiceBillingReason,pe as CreditGrantInvoiceFragmentDoc,de as CreditGrantInvoiceStatus,fe as CreditGrantSourceType,he as CreditGrantStatus,me as CreditGrantType,ge as CreditGrantTypeInput,ye as CreditLedgerEventType,ve as CreditLedgerFragmentDoc,be as CreditUsageFragmentDoc,Ee as CreditUsageTimeRange,_e as CreditsBalanceSummaryFragmentDoc,Ie as Currency,Se as CustomCurrencyStatus,Te as CustomerEntitlementsResult,Ce as CustomerEntitlementsResultV2,we as CustomerFragmentDoc,Pe as CustomerModel,De as CustomerPortalBillingInformationFragmentDoc,Ae as CustomerPortalConfigurationFragmentDoc,Oe as CustomerPortalEntitlementFragmentDoc,Ne as CustomerPortalFragmentDoc,Re as CustomerPortalPromotionalEntitlementFragmentDoc,Fe as CustomerPortalSubscriptionAddonFragmentDoc,ke as CustomerPortalSubscriptionFragmentDoc,xe as CustomerPortalSubscriptionPriceFragmentDoc,Ue as CustomerPortalSubscriptionScheduledUpdateDataFragmentDoc,Me as CustomerResourceFragmentDoc,Le as CustomerResourceSortFields,je as CustomerSortFields,Ve as CustomerStatisticsFragmentDoc,Be as CustomerSubscriptionSortFields,Ge as CustomerWithSubscriptionsFragmentDoc,qe as DataExportJobStatus,$e as DataExportSourceType,Qe as DelegateSubscriptionToCustomerDocument,He as Department,ze as DetachCustomerPaymentMethodDocument,We as DiscountDurationType,Ze as DiscountType,Ye as ENUM_DEFAULT_FALLBACK_ENTITLEMENT,Ke as Entitlement,Je as EntitlementBehavior,Xe as EntitlementFragmentDoc,et as EntitlementReferenceFragmentDoc,tt as EntitlementResetPeriod,nt as EntitlementType,rt as EntitlementUnionFragmentDoc,it as EntitlementUsageUpdatedFragmentDoc,ot as EntitlementV2,at as EntitlementsFallback,st as EntitlementsStateAccessDeniedReason,ut as EntitlementsUpdatedPayloadFragmentDoc,ct as EntitlementsUpdatedV2PayloadFragmentDoc,lt as EntitySelectionMode,pt as EnumEntitlement,dt as EnumEntitlementFallback,ft as EnumEntitlementOptions,ht as EnvironmentAccessRole,mt as EnvironmentExportState,gt as EnvironmentProvisionStatus,yt as EnvironmentSortFields,vt as EnvironmentType,bt as ErrorCode,Et as EstimateEventCostDocument,_t as EstimateSubscriptionDocument,It as EstimateSubscriptionUpdateDocument,St as EstimateUsageCostDocument,Tt as EstimationRequestWarning,Ct as EstimationWarningCode,wt as EventActor,Pt as EventEntityType,Dt as EventLogSortFields,At as EventLogType,Ot as EventQueueProvisioningStatus,Nt as ExperimentGroupType,Rt as ExperimentSortFields,Ft as ExperimentStatus,kt as FeatureEntitlementFragmentDoc,xt as FeatureFragmentDoc,Ut as FeatureGroupSortFields,Mt as FeatureGroupStatus,Lt as FeatureSortFields,jt as FeatureStatus,Vt as FeatureType,Bt as FontVariantFragmentDoc,Gt as FontWeight,qt as GetActiveSubscriptionsDocument,$t as GetActiveSubscriptionsListDocument,Qt as GetAutomaticRechargeConfigurationDocument,Ht as GetCheckoutStateDocument,zt as GetCouponsDocument,Wt as GetCreditBalanceDocument,Zt as GetCreditGrantsDocument,Yt as GetCreditLedgerDocument,Kt as GetCreditUsageDocument,Jt as GetCustomerByIdDocument,Xt as GetCustomerPortalByRefIdDocument,en as GetCustomerStatisticsDocument,tn as GetEntitlementDocument,nn as GetEntitlementV2Document,rn as GetEntitlementsDocument,on as GetEntitlementsStateDocument,an as GetMockPaywallDocument,sn as GetPaywallDocument,un as GetProductsDocument,cn as GetSdkConfigurationDocument,ln as GetSubscriptionDocument,pn as GetSubscriptionsDocument,dn as GetUsageHistoryDocument,fn as GetUsageHistoryV2Document,hn as GrantCreditsDocument,mn as GrantExpirationPeriod,gn as GrantPromotionalEntitlementsDocument,yn as GrantPromotionalEntitlementsGroupDocument,vn as HookSortFields,bn as HookStatus,En as ImmediateSubscriptionPreviewInvoiceFragmentDoc,_n as ImportCustomerBulkDocument,In as ImportCustomerDocument,Sn as ImportIntegrationTaskSortFields,Tn as ImportSubscriptionsBulkDocument,Cn as IntegrationSortFields,wn as InvoiceLineItemType,Pn as LayoutConfigurationFragmentDoc,Dn as LogConfiguration,An as LogLevel,On as Logger,Nn as METERED_DEFAULT_FALLBACK_ENTITLEMENT,Rn as MemberSortFields,Fn as MemberStatus,kn as MergeApplyState,xn as MeterType,Un as MeteredEntitlement,Mn as MeteredEntitlementFallback,Ln as MeteredEntitlementOptions,jn as MigrateSubscriptionToLatestDocument,Vn as MockPaywallAddonDependencyFragmentDoc,Bn as MockPaywallAddonFragmentDoc,Gn as MockPaywallPackageEntitlementFragmentDoc,qn as MockPaywallPlanCompatiblePackageGroupsFragmentDoc,$n as MockPaywallPlanFragmentDoc,Qn as MockPaywallPriceFragmentDoc,Hn as MonthlyAccordingTo,zn as NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT,Wn as NumericEntitlement,Zn as NumericEntitlementFallback,Yn as NumericEntitlementOptions,Kn as OfferSortFields,Jn as OfferStatus,Xn as OfflineStigg,er as OnCreditBalanceUpdatedDocument,tr as OnEntitlementsUpdatedDocument,nr as OnEntitlementsUpdatedV2Document,rr as OnPackagePublishedDocument,ir as OnUsageUpdatedDocument,or as OnUsageUpdatedV2Document,ar as OverageBillingPeriod,sr as OveragePriceFragmentDoc,ur as PackageCreditEntitlementFragmentDoc,cr as PackageDtoSortFields,lr as PackageEntitlementFragmentDoc,pr as PackageEntitlementSortFields,dr as PackageEntitlementUnionFragmentDoc,fr as PackageFeatureEntitlementFragmentDoc,hr as PackageGroupSortFields,mr as PackageGroupStatus,gr as PackagePublishedPayloadFragmentDoc,yr as PackageStatus,vr as PageInfoFragmentDoc,br as PaymentCollection,Er as PaymentCollectionMethod,_r as PaymentMethodType,Ir as PaymentSessionFragmentDoc,Sr as PaywallCalculatedPricePointsFragmentDoc,Tr as PaywallConfigurationFragmentDoc,Cr as PaywallCurrencyFragmentDoc,wr as PaywallFragmentDoc,Pr as PlanChangeType,Dr as PlanCompatiblePackageGroupsFragmentDoc,Ar as PlanFragmentDoc,Or as PlanSortFields,Nr as PreviewNextInvoiceDocument,Rr as PreviewSubscriptionDocument,Fr as PriceFragmentDoc,kr as PriceSortFields,xr as PriceTierFragmentDoc,Ur as PricingType,Mr as ProductFragmentDoc,Lr as ProductSortFields,jr as ProductStatus,Vr as PromotionalEntitlementFragmentDoc,Br as PromotionalEntitlementPeriod,Gr as PromotionalEntitlementSortFields,qr as PromotionalEntitlementStatus,$r as ProrationBehavior,Qr as ProvisionCustomerDocument,Hr as ProvisionCustomerFragmentDoc,zr as ProvisionSubscriptionDocument,Wr as ProvisionSubscriptionFragmentDoc,Zr as ProvisionSubscriptionStatus,Yr as PublishMigrationType,Kr as ReportEntitlementCheckRequestedDocument,Jr as ReportEventDocument,Xr as ReportUsageBulkDocument,ei as ReportUsageDocument,ti as ReportUsageFragmentDoc,ni as ResetPeriodConfigurationFragmentDoc,ri as RevokePromotionalEntitlementDocument,ii as RevokePromotionalEntitlementsGroupDocument,oi as SaveAutomaticRechargeConfigurationDocument,ai as ScheduleStrategy,si as ScheduleVariablesFragmentDoc,ui as SlimCustomCurrencyFragmentDoc,ci as SlimCustomerFragmentDoc,li as SlimSubscriptionFragmentDoc,pi as SlimSubscriptionFragmentV2FragmentDoc,di as SortDirection,fi as SortNulls,hi as SourceType,mi as Stigg,gi as StiggClient,yi as StiggManagement,vi as StripeAccountMode,bi as StripeAccountSource,Ei as StripeCheckoutCredentialsFragmentDoc,_i as SubscriptionAddonSortFields,Ii as SubscriptionBillingCycleAnchor,Si as SubscriptionCancelReason,Ti as SubscriptionCancellationAction,Ci as SubscriptionCancellationTime,wi as SubscriptionCouponStatus,Pi as SubscriptionDecisionStrategy,Di as SubscriptionEndSetup,Ai as SubscriptionEntitlementSortFields,Oi as SubscriptionFragmentDoc,Ni as SubscriptionFutureUpdateDataFragmentDoc,Ri as SubscriptionInvoiceBillingReason,Fi as SubscriptionInvoiceFragmentDoc,ki as SubscriptionInvoicePreviewFragmentDoc,xi as SubscriptionInvoiceStatus,Ui as SubscriptionMigrationTaskSortFields,Mi as SubscriptionMigrationTime,Li as SubscriptionPreviewFragmentDoc,ji as SubscriptionPreviewInvoiceFragmentDoc,Vi as SubscriptionPreviewV2FragmentDoc,Bi as SubscriptionPriceSortFields,Gi as SubscriptionProrationBehavior,qi as SubscriptionQueryFragmentDoc,$i as SubscriptionQuerySortFields,Qi as SubscriptionScheduleStatus,Hi as SubscriptionScheduleType,zi as SubscriptionScheduledUpdateDataFragmentDoc,Wi as SubscriptionStartSetup,Zi as SubscriptionStatus,Yi as SubscriptionTrialConfigurationFragmentDoc,Ki as SubscriptionUpdateUsageCutoffBehavior,Ji as SyncStatus,Xi as TaskStatus,eo as TaskType,to as ThresholdType,no as TiersMode,ro as TotalPriceFragmentDoc,io as TransferSubscriptionDocument,oo as TransferSubscriptionToResourceDocument,ao as TrialEndBehavior,so as TrialPeriodUnits,uo as Types,co as TypographyConfigurationFragmentDoc,lo as UnarchiveCustomerDocument,po as UnitTransformationRound,fo as UnlinkPromotionalEntitlementsGroupDocument,ho as UpdateCustomerDocument,mo as UpdateSubscriptionDocument,go as UsageHistoryFragmentDoc,yo as UsageHistoryV2FragmentDoc,vo as UsageMarkerType,bo as UsageMeasurementSortFields,Eo as UsageUpdateBehavior,_o as UsageUpdatedFragmentDoc,Io as UsageUpdatedV2PayloadFragmentDoc,So as UsageV2FragmentDoc,To as VendorIdentifier,Co as VendorType,wo as VoidCreditGrantDocument,Po as WeeklyAccordingTo,Do as WidgetType,Ao as YearlyAccordingTo,Oo as ZuoraCheckoutCredentialsFragmentDoc,No as default,Ro as getSdk,Fo as isCreditEntitlementFragment,ko as isCreditEntitlementWithSummary,xo as isFeatureEntitlementFragment,Uo as isFeatureEntitlementWithSummary};
|
|
2
|
+
var e={3616:function(e,t,n){!function(e){!function(t){var r="undefined"!=typeof globalThis&&globalThis||void 0!==e&&e||void 0!==n.g&&n.g||{},i="URLSearchParams"in r,o="Symbol"in r&&"iterator"in Symbol,a="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,u="ArrayBuffer"in r;if(u)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function p(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function m(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function g(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function y(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():u&&a&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,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):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=m(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(){if(this._bodyArrayBuffer)return m(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(a)return this.blob().then(y);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,i,o=m(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,n=g(t=new FileReader),i=(r=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?r[1]:"utf-8",t.readAsText(e,i),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)},s&&(this.formData=function(){return this.text().then(I)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=p(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[p(e)]},h.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},h.prototype.set=function(e,t){this.map[p(e)]=d(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),f(e)},h.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),f(e)},h.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),f(e)},o&&(h.prototype[Symbol.iterator]=h.prototype.entries);var E=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,i,o=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=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 h(t.headers)),this.method=(i=(n=t.method||this.method||"GET").toUpperCase(),E.indexOf(i)>-1?i:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function I(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 S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var T=[301,302,303,307,308];S.redirect=function(e,t){if(-1===T.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},t.DOMException=r.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 C(e,n){return new Promise(function(i,o){var s=new _(e,n);if(s.signal&&s.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function l(){c.abort()}if(c.onload=function(){var e,t,n={statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(e){console.warn("Response "+e.message)}}}),t)};0===s.url.indexOf("file://")&&(c.status<200||c.status>599)?n.status=200:n.status=c.status,n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var r="response"in c?c.response:c.responseText;setTimeout(function(){i(new S(r,n))},0)},c.onerror=function(){setTimeout(function(){o(new TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){o(new TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){o(new t.DOMException("Aborted","AbortError"))},0)},c.open(s.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(s.url),!0),"include"===s.credentials?c.withCredentials=!0:"omit"===s.credentials&&(c.withCredentials=!1),"responseType"in c&&(a?c.responseType="blob":u&&(c.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof h||r.Headers&&n.headers instanceof r.Headers)){var f=[];Object.getOwnPropertyNames(n.headers).forEach(function(e){f.push(p(e)),c.setRequestHeader(e,d(n.headers[e]))}),s.headers.forEach(function(e,t){-1===f.indexOf(t)&&c.setRequestHeader(t,e)})}else s.headers.forEach(function(e,t){c.setRequestHeader(t,e)});s.signal&&(s.signal.addEventListener("abort",l),c.onreadystatechange=function(){4===c.readyState&&s.signal.removeEventListener("abort",l)}),c.send(void 0===s._bodyInit?null:s._bodyInit)})}C.polyfill=!0,r.fetch||(r.fetch=C,r.Headers=h,r.Request=_,r.Response=S),t.Headers=h,t.Request=_,t.Response=S,t.fetch=C,Object.defineProperty(t,"__esModule",{value:!0})}({})}("undefined"!=typeof self?self:this)},6279:(e,t,n)=>{var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g,i=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==n.g&&n.g||{},i="URLSearchParams"in r,o="Symbol"in r&&"iterator"in Symbol,a="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,u="ArrayBuffer"in r;if(u)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function p(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function m(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function g(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function y(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():u&&a&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,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):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=m(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(){if(this._bodyArrayBuffer)return m(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(a)return this.blob().then(y);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,i,o=m(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,n=g(t=new FileReader),i=(r=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?r[1]:"utf-8",t.readAsText(e,i),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)},s&&(this.formData=function(){return this.text().then(I)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=p(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[p(e)]},h.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},h.prototype.set=function(e,t){this.map[p(e)]=d(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),f(e)},h.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),f(e)},h.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),f(e)},o&&(h.prototype[Symbol.iterator]=h.prototype.entries);var E=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,i,o=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=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 h(t.headers)),this.method=(i=(n=t.method||this.method||"GET").toUpperCase(),E.indexOf(i)>-1?i:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function I(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 S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var T=[301,302,303,307,308];S.redirect=function(e,t){if(-1===T.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},t.DOMException=r.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 C(e,n){return new Promise(function(i,o){var s=new _(e,n);if(s.signal&&s.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function l(){c.abort()}if(c.onload=function(){var e,t,n={statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(e){console.warn("Response "+e.message)}}}),t)};0===s.url.indexOf("file://")&&(c.status<200||c.status>599)?n.status=200:n.status=c.status,n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var r="response"in c?c.response:c.responseText;setTimeout(function(){i(new S(r,n))},0)},c.onerror=function(){setTimeout(function(){o(new TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){o(new TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){o(new t.DOMException("Aborted","AbortError"))},0)},c.open(s.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(s.url),!0),"include"===s.credentials?c.withCredentials=!0:"omit"===s.credentials&&(c.withCredentials=!1),"responseType"in c&&(a?c.responseType="blob":u&&(c.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof h||r.Headers&&n.headers instanceof r.Headers)){var f=[];Object.getOwnPropertyNames(n.headers).forEach(function(e){f.push(p(e)),c.setRequestHeader(e,d(n.headers[e]))}),s.headers.forEach(function(e,t){-1===f.indexOf(t)&&c.setRequestHeader(t,e)})}else s.headers.forEach(function(e,t){c.setRequestHeader(t,e)});s.signal&&(s.signal.addEventListener("abort",l),c.onreadystatechange=function(){4===c.readyState&&s.signal.removeEventListener("abort",l)}),c.send(void 0===s._bodyInit?null:s._bodyInit)})}C.polyfill=!0,r.fetch||(r.fetch=C,r.Headers=h,r.Request=_,r.Response=S),t.Headers=h,t.Request=_,t.Response=S,t.fetch=C,Object.defineProperty(t,"__esModule",{value:!0})}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=r.fetch?r:i;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},8879:function(e){e.exports=function(){var e=6e4,t=36e5,n="millisecond",r="second",i="minute",o="hour",a="day",s="week",u="month",c="quarter",l="year",p="date",d="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,u),o=n-i<0,a=t.clone().add(r+(o?-1:1),u);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:l,w:s,d:a,D:p,h:o,m:i,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",b={};b[v]=m;var E="$isDayjsObject",_=function(e){return e instanceof C||!(!e||!e[E])},I=function e(t,n,r){var i;if(!t)return v;if("string"==typeof t){var o=t.toLowerCase();b[o]&&(i=o),n&&(b[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(v=i),i||!r&&v},S=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},T=y;T.l=I,T.i=_,T.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=I(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[E]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return T},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return S(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<S(e)},g.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,c=!!T.u(t)||t,d=T.p(e),f=function(e,t){var r=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(a)},h=function(e,t){return T.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case l:return c?f(1,0):f(31,11);case u:return c?f(1,g):f(0,g+1);case s:var b=this.$locale().weekStart||0,E=(m<b?m+7:m)-b;return f(c?y-E:y+(6-E),g);case a:case p:return h(v+"Hours",0);case o:return h(v+"Minutes",1);case i:return h(v+"Seconds",2);case r:return h(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,c=T.p(e),d="set"+(this.$u?"UTC":""),f=(s={},s[a]=d+"Date",s[p]=d+"Date",s[u]=d+"Month",s[l]=d+"FullYear",s[o]=d+"Hours",s[i]=d+"Minutes",s[r]=d+"Seconds",s[n]=d+"Milliseconds",s)[c],h=c===a?this.$D+(t-this.$W):t;if(c===u||c===l){var m=this.clone().set(p,1);m.$d[f](h),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[T.p(e)]()},g.add=function(n,c){var p,d=this;n=Number(n);var f=T.p(c),h=function(e){var t=S(d);return T.w(t.date(t.date()+Math.round(e*n)),d)};if(f===u)return this.set(u,this.$M+n);if(f===l)return this.set(l,this.$y+n);if(f===a)return h(1);if(f===s)return h(7);var m=(p={},p[i]=e,p[o]=t,p[r]=1e3,p)[f]||1,g=this.$d.getTime()+n*m;return T.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=T.z(this),o=this.$H,a=this.$m,s=this.$M,u=n.weekdays,c=n.months,l=n.meridiem,p=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},f=function(e){return T.s(o%12||12,e,"0")},m=l||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return T.s(t.$y,4,"0");case"M":return s+1;case"MM":return T.s(s+1,2,"0");case"MMM":return p(n.monthsShort,s,c,3);case"MMMM":return p(c,s);case"D":return t.$D;case"DD":return T.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(n.weekdaysMin,t.$W,u,2);case"ddd":return p(n.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(o);case"HH":return T.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(o,a,!0);case"A":return m(o,a,!1);case"m":return String(a);case"mm":return T.s(a,2,"0");case"s":return String(t.$s);case"ss":return T.s(t.$s,2,"0");case"SSS":return T.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,p,d){var f,h=this,m=T.p(p),g=S(n),y=(g.utcOffset()-this.utcOffset())*e,v=this-g,b=function(){return T.m(h,g)};switch(m){case l:f=b()/12;break;case u:f=b();break;case c:f=b()/3;break;case s:f=(v-y)/6048e5;break;case a:f=(v-y)/864e5;break;case o:f=v/t;break;case i:f=v/e;break;case r:f=v/1e3;break;default:f=v}return d?f:T.a(f)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return b[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=I(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return T.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),w=C.prototype;return S.prototype=w,[["$ms",n],["$s",r],["$m",i],["$H",o],["$W",a],["$M",u],["$y",l],["$D",p]].forEach(function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),S.extend=function(e,t){return e.$i||(e(t,C,S),e.$i=!0),S},S.locale=I,S.isDayjs=_,S.unix=function(e){return S(1e3*e)},S.en=b[v],S.Ls=b,S.p={},S}()},2699:e=>{var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,i)})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,a,c;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(o){r.once&&e.removeEventListener(t,i),n(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=h(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},3591:function(e){e.exports=function(){function e(e){return Number.isInteger(e)&&e>=0}function t(e){this.name="ArgumentError",this.message=e}return function(n,r){if(r=r||{},"function"!=typeof n)throw new t("fetch must be a function");if("object"!=typeof r)throw new t("defaults must be an object");if(void 0!==r.retries&&!e(r.retries))throw new t("retries must be a positive integer");if(void 0!==r.retryDelay&&!e(r.retryDelay)&&"function"!=typeof r.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");if(void 0!==r.retryOn&&!Array.isArray(r.retryOn)&&"function"!=typeof r.retryOn)throw new t("retryOn property expects an array or function");return r=Object.assign({retries:3,retryDelay:1e3,retryOn:[]},r),function(i,o){var a=r.retries,s=r.retryDelay,u=r.retryOn;if(o&&void 0!==o.retries){if(!e(o.retries))throw new t("retries must be a positive integer");a=o.retries}if(o&&void 0!==o.retryDelay){if(!e(o.retryDelay)&&"function"!=typeof o.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");s=o.retryDelay}if(o&&o.retryOn){if(!Array.isArray(o.retryOn)&&"function"!=typeof o.retryOn)throw new t("retryOn property expects an array or function");u=o.retryOn}return new Promise(function(e,t){var r=function(r){var s="undefined"!=typeof Request&&i instanceof Request?i.clone():i;n(s,o).then(function(n){if(Array.isArray(u)&&-1===u.indexOf(n.status))e(n);else if("function"==typeof u)try{return Promise.resolve(u(r,null,n)).then(function(t){t?c(r,null,n):e(n)}).catch(t)}catch(e){t(e)}else r<a?c(r,null,n):e(n)}).catch(function(e){if("function"==typeof u)try{Promise.resolve(u(r,e,null)).then(function(n){n?c(r,e,null):t(e)}).catch(function(e){t(e)})}catch(e){t(e)}else r<a?c(r,e,null):t(e)})};function c(e,t,n){var i="function"==typeof s?s(e,t,n):s;setTimeout(function(){r(++e)},i)}r(0)})}}}()},8749:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(5836),o=r(n(1510)),a=n(7077),s=function(e){return(0,i.isExtractableFile)(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.default=function(e,t,n,r){void 0===r&&(r=a.defaultJsonSerializer);var u=(0,i.extractFiles)({query:e,variables:t,operationName:n},"",s),c=u.clone,l=u.files;if(0===l.size){if(!Array.isArray(e))return r.stringify(c);if(void 0!==t&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");var p=e.reduce(function(e,n,r){return e.push({query:n,variables:t?t[r]:void 0}),e},[]);return r.stringify(p)}var d=new("undefined"==typeof FormData?o.default:FormData);d.append("operations",r.stringify(c));var f={},h=0;return l.forEach(function(e){f[++h]=e}),d.append("map",r.stringify(f)),h=0,l.forEach(function(e,t){d.append("".concat(++h),t)}),d}},7077:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defaultJsonSerializer=void 0,t.defaultJsonSerializer={parse:JSON.parse,stringify:JSON.stringify}},3210:function(e,t,n){var r=this&&this.__assign||function(){return r=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},r.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLWebSocketClient=void 0;var a=n(8328),s=n(8139),u="ping",c="pong",l="complete",p=function(){function e(e,t,n){this._type=e,this._payload=t,this._id=n}return Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"payload",{get:function(){return this._payload},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){var e={type:this.type};return null!=this.id&&null!=this.id&&(e.id=this.id),null!=this.payload&&null!=this.payload&&(e.payload=this.payload),JSON.stringify(e)},enumerable:!1,configurable:!0}),e.parse=function(t,n){var r=JSON.parse(t),i=r.type,o=r.payload,a=r.id;return new e(i,n(o),a)},e}(),d=function(){function e(e,t){var n=t.onInit,s=t.onAcknowledged,d=t.onPing,m=t.onPong,g=this;this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=e,e.onopen=function(t){return i(g,void 0,void 0,function(){var t,r,i,a;return o(this,function(o){switch(o.label){case 0:return this.socketState.acknowledged=!1,this.socketState.subscriptions={},r=(t=e).send,i=f,n?[4,n()]:[3,2];case 1:return a=o.sent(),[3,3];case 2:a=null,o.label=3;case 3:return r.apply(t,[i.apply(void 0,[a]).text]),[2]}})})},e.onclose=function(e){g.socketState.acknowledged=!1,g.socketState.subscriptions={}},e.onerror=function(e){console.error(e)},e.onmessage=function(t){try{var n=(v=t.data,void 0===b&&(b=function(e){return e}),p.parse(v,b));switch(n.type){case"connection_ack":return void(g.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(g.socketState.acknowledged=!0,s&&s(n.payload)));case u:return void(d?d(n.payload).then(function(t){return e.send(h(t).text)}):e.send(h(null).text));case c:return void(m&&m(n.payload))}if(!g.socketState.acknowledged)return;if(void 0===n.id||null===n.id||!g.socketState.subscriptions[n.id])return;var i=g.socketState.subscriptions[n.id],o=i.query,f=i.variables,y=i.subscriber;switch(n.type){case"next":return!n.payload.errors&&n.payload.data&&y.next&&y.next(n.payload.data),void(n.payload.errors&&y.error&&y.error(new a.ClientError(r(r({},n.payload),{status:200}),{query:o,variables:f})));case"error":return void(y.error&&y.error(new a.ClientError({errors:n.payload,status:200},{query:o,variables:f})));case l:return y.complete&&y.complete(),void delete g.socketState.subscriptions[n.id]}}catch(t){console.error(t),e.close(1006)}var v,b;e.close(4400,"Unknown graphql-ws message.")}}return e.prototype.makeSubscribe=function(e,t,n,r){var i,o,a=this,s=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[s]={query:e,variables:r,subscriber:n},this.socket.send((i=s,o={query:e,operationName:t,variables:r},new p("subscribe",o,i)).text),function(){a.socket.send(function(e){return new p(l,void 0,e)}(s).text),delete a.socketState.subscriptions[s]}},e.prototype.rawRequest=function(e,t){var n=this;return new Promise(function(r,i){var o;n.rawSubscribe(e,{next:function(e,t){return o={data:e,extensions:t}},error:i,complete:function(){return r(o)}},t)})},e.prototype.request=function(e,t){var n=this;return new Promise(function(r,i){var o;n.subscribe(e,{next:function(e){return o=e},error:i,complete:function(){return r(o)}},t)})},e.prototype.subscribe=function(e,t,n){var r=(0,s.resolveRequestDocument)(e),i=r.query,o=r.operationName;return this.makeSubscribe(i,o,t,n)},e.prototype.rawSubscribe=function(e,t,n){return this.makeSubscribe(e,void 0,t,n)},e.prototype.ping=function(e){this.socket.send(function(e){return new p(u,e,void 0)}(e).text)},e.prototype.close=function(){this.socket.close(1e3)},e.PROTOCOL="graphql-transport-ws",e}();function f(e){return new p("connection_init",e)}function h(e){return new p(c,e,void 0)}t.GraphQLWebSocketClient=d},6647:function(e,t,n){var r=this&&this.__assign||function(){return r=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},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})},u=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},c=this&&this.__rest||function(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},l=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;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))},p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveRequestDocument=t.GraphQLWebSocketClient=t.gql=t.batchRequests=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;var d=a(n(6279)),f=d,h=p(n(8749)),m=n(7077),g=n(8041),y=n(8328);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return y.ClientError}});var v=n(8139),b=function(e){var t={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||f&&f.Headers&&e instanceof f.Headers?t=function(e){var t={};return e.forEach(function(e,n){t[n]=e}),t}(e):Array.isArray(e)?e.forEach(function(e){var n=e[0],r=e[1];t[n]=r}):t=e),t},E=function(e){return e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},_=function(e){var t=e.url,n=e.query,i=e.variables,o=e.operationName,a=e.headers,l=e.fetch,p=e.fetchOptions,d=e.middleware;return s(void 0,void 0,void 0,function(){var e,s,f;return u(this,function(u){switch(u.label){case 0:return e=(0,h.default)(n,i,o,p.jsonSerializer),s=r({method:"POST",headers:r(r({},"string"==typeof e?{"Content-Type":"application/json"}:{}),a),body:e},p),d?[4,Promise.resolve(d(r(r({},s),{url:t,operationName:o,variables:i})))]:[3,2];case 1:f=u.sent(),t=f.url,s=c(f,["url"]),u.label=2;case 2:return[4,l(t,s)];case 3:return[2,u.sent()]}})})},I=function(e){var t=e.url,n=e.query,i=e.variables,o=e.operationName,a=e.headers,l=e.fetch,p=e.fetchOptions,d=e.middleware;return s(void 0,void 0,void 0,function(){var e,s,f;return u(this,function(u){switch(u.label){case 0:return e=function(e){var t=e.query,n=e.variables,r=e.operationName,i=e.jsonSerializer;if(!Array.isArray(t)){var o=["query=".concat(encodeURIComponent(E(t)))];return n&&o.push("variables=".concat(encodeURIComponent(i.stringify(n)))),r&&o.push("operationName=".concat(encodeURIComponent(r))),o.join("&")}if(void 0!==n&&!Array.isArray(n))throw new Error("Cannot create query with given variable type, array expected");var a=t.reduce(function(e,t,r){return e.push({query:E(t),variables:n?i.stringify(n[r]):void 0}),e},[]);return"query=".concat(encodeURIComponent(i.stringify(a)))}({query:n,variables:i,operationName:o,jsonSerializer:p.jsonSerializer}),s=r({method:"GET",headers:a},p),d?[4,Promise.resolve(d(r(r({},s),{url:t,operationName:o,variables:i})))]:[3,2];case 1:f=u.sent(),t=f.url,s=c(f,["url"]),u.label=2;case 2:return[4,l("".concat(t,"?").concat(e),s)];case 3:return[2,u.sent()]}})})},S=function(){function e(e,t){void 0===t&&(t={}),this.url=e,this.options=t}return e.prototype.rawRequest=function(e,t,n){return s(this,void 0,void 0,function(){var i,o,a,s,l,p,f,h,m,y,E,_;return u(this,function(u){return i=(0,g.parseRawRequestArgs)(e,t,n),o=this.options,a=o.headers,s=o.fetch,l=void 0===s?d.default:s,p=o.method,f=void 0===p?"POST":p,h=o.requestMiddleware,m=o.responseMiddleware,y=c(o,["headers","fetch","method","requestMiddleware","responseMiddleware"]),E=this.url,void 0!==i.signal&&(y.signal=i.signal),_=(0,v.resolveRequestDocument)(i.query).operationName,[2,T({url:E,query:i.query,variables:i.variables,headers:r(r({},b(P(a))),b(i.requestHeaders)),operationName:_,fetch:l,method:f,fetchOptions:y,middleware:h}).then(function(e){return m&&m(e),e}).catch(function(e){throw m&&m(e),e})]})})},e.prototype.request=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return s(this,void 0,void 0,function(){var n,i,o,a,s,l,p,f,h,m,y,E,_,I,S,C;return u(this,function(u){return n=t[0],i=t[1],o=(0,g.parseRequestArgs)(e,n,i),a=this.options,s=a.headers,l=a.fetch,p=void 0===l?d.default:l,f=a.method,h=void 0===f?"POST":f,m=a.requestMiddleware,y=a.responseMiddleware,E=c(a,["headers","fetch","method","requestMiddleware","responseMiddleware"]),_=this.url,void 0!==o.signal&&(E.signal=o.signal),I=(0,v.resolveRequestDocument)(o.document),S=I.query,C=I.operationName,[2,T({url:_,query:S,variables:o.variables,headers:r(r({},b(P(s))),b(o.requestHeaders)),operationName:C,fetch:p,method:h,fetchOptions:E,middleware:m}).then(function(e){return y&&y(e),e.data}).catch(function(e){throw y&&y(e),e})]})})},e.prototype.batchRequests=function(e,t){var n=(0,g.parseBatchRequestArgs)(e,t),i=this.options,o=i.headers,a=i.fetch,s=void 0===a?d.default:a,u=i.method,l=void 0===u?"POST":u,p=i.requestMiddleware,f=i.responseMiddleware,h=c(i,["headers","fetch","method","requestMiddleware","responseMiddleware"]),m=this.url;void 0!==n.signal&&(h.signal=n.signal);var y=n.documents.map(function(e){var t=e.document;return(0,v.resolveRequestDocument)(t).query}),E=n.documents.map(function(e){return e.variables});return T({url:m,query:y,variables:E,headers:r(r({},b(P(o))),b(n.requestHeaders)),operationName:void 0,fetch:s,method:l,fetchOptions:h,middleware:p}).then(function(e){return f&&f(e),e.data}).catch(function(e){throw f&&f(e),e})},e.prototype.setHeaders=function(e){return this.options.headers=e,this},e.prototype.setHeader=function(e,t){var n,r=this.options.headers;return r?r[e]=t:this.options.headers=((n={})[e]=t,n),this},e.prototype.setEndpoint=function(e){return this.url=e,this},e}();function T(e){var t=e.url,n=e.query,i=e.variables,o=e.headers,a=e.operationName,l=e.fetch,p=e.method,d=void 0===p?"POST":p,f=e.fetchOptions,h=e.middleware;return s(this,void 0,void 0,function(){var e,s,p,m,g,v,b,E,S,T,C;return u(this,function(u){switch(u.label){case 0:return e="POST"===d.toUpperCase()?_:I,s=Array.isArray(n),[4,e({url:t,query:n,variables:i,operationName:a,headers:o,fetch:l,fetchOptions:f,middleware:h})];case 1:return[4,w(p=u.sent(),f.jsonSerializer)];case 2:if(m=u.sent(),g=s&&Array.isArray(m)?!m.some(function(e){return!e.data}):!!m.data,v=!m.errors||"all"===f.errorPolicy||"ignore"===f.errorPolicy,p.ok&&v&&g)return b=p.headers,E=p.status,m.errors,S=c(m,["errors"]),T="ignore"===f.errorPolicy?S:m,[2,r(r({},s?{data:T}:T),{headers:b,status:E})];throw C="string"==typeof m?{error:m}:m,new y.ClientError(r(r({},C),{status:p.status,headers:p.headers}),{query:n,variables:i})}})})}function C(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return s(this,void 0,void 0,function(){var i;return u(this,function(o){return i=g.parseRequestExtendedArgs.apply(void 0,l([e,t],n,!1)),[2,new S(i.url).request(r({},i))]})})}function w(e,t){return void 0===t&&(t=m.defaultJsonSerializer),s(this,void 0,void 0,function(){var n,r,i;return u(this,function(o){switch(o.label){case 0:return e.headers.forEach(function(e,t){"content-type"===t.toLowerCase()&&(n=e)}),n&&(n.toLowerCase().startsWith("application/json")||n.toLowerCase().startsWith("application/graphql+json")||n.toLowerCase().startsWith("application/graphql-response+json"))?(i=(r=t).parse,[4,e.text()]):[3,2];case 1:return[2,i.apply(r,[o.sent()])];case 2:return[2,e.text()]}})})}function P(e){return"function"==typeof e?e():e}t.GraphQLClient=S,t.rawRequest=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return s(this,void 0,void 0,function(){var i;return u(this,function(o){return i=g.parseRawRequestExtendedArgs.apply(void 0,l([e,t],n,!1)),[2,new S(i.url).rawRequest(r({},i))]})})},t.request=C,t.batchRequests=function(e,t,n){return s(this,void 0,void 0,function(){var i;return u(this,function(o){return i=(0,g.parseBatchRequestsExtendedArgs)(e,t,n),[2,new S(i.url).batchRequests(r({},i))]})})},t.default=C,t.gql=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.reduce(function(e,n,r){return"".concat(e).concat(n).concat(r in t?t[r]:"")},"")};var D=n(3210);Object.defineProperty(t,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return D.GraphQLWebSocketClient}});var A=n(8139);Object.defineProperty(t,"resolveRequestDocument",{enumerable:!0,get:function(){return A.resolveRequestDocument}})},8041:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseBatchRequestsExtendedArgs=t.parseRawRequestExtendedArgs=t.parseRequestExtendedArgs=t.parseBatchRequestArgs=t.parseRawRequestArgs=t.parseRequestArgs=void 0,t.parseRequestArgs=function(e,t,n){return e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0}},t.parseRawRequestArgs=function(e,t,n){return e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0}},t.parseBatchRequestArgs=function(e,t){return e.documents?e:{documents:e,requestHeaders:t,signal:void 0}},t.parseRequestExtendedArgs=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1];return e.document?e:{url:e,document:t,variables:i,requestHeaders:o,signal:void 0}},t.parseRawRequestExtendedArgs=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1];return e.query?e:{url:e,query:t,variables:i,requestHeaders:o,signal:void 0}},t.parseBatchRequestsExtendedArgs=function(e,t,n){return e.documents?e:{url:e,documents:t,requestHeaders:n,signal:void 0}}},8139:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resolveRequestDocument=void 0;var r=n(7267);function i(e){var t,n=void 0,r=e.definitions.filter(function(e){return"OperationDefinition"===e.kind});return 1===r.length&&(n=null===(t=r[0].name)||void 0===t?void 0:t.value),n}t.resolveRequestDocument=function(e){if("string"==typeof e){var t=void 0;try{t=i((0,r.parse)(e))}catch(e){}return{query:e,operationName:t}}var n=i(e);return{query:(0,r.print)(e),operationName:n}}},8328:function(e,t){var n,r=this&&this.__extends||(n=function(e,t){return n=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])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClientError=void 0;var i=function(e){function t(n,r){var i=this,o="".concat(t.extractMessage(n),": ").concat(JSON.stringify({response:n,request:r}));return i=e.call(this,o)||this,Object.setPrototypeOf(i,t.prototype),i.response=n,i.request=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return r(t,e),t.extractMessage=function(e){try{return e.errors[0].message}catch(t){return"GraphQL Error (Code: ".concat(e.status,")")}},t}(Error);t.ClientError=i},9653:e=>{e.exports=function(e){var t=e.uri,n=e.name,r=e.type;this.uri=t,this.name=n,this.type=r}},7368:(e,t,n)=>{var r=n(2180);e.exports=function e(t,n,i){var o;void 0===n&&(n=""),void 0===i&&(i=r);var a=new Map;function s(e,t){var n=a.get(t);n?n.push.apply(n,e):a.set(t,e)}if(i(t))o=null,s([n],t);else{var u=n?n+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)o=Array.prototype.map.call(t,function(e,t){return s([""+u+t],e),null});else if(Array.isArray(t))o=t.map(function(t,n){var r=e(t,""+u+n,i);return r.files.forEach(s),r.clone});else if(t&&t.constructor===Object)for(var c in o={},t){var l=e(t[c],""+u+c,i);l.files.forEach(s),o[c]=l.clone}else o=t}return{clone:o,files:a}}},5836:(e,t,n)=>{t.ReactNativeFile=n(9653),t.extractFiles=n(7368),t.isExtractableFile=n(2180)},2180:(e,t,n)=>{var r=n(9653);e.exports=function(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||e instanceof r}},9515:(e,t,n)=>{var r=n(8761)(n(7772),"DataView");e.exports=r},9612:(e,t,n)=>{var r=n(2118),i=n(6909),o=n(8138),a=n(4174),s=n(7942);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=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},235:(e,t,n)=>{var r=n(3945),i=n(1846),o=n(8028),a=n(2344),s=n(4769);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=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},326:(e,t,n)=>{var r=n(8761)(n(7772),"Map");e.exports=r},6738:(e,t,n)=>{var r=n(2411),i=n(6417),o=n(6928),a=n(9493),s=n(4150);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=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},2760:(e,t,n)=>{var r=n(8761)(n(7772),"Promise");e.exports=r},2143:(e,t,n)=>{var r=n(8761)(n(7772),"Set");e.exports=r},5386:(e,t,n)=>{var r=n(6738),i=n(2842),o=n(2482);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},6571:(e,t,n)=>{var r=n(235),i=n(5243),o=n(2858),a=n(4417),s=n(8605),u=n(1418);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},857:(e,t,n)=>{var r=n(7772).Symbol;e.exports=r},9162:(e,t,n)=>{var r=n(7772).Uint8Array;e.exports=r},3215:(e,t,n)=>{var r=n(8761)(n(7772),"WeakMap");e.exports=r},9432: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)}},2517:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},7552:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},1634:(e,t,n)=>{var r=n(6473),i=n(9631),o=n(6152),a=n(3226),s=n(9045),u=n(7598),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),l=!n&&i(e),p=!n&&!l&&a(e),d=!n&&!l&&!p&&u(e),f=n||l||p||d,h=f?r(e.length,String):[],m=h.length;for(var g in e)!t&&!c.call(e,g)||f&&("length"==g||p&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},343: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}},5067: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}},7064: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}},8582:(e,t,n)=>{var r=n(3940),i=n(1225);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},91:(e,t,n)=>{var r=n(3940),i=n(1225),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},2218:(e,t,n)=>{var r=n(1225);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},7993:(e,t,n)=>{var r=n(752),i=n(249);e.exports=function(e,t){return e&&r(t,i(t),e)}},5906:(e,t,n)=>{var r=n(752),i=n(4225);e.exports=function(e,t){return e&&r(t,i(t),e)}},3940:(e,t,n)=>{var r=n(3043);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},8874:(e,t,n)=>{var r=n(6571),i=n(2517),o=n(91),a=n(7993),s=n(5906),u=n(2175),c=n(1522),l=n(7680),p=n(9987),d=n(3483),f=n(6939),h=n(940),m=n(9917),g=n(8222),y=n(8725),v=n(6152),b=n(3226),E=n(4714),_=n(9259),I=n(3679),S=n(249),T=n(4225),C="[object Arguments]",w="[object Function]",P="[object Object]",D={};D[C]=D["[object Array]"]=D["[object ArrayBuffer]"]=D["[object DataView]"]=D["[object Boolean]"]=D["[object Date]"]=D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Map]"]=D["[object Number]"]=D[P]=D["[object RegExp]"]=D["[object Set]"]=D["[object String]"]=D["[object Symbol]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D["[object Error]"]=D[w]=D["[object WeakMap]"]=!1,e.exports=function e(t,n,A,O,N,R){var F,k=1&n,x=2&n,U=4&n;if(A&&(F=N?A(t,O,N,R):A(t)),void 0!==F)return F;if(!_(t))return t;var M=v(t);if(M){if(F=m(t),!k)return c(t,F)}else{var L=h(t),j=L==w||"[object GeneratorFunction]"==L;if(b(t))return u(t,k);if(L==P||L==C||j&&!N){if(F=x||j?{}:y(t),!k)return x?p(t,s(F,t)):l(t,a(F,t))}else{if(!D[L])return N?t:{};F=g(t,L,k)}}R||(R=new r);var V=R.get(t);if(V)return V;R.set(t,F),I(t)?t.forEach(function(r){F.add(e(r,n,A,r,t,R))}):E(t)&&t.forEach(function(r,i){F.set(i,e(r,n,A,i,t,R))});var B=M?void 0:(U?x?f:d:x?T:S)(t);return i(B||t,function(r,i){B&&(r=t[i=r]),o(F,i,e(r,n,A,i,t,R))}),F}},9413:(e,t,n)=>{var r=n(9259),i=Object.create,o=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=o},4303:(e,t,n)=>{var r=n(6548),i=n(2019)(r);e.exports=i},1359:e=>{e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},2034:(e,t,n)=>{var r=n(5067),i=n(5882);e.exports=function e(t,n,o,a,s){var u=-1,c=t.length;for(o||(o=i),s||(s=[]);++u<c;){var l=t[u];n>0&&o(l)?n>1?e(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},5308:(e,t,n)=>{var r=n(5463)();e.exports=r},6548:(e,t,n)=>{var r=n(5308),i=n(249);e.exports=function(e,t){return e&&r(e,t,i)}},3324:(e,t,n)=>{var r=n(7297),i=n(3812);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},1897:(e,t,n)=>{var r=n(5067),i=n(6152);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},3366:(e,t,n)=>{var r=n(857),i=n(2107),o=n(7157),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},187:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},7832:(e,t,n)=>{var r=n(1359),i=n(2195),o=n(6024);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},5183:(e,t,n)=>{var r=n(3366),i=n(5125);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},8746:(e,t,n)=>{var r=n(1952),i=n(5125);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},1952:(e,t,n)=>{var r=n(6571),i=n(4871),o=n(1491),a=n(7416),s=n(940),u=n(6152),c=n(3226),l=n(7598),p="[object Arguments]",d="[object Array]",f="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,y){var v=u(e),b=u(t),E=v?d:s(e),_=b?d:s(t),I=(E=E==p?f:E)==f,S=(_=_==p?f:_)==f,T=E==_;if(T&&c(e)){if(!c(t))return!1;v=!0,I=!1}if(T&&!I)return y||(y=new r),v||l(e)?i(e,t,n,m,g,y):o(e,t,E,n,m,g,y);if(!(1&n)){var C=I&&h.call(e,"__wrapped__"),w=S&&h.call(t,"__wrapped__");if(C||w){var P=C?e.value():e,D=w?t.value():t;return y||(y=new r),g(P,D,n,m,y)}}return!!T&&(y||(y=new r),a(e,t,n,m,g,y))}},4511:(e,t,n)=>{var r=n(940),i=n(5125);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},7036:(e,t,n)=>{var r=n(6571),i=n(8746);e.exports=function(e,t,n,o){var a=n.length,s=a,u=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var l=(c=n[a])[0],p=e[l],d=c[1];if(u&&c[2]){if(void 0===p&&!(l in e))return!1}else{var f=new r;if(o)var h=o(p,d,l,e,t,f);if(!(void 0===h?i(d,p,3,o,f):h))return!1}}return!0}},2195:e=>{e.exports=function(e){return e!=e}},6840:(e,t,n)=>{var r=n(1049),i=n(7394),o=n(9259),a=n(7035),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,p=c.hasOwnProperty,d=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?d:s).test(a(e))}},8436:(e,t,n)=>{var r=n(940),i=n(5125);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},5522:(e,t,n)=>{var r=n(3366),i=n(1158),o=n(5125),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},8286:(e,t,n)=>{var r=n(6423),i=n(4716),o=n(3059),a=n(6152),s=n(5798);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},6411:(e,t,n)=>{var r=n(6001),i=n(4248),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},8390:(e,t,n)=>{var r=n(9259),i=n(6001),o=n(2966),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},3401:(e,t,n)=>{var r=n(4303),i=n(7878);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,function(e,r,i){o[++n]=t(e,r,i)}),o}},6423:(e,t,n)=>{var r=n(7036),i=n(5225),o=n(3477);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},4716:(e,t,n)=>{var r=n(8746),i=n(2579),o=n(5041),a=n(1401),s=n(8792),u=n(3477),c=n(3812);e.exports=function(e,t){return a(e)&&s(t)?u(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},4565:(e,t,n)=>{var r=n(6571),i=n(8582),o=n(5308),a=n(5561),s=n(9259),u=n(4225),c=n(2434);e.exports=function e(t,n,l,p,d){t!==n&&o(n,function(o,u){if(d||(d=new r),s(o))a(t,n,u,l,e,p,d);else{var f=p?p(c(t,u),o,u+"",t,n,d):void 0;void 0===f&&(f=o),i(t,u,f)}},u)}},5561:(e,t,n)=>{var r=n(8582),i=n(2175),o=n(6190),a=n(1522),s=n(8725),u=n(9631),c=n(6152),l=n(3746),p=n(3226),d=n(1049),f=n(9259),h=n(7030),m=n(7598),g=n(2434),y=n(3329);e.exports=function(e,t,n,v,b,E,_){var I=g(e,n),S=g(t,n),T=_.get(S);if(T)r(e,n,T);else{var C=E?E(I,S,n+"",e,t,_):void 0,w=void 0===C;if(w){var P=c(S),D=!P&&p(S),A=!P&&!D&&m(S);C=S,P||D||A?c(I)?C=I:l(I)?C=a(I):D?(w=!1,C=i(S,!0)):A?(w=!1,C=o(S,!0)):C=[]:h(S)||u(S)?(C=I,u(I)?C=y(I):f(I)&&!d(I)||(C=s(S))):w=!1}w&&(_.set(S,C),b(C,S,v,E,_),_.delete(S)),r(e,n,C)}}},256:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},2952:(e,t,n)=>{var r=n(3324);e.exports=function(e){return function(t){return r(t,e)}}},6060:(e,t,n)=>{var r=n(3059),i=n(3114),o=n(5251);e.exports=function(e,t){return o(i(e,t,r),e+"")}},6532:(e,t,n)=>{var r=n(6874),i=n(3043),o=n(3059),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},9872:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},4751:(e,t,n)=>{var r=n(4303);e.exports=function(e,t){var n;return r(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}},6473:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},1054:(e,t,n)=>{var r=n(857),i=n(343),o=n(6152),a=n(4795),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},1704:(e,t,n)=>{var r=n(2153),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},7826:e=>{e.exports=function(e){return function(t){return e(t)}}},9078:(e,t,n)=>{var r=n(7297),i=n(6974),o=n(2721),a=n(3812),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=-1,u=(t=r(t,e)).length;if(!u)return!0;for(;++n<u;){var c=a(t[n]);if("__proto__"===c&&!s.call(e,"__proto__"))return!1;if(("constructor"===c||"prototype"===c)&&n<u-1)return!1}var l=o(e,t);return null==l||delete l[a(i(t))]}},753:(e,t,n)=>{var r=n(343);e.exports=function(e,t){return r(t,function(t){return e[t]})}},9950:e=>{e.exports=function(e,t){return e.has(t)}},7297:(e,t,n)=>{var r=n(6152),i=n(1401),o=n(4452),a=n(6188);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},9882:(e,t,n)=>{var r=n(9162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},2175:(e,t,n)=>{e=n.nmd(e);var r=n(7772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.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}},4727:(e,t,n)=>{var r=n(9882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},6058:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},169:(e,t,n)=>{var r=n(857),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},6190:(e,t,n)=>{var r=n(9882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},1522: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}},752:(e,t,n)=>{var r=n(91),i=n(3940);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var c=t[s],l=o?o(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),a?i(n,c,l):r(n,c,l)}return n}},7680:(e,t,n)=>{var r=n(752),i=n(633);e.exports=function(e,t){return r(e,i(e),t)}},9987:(e,t,n)=>{var r=n(752),i=n(2680);e.exports=function(e,t){return r(e,i(e),t)}},4019:(e,t,n)=>{var r=n(7772)["__core-js_shared__"];e.exports=r},7263:(e,t,n)=>{var r=n(6060),i=n(2406);e.exports=function(e){return r(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t})}},2019:(e,t,n)=>{var r=n(7878);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},5463:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}},8642:(e,t,n)=>{var r=n(7030);e.exports=function(e){return r(e)?void 0:e}},3043:(e,t,n)=>{var r=n(8761),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},4871:(e,t,n)=>{var r=n(5386),i=n(7064),o=n(9950);e.exports=function(e,t,n,a,s,u){var c=1&n,l=e.length,p=t.length;if(l!=p&&!(c&&p>l))return!1;var d=u.get(e),f=u.get(t);if(d&&f)return d==t&&f==e;var h=-1,m=!0,g=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h<l;){var y=e[h],v=t[h];if(a)var b=c?a(v,y,h,t,e,u):a(y,v,h,e,t,u);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!i(t,function(e,t){if(!o(g,t)&&(y===e||s(y,e,n,a,u)))return g.push(t)})){m=!1;break}}else if(y!==v&&!s(y,v,n,a,u)){m=!1;break}}return u.delete(e),u.delete(t),m}},1491:(e,t,n)=>{var r=n(857),i=n(9162),o=n(1225),a=n(4871),s=n(5179),u=n(4207),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,p,d){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||!p(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+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 f=s;case"[object Set]":var h=1&r;if(f||(f=u),e.size!=t.size&&!h)return!1;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var g=a(f(e),f(t),r,c,p,d);return d.delete(e),g;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},7416:(e,t,n)=>{var r=n(3483),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var u=1&n,c=r(e),l=c.length;if(l!=r(t).length&&!u)return!1;for(var p=l;p--;){var d=c[p];if(!(u?d in t:i.call(t,d)))return!1}var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=u;++p<l;){var y=e[d=c[p]],v=t[d];if(o)var b=u?o(v,y,d,t,e,s):o(y,v,d,e,t,s);if(!(void 0===b?y===v||a(y,v,n,o,s):b)){m=!1;break}g||(g="constructor"==d)}if(m&&!g){var E=e.constructor,_=t.constructor;E==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof _&&_ instanceof _||(m=!1)}return s.delete(e),s.delete(t),m}},9097:(e,t,n)=>{var r=n(5676),i=n(3114),o=n(5251);e.exports=function(e){return o(i(e,void 0,r),e+"")}},1242:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},3483:(e,t,n)=>{var r=n(1897),i=n(633),o=n(249);e.exports=function(e){return r(e,o,i)}},6939:(e,t,n)=>{var r=n(1897),i=n(2680),o=n(4225);e.exports=function(e){return r(e,o,i)}},7937:(e,t,n)=>{var r=n(8304);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},5225:(e,t,n)=>{var r=n(8792),i=n(249);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},8761:(e,t,n)=>{var r=n(6840),i=n(8109);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},7353:(e,t,n)=>{var r=n(241)(Object.getPrototypeOf,Object);e.exports=r},2107:(e,t,n)=>{var r=n(857),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},633:(e,t,n)=>{var r=n(7552),i=n(981),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return o.call(e,t)}))}:i;e.exports=s},2680:(e,t,n)=>{var r=n(5067),i=n(7353),o=n(633),a=n(981),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},940:(e,t,n)=>{var r=n(9515),i=n(326),o=n(2760),a=n(2143),s=n(3215),u=n(3366),c=n(7035),l="[object Map]",p="[object Promise]",d="[object Set]",f="[object WeakMap]",h="[object DataView]",m=c(r),g=c(i),y=c(o),v=c(a),b=c(s),E=u;(r&&E(new r(new ArrayBuffer(1)))!=h||i&&E(new i)!=l||o&&E(o.resolve())!=p||a&&E(new a)!=d||s&&E(new s)!=f)&&(E=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return h;case g:return l;case y:return p;case v:return d;case b:return f}return t}),e.exports=E},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1369:(e,t,n)=>{var r=n(7297),i=n(9631),o=n(6152),a=n(9045),s=n(1158),u=n(3812);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,p=!1;++c<l;){var d=u(t[c]);if(!(p=null!=e&&n(e,d)))break;e=e[d]}return p||++c!=l?p:!!(l=null==e?0:e.length)&&s(l)&&a(d,l)&&(o(e)||i(e))}},2118:(e,t,n)=>{var r=n(9191);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},6909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8138:(e,t,n)=>{var r=n(9191),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}},4174:(e,t,n)=>{var r=n(9191),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},7942:(e,t,n)=>{var r=n(9191);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}},9917:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},8222:(e,t,n)=>{var r=n(9882),i=n(4727),o=n(6058),a=n(169),s=n(6190);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},8725:(e,t,n)=>{var r=n(9413),i=n(7353),o=n(6001);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},5882:(e,t,n)=>{var r=n(857),i=n(9631),o=n(6152),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},9045: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}},2406:(e,t,n)=>{var r=n(1225),i=n(7878),o=n(9045),a=n(9259);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},1401:(e,t,n)=>{var r=n(6152),i=n(4795),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\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))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},8304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7394:(e,t,n)=>{var r,i=n(4019),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},6001:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},8792:(e,t,n)=>{var r=n(9259);e.exports=function(e){return e==e&&!r(e)}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,n)=>{var r=n(2218),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))}},8028:(e,t,n)=>{var r=n(2218);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},2344:(e,t,n)=>{var r=n(2218);e.exports=function(e){return r(this.__data__,e)>-1}},4769:(e,t,n)=>{var r=n(2218);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}},2411:(e,t,n)=>{var r=n(9612),i=n(235),o=n(326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},6417:(e,t,n)=>{var r=n(7937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).get(e)}},9493:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).has(e)}},4150:(e,t,n)=>{var r=n(7937);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}},5179:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},3477:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},7777:(e,t,n)=>{var r=n(733);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},9191:(e,t,n)=>{var r=n(8761)(Object,"create");e.exports=r},4248:(e,t,n)=>{var r=n(241)(Object.keys,Object);e.exports=r},2966:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4146:(e,t,n)=>{e=n.nmd(e);var r=n(1242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},241:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},3114:(e,t,n)=>{var r=n(9432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);++a<s;)u[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(u),r(e,this,c)}}},2721:(e,t,n)=>{var r=n(3324),i=n(9872);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},7772:(e,t,n)=>{var r=n(1242),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},2434:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},2842:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2482:e=>{e.exports=function(e){return this.__data__.has(e)}},4207:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},5251:(e,t,n)=>{var r=n(6532),i=n(7787)(r);e.exports=i},7787:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},5243:(e,t,n)=>{var r=n(235);e.exports=function(){this.__data__=new r,this.size=0}},2858:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:e=>{e.exports=function(e){return this.__data__.get(e)}},8605:e=>{e.exports=function(e){return this.__data__.has(e)}},1418:(e,t,n)=>{var r=n(235),i=n(326),o=n(6738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},6024: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}},4452:(e,t,n)=>{var r=n(7777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=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(o,"$1"):n||e)}),t});e.exports=a},3812:(e,t,n)=>{var r=n(4795);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7035: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""}},2153:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},6874:e=>{e.exports=function(e){return function(){return e}}},1225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5676:(e,t,n)=>{var r=n(2034);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},2579:(e,t,n)=>{var r=n(3324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},5041:(e,t,n)=>{var r=n(187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},3059:e=>{e.exports=function(e){return e}},1886:(e,t,n)=>{var r=n(7832),i=n(7878),o=n(5505),a=n(8101),s=n(8346),u=Math.max;e.exports=function(e,t,n,c){e=i(e)?e:s(e),n=n&&!c?a(n):0;var l=e.length;return n<0&&(n=u(l+n,0)),o(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&r(e,t,n)>-1}},9631:(e,t,n)=>{var r=n(5183),i=n(5125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},6152:e=>{var t=Array.isArray;e.exports=t},7878:(e,t,n)=>{var r=n(1049),i=n(1158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},3746:(e,t,n)=>{var r=n(7878),i=n(5125);e.exports=function(e){return i(e)&&r(e)}},3226:(e,t,n)=>{e=n.nmd(e);var r=n(7772),i=n(6330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u},5455:(e,t,n)=>{var r=n(6411),i=n(940),o=n(9631),a=n(6152),s=n(7878),u=n(3226),c=n(6001),l=n(7598),p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||l(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}},1049:(e,t,n)=>{var r=n(3366),i=n(9259);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}},1158:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4714:(e,t,n)=>{var r=n(4511),i=n(7826),o=n(4146),a=o&&o.isMap,s=a?i(a):r;e.exports=s},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},7030:(e,t,n)=>{var r=n(3366),i=n(7353),o=n(5125),a=Function.prototype,s=Object.prototype,u=a.toString,c=s.hasOwnProperty,l=u.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},3679:(e,t,n)=>{var r=n(8436),i=n(7826),o=n(4146),a=o&&o.isSet,s=a?i(a):r;e.exports=s},5505:(e,t,n)=>{var r=n(3366),i=n(6152),o=n(5125);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},4795:(e,t,n)=>{var r=n(3366),i=n(5125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},7598:(e,t,n)=>{var r=n(5522),i=n(7826),o=n(4146),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},249:(e,t,n)=>{var r=n(1634),i=n(6411),o=n(7878);e.exports=function(e){return o(e)?r(e):i(e)}},4225:(e,t,n)=>{var r=n(1634),i=n(8390),o=n(7878);e.exports=function(e){return o(e)?r(e,!0):i(e)}},6974:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},6635:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,c=128,l=1/0,p=9007199254740991,d=NaN,f=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",y="[object Boolean]",v="[object Date]",b="[object Error]",E="[object Function]",_="[object GeneratorFunction]",I="[object Map]",S="[object Number]",T="[object Object]",C="[object Promise]",w="[object RegExp]",P="[object Set]",D="[object String]",A="[object Symbol]",O="[object WeakMap]",N="[object ArrayBuffer]",R="[object DataView]",F="[object Float32Array]",k="[object Float64Array]",x="[object Int8Array]",U="[object Int16Array]",M="[object Int32Array]",L="[object Uint8Array]",j="[object Uint8ClampedArray]",V="[object Uint16Array]",B="[object Uint32Array]",G=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Q=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,z=RegExp(Q.source),W=RegExp(H.source),Z=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",Ie="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",Te="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",we="\\ufe0e\\ufe0f",Pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",De="["+_e+"]",Ae="["+Pe+"]",Oe="["+Ie+"]",Ne="\\d+",Re="["+Se+"]",Fe="["+Te+"]",ke="[^"+_e+Pe+Ne+Se+Te+Ce+"]",xe="\\ud83c[\\udffb-\\udfff]",Ue="[^"+_e+"]",Me="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Ce+"]",Ve="\\u200d",Be="(?:"+Fe+"|"+ke+")",Ge="(?:"+je+"|"+ke+")",qe="(?:['’](?:d|ll|m|re|s|t|ve))?",$e="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+Oe+"|"+xe+")?",He="["+we+"]?",ze=He+Qe+"(?:"+Ve+"(?:"+[Ue,Me,Le].join("|")+")"+He+Qe+")*",We="(?:"+[Re,Me,Le].join("|")+")"+ze,Ze="(?:"+[Ue+Oe+"?",Oe,Me,Le,De].join("|")+")",Ye=RegExp("['’]","g"),Ke=RegExp(Oe,"g"),Je=RegExp(xe+"(?="+xe+")|"+Ze+ze,"g"),Xe=RegExp([je+"?"+Fe+"+"+qe+"(?="+[Ae,je,"$"].join("|")+")",Ge+"+"+$e+"(?="+[Ae,je+Be,"$"].join("|")+")",je+"?"+Be+"+"+qe,je+"+"+$e,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ne,We].join("|"),"g"),et=RegExp("["+Ve+_e+Ie+we+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,it={};it[F]=it[k]=it[x]=it[U]=it[M]=it[L]=it[j]=it[V]=it[B]=!0,it[m]=it[g]=it[N]=it[y]=it[R]=it[v]=it[b]=it[E]=it[I]=it[S]=it[T]=it[w]=it[P]=it[D]=it[O]=!1;var ot={};ot[m]=ot[g]=ot[N]=ot[R]=ot[y]=ot[v]=ot[F]=ot[k]=ot[x]=ot[U]=ot[M]=ot[I]=ot[S]=ot[T]=ot[w]=ot[P]=ot[D]=ot[A]=ot[L]=ot[j]=ot[V]=ot[B]=!0,ot[b]=ot[E]=ot[O]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ut=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,lt="object"==typeof self&&self&&self.Object===Object&&self,pt=ct||lt||Function("return this")(),dt=t&&!t.nodeType&&t,ft=dt&&e&&!e.nodeType&&e,ht=ft&&ft.exports===dt,mt=ht&&ct.process,gt=function(){try{return ft&&ft.require&&ft.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),yt=gt&>.isArrayBuffer,vt=gt&>.isDate,bt=gt&>.isMap,Et=gt&>.isRegExp,_t=gt&>.isSet,It=gt&>.isTypedArray;function St(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)}function Tt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function wt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function At(e,t){return!(null==e||!e.length)&&jt(e,t,0)>-1}function Ot(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Nt(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}function Rt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Ft(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function kt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function xt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ut=qt("length");function Mt(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Lt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function jt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Lt(e,Bt,n)}function Vt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Bt(e){return e!=e}function Gt(e,t){var n=null==e?0:e.length;return n?Ht(e,t)/n:d}function qt(e){return function(t){return null==t?i:t[e]}}function $t(e){return function(t){return null==e?i:e[t]}}function Qt(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function Ht(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function zt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Wt(e){return e?e.slice(0,dn(e)+1).replace(re,""):e}function Zt(e){return function(t){return e(t)}}function Yt(e,t){return Nt(t,function(t){return e[t]})}function Kt(e,t){return e.has(t)}function Jt(e,t){for(var n=-1,r=e.length;++n<r&&jt(t,e[n],0)>-1;);return n}function Xt(e,t){for(var n=e.length;n--&&jt(t,e[n],0)>-1;);return n}var en=$t({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=$t({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function an(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function un(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function cn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function ln(e){return rn(e)?function(e){for(var t=Je.lastIndex=0;Je.test(e);)++t;return t}(e):Ut(e)}function pn(e){return rn(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.split("")}(e)}function dn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var fn=$t({"&":"&","<":"<",">":">",""":'"',"'":"'"}),hn=function e(t){var n,r=(t=null==t?pt:hn.defaults(pt.Object(),t,hn.pick(pt,nt))).Array,ie=t.Date,_e=t.Error,Ie=t.Function,Se=t.Math,Te=t.Object,Ce=t.RegExp,we=t.String,Pe=t.TypeError,De=r.prototype,Ae=Ie.prototype,Oe=Te.prototype,Ne=t["__core-js_shared__"],Re=Ae.toString,Fe=Oe.hasOwnProperty,ke=0,xe=(n=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ue=Oe.toString,Me=Re.call(Te),Le=pt._,je=Ce("^"+Re.call(Fe).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=ht?t.Buffer:i,Be=t.Symbol,Ge=t.Uint8Array,qe=Ve?Ve.allocUnsafe:i,$e=an(Te.getPrototypeOf,Te),Qe=Te.create,He=Oe.propertyIsEnumerable,ze=De.splice,We=Be?Be.isConcatSpreadable:i,Ze=Be?Be.iterator:i,Je=Be?Be.toStringTag:i,et=function(){try{var e=uo(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,ct=ie&&ie.now!==pt.Date.now&&ie.now,lt=t.setTimeout!==pt.setTimeout&&t.setTimeout,dt=Se.ceil,ft=Se.floor,mt=Te.getOwnPropertySymbols,gt=Ve?Ve.isBuffer:i,Ut=t.isFinite,$t=De.join,mn=an(Te.keys,Te),gn=Se.max,yn=Se.min,vn=ie.now,bn=t.parseInt,En=Se.random,_n=De.reverse,In=uo(t,"DataView"),Sn=uo(t,"Map"),Tn=uo(t,"Promise"),Cn=uo(t,"Set"),wn=uo(t,"WeakMap"),Pn=uo(Te,"create"),Dn=wn&&new wn,An={},On=Mo(In),Nn=Mo(Sn),Rn=Mo(Tn),Fn=Mo(Cn),kn=Mo(wn),xn=Be?Be.prototype:i,Un=xn?xn.valueOf:i,Mn=xn?xn.toString:i;function Ln(e){if(es(e)&&!qa(e)&&!(e instanceof Gn)){if(e instanceof Bn)return e;if(Fe.call(e,"__wrapped__"))return Lo(e)}return new Bn(e)}var jn=function(){function e(){}return function(t){if(!Xa(t))return{};if(Qe)return Qe(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Vn(){}function Bn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Gn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function qn(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])}}function $n(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])}}function Qn(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])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Qn;++t<n;)this.add(e[t])}function zn(e){var t=this.__data__=new $n(e);this.size=t.size}function Wn(e,t){var n=qa(e),r=!n&&Ga(e),i=!n&&!r&&za(e),o=!n&&!r&&!i&&us(e),a=n||r||i||o,s=a?zt(e.length,we):[],u=s.length;for(var c in e)!t&&!Fe.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||go(c,u))||s.push(c);return s}function Zn(e){var t=e.length;return t?e[Qr(0,t-1)]:i}function Yn(e,t){return Ro(wi(e),or(t,0,e.length))}function Kn(e){return Ro(wi(e))}function Jn(e,t,n){(n!==i&&!ja(e[t],n)||n===i&&!(t in e))&&rr(e,t,n)}function Xn(e,t,n){var r=e[t];Fe.call(e,t)&&ja(r,n)&&(n!==i||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(ja(e[n][0],t))return n;return-1}function tr(e,t,n,r){return lr(e,function(e,i,o){t(r,e,n(e),o)}),r}function nr(e,t){return e&&Pi(t,Os(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:Cs(e,t[n]);return a}function or(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ar(e,t,n,r,o,a){var s,u=1&t,c=2&t,l=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!Xa(e))return e;var p=qa(e);if(p){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Fe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return wi(e,s)}else{var d=po(e),f=d==E||d==_;if(za(e))return Ei(e,u);if(d==T||d==m||f&&!o){if(s=c||f?{}:ho(e),!u)return c?function(e,t){return Pi(e,lo(e),t)}(e,function(e,t){return e&&Pi(t,Ns(t),e)}(s,e)):function(e,t){return Pi(e,co(e),t)}(e,nr(s,e))}else{if(!ot[d])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case N:return _i(e);case y:case v:return new i(+e);case R:return function(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case F:case k:case x:case U:case M:case L:case j:case V:case B:return Ii(e,n);case I:return new i;case S:case D:return new i(e);case w:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case P:return new i;case A:return r=e,Un?Te(Un.call(r)):{}}}(e,d,u)}}a||(a=new zn);var h=a.get(e);if(h)return h;a.set(e,s),os(e)?e.forEach(function(r){s.add(ar(r,t,n,r,e,a))}):ts(e)&&e.forEach(function(r,i){s.set(i,ar(r,t,n,i,e,a))});var g=p?i:(l?c?to:eo:c?Ns:Os)(e);return Ct(g||e,function(r,i){g&&(r=e[i=r]),Xn(s,i,ar(r,t,n,i,e,a))}),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Te(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Pe(o);return Do(function(){e.apply(i,n)},t)}function cr(e,t,n,r){var i=-1,o=At,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=Nt(t,Zt(n))),r?(o=Ot,a=!1):t.length>=200&&(o=Kt,a=!1,t=new Hn(t));e:for(;++i<s;){var l=e[i],p=null==n?l:n(l);if(l=r||0!==l?l:0,a&&p==p){for(var d=c;d--;)if(t[d]===p)continue e;u.push(l)}else o(t,p,r)||u.push(l)}return u}Ln.templateSettings={escape:Z,evaluate:Y,interpolate:K,variable:"",imports:{_:Ln}},Ln.prototype=Vn.prototype,Ln.prototype.constructor=Ln,Bn.prototype=jn(Vn.prototype),Bn.prototype.constructor=Bn,Gn.prototype=jn(Vn.prototype),Gn.prototype.constructor=Gn,qn.prototype.clear=function(){this.__data__=Pn?Pn(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(Pn){var n=t[e];return n===a?i:n}return Fe.call(t,e)?t[e]:i},qn.prototype.has=function(e){var t=this.__data__;return Pn?t[e]!==i:Fe.call(t,e)},qn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Pn&&t===i?a:t,this},$n.prototype.clear=function(){this.__data__=[],this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():ze.call(t,n,1),--this.size,0))},$n.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?i:t[n][1]},$n.prototype.has=function(e){return er(this.__data__,e)>-1},$n.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(Sn||$n),string:new qn}},Qn.prototype.delete=function(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t},Qn.prototype.get=function(e){return ao(this,e).get(e)},Qn.prototype.has=function(e){return ao(this,e).has(e)},Qn.prototype.set=function(e,t){var n=ao(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Hn.prototype.add=Hn.prototype.push=function(e){return this.__data__.set(e,a),this},Hn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new $n,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $n){var r=n.__data__;if(!Sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qn(r)}return n.set(e,t),this.size=n.size,this};var lr=Oi(vr),pr=Oi(br,!0);function dr(e,t){var n=!0;return lr(e,function(e,r,i){return n=!!t(e,r,i)}),n}function fr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(u===i?s==s&&!ss(s):n(s,u)))var u=s,c=a}return c}function hr(e,t){var n=[];return lr(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function mr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=mo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?mr(s,t-1,n,r,i):Rt(i,s):r||(i[i.length]=s)}return i}var gr=Ni(),yr=Ni(!0);function vr(e,t){return e&&gr(e,t,Os)}function br(e,t){return e&&yr(e,t,Os)}function Er(e,t){return Dt(t,function(t){return Ya(e[t])})}function _r(e,t){for(var n=0,r=(t=gi(t,e)).length;null!=e&&n<r;)e=e[Uo(t[n++])];return n&&n==r?e:i}function Ir(e,t,n){var r=t(e);return qa(e)?r:Rt(r,n(e))}function Sr(e){return null==e?e===i?"[object Undefined]":"[object Null]":Je&&Je in Te(e)?function(e){var t=Fe.call(e,Je),n=e[Je];try{e[Je]=i;var r=!0}catch(e){}var o=Ue.call(e);return r&&(t?e[Je]=n:delete e[Je]),o}(e):function(e){return Ue.call(e)}(e)}function Tr(e,t){return e>t}function Cr(e,t){return null!=e&&Fe.call(e,t)}function wr(e,t){return null!=e&&t in Te(e)}function Pr(e,t,n){for(var o=n?Ot:At,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,p=[];u--;){var d=e[u];u&&t&&(d=Nt(d,Zt(t))),l=yn(d.length,l),c[u]=!n&&(t||a>=120&&d.length>=120)?new Hn(u&&d):i}d=e[0];var f=-1,h=c[0];e:for(;++f<a&&p.length<l;){var m=d[f],g=t?t(m):m;if(m=n||0!==m?m:0,!(h?Kt(h,g):o(p,g,n))){for(u=s;--u;){var y=c[u];if(!(y?Kt(y,g):o(e[u],g,n)))continue e}h&&h.push(g),p.push(m)}}return p}function Dr(e,t,n){var r=null==(e=Co(e,t=gi(t,e)))?e:e[Uo(Zo(t))];return null==r?i:St(r,e,n)}function Ar(e){return es(e)&&Sr(e)==m}function Or(e,t,n,r,o){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var s=qa(e),u=qa(t),c=s?g:po(e),l=u?g:po(t),p=(c=c==m?T:c)==T,d=(l=l==m?T:l)==T,f=c==l;if(f&&za(e)){if(!za(t))return!1;s=!0,p=!1}if(f&&!p)return a||(a=new zn),s||us(e)?Ji(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case N:return!(e.byteLength!=t.byteLength||!o(new Ge(e),new Ge(t)));case y:case v:case S:return ja(+e,+t);case b:return e.name==t.name&&e.message==t.message;case w:case D:return e==t+"";case I:var s=on;case P:var u=1&r;if(s||(s=un),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=Ji(s(e),s(t),r,i,o,a);return a.delete(e),l;case A:if(Un)return Un.call(e)==Un.call(t)}return!1}(e,t,c,n,r,o,a);if(!(1&n)){var h=p&&Fe.call(e,"__wrapped__"),E=d&&Fe.call(t,"__wrapped__");if(h||E){var _=h?e.value():e,C=E?t.value():t;return a||(a=new zn),o(_,C,n,r,a)}}return!!f&&(a||(a=new zn),function(e,t,n,r,o,a){var s=1&n,u=eo(e),c=u.length;if(c!=eo(t).length&&!s)return!1;for(var l=c;l--;){var p=u[l];if(!(s?p in t:Fe.call(t,p)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++l<c;){var g=e[p=u[l]],y=t[p];if(r)var v=s?r(y,g,p,t,e,a):r(g,y,p,e,t,a);if(!(v===i?g===y||o(g,y,n,r,a):v)){h=!1;break}m||(m="constructor"==p)}if(h&&!m){var b=e.constructor,E=t.constructor;b==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,o,a))}(e,t,n,r,Or,o))}function Nr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Te(e);o--;){var u=n[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var c=(u=n[o])[0],l=e[c],p=u[1];if(s&&u[2]){if(l===i&&!(c in e))return!1}else{var d=new zn;if(r)var f=r(l,p,c,e,t,d);if(!(f===i?Or(p,l,3,r,d):f))return!1}}return!0}function Rr(e){return!(!Xa(e)||(t=e,xe&&xe in t))&&(Ya(e)?je:me).test(Mo(e));var t}function Fr(e){return"function"==typeof e?e:null==e?nu:"object"==typeof e?qa(e)?Lr(e[0],e[1]):Mr(e):pu(e)}function kr(e){if(!_o(e))return mn(e);var t=[];for(var n in Te(e))Fe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function xr(e,t){return e<t}function Ur(e,t){var n=-1,i=Qa(e)?r(e.length):[];return lr(e,function(e,r,o){i[++n]=t(e,r,o)}),i}function Mr(e){var t=so(e);return 1==t.length&&t[0][2]?So(t[0][0],t[0][1]):function(n){return n===e||Nr(n,e,t)}}function Lr(e,t){return vo(e)&&Io(t)?So(Uo(e),t):function(n){var r=Cs(n,e);return r===i&&r===t?ws(n,e):Or(t,r,3)}}function jr(e,t,n,r,o){e!==t&&gr(t,function(a,s){if(o||(o=new zn),Xa(a))!function(e,t,n,r,o,a,s){var u=wo(e,n),c=wo(t,n),l=s.get(c);if(l)Jn(e,n,l);else{var p=a?a(u,c,n+"",e,t,s):i,d=p===i;if(d){var f=qa(c),h=!f&&za(c),m=!f&&!h&&us(c);p=c,f||h||m?qa(u)?p=u:Ha(u)?p=wi(u):h?(d=!1,p=Ei(c,!0)):m?(d=!1,p=Ii(c,!0)):p=[]:rs(c)||Ga(c)?(p=u,Ga(u)?p=gs(u):Xa(u)&&!Ya(u)||(p=ho(c))):d=!1}d&&(s.set(c,p),o(p,c,r,a,s),s.delete(c)),Jn(e,n,p)}}(e,t,s,n,jr,r,o);else{var u=r?r(wo(e,s),a,s+"",e,t,o):i;u===i&&(u=a),Jn(e,s,u)}},Ns)}function Vr(e,t){var n=e.length;if(n)return go(t+=t<0?n:0,n)?e[t]:i}function Br(e,t,n){t=t.length?Nt(t,function(e){return qa(e)?function(t){return _r(t,1===e.length?e[0]:e)}:e}):[nu];var r=-1;t=Nt(t,Zt(oo()));var i=Ur(e,function(e,n,i){var o=Nt(t,function(t){return t(e)});return{criteria:o,index:++r,value:e}});return function(e){var t=e.length;for(e.sort(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var u=Si(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});t--;)e[t]=e[t].value;return e}(i)}function Gr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=_r(e,a);n(s,a)&&Yr(o,gi(a,e),s)}return o}function qr(e,t,n,r){var i=r?Vt:jt,o=-1,a=t.length,s=e;for(e===t&&(t=wi(t)),n&&(s=Nt(e,Zt(n)));++o<a;)for(var u=0,c=t[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==e&&ze.call(s,u,1),ze.call(e,u,1);return e}function $r(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;go(i)?ze.call(e,i,1):ui(e,i)}}return e}function Qr(e,t){return e+ft(En()*(t-e+1))}function Hr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=ft(t/2))&&(e+=e)}while(t);return n}function zr(e,t){return Ao(To(e,t,nu),e+"")}function Wr(e){return Zn(js(e))}function Zr(e,t){var n=js(e);return Ro(n,or(t,0,n.length))}function Yr(e,t,n,r){if(!Xa(e))return e;for(var o=-1,a=(t=gi(t,e)).length,s=a-1,u=e;null!=u&&++o<a;){var c=Uo(t[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var p=u[c];(l=r?r(p,c,u):i)===i&&(l=Xa(p)?p:go(t[o+1])?[]:{})}Xn(u,c,l),u=u[c]}return e}var Kr=Dn?function(e,t){return Dn.set(e,t),e}:nu,Jr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Xs(t),writable:!0})}:nu;function Xr(e){return Ro(js(e))}function ei(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function ti(e,t){var n;return lr(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function ni(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!ss(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ri(e,t,nu,n)}function ri(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,u=null===t,c=ss(t),l=t===i;o<a;){var p=ft((o+a)/2),d=n(e[p]),f=d!==i,h=null===d,m=d==d,g=ss(d);if(s)var y=r||m;else y=l?m&&(r||f):u?m&&f&&(r||!h):c?m&&f&&!h&&(r||!g):!h&&!g&&(r?d<=t:d<t);y?o=p+1:a=p}return yn(a,4294967294)}function ii(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!ja(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function oi(e){return"number"==typeof e?e:ss(e)?d:+e}function ai(e){if("string"==typeof e)return e;if(qa(e))return Nt(e,ai)+"";if(ss(e))return Mn?Mn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function si(e,t,n){var r=-1,i=At,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=Ot;else if(o>=200){var c=t?null:Hi(e);if(c)return un(c);a=!1,i=Kt,u=new Hn}else u=t?[]:s;e:for(;++r<o;){var l=e[r],p=t?t(l):l;if(l=n||0!==l?l:0,a&&p==p){for(var d=u.length;d--;)if(u[d]===p)continue e;t&&u.push(p),s.push(l)}else i(u,p,n)||(u!==s&&u.push(p),s.push(l))}return s}function ui(e,t){var n=-1,r=(t=gi(t,e)).length;if(!r)return!0;for(;++n<r;){var i=Uo(t[n]);if("__proto__"===i&&!Fe.call(e,"__proto__"))return!1;if(("constructor"===i||"prototype"===i)&&n<r-1)return!1}var o=Co(e,t);return null==o||delete o[Uo(Zo(t))]}function ci(e,t,n,r){return Yr(e,t,n(_r(e,t)),r)}function li(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ei(e,r?0:o,r?o+1:i):ei(e,r?o+1:0,r?i:o)}function pi(e,t){var n=e;return n instanceof Gn&&(n=n.value()),Ft(t,function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))},n)}function di(e,t,n){var i=e.length;if(i<2)return i?si(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],u=-1;++u<i;)u!=o&&(a[o]=cr(a[o]||s,e[u],t,n));return si(mr(a,1),t,n)}function fi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var u=r<a?t[r]:i;n(s,e[r],u)}return s}function hi(e){return Ha(e)?e:[]}function mi(e){return"function"==typeof e?e:nu}function gi(e,t){return qa(e)?e:vo(e,t)?[e]:xo(ys(e))}var yi=zr;function vi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ei(e,t,n)}var bi=at||function(e){return pt.clearTimeout(e)};function Ei(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function _i(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function Ii(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Si(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=ss(e),s=t!==i,u=null===t,c=t==t,l=ss(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!l&&e<t||l&&n&&o&&!r&&!a||u&&n&&o||!s&&o||!c)return-1}return 0}function Ti(e,t,n,i){for(var o=-1,a=e.length,s=n.length,u=-1,c=t.length,l=gn(a-s,0),p=r(c+l),d=!i;++u<c;)p[u]=t[u];for(;++o<s;)(d||o<a)&&(p[n[o]]=e[o]);for(;l--;)p[u++]=e[o++];return p}function Ci(e,t,n,i){for(var o=-1,a=e.length,s=-1,u=n.length,c=-1,l=t.length,p=gn(a-u,0),d=r(p+l),f=!i;++o<p;)d[o]=e[o];for(var h=o;++c<l;)d[h+c]=t[c];for(;++s<u;)(f||o<a)&&(d[h+n[s]]=e[o++]);return d}function wi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Pi(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):i;c===i&&(c=e[u]),o?rr(n,u,c):Xn(n,u,c)}return n}function Di(e,t){return function(n,r){var i=qa(n)?Tt:tr,o=t?t():{};return i(n,e,oo(r,2),o)}}function Ai(e){return zr(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&yo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Te(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t})}function Oi(e,t){return function(n,r){if(null==n)return n;if(!Qa(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Te(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Ni(e){return function(t,n,r){for(var i=-1,o=Te(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function Ri(e){return function(t){var n=rn(t=ys(t))?pn(t):i,r=n?n[0]:t.charAt(0),o=n?vi(n,1).join(""):t.slice(1);return r[e]()+o}}function Fi(e){return function(t){return Ft(Ys(Gs(t).replace(Ye,"")),e,"")}}function ki(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=jn(e.prototype),r=e.apply(n,t);return Xa(r)?r:n}}function xi(e){return function(t,n,r){var o=Te(t);if(!Qa(t)){var a=oo(n,3);t=Os(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function Ui(e){return Xi(function(t){var n=t.length,r=n,a=Bn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Pe(o);if(a&&!u&&"wrapper"==ro(s))var u=new Bn([],!0)}for(r=u?r:n;++r<n;){var c=ro(s=t[r]),l="wrapper"==c?no(s):i;u=l&&bo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[ro(l[0])].apply(u,l[3]):1==s.length&&bo(s)?u[c]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&qa(r))return u.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}function Mi(e,t,n,o,a,s,u,l,p,d){var f=t&c,h=1&t,m=2&t,g=24&t,y=512&t,v=m?i:ki(e);return function c(){for(var b=arguments.length,E=r(b),_=b;_--;)E[_]=arguments[_];if(g)var I=io(c),S=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(E,I);if(o&&(E=Ti(E,o,a,g)),s&&(E=Ci(E,s,u,g)),b-=S,g&&b<d){var T=sn(E,I);return $i(e,t,Mi,c.placeholder,n,E,T,l,p,d-b)}var C=h?n:this,w=m?C[e]:e;return b=E.length,l?E=function(e,t){for(var n=e.length,r=yn(t.length,n),o=wi(e);r--;){var a=t[r];e[r]=go(a,n)?o[a]:i}return e}(E,l):y&&b>1&&E.reverse(),f&&p<b&&(E.length=p),this&&this!==pt&&this instanceof c&&(w=v||ki(w)),w.apply(C,E)}}function Li(e,t){return function(n,r){return function(e,t,n,r){return vr(e,function(e,i,o){t(r,n(e),i,o)}),r}(n,e,t(r),{})}}function ji(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=ai(n),r=ai(r)):(n=oi(n),r=oi(r)),o=e(n,r)}return o}}function Vi(e){return Xi(function(t){return t=Nt(t,Zt(oo())),zr(function(n){var r=this;return e(t,function(e){return St(e,r,n)})})})}function Bi(e,t){var n=(t=t===i?" ":ai(t)).length;if(n<2)return n?Hr(t,e):t;var r=Hr(t,dt(e/ln(t)));return rn(t)?vi(pn(r),0,e).join(""):r.slice(0,e)}function Gi(e){return function(t,n,o){return o&&"number"!=typeof o&&yo(t,n,o)&&(n=o=i),t=ds(t),n===i?(n=t,t=0):n=ds(n),function(e,t,n,i){for(var o=-1,a=gn(dt((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:ds(o),e)}}function qi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function $i(e,t,n,r,o,a,s,c,l,p){var d=8&t;t|=d?u:64,4&(t&=~(d?64:u))||(t&=-4);var f=[e,t,o,d?a:i,d?s:i,d?i:a,d?i:s,c,l,p],h=n.apply(i,f);return bo(e)&&Po(h,f),h.placeholder=r,Oo(h,e,t)}function Qi(e){var t=Se[e];return function(e,n){if(e=ms(e),(n=null==n?0:yn(fs(n),292))&&Ut(e)){var r=(ys(e)+"e").split("e");return+((r=(ys(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Hi=Cn&&1/un(new Cn([,-0]))[1]==l?function(e){return new Cn(e)}:su;function zi(e){return function(t){var n=po(t);return n==I?on(t):n==P?cn(t):function(e,t){return Nt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Wi(e,t,n,a,l,p,d,f){var h=2&t;if(!h&&"function"!=typeof e)throw new Pe(o);var m=a?a.length:0;if(m||(t&=-97,a=l=i),d=d===i?d:gn(fs(d),0),f=f===i?f:fs(f),m-=l?l.length:0,64&t){var g=a,y=l;a=l=i}var v=h?i:no(e),b=[e,t,n,a,l,g,y,p,d,f];if(v&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Ti(l,u,t[4]):u,e[4]=l?sn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Ci(l,u,t[6]):u,e[6]=l?sn(e[5],s):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,v),e=b[0],t=b[1],n=b[2],a=b[3],l=b[4],!(f=b[9]=b[9]===i?h?0:e.length:gn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||16==t?function(e,t,n){var o=ki(e);return function a(){for(var s=arguments.length,u=r(s),c=s,l=io(a);c--;)u[c]=arguments[c];var p=s<3&&u[0]!==l&&u[s-1]!==l?[]:sn(u,l);return(s-=p.length)<n?$i(e,t,Mi,a.placeholder,i,u,p,i,i,n-s):St(this&&this!==pt&&this instanceof a?o:e,this,u)}}(e,t,f):t!=u&&33!=t||l.length?Mi.apply(i,b):function(e,t,n,i){var o=1&t,a=ki(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=i.length,p=r(l+u),d=this&&this!==pt&&this instanceof t?a:e;++c<l;)p[c]=i[c];for(;u--;)p[c++]=arguments[++s];return St(d,o?n:this,p)}}(e,t,n,a);else var E=function(e,t,n){var r=1&t,i=ki(e);return function t(){return(this&&this!==pt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Oo((v?Kr:Po)(E,b),e,t)}function Zi(e,t,n,r){return e===i||ja(e,Oe[n])&&!Fe.call(r,n)?t:e}function Yi(e,t,n,r,o,a){return Xa(e)&&Xa(t)&&(a.set(t,e),jr(e,t,i,Yi,a),a.delete(t)),e}function Ki(e){return rs(e)?i:e}function Ji(e,t,n,r,o,a){var s=1&n,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),p=a.get(t);if(l&&p)return l==t&&p==e;var d=-1,f=!0,h=2&n?new Hn:i;for(a.set(e,t),a.set(t,e);++d<u;){var m=e[d],g=t[d];if(r)var y=s?r(g,m,d,t,e,a):r(m,g,d,e,t,a);if(y!==i){if(y)continue;f=!1;break}if(h){if(!xt(t,function(e,t){if(!Kt(h,t)&&(m===e||o(m,e,n,r,a)))return h.push(t)})){f=!1;break}}else if(m!==g&&!o(m,g,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function Xi(e){return Ao(To(e,i,$o),e+"")}function eo(e){return Ir(e,Os,co)}function to(e){return Ir(e,Ns,lo)}var no=Dn?function(e){return Dn.get(e)}:su;function ro(e){for(var t=e.name+"",n=An[t],r=Fe.call(An,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function io(e){return(Fe.call(Ln,"placeholder")?Ln:e).placeholder}function oo(){var e=Ln.iteratee||ru;return e=e===ru?Fr:e,arguments.length?e(arguments[0],arguments[1]):e}function ao(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function so(e){for(var t=Os(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Io(i)]}return t}function uo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Rr(n)?n:i}var co=mt?function(e){return null==e?[]:(e=Te(e),Dt(mt(e),function(t){return He.call(e,t)}))}:hu,lo=mt?function(e){for(var t=[];e;)Rt(t,co(e)),e=$e(e);return t}:hu,po=Sr;function fo(e,t,n){for(var r=-1,i=(t=gi(t,e)).length,o=!1;++r<i;){var a=Uo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ja(i)&&go(a,i)&&(qa(e)||Ga(e))}function ho(e){return"function"!=typeof e.constructor||_o(e)?{}:jn($e(e))}function mo(e){return qa(e)||Ga(e)||!!(We&&e&&e[We])}function go(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function yo(e,t,n){if(!Xa(n))return!1;var r=typeof t;return!!("number"==r?Qa(n)&&go(t,n.length):"string"==r&&t in n)&&ja(n[t],e)}function vo(e,t){if(qa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ss(e))||X.test(e)||!J.test(e)||null!=t&&e in Te(t)}function bo(e){var t=ro(e),n=Ln[t];if("function"!=typeof n||!(t in Gn.prototype))return!1;if(e===n)return!0;var r=no(n);return!!r&&e===r[0]}(In&&po(new In(new ArrayBuffer(1)))!=R||Sn&&po(new Sn)!=I||Tn&&po(Tn.resolve())!=C||Cn&&po(new Cn)!=P||wn&&po(new wn)!=O)&&(po=function(e){var t=Sr(e),n=t==T?e.constructor:i,r=n?Mo(n):"";if(r)switch(r){case On:return R;case Nn:return I;case Rn:return C;case Fn:return P;case kn:return O}return t});var Eo=Ne?Ya:mu;function _o(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oe)}function Io(e){return e==e&&!Xa(e)}function So(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Te(n))}}function To(e,t,n){return t=gn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=gn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var u=r(t+1);++o<t;)u[o]=i[o];return u[t]=n(s),St(e,this,u)}}function Co(e,t){return t.length<2?e:_r(e,ei(t,0,-1))}function wo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Po=No(Kr),Do=lt||function(e,t){return pt.setTimeout(e,t)},Ao=No(Jr);function Oo(e,t,n){var r=t+"";return Ao(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(h,function(n){var r="_."+n[0];t&n[1]&&!At(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function No(e){var t=0,n=0;return function(){var r=vn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ro(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=Qr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Fo,ko,xo=(Fo=Fa(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,function(e,n,r,i){t.push(r?i.replace(le,"$1"):n||e)}),t},function(e){return 500===ko.size&&ko.clear(),e}),ko=Fo.cache,Fo);function Uo(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Mo(e){if(null!=e){try{return Re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Lo(e){if(e instanceof Gn)return e.clone();var t=new Bn(e.__wrapped__,e.__chain__);return t.__actions__=wi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var jo=zr(function(e,t){return Ha(e)?cr(e,mr(t,1,Ha,!0)):[]}),Vo=zr(function(e,t){var n=Zo(t);return Ha(n)&&(n=i),Ha(e)?cr(e,mr(t,1,Ha,!0),oo(n,2)):[]}),Bo=zr(function(e,t){var n=Zo(t);return Ha(n)&&(n=i),Ha(e)?cr(e,mr(t,1,Ha,!0),i,n):[]});function Go(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:fs(n);return i<0&&(i=gn(r+i,0)),Lt(e,oo(t,3),i)}function qo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=fs(n),o=n<0?gn(r+o,0):yn(o,r-1)),Lt(e,oo(t,3),o,!0)}function $o(e){return null!=e&&e.length?mr(e,1):[]}function Qo(e){return e&&e.length?e[0]:i}var Ho=zr(function(e){var t=Nt(e,hi);return t.length&&t[0]===e[0]?Pr(t):[]}),zo=zr(function(e){var t=Zo(e),n=Nt(e,hi);return t===Zo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Pr(n,oo(t,2)):[]}),Wo=zr(function(e){var t=Zo(e),n=Nt(e,hi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Pr(n,i,t):[]});function Zo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Yo=zr(Ko);function Ko(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}var Jo=Xi(function(e,t){var n=null==e?0:e.length,r=ir(e,t);return $r(e,Nt(t,function(e){return go(e,n)?+e:e}).sort(Si)),r});function Xo(e){return null==e?e:_n.call(e)}var ea=zr(function(e){return si(mr(e,1,Ha,!0))}),ta=zr(function(e){var t=Zo(e);return Ha(t)&&(t=i),si(mr(e,1,Ha,!0),oo(t,2))}),na=zr(function(e){var t=Zo(e);return t="function"==typeof t?t:i,si(mr(e,1,Ha,!0),i,t)});function ra(e){if(!e||!e.length)return[];var t=0;return e=Dt(e,function(e){if(Ha(e))return t=gn(e.length,t),!0}),zt(t,function(t){return Nt(e,qt(t))})}function ia(e,t){if(!e||!e.length)return[];var n=ra(e);return null==t?n:Nt(n,function(e){return St(t,i,e)})}var oa=zr(function(e,t){return Ha(e)?cr(e,t):[]}),aa=zr(function(e){return di(Dt(e,Ha))}),sa=zr(function(e){var t=Zo(e);return Ha(t)&&(t=i),di(Dt(e,Ha),oo(t,2))}),ua=zr(function(e){var t=Zo(e);return t="function"==typeof t?t:i,di(Dt(e,Ha),i,t)}),ca=zr(ra),la=zr(function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,ia(e,n)});function pa(e){var t=Ln(e);return t.__chain__=!0,t}function da(e,t){return t(e)}var fa=Xi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Gn&&go(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:da,args:[o],thisArg:i}),new Bn(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)}),ha=Di(function(e,t,n){Fe.call(e,n)?++e[n]:rr(e,n,1)}),ma=xi(Go),ga=xi(qo);function ya(e,t){return(qa(e)?Ct:lr)(e,oo(t,3))}function va(e,t){return(qa(e)?wt:pr)(e,oo(t,3))}var ba=Di(function(e,t,n){Fe.call(e,n)?e[n].push(t):rr(e,n,[t])}),Ea=zr(function(e,t,n){var i=-1,o="function"==typeof t,a=Qa(e)?r(e.length):[];return lr(e,function(e){a[++i]=o?St(t,e,n):Dr(e,t,n)}),a}),_a=Di(function(e,t,n){rr(e,n,t)});function Ia(e,t){return(qa(e)?Nt:Ur)(e,oo(t,3))}var Sa=Di(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ta=zr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&yo(e,t[0],t[1])?t=[]:n>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),Br(e,mr(t,1),[])}),Ca=ct||function(){return pt.Date.now()};function wa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Wi(e,c,i,i,i,i,t)}function Pa(e,t){var n;if("function"!=typeof t)throw new Pe(o);return e=fs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Da=zr(function(e,t,n){var r=1;if(n.length){var i=sn(n,io(Da));r|=u}return Wi(e,r,t,n,i)}),Aa=zr(function(e,t,n){var r=3;if(n.length){var i=sn(n,io(Aa));r|=u}return Wi(t,r,e,n,i)});function Oa(e,t,n){var r,a,s,u,c,l,p=0,d=!1,f=!1,h=!0;if("function"!=typeof e)throw new Pe(o);function m(t){var n=r,o=a;return r=a=i,p=t,u=e.apply(o,n)}function g(e){var n=e-l;return l===i||n>=t||n<0||f&&e-p>=s}function y(){var e=Ca();if(g(e))return v(e);c=Do(y,function(e){var n=t-(e-l);return f?yn(n,s-(e-p)):n}(e))}function v(e){return c=i,h&&r?m(e):(r=a=i,u)}function b(){var e=Ca(),n=g(e);if(r=arguments,a=this,l=e,n){if(c===i)return function(e){return p=e,c=Do(y,t),d?m(e):u}(l);if(f)return bi(c),c=Do(y,t),m(l)}return c===i&&(c=Do(y,t)),u}return t=ms(t)||0,Xa(n)&&(d=!!n.leading,s=(f="maxWait"in n)?gn(ms(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){c!==i&&bi(c),p=0,r=l=a=c=i},b.flush=function(){return c===i?u:v(Ca())},b}var Na=zr(function(e,t){return ur(e,1,t)}),Ra=zr(function(e,t,n){return ur(e,ms(t)||0,n)});function Fa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Fa.Cache||Qn),n}function ka(e){if("function"!=typeof e)throw new Pe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Fa.Cache=Qn;var xa=yi(function(e,t){var n=(t=1==t.length&&qa(t[0])?Nt(t[0],Zt(oo())):Nt(mr(t,1),Zt(oo()))).length;return zr(function(r){for(var i=-1,o=yn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return St(e,this,r)})}),Ua=zr(function(e,t){var n=sn(t,io(Ua));return Wi(e,u,i,t,n)}),Ma=zr(function(e,t){var n=sn(t,io(Ma));return Wi(e,64,i,t,n)}),La=Xi(function(e,t){return Wi(e,256,i,i,i,t)});function ja(e,t){return e===t||e!=e&&t!=t}var Va=qi(Tr),Ba=qi(function(e,t){return e>=t}),Ga=Ar(function(){return arguments}())?Ar:function(e){return es(e)&&Fe.call(e,"callee")&&!He.call(e,"callee")},qa=r.isArray,$a=yt?Zt(yt):function(e){return es(e)&&Sr(e)==N};function Qa(e){return null!=e&&Ja(e.length)&&!Ya(e)}function Ha(e){return es(e)&&Qa(e)}var za=gt||mu,Wa=vt?Zt(vt):function(e){return es(e)&&Sr(e)==v};function Za(e){if(!es(e))return!1;var t=Sr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Ya(e){if(!Xa(e))return!1;var t=Sr(e);return t==E||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ka(e){return"number"==typeof e&&e==fs(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function Xa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=bt?Zt(bt):function(e){return es(e)&&po(e)==I};function ns(e){return"number"==typeof e||es(e)&&Sr(e)==S}function rs(e){if(!es(e)||Sr(e)!=T)return!1;var t=$e(e);if(null===t)return!0;var n=Fe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Re.call(n)==Me}var is=Et?Zt(Et):function(e){return es(e)&&Sr(e)==w},os=_t?Zt(_t):function(e){return es(e)&&po(e)==P};function as(e){return"string"==typeof e||!qa(e)&&es(e)&&Sr(e)==D}function ss(e){return"symbol"==typeof e||es(e)&&Sr(e)==A}var us=It?Zt(It):function(e){return es(e)&&Ja(e.length)&&!!it[Sr(e)]},cs=qi(xr),ls=qi(function(e,t){return e<=t});function ps(e){if(!e)return[];if(Qa(e))return as(e)?pn(e):wi(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=po(e);return(t==I?on:t==P?un:js)(e)}function ds(e){return e?(e=ms(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fs(e){var t=ds(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?or(fs(e),0,f):0}function ms(e){if("number"==typeof e)return e;if(ss(e))return d;if(Xa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Xa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Wt(e);var n=he.test(e);return n||ge.test(e)?ut(e.slice(2),n?2:8):fe.test(e)?d:+e}function gs(e){return Pi(e,Ns(e))}function ys(e){return null==e?"":ai(e)}var vs=Ai(function(e,t){if(_o(t)||Qa(t))Pi(t,Os(t),e);else for(var n in t)Fe.call(t,n)&&Xn(e,n,t[n])}),bs=Ai(function(e,t){Pi(t,Ns(t),e)}),Es=Ai(function(e,t,n,r){Pi(t,Ns(t),e,r)}),_s=Ai(function(e,t,n,r){Pi(t,Os(t),e,r)}),Is=Xi(ir),Ss=zr(function(e,t){e=Te(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&yo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Ns(a),u=-1,c=s.length;++u<c;){var l=s[u],p=e[l];(p===i||ja(p,Oe[l])&&!Fe.call(e,l))&&(e[l]=a[l])}return e}),Ts=zr(function(e){return e.push(i,Yi),St(Fs,i,e)});function Cs(e,t,n){var r=null==e?i:_r(e,t);return r===i?n:r}function ws(e,t){return null!=e&&fo(e,t,wr)}var Ps=Li(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),e[t]=n},Xs(nu)),Ds=Li(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),Fe.call(e,t)?e[t].push(n):e[t]=[n]},oo),As=zr(Dr);function Os(e){return Qa(e)?Wn(e):kr(e)}function Ns(e){return Qa(e)?Wn(e,!0):function(e){if(!Xa(e))return function(e){var t=[];if(null!=e)for(var n in Te(e))t.push(n);return t}(e);var t=_o(e),n=[];for(var r in e)("constructor"!=r||!t&&Fe.call(e,r))&&n.push(r);return n}(e)}var Rs=Ai(function(e,t,n){jr(e,t,n)}),Fs=Ai(function(e,t,n,r){jr(e,t,n,r)}),ks=Xi(function(e,t){var n={};if(null==e)return n;var r=!1;t=Nt(t,function(t){return t=gi(t,e),r||(r=t.length>1),t}),Pi(e,to(e),n),r&&(n=ar(n,7,Ki));for(var i=t.length;i--;)ui(n,t[i]);return n}),xs=Xi(function(e,t){return null==e?{}:function(e,t){return Gr(e,t,function(t,n){return ws(e,n)})}(e,t)});function Us(e,t){if(null==e)return{};var n=Nt(to(e),function(e){return[e]});return t=oo(t),Gr(e,n,function(e,n){return t(e,n[0])})}var Ms=zi(Os),Ls=zi(Ns);function js(e){return null==e?[]:Yt(e,Os(e))}var Vs=Fi(function(e,t,n){return t=t.toLowerCase(),e+(n?Bs(t):t)});function Bs(e){return Zs(ys(e).toLowerCase())}function Gs(e){return(e=ys(e))&&e.replace(ve,en).replace(Ke,"")}var qs=Fi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),$s=Fi(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Qs=Ri("toLowerCase"),Hs=Fi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),zs=Fi(function(e,t,n){return e+(n?" ":"")+Zs(t)}),Ws=Fi(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Zs=Ri("toUpperCase");function Ys(e,t,n){return e=ys(e),(t=n?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Xe)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Ks=zr(function(e,t){try{return St(e,i,t)}catch(e){return Za(e)?e:new _e(e)}}),Js=Xi(function(e,t){return Ct(t,function(t){t=Uo(t),rr(e,t,Da(e[t],e))}),e});function Xs(e){return function(){return e}}var eu=Ui(),tu=Ui(!0);function nu(e){return e}function ru(e){return Fr("function"==typeof e?e:ar(e,1))}var iu=zr(function(e,t){return function(n){return Dr(n,e,t)}}),ou=zr(function(e,t){return function(n){return Dr(e,n,t)}});function au(e,t,n){var r=Os(t),i=Er(t,r);null!=n||Xa(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,Os(t)));var o=!(Xa(n)&&"chain"in n&&!n.chain),a=Ya(e);return Ct(i,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=wi(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})}),e}function su(){}var uu=Vi(Nt),cu=Vi(Pt),lu=Vi(xt);function pu(e){return vo(e)?qt(Uo(e)):function(e){return function(t){return _r(t,e)}}(e)}var du=Gi(),fu=Gi(!0);function hu(){return[]}function mu(){return!1}var gu,yu=ji(function(e,t){return e+t},0),vu=Qi("ceil"),bu=ji(function(e,t){return e/t},1),Eu=Qi("floor"),_u=ji(function(e,t){return e*t},1),Iu=Qi("round"),Su=ji(function(e,t){return e-t},0);return Ln.after=function(e,t){if("function"!=typeof t)throw new Pe(o);return e=fs(e),function(){if(--e<1)return t.apply(this,arguments)}},Ln.ary=wa,Ln.assign=vs,Ln.assignIn=bs,Ln.assignInWith=Es,Ln.assignWith=_s,Ln.at=Is,Ln.before=Pa,Ln.bind=Da,Ln.bindAll=Js,Ln.bindKey=Aa,Ln.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Ln.chain=pa,Ln.chunk=function(e,t,n){t=(n?yo(e,t,n):t===i)?1:gn(fs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=r(dt(o/t));a<o;)u[s++]=ei(e,a,a+=t);return u},Ln.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Ln.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Rt(qa(n)?wi(n):[n],mr(t,1))},Ln.cond=function(e){var t=null==e?0:e.length,n=oo();return e=t?Nt(e,function(e){if("function"!=typeof e[1])throw new Pe(o);return[n(e[0]),e[1]]}):[],zr(function(n){for(var r=-1;++r<t;){var i=e[r];if(St(i[0],this,n))return St(i[1],this,n)}})},Ln.conforms=function(e){return function(e){var t=Os(e);return function(n){return sr(n,e,t)}}(ar(e,1))},Ln.constant=Xs,Ln.countBy=ha,Ln.create=function(e,t){var n=jn(e);return null==t?n:nr(n,t)},Ln.curry=function e(t,n,r){var o=Wi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Ln.curryRight=function e(t,n,r){var o=Wi(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Ln.debounce=Oa,Ln.defaults=Ss,Ln.defaultsDeep=Ts,Ln.defer=Na,Ln.delay=Ra,Ln.difference=jo,Ln.differenceBy=Vo,Ln.differenceWith=Bo,Ln.drop=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=n||t===i?1:fs(t))<0?0:t,r):[]},Ln.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,0,(t=r-(t=n||t===i?1:fs(t)))<0?0:t):[]},Ln.dropRightWhile=function(e,t){return e&&e.length?li(e,oo(t,3),!0,!0):[]},Ln.dropWhile=function(e,t){return e&&e.length?li(e,oo(t,3),!0):[]},Ln.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&yo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=fs(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:fs(r))<0&&(r+=o),r=n>r?0:hs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Ln.filter=function(e,t){return(qa(e)?Dt:hr)(e,oo(t,3))},Ln.flatMap=function(e,t){return mr(Ia(e,t),1)},Ln.flatMapDeep=function(e,t){return mr(Ia(e,t),l)},Ln.flatMapDepth=function(e,t,n){return n=n===i?1:fs(n),mr(Ia(e,t),n)},Ln.flatten=$o,Ln.flattenDeep=function(e){return null!=e&&e.length?mr(e,l):[]},Ln.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===i?1:fs(t)):[]},Ln.flip=function(e){return Wi(e,512)},Ln.flow=eu,Ln.flowRight=tu,Ln.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];rr(r,i[0],i[1])}return r},Ln.functions=function(e){return null==e?[]:Er(e,Os(e))},Ln.functionsIn=function(e){return null==e?[]:Er(e,Ns(e))},Ln.groupBy=ba,Ln.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},Ln.intersection=Ho,Ln.intersectionBy=zo,Ln.intersectionWith=Wo,Ln.invert=Ps,Ln.invertBy=Ds,Ln.invokeMap=Ea,Ln.iteratee=ru,Ln.keyBy=_a,Ln.keys=Os,Ln.keysIn=Ns,Ln.map=Ia,Ln.mapKeys=function(e,t){var n={};return t=oo(t,3),vr(e,function(e,r,i){rr(n,t(e,r,i),e)}),n},Ln.mapValues=function(e,t){var n={};return t=oo(t,3),vr(e,function(e,r,i){rr(n,r,t(e,r,i))}),n},Ln.matches=function(e){return Mr(ar(e,1))},Ln.matchesProperty=function(e,t){return Lr(e,ar(t,1))},Ln.memoize=Fa,Ln.merge=Rs,Ln.mergeWith=Fs,Ln.method=iu,Ln.methodOf=ou,Ln.mixin=au,Ln.negate=ka,Ln.nthArg=function(e){return e=fs(e),zr(function(t){return Vr(t,e)})},Ln.omit=ks,Ln.omitBy=function(e,t){return Us(e,ka(oo(t)))},Ln.once=function(e){return Pa(2,e)},Ln.orderBy=function(e,t,n,r){return null==e?[]:(qa(t)||(t=null==t?[]:[t]),qa(n=r?i:n)||(n=null==n?[]:[n]),Br(e,t,n))},Ln.over=uu,Ln.overArgs=xa,Ln.overEvery=cu,Ln.overSome=lu,Ln.partial=Ua,Ln.partialRight=Ma,Ln.partition=Sa,Ln.pick=xs,Ln.pickBy=Us,Ln.property=pu,Ln.propertyOf=function(e){return function(t){return null==e?i:_r(e,t)}},Ln.pull=Yo,Ln.pullAll=Ko,Ln.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,oo(n,2)):e},Ln.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,i,n):e},Ln.pullAt=Jo,Ln.range=du,Ln.rangeRight=fu,Ln.rearg=La,Ln.reject=function(e,t){return(qa(e)?Dt:hr)(e,ka(oo(t,3)))},Ln.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=oo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return $r(e,i),n},Ln.rest=function(e,t){if("function"!=typeof e)throw new Pe(o);return zr(e,t=t===i?t:fs(t))},Ln.reverse=Xo,Ln.sampleSize=function(e,t,n){return t=(n?yo(e,t,n):t===i)?1:fs(t),(qa(e)?Yn:Zr)(e,t)},Ln.set=function(e,t,n){return null==e?e:Yr(e,t,n)},Ln.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Yr(e,t,n,r)},Ln.shuffle=function(e){return(qa(e)?Kn:Xr)(e)},Ln.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&yo(e,t,n)?(t=0,n=r):(t=null==t?0:fs(t),n=n===i?r:fs(n)),ei(e,t,n)):[]},Ln.sortBy=Ta,Ln.sortedUniq=function(e){return e&&e.length?ii(e):[]},Ln.sortedUniqBy=function(e,t){return e&&e.length?ii(e,oo(t,2)):[]},Ln.split=function(e,t,n){return n&&"number"!=typeof n&&yo(e,t,n)&&(t=n=i),(n=n===i?f:n>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=ai(t))&&rn(e)?vi(pn(e),0,n):e.split(t,n):[]},Ln.spread=function(e,t){if("function"!=typeof e)throw new Pe(o);return t=null==t?0:gn(fs(t),0),zr(function(n){var r=n[t],i=vi(n,0,t);return r&&Rt(i,r),St(e,this,i)})},Ln.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Ln.take=function(e,t,n){return e&&e.length?ei(e,0,(t=n||t===i?1:fs(t))<0?0:t):[]},Ln.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=r-(t=n||t===i?1:fs(t)))<0?0:t,r):[]},Ln.takeRightWhile=function(e,t){return e&&e.length?li(e,oo(t,3),!1,!0):[]},Ln.takeWhile=function(e,t){return e&&e.length?li(e,oo(t,3)):[]},Ln.tap=function(e,t){return t(e),e},Ln.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Pe(o);return Xa(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Oa(e,t,{leading:r,maxWait:t,trailing:i})},Ln.thru=da,Ln.toArray=ps,Ln.toPairs=Ms,Ln.toPairsIn=Ls,Ln.toPath=function(e){return qa(e)?Nt(e,Uo):ss(e)?[e]:wi(xo(ys(e)))},Ln.toPlainObject=gs,Ln.transform=function(e,t,n){var r=qa(e),i=r||za(e)||us(e);if(t=oo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Xa(e)&&Ya(o)?jn($e(e)):{}}return(i?Ct:vr)(e,function(e,r,i){return t(n,e,r,i)}),n},Ln.unary=function(e){return wa(e,1)},Ln.union=ea,Ln.unionBy=ta,Ln.unionWith=na,Ln.uniq=function(e){return e&&e.length?si(e):[]},Ln.uniqBy=function(e,t){return e&&e.length?si(e,oo(t,2)):[]},Ln.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?si(e,i,t):[]},Ln.unset=function(e,t){return null==e||ui(e,t)},Ln.unzip=ra,Ln.unzipWith=ia,Ln.update=function(e,t,n){return null==e?e:ci(e,t,mi(n))},Ln.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ci(e,t,mi(n),r)},Ln.values=js,Ln.valuesIn=function(e){return null==e?[]:Yt(e,Ns(e))},Ln.without=oa,Ln.words=Ys,Ln.wrap=function(e,t){return Ua(mi(t),e)},Ln.xor=aa,Ln.xorBy=sa,Ln.xorWith=ua,Ln.zip=ca,Ln.zipObject=function(e,t){return fi(e||[],t||[],Xn)},Ln.zipObjectDeep=function(e,t){return fi(e||[],t||[],Yr)},Ln.zipWith=la,Ln.entries=Ms,Ln.entriesIn=Ls,Ln.extend=bs,Ln.extendWith=Es,au(Ln,Ln),Ln.add=yu,Ln.attempt=Ks,Ln.camelCase=Vs,Ln.capitalize=Bs,Ln.ceil=vu,Ln.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ms(n))==n?n:0),t!==i&&(t=(t=ms(t))==t?t:0),or(ms(e),t,n)},Ln.clone=function(e){return ar(e,4)},Ln.cloneDeep=function(e){return ar(e,5)},Ln.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:i)},Ln.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:i)},Ln.conformsTo=function(e,t){return null==t||sr(e,t,Os(t))},Ln.deburr=Gs,Ln.defaultTo=function(e,t){return null==e||e!=e?t:e},Ln.divide=bu,Ln.endsWith=function(e,t,n){e=ys(e),t=ai(t);var r=e.length,o=n=n===i?r:or(fs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Ln.eq=ja,Ln.escape=function(e){return(e=ys(e))&&W.test(e)?e.replace(H,tn):e},Ln.escapeRegExp=function(e){return(e=ys(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Ln.every=function(e,t,n){var r=qa(e)?Pt:dr;return n&&yo(e,t,n)&&(t=i),r(e,oo(t,3))},Ln.find=ma,Ln.findIndex=Go,Ln.findKey=function(e,t){return Mt(e,oo(t,3),vr)},Ln.findLast=ga,Ln.findLastIndex=qo,Ln.findLastKey=function(e,t){return Mt(e,oo(t,3),br)},Ln.floor=Eu,Ln.forEach=ya,Ln.forEachRight=va,Ln.forIn=function(e,t){return null==e?e:gr(e,oo(t,3),Ns)},Ln.forInRight=function(e,t){return null==e?e:yr(e,oo(t,3),Ns)},Ln.forOwn=function(e,t){return e&&vr(e,oo(t,3))},Ln.forOwnRight=function(e,t){return e&&br(e,oo(t,3))},Ln.get=Cs,Ln.gt=Va,Ln.gte=Ba,Ln.has=function(e,t){return null!=e&&fo(e,t,Cr)},Ln.hasIn=ws,Ln.head=Qo,Ln.identity=nu,Ln.includes=function(e,t,n,r){e=Qa(e)?e:js(e),n=n&&!r?fs(n):0;var i=e.length;return n<0&&(n=gn(i+n,0)),as(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&jt(e,t,n)>-1},Ln.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:fs(n);return i<0&&(i=gn(r+i,0)),jt(e,t,i)},Ln.inRange=function(e,t,n){return t=ds(t),n===i?(n=t,t=0):n=ds(n),function(e,t,n){return e>=yn(t,n)&&e<gn(t,n)}(e=ms(e),t,n)},Ln.invoke=As,Ln.isArguments=Ga,Ln.isArray=qa,Ln.isArrayBuffer=$a,Ln.isArrayLike=Qa,Ln.isArrayLikeObject=Ha,Ln.isBoolean=function(e){return!0===e||!1===e||es(e)&&Sr(e)==y},Ln.isBuffer=za,Ln.isDate=Wa,Ln.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},Ln.isEmpty=function(e){if(null==e)return!0;if(Qa(e)&&(qa(e)||"string"==typeof e||"function"==typeof e.splice||za(e)||us(e)||Ga(e)))return!e.length;var t=po(e);if(t==I||t==P)return!e.size;if(_o(e))return!kr(e).length;for(var n in e)if(Fe.call(e,n))return!1;return!0},Ln.isEqual=function(e,t){return Or(e,t)},Ln.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Or(e,t,i,n):!!r},Ln.isError=Za,Ln.isFinite=function(e){return"number"==typeof e&&Ut(e)},Ln.isFunction=Ya,Ln.isInteger=Ka,Ln.isLength=Ja,Ln.isMap=ts,Ln.isMatch=function(e,t){return e===t||Nr(e,t,so(t))},Ln.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Nr(e,t,so(t),n)},Ln.isNaN=function(e){return ns(e)&&e!=+e},Ln.isNative=function(e){if(Eo(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)},Ln.isNil=function(e){return null==e},Ln.isNull=function(e){return null===e},Ln.isNumber=ns,Ln.isObject=Xa,Ln.isObjectLike=es,Ln.isPlainObject=rs,Ln.isRegExp=is,Ln.isSafeInteger=function(e){return Ka(e)&&e>=-9007199254740991&&e<=p},Ln.isSet=os,Ln.isString=as,Ln.isSymbol=ss,Ln.isTypedArray=us,Ln.isUndefined=function(e){return e===i},Ln.isWeakMap=function(e){return es(e)&&po(e)==O},Ln.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==Sr(e)},Ln.join=function(e,t){return null==e?"":$t.call(e,t)},Ln.kebabCase=qs,Ln.last=Zo,Ln.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=fs(n))<0?gn(r+o,0):yn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Lt(e,Bt,o,!0)},Ln.lowerCase=$s,Ln.lowerFirst=Qs,Ln.lt=cs,Ln.lte=ls,Ln.max=function(e){return e&&e.length?fr(e,nu,Tr):i},Ln.maxBy=function(e,t){return e&&e.length?fr(e,oo(t,2),Tr):i},Ln.mean=function(e){return Gt(e,nu)},Ln.meanBy=function(e,t){return Gt(e,oo(t,2))},Ln.min=function(e){return e&&e.length?fr(e,nu,xr):i},Ln.minBy=function(e,t){return e&&e.length?fr(e,oo(t,2),xr):i},Ln.stubArray=hu,Ln.stubFalse=mu,Ln.stubObject=function(){return{}},Ln.stubString=function(){return""},Ln.stubTrue=function(){return!0},Ln.multiply=_u,Ln.nth=function(e,t){return e&&e.length?Vr(e,fs(t)):i},Ln.noConflict=function(){return pt._===this&&(pt._=Le),this},Ln.noop=su,Ln.now=Ca,Ln.pad=function(e,t,n){e=ys(e);var r=(t=fs(t))?ln(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Bi(ft(i),n)+e+Bi(dt(i),n)},Ln.padEnd=function(e,t,n){e=ys(e);var r=(t=fs(t))?ln(e):0;return t&&r<t?e+Bi(t-r,n):e},Ln.padStart=function(e,t,n){e=ys(e);var r=(t=fs(t))?ln(e):0;return t&&r<t?Bi(t-r,n)+e:e},Ln.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(ys(e).replace(re,""),t||0)},Ln.random=function(e,t,n){if(n&&"boolean"!=typeof n&&yo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ds(e),t===i?(t=e,e=0):t=ds(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=En();return yn(e+o*(t-e+st("1e-"+((o+"").length-1))),t)}return Qr(e,t)},Ln.reduce=function(e,t,n){var r=qa(e)?Ft:Qt,i=arguments.length<3;return r(e,oo(t,4),n,i,lr)},Ln.reduceRight=function(e,t,n){var r=qa(e)?kt:Qt,i=arguments.length<3;return r(e,oo(t,4),n,i,pr)},Ln.repeat=function(e,t,n){return t=(n?yo(e,t,n):t===i)?1:fs(t),Hr(ys(e),t)},Ln.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ln.result=function(e,t,n){var r=-1,o=(t=gi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[Uo(t[r])];a===i&&(r=o,a=n),e=Ya(a)?a.call(e):a}return e},Ln.round=Iu,Ln.runInContext=e,Ln.sample=function(e){return(qa(e)?Zn:Wr)(e)},Ln.size=function(e){if(null==e)return 0;if(Qa(e))return as(e)?ln(e):e.length;var t=po(e);return t==I||t==P?e.size:kr(e).length},Ln.snakeCase=Hs,Ln.some=function(e,t,n){var r=qa(e)?xt:ti;return n&&yo(e,t,n)&&(t=i),r(e,oo(t,3))},Ln.sortedIndex=function(e,t){return ni(e,t)},Ln.sortedIndexBy=function(e,t,n){return ri(e,t,oo(n,2))},Ln.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ni(e,t);if(r<n&&ja(e[r],t))return r}return-1},Ln.sortedLastIndex=function(e,t){return ni(e,t,!0)},Ln.sortedLastIndexBy=function(e,t,n){return ri(e,t,oo(n,2),!0)},Ln.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ni(e,t,!0)-1;if(ja(e[n],t))return n}return-1},Ln.startCase=zs,Ln.startsWith=function(e,t,n){return e=ys(e),n=null==n?0:or(fs(n),0,e.length),t=ai(t),e.slice(n,n+t.length)==t},Ln.subtract=Su,Ln.sum=function(e){return e&&e.length?Ht(e,nu):0},Ln.sumBy=function(e,t){return e&&e.length?Ht(e,oo(t,2)):0},Ln.template=function(e,t,n){var r=Ln.templateSettings;n&&yo(e,t,n)&&(t=i),e=ys(e),t=_s({},t,r,Zi);var o=_s({},t.imports,r.imports,Zi),a=Os(o),s=Yt(o,a);Ct(a,function(e){if(ce.test(e))throw new _e("Invalid `imports` option passed into `_.template`")});var u,c,l=0,p=t.interpolate||be,d="__p += '",f=Ce((t.escape||be).source+"|"+p.source+"|"+(p===K?pe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Fe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(f,function(t,n,r,i,o,a){return r||(r=i),d+=e.slice(l,a).replace(Ee,nn),n&&(u=!0,d+="' +\n__e("+n+") +\n'"),o&&(c=!0,d+="';\n"+o+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=a+t.length,t}),d+="';\n";var m=Fe.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new _e("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(c?d.replace(G,""):d).replace(q,"$1").replace($,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(u?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Ks(function(){return Ie(a,h+"return "+d).apply(i,s)});if(g.source=d,Za(g))throw g;return g},Ln.times=function(e,t){if((e=fs(e))<1||e>p)return[];var n=f,r=yn(e,f);t=oo(t),e-=f;for(var i=zt(r,t);++n<e;)t(n);return i},Ln.toFinite=ds,Ln.toInteger=fs,Ln.toLength=hs,Ln.toLower=function(e){return ys(e).toLowerCase()},Ln.toNumber=ms,Ln.toSafeInteger=function(e){return e?or(fs(e),-9007199254740991,p):0===e?e:0},Ln.toString=ys,Ln.toUpper=function(e){return ys(e).toUpperCase()},Ln.trim=function(e,t,n){if((e=ys(e))&&(n||t===i))return Wt(e);if(!e||!(t=ai(t)))return e;var r=pn(e),o=pn(t);return vi(r,Jt(r,o),Xt(r,o)+1).join("")},Ln.trimEnd=function(e,t,n){if((e=ys(e))&&(n||t===i))return e.slice(0,dn(e)+1);if(!e||!(t=ai(t)))return e;var r=pn(e);return vi(r,0,Xt(r,pn(t))+1).join("")},Ln.trimStart=function(e,t,n){if((e=ys(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=ai(t)))return e;var r=pn(e);return vi(r,Jt(r,pn(t))).join("")},Ln.truncate=function(e,t){var n=30,r="...";if(Xa(t)){var o="separator"in t?t.separator:o;n="length"in t?fs(t.length):n,r="omission"in t?ai(t.omission):r}var a=(e=ys(e)).length;if(rn(e)){var s=pn(e);a=s.length}if(n>=a)return e;var u=n-ln(r);if(u<1)return r;var c=s?vi(s,0,u).join(""):e.slice(0,u);if(o===i)return c+r;if(s&&(u+=c.length-u),is(o)){if(e.slice(u).search(o)){var l,p=c;for(o.global||(o=Ce(o.source,ys(de.exec(o))+"g")),o.lastIndex=0;l=o.exec(p);)var d=l.index;c=c.slice(0,d===i?u:d)}}else if(e.indexOf(ai(o),u)!=u){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+r},Ln.unescape=function(e){return(e=ys(e))&&z.test(e)?e.replace(Q,fn):e},Ln.uniqueId=function(e){var t=++ke;return ys(e)+t},Ln.upperCase=Ws,Ln.upperFirst=Zs,Ln.each=ya,Ln.eachRight=va,Ln.first=Qo,au(Ln,(gu={},vr(Ln,function(e,t){Fe.call(Ln.prototype,t)||(gu[t]=e)}),gu),{chain:!1}),Ln.VERSION="4.18.1",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Ln[e].placeholder=Ln}),Ct(["drop","take"],function(e,t){Gn.prototype[e]=function(n){n=n===i?1:gn(fs(n),0);var r=this.__filtered__&&!t?new Gn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,f),type:e+(r.__dir__<0?"Right":"")}),r},Gn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Ct(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Gn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Ct(["head","last"],function(e,t){var n="take"+(t?"Right":"");Gn.prototype[e]=function(){return this[n](1).value()[0]}}),Ct(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Gn.prototype[e]=function(){return this.__filtered__?new Gn(this):this[n](1)}}),Gn.prototype.compact=function(){return this.filter(nu)},Gn.prototype.find=function(e){return this.filter(e).head()},Gn.prototype.findLast=function(e){return this.reverse().find(e)},Gn.prototype.invokeMap=zr(function(e,t){return"function"==typeof e?new Gn(this):this.map(function(n){return Dr(n,e,t)})}),Gn.prototype.reject=function(e){return this.filter(ka(oo(e)))},Gn.prototype.slice=function(e,t){e=fs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Gn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=fs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Gn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Gn.prototype.toArray=function(){return this.take(f)},vr(Gn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Ln[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Ln.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Gn,c=s[0],l=u||qa(t),p=function(e){var t=o.apply(Ln,Rt([e],s));return r&&d?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var d=this.__chain__,f=!!this.__actions__.length,h=a&&!d,m=u&&!f;if(!a&&l){t=m?t:new Gn(this);var g=e.apply(t,s);return g.__actions__.push({func:da,args:[p],thisArg:i}),new Bn(g,d)}return h&&m?e.apply(this,s):(g=this.thru(p),h?r?g.value()[0]:g.value():g)})}),Ct(["pop","push","shift","sort","splice","unshift"],function(e){var t=De[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Ln.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(qa(i)?i:[],e)}return this[n](function(n){return t.apply(qa(n)?n:[],e)})}}),vr(Gn.prototype,function(e,t){var n=Ln[t];if(n){var r=n.name+"";Fe.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}}),An[Mi(i,2).name]=[{name:"wrapper",func:i}],Gn.prototype.clone=function(){var e=new Gn(this.__wrapped__);return e.__actions__=wi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=wi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=wi(this.__views__),e},Gn.prototype.reverse=function(){if(this.__filtered__){var e=new Gn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Gn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qa(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=gn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,p=l.length,d=0,f=yn(u,this.__takeCount__);if(!n||!r&&i==u&&f==u)return pi(e,this.__actions__);var h=[];e:for(;u--&&d<f;){for(var m=-1,g=e[c+=t];++m<p;){var y=l[m],v=y.iteratee,b=y.type,E=v(g);if(2==b)g=E;else if(!E){if(1==b)continue e;break e}}h[d++]=g}return h},Ln.prototype.at=fa,Ln.prototype.chain=function(){return pa(this)},Ln.prototype.commit=function(){return new Bn(this.value(),this.__chain__)},Ln.prototype.next=function(){this.__values__===i&&(this.__values__=ps(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Ln.prototype.plant=function(e){for(var t,n=this;n instanceof Vn;){var r=Lo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Ln.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Gn){var t=e;return this.__actions__.length&&(t=new Gn(this)),(t=t.reverse()).__actions__.push({func:da,args:[Xo],thisArg:i}),new Bn(t,this.__chain__)}return this.thru(Xo)},Ln.prototype.toJSON=Ln.prototype.valueOf=Ln.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Ln.prototype.first=Ln.prototype.head,Ze&&(Ln.prototype[Ze]=function(){return this}),Ln}();pt._=hn,(r=function(){return hn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},6760:(e,t,n)=>{var r=n(343),i=n(8286),o=n(3401),a=n(6152);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},733:(e,t,n)=>{var r=n(6738);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],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},8537:(e,t,n)=>{var r=n(4565),i=n(7263)(function(e,t,n){r(e,t,n)});e.exports=i},7620:(e,t,n)=>{var r=n(343),i=n(8874),o=n(9078),a=n(7297),s=n(752),u=n(8642),c=n(9097),l=n(6939),p=c(function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,function(t){return t=a(t,e),c||(c=t.length>1),t}),s(e,l(e),n),c&&(n=i(n,7,u));for(var p=t.length;p--;)o(n,t[p]);return n});e.exports=p},5798:(e,t,n)=>{var r=n(256),i=n(2952),o=n(1401),a=n(3812);e.exports=function(e){return o(e)?r(a(e)):i(e)}},1525:(e,t,n)=>{var r=n(7064),i=n(8286),o=n(4751),a=n(6152),s=n(2406);e.exports=function(e,t,n){var u=a(e)?r:o;return n&&s(e,t,n)&&(t=void 0),u(e,i(t,3))}},981:e=>{e.exports=function(){return[]}},6330:e=>{e.exports=function(){return!1}},5707:(e,t,n)=>{var r=n(7642),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},8101:(e,t,n)=>{var r=n(5707);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},7642:(e,t,n)=>{var r=n(1704),i=n(9259),o=n(4795),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(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)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},3329:(e,t,n)=>{var r=n(752),i=n(4225);e.exports=function(e){return r(e,i(e))}},6188:(e,t,n)=>{var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},8346:(e,t,n)=>{var r=n(753),i=n(249);e.exports=function(e){return null==e?[]:r(e,i(e))}},1434:(e,t,n)=>{t.TypedEmitter=n(2699).EventEmitter},3884:(e,t,n)=>{n.d(t,{fEx:()=>R,zVd:()=>F,zu7:()=>k,dpb:()=>x,T0E:()=>qo,d4U:()=>$o,nwm:()=>U,Ijf:()=>M,ivL:()=>Oa,v2N:()=>L,fg_:()=>j,$SX:()=>V,Mbo:()=>B,E34:()=>G,Bkk:()=>Es,Y92:()=>za,m06:()=>Ms,bM9:()=>q,ucG:()=>as,sZY:()=>Sh,Yti:()=>a.BaseEntitlement,PLi:()=>$,yTz:()=>Q,FzK:()=>H,tvV:()=>z,ugv:()=>W,feI:()=>a.BooleanEntitlement,Yop:()=>a.BooleanEntitlementFallback,mu$:()=>a.BooleanEntitlementOptions,sf5:()=>Ph,x3v:()=>Ss,jAf:()=>Ds,u4I:()=>Z,bno:()=>Y,bEP:()=>Pa,weZ:()=>Na,bfH:()=>o.ClientConfiguration,uS8:()=>K,K6s:()=>Rs,eyU:()=>Ns,wE_:()=>J,RJY:()=>X,zdd:()=>Ao,i2A:()=>ee,fc5:()=>te,K79:()=>ne,$i2:()=>re,m0x:()=>Ws,$QI:()=>Hs,WJn:()=>xs,Pzm:()=>es,Q_D:()=>da,fc8:()=>ie,XCy:()=>Ya,W0R:()=>ps,MnN:()=>a.CreditEntitlement,ETy:()=>a.CreditEntitlementFallback,vPg:()=>ba,Q0c:()=>a.CreditEntitlementOptions,NWj:()=>oe,lj3:()=>Ja,XQy:()=>ae,R8w:()=>Ka,gYt:()=>se,g9Q:()=>ue,U9R:()=>ce,bSK:()=>le,BGD:()=>pe,Eq9:()=>de,mKD:()=>Xa,_Yx:()=>os,uMJ:()=>fe,oiL:()=>ts,Fa6:()=>he,$ur:()=>me,Ch6:()=>a.CustomerEntitlementsResult,of1:()=>a.CustomerEntitlementsResultV2,hk_:()=>No,vjn:()=>Gh,_d$:()=>Ia,NSU:()=>Ca,Eph:()=>ya,g31:()=>wa,u9g:()=>_a,aqW:()=>ha,LBz:()=>ga,qYx:()=>fa,X$1:()=>ma,OoB:()=>Fo,pDu:()=>ge,rpU:()=>ye,fYe:()=>Xo,Pg9:()=>ve,GBW:()=>Jo,g20:()=>be,i1W:()=>Ee,vQb:()=>Vs,yEZ:()=>_e,Wky:()=>gs,C2e:()=>Ie,Lbh:()=>Se,RCf:()=>wh,z2r:()=>a.Entitlement,AVk:()=>Te,cUI:()=>sa,HHl:()=>us,XHu:()=>Ce,Uze:()=>we,sA9:()=>Ea,cG4:()=>la,H5H:()=>a.EntitlementV2,RlM:()=>a.EntitlementsFallback,JrM:()=>Pe,bII:()=>ua,jUP:()=>ss,FT8:()=>De,xEh:()=>a.EnumEntitlement,cjh:()=>a.EnumEntitlementFallback,$Yq:()=>a.EnumEntitlementOptions,Pr8:()=>Ae,YOP:()=>Oe,IZr:()=>Ne,$BG:()=>Re,Qj0:()=>Fe,jKp:()=>ke,e8S:()=>Eu,m5b:()=>Ts,wO5:()=>Cs,VpA:()=>_u,FFB:()=>xe,y3V:()=>Ue,Zr9:()=>Me,g3t:()=>Le,m72:()=>je,i3Z:()=>Ve,zcH:()=>Be,zOd:()=>En,o_I:()=>Ge,bWm:()=>qe,EP_:()=>va,o5f:()=>aa,i4m:()=>$e,sEr:()=>Qe,GAT:()=>He,iKc:()=>ze,Tex:()=>We,XsQ:()=>Sa,U9t:()=>Ze,OpC:()=>Js,bgy:()=>Xs,T5f:()=>bu,jPD:()=>pu,Q$1:()=>nu,Cmg:()=>mu,$Iz:()=>gu,tIq:()=>yu,zHr:()=>vu,ZeH:()=>Ys,$Av:()=>lu,TpL:()=>Ks,pWb:()=>au,Rk$:()=>su,roX:()=>iu,RXg:()=>ou,_xu:()=>du,RVX:()=>ru,Fd7:()=>uu,N9K:()=>cu,do1:()=>tu,hH:()=>eu,K0T:()=>fu,p7R:()=>hu,E7k:()=>Gs,EAJ:()=>Ye,Mal:()=>ys,KeG:()=>qs,uMn:()=>Ke,qBr:()=>Je,DFP:()=>ta,m76:()=>fs,$jJ:()=>hs,B8X:()=>Xe,N5j:()=>_s,Us3:()=>et,isD:()=>tt,nN6:()=>ja,CQ1:()=>i.LogConfiguration,ini:()=>Uu,YdH:()=>i.Logger,VsH:()=>Ch,Kyg:()=>nt,XY6:()=>rt,QmV:()=>it,puT:()=>ot,_sg:()=>a.MeteredEntitlement,BuV:()=>a.MeteredEntitlementFallback,fAd:()=>a.MeteredEntitlementOptions,bGN:()=>Us,$Bh:()=>ka,hVT:()=>xa,k8_:()=>Ra,wn5:()=>Ua,lgL:()=>Ma,VeJ:()=>Fa,pSI:()=>at,ctk:()=>Th,GL8:()=>a.NumericEntitlement,VHF:()=>a.NumericEntitlementFallback,o5C:()=>a.NumericEntitlementOptions,gpE:()=>st,PVi:()=>ut,opi:()=>vb,AQp:()=>Pu,Bve:()=>Iu,r$Y:()=>Su,zBW:()=>wu,LpH:()=>Tu,H81:()=>Cu,q5V:()=>ct,BoX:()=>Go,a8K:()=>Vo,zv6:()=>lt,RzF:()=>Lo,iI3:()=>pt,DW2:()=>Bo,lKo:()=>jo,jCI:()=>dt,OeJ:()=>ft,ab2:()=>pa,TVs:()=>ht,JU:()=>is,QdX:()=>mt,Kf7:()=>gt,LtK:()=>yt,r6R:()=>ns,fvX:()=>Ba,r4r:()=>Va,FcI:()=>La,qw4:()=>Ga,Cc7:()=>vt,kd9:()=>Qo,bOA:()=>Ho,qXR:()=>bt,yGq:()=>Ps,ZD9:()=>ws,wEB:()=>xo,YGW:()=>Et,Chb:()=>ko,_HY:()=>_t,cMT:()=>Mo,p_C:()=>It,Pte:()=>St,Ehw:()=>Oo,JkE:()=>Tt,ku9:()=>Ct,$Vq:()=>wt,QZw:()=>Pt,q6C:()=>ds,YlF:()=>Ha,rDA:()=>bs,CjA:()=>Wa,u0j:()=>Dt,Zam:()=>At,JDz:()=>ks,ZSL:()=>Fs,dO5:()=>Os,K5h:()=>As,UK7:()=>Za,JyR:()=>oa,GHz:()=>vs,_He:()=>$s,kyC:()=>Zs,nM6:()=>Ot,zWW:()=>zo,xrg:()=>rs,bj8:()=>Do,bGH:()=>Qa,cTO:()=>Po,SrV:()=>Nt,Xm9:()=>Rt,PO0:()=>Ft,FVE:()=>fb,iSe:()=>c.StiggClient,CPx:()=>Nu,x3Z:()=>kt,e$z:()=>xt,Yo2:()=>Da,ueJ:()=>Ut,eo$:()=>Mt,w1y:()=>Lt,c06:()=>jt,lS0:()=>Vt,abb:()=>Bt,ird:()=>Gt,_oj:()=>qt,e1Q:()=>$t,Ugm:()=>Ko,hvo:()=>Zo,tV1:()=>Qt,FL0:()=>Ro,Dxn:()=>ia,G6j:()=>Ht,eSW:()=>zt,DWP:()=>Wt,zjf:()=>ea,Eam:()=>na,URA:()=>ra,yBL:()=>Zt,SQC:()=>Yt,_q5:()=>wo,o88:()=>Kt,cUf:()=>Jt,YVG:()=>Xt,J5K:()=>Wo,nOi:()=>en,yhH:()=>tn,HsO:()=>Yo,XqI:()=>nn,wRo:()=>rn,hYU:()=>on,UAI:()=>an,aYi:()=>sn,PNd:()=>un,N9N:()=>Uo,$02:()=>js,Dc_:()=>Bs,bk4:()=>cn,p13:()=>ln,Yky:()=>r,mGS:()=>Ta,_gQ:()=>Ls,Dfv:()=>pn,bd6:()=>Qs,eKV:()=>ms,EQD:()=>Is,QNm:()=>qa,yaX:()=>$a,X3h:()=>dn,Buv:()=>fn,_yy:()=>hn,l3m:()=>ca,aVo:()=>ls,f4i:()=>cs,FoD:()=>mn,O0T:()=>gn,yyj:()=>zs,rCU:()=>yn,l9N:()=>vn,EOH:()=>bn,LkV:()=>Aa,ZPm:()=>Eb,mKo:()=>Au,RZ6:()=>Fu,Dvk:()=>xu,HBH:()=>Ru,McM:()=>ku});var r={};n.r(r),n.d(r,{AccessDeniedReason:()=>R,AccountAccessMethod:()=>F,AccountAccessRole:()=>k,AccountStatus:()=>x,AddonDependencyFragmentDoc:()=>qo,AddonFragmentDoc:()=>$o,AddonSortFields:()=>U,AggregationFunction:()=>M,AirwallexCheckoutCredentialsFragmentDoc:()=>Oa,Alignment:()=>L,ApiKeyScopeAction:()=>j,ApiKeyScopeResource:()=>V,ApiKeySortFields:()=>B,ApiKeyType:()=>G,ApplySubscriptionDocument:()=>Es,ApplySubscriptionFragmentDoc:()=>za,ArchiveCustomerDocument:()=>Ms,Auth0ApplicationType:()=>q,AutoRechargeSettingsFragmentDoc:()=>as,BillingAnchor:()=>$,BillingCadence:()=>Q,BillingModel:()=>H,BillingPeriod:()=>z,BillingVendorIdentifier:()=>W,CancelSubscriptionDocument:()=>Ss,CancelSubscriptionUpdatesDocument:()=>Ds,ChangeType:()=>Z,ChargeType:()=>Y,CheckoutConfigurationFragmentDoc:()=>Pa,CheckoutStateFragmentDoc:()=>Na,ConditionOperation:()=>K,ConsumeCreditsAsyncDocument:()=>Rs,ConsumeCreditsDocument:()=>Ns,ContractState:()=>J,ContractType:()=>X,CouponFragmentDoc:()=>Ao,CouponSortFields:()=>ee,CouponSource:()=>te,CouponStatus:()=>ne,CouponType:()=>re,CreateCouponDocument:()=>Ws,CreatePaymentSessionDocument:()=>Hs,CreateSubscriptionDocument:()=>xs,CreditBalanceFragmentDoc:()=>es,CreditBalanceUpdatedPayloadFragmentDoc:()=>da,CreditCadence:()=>ie,CreditConsumptionResponseFragmentDoc:()=>Ya,CreditCostEstimationFragmentDoc:()=>ps,CreditEntitlementFragmentDoc:()=>ba,CreditGrantCadence:()=>oe,CreditGrantFragmentDoc:()=>Ja,CreditGrantInvoiceBillingReason:()=>ae,CreditGrantInvoiceFragmentDoc:()=>Ka,CreditGrantInvoiceStatus:()=>se,CreditGrantSourceType:()=>ue,CreditGrantStatus:()=>ce,CreditGrantType:()=>le,CreditGrantTypeInput:()=>pe,CreditLedgerEventType:()=>de,CreditLedgerFragmentDoc:()=>Xa,CreditUsageFragmentDoc:()=>os,CreditUsageTimeRange:()=>fe,CreditsBalanceSummaryFragmentDoc:()=>ts,Currency:()=>he,CustomCurrencyStatus:()=>me,CustomerFragmentDoc:()=>No,CustomerPortalBillingInformationFragmentDoc:()=>Ia,CustomerPortalConfigurationFragmentDoc:()=>Ca,CustomerPortalEntitlementFragmentDoc:()=>ya,CustomerPortalFragmentDoc:()=>wa,CustomerPortalPromotionalEntitlementFragmentDoc:()=>_a,CustomerPortalSubscriptionAddonFragmentDoc:()=>ha,CustomerPortalSubscriptionFragmentDoc:()=>ga,CustomerPortalSubscriptionPriceFragmentDoc:()=>fa,CustomerPortalSubscriptionScheduledUpdateDataFragmentDoc:()=>ma,CustomerResourceFragmentDoc:()=>Fo,CustomerResourceSortFields:()=>ge,CustomerSortFields:()=>ye,CustomerStatisticsFragmentDoc:()=>Xo,CustomerSubscriptionSortFields:()=>ve,CustomerWithSubscriptionsFragmentDoc:()=>Jo,DataExportJobStatus:()=>be,DataExportSourceType:()=>Ee,DelegateSubscriptionToCustomerDocument:()=>Vs,Department:()=>_e,DetachCustomerPaymentMethodDocument:()=>gs,DiscountDurationType:()=>Ie,DiscountType:()=>Se,EntitlementBehavior:()=>Te,EntitlementFragmentDoc:()=>sa,EntitlementReferenceFragmentDoc:()=>us,EntitlementResetPeriod:()=>Ce,EntitlementType:()=>we,EntitlementUnionFragmentDoc:()=>Ea,EntitlementUsageUpdatedFragmentDoc:()=>la,EntitlementsStateAccessDeniedReason:()=>Pe,EntitlementsUpdatedPayloadFragmentDoc:()=>ua,EntitlementsUpdatedV2PayloadFragmentDoc:()=>ss,EntitySelectionMode:()=>De,EnvironmentAccessRole:()=>Ae,EnvironmentExportState:()=>Oe,EnvironmentProvisionStatus:()=>Ne,EnvironmentSortFields:()=>Re,EnvironmentType:()=>Fe,ErrorCode:()=>ke,EstimateEventCostDocument:()=>Eu,EstimateSubscriptionDocument:()=>Ts,EstimateSubscriptionUpdateDocument:()=>Cs,EstimateUsageCostDocument:()=>_u,EstimationRequestWarning:()=>xe,EstimationWarningCode:()=>Ue,EventActor:()=>Me,EventEntityType:()=>Le,EventLogSortFields:()=>je,EventLogType:()=>Ve,EventQueueProvisioningStatus:()=>Be,ExperimentGroupType:()=>En,ExperimentSortFields:()=>Ge,ExperimentStatus:()=>qe,FeatureEntitlementFragmentDoc:()=>va,FeatureFragmentDoc:()=>aa,FeatureGroupSortFields:()=>$e,FeatureGroupStatus:()=>Qe,FeatureSortFields:()=>He,FeatureStatus:()=>ze,FeatureType:()=>We,FontVariantFragmentDoc:()=>Sa,FontWeight:()=>Ze,GetActiveSubscriptionsDocument:()=>Js,GetActiveSubscriptionsListDocument:()=>Xs,GetAutomaticRechargeConfigurationDocument:()=>bu,GetCheckoutStateDocument:()=>pu,GetCouponsDocument:()=>nu,GetCreditBalanceDocument:()=>mu,GetCreditGrantsDocument:()=>gu,GetCreditLedgerDocument:()=>yu,GetCreditUsageDocument:()=>vu,GetCustomerByIdDocument:()=>Ys,GetCustomerPortalByRefIdDocument:()=>lu,GetCustomerStatisticsDocument:()=>Ks,GetEntitlementDocument:()=>au,GetEntitlementV2Document:()=>su,GetEntitlementsDocument:()=>iu,GetEntitlementsStateDocument:()=>ou,GetMockPaywallDocument:()=>du,GetPaywallDocument:()=>ru,GetProductsDocument:()=>uu,GetSdkConfigurationDocument:()=>cu,GetSubscriptionDocument:()=>tu,GetSubscriptionsDocument:()=>eu,GetUsageHistoryDocument:()=>fu,GetUsageHistoryV2Document:()=>hu,GrantCreditsDocument:()=>Gs,GrantExpirationPeriod:()=>Ye,GrantPromotionalEntitlementsDocument:()=>ys,GrantPromotionalEntitlementsGroupDocument:()=>qs,HookSortFields:()=>Ke,HookStatus:()=>Je,ImmediateSubscriptionPreviewInvoiceFragmentDoc:()=>ta,ImportCustomerBulkDocument:()=>fs,ImportCustomerDocument:()=>hs,ImportIntegrationTaskSortFields:()=>Xe,ImportSubscriptionsBulkDocument:()=>_s,IntegrationSortFields:()=>et,InvoiceLineItemType:()=>tt,LayoutConfigurationFragmentDoc:()=>ja,MemberSortFields:()=>nt,MemberStatus:()=>rt,MergeApplyState:()=>it,MeterType:()=>ot,MigrateSubscriptionToLatestDocument:()=>Us,MockPaywallAddonDependencyFragmentDoc:()=>ka,MockPaywallAddonFragmentDoc:()=>xa,MockPaywallPackageEntitlementFragmentDoc:()=>Ra,MockPaywallPlanCompatiblePackageGroupsFragmentDoc:()=>Ua,MockPaywallPlanFragmentDoc:()=>Ma,MockPaywallPriceFragmentDoc:()=>Fa,MonthlyAccordingTo:()=>at,OfferSortFields:()=>st,OfferStatus:()=>ut,OnCreditBalanceUpdatedDocument:()=>Pu,OnEntitlementsUpdatedDocument:()=>Iu,OnEntitlementsUpdatedV2Document:()=>Su,OnPackagePublishedDocument:()=>wu,OnUsageUpdatedDocument:()=>Tu,OnUsageUpdatedV2Document:()=>Cu,OverageBillingPeriod:()=>ct,OveragePriceFragmentDoc:()=>Go,PackageCreditEntitlementFragmentDoc:()=>Vo,PackageDtoSortFields:()=>lt,PackageEntitlementFragmentDoc:()=>Lo,PackageEntitlementSortFields:()=>pt,PackageEntitlementUnionFragmentDoc:()=>Bo,PackageFeatureEntitlementFragmentDoc:()=>jo,PackageGroupSortFields:()=>dt,PackageGroupStatus:()=>ft,PackagePublishedPayloadFragmentDoc:()=>pa,PackageStatus:()=>ht,PageInfoFragmentDoc:()=>is,PaymentCollection:()=>mt,PaymentCollectionMethod:()=>gt,PaymentMethodType:()=>yt,PaymentSessionFragmentDoc:()=>ns,PaywallCalculatedPricePointsFragmentDoc:()=>Ba,PaywallConfigurationFragmentDoc:()=>Va,PaywallCurrencyFragmentDoc:()=>La,PaywallFragmentDoc:()=>Ga,PlanChangeType:()=>vt,PlanCompatiblePackageGroupsFragmentDoc:()=>Qo,PlanFragmentDoc:()=>Ho,PlanSortFields:()=>bt,PreviewNextInvoiceDocument:()=>Ps,PreviewSubscriptionDocument:()=>ws,PriceFragmentDoc:()=>xo,PriceSortFields:()=>Et,PriceTierFragmentDoc:()=>ko,PricingType:()=>_t,ProductFragmentDoc:()=>Mo,ProductSortFields:()=>It,ProductStatus:()=>St,PromotionalEntitlementFragmentDoc:()=>Oo,PromotionalEntitlementPeriod:()=>Tt,PromotionalEntitlementSortFields:()=>Ct,PromotionalEntitlementStatus:()=>wt,ProrationBehavior:()=>Pt,ProvisionCustomerDocument:()=>ds,ProvisionCustomerFragmentDoc:()=>Ha,ProvisionSubscriptionDocument:()=>bs,ProvisionSubscriptionFragmentDoc:()=>Wa,ProvisionSubscriptionStatus:()=>Dt,PublishMigrationType:()=>At,ReportEntitlementCheckRequestedDocument:()=>ks,ReportEventDocument:()=>Fs,ReportUsageBulkDocument:()=>Os,ReportUsageDocument:()=>As,ReportUsageFragmentDoc:()=>Za,ResetPeriodConfigurationFragmentDoc:()=>oa,RevokePromotionalEntitlementDocument:()=>vs,RevokePromotionalEntitlementsGroupDocument:()=>$s,SaveAutomaticRechargeConfigurationDocument:()=>Zs,ScheduleStrategy:()=>Ot,ScheduleVariablesFragmentDoc:()=>zo,SlimCustomCurrencyFragmentDoc:()=>rs,SlimCustomerFragmentDoc:()=>Do,SlimSubscriptionFragmentDoc:()=>Qa,SlimSubscriptionFragmentV2FragmentDoc:()=>Po,SortDirection:()=>Nt,SortNulls:()=>Rt,SourceType:()=>Ft,StripeAccountMode:()=>kt,StripeAccountSource:()=>xt,StripeCheckoutCredentialsFragmentDoc:()=>Da,SubscriptionAddonSortFields:()=>Ut,SubscriptionBillingCycleAnchor:()=>Mt,SubscriptionCancelReason:()=>Lt,SubscriptionCancellationAction:()=>jt,SubscriptionCancellationTime:()=>Vt,SubscriptionCouponStatus:()=>Bt,SubscriptionDecisionStrategy:()=>Gt,SubscriptionEndSetup:()=>qt,SubscriptionEntitlementSortFields:()=>$t,SubscriptionFragmentDoc:()=>Ko,SubscriptionFutureUpdateDataFragmentDoc:()=>Zo,SubscriptionInvoiceBillingReason:()=>Qt,SubscriptionInvoiceFragmentDoc:()=>Ro,SubscriptionInvoicePreviewFragmentDoc:()=>ia,SubscriptionInvoiceStatus:()=>Ht,SubscriptionMigrationTaskSortFields:()=>zt,SubscriptionMigrationTime:()=>Wt,SubscriptionPreviewFragmentDoc:()=>ea,SubscriptionPreviewInvoiceFragmentDoc:()=>na,SubscriptionPreviewV2FragmentDoc:()=>ra,SubscriptionPriceSortFields:()=>Zt,SubscriptionProrationBehavior:()=>Yt,SubscriptionQueryFragmentDoc:()=>wo,SubscriptionQuerySortFields:()=>Kt,SubscriptionScheduleStatus:()=>Jt,SubscriptionScheduleType:()=>Xt,SubscriptionScheduledUpdateDataFragmentDoc:()=>Wo,SubscriptionStartSetup:()=>en,SubscriptionStatus:()=>tn,SubscriptionTrialConfigurationFragmentDoc:()=>Yo,SubscriptionUpdateUsageCutoffBehavior:()=>nn,SyncStatus:()=>rn,TaskStatus:()=>on,TaskType:()=>an,ThresholdType:()=>sn,TiersMode:()=>un,TotalPriceFragmentDoc:()=>Uo,TransferSubscriptionDocument:()=>js,TransferSubscriptionToResourceDocument:()=>Bs,TrialEndBehavior:()=>cn,TrialPeriodUnits:()=>ln,TypographyConfigurationFragmentDoc:()=>Ta,UnarchiveCustomerDocument:()=>Ls,UnitTransformationRound:()=>pn,UnlinkPromotionalEntitlementsGroupDocument:()=>Qs,UpdateCustomerDocument:()=>ms,UpdateSubscriptionDocument:()=>Is,UsageHistoryFragmentDoc:()=>qa,UsageHistoryV2FragmentDoc:()=>$a,UsageMarkerType:()=>dn,UsageMeasurementSortFields:()=>fn,UsageUpdateBehavior:()=>hn,UsageUpdatedFragmentDoc:()=>ca,UsageUpdatedV2PayloadFragmentDoc:()=>ls,UsageV2FragmentDoc:()=>cs,VendorIdentifier:()=>mn,VendorType:()=>gn,VoidCreditGrantDocument:()=>zs,WeeklyAccordingTo:()=>yn,WidgetType:()=>vn,YearlyAccordingTo:()=>bn,ZuoraCheckoutCredentialsFragmentDoc:()=>Aa,getSdk:()=>Au});var i={};n.r(i),n.d(i,{i:()=>Uu,m:()=>ju});var o={};n.r(o),n.d(o,{jJ:()=>Bu,Hk:()=>Vu,dt:()=>zu,P_:()=>Qu,OK:()=>$u});var a={};n.r(a),n.d(a,{uiS:()=>Bh,sZY:()=>Sh,sf5:()=>Ph,RCf:()=>wh,zVU:()=>Mh,VsH:()=>Ch,ctk:()=>Th,qCH:()=>Lh,$X:()=>Vh});var s={};n.r(s),n.d(s,{FunctionToString:()=>jg,InboundFilters:()=>qg,LinkedErrors:()=>Kg});var u={};n.r(u),n.d(u,{Breadcrumbs:()=>nv,Dedupe:()=>uv,GlobalHandlers:()=>Iy,HttpContext:()=>av,LinkedErrors:()=>iv,TryCatch:()=>Dy});var c={};n.r(c),n.d(c,{F:()=>fb});var l=n(5455),p=n.n(l),d=n(8537),f=n.n(d),h=function(e,t){return h=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])},h(e,t)};function m(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}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var g=function(){return g=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},g.apply(this,arguments)};function y(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 v(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})}function b(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function E(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;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))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var _=n(5390),I=new Map,S=new Map,T=!0,C=!1;function w(e){return e.replace(/[\s,]+/g," ").trim()}function P(e){var t,n,r,i=w(e);if(!I.has(i)){var o=(0,_.Qc)(e,{experimentalFragmentVariables:C,allowLegacyFragmentVariables:C});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");I.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=o,n=new Set,r=[],t.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=w((a=e.loc).source.body.substring(a.start,a.end)),o=S.get(t);o&&!o.has(i)?T&&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"):o||S.set(t,o=new Set),o.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e);var a}),g(g({},t),{definitions:r}))))}return I.get(i)}function D(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]}),P(r)}var A,O=D;(A=D||(D={})).gql=O,A.resetCaches=function(){I.clear(),S.clear()},A.disableFragmentWarnings=function(){T=!1},A.enableExperimentalFragmentVariables=function(){C=!0},A.disableExperimentalFragmentVariables=function(){C=!1},D.default=D;const N=D;var R,F,k,x,U,M,L,j,V,B,G,q,$,Q,H,z,W,Z,Y,K,J,X,ee,te,ne,re,ie,oe,ae,se,ue,ce,le,pe,de,fe,he,me,ge,ye,ve,be,Ee,_e,Ie,Se,Te,Ce,we,Pe,De,Ae,Oe,Ne,Re,Fe,ke,xe,Ue,Me,Le,je,Ve,Be,Ge,qe,$e,Qe,He,ze,We,Ze,Ye,Ke,Je,Xe,et,tt,nt,rt,it,ot,at,st,ut,ct,lt,pt,dt,ft,ht,mt,gt,yt,vt,bt,Et,_t,It,St,Tt,Ct,wt,Pt,Dt,At,Ot,Nt,Rt,Ft,kt,xt,Ut,Mt,Lt,jt,Vt,Bt,Gt,qt,$t,Qt,Ht,zt,Wt,Zt,Yt,Kt,Jt,Xt,en,tn,nn,rn,on,an,sn,un,cn,ln,pn,dn,fn,hn,mn,gn,yn,vn,bn,En,_n=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},In=function(){return In=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},In.apply(this,arguments)};!function(e){e.BudgetExceeded="BudgetExceeded",e.CustomerIsArchived="CustomerIsArchived",e.CustomerNotFound="CustomerNotFound",e.CustomerResourceNotFound="CustomerResourceNotFound",e.EntitlementNotFound="EntitlementNotFound",e.FeatureNotFound="FeatureNotFound",e.FeatureTypeMismatch="FeatureTypeMismatch",e.InsufficientCredits="InsufficientCredits",e.NoActiveSubscription="NoActiveSubscription",e.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",e.RequestedUsageExceedingLimit="RequestedUsageExceedingLimit",e.RequestedValuesMismatch="RequestedValuesMismatch",e.Revoked="Revoked",e.Unknown="Unknown"}(R||(R={})),function(e){e.AuthorizedDomain="AUTHORIZED_DOMAIN",e.InviteOnly="INVITE_ONLY",e.Sso="SSO"}(F||(F={})),function(e){e.Member="MEMBER",e.Owner="OWNER"}(k||(k={})),function(e){e.Active="ACTIVE",e.Blocked="BLOCKED"}(x||(x={})),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"}(U||(U={})),function(e){e.Avg="AVG",e.Count="COUNT",e.Max="MAX",e.Min="MIN",e.Sum="SUM",e.Unique="UNIQUE"}(M||(M={})),function(e){e.Center="CENTER",e.Left="LEFT",e.Right="RIGHT"}(L||(L={})),function(e){e.Read="READ",e.Write="WRITE"}(j||(j={})),function(e){e.ApiKey="API_KEY",e.Coupon="COUPON",e.Customer="CUSTOMER",e.Environment="ENVIRONMENT",e.EventQueue="EVENT_QUEUE",e.Subscription="SUBSCRIPTION"}(V||(V={})),function(e){e.Id="id"}(B||(B={})),function(e){e.Client="CLIENT",e.Salesforce="SALESFORCE",e.Scoped="SCOPED",e.Server="SERVER",e.Workflow="WORKFLOW"}(G||(G={})),function(e){e.Both="BOTH",e.Individual="INDIVIDUAL",e.Organization="ORGANIZATION"}(q||(q={})),function(e){e.StartOfTheMonth="START_OF_THE_MONTH",e.SubscriptionsConsolidateBilling="SUBSCRIPTIONS_CONSOLIDATE_BILLING",e.SubscriptionStart="SUBSCRIPTION_START"}($||($={})),function(e){e.OneOff="ONE_OFF",e.Recurring="RECURRING"}(Q||(Q={})),function(e){e.CreditBased="CREDIT_BASED",e.FlatFee="FLAT_FEE",e.MinimumSpend="MINIMUM_SPEND",e.PerUnit="PER_UNIT",e.UsageBased="USAGE_BASED"}(H||(H={})),function(e){e.Annually="ANNUALLY",e.Monthly="MONTHLY"}(z||(z={})),function(e){e.Received="RECEIVED",e.Stripe="STRIPE",e.Zuora="ZUORA"}(W||(W={})),function(e){e.Added="ADDED",e.Deleted="DELETED",e.Modified="MODIFIED",e.Reordered="REORDERED"}(Z||(Z={})),function(e){e.Credit="CREDIT",e.Feature="FEATURE"}(Y||(Y={})),function(e){e.Contains="CONTAINS",e.EndsWith="ENDS_WITH",e.Equals="EQUALS",e.GreaterThan="GREATER_THAN",e.GreaterThanOrEqual="GREATER_THAN_OR_EQUAL",e.In="IN",e.IsNotNull="IS_NOT_NULL",e.IsNull="IS_NULL",e.LessThan="LESS_THAN",e.LessThanOrEqual="LESS_THAN_OR_EQUAL",e.NotEquals="NOT_EQUALS",e.StartsWith="STARTS_WITH"}(K||(K={})),function(e){e.Active="ACTIVE",e.Canceled="CANCELED",e.Draft="DRAFT",e.EndBilling="END_BILLING"}(J||(J={})),function(e){e.Enterprise="ENTERPRISE",e.Referral="REFERRAL",e.Reseller="RESELLER",e.Subscription="SUBSCRIPTION"}(X||(X={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.EnvironmentId="environmentId",e.Id="id",e.Name="name",e.RefId="refId",e.Source="source",e.Status="status",e.Type="type",e.UpdatedAt="updatedAt"}(ee||(ee={})),function(e){e.Stigg="STIGG",e.StiggAdhoc="STIGG_ADHOC",e.Stripe="STRIPE"}(te||(te={})),function(e){e.Active="ACTIVE",e.Archived="ARCHIVED"}(ne||(ne={})),function(e){e.Fixed="FIXED",e.Percentage="PERCENTAGE"}(re||(re={})),function(e){e.Month="MONTH",e.Year="YEAR"}(ie||(ie={})),function(e){e.BeginningOfBillingPeriod="BEGINNING_OF_BILLING_PERIOD",e.Monthly="MONTHLY"}(oe||(oe={})),function(e){e.Manual="MANUAL",e.Other="OTHER"}(ae||(ae={})),function(e){e.Canceled="CANCELED",e.Open="OPEN",e.Paid="PAID"}(se||(se={})),function(e){e.AddonEntitlement="ADDON_ENTITLEMENT",e.PlanEntitlement="PLAN_ENTITLEMENT",e.Price="PRICE"}(ue||(ue={})),function(e){e.Active="ACTIVE",e.Expired="EXPIRED",e.PaymentPending="PAYMENT_PENDING",e.Scheduled="SCHEDULED",e.Voided="VOIDED"}(ce||(ce={})),function(e){e.Overdraft="OVERDRAFT",e.Paid="PAID",e.Promotional="PROMOTIONAL",e.Recurring="RECURRING"}(le||(le={})),function(e){e.Paid="PAID",e.Promotional="PROMOTIONAL"}(pe||(pe={})),function(e){e.CreditsConsumed="CREDITS_CONSUMED",e.CreditsConsumptionTransferSource="CREDITS_CONSUMPTION_TRANSFER_SOURCE",e.CreditsConsumptionTransferTarget="CREDITS_CONSUMPTION_TRANSFER_TARGET",e.CreditsExpired="CREDITS_EXPIRED",e.CreditsGranted="CREDITS_GRANTED",e.CreditsUpdated="CREDITS_UPDATED",e.CreditsVoided="CREDITS_VOIDED"}(de||(de={})),function(e){e.LastDay="LAST_DAY",e.LastMonth="LAST_MONTH",e.LastWeek="LAST_WEEK",e.LastYear="LAST_YEAR"}(fe||(fe={})),function(e){e.Aed="AED",e.All="ALL",e.Amd="AMD",e.Ang="ANG",e.Aud="AUD",e.Awg="AWG",e.Azn="AZN",e.Bam="BAM",e.Bbd="BBD",e.Bdt="BDT",e.Bgn="BGN",e.Bif="BIF",e.Bmd="BMD",e.Bnd="BND",e.Brl="BRL",e.Bsd="BSD",e.Bwp="BWP",e.Byn="BYN",e.Bzd="BZD",e.Cad="CAD",e.Cdf="CDF",e.Chf="CHF",e.Clp="CLP",e.Cny="CNY",e.Czk="CZK",e.Djf="DJF",e.Dkk="DKK",e.Dop="DOP",e.Dzd="DZD",e.Egp="EGP",e.Etb="ETB",e.Eur="EUR",e.Fjd="FJD",e.Gbp="GBP",e.Gel="GEL",e.Gip="GIP",e.Gmd="GMD",e.Gnf="GNF",e.Gyd="GYD",e.Hkd="HKD",e.Hrk="HRK",e.Htg="HTG",e.Idr="IDR",e.Ils="ILS",e.Inr="INR",e.Isk="ISK",e.Jmd="JMD",e.Jpy="JPY",e.Kes="KES",e.Kgs="KGS",e.Khr="KHR",e.Kmf="KMF",e.Krw="KRW",e.Kyd="KYD",e.Kzt="KZT",e.Lbp="LBP",e.Lkr="LKR",e.Lrd="LRD",e.Lsl="LSL",e.Mad="MAD",e.Mdl="MDL",e.Mga="MGA",e.Mkd="MKD",e.Mmk="MMK",e.Mnt="MNT",e.Mop="MOP",e.Mro="MRO",e.Mvr="MVR",e.Mwk="MWK",e.Mxn="MXN",e.Myr="MYR",e.Mzn="MZN",e.Nad="NAD",e.Ngn="NGN",e.Nok="NOK",e.Npr="NPR",e.Nzd="NZD",e.Pgk="PGK",e.Php="PHP",e.Pkr="PKR",e.Pln="PLN",e.Pyg="PYG",e.Qar="QAR",e.Ron="RON",e.Rsd="RSD",e.Rub="RUB",e.Rwf="RWF",e.Sar="SAR",e.Sbd="SBD",e.Scr="SCR",e.Sek="SEK",e.Sgd="SGD",e.Sle="SLE",e.Sll="SLL",e.Sos="SOS",e.Szl="SZL",e.Thb="THB",e.Tjs="TJS",e.Top="TOP",e.Try="TRY",e.Ttd="TTD",e.Tzs="TZS",e.Uah="UAH",e.Ugx="UGX",e.Usd="USD",e.Uzs="UZS",e.Vnd="VND",e.Vuv="VUV",e.Wst="WST",e.Xaf="XAF",e.Xcd="XCD",e.Xof="XOF",e.Xpf="XPF",e.Yer="YER",e.Zar="ZAR",e.Zmw="ZMW"}(he||(he={})),function(e){e.Active="ACTIVE",e.Archived="ARCHIVED"}(me||(me={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.ResourceId="resourceId"}(ge||(ge={})),function(e){e.AwsMarketplaceCustomerId="awsMarketplaceCustomerId",e.BillingId="billingId",e.CreatedAt="createdAt",e.CrmHubspotCompanyId="crmHubspotCompanyId",e.CrmHubspotCompanyUrl="crmHubspotCompanyUrl",e.CrmId="crmId",e.CustomerId="customerId",e.DeletedAt="deletedAt",e.Email="email",e.EnvironmentId="environmentId",e.Id="id",e.Name="name",e.RefId="refId",e.SalesforceId="salesforceId",e.SearchQuery="searchQuery",e.UpdatedAt="updatedAt"}(ye||(ye={})),function(e){e.BillingCycleAnchor="billingCycleAnchor",e.BillingId="billingId",e.CancelReason="cancelReason",e.CancellationDate="cancellationDate",e.CreatedAt="createdAt",e.CrmId="crmId",e.CrmLinkUrl="crmLinkUrl",e.CurrentBillingPeriodEnd="currentBillingPeriodEnd",e.CurrentBillingPeriodStart="currentBillingPeriodStart",e.CustomerId="customerId",e.EffectiveEndDate="effectiveEndDate",e.EndDate="endDate",e.EnvironmentId="environmentId",e.Id="id",e.OldBillingId="oldBillingId",e.PayingCustomerId="payingCustomerId",e.PaymentCollection="paymentCollection",e.PricingType="pricingType",e.RefId="refId",e.ResourceId="resourceId",e.SalesforceId="salesforceId",e.StartDate="startDate",e.Status="status",e.SubscriptionId="subscriptionId",e.TrialEndDate="trialEndDate"}(ve||(ve={})),function(e){e.Cancelled="CANCELLED",e.Failed="FAILED",e.Incomplete="INCOMPLETE",e.Pending="PENDING",e.Running="RUNNING",e.Succeeded="SUCCEEDED"}(be||(be={})),function(e){e.Clickhouse="CLICKHOUSE",e.Postgres="POSTGRES"}(Ee||(Ee={})),function(e){e.CeoOrFounder="CEO_OR_FOUNDER",e.Engineering="ENGINEERING",e.Growth="GROWTH",e.Marketing="MARKETING",e.Monetization="MONETIZATION",e.Other="OTHER",e.Product="PRODUCT"}(_e||(_e={})),function(e){e.Forever="FOREVER",e.Once="ONCE",e.Repeating="REPEATING"}(Ie||(Ie={})),function(e){e.Fixed="FIXED",e.Percentage="PERCENTAGE"}(Se||(Se={})),function(e){e.Increment="Increment",e.Override="Override"}(Te||(Te={})),function(e){e.Day="DAY",e.Hour="HOUR",e.Month="MONTH",e.Week="WEEK",e.Year="YEAR"}(Ce||(Ce={})),function(e){e.Credit="CREDIT",e.Feature="FEATURE"}(we||(we={})),function(e){e.CustomerIsArchived="CustomerIsArchived",e.CustomerNotFound="CustomerNotFound",e.NoActiveSubscription="NoActiveSubscription"}(Pe||(Pe={})),function(e){e.BlackList="BLACK_LIST",e.WhiteList="WHITE_LIST"}(De||(De={})),function(e){e.Admin="ADMIN",e.None="NONE",e.Support="SUPPORT",e.Viewer="VIEWER"}(Ae||(Ae={})),function(e){e.Failed="FAILED",e.Idle="IDLE",e.InProgress="IN_PROGRESS"}(Oe||(Oe={})),function(e){e.Done="DONE",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.NotProvisioned="NOT_PROVISIONED"}(Ne||(Ne={})),function(e){e.CreatedAt="createdAt",e.DisplayName="displayName",e.Id="id",e.PermanentDeletionDate="permanentDeletionDate",e.Slug="slug"}(Re||(Re={})),function(e){e.Development="DEVELOPMENT",e.Production="PRODUCTION",e.Sandbox="SANDBOX"}(Fe||(Fe={})),function(e){e.AccessDeniedError="AccessDeniedError",e.AccountNotFoundError="AccountNotFoundError",e.AddonDependencyMissingError="AddonDependencyMissingError",e.AddonHasToHavePriceError="AddonHasToHavePriceError",e.AddonIsCompatibleWithGroup="AddonIsCompatibleWithGroup",e.AddonIsCompatibleWithPlan="AddonIsCompatibleWithPlan",e.AddonNotFound="AddonNotFound",e.AddonQuantityExceedsLimitError="AddonQuantityExceedsLimitError",e.AddonWithDraftCannotBeDeletedError="AddonWithDraftCannotBeDeletedError",e.AddonsNotFound="AddonsNotFound",e.AmountTooLarge="AmountTooLarge",e.ApiKeyExpired="ApiKeyExpired",e.ApiKeyHasExpiry="ApiKeyHasExpiry",e.ApiKeyNotFound="ApiKeyNotFound",e.ArchivedCouponCantBeApplied="ArchivedCouponCantBeApplied",e.AuthCustomerMismatch="AuthCustomerMismatch",e.AuthCustomerReadonly="AuthCustomerReadonly",e.AuthorizationServiceError="AuthorizationServiceError",e.AwsMarketplaceIntegrationError="AwsMarketplaceIntegrationError",e.AwsMarketplaceIntegrationValidationError="AwsMarketplaceIntegrationValidationError",e.BadUserInput="BadUserInput",e.BillingIntegrationAlreadyExistsError="BillingIntegrationAlreadyExistsError",e.BillingIntegrationMissing="BillingIntegrationMissing",e.BillingInvoiceStatusError="BillingInvoiceStatusError",e.BillingPeriodMissingError="BillingPeriodMissingError",e.CanNotUpdateEntitlementsFeatureGroup="CanNotUpdateEntitlementsFeatureGroup",e.CannotAddOverrideEntitlementToPlan="CannotAddOverrideEntitlementToPlan",e.CannotArchiveFeatureError="CannotArchiveFeatureError",e.CannotArchiveFeatureGroupError="CannotArchiveFeatureGroupError",e.CannotArchiveProductError="CannotArchiveProductError",e.CannotChangeBillingIntegration="CannotChangeBillingIntegration",e.CannotDeleteCustomerError="CannotDeleteCustomerError",e.CannotDeleteDefaultIntegration="CannotDeleteDefaultIntegration",e.CannotDeleteFeatureError="CannotDeleteFeatureError",e.CannotEditPackageInNonDraftMode="CannotEditPackageInNonDraftMode",e.CannotRemovePaymentMethodFromCustomerError="CannotRemovePaymentMethodFromCustomerError",e.CannotReportUsageForEntitlementWithMeterError="CannotReportUsageForEntitlementWithMeterError",e.CannotUnarchiveProductError="CannotUnarchiveProductError",e.CannotUpdateExpireAtForExpiredCreditGrantError="CannotUpdateExpireAtForExpiredCreditGrantError",e.CannotUpdateUnitTransformationError="CannotUpdateUnitTransformationError",e.CannotUpsertToPackageThatHasDraft="CannotUpsertToPackageThatHasDraft",e.ChangingPayingCustomerIsNotSupportedError="ChangingPayingCustomerIsNotSupportedError",e.CheckoutIsNotSupported="CheckoutIsNotSupported",e.CouponNotFound="CouponNotFound",e.CreditGrantAlreadyVoided="CreditGrantAlreadyVoided",e.CreditGrantCannotBeVoided="CreditGrantCannotBeVoided",e.CreditGrantNotFound="CreditGrantNotFound",e.CustomCurrencyNotFound="CustomCurrencyNotFound",e.CustomerAlreadyHaveCustomerCoupon="CustomerAlreadyHaveCustomerCoupon",e.CustomerAlreadyUsesCoupon="CustomerAlreadyUsesCoupon",e.CustomerHasNoEmailAddress="CustomerHasNoEmailAddress",e.CustomerNoBillingId="CustomerNoBillingId",e.CustomerNotFound="CustomerNotFound",e.CustomerResourceNotFound="CustomerResourceNotFound",e.DataExportIntegrationError="DataExportIntegrationError",e.DeprecatedEstimateSubscriptionError="DeprecatedEstimateSubscriptionError",e.DowngradeBillingPeriodNotSupportedError="DowngradeBillingPeriodNotSupportedError",e.DraftAddonCantBeArchived="DraftAddonCantBeArchived",e.DraftAlreadyExists="DraftAlreadyExists",e.DraftPlanCantBeArchived="DraftPlanCantBeArchived",e.DuplicateAddonProvisionedError="DuplicateAddonProvisionedError",e.DuplicateIntegrationNotAllowed="DuplicateIntegrationNotAllowed",e.DuplicateProductValidationError="DuplicateProductValidationError",e.DuplicatedEntityNotAllowed="DuplicatedEntityNotAllowed",e.EditAllowedOnDraftPackageOnlyError="EditAllowedOnDraftPackageOnlyError",e.EntitlementBelongsToFeatureGroupError="EntitlementBelongsToFeatureGroupError",e.EntitlementLimitExceededError="EntitlementLimitExceededError",e.EntitlementUsageOutOfRangeError="EntitlementUsageOutOfRangeError",e.EntitlementsMustBelongToSamePackage="EntitlementsMustBelongToSamePackage",e.EntityIdDifferentFromRefIdError="EntityIdDifferentFromRefIdError",e.EntityIsArchivedError="EntityIsArchivedError",e.EnvironmentMissing="EnvironmentMissing",e.ExperimentAlreadyRunning="ExperimentAlreadyRunning",e.ExperimentNotFoundError="ExperimentNotFoundError",e.ExperimentStatusError="ExperimentStatusError",e.ExpireAtMustBeLaterThanEffectiveAtError="ExpireAtMustBeLaterThanEffectiveAtError",e.FailedToCreateCheckoutSessionError="FailedToCreateCheckoutSessionError",e.FailedToImportCustomer="FailedToImportCustomer",e.FailedToImportSubscriptions="FailedToImportSubscriptions",e.FailedToResolveBillingIntegration="FailedToResolveBillingIntegration",e.FeatureConfigurationExceededLimitError="FeatureConfigurationExceededLimitError",e.FeatureGroupMissingFeaturesError="FeatureGroupMissingFeaturesError",e.FeatureGroupNotFoundError="FeatureGroupNotFoundError",e.FeatureNotBelongToFeatureGroupError="FeatureNotBelongToFeatureGroupError",e.FeatureNotFound="FeatureNotFound",e.FetchAllCountriesPricesNotAllowed="FetchAllCountriesPricesNotAllowed",e.FreePlanCantHaveCompatiblePackageGroupError="FreePlanCantHaveCompatiblePackageGroupError",e.FutureUpdateNotFound="FutureUpdateNotFound",e.GovernanceNotEnabled="GovernanceNotEnabled",e.GraphQlAliasesLimitExceeded="GraphQLAliasesLimitExceeded",e.GraphQlBatchedOperationsLimitExceeded="GraphQLBatchedOperationsLimitExceeded",e.GraphQlUnsupportedDirective="GraphQLUnsupportedDirective",e.HubspotIntegrationError="HubspotIntegrationError",e.IdentityForbidden="IdentityForbidden",e.ImportAlreadyInProgress="ImportAlreadyInProgress",e.ImportSubscriptionsBulkError="ImportSubscriptionsBulkError",e.IncompatibleSubscriptionAddon="IncompatibleSubscriptionAddon",e.InitStripePaymentMethodError="InitStripePaymentMethodError",e.IntegrationNotFound="IntegrationNotFound",e.IntegrationValidationError="IntegrationValidationError",e.IntegrityViolation="IntegrityViolation",e.InvalidAddressError="InvalidAddressError",e.InvalidArgumentError="InvalidArgumentError",e.InvalidCancellationDate="InvalidCancellationDate",e.InvalidDoggoSignatureError="InvalidDoggoSignatureError",e.InvalidEntitlementResetPeriod="InvalidEntitlementResetPeriod",e.InvalidMemberDelete="InvalidMemberDelete",e.InvalidMetadataError="InvalidMetadataError",e.InvalidQuantity="InvalidQuantity",e.InvalidReceivedSignatureError="InvalidReceivedSignatureError",e.InvalidSubscriptionStatus="InvalidSubscriptionStatus",e.InvalidTaxId="InvalidTaxId",e.InvalidUpdatePriceUnitAmountError="InvalidUpdatePriceUnitAmountError",e.InvoicePreviewNotAvailableForDraftContract="InvoicePreviewNotAvailableForDraftContract",e.MemberInvitationError="MemberInvitationError",e.MemberNotFound="MemberNotFound",e.MergeEnvironmentValidationError="MergeEnvironmentValidationError",e.MeterMustBeAssociatedToMeteredFeature="MeterMustBeAssociatedToMeteredFeature",e.MeteringNotAvailableForFeatureType="MeteringNotAvailableForFeatureType",e.MissingBillingInvoiceError="MissingBillingInvoiceError",e.MissingEntityIdError="MissingEntityIdError",e.MultiSubscriptionCantBeAutoCancellationSourceError="MultiSubscriptionCantBeAutoCancellationSourceError",e.NoActiveSubscriptionForCustomer="NoActiveSubscriptionForCustomer",e.NoDraftOfferFound="NoDraftOfferFound",e.NoFeatureEntitlementError="NoFeatureEntitlementError",e.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",e.NoProductsAvailable="NoProductsAvailable",e.ObjectAlreadyBeingUsedByAnotherRequestError="ObjectAlreadyBeingUsedByAnotherRequestError",e.OfferAlreadyExists="OfferAlreadyExists",e.OfferNotFound="OfferNotFound",e.OperationNotAllowedDuringInProgressExperiment="OperationNotAllowedDuringInProgressExperiment",e.OperationTimeout="OperationTimeout",e.PackageAlreadyPublished="PackageAlreadyPublished",e.PackageGroupMinItemsError="PackageGroupMinItemsError",e.PackageGroupNotFound="PackageGroupNotFound",e.PackagePricingTypeNotSet="PackagePricingTypeNotSet",e.PaymentMethodNotFoundError="PaymentMethodNotFoundError",e.PlanCannotBePublishWhenBasePlanIsDraft="PlanCannotBePublishWhenBasePlanIsDraft",e.PlanCannotBePublishWhenCompatibleAddonIsDraft="PlanCannotBePublishWhenCompatibleAddonIsDraft",e.PlanIsUsedAsDefaultStartPlan="PlanIsUsedAsDefaultStartPlan",e.PlanIsUsedAsDowngradePlan="PlanIsUsedAsDowngradePlan",e.PlanNotFound="PlanNotFound",e.PlanWithChildCantBeDeleted="PlanWithChildCantBeDeleted",e.PlansCircularDependencyError="PlansCircularDependencyError",e.PreparePaymentMethodFormError="PreparePaymentMethodFormError",e.PriceNotFound="PriceNotFound",e.PricingModelNotSupportedByBillingIntegration="PricingModelNotSupportedByBillingIntegration",e.ProductNotFoundError="ProductNotFoundError",e.ProductNotPublishedError="ProductNotPublishedError",e.PromotionCodeCustomerNotFirstPurchase="PromotionCodeCustomerNotFirstPurchase",e.PromotionCodeMaxRedemptionsReached="PromotionCodeMaxRedemptionsReached",e.PromotionCodeMinimumAmountNotReached="PromotionCodeMinimumAmountNotReached",e.PromotionCodeNotActive="PromotionCodeNotActive",e.PromotionCodeNotForCustomer="PromotionCodeNotForCustomer",e.PromotionCodeNotFound="PromotionCodeNotFound",e.PromotionalEntitlementNotFoundError="PromotionalEntitlementNotFoundError",e.RateLimitExceeded="RateLimitExceeded",e.RecalculateEntitlementsError="RecalculateEntitlementsError",e.RequiredSsoAuthenticationError="RequiredSsoAuthenticationError",e.ResyncAlreadyInProgress="ResyncAlreadyInProgress",e.ScheduledMigrationAlreadyExistsError="ScheduledMigrationAlreadyExistsError",e.SchedulingAtEndOfBillingPeriod="SchedulingAtEndOfBillingPeriod",e.SelectedBillingModelDoesntMatchImportedItemError="SelectedBillingModelDoesntMatchImportedItemError",e.SingleSubscriptionCantBeAutoCancellationTargetError="SingleSubscriptionCantBeAutoCancellationTargetError",e.StripeCustomerIsDeleted="StripeCustomerIsDeleted",e.StripeError="StripeError",e.SubscriptionAlreadyCanceledOrExpired="SubscriptionAlreadyCanceledOrExpired",e.SubscriptionAlreadyOnLatestPlanError="SubscriptionAlreadyOnLatestPlanError",e.SubscriptionDoesNotHaveBillingPeriod="SubscriptionDoesNotHaveBillingPeriod",e.SubscriptionMustHaveSinglePlanError="SubscriptionMustHaveSinglePlanError",e.SubscriptionNoBillingId="SubscriptionNoBillingId",e.SubscriptionNotFound="SubscriptionNotFound",e.TooManyCustomCurrencies="TooManyCustomCurrencies",e.TooManySubscriptionsPerCustomer="TooManySubscriptionsPerCustomer",e.TrialMustBeCancelledImmediately="TrialMustBeCancelledImmediately",e.UnPublishedPackage="UnPublishedPackage",e.Unauthenticated="Unauthenticated",e.UnexpectedError="UnexpectedError",e.UnsupportedFeatureType="UnsupportedFeatureType",e.UnsupportedParameter="UnsupportedParameter",e.UnsupportedSubscriptionScheduleType="UnsupportedSubscriptionScheduleType",e.UnsupportedVendorIdentifier="UnsupportedVendorIdentifier",e.UsageMeasurementDiffOutOfRangeError="UsageMeasurementDiffOutOfRangeError",e.VendorIsNotSupported="VendorIsNotSupported",e.VersionExceedsMaxValueError="VersionExceedsMaxValueError",e.WorkflowTriggerNotFound="WorkflowTriggerNotFound"}(ke||(ke={})),function(e){e.FeatureNotCreditBased="FEATURE_NOT_CREDIT_BASED",e.FeatureNotFound="FEATURE_NOT_FOUND",e.ResourceScopedSubscriptionExists="RESOURCE_SCOPED_SUBSCRIPTION_EXISTS"}(xe||(xe={})),function(e){e.UnsupportedAggregation="UNSUPPORTED_AGGREGATION"}(Ue||(Ue={})),function(e){e.AppCustomer="APP_CUSTOMER",e.AppPublic="APP_PUBLIC",e.AppServer="APP_SERVER",e.Aws="AWS",e.Import="IMPORT",e.Migration="MIGRATION",e.Salesforce="SALESFORCE",e.Scheduler="SCHEDULER",e.ScopedKey="SCOPED_KEY",e.Service="SERVICE",e.Stripe="STRIPE",e.Support="SUPPORT",e.System="SYSTEM",e.User="USER",e.Workflow="WORKFLOW"}(Me||(Me={})),function(e){e.Addon="ADDON",e.Coupon="COUPON",e.Credit="CREDIT",e.Customer="CUSTOMER",e.CustomCurrency="CUSTOM_CURRENCY",e.Entitlement="ENTITLEMENT",e.Feature="FEATURE",e.FeatureGroup="FEATURE_GROUP",e.Import="IMPORT",e.Measurement="MEASUREMENT",e.Package="PACKAGE",e.PackageGroup="PACKAGE_GROUP",e.Plan="PLAN",e.Product="PRODUCT",e.PromotionalEntitlement="PROMOTIONAL_ENTITLEMENT",e.Subscription="SUBSCRIPTION"}(Le||(Le={})),function(e){e.CreatedAt="createdAt",e.EntityId="entityId",e.EntityType="entityType",e.EnvironmentId="environmentId",e.EventLogType="eventLogType",e.Id="id",e.ParentEntityId="parentEntityId",e.TraceId="traceId"}(je||(je={})),function(e){e.AddonCreated="ADDON_CREATED",e.AddonDeleted="ADDON_DELETED",e.AddonUpdated="ADDON_UPDATED",e.ApiKeyCreated="API_KEY_CREATED",e.ApiKeyRevoked="API_KEY_REVOKED",e.ApiKeyRotated="API_KEY_ROTATED",e.ApiKeyUpdated="API_KEY_UPDATED",e.AutomaticRechargeConfigurationChanged="AUTOMATIC_RECHARGE_CONFIGURATION_CHANGED",e.AutomaticRechargeOperationAttempted="AUTOMATIC_RECHARGE_OPERATION_ATTEMPTED",e.CouponArchived="COUPON_ARCHIVED",e.CouponCreated="COUPON_CREATED",e.CouponUpdated="COUPON_UPDATED",e.CreateSubscriptionFailed="CREATE_SUBSCRIPTION_FAILED",e.CreditsAutomaticRechargeLimitExceeded="CREDITS_AUTOMATIC_RECHARGE_LIMIT_EXCEEDED",e.CreditsBalanceDepletedOld="CREDITS_BALANCE_DEPLETED_OLD",e.CreditsBalanceLowOld="CREDITS_BALANCE_LOW_OLD",e.CreditsGrantBalanceLowOld="CREDITS_GRANT_BALANCE_LOW_OLD",e.CreditsGrantDepletedOld="CREDITS_GRANT_DEPLETED_OLD",e.CreditsGrantExpiredOld="CREDITS_GRANT_EXPIRED_OLD",e.CreditsGrantGrantedOld="CREDITS_GRANT_GRANTED_OLD",e.CreditsGrantUpdatedOld="CREDITS_GRANT_UPDATED_OLD",e.CreditBalanceDepleted="CREDIT_BALANCE_DEPLETED",e.CreditBalanceLow="CREDIT_BALANCE_LOW",e.CreditBalanceUpdated="CREDIT_BALANCE_UPDATED",e.CreditGrantBalanceDepleted="CREDIT_GRANT_BALANCE_DEPLETED",e.CreditGrantBalanceLow="CREDIT_GRANT_BALANCE_LOW",e.CreditGrantCreated="CREDIT_GRANT_CREATED",e.CreditGrantDepleted="CREDIT_GRANT_DEPLETED",e.CreditGrantExpired="CREDIT_GRANT_EXPIRED",e.CreditGrantProcessCompleted="CREDIT_GRANT_PROCESS_COMPLETED",e.CreditGrantUpdated="CREDIT_GRANT_UPDATED",e.CreditGrantVoided="CREDIT_GRANT_VOIDED",e.CustomerCreated="CUSTOMER_CREATED",e.CustomerDeleted="CUSTOMER_DELETED",e.CustomerEntitlementCalculationTriggered="CUSTOMER_ENTITLEMENT_CALCULATION_TRIGGERED",e.CustomerPaymentFailed="CUSTOMER_PAYMENT_FAILED",e.CustomerResourceEntitlementCalculationTriggered="CUSTOMER_RESOURCE_ENTITLEMENT_CALCULATION_TRIGGERED",e.CustomerUpdated="CUSTOMER_UPDATED",e.CustomCurrencyArchived="CUSTOM_CURRENCY_ARCHIVED",e.CustomCurrencyCreated="CUSTOM_CURRENCY_CREATED",e.CustomCurrencyUnarchived="CUSTOM_CURRENCY_UNARCHIVED",e.CustomCurrencyUpdated="CUSTOM_CURRENCY_UPDATED",e.DataExportSyncFailed="DATA_EXPORT_SYNC_FAILED",e.EdgeApiClientConfigurationDataResync="EDGE_API_CLIENT_CONFIGURATION_DATA_RESYNC",e.EdgeApiCustomerDataResync="EDGE_API_CUSTOMER_DATA_RESYNC",e.EdgeApiCustomCurrencyCacheDataResync="EDGE_API_CUSTOM_CURRENCY_CACHE_DATA_RESYNC",e.EdgeApiDataResync="EDGE_API_DATA_RESYNC",e.EdgeApiDoggoResync="EDGE_API_DOGGO_RESYNC",e.EdgeApiPackageEntitlementsDataResync="EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC",e.EdgeApiPlanCacheDataResync="EDGE_API_PLAN_CACHE_DATA_RESYNC",e.EdgeApiProductCacheDataResync="EDGE_API_PRODUCT_CACHE_DATA_RESYNC",e.EdgeApiSubscriptionsDataResync="EDGE_API_SUBSCRIPTIONS_DATA_RESYNC",e.EntitlementsUpdated="ENTITLEMENTS_UPDATED",e.EntitlementDenied="ENTITLEMENT_DENIED",e.EntitlementGranted="ENTITLEMENT_GRANTED",e.EntitlementRequested="ENTITLEMENT_REQUESTED",e.EntitlementUsageExceeded="ENTITLEMENT_USAGE_EXCEEDED",e.EnvironmentDeleted="ENVIRONMENT_DELETED",e.FeatureArchived="FEATURE_ARCHIVED",e.FeatureCreated="FEATURE_CREATED",e.FeatureDeleted="FEATURE_DELETED",e.FeatureGroupArchived="FEATURE_GROUP_ARCHIVED",e.FeatureGroupCreated="FEATURE_GROUP_CREATED",e.FeatureGroupUnArchived="FEATURE_GROUP_UN_ARCHIVED",e.FeatureGroupUpdated="FEATURE_GROUP_UPDATED",e.FeatureUpdated="FEATURE_UPDATED",e.ImportIntegrationCatalogTriggered="IMPORT_INTEGRATION_CATALOG_TRIGGERED",e.ImportIntegrationCustomersTriggered="IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED",e.ImportSubscriptionsBulkTriggered="IMPORT_SUBSCRIPTIONS_BULK_TRIGGERED",e.MeasurementReported="MEASUREMENT_REPORTED",e.PackageGroupCreated="PACKAGE_GROUP_CREATED",e.PackageGroupUpdated="PACKAGE_GROUP_UPDATED",e.PackagePublished="PACKAGE_PUBLISHED",e.PlanCreated="PLAN_CREATED",e.PlanDeleted="PLAN_DELETED",e.PlanUpdated="PLAN_UPDATED",e.ProductCreated="PRODUCT_CREATED",e.ProductDeleted="PRODUCT_DELETED",e.ProductUnarchived="PRODUCT_UNARCHIVED",e.ProductUpdated="PRODUCT_UPDATED",e.PromotionalEntitlementEndsSoon="PROMOTIONAL_ENTITLEMENT_ENDS_SOON",e.PromotionalEntitlementExpired="PROMOTIONAL_ENTITLEMENT_EXPIRED",e.PromotionalEntitlementGranted="PROMOTIONAL_ENTITLEMENT_GRANTED",e.PromotionalEntitlementRevoked="PROMOTIONAL_ENTITLEMENT_REVOKED",e.PromotionalEntitlementUpdated="PROMOTIONAL_ENTITLEMENT_UPDATED",e.RecalculateEntitlementsTriggered="RECALCULATE_ENTITLEMENTS_TRIGGERED",e.ResyncIntegrationTriggered="RESYNC_INTEGRATION_TRIGGERED",e.StripeAppDrawerViewed="STRIPE_APP_DRAWER_VIEWED",e.SubscriptionsMigrated="SUBSCRIPTIONS_MIGRATED",e.SubscriptionsMigrationTriggered="SUBSCRIPTIONS_MIGRATION_TRIGGERED",e.SubscriptionBillingMonthEndsSoon="SUBSCRIPTION_BILLING_MONTH_ENDS_SOON",e.SubscriptionCanceled="SUBSCRIPTION_CANCELED",e.SubscriptionCreated="SUBSCRIPTION_CREATED",e.SubscriptionExpired="SUBSCRIPTION_EXPIRED",e.SubscriptionSpentLimitExceeded="SUBSCRIPTION_SPENT_LIMIT_EXCEEDED",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.SubscriptionUsageChargeTriggered="SUBSCRIPTION_USAGE_CHARGE_TRIGGERED",e.SubscriptionUsageUpdated="SUBSCRIPTION_USAGE_UPDATED",e.SyncFailed="SYNC_FAILED",e.WidgetConfigurationUpdated="WIDGET_CONFIGURATION_UPDATED"}(Ve||(Ve={})),function(e){e.Active="ACTIVE",e.Deprovisioning="DEPROVISIONING",e.Failed="FAILED",e.Provisioning="PROVISIONING"}(Be||(Be={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Name="name",e.ProductId="productId",e.RefId="refId",e.Status="status"}(Ge||(Ge={})),function(e){e.Completed="COMPLETED",e.Draft="DRAFT",e.InProgress="IN_PROGRESS"}(qe||(qe={})),function(e){e.CreatedAt="createdAt",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.FeatureGroupId="featureGroupId",e.Id="id",e.IsLatest="isLatest",e.Status="status",e.UpdatedAt="updatedAt",e.VersionNumber="versionNumber"}($e||($e={})),function(e){e.Archived="ARCHIVED",e.Published="PUBLISHED"}(Qe||(Qe={})),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"}(He||(He={})),function(e){e.Active="ACTIVE",e.New="NEW",e.Suspended="SUSPENDED"}(ze||(ze={})),function(e){e.Boolean="BOOLEAN",e.Enum="ENUM",e.Number="NUMBER"}(We||(We={})),function(e){e.Bold="BOLD",e.Normal="NORMAL"}(Ze||(Ze={})),function(e){e.OneMonth="OneMonth",e.OneYear="OneYear"}(Ye||(Ye={})),function(e){e.CreatedAt="createdAt",e.Endpoint="endpoint",e.EnvironmentId="environmentId",e.Id="id",e.Status="status"}(Ke||(Ke={})),function(e){e.Active="ACTIVE",e.Inactive="INACTIVE"}(Je||(Je={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.TaskType="taskType"}(Xe||(Xe={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.VendorIdentifier="vendorIdentifier",e.VendorType="vendorType"}(et||(et={})),function(e){e.AddonCharge="AddonCharge",e.BaseCharge="BaseCharge",e.InAdvanceCommitmentCharge="InAdvanceCommitmentCharge",e.MinimumSpendAdjustmentCharge="MinimumSpendAdjustmentCharge",e.MinimumSpendCharge="MinimumSpendCharge",e.Other="Other",e.OverageCharge="OverageCharge",e.PayAsYouGoCharge="PayAsYouGoCharge",e.TierCharge="TierCharge",e.ZeroAmountBaseCharge="ZeroAmountBaseCharge"}(tt||(tt={})),function(e){e.CreatedAt="createdAt",e.Email="email",e.Id="id"}(nt||(nt={})),function(e){e.Invited="INVITED",e.Registered="REGISTERED"}(rt||(rt={})),function(e){e.Completed="COMPLETED",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.Pending="PENDING"}(it||(it={})),function(e){e.Fluctuating="Fluctuating",e.Incremental="Incremental",e.None="None"}(ot||(ot={})),function(e){e.StartOfTheMonth="StartOfTheMonth",e.SubscriptionStart="SubscriptionStart"}(at||(at={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.IsDefault="isDefault",e.IsLatest="isLatest",e.OfferId="offerId",e.Status="status",e.Version="version"}(st||(st={})),function(e){e.Archived="ARCHIVED",e.Draft="DRAFT",e.Published="PUBLISHED"}(ut||(ut={})),function(e){e.Monthly="MONTHLY",e.OnSubscriptionRenewal="ON_SUBSCRIPTION_RENEWAL"}(ct||(ct={})),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"}(lt||(lt={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.PackageId="packageId",e.UpdatedAt="updatedAt"}(pt||(pt={})),function(e){e.CreatedAt="createdAt",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.IsLatest="isLatest",e.PackageGroupId="packageGroupId",e.ProductId="productId",e.Status="status",e.UpdatedAt="updatedAt",e.VersionNumber="versionNumber"}(dt||(dt={})),function(e){e.Archived="ARCHIVED",e.Draft="DRAFT",e.Published="PUBLISHED"}(ft||(ft={})),function(e){e.Archived="ARCHIVED",e.Draft="DRAFT",e.Published="PUBLISHED"}(ht||(ht={})),function(e){e.ActionRequired="ACTION_REQUIRED",e.Failed="FAILED",e.NotRequired="NOT_REQUIRED",e.Processing="PROCESSING"}(mt||(mt={})),function(e){e.Charge="CHARGE",e.Invoice="INVOICE",e.None="NONE"}(gt||(gt={})),function(e){e.Bank="BANK",e.Card="CARD",e.CashApp="CASH_APP"}(yt||(yt={})),function(e){e.Downgrade="DOWNGRADE",e.None="NONE",e.Upgrade="UPGRADE"}(vt||(vt={})),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"}(bt||(bt={})),function(e){e.BillingCadence="billingCadence",e.BillingId="billingId",e.BillingModel="billingModel",e.BillingPeriod="billingPeriod",e.CreatedAt="createdAt",e.Id="id",e.TiersMode="tiersMode"}(Et||(Et={})),function(e){e.Custom="CUSTOM",e.Free="FREE",e.Paid="PAID"}(_t||(_t={})),function(e){e.AwsMarketplaceProductCode="awsMarketplaceProductCode",e.AwsMarketplaceProductId="awsMarketplaceProductId",e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsDefaultProduct="isDefaultProduct",e.MultipleSubscriptions="multipleSubscriptions",e.RefId="refId",e.Status="status",e.UpdatedAt="updatedAt"}(It||(It={})),function(e){e.Archived="ARCHIVED",e.Published="PUBLISHED"}(St||(St={})),function(e){e.Custom="CUSTOM",e.Lifetime="LIFETIME",e.OneMonth="ONE_MONTH",e.OneWeek="ONE_WEEK",e.OneYear="ONE_YEAR",e.SixMonth="SIX_MONTH"}(Tt||(Tt={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.UpdatedAt="updatedAt"}(Ct||(Ct={})),function(e){e.Active="Active",e.Expired="Expired",e.Paused="Paused"}(wt||(wt={})),function(e){e.CreateProrations="CREATE_PRORATIONS",e.InvoiceImmediately="INVOICE_IMMEDIATELY"}(Pt||(Pt={})),function(e){e.PaymentRequired="PAYMENT_REQUIRED",e.Success="SUCCESS"}(Dt||(Dt={})),function(e){e.AllCustomers="ALL_CUSTOMERS",e.NewCustomers="NEW_CUSTOMERS"}(At||(At={})),function(e){e.EndOfBillingMonth="END_OF_BILLING_MONTH",e.EndOfBillingPeriod="END_OF_BILLING_PERIOD",e.Immediate="IMMEDIATE"}(Ot||(Ot={})),function(e){e.Asc="ASC",e.Desc="DESC"}(Nt||(Nt={})),function(e){e.NullsFirst="NULLS_FIRST",e.NullsLast="NULLS_LAST"}(Rt||(Rt={})),function(e){e.JsClientSdk="JS_CLIENT_SDK",e.NodeServerSdk="NODE_SERVER_SDK",e.PersistentCacheService="PERSISTENT_CACHE_SERVICE"}(Ft||(Ft={})),function(e){e.Live="LIVE",e.Sandbox="SANDBOX",e.Test="TEST"}(kt||(kt={})),function(e){e.App="APP",e.Connect="CONNECT"}(xt||(xt={})),function(e){e.CreatedAt="createdAt",e.Id="id",e.Quantity="quantity",e.UpdatedAt="updatedAt"}(Ut||(Ut={})),function(e){e.Now="NOW",e.Unchanged="UNCHANGED"}(Mt||(Mt={})),function(e){e.AutoCancellationRule="AutoCancellationRule",e.CancelledByBilling="CancelledByBilling",e.CustomerArchived="CustomerArchived",e.DetachBilling="DetachBilling",e.Expired="Expired",e.Immediate="Immediate",e.PendingPaymentExpired="PendingPaymentExpired",e.ScheduledCancellation="ScheduledCancellation",e.TrialConverted="TrialConverted",e.TrialEnded="TrialEnded",e.UpgradeOrDowngrade="UpgradeOrDowngrade"}(Lt||(Lt={})),function(e){e.Default="DEFAULT",e.RevokeEntitlements="REVOKE_ENTITLEMENTS"}(jt||(jt={})),function(e){e.EndOfBillingPeriod="END_OF_BILLING_PERIOD",e.Immediate="IMMEDIATE",e.SpecificDate="SPECIFIC_DATE"}(Vt||(Vt={})),function(e){e.Active="ACTIVE",e.Expired="EXPIRED",e.Removed="REMOVED"}(Bt||(Bt={})),function(e){e.PredefinedFreePlan="PREDEFINED_FREE_PLAN",e.PredefinedTrialPlan="PREDEFINED_TRIAL_PLAN",e.RequestedPlan="REQUESTED_PLAN",e.SkippedSubscriptionCreation="SKIPPED_SUBSCRIPTION_CREATION"}(Gt||(Gt={})),function(e){e.CancelSubscription="CANCEL_SUBSCRIPTION",e.DowngradeToFree="DOWNGRADE_TO_FREE"}(qt||(qt={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.SubscriptionId="subscriptionId",e.UpdatedAt="updatedAt"}($t||($t={})),function(e){e.BillingCycle="BILLING_CYCLE",e.Manual="MANUAL",e.MinimumInvoiceAmountExceeded="MINIMUM_INVOICE_AMOUNT_EXCEEDED",e.Other="OTHER",e.SubscriptionCreation="SUBSCRIPTION_CREATION",e.SubscriptionUpdate="SUBSCRIPTION_UPDATE"}(Qt||(Qt={})),function(e){e.Canceled="CANCELED",e.Open="OPEN",e.Paid="PAID"}(Ht||(Ht={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.TaskType="taskType"}(zt||(zt={})),function(e){e.EndOfBillingPeriod="END_OF_BILLING_PERIOD",e.Immediate="IMMEDIATE"}(Wt||(Wt={})),function(e){e.BillingModel="billingModel",e.CreatedAt="createdAt",e.FeatureId="featureId",e.HasSoftLimit="hasSoftLimit",e.Id="id",e.UpdatedAt="updatedAt",e.UsageLimit="usageLimit"}(Zt||(Zt={})),function(e){e.CreateProrations="CREATE_PRORATIONS",e.InvoiceImmediately="INVOICE_IMMEDIATELY",e.None="NONE"}(Yt||(Yt={})),function(e){e.BillingId="billingId",e.CancellationDate="cancellationDate",e.CreatedAt="createdAt",e.CustomerId="customerId",e.EndDate="endDate",e.EnvironmentId="environmentId",e.PaymentCollection="paymentCollection",e.PricingType="pricingType",e.ProductId="productId",e.ResourceId="resourceId",e.SalesforceId="salesforceId",e.StartDate="startDate",e.Status="status",e.SubscriptionId="subscriptionId"}(Kt||(Kt={})),function(e){e.Canceled="Canceled",e.Done="Done",e.Failed="Failed",e.PendingPayment="PendingPayment",e.Scheduled="Scheduled"}(Jt||(Jt={})),function(e){e.AdditionalMetaData="AdditionalMetaData",e.Addon="Addon",e.BillingInfoMetadata="BillingInfoMetadata",e.BillingPeriod="BillingPeriod",e.Coupon="Coupon",e.Downgrade="Downgrade",e.MigrateToLatest="MigrateToLatest",e.Plan="Plan",e.PriceOverride="PriceOverride",e.RecurringCredits="RecurringCredits",e.UnitAmount="UnitAmount"}(Xt||(Xt={})),function(e){e.FreePlan="FREE_PLAN",e.PlanSelection="PLAN_SELECTION",e.TrialPeriod="TRIAL_PERIOD"}(en||(en={})),function(e){e.Active="ACTIVE",e.Canceled="CANCELED",e.Expired="EXPIRED",e.InTrial="IN_TRIAL",e.NotStarted="NOT_STARTED",e.PaymentPending="PAYMENT_PENDING"}(tn||(tn={})),function(e){e.AlwaysReset="ALWAYS_RESET",e.BillingPeriodChange="BILLING_PERIOD_CHANGE",e.NeverReset="NEVER_RESET"}(nn||(nn={})),function(e){e.Error="ERROR",e.NoSyncRequired="NO_SYNC_REQUIRED",e.Pending="PENDING",e.Success="SUCCESS"}(rn||(rn={})),function(e){e.Canceled="CANCELED",e.Completed="COMPLETED",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.PartiallyFailed="PARTIALLY_FAILED",e.Pending="PENDING"}(on||(on={})),function(e){e.EnvironmentExport="ENVIRONMENT_EXPORT",e.EnvironmentMergeApply="ENVIRONMENT_MERGE_APPLY",e.ImportIntegrationCatalog="IMPORT_INTEGRATION_CATALOG",e.ImportIntegrationCustomers="IMPORT_INTEGRATION_CUSTOMERS",e.ImportSubscriptionsBulk="IMPORT_SUBSCRIPTIONS_BULK",e.RecalculateBatchEntitlements="RECALCULATE_BATCH_ENTITLEMENTS",e.RecalculateEntitlements="RECALCULATE_ENTITLEMENTS",e.ResyncIntegration="RESYNC_INTEGRATION",e.SubscriptionMigration="SUBSCRIPTION_MIGRATION",e.SubscriptionMigrationV2="SUBSCRIPTION_MIGRATION_V2"}(an||(an={})),function(e){e.CreditAmount="CreditAmount",e.DollarAmount="DollarAmount"}(sn||(sn={})),function(e){e.Graduated="GRADUATED",e.Volume="VOLUME"}(un||(un={})),function(e){e.CancelSubscription="CANCEL_SUBSCRIPTION",e.ConvertToPaid="CONVERT_TO_PAID"}(cn||(cn={})),function(e){e.Day="DAY",e.Month="MONTH"}(ln||(ln={})),function(e){e.Down="DOWN",e.Up="UP"}(pn||(pn={})),function(e){e.PeriodicReset="PERIODIC_RESET",e.SubscriptionChangeReset="SUBSCRIPTION_CHANGE_RESET"}(dn||(dn={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id"}(fn||(fn={})),function(e){e.Delta="DELTA",e.Set="SET"}(hn||(hn={})),function(e){e.Airwallex="AIRWALLEX",e.AppStore="APP_STORE",e.Auth0="AUTH0",e.AwsMarketplace="AWS_MARKETPLACE",e.BigQuery="BIG_QUERY",e.Hubspot="HUBSPOT",e.OpenFga="OPEN_FGA",e.Prequel="PREQUEL",e.Received="RECEIVED",e.Salesforce="SALESFORCE",e.Snowflake="SNOWFLAKE",e.Stripe="STRIPE",e.StripeInvoicing="STRIPE_INVOICING",e.Zuora="ZUORA"}(mn||(mn={})),function(e){e.Auth="AUTH",e.Billing="BILLING",e.Crm="CRM",e.DataExport="DATA_EXPORT",e.Invoicing="INVOICING",e.Marketplace="MARKETPLACE"}(gn||(gn={})),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"}(yn||(yn={})),function(e){e.Checkout="CHECKOUT",e.CustomerPortal="CUSTOMER_PORTAL",e.Paywall="PAYWALL"}(vn||(vn={})),function(e){e.SubscriptionStart="SubscriptionStart"}(bn||(bn={})),function(e){e.Control="CONTROL",e.Variant="VARIANT"}(En||(En={}));var Sn,Tn,Cn,wn,Pn,Dn,An,On,Nn,Rn,Fn,kn,xn,Un,Mn,Ln,jn,Vn,Bn,Gn,qn,$n,Qn,Hn,zn,Wn,Zn,Yn,Kn,Jn,Xn,er,tr,nr,rr,ir,or,ar,sr,ur,cr,lr,pr,dr,fr,hr,mr,gr,yr,vr,br,Er,_r,Ir,Sr,Tr,Cr,wr,Pr,Dr,Ar,Or,Nr,Rr,Fr,kr,xr,Ur,Mr,Lr,jr,Vr,Br,Gr,qr,$r,Qr,Hr,zr,Wr,Zr,Yr,Kr,Jr,Xr,ei,ti,ni,ri,ii,oi,ai,si,ui,ci,li,pi,di,fi,hi,mi,gi,yi,vi,bi,Ei,_i,Ii,Si,Ti,Ci,wi,Pi,Di,Ai,Oi,Ni,Ri,Fi,ki,xi,Ui,Mi,Li,ji,Vi,Bi,Gi,qi,$i,Qi,Hi,zi,Wi,Zi,Yi,Ki,Ji,Xi,eo,to,no,ro,io,oo,ao,so,uo,co,lo,po,fo,ho,mo,go,yo,vo,bo,Eo,_o,Io,So,To,Co,wo=N(Sn||(Sn=_n(["\n fragment SubscriptionQueryFragment on SubscriptionQuery {\n subscriptionId\n status\n pricingType\n startDate\n currentBillingPeriodEnd\n customer {\n customerId\n }\n payingCustomer {\n customerId\n }\n resource {\n resourceId\n }\n plan {\n planId: refId\n displayName\n }\n addons {\n quantity\n addon {\n addonId: refId\n }\n }\n trialConfiguration {\n trialEndBehavior\n }\n trialEndDate\n}\n "],["\n fragment SubscriptionQueryFragment on SubscriptionQuery {\n subscriptionId\n status\n pricingType\n startDate\n currentBillingPeriodEnd\n customer {\n customerId\n }\n payingCustomer {\n customerId\n }\n resource {\n resourceId\n }\n plan {\n planId: refId\n displayName\n }\n addons {\n quantity\n addon {\n addonId: refId\n }\n }\n trialConfiguration {\n trialEndBehavior\n }\n trialEndDate\n}\n "]))),Po=N(Tn||(Tn=_n(["\n fragment SlimSubscriptionFragmentV2 on CustomerSubscription {\n subscriptionId\n status\n pricingType\n startDate\n endDate\n cancellationDate\n effectiveEndDate\n currentBillingPeriodEnd\n currentBillingPeriodStart\n billingPeriod\n additionalMetaData\n totalPrice {\n subTotal {\n amount\n currency\n }\n total {\n amount\n currency\n }\n }\n customer {\n customerId\n email\n }\n payingCustomer {\n customerId\n email\n }\n resource {\n resourceId\n }\n plan {\n planId: refId\n displayName\n description\n product {\n refId\n displayName\n downgradePlan {\n refId\n displayName\n }\n }\n }\n addons {\n quantity\n addon {\n addonId: refId\n }\n }\n prices {\n billingModel\n price {\n billingPeriod\n price {\n amount\n currency\n }\n }\n }\n trialConfiguration {\n trialEndBehavior\n }\n trialEndDate\n}\n "],["\n fragment SlimSubscriptionFragmentV2 on CustomerSubscription {\n subscriptionId\n status\n pricingType\n startDate\n endDate\n cancellationDate\n effectiveEndDate\n currentBillingPeriodEnd\n currentBillingPeriodStart\n billingPeriod\n additionalMetaData\n totalPrice {\n subTotal {\n amount\n currency\n }\n total {\n amount\n currency\n }\n }\n customer {\n customerId\n email\n }\n payingCustomer {\n customerId\n email\n }\n resource {\n resourceId\n }\n plan {\n planId: refId\n displayName\n description\n product {\n refId\n displayName\n downgradePlan {\n refId\n displayName\n }\n }\n }\n addons {\n quantity\n addon {\n addonId: refId\n }\n }\n prices {\n billingModel\n price {\n billingPeriod\n price {\n amount\n currency\n }\n }\n }\n trialConfiguration {\n trialEndBehavior\n }\n trialEndDate\n}\n "]))),Do=N(Cn||(Cn=_n(["\n fragment SlimCustomerFragment on Customer {\n id\n name\n email\n createdAt\n updatedAt\n refId\n customerId\n billingId\n additionalMetaData\n awsMarketplaceCustomerId\n}\n "],["\n fragment SlimCustomerFragment on Customer {\n id\n name\n email\n createdAt\n updatedAt\n refId\n customerId\n billingId\n additionalMetaData\n awsMarketplaceCustomerId\n}\n "]))),Ao=N(wn||(wn=_n(["\n fragment CouponFragment on Coupon {\n id\n discountValue\n percentOff\n amountsOff {\n amount\n currency\n }\n type\n additionalMetaData\n refId\n name\n description\n createdAt\n updatedAt\n billingId\n billingLinkUrl\n status\n syncStates {\n vendorIdentifier\n status\n }\n}\n "],["\n fragment CouponFragment on Coupon {\n id\n discountValue\n percentOff\n amountsOff {\n amount\n currency\n }\n type\n additionalMetaData\n refId\n name\n description\n createdAt\n updatedAt\n billingId\n billingLinkUrl\n status\n syncStates {\n vendorIdentifier\n status\n }\n}\n "]))),Oo=N(Pn||(Pn=_n(["\n fragment PromotionalEntitlementFragment on PromotionalEntitlement {\n status\n usageLimit\n featureId\n hasUnlimitedUsage\n hasSoftLimit\n resetPeriod\n endDate\n isVisible\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n}\n "],["\n fragment PromotionalEntitlementFragment on PromotionalEntitlement {\n status\n usageLimit\n featureId\n hasUnlimitedUsage\n hasSoftLimit\n resetPeriod\n endDate\n isVisible\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n}\n "]))),No=N(Dn||(Dn=_n(["\n fragment CustomerFragment on Customer {\n ...SlimCustomerFragment\n hasPaymentMethod\n hasActiveSubscription\n defaultPaymentExpirationMonth\n defaultPaymentExpirationYear\n defaultPaymentMethodLast4Digits\n defaultPaymentMethodType\n trialedPlans {\n productId\n productRefId\n planRefId\n planId\n }\n experimentInfo {\n groupType\n groupName\n id\n name\n }\n coupon {\n ...CouponFragment\n }\n eligibleForTrial {\n productId\n productRefId\n eligible\n }\n promotionalEntitlements {\n ...PromotionalEntitlementFragment\n }\n}\n "],["\n fragment CustomerFragment on Customer {\n ...SlimCustomerFragment\n hasPaymentMethod\n hasActiveSubscription\n defaultPaymentExpirationMonth\n defaultPaymentExpirationYear\n defaultPaymentMethodLast4Digits\n defaultPaymentMethodType\n trialedPlans {\n productId\n productRefId\n planRefId\n planId\n }\n experimentInfo {\n groupType\n groupName\n id\n name\n }\n coupon {\n ...CouponFragment\n }\n eligibleForTrial {\n productId\n productRefId\n eligible\n }\n promotionalEntitlements {\n ...PromotionalEntitlementFragment\n }\n}\n "]))),Ro=N(An||(An=_n(["\n fragment SubscriptionInvoiceFragment on SubscriptionInvoice {\n billingId\n status\n createdAt\n dueDate\n updatedAt\n errorMessage\n requiresAction\n paymentSecret\n paymentUrl\n pdfUrl\n billingReason\n currency\n subTotal\n subTotalExcludingTax\n total\n totalExcludingTax\n tax\n amountDue\n attemptCount\n}\n "],["\n fragment SubscriptionInvoiceFragment on SubscriptionInvoice {\n billingId\n status\n createdAt\n dueDate\n updatedAt\n errorMessage\n requiresAction\n paymentSecret\n paymentUrl\n pdfUrl\n billingReason\n currency\n subTotal\n subTotalExcludingTax\n total\n totalExcludingTax\n tax\n amountDue\n attemptCount\n}\n "]))),Fo=N(On||(On=_n(["\n fragment CustomerResourceFragment on CustomerResource {\n resourceId\n}\n "],["\n fragment CustomerResourceFragment on CustomerResource {\n resourceId\n}\n "]))),ko=N(Nn||(Nn=_n(["\n fragment PriceTierFragment on PriceTier {\n upTo\n unitPrice {\n amount\n currency\n }\n flatPrice {\n amount\n currency\n }\n}\n "],["\n fragment PriceTierFragment on PriceTier {\n upTo\n unitPrice {\n amount\n currency\n }\n flatPrice {\n amount\n currency\n }\n}\n "]))),xo=N(Rn||(Rn=_n(["\n fragment PriceFragment on Price {\n billingModel\n billingPeriod\n billingCadence\n billingId\n minUnitQuantity\n maxUnitQuantity\n billingCountryCode\n price {\n amount\n currency\n }\n creditRate {\n amount\n customCurrencyId\n currencyId\n }\n tiersMode\n tiers {\n ...PriceTierFragment\n }\n feature {\n refId\n featureUnits\n featureUnitsPlural\n displayName\n description\n }\n blockSize\n topUpCustomCurrencyId\n customCurrency {\n displayName\n units {\n singular\n plural\n }\n }\n}\n "],["\n fragment PriceFragment on Price {\n billingModel\n billingPeriod\n billingCadence\n billingId\n minUnitQuantity\n maxUnitQuantity\n billingCountryCode\n price {\n amount\n currency\n }\n creditRate {\n amount\n customCurrencyId\n currencyId\n }\n tiersMode\n tiers {\n ...PriceTierFragment\n }\n feature {\n refId\n featureUnits\n featureUnitsPlural\n displayName\n description\n }\n blockSize\n topUpCustomCurrencyId\n customCurrency {\n displayName\n units {\n singular\n plural\n }\n }\n}\n "]))),Uo=N(Fn||(Fn=_n(["\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 "]))),Mo=N(kn||(kn=_n(["\n fragment ProductFragment on Product {\n refId\n displayName\n description\n additionalMetaData\n awsMarketplaceProductId\n productSettings {\n downgradePlan {\n refId\n displayName\n }\n }\n}\n "],["\n fragment ProductFragment on Product {\n refId\n displayName\n description\n additionalMetaData\n awsMarketplaceProductId\n productSettings {\n downgradePlan {\n refId\n displayName\n }\n }\n}\n "]))),Lo=N(xn||(xn=_n(["\n fragment PackageEntitlementFragment on PackageEntitlement {\n usageLimit\n hasUnlimitedUsage\n hasSoftLimit\n featureId\n resetPeriod\n hiddenFromWidgets\n isCustom\n displayNameOverride\n enumValues\n isGranted\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n}\n "],["\n fragment PackageEntitlementFragment on PackageEntitlement {\n usageLimit\n hasUnlimitedUsage\n hasSoftLimit\n featureId\n resetPeriod\n hiddenFromWidgets\n isCustom\n displayNameOverride\n enumValues\n isGranted\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n}\n "]))),jo=N(Un||(Un=_n(["\n fragment PackageFeatureEntitlementFragment on PackageFeatureEntitlement {\n __typename\n id\n behavior\n description\n displayNameOverride\n enumValues\n featureId\n hasSoftLimit\n hasUnlimitedUsage\n hiddenFromWidgets\n isCustom\n isGranted\n order\n resetPeriod\n usageLimit\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n}\n "],["\n fragment PackageFeatureEntitlementFragment on PackageFeatureEntitlement {\n __typename\n id\n behavior\n description\n displayNameOverride\n enumValues\n featureId\n hasSoftLimit\n hasUnlimitedUsage\n hiddenFromWidgets\n isCustom\n isGranted\n order\n resetPeriod\n usageLimit\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n}\n "]))),Vo=N(Mn||(Mn=_n(["\n fragment PackageCreditEntitlementFragment on PackageCreditEntitlement {\n __typename\n id\n amount\n behavior\n cadence\n customCurrencyId\n description\n displayNameOverride\n hasSoftLimit\n hiddenFromWidgets\n isCustom\n isGranted\n order\n dependencyFeature {\n refId\n displayName\n description\n featureType\n featureUnits\n featureUnitsPlural\n }\n customCurrency {\n currencyId\n displayName\n symbol\n units {\n singular\n plural\n }\n }\n}\n "],["\n fragment PackageCreditEntitlementFragment on PackageCreditEntitlement {\n __typename\n id\n amount\n behavior\n cadence\n customCurrencyId\n description\n displayNameOverride\n hasSoftLimit\n hiddenFromWidgets\n isCustom\n isGranted\n order\n dependencyFeature {\n refId\n displayName\n description\n featureType\n featureUnits\n featureUnitsPlural\n }\n customCurrency {\n currencyId\n displayName\n symbol\n units {\n singular\n plural\n }\n }\n}\n "]))),Bo=N(Ln||(Ln=_n(["\n fragment PackageEntitlementUnionFragment on PackageEntitlementUnion {\n ... on PackageFeatureEntitlement {\n ...PackageFeatureEntitlementFragment\n }\n ... on PackageCreditEntitlement {\n ...PackageCreditEntitlementFragment\n }\n}\n "],["\n fragment PackageEntitlementUnionFragment on PackageEntitlementUnion {\n ... on PackageFeatureEntitlement {\n ...PackageFeatureEntitlementFragment\n }\n ... on PackageCreditEntitlement {\n ...PackageCreditEntitlementFragment\n }\n}\n "]))),Go=N(jn||(jn=_n(["\n fragment OveragePriceFragment on Price {\n billingModel\n billingPeriod\n billingId\n billingCountryCode\n price {\n amount\n currency\n }\n tiersMode\n tiers {\n ...PriceTierFragment\n }\n feature {\n refId\n featureUnits\n featureUnitsPlural\n displayName\n description\n }\n}\n "],["\n fragment OveragePriceFragment on Price {\n billingModel\n billingPeriod\n billingId\n billingCountryCode\n price {\n amount\n currency\n }\n tiersMode\n tiers {\n ...PriceTierFragment\n }\n feature {\n refId\n featureUnits\n featureUnitsPlural\n displayName\n description\n }\n}\n "]))),qo=N(Vn||(Vn=_n(["\n fragment AddonDependencyFragment on Addon {\n id\n refId\n displayName\n description\n}\n "],["\n fragment AddonDependencyFragment on Addon {\n id\n refId\n displayName\n description\n}\n "]))),$o=N(Bn||(Bn=_n(["\n fragment AddonFragment on Addon {\n id\n refId\n billingId\n displayName\n description\n additionalMetaData\n hiddenFromWidgets\n entitlements {\n ...PackageEntitlementFragment\n }\n packageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n prices {\n ...PriceFragment\n }\n overagePrices {\n ...OveragePriceFragment\n }\n pricingType\n maxQuantity\n dependencies {\n ...AddonDependencyFragment\n }\n}\n "],["\n fragment AddonFragment on Addon {\n id\n refId\n billingId\n displayName\n description\n additionalMetaData\n hiddenFromWidgets\n entitlements {\n ...PackageEntitlementFragment\n }\n packageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n prices {\n ...PriceFragment\n }\n overagePrices {\n ...OveragePriceFragment\n }\n pricingType\n maxQuantity\n dependencies {\n ...AddonDependencyFragment\n }\n}\n "]))),Qo=N(Gn||(Gn=_n(["\n fragment PlanCompatiblePackageGroupsFragment on PlanCompatiblePackageGroups {\n packageGroupId\n displayName\n addons {\n ...AddonFragment\n }\n options {\n minItems\n freeItems\n }\n}\n "],["\n fragment PlanCompatiblePackageGroupsFragment on PlanCompatiblePackageGroups {\n packageGroupId\n displayName\n addons {\n ...AddonFragment\n }\n options {\n minItems\n freeItems\n }\n}\n "]))),Ho=N(qn||(qn=_n(["\n fragment PlanFragment on Plan {\n id\n refId\n displayName\n description\n billingId\n versionNumber\n additionalMetaData\n hiddenFromWidgets\n product {\n ...ProductFragment\n }\n basePlan {\n refId\n displayName\n }\n entitlements {\n ...PackageEntitlementFragment\n }\n inheritedEntitlements {\n ...PackageEntitlementFragment\n }\n compatibleAddons {\n ...AddonFragment\n }\n compatiblePackageGroups {\n ...PlanCompatiblePackageGroupsFragment\n }\n prices {\n ...PriceFragment\n }\n overagePrices {\n ...OveragePriceFragment\n }\n pricingType\n defaultTrialConfig {\n duration\n units\n budget {\n limit\n }\n trialEndBehavior\n }\n awsMarketplacePlanDimension\n packageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n inheritedPackageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n}\n "],["\n fragment PlanFragment on Plan {\n id\n refId\n displayName\n description\n billingId\n versionNumber\n additionalMetaData\n hiddenFromWidgets\n product {\n ...ProductFragment\n }\n basePlan {\n refId\n displayName\n }\n entitlements {\n ...PackageEntitlementFragment\n }\n inheritedEntitlements {\n ...PackageEntitlementFragment\n }\n compatibleAddons {\n ...AddonFragment\n }\n compatiblePackageGroups {\n ...PlanCompatiblePackageGroupsFragment\n }\n prices {\n ...PriceFragment\n }\n overagePrices {\n ...OveragePriceFragment\n }\n pricingType\n defaultTrialConfig {\n duration\n units\n budget {\n limit\n }\n trialEndBehavior\n }\n awsMarketplacePlanDimension\n packageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n inheritedPackageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n}\n "]))),zo=N($n||($n=_n(["\n fragment ScheduleVariablesFragment on ScheduleVariables {\n __typename\n ... on PlanChangeVariables {\n planRefId\n changeType\n billingPeriod\n billableFeatures {\n featureId\n quantity\n }\n addons {\n addonRefId\n quantity\n }\n priceOverrides {\n planRefId\n addonRefId\n featureId\n }\n }\n ... on DowngradeChangeVariables {\n downgradePlanRefId\n billingPeriod\n billableFeatures {\n featureId\n quantity\n }\n addons {\n addonRefId\n quantity\n }\n priceOverrides {\n planRefId\n addonRefId\n featureId\n }\n }\n ... on BillingPeriodChangeVariables {\n billingPeriod\n }\n ... on UnitAmountChangeVariables {\n newUnitAmount\n featureId\n }\n ... on AddonChangeVariables {\n addonRefId\n newQuantity\n }\n ... on PlanPriceOverrideChangeVariables {\n planRefId\n featureId\n }\n ... on AddonPriceOverrideChangeVariables {\n addonRefId\n featureId\n }\n}\n "],["\n fragment ScheduleVariablesFragment on ScheduleVariables {\n __typename\n ... on PlanChangeVariables {\n planRefId\n changeType\n billingPeriod\n billableFeatures {\n featureId\n quantity\n }\n addons {\n addonRefId\n quantity\n }\n priceOverrides {\n planRefId\n addonRefId\n featureId\n }\n }\n ... on DowngradeChangeVariables {\n downgradePlanRefId\n billingPeriod\n billableFeatures {\n featureId\n quantity\n }\n addons {\n addonRefId\n quantity\n }\n priceOverrides {\n planRefId\n addonRefId\n featureId\n }\n }\n ... on BillingPeriodChangeVariables {\n billingPeriod\n }\n ... on UnitAmountChangeVariables {\n newUnitAmount\n featureId\n }\n ... on AddonChangeVariables {\n addonRefId\n newQuantity\n }\n ... on PlanPriceOverrideChangeVariables {\n planRefId\n featureId\n }\n ... on AddonPriceOverrideChangeVariables {\n addonRefId\n featureId\n }\n}\n "]))),Wo=N(Qn||(Qn=_n(["\n fragment SubscriptionScheduledUpdateData on SubscriptionScheduledUpdate {\n subscriptionScheduleType\n scheduleStatus\n scheduledExecutionTime\n targetPackage {\n id\n refId\n displayName\n }\n scheduleVariables {\n ...ScheduleVariablesFragment\n }\n}\n "],["\n fragment SubscriptionScheduledUpdateData on SubscriptionScheduledUpdate {\n subscriptionScheduleType\n scheduleStatus\n scheduledExecutionTime\n targetPackage {\n id\n refId\n displayName\n }\n scheduleVariables {\n ...ScheduleVariablesFragment\n }\n}\n "]))),Zo=N(Hn||(Hn=_n(["\n fragment SubscriptionFutureUpdateData on SubscriptionFutureUpdate {\n subscriptionScheduleType\n scheduleStatus\n scheduledExecutionTime\n targetPackage {\n id\n refId\n displayName\n }\n scheduleVariables {\n ...ScheduleVariablesFragment\n }\n}\n "],["\n fragment SubscriptionFutureUpdateData on SubscriptionFutureUpdate {\n subscriptionScheduleType\n scheduleStatus\n scheduledExecutionTime\n targetPackage {\n id\n refId\n displayName\n }\n scheduleVariables {\n ...ScheduleVariablesFragment\n }\n}\n "]))),Yo=N(zn||(zn=_n(["\n fragment SubscriptionTrialConfigurationFragment on TrialConfiguration {\n trialEndBehavior\n}\n "],["\n fragment SubscriptionTrialConfigurationFragment on TrialConfiguration {\n trialEndBehavior\n}\n "]))),Ko=N(Wn||(Wn=_n(["\n fragment SubscriptionFragment on CustomerSubscription {\n id\n subscriptionId\n payingCustomer {\n ...SlimCustomerFragment\n }\n startDate\n endDate\n trialEndDate\n cancellationDate\n effectiveEndDate\n status\n refId\n currentBillingPeriodEnd\n additionalMetaData\n billingId\n billingLinkUrl\n latestInvoice {\n ...SubscriptionInvoiceFragment\n }\n paymentCollection\n paymentCollectionMethod\n billingSyncError\n resource {\n ...CustomerResourceFragment\n }\n experimentInfo {\n name\n groupType\n groupName\n id\n }\n prices {\n usageLimit\n price {\n ...PriceFragment\n }\n }\n totalPrice {\n ...TotalPriceFragment\n }\n pricingType\n plan {\n ...PlanFragment\n }\n addons {\n id\n quantity\n addon {\n ...AddonFragment\n }\n }\n scheduledUpdates {\n ...SubscriptionScheduledUpdateData\n }\n futureUpdates {\n ...SubscriptionFutureUpdateData\n }\n trialConfiguration {\n ...SubscriptionTrialConfigurationFragment\n }\n}\n "],["\n fragment SubscriptionFragment on CustomerSubscription {\n id\n subscriptionId\n payingCustomer {\n ...SlimCustomerFragment\n }\n startDate\n endDate\n trialEndDate\n cancellationDate\n effectiveEndDate\n status\n refId\n currentBillingPeriodEnd\n additionalMetaData\n billingId\n billingLinkUrl\n latestInvoice {\n ...SubscriptionInvoiceFragment\n }\n paymentCollection\n paymentCollectionMethod\n billingSyncError\n resource {\n ...CustomerResourceFragment\n }\n experimentInfo {\n name\n groupType\n groupName\n id\n }\n prices {\n usageLimit\n price {\n ...PriceFragment\n }\n }\n totalPrice {\n ...TotalPriceFragment\n }\n pricingType\n plan {\n ...PlanFragment\n }\n addons {\n id\n quantity\n addon {\n ...AddonFragment\n }\n }\n scheduledUpdates {\n ...SubscriptionScheduledUpdateData\n }\n futureUpdates {\n ...SubscriptionFutureUpdateData\n }\n trialConfiguration {\n ...SubscriptionTrialConfigurationFragment\n }\n}\n "]))),Jo=N(Zn||(Zn=_n(["\n fragment CustomerWithSubscriptionsFragment on Customer {\n ...CustomerFragment\n subscriptions {\n ...SubscriptionFragment\n }\n}\n "],["\n fragment CustomerWithSubscriptionsFragment on Customer {\n ...CustomerFragment\n subscriptions {\n ...SubscriptionFragment\n }\n}\n "]))),Xo=N(Yn||(Yn=_n(["\n fragment CustomerStatisticsFragment on Customer {\n statistics {\n activeSubscriptionsByPricingType {\n pricingType\n totalCount\n }\n }\n}\n "],["\n fragment CustomerStatisticsFragment on Customer {\n statistics {\n activeSubscriptionsByPricingType {\n pricingType\n totalCount\n }\n }\n}\n "]))),ea=N(Kn||(Kn=_n(["\n fragment SubscriptionPreviewFragment on SubscriptionPreview {\n subTotal {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n total {\n amount\n currency\n }\n discountAmount {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n tax {\n amount\n currency\n }\n billingPeriodRange {\n start\n end\n }\n discount {\n name\n type\n value\n durationType\n durationInMonths\n }\n subscription {\n subTotal {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n total {\n amount\n currency\n }\n tax {\n amount\n currency\n }\n discountAmount {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n discount {\n name\n type\n value\n durationType\n durationInMonths\n }\n }\n proration {\n prorationDate\n credit {\n amount\n currency\n }\n debit {\n amount\n currency\n }\n netAmount {\n amount\n currency\n }\n }\n isPlanDowngrade\n hasScheduledUpdates\n credits {\n initial {\n amount\n currency\n }\n used {\n amount\n currency\n }\n remaining {\n amount\n currency\n }\n }\n}\n "],["\n fragment SubscriptionPreviewFragment on SubscriptionPreview {\n subTotal {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n total {\n amount\n currency\n }\n discountAmount {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n tax {\n amount\n currency\n }\n billingPeriodRange {\n start\n end\n }\n discount {\n name\n type\n value\n durationType\n durationInMonths\n }\n subscription {\n subTotal {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n total {\n amount\n currency\n }\n tax {\n amount\n currency\n }\n discountAmount {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n discount {\n name\n type\n value\n durationType\n durationInMonths\n }\n }\n proration {\n prorationDate\n credit {\n amount\n currency\n }\n debit {\n amount\n currency\n }\n netAmount {\n amount\n currency\n }\n }\n isPlanDowngrade\n hasScheduledUpdates\n credits {\n initial {\n amount\n currency\n }\n used {\n amount\n currency\n }\n remaining {\n amount\n currency\n }\n }\n}\n "]))),ta=N(Jn||(Jn=_n(["\n fragment ImmediateSubscriptionPreviewInvoiceFragment on ImmediateSubscriptionPreviewInvoice {\n total {\n amount\n currency\n }\n subTotal {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n tax {\n amount\n currency\n }\n discount {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n discountDetails {\n type\n value\n durationType\n durationInMonths\n }\n credits {\n initial {\n amount\n currency\n }\n used {\n amount\n currency\n }\n remaining {\n amount\n currency\n }\n }\n proration {\n prorationDate\n hasProrations\n credit {\n amount\n currency\n }\n debit {\n amount\n currency\n }\n netAmount {\n amount\n currency\n }\n }\n}\n "],["\n fragment ImmediateSubscriptionPreviewInvoiceFragment on ImmediateSubscriptionPreviewInvoice {\n total {\n amount\n currency\n }\n subTotal {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n tax {\n amount\n currency\n }\n discount {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n discountDetails {\n type\n value\n durationType\n durationInMonths\n }\n credits {\n initial {\n amount\n currency\n }\n used {\n amount\n currency\n }\n remaining {\n amount\n currency\n }\n }\n proration {\n prorationDate\n hasProrations\n credit {\n amount\n currency\n }\n debit {\n amount\n currency\n }\n netAmount {\n amount\n currency\n }\n }\n}\n "]))),na=N(Xn||(Xn=_n(["\n fragment SubscriptionPreviewInvoiceFragment on SubscriptionPreviewInvoice {\n total {\n amount\n currency\n }\n subTotal {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n tax {\n amount\n currency\n }\n discount {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n discountDetails {\n type\n value\n durationType\n durationInMonths\n }\n}\n "],["\n fragment SubscriptionPreviewInvoiceFragment on SubscriptionPreviewInvoice {\n total {\n amount\n currency\n }\n subTotal {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n tax {\n amount\n currency\n }\n discount {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n discountDetails {\n type\n value\n durationType\n durationInMonths\n }\n}\n "]))),ra=N(er||(er=_n(["\n fragment SubscriptionPreviewV2Fragment on SubscriptionPreviewV2 {\n immediateInvoice {\n ...ImmediateSubscriptionPreviewInvoiceFragment\n }\n recurringInvoice {\n ...SubscriptionPreviewInvoiceFragment\n }\n billingPeriodRange {\n start\n end\n }\n isPlanDowngrade\n hasScheduledUpdates\n}\n "],["\n fragment SubscriptionPreviewV2Fragment on SubscriptionPreviewV2 {\n immediateInvoice {\n ...ImmediateSubscriptionPreviewInvoiceFragment\n }\n recurringInvoice {\n ...SubscriptionPreviewInvoiceFragment\n }\n billingPeriodRange {\n start\n end\n }\n isPlanDowngrade\n hasScheduledUpdates\n}\n "]))),ia=N(tr||(tr=_n(["\n fragment SubscriptionInvoicePreviewFragment on SubscriptionInvoicePreview {\n amountDue {\n amount\n currency\n }\n minimumSpendAdjustment {\n amount\n currency\n }\n total {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n subTotal {\n amount\n currency\n }\n subTotalExcludingTax {\n amount\n currency\n }\n tax {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n discount {\n amount\n currency\n }\n discountDetails {\n name\n type\n value\n durationType\n durationInMonths\n }\n credits {\n initial {\n amount\n currency\n }\n used {\n amount\n currency\n }\n remaining {\n amount\n currency\n }\n }\n lastUpdatedAt\n lines {\n type\n description\n costDescription\n amount {\n amount\n currency\n }\n unitPrice {\n amount\n currency\n }\n quantity\n proration\n price {\n ...PriceFragment\n }\n usageLimit\n period {\n start\n end\n }\n hasSoftLimit\n lines {\n type\n description\n costDescription\n quantity\n proration\n usageLimit\n hasSoftLimit\n }\n }\n}\n "],["\n fragment SubscriptionInvoicePreviewFragment on SubscriptionInvoicePreview {\n amountDue {\n amount\n currency\n }\n minimumSpendAdjustment {\n amount\n currency\n }\n total {\n amount\n currency\n }\n totalExcludingTax {\n amount\n currency\n }\n subTotal {\n amount\n currency\n }\n subTotalExcludingTax {\n amount\n currency\n }\n tax {\n amount\n currency\n }\n taxDetails {\n displayName\n percentage\n inclusive\n }\n discount {\n amount\n currency\n }\n discountDetails {\n name\n type\n value\n durationType\n durationInMonths\n }\n credits {\n initial {\n amount\n currency\n }\n used {\n amount\n currency\n }\n remaining {\n amount\n currency\n }\n }\n lastUpdatedAt\n lines {\n type\n description\n costDescription\n amount {\n amount\n currency\n }\n unitPrice {\n amount\n currency\n }\n quantity\n proration\n price {\n ...PriceFragment\n }\n usageLimit\n period {\n start\n end\n }\n hasSoftLimit\n lines {\n type\n description\n costDescription\n quantity\n proration\n usageLimit\n hasSoftLimit\n }\n }\n}\n "]))),oa=N(nr||(nr=_n(["\n fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {\n __typename\n ... on YearlyResetPeriodConfig {\n yearlyAccordingTo\n }\n ... on MonthlyResetPeriodConfig {\n monthlyAccordingTo\n }\n ... on WeeklyResetPeriodConfig {\n weeklyAccordingTo\n }\n}\n "],["\n fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {\n __typename\n ... on YearlyResetPeriodConfig {\n yearlyAccordingTo\n }\n ... on MonthlyResetPeriodConfig {\n monthlyAccordingTo\n }\n ... on WeeklyResetPeriodConfig {\n weeklyAccordingTo\n }\n}\n "]))),aa=N(rr||(rr=_n(["\n fragment FeatureFragment on EntitlementFeature {\n __typename\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n description\n displayName\n refId\n unitTransformation {\n divide\n round\n }\n}\n "],["\n fragment FeatureFragment on EntitlementFeature {\n __typename\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n description\n displayName\n refId\n unitTransformation {\n divide\n round\n }\n}\n "]))),sa=N(ir||(ir=_n(["\n fragment EntitlementFragment on Entitlement {\n __typename\n isGranted\n accessDeniedReason\n customerId\n resourceId\n usageLimit\n hasUnlimitedUsage\n hasSoftLimit\n currentUsage\n requestedUsage\n requestedValues\n enumValues\n entitlementUpdatedAt\n usageUpdatedAt\n usagePeriodAnchor\n usagePeriodStart\n usagePeriodEnd\n nextResetDate\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n creditRate {\n amount\n currencyId\n }\n validUntil\n}\n "],["\n fragment EntitlementFragment on Entitlement {\n __typename\n isGranted\n accessDeniedReason\n customerId\n resourceId\n usageLimit\n hasUnlimitedUsage\n hasSoftLimit\n currentUsage\n requestedUsage\n requestedValues\n enumValues\n entitlementUpdatedAt\n usageUpdatedAt\n usagePeriodAnchor\n usagePeriodStart\n usagePeriodEnd\n nextResetDate\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n creditRate {\n amount\n currencyId\n }\n validUntil\n}\n "]))),ua=N(or||(or=_n(["\n fragment EntitlementsUpdatedPayload on EntitlementsUpdated {\n customerId\n resourceId\n accessDeniedReason\n entitlements {\n ...EntitlementFragment\n }\n}\n "],["\n fragment EntitlementsUpdatedPayload on EntitlementsUpdated {\n customerId\n resourceId\n accessDeniedReason\n entitlements {\n ...EntitlementFragment\n }\n}\n "]))),ca=N(ar||(ar=_n(["\n fragment UsageUpdatedFragment on UsageMeasurementUpdated {\n customerId\n resourceId\n featureId\n currentUsage\n usagePeriodStart\n usagePeriodEnd\n nextResetDate\n}\n "],["\n fragment UsageUpdatedFragment on UsageMeasurementUpdated {\n customerId\n resourceId\n featureId\n currentUsage\n usagePeriodStart\n usagePeriodEnd\n nextResetDate\n}\n "]))),la=N(sr||(sr=_n(["\n fragment EntitlementUsageUpdated on UsageUpdated {\n usage {\n ...UsageUpdatedFragment\n }\n entitlement {\n ...EntitlementFragment\n }\n}\n "],["\n fragment EntitlementUsageUpdated on UsageUpdated {\n usage {\n ...UsageUpdatedFragment\n }\n entitlement {\n ...EntitlementFragment\n }\n}\n "]))),pa=N(ur||(ur=_n(["\n fragment PackagePublishedPayload on PackagePublished {\n accountId\n environmentId\n packageType\n packageRefId\n packageVersion\n migrationType\n}\n "],["\n fragment PackagePublishedPayload on PackagePublished {\n accountId\n environmentId\n packageType\n packageRefId\n packageVersion\n migrationType\n}\n "]))),da=N(cr||(cr=_n(["\n fragment CreditBalanceUpdatedPayload on CreditBalanceUpdated {\n currency {\n currencyId\n displayName\n symbol\n units {\n singular\n plural\n }\n }\n currencyId\n currentBalance\n customerId\n validUntil\n resourceId\n totalConsumed\n totalGranted\n}\n "],["\n fragment CreditBalanceUpdatedPayload on CreditBalanceUpdated {\n currency {\n currencyId\n displayName\n symbol\n units {\n singular\n plural\n }\n }\n currencyId\n currentBalance\n customerId\n validUntil\n resourceId\n totalConsumed\n totalGranted\n}\n "]))),fa=N(lr||(lr=_n(["\n fragment CustomerPortalSubscriptionPriceFragment on CustomerPortalSubscriptionPrice {\n billingPeriod\n billingModel\n blockSize\n price {\n amount\n currency\n }\n creditRate {\n amount\n currencyId\n }\n feature {\n id\n refId\n displayName\n featureUnits\n featureUnitsPlural\n }\n}\n "],["\n fragment CustomerPortalSubscriptionPriceFragment on CustomerPortalSubscriptionPrice {\n billingPeriod\n billingModel\n blockSize\n price {\n amount\n currency\n }\n creditRate {\n amount\n currencyId\n }\n feature {\n id\n refId\n displayName\n featureUnits\n featureUnitsPlural\n }\n}\n "]))),ha=N(pr||(pr=_n(["\n fragment CustomerPortalSubscriptionAddonFragment on CustomerPortalAddon {\n addonId\n description\n displayName\n quantity\n}\n "],["\n fragment CustomerPortalSubscriptionAddonFragment on CustomerPortalAddon {\n addonId\n description\n displayName\n quantity\n}\n "]))),ma=N(dr||(dr=_n(["\n fragment CustomerPortalSubscriptionScheduledUpdateDataFragment on SubscriptionScheduledUpdate {\n subscriptionScheduleType\n scheduleStatus\n scheduledExecutionTime\n targetPackage {\n id\n refId\n displayName\n pricingType\n }\n scheduleVariables {\n ...ScheduleVariablesFragment\n }\n}\n "],["\n fragment CustomerPortalSubscriptionScheduledUpdateDataFragment on SubscriptionScheduledUpdate {\n subscriptionScheduleType\n scheduleStatus\n scheduledExecutionTime\n targetPackage {\n id\n refId\n displayName\n pricingType\n }\n scheduleVariables {\n ...ScheduleVariablesFragment\n }\n}\n "]))),ga=N(fr||(fr=_n(["\n fragment CustomerPortalSubscriptionFragment on CustomerPortalSubscription {\n subscriptionId\n planId\n planName\n pricingType\n prices {\n ...CustomerPortalSubscriptionPriceFragment\n }\n pricing {\n unitQuantity\n billingPeriod\n billingModel\n pricingType\n usageBasedEstimatedBill\n price {\n amount\n currency\n }\n creditRate {\n amount\n currencyId\n }\n feature {\n featureUnits\n featureUnitsPlural\n displayName\n }\n }\n status\n trialRemainingDays\n billingPeriodRange {\n start\n end\n }\n totalPrice {\n subTotal {\n amount\n currency\n }\n total {\n amount\n currency\n }\n addonsTotal {\n amount\n currency\n }\n }\n addons {\n ...CustomerPortalSubscriptionAddonFragment\n }\n scheduledUpdates {\n ...CustomerPortalSubscriptionScheduledUpdateDataFragment\n }\n previewNextInvoice {\n total {\n amount\n currency\n }\n amountDue {\n amount\n currency\n }\n lines {\n quantity\n period {\n start\n end\n }\n price {\n feature {\n refId\n }\n }\n }\n }\n}\n "],["\n fragment CustomerPortalSubscriptionFragment on CustomerPortalSubscription {\n subscriptionId\n planId\n planName\n pricingType\n prices {\n ...CustomerPortalSubscriptionPriceFragment\n }\n pricing {\n unitQuantity\n billingPeriod\n billingModel\n pricingType\n usageBasedEstimatedBill\n price {\n amount\n currency\n }\n creditRate {\n amount\n currencyId\n }\n feature {\n featureUnits\n featureUnitsPlural\n displayName\n }\n }\n status\n trialRemainingDays\n billingPeriodRange {\n start\n end\n }\n totalPrice {\n subTotal {\n amount\n currency\n }\n total {\n amount\n currency\n }\n addonsTotal {\n amount\n currency\n }\n }\n addons {\n ...CustomerPortalSubscriptionAddonFragment\n }\n scheduledUpdates {\n ...CustomerPortalSubscriptionScheduledUpdateDataFragment\n }\n previewNextInvoice {\n total {\n amount\n currency\n }\n amountDue {\n amount\n currency\n }\n lines {\n quantity\n period {\n start\n end\n }\n price {\n feature {\n refId\n }\n }\n }\n }\n}\n "]))),ya=N(hr||(hr=_n(["\n fragment CustomerPortalEntitlementFragment on Entitlement {\n isGranted\n usageLimit\n currentUsage\n hasUnlimitedUsage\n hasSoftLimit\n usagePeriodStart\n usagePeriodEnd\n nextResetDate\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n}\n "],["\n fragment CustomerPortalEntitlementFragment on Entitlement {\n isGranted\n usageLimit\n currentUsage\n hasUnlimitedUsage\n hasSoftLimit\n usagePeriodStart\n usagePeriodEnd\n nextResetDate\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n}\n "]))),va=N(mr||(mr=_n(["\n fragment FeatureEntitlementFragment on FeatureEntitlement {\n __typename\n isGranted\n accessDeniedReason\n usageLimit\n hasUnlimitedUsage\n hasSoftLimit\n currentUsage\n enumValues\n entitlementUpdatedAt\n usageUpdatedAt\n usagePeriodAnchor\n usagePeriodStart\n usagePeriodEnd\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n creditRate {\n amount\n currencyId\n }\n validUntil\n}\n "],["\n fragment FeatureEntitlementFragment on FeatureEntitlement {\n __typename\n isGranted\n accessDeniedReason\n usageLimit\n hasUnlimitedUsage\n hasSoftLimit\n currentUsage\n enumValues\n entitlementUpdatedAt\n usageUpdatedAt\n usagePeriodAnchor\n usagePeriodStart\n usagePeriodEnd\n resetPeriod\n resetPeriodConfiguration {\n ...ResetPeriodConfigurationFragment\n }\n feature {\n ...FeatureFragment\n }\n creditRate {\n amount\n currencyId\n }\n validUntil\n}\n "]))),ba=N(gr||(gr=_n(["\n fragment CreditEntitlementFragment on CreditEntitlement {\n __typename\n isGranted\n accessDeniedReason\n currency {\n currencyId\n displayName\n description\n unitSingular\n unitPlural\n additionalMetaData\n }\n usageLimit\n currentUsage\n hasSoftLimit\n usageUpdatedAt\n entitlementUpdatedAt\n usagePeriodEnd\n validUntil\n}\n "],["\n fragment CreditEntitlementFragment on CreditEntitlement {\n __typename\n isGranted\n accessDeniedReason\n currency {\n currencyId\n displayName\n description\n unitSingular\n unitPlural\n additionalMetaData\n }\n usageLimit\n currentUsage\n hasSoftLimit\n usageUpdatedAt\n entitlementUpdatedAt\n usagePeriodEnd\n validUntil\n}\n "]))),Ea=N(yr||(yr=_n(["\n fragment EntitlementUnionFragment on EntitlementUnion {\n ... on FeatureEntitlement {\n ...FeatureEntitlementFragment\n }\n ... on CreditEntitlement {\n ...CreditEntitlementFragment\n }\n}\n "],["\n fragment EntitlementUnionFragment on EntitlementUnion {\n ... on FeatureEntitlement {\n ...FeatureEntitlementFragment\n }\n ... on CreditEntitlement {\n ...CreditEntitlementFragment\n }\n}\n "]))),_a=N(vr||(vr=_n(["\n fragment CustomerPortalPromotionalEntitlementFragment on CustomerPortalPromotionalEntitlement {\n displayName\n hasUnlimitedUsage\n hasSoftLimit\n usageLimit\n period\n startDate\n endDate\n}\n "],["\n fragment CustomerPortalPromotionalEntitlementFragment on CustomerPortalPromotionalEntitlement {\n displayName\n hasUnlimitedUsage\n hasSoftLimit\n usageLimit\n period\n startDate\n endDate\n}\n "]))),Ia=N(br||(br=_n(["\n fragment CustomerPortalBillingInformationFragment on CustomerPortalBillingInformation {\n email\n name\n defaultPaymentMethodLast4Digits\n defaultPaymentMethodId\n defaultPaymentExpirationMonth\n defaultPaymentExpirationYear\n defaultPaymentMethodType\n}\n "],["\n fragment CustomerPortalBillingInformationFragment on CustomerPortalBillingInformation {\n email\n name\n defaultPaymentMethodLast4Digits\n defaultPaymentMethodId\n defaultPaymentExpirationMonth\n defaultPaymentExpirationYear\n defaultPaymentMethodType\n}\n "]))),Sa=N(Er||(Er=_n(["\n fragment FontVariantFragment on FontVariant {\n fontSize\n fontWeight\n}\n "],["\n fragment FontVariantFragment on FontVariant {\n fontSize\n fontWeight\n}\n "]))),Ta=N(_r||(_r=_n(["\n fragment TypographyConfigurationFragment on TypographyConfiguration {\n fontFamily\n h1 {\n ...FontVariantFragment\n }\n h2 {\n ...FontVariantFragment\n }\n h3 {\n ...FontVariantFragment\n }\n body {\n ...FontVariantFragment\n }\n}\n "],["\n fragment TypographyConfigurationFragment on TypographyConfiguration {\n fontFamily\n h1 {\n ...FontVariantFragment\n }\n h2 {\n ...FontVariantFragment\n }\n h3 {\n ...FontVariantFragment\n }\n body {\n ...FontVariantFragment\n }\n}\n "]))),Ca=N(Ir||(Ir=_n(["\n fragment CustomerPortalConfigurationFragment on CustomerPortalConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n currentPlanBackground\n iconsColor\n paywallBackgroundColor\n }\n typography {\n ...TypographyConfigurationFragment\n }\n customCss\n}\n "],["\n fragment CustomerPortalConfigurationFragment on CustomerPortalConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n currentPlanBackground\n iconsColor\n paywallBackgroundColor\n }\n typography {\n ...TypographyConfigurationFragment\n }\n customCss\n}\n "]))),wa=N(Sr||(Sr=_n(["\n fragment CustomerPortalFragment on CustomerPortal {\n subscriptions {\n ...CustomerPortalSubscriptionFragment\n }\n entitlements {\n ...CustomerPortalEntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n promotionalEntitlements {\n ...CustomerPortalPromotionalEntitlementFragment\n }\n billingInformation {\n ...CustomerPortalBillingInformationFragment\n }\n showWatermark\n billingPortalUrl\n canUpgradeSubscription\n configuration {\n ...CustomerPortalConfigurationFragment\n }\n resource {\n ...CustomerResourceFragment\n }\n}\n "],["\n fragment CustomerPortalFragment on CustomerPortal {\n subscriptions {\n ...CustomerPortalSubscriptionFragment\n }\n entitlements {\n ...CustomerPortalEntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n promotionalEntitlements {\n ...CustomerPortalPromotionalEntitlementFragment\n }\n billingInformation {\n ...CustomerPortalBillingInformationFragment\n }\n showWatermark\n billingPortalUrl\n canUpgradeSubscription\n configuration {\n ...CustomerPortalConfigurationFragment\n }\n resource {\n ...CustomerResourceFragment\n }\n}\n "]))),Pa=N(Tr||(Tr=_n(["\n fragment CheckoutConfigurationFragment on CheckoutConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n summaryBackgroundColor\n __typename\n }\n typography {\n ...TypographyConfigurationFragment\n __typename\n }\n customCss\n content {\n collectPhoneNumber\n }\n __typename\n}\n "],["\n fragment CheckoutConfigurationFragment on CheckoutConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n summaryBackgroundColor\n __typename\n }\n typography {\n ...TypographyConfigurationFragment\n __typename\n }\n customCss\n content {\n collectPhoneNumber\n }\n __typename\n}\n "]))),Da=N(Cr||(Cr=_n(["\n fragment StripeCheckoutCredentialsFragment on StripeCheckoutCredentials {\n accountId\n setupSecret\n publicKey\n}\n "],["\n fragment StripeCheckoutCredentialsFragment on StripeCheckoutCredentials {\n accountId\n setupSecret\n publicKey\n}\n "]))),Aa=N(wr||(wr=_n(["\n fragment ZuoraCheckoutCredentialsFragment on ZuoraCheckoutCredentials {\n publishableKey\n}\n "],["\n fragment ZuoraCheckoutCredentialsFragment on ZuoraCheckoutCredentials {\n publishableKey\n}\n "]))),Oa=N(Pr||(Pr=_n(["\n fragment AirwallexCheckoutCredentialsFragment on AirwallexCheckoutCredentials {\n clientSecret\n metadata {\n intentId\n env\n currency\n customerId\n }\n}\n "],["\n fragment AirwallexCheckoutCredentialsFragment on AirwallexCheckoutCredentials {\n clientSecret\n metadata {\n intentId\n env\n currency\n customerId\n }\n}\n "]))),Na=N(Dr||(Dr=_n(["\n fragment CheckoutStateFragment on CheckoutState {\n configuration {\n ...CheckoutConfigurationFragment\n }\n setupSecret\n customer {\n ...CustomerFragment\n }\n activeSubscription {\n ...SubscriptionFragment\n }\n resource {\n ...CustomerResourceFragment\n }\n plan {\n ...PlanFragment\n }\n billingIntegration {\n billingIdentifier\n billingCredentials {\n ... on StripeCheckoutCredentials {\n ...StripeCheckoutCredentialsFragment\n }\n ... on ZuoraCheckoutCredentials {\n ...ZuoraCheckoutCredentialsFragment\n }\n ... on AirwallexCheckoutCredentials {\n ...AirwallexCheckoutCredentialsFragment\n }\n }\n credentials {\n accountId\n publicKey\n }\n }\n}\n "],["\n fragment CheckoutStateFragment on CheckoutState {\n configuration {\n ...CheckoutConfigurationFragment\n }\n setupSecret\n customer {\n ...CustomerFragment\n }\n activeSubscription {\n ...SubscriptionFragment\n }\n resource {\n ...CustomerResourceFragment\n }\n plan {\n ...PlanFragment\n }\n billingIntegration {\n billingIdentifier\n billingCredentials {\n ... on StripeCheckoutCredentials {\n ...StripeCheckoutCredentialsFragment\n }\n ... on ZuoraCheckoutCredentials {\n ...ZuoraCheckoutCredentialsFragment\n }\n ... on AirwallexCheckoutCredentials {\n ...AirwallexCheckoutCredentialsFragment\n }\n }\n credentials {\n accountId\n publicKey\n }\n }\n}\n "]))),Ra=N(Ar||(Ar=_n(["\n fragment MockPaywallPackageEntitlementFragment on Entitlement {\n usageLimit\n hasUnlimitedUsage\n hasSoftLimit\n resetPeriod\n hiddenFromWidgets\n displayNameOverride\n enumValues\n isGranted\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n}\n "],["\n fragment MockPaywallPackageEntitlementFragment on Entitlement {\n usageLimit\n hasUnlimitedUsage\n hasSoftLimit\n resetPeriod\n hiddenFromWidgets\n displayNameOverride\n enumValues\n isGranted\n feature {\n featureType\n meterType\n featureUnits\n featureUnitsPlural\n displayName\n description\n refId\n additionalMetaData\n }\n}\n "]))),Fa=N(Or||(Or=_n(["\n fragment MockPaywallPriceFragment on PaywallPrice {\n billingModel\n billingPeriod\n billingCadence\n billingId\n minUnitQuantity\n maxUnitQuantity\n billingCountryCode\n price {\n amount\n currency\n }\n creditRate {\n amount\n currencyId\n }\n tiersMode\n tiers {\n ...PriceTierFragment\n }\n feature {\n refId\n featureUnits\n featureUnitsPlural\n displayName\n }\n blockSize\n topUpCustomCurrencyId\n customCurrency {\n displayName\n units {\n singular\n plural\n }\n }\n}\n "],["\n fragment MockPaywallPriceFragment on PaywallPrice {\n billingModel\n billingPeriod\n billingCadence\n billingId\n minUnitQuantity\n maxUnitQuantity\n billingCountryCode\n price {\n amount\n currency\n }\n creditRate {\n amount\n currencyId\n }\n tiersMode\n tiers {\n ...PriceTierFragment\n }\n feature {\n refId\n featureUnits\n featureUnitsPlural\n displayName\n }\n blockSize\n topUpCustomCurrencyId\n customCurrency {\n displayName\n units {\n singular\n plural\n }\n }\n}\n "]))),ka=N(Nr||(Nr=_n(["\n fragment MockPaywallAddonDependencyFragment on PaywallAddon {\n refId\n displayName\n description\n}\n "],["\n fragment MockPaywallAddonDependencyFragment on PaywallAddon {\n refId\n displayName\n description\n}\n "]))),xa=N(Rr||(Rr=_n(["\n fragment MockPaywallAddonFragment on PaywallAddon {\n refId\n displayName\n description\n additionalMetaData\n billingId\n maxQuantity\n hiddenFromWidgets\n dependencies {\n ...MockPaywallAddonDependencyFragment\n }\n entitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n packageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n prices {\n ...MockPaywallPriceFragment\n }\n pricingType\n}\n "],["\n fragment MockPaywallAddonFragment on PaywallAddon {\n refId\n displayName\n description\n additionalMetaData\n billingId\n maxQuantity\n hiddenFromWidgets\n dependencies {\n ...MockPaywallAddonDependencyFragment\n }\n entitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n packageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n prices {\n ...MockPaywallPriceFragment\n }\n pricingType\n}\n "]))),Ua=N(Fr||(Fr=_n(["\n fragment MockPaywallPlanCompatiblePackageGroupsFragment on PaywallPlanCompatiblePackageGroup {\n packageGroupId\n displayName\n description\n addons {\n ...MockPaywallAddonFragment\n }\n options {\n minItems\n freeItems\n }\n}\n "],["\n fragment MockPaywallPlanCompatiblePackageGroupsFragment on PaywallPlanCompatiblePackageGroup {\n packageGroupId\n displayName\n description\n addons {\n ...MockPaywallAddonFragment\n }\n options {\n minItems\n freeItems\n }\n}\n "]))),Ma=N(kr||(kr=_n(["\n fragment MockPaywallPlanFragment on PaywallPlan {\n refId\n description\n displayName\n billingId\n additionalMetaData\n product {\n refId\n displayName\n description\n additionalMetaData\n }\n basePlan {\n refId\n displayName\n }\n entitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n inheritedEntitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n packageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n inheritedPackageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n prices {\n ...MockPaywallPriceFragment\n }\n pricingType\n defaultTrialConfig {\n duration\n units\n budget {\n limit\n }\n trialEndBehavior\n }\n compatibleAddons {\n ...MockPaywallAddonFragment\n }\n compatiblePackageGroups {\n ...MockPaywallPlanCompatiblePackageGroupsFragment\n }\n}\n "],["\n fragment MockPaywallPlanFragment on PaywallPlan {\n refId\n description\n displayName\n billingId\n additionalMetaData\n product {\n refId\n displayName\n description\n additionalMetaData\n }\n basePlan {\n refId\n displayName\n }\n entitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n inheritedEntitlements {\n ...MockPaywallPackageEntitlementFragment\n }\n packageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n inheritedPackageEntitlements {\n ...PackageEntitlementUnionFragment\n }\n prices {\n ...MockPaywallPriceFragment\n }\n pricingType\n defaultTrialConfig {\n duration\n units\n budget {\n limit\n }\n trialEndBehavior\n }\n compatibleAddons {\n ...MockPaywallAddonFragment\n }\n compatiblePackageGroups {\n ...MockPaywallPlanCompatiblePackageGroupsFragment\n }\n}\n "]))),La=N(xr||(xr=_n(["\n fragment PaywallCurrencyFragment on PaywallCurrency {\n code\n symbol\n}\n "],["\n fragment PaywallCurrencyFragment on PaywallCurrency {\n code\n symbol\n}\n "]))),ja=N(Ur||(Ur=_n(["\n fragment LayoutConfigurationFragment on PaywallLayoutConfiguration {\n alignment\n planWidth\n planMargin\n planPadding\n}\n "],["\n fragment LayoutConfigurationFragment on PaywallLayoutConfiguration {\n alignment\n planWidth\n planMargin\n planPadding\n}\n "]))),Va=N(Mr||(Mr=_n(["\n fragment PaywallConfigurationFragment on PaywallConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n currentPlanBackground\n }\n typography {\n ...TypographyConfigurationFragment\n }\n layout {\n ...LayoutConfigurationFragment\n }\n customCss\n}\n "],["\n fragment PaywallConfigurationFragment on PaywallConfiguration {\n palette {\n primary\n textColor\n backgroundColor\n borderColor\n currentPlanBackground\n }\n typography {\n ...TypographyConfigurationFragment\n }\n layout {\n ...LayoutConfigurationFragment\n }\n customCss\n}\n "]))),Ba=N(Lr||(Lr=_n(["\n fragment PaywallCalculatedPricePointsFragment on PaywallPricePoint {\n planId\n additionalChargesMayApply\n billingPeriod\n amount\n currency\n billingCountryCode\n feature {\n refId\n featureUnits\n featureUnitsPlural\n displayName\n description\n }\n}\n "],["\n fragment PaywallCalculatedPricePointsFragment on PaywallPricePoint {\n planId\n additionalChargesMayApply\n billingPeriod\n amount\n currency\n billingCountryCode\n feature {\n refId\n featureUnits\n featureUnitsPlural\n displayName\n description\n }\n}\n "]))),Ga=N(jr||(jr=_n(["\n fragment PaywallFragment on Paywall {\n plans {\n ...PlanFragment\n }\n currency {\n ...PaywallCurrencyFragment\n }\n configuration {\n ...PaywallConfigurationFragment\n }\n customer {\n ...CustomerFragment\n }\n activeSubscriptions {\n ...SubscriptionFragment\n }\n resource {\n ...CustomerResourceFragment\n }\n paywallCalculatedPricePoints {\n ...PaywallCalculatedPricePointsFragment\n }\n}\n "],["\n fragment PaywallFragment on Paywall {\n plans {\n ...PlanFragment\n }\n currency {\n ...PaywallCurrencyFragment\n }\n configuration {\n ...PaywallConfigurationFragment\n }\n customer {\n ...CustomerFragment\n }\n activeSubscriptions {\n ...SubscriptionFragment\n }\n resource {\n ...CustomerResourceFragment\n }\n paywallCalculatedPricePoints {\n ...PaywallCalculatedPricePointsFragment\n }\n}\n "]))),qa=N(Vr||(Vr=_n(["\n fragment UsageHistoryFragment on UsageHistory {\n startDate\n endDate\n markers {\n type\n timestamp\n }\n usageMeasurements {\n date\n value\n isResetPoint\n }\n groups {\n groupInfo {\n key\n value\n }\n usageMeasurements {\n date\n value\n isResetPoint\n }\n }\n}\n "],["\n fragment UsageHistoryFragment on UsageHistory {\n startDate\n endDate\n markers {\n type\n timestamp\n }\n usageMeasurements {\n date\n value\n isResetPoint\n }\n groups {\n groupInfo {\n key\n value\n }\n usageMeasurements {\n date\n value\n isResetPoint\n }\n }\n}\n "]))),$a=N(Br||(Br=_n(["\n fragment UsageHistoryV2Fragment on UsageHistoryV2 {\n markers {\n type\n timestamp\n }\n series {\n tags {\n key\n value\n }\n points {\n timestamp\n value\n isResetPoint\n }\n }\n}\n "],["\n fragment UsageHistoryV2Fragment on UsageHistoryV2 {\n markers {\n type\n timestamp\n }\n series {\n tags {\n key\n value\n }\n points {\n timestamp\n value\n isResetPoint\n }\n }\n}\n "]))),Qa=N(Gr||(Gr=_n(["\n fragment SlimSubscriptionFragment on CustomerSubscription {\n id\n subscriptionId\n refId\n status\n additionalMetaData\n billingId\n billingLinkUrl\n effectiveEndDate\n cancellationDate\n currentBillingPeriodEnd\n pricingType\n latestInvoice {\n ...SubscriptionInvoiceFragment\n }\n paymentCollection\n billingSyncError\n resource {\n ...CustomerResourceFragment\n }\n experimentInfo {\n name\n id\n groupType\n groupName\n }\n prices {\n usageLimit\n price {\n ...PriceFragment\n }\n }\n totalPrice {\n ...TotalPriceFragment\n }\n plan {\n id\n refId\n }\n addons {\n quantity\n addon {\n id\n refId\n }\n }\n customer {\n id\n refId\n }\n}\n "],["\n fragment SlimSubscriptionFragment on CustomerSubscription {\n id\n subscriptionId\n refId\n status\n additionalMetaData\n billingId\n billingLinkUrl\n effectiveEndDate\n cancellationDate\n currentBillingPeriodEnd\n pricingType\n latestInvoice {\n ...SubscriptionInvoiceFragment\n }\n paymentCollection\n billingSyncError\n resource {\n ...CustomerResourceFragment\n }\n experimentInfo {\n name\n id\n groupType\n groupName\n }\n prices {\n usageLimit\n price {\n ...PriceFragment\n }\n }\n totalPrice {\n ...TotalPriceFragment\n }\n plan {\n id\n refId\n }\n addons {\n quantity\n addon {\n id\n refId\n }\n }\n customer {\n id\n refId\n }\n}\n "]))),Ha=N(qr||(qr=_n(["\n fragment ProvisionCustomerFragment on ProvisionedCustomer {\n customer {\n ...SlimCustomerFragment\n }\n subscriptionDecisionStrategy\n subscription {\n ...SlimSubscriptionFragment\n }\n entitlements {\n ...EntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n}\n "],["\n fragment ProvisionCustomerFragment on ProvisionedCustomer {\n customer {\n ...SlimCustomerFragment\n }\n subscriptionDecisionStrategy\n subscription {\n ...SlimSubscriptionFragment\n }\n entitlements {\n ...EntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n}\n "]))),za=N($r||($r=_n(["\n fragment ApplySubscriptionFragment on ApplySubscription {\n subscription {\n ...SubscriptionFragment\n }\n entitlements {\n ...EntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n}\n "],["\n fragment ApplySubscriptionFragment on ApplySubscription {\n subscription {\n ...SubscriptionFragment\n }\n entitlements {\n ...EntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n}\n "]))),Wa=N(Qr||(Qr=_n(["\n fragment ProvisionSubscriptionFragment on ProvisionSubscriptionResult {\n status\n checkoutUrl\n checkoutBillingId\n subscription {\n ...SlimSubscriptionFragment\n }\n entitlements {\n ...EntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n}\n "],["\n fragment ProvisionSubscriptionFragment on ProvisionSubscriptionResult {\n status\n checkoutUrl\n checkoutBillingId\n subscription {\n ...SlimSubscriptionFragment\n }\n entitlements {\n ...EntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n}\n "]))),Za=N(Hr||(Hr=_n(["\n fragment ReportUsageFragment on UsageMeasurementWithCurrentUsage {\n id\n featureId\n customerId\n resourceId\n currentUsage\n credit {\n currencyId\n currentUsage\n usagePeriodEnd\n timestamp\n consumed\n }\n usagePeriodStart\n usagePeriodEnd\n nextResetDate\n timestamp\n}\n "],["\n fragment ReportUsageFragment on UsageMeasurementWithCurrentUsage {\n id\n featureId\n customerId\n resourceId\n currentUsage\n credit {\n currencyId\n currentUsage\n usagePeriodEnd\n timestamp\n consumed\n }\n usagePeriodStart\n usagePeriodEnd\n nextResetDate\n timestamp\n}\n "]))),Ya=N(zr||(zr=_n(["\n fragment CreditConsumptionResponseFragment on CreditConsumptionResponse {\n customerId\n currencyId\n resourceId\n amount\n timestamp\n credit {\n currencyId\n currentUsage\n usageLimit\n usagePeriodEnd\n timestamp\n }\n}\n "],["\n fragment CreditConsumptionResponseFragment on CreditConsumptionResponse {\n customerId\n currencyId\n resourceId\n amount\n timestamp\n credit {\n currencyId\n currentUsage\n usageLimit\n usagePeriodEnd\n timestamp\n }\n}\n "]))),Ka=N(Wr||(Wr=_n(["\n fragment CreditGrantInvoiceFragment on CreditGrantInvoice {\n billingId\n status\n createdAt\n dueDate\n updatedAt\n errorMessage\n requiresAction\n paymentSecret\n paymentUrl\n pdfUrl\n billingReason\n currency\n subTotal\n subTotalExcludingTax\n total\n totalExcludingTax\n tax\n amountDue\n attemptCount\n}\n "],["\n fragment CreditGrantInvoiceFragment on CreditGrantInvoice {\n billingId\n status\n createdAt\n dueDate\n updatedAt\n errorMessage\n requiresAction\n paymentSecret\n paymentUrl\n pdfUrl\n billingReason\n currency\n subTotal\n subTotalExcludingTax\n total\n totalExcludingTax\n tax\n amountDue\n attemptCount\n}\n "]))),Ja=N(Zr||(Zr=_n(["\n fragment CreditGrantFragment on CreditGrant {\n grantId\n amount\n comment\n currencyId\n customerId\n displayName\n effectiveAt\n expireAt\n grantType\n priority\n consumedAmount\n cost {\n amount\n currency\n }\n createdAt\n updatedAt\n resourceId\n additionalMetaData\n automaticRechargeConfigurationId\n status\n voidedAt\n paymentCollection\n invoiceId\n latestInvoice {\n ...CreditGrantInvoiceFragment\n }\n}\n "],["\n fragment CreditGrantFragment on CreditGrant {\n grantId\n amount\n comment\n currencyId\n customerId\n displayName\n effectiveAt\n expireAt\n grantType\n priority\n consumedAmount\n cost {\n amount\n currency\n }\n createdAt\n updatedAt\n resourceId\n additionalMetaData\n automaticRechargeConfigurationId\n status\n voidedAt\n paymentCollection\n invoiceId\n latestInvoice {\n ...CreditGrantInvoiceFragment\n }\n}\n "]))),Xa=N(Yr||(Yr=_n(["\n fragment CreditLedgerFragment on CreditLedgerEvent {\n timestamp\n eventType\n customerId\n resourceId\n eventId\n featureId\n amount\n creditGrantId\n creditCurrencyId\n}\n "],["\n fragment CreditLedgerFragment on CreditLedgerEvent {\n timestamp\n eventType\n customerId\n resourceId\n eventId\n featureId\n amount\n creditGrantId\n creditCurrencyId\n}\n "]))),es=N(Kr||(Kr=_n(["\n fragment CreditBalanceFragment on CreditBalance {\n customerId\n currency {\n currencyId\n displayName\n symbol\n units {\n singular\n plural\n }\n }\n currentBalance\n totalConsumed\n totalGranted\n resourceId\n validUntil\n}\n "],["\n fragment CreditBalanceFragment on CreditBalance {\n customerId\n currency {\n currencyId\n displayName\n symbol\n units {\n singular\n plural\n }\n }\n currentBalance\n totalConsumed\n totalGranted\n resourceId\n validUntil\n}\n "]))),ts=N(Jr||(Jr=_n(["\n fragment CreditsBalanceSummaryFragment on CreditBalanceSummary {\n customerId\n balances {\n ...CreditBalanceFragment\n }\n}\n "],["\n fragment CreditsBalanceSummaryFragment on CreditBalanceSummary {\n customerId\n balances {\n ...CreditBalanceFragment\n }\n}\n "]))),ns=N(Xr||(Xr=_n(["\n fragment PaymentSessionFragment on PaymentSession {\n token\n}\n "],["\n fragment PaymentSessionFragment on PaymentSession {\n token\n}\n "]))),rs=N(ei||(ei=_n(["\n fragment SlimCustomCurrencyFragment on SlimCustomCurrency {\n currencyId\n displayName\n units {\n singular\n plural\n }\n}\n "],["\n fragment SlimCustomCurrencyFragment on SlimCustomCurrency {\n currencyId\n displayName\n units {\n singular\n plural\n }\n}\n "]))),is=N(ti||(ti=_n(["\n fragment PageInfoFragment on PageInfo {\n startCursor\n endCursor\n hasNextPage\n hasPreviousPage\n}\n "],["\n fragment PageInfoFragment on PageInfo {\n startCursor\n endCursor\n hasNextPage\n hasPreviousPage\n}\n "]))),os=N(ni||(ni=_n(["\n fragment CreditUsageFragment on CreditUsage {\n series {\n featureId\n featureName\n totalCredits\n points {\n timestamp\n value\n }\n }\n currency {\n ...SlimCustomCurrencyFragment\n }\n pageInfo {\n ...PageInfoFragment\n }\n}\n "],["\n fragment CreditUsageFragment on CreditUsage {\n series {\n featureId\n featureName\n totalCredits\n points {\n timestamp\n value\n }\n }\n currency {\n ...SlimCustomCurrencyFragment\n }\n pageInfo {\n ...PageInfoFragment\n }\n}\n "]))),as=N(ri||(ri=_n(["\n fragment AutoRechargeSettingsFragment on AutoRechargeSettingsDTO {\n customerId\n currencyId\n isEnabled\n thresholdType\n thresholdValue\n targetBalance\n maxSpendLimit\n grantExpirationPeriod\n currentMonthlySpend\n createdAt\n updatedAt\n}\n "],["\n fragment AutoRechargeSettingsFragment on AutoRechargeSettingsDTO {\n customerId\n currencyId\n isEnabled\n thresholdType\n thresholdValue\n targetBalance\n maxSpendLimit\n grantExpirationPeriod\n currentMonthlySpend\n createdAt\n updatedAt\n}\n "]))),ss=N(ii||(ii=_n(["\n fragment EntitlementsUpdatedV2Payload on EntitlementsUpdatedV2 {\n customerId\n resourceId\n accessDeniedReason\n entitlements {\n ...EntitlementUnionFragment\n }\n}\n "],["\n fragment EntitlementsUpdatedV2Payload on EntitlementsUpdatedV2 {\n customerId\n resourceId\n accessDeniedReason\n entitlements {\n ...EntitlementUnionFragment\n }\n}\n "]))),us=N(oi||(oi=_n(["\n fragment EntitlementReferenceFragment on EntitlementReference {\n id\n type\n}\n "],["\n fragment EntitlementReferenceFragment on EntitlementReference {\n id\n type\n}\n "]))),cs=N(ai||(ai=_n(["\n fragment UsageV2Fragment on UsageV2 {\n currentUsage\n usageUpdatedAt\n usagePeriodStart\n usagePeriodEnd\n}\n "],["\n fragment UsageV2Fragment on UsageV2 {\n currentUsage\n usageUpdatedAt\n usagePeriodStart\n usagePeriodEnd\n}\n "]))),ls=N(si||(si=_n(["\n fragment UsageUpdatedV2Payload on UsageUpdatedV2 {\n customerId\n resourceId\n entitlementReference {\n ...EntitlementReferenceFragment\n }\n usage {\n ...UsageV2Fragment\n }\n}\n "],["\n fragment UsageUpdatedV2Payload on UsageUpdatedV2 {\n customerId\n resourceId\n entitlementReference {\n ...EntitlementReferenceFragment\n }\n usage {\n ...UsageV2Fragment\n }\n}\n "]))),ps=N(ui||(ui=_n(["\n fragment CreditCostEstimationFragment on CreditCostEstimation {\n estimates {\n currencyId\n estimatedCost\n currentBalance\n balanceAfterEstimate\n wouldOverdraft\n breakdown {\n featureId\n cost\n warningCode\n }\n }\n warnings\n}\n "],["\n fragment CreditCostEstimationFragment on CreditCostEstimation {\n estimates {\n currencyId\n estimatedCost\n currentBalance\n balanceAfterEstimate\n wouldOverdraft\n breakdown {\n featureId\n cost\n warningCode\n }\n }\n warnings\n}\n "]))),ds=N(ci||(ci=_n(["\n mutation ProvisionCustomer($input: ProvisionCustomerInput!) {\n provisionCustomer(input: $input) {\n ...ProvisionCustomerFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n mutation ProvisionCustomer($input: ProvisionCustomerInput!) {\n provisionCustomer(input: $input) {\n ...ProvisionCustomerFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),Ha,Do,Qa,Ro,Fo,xo,ko,Uo,sa,oa,aa,Ea,va,ba),fs=N(li||(li=_n(["\n mutation ImportCustomerBulk($input: ImportCustomerBulkInput!) {\n importCustomersBulk(input: $input)\n}\n "],["\n mutation ImportCustomerBulk($input: ImportCustomerBulkInput!) {\n importCustomersBulk(input: $input)\n}\n "]))),hs=N(pi||(pi=_n(["\n mutation ImportCustomer($input: ImportCustomerInput!) {\n importCustomer: importOneCustomer(input: $input) {\n ...SlimCustomerFragment\n }\n}\n ",""],["\n mutation ImportCustomer($input: ImportCustomerInput!) {\n importCustomer: importOneCustomer(input: $input) {\n ...SlimCustomerFragment\n }\n}\n ",""])),Do),ms=N(di||(di=_n(["\n mutation UpdateCustomer($input: UpdateCustomerInput!) {\n updateCustomer: updateOneCustomer(input: $input) {\n ...SlimCustomerFragment\n }\n}\n ",""],["\n mutation UpdateCustomer($input: UpdateCustomerInput!) {\n updateCustomer: updateOneCustomer(input: $input) {\n ...SlimCustomerFragment\n }\n}\n ",""])),Do),gs=N(fi||(fi=_n(["\n mutation DetachCustomerPaymentMethod($input: DetachCustomerPaymentMethodInput!) {\n detachCustomerPaymentMethod(input: $input) {\n ...SlimCustomerFragment\n }\n}\n ",""],["\n mutation DetachCustomerPaymentMethod($input: DetachCustomerPaymentMethodInput!) {\n detachCustomerPaymentMethod(input: $input) {\n ...SlimCustomerFragment\n }\n}\n ",""])),Do),ys=N(hi||(hi=_n(["\n mutation GrantPromotionalEntitlements($input: GrantPromotionalEntitlementsInput!) {\n grantPromotionalEntitlements(input: $input) {\n ...PromotionalEntitlementFragment\n }\n}\n ",""],["\n mutation GrantPromotionalEntitlements($input: GrantPromotionalEntitlementsInput!) {\n grantPromotionalEntitlements(input: $input) {\n ...PromotionalEntitlementFragment\n }\n}\n ",""])),Oo),vs=N(mi||(mi=_n(["\n mutation RevokePromotionalEntitlement($input: RevokePromotionalEntitlementInput!) {\n revokePromotionalEntitlement(input: $input) {\n id\n }\n}\n "],["\n mutation RevokePromotionalEntitlement($input: RevokePromotionalEntitlementInput!) {\n revokePromotionalEntitlement(input: $input) {\n id\n }\n}\n "]))),bs=N(gi||(gi=_n(["\n mutation ProvisionSubscription($input: ProvisionSubscriptionInput!) {\n provisionSubscription: provisionSubscriptionV2(input: $input) {\n ...ProvisionSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n mutation ProvisionSubscription($input: ProvisionSubscriptionInput!) {\n provisionSubscription: provisionSubscriptionV2(input: $input) {\n ...ProvisionSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),Wa,Qa,Ro,Fo,xo,ko,Uo,sa,oa,aa,Ea,va,ba),Es=N(yi||(yi=_n(["\n mutation ApplySubscription($input: ApplySubscriptionInput!) {\n applySubscription(input: $input) {\n ...ApplySubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n mutation ApplySubscription($input: ApplySubscriptionInput!) {\n applySubscription(input: $input) {\n ...ApplySubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),za,Ko,Do,Ro,Fo,xo,ko,Uo,Ho,Mo,Lo,$o,Bo,jo,Vo,Go,qo,Qo,Wo,zo,Zo,Yo,sa,oa,aa,Ea,va,ba),_s=N(vi||(vi=_n(["\n mutation ImportSubscriptionsBulk($input: ImportSubscriptionsBulkInput!) {\n importSubscriptionsBulk(input: $input)\n}\n "],["\n mutation ImportSubscriptionsBulk($input: ImportSubscriptionsBulkInput!) {\n importSubscriptionsBulk(input: $input)\n}\n "]))),Is=N(bi||(bi=_n(["\n mutation UpdateSubscription($input: UpdateSubscriptionInput!) {\n updateSubscription: updateOneSubscription(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""],["\n mutation UpdateSubscription($input: UpdateSubscriptionInput!) {\n updateSubscription: updateOneSubscription(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""])),Qa,Ro,Fo,xo,ko,Uo),Ss=N(Ei||(Ei=_n(["\n mutation CancelSubscription($input: SubscriptionCancellationInput!) {\n cancelSubscription(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""],["\n mutation CancelSubscription($input: SubscriptionCancellationInput!) {\n cancelSubscription(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""])),Qa,Ro,Fo,xo,ko,Uo),Ts=N(_i||(_i=_n(["\n mutation EstimateSubscription($input: EstimateSubscriptionInput!) {\n estimateSubscription(input: $input) {\n ...SubscriptionPreviewFragment\n }\n}\n ",""],["\n mutation EstimateSubscription($input: EstimateSubscriptionInput!) {\n estimateSubscription(input: $input) {\n ...SubscriptionPreviewFragment\n }\n}\n ",""])),ea),Cs=N(Ii||(Ii=_n(["\n mutation EstimateSubscriptionUpdate($input: EstimateSubscriptionUpdateInput!) {\n estimateSubscriptionUpdate(input: $input) {\n ...SubscriptionPreviewFragment\n }\n}\n ",""],["\n mutation EstimateSubscriptionUpdate($input: EstimateSubscriptionUpdateInput!) {\n estimateSubscriptionUpdate(input: $input) {\n ...SubscriptionPreviewFragment\n }\n}\n ",""])),ea),ws=N(Si||(Si=_n(["\n mutation PreviewSubscription($input: PreviewSubscriptionInput!) {\n previewSubscription(input: $input) {\n ...SubscriptionPreviewV2Fragment\n }\n}\n ","\n","\n",""],["\n mutation PreviewSubscription($input: PreviewSubscriptionInput!) {\n previewSubscription(input: $input) {\n ...SubscriptionPreviewV2Fragment\n }\n}\n ","\n","\n",""])),ra,ta,na),Ps=N(Ti||(Ti=_n(["\n mutation PreviewNextInvoice($input: PreviewNextInvoiceInput!) {\n previewNextInvoice(input: $input) {\n ...SubscriptionInvoicePreviewFragment\n }\n}\n ","\n","\n",""],["\n mutation PreviewNextInvoice($input: PreviewNextInvoiceInput!) {\n previewNextInvoice(input: $input) {\n ...SubscriptionInvoicePreviewFragment\n }\n}\n ","\n","\n",""])),ia,xo,ko),Ds=N(Ci||(Ci=_n(["\n mutation CancelSubscriptionUpdates($input: SubscriptionUpdateScheduleCancellationInput!) {\n cancelSchedule(input: $input)\n}\n "],["\n mutation CancelSubscriptionUpdates($input: SubscriptionUpdateScheduleCancellationInput!) {\n cancelSchedule(input: $input)\n}\n "]))),As=N(wi||(wi=_n(["\n mutation ReportUsage($input: ReportUsageInput!) {\n reportUsage(input: $input) {\n ...ReportUsageFragment\n }\n}\n ",""],["\n mutation ReportUsage($input: ReportUsageInput!) {\n reportUsage(input: $input) {\n ...ReportUsageFragment\n }\n}\n ",""])),Za),Os=N(Pi||(Pi=_n(["\n mutation ReportUsageBulk($input: ReportUsageBulkInput!) {\n reportUsageBulk(input: $input) {\n ...ReportUsageFragment\n }\n}\n ",""],["\n mutation ReportUsageBulk($input: ReportUsageBulkInput!) {\n reportUsageBulk(input: $input) {\n ...ReportUsageFragment\n }\n}\n ",""])),Za),Ns=N(Di||(Di=_n(["\n mutation ConsumeCredits($input: ConsumeCreditInput!) {\n consumeCredits(input: $input) {\n ...CreditConsumptionResponseFragment\n }\n}\n ",""],["\n mutation ConsumeCredits($input: ConsumeCreditInput!) {\n consumeCredits(input: $input) {\n ...CreditConsumptionResponseFragment\n }\n}\n ",""])),Ya),Rs=N(Ai||(Ai=_n(["\n mutation ConsumeCreditsAsync($input: ConsumeCreditsAsyncInput!) {\n consumeCreditsAsync(input: $input)\n}\n "],["\n mutation ConsumeCreditsAsync($input: ConsumeCreditsAsyncInput!) {\n consumeCreditsAsync(input: $input)\n}\n "]))),Fs=N(Oi||(Oi=_n(["\n mutation ReportEvent($input: UsageEventsReportInput!) {\n reportEvent(events: $input)\n}\n "],["\n mutation ReportEvent($input: UsageEventsReportInput!) {\n reportEvent(events: $input)\n}\n "]))),ks=N(Ni||(Ni=_n(["\n mutation ReportEntitlementCheckRequested($entitlementCheckRequested: EntitlementCheckRequested!) {\n reportEntitlementCheckRequested(\n entitlementCheckRequested: $entitlementCheckRequested\n )\n}\n "],["\n mutation ReportEntitlementCheckRequested($entitlementCheckRequested: EntitlementCheckRequested!) {\n reportEntitlementCheckRequested(\n entitlementCheckRequested: $entitlementCheckRequested\n )\n}\n "]))),xs=N(Ri||(Ri=_n(["\n mutation CreateSubscription($input: SubscriptionInput!) {\n createSubscription(subscription: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""],["\n mutation CreateSubscription($input: SubscriptionInput!) {\n createSubscription(subscription: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""])),Qa,Ro,Fo,xo,ko,Uo),Us=N(Fi||(Fi=_n(["\n mutation MigrateSubscriptionToLatest($input: SubscriptionMigrationInput!) {\n migrateSubscriptionToLatest(input: $input) {\n subscriptionId\n }\n}\n "],["\n mutation MigrateSubscriptionToLatest($input: SubscriptionMigrationInput!) {\n migrateSubscriptionToLatest(input: $input) {\n subscriptionId\n }\n}\n "]))),Ms=N(ki||(ki=_n(["\n mutation ArchiveCustomer($input: ArchiveCustomerInput!) {\n archiveCustomer(input: $input) {\n customerId\n }\n}\n "],["\n mutation ArchiveCustomer($input: ArchiveCustomerInput!) {\n archiveCustomer(input: $input) {\n customerId\n }\n}\n "]))),Ls=N(xi||(xi=_n(["\n mutation UnarchiveCustomer($input: UnarchiveCustomerInput!) {\n unarchiveCustomer(input: $input) {\n ...SlimCustomerFragment\n }\n}\n ",""],["\n mutation UnarchiveCustomer($input: UnarchiveCustomerInput!) {\n unarchiveCustomer(input: $input) {\n ...SlimCustomerFragment\n }\n}\n ",""])),Do),js=N(Ui||(Ui=_n(["\n mutation TransferSubscription($input: TransferSubscriptionInput!) {\n transferSubscription(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""],["\n mutation TransferSubscription($input: TransferSubscriptionInput!) {\n transferSubscription(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""])),Qa,Ro,Fo,xo,ko,Uo),Vs=N(Mi||(Mi=_n(["\n mutation DelegateSubscriptionToCustomer($input: DelegateSubscriptionToCustomerInput!) {\n delegateSubscriptionToCustomer(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""],["\n mutation DelegateSubscriptionToCustomer($input: DelegateSubscriptionToCustomerInput!) {\n delegateSubscriptionToCustomer(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""])),Qa,Ro,Fo,xo,ko,Uo),Bs=N(Li||(Li=_n(["\n mutation TransferSubscriptionToResource($input: TransferSubscriptionToResourceInput!) {\n transferSubscriptionToResource(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""],["\n mutation TransferSubscriptionToResource($input: TransferSubscriptionToResourceInput!) {\n transferSubscriptionToResource(input: $input) {\n ...SlimSubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n",""])),Qa,Ro,Fo,xo,ko,Uo),Gs=N(ji||(ji=_n(["\n mutation GrantCredits($input: CreditGrantInput!) {\n createCreditGrant(input: $input) {\n ...CreditGrantFragment\n }\n}\n ","\n",""],["\n mutation GrantCredits($input: CreditGrantInput!) {\n createCreditGrant(input: $input) {\n ...CreditGrantFragment\n }\n}\n ","\n",""])),Ja,Ka),qs=N(Vi||(Vi=_n(["\n mutation GrantPromotionalEntitlementsGroup($input: GrantPromotionalEntitlementsGroupInput!) {\n grantPromotionalEntitlementsGroup(input: $input) {\n ...PromotionalEntitlementFragment\n }\n}\n ",""],["\n mutation GrantPromotionalEntitlementsGroup($input: GrantPromotionalEntitlementsGroupInput!) {\n grantPromotionalEntitlementsGroup(input: $input) {\n ...PromotionalEntitlementFragment\n }\n}\n ",""])),Oo),$s=N(Bi||(Bi=_n(["\n mutation RevokePromotionalEntitlementsGroup($input: RevokePromotionalEntitlementsGroupInput!) {\n revokePromotionalEntitlementsGroup(input: $input) {\n ...PromotionalEntitlementFragment\n }\n}\n ",""],["\n mutation RevokePromotionalEntitlementsGroup($input: RevokePromotionalEntitlementsGroupInput!) {\n revokePromotionalEntitlementsGroup(input: $input) {\n ...PromotionalEntitlementFragment\n }\n}\n ",""])),Oo),Qs=N(Gi||(Gi=_n(["\n mutation UnlinkPromotionalEntitlementsGroup($input: UnlinkPromotionalEntitlementsGroupInput!) {\n unlinkPromotionalEntitlementsGroup(input: $input) {\n ...PromotionalEntitlementFragment\n }\n}\n ",""],["\n mutation UnlinkPromotionalEntitlementsGroup($input: UnlinkPromotionalEntitlementsGroupInput!) {\n unlinkPromotionalEntitlementsGroup(input: $input) {\n ...PromotionalEntitlementFragment\n }\n}\n ",""])),Oo),Hs=N(qi||(qi=_n(["\n mutation CreatePaymentSession($input: PaymentSessionInput!) {\n createPaymentSession(input: $input) {\n ...PaymentSessionFragment\n }\n}\n ",""],["\n mutation CreatePaymentSession($input: PaymentSessionInput!) {\n createPaymentSession(input: $input) {\n ...PaymentSessionFragment\n }\n}\n ",""])),ns),zs=N($i||($i=_n(["\n mutation VoidCreditGrant($input: VoidCreditGrantInput!) {\n voidCreditGrant(input: $input) {\n ...CreditGrantFragment\n }\n}\n ","\n",""],["\n mutation VoidCreditGrant($input: VoidCreditGrantInput!) {\n voidCreditGrant(input: $input) {\n ...CreditGrantFragment\n }\n}\n ","\n",""])),Ja,Ka),Ws=N(Qi||(Qi=_n(["\n mutation CreateCoupon($input: CreateCouponInput!) {\n createOneCoupon(input: $input) {\n ...CouponFragment\n }\n}\n ",""],["\n mutation CreateCoupon($input: CreateCouponInput!) {\n createOneCoupon(input: $input) {\n ...CouponFragment\n }\n}\n ",""])),Ao),Zs=N(Hi||(Hi=_n(["\n mutation SaveAutomaticRechargeConfiguration($input: SaveAutoRechargeSettingsInput!) {\n saveAutoRechargeSettings(input: $input) {\n ...AutoRechargeSettingsFragment\n }\n}\n ",""],["\n mutation SaveAutomaticRechargeConfiguration($input: SaveAutoRechargeSettingsInput!) {\n saveAutoRechargeSettings(input: $input) {\n ...AutoRechargeSettingsFragment\n }\n}\n ",""])),as),Ys=N(zi||(zi=_n(["\n query GetCustomerById($input: GetCustomerByRefIdInput!) {\n getCustomerByRefId(input: $input) {\n ...CustomerWithSubscriptionsFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n query GetCustomerById($input: GetCustomerByRefIdInput!) {\n getCustomerByRefId(input: $input) {\n ...CustomerWithSubscriptionsFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),Jo,No,Do,Ao,Oo,Ko,Ro,Fo,xo,ko,Uo,Ho,Mo,Lo,$o,Bo,jo,Vo,Go,qo,Qo,Wo,zo,Zo,Yo),Ks=N(Wi||(Wi=_n(["\n query GetCustomerStatistics($input: GetCustomerByRefIdInput!) {\n getCustomerByRefId(input: $input) {\n ...CustomerStatisticsFragment\n }\n}\n ",""],["\n query GetCustomerStatistics($input: GetCustomerByRefIdInput!) {\n getCustomerByRefId(input: $input) {\n ...CustomerStatisticsFragment\n }\n}\n ",""])),Xo),Js=N(Zi||(Zi=_n(["\n query GetActiveSubscriptions($input: GetActiveSubscriptionsInput!) {\n getActiveSubscriptions(input: $input) {\n ...SubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n query GetActiveSubscriptions($input: GetActiveSubscriptionsInput!) {\n getActiveSubscriptions(input: $input) {\n ...SubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),Ko,Do,Ro,Fo,xo,ko,Uo,Ho,Mo,Lo,$o,Bo,jo,Vo,Go,qo,Qo,Wo,zo,Zo,Yo),Xs=N(Yi||(Yi=_n(["\n query GetActiveSubscriptionsList($input: GetActiveSubscriptionsInput!) {\n getActiveSubscriptions(input: $input) {\n ...SlimSubscriptionFragmentV2\n }\n}\n ",""],["\n query GetActiveSubscriptionsList($input: GetActiveSubscriptionsInput!) {\n getActiveSubscriptions(input: $input) {\n ...SlimSubscriptionFragmentV2\n }\n}\n ",""])),Po),eu=N(Ki||(Ki=_n(["\n query GetSubscriptions($filter: SubscriptionQueryFilter, $paging: CursorPaging, $sorting: [SubscriptionQuerySort!]) {\n subscriptions(filter: $filter, paging: $paging, sorting: $sorting) {\n edges {\n node {\n ...SubscriptionQueryFragment\n }\n }\n pageInfo {\n ...PageInfoFragment\n }\n }\n}\n ","\n",""],["\n query GetSubscriptions($filter: SubscriptionQueryFilter, $paging: CursorPaging, $sorting: [SubscriptionQuerySort!]) {\n subscriptions(filter: $filter, paging: $paging, sorting: $sorting) {\n edges {\n node {\n ...SubscriptionQueryFragment\n }\n }\n pageInfo {\n ...PageInfoFragment\n }\n }\n}\n ","\n",""])),wo,is),tu=N(Ji||(Ji=_n(["\n query GetSubscription($input: GetSubscriptionInput!) {\n getSubscription(input: $input) {\n ...SubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n query GetSubscription($input: GetSubscriptionInput!) {\n getSubscription(input: $input) {\n ...SubscriptionFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),Ko,Do,Ro,Fo,xo,ko,Uo,Ho,Mo,Lo,$o,Bo,jo,Vo,Go,qo,Qo,Wo,zo,Zo,Yo),nu=N(Xi||(Xi=_n(["\n query GetCoupons {\n coupons(filter: {status: {eq: ACTIVE}}, paging: {first: 25}) {\n edges {\n node {\n ...CouponFragment\n }\n }\n }\n}\n ",""],["\n query GetCoupons {\n coupons(filter: {status: {eq: ACTIVE}}, paging: {first: 25}) {\n edges {\n node {\n ...CouponFragment\n }\n }\n }\n}\n ",""])),Ao),ru=N(eo||(eo=_n(["\n query GetPaywall($input: GetPaywallInput!) {\n paywall(input: $input) {\n ...PaywallFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n query GetPaywall($input: GetPaywallInput!) {\n paywall(input: $input) {\n ...PaywallFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),Ga,Ho,Mo,Lo,$o,Bo,jo,Vo,xo,ko,Go,qo,Qo,La,Va,Ta,Sa,ja,No,Do,Ao,Oo,Ko,Ro,Fo,Uo,Wo,zo,Zo,Yo,Ba),iu=N(to||(to=_n(["\n query GetEntitlements($query: FetchEntitlementsQuery!) {\n entitlements: cachedEntitlements(query: $query) {\n ...EntitlementFragment\n }\n}\n ","\n","\n",""],["\n query GetEntitlements($query: FetchEntitlementsQuery!) {\n entitlements: cachedEntitlements(query: $query) {\n ...EntitlementFragment\n }\n}\n ","\n","\n",""])),sa,oa,aa),ou=N(no||(no=_n(["\n query GetEntitlementsState($query: FetchEntitlementsQuery!) {\n entitlementsState(query: $query) {\n __typename\n entitlements {\n ...EntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n accessDeniedReason\n }\n}\n ","\n","\n","\n","\n","\n",""],["\n query GetEntitlementsState($query: FetchEntitlementsQuery!) {\n entitlementsState(query: $query) {\n __typename\n entitlements {\n ...EntitlementFragment\n }\n entitlementsV2 {\n ...EntitlementUnionFragment\n }\n accessDeniedReason\n }\n}\n ","\n","\n","\n","\n","\n",""])),sa,oa,aa,Ea,va,ba),au=N(ro||(ro=_n(["\n query GetEntitlement($query: FetchEntitlementQuery!) {\n entitlement(query: $query) {\n ...EntitlementFragment\n }\n}\n ","\n","\n",""],["\n query GetEntitlement($query: FetchEntitlementQuery!) {\n entitlement(query: $query) {\n ...EntitlementFragment\n }\n}\n ","\n","\n",""])),sa,oa,aa),su=N(io||(io=_n(["\n query GetEntitlementV2($query: GetEntitlementV2Input!) {\n entitlementV2(query: $query) {\n ...EntitlementUnionFragment\n }\n}\n ","\n","\n","\n","\n",""],["\n query GetEntitlementV2($query: GetEntitlementV2Input!) {\n entitlementV2(query: $query) {\n ...EntitlementUnionFragment\n }\n}\n ","\n","\n","\n","\n",""])),Ea,va,oa,aa,ba),uu=N(oo||(oo=_n(["\n query GetProducts {\n products(paging: {first: 20}) {\n edges {\n node {\n ...ProductFragment\n }\n }\n }\n}\n ",""],["\n query GetProducts {\n products(paging: {first: 20}) {\n edges {\n node {\n ...ProductFragment\n }\n }\n }\n}\n ",""])),Mo),cu=N(ao||(ao=_n(["\n query GetSdkConfiguration {\n sdkConfiguration {\n sentryDsn\n isWidgetWatermarkEnabled\n showWatermark\n }\n}\n "],["\n query GetSdkConfiguration {\n sdkConfiguration {\n sentryDsn\n isWidgetWatermarkEnabled\n showWatermark\n }\n}\n "]))),lu=N(so||(so=_n(["\n query GetCustomerPortalByRefId($input: CustomerPortalInput!) {\n customerPortal(input: $input) {\n ...CustomerPortalFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n query GetCustomerPortalByRefId($input: CustomerPortalInput!) {\n customerPortal(input: $input) {\n ...CustomerPortalFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),wa,ga,fa,ha,ma,zo,ya,oa,aa,Ea,va,ba,_a,Ia,Ca,Ta,Sa,Fo),pu=N(uo||(uo=_n(["\n query GetCheckoutState($input: CheckoutStateInput!) {\n checkoutState(input: $input) {\n ...CheckoutStateFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n query GetCheckoutState($input: CheckoutStateInput!) {\n checkoutState(input: $input) {\n ...CheckoutStateFragment\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),Na,Pa,Ta,Sa,No,Do,Ao,Oo,Ko,Ro,Fo,xo,ko,Uo,Ho,Mo,Lo,$o,Bo,jo,Vo,Go,qo,Qo,Wo,zo,Zo,Yo,Da,Aa,Oa),du=N(co||(co=_n(["\n query GetMockPaywall($input: GetPaywallInput!) {\n mockPaywall(input: $input) {\n plans {\n ...MockPaywallPlanFragment\n }\n configuration {\n ...PaywallConfigurationFragment\n }\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""],["\n query GetMockPaywall($input: GetPaywallInput!) {\n mockPaywall(input: $input) {\n plans {\n ...MockPaywallPlanFragment\n }\n configuration {\n ...PaywallConfigurationFragment\n }\n }\n}\n ","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n",""])),Ma,Ra,Bo,jo,Vo,Fa,ko,xa,ka,Ua,Va,Ta,Sa,ja),fu=N(lo||(lo=_n(["\n query GetUsageHistory($usageHistoryInput: UsageHistoryInput!) {\n usageHistory(usageHistoryInput: $usageHistoryInput) {\n ...UsageHistoryFragment\n }\n}\n ",""],["\n query GetUsageHistory($usageHistoryInput: UsageHistoryInput!) {\n usageHistory(usageHistoryInput: $usageHistoryInput) {\n ...UsageHistoryFragment\n }\n}\n ",""])),qa),hu=N(po||(po=_n(["\n query GetUsageHistoryV2($input: UsageHistoryV2Input!) {\n usageHistoryV2(input: $input) {\n ...UsageHistoryV2Fragment\n }\n}\n ",""],["\n query GetUsageHistoryV2($input: UsageHistoryV2Input!) {\n usageHistoryV2(input: $input) {\n ...UsageHistoryV2Fragment\n }\n}\n ",""])),$a),mu=N(fo||(fo=_n(["\n query GetCreditBalance($input: CreditBalanceSummaryInput!) {\n creditBalanceSummary(input: $input) {\n ...CreditsBalanceSummaryFragment\n }\n}\n ","\n",""],["\n query GetCreditBalance($input: CreditBalanceSummaryInput!) {\n creditBalanceSummary(input: $input) {\n ...CreditsBalanceSummaryFragment\n }\n}\n ","\n",""])),ts,es),gu=N(ho||(ho=_n(["\n query GetCreditGrants($input: GetCreditGrantsInput!) {\n creditGrants(input: $input) {\n pageInfo {\n ...PageInfoFragment\n }\n edges {\n node {\n ...CreditGrantFragment\n }\n }\n totalCount\n }\n}\n ","\n","\n",""],["\n query GetCreditGrants($input: GetCreditGrantsInput!) {\n creditGrants(input: $input) {\n pageInfo {\n ...PageInfoFragment\n }\n edges {\n node {\n ...CreditGrantFragment\n }\n }\n totalCount\n }\n}\n ","\n","\n",""])),is,Ja,Ka),yu=N(mo||(mo=_n(["\n query GetCreditLedger($input: CreditLedgerInput!) {\n creditsLedger(input: $input) {\n pageInfo {\n ...PageInfoFragment\n }\n edges {\n node {\n ...CreditLedgerFragment\n }\n cursor\n }\n totalCount\n }\n}\n ","\n",""],["\n query GetCreditLedger($input: CreditLedgerInput!) {\n creditsLedger(input: $input) {\n pageInfo {\n ...PageInfoFragment\n }\n edges {\n node {\n ...CreditLedgerFragment\n }\n cursor\n }\n totalCount\n }\n}\n ","\n",""])),is,Xa),vu=N(go||(go=_n(["\n query GetCreditUsage($input: CreditUsageInput!) {\n creditUsage(input: $input) {\n ...CreditUsageFragment\n }\n}\n ","\n","\n",""],["\n query GetCreditUsage($input: CreditUsageInput!) {\n creditUsage(input: $input) {\n ...CreditUsageFragment\n }\n}\n ","\n","\n",""])),os,rs,is),bu=N(yo||(yo=_n(["\n query GetAutomaticRechargeConfiguration($input: GetAutoRechargeSettingsInput!) {\n getAutoRechargeSettings(input: $input) {\n ...AutoRechargeSettingsFragment\n }\n}\n ",""],["\n query GetAutomaticRechargeConfiguration($input: GetAutoRechargeSettingsInput!) {\n getAutoRechargeSettings(input: $input) {\n ...AutoRechargeSettingsFragment\n }\n}\n ",""])),as),Eu=N(vo||(vo=_n(["\n query EstimateEventCost($input: EstimateEventCostInput!) {\n estimateEventCost(input: $input) {\n ...CreditCostEstimationFragment\n }\n}\n ",""],["\n query EstimateEventCost($input: EstimateEventCostInput!) {\n estimateEventCost(input: $input) {\n ...CreditCostEstimationFragment\n }\n}\n ",""])),ps),_u=N(bo||(bo=_n(["\n query EstimateUsageCost($input: EstimateUsageCostInput!) {\n estimateUsageCost(input: $input) {\n ...CreditCostEstimationFragment\n }\n}\n ",""],["\n query EstimateUsageCost($input: EstimateUsageCostInput!) {\n estimateUsageCost(input: $input) {\n ...CreditCostEstimationFragment\n }\n}\n ",""])),ps),Iu=N(Eo||(Eo=_n(["\n subscription OnEntitlementsUpdated {\n entitlementsUpdated {\n ...EntitlementsUpdatedPayload\n }\n}\n ","\n","\n","\n",""],["\n subscription OnEntitlementsUpdated {\n entitlementsUpdated {\n ...EntitlementsUpdatedPayload\n }\n}\n ","\n","\n","\n",""])),ua,sa,oa,aa),Su=N(_o||(_o=_n(["\n subscription OnEntitlementsUpdatedV2 {\n entitlementsUpdatedV2 {\n ...EntitlementsUpdatedV2Payload\n }\n}\n ","\n","\n","\n","\n","\n",""],["\n subscription OnEntitlementsUpdatedV2 {\n entitlementsUpdatedV2 {\n ...EntitlementsUpdatedV2Payload\n }\n}\n ","\n","\n","\n","\n","\n",""])),ss,Ea,va,oa,aa,ba),Tu=N(Io||(Io=_n(["\n subscription OnUsageUpdated {\n usageUpdated {\n ...EntitlementUsageUpdated\n }\n}\n ","\n","\n","\n","\n",""],["\n subscription OnUsageUpdated {\n usageUpdated {\n ...EntitlementUsageUpdated\n }\n}\n ","\n","\n","\n","\n",""])),la,ca,sa,oa,aa),Cu=N(So||(So=_n(["\n subscription OnUsageUpdatedV2 {\n usageUpdatedV2 {\n ...UsageUpdatedV2Payload\n }\n}\n ","\n","\n",""],["\n subscription OnUsageUpdatedV2 {\n usageUpdatedV2 {\n ...UsageUpdatedV2Payload\n }\n}\n ","\n","\n",""])),ls,us,cs),wu=N(To||(To=_n(["\n subscription OnPackagePublished {\n packagePublished {\n ...PackagePublishedPayload\n }\n}\n ",""],["\n subscription OnPackagePublished {\n packagePublished {\n ...PackagePublishedPayload\n }\n}\n ",""])),pa),Pu=N(Co||(Co=_n(["\n subscription OnCreditBalanceUpdated {\n creditBalanceUpdated {\n ...CreditBalanceUpdatedPayload\n }\n}\n ",""],["\n subscription OnCreditBalanceUpdated {\n creditBalanceUpdated {\n ...CreditBalanceUpdatedPayload\n }\n}\n ",""])),da),Du=function(e,t,n){return e()};function Au(e,t){return void 0===t&&(t=Du),{ProvisionCustomer:function(n,r){return t(function(t){return e.request(ds,n,In(In({},r),t))},"ProvisionCustomer","mutation")},ImportCustomerBulk:function(n,r){return t(function(t){return e.request(fs,n,In(In({},r),t))},"ImportCustomerBulk","mutation")},ImportCustomer:function(n,r){return t(function(t){return e.request(hs,n,In(In({},r),t))},"ImportCustomer","mutation")},UpdateCustomer:function(n,r){return t(function(t){return e.request(ms,n,In(In({},r),t))},"UpdateCustomer","mutation")},DetachCustomerPaymentMethod:function(n,r){return t(function(t){return e.request(gs,n,In(In({},r),t))},"DetachCustomerPaymentMethod","mutation")},GrantPromotionalEntitlements:function(n,r){return t(function(t){return e.request(ys,n,In(In({},r),t))},"GrantPromotionalEntitlements","mutation")},RevokePromotionalEntitlement:function(n,r){return t(function(t){return e.request(vs,n,In(In({},r),t))},"RevokePromotionalEntitlement","mutation")},ProvisionSubscription:function(n,r){return t(function(t){return e.request(bs,n,In(In({},r),t))},"ProvisionSubscription","mutation")},ApplySubscription:function(n,r){return t(function(t){return e.request(Es,n,In(In({},r),t))},"ApplySubscription","mutation")},ImportSubscriptionsBulk:function(n,r){return t(function(t){return e.request(_s,n,In(In({},r),t))},"ImportSubscriptionsBulk","mutation")},UpdateSubscription:function(n,r){return t(function(t){return e.request(Is,n,In(In({},r),t))},"UpdateSubscription","mutation")},CancelSubscription:function(n,r){return t(function(t){return e.request(Ss,n,In(In({},r),t))},"CancelSubscription","mutation")},EstimateSubscription:function(n,r){return t(function(t){return e.request(Ts,n,In(In({},r),t))},"EstimateSubscription","mutation")},EstimateSubscriptionUpdate:function(n,r){return t(function(t){return e.request(Cs,n,In(In({},r),t))},"EstimateSubscriptionUpdate","mutation")},PreviewSubscription:function(n,r){return t(function(t){return e.request(ws,n,In(In({},r),t))},"PreviewSubscription","mutation")},PreviewNextInvoice:function(n,r){return t(function(t){return e.request(Ps,n,In(In({},r),t))},"PreviewNextInvoice","mutation")},CancelSubscriptionUpdates:function(n,r){return t(function(t){return e.request(Ds,n,In(In({},r),t))},"CancelSubscriptionUpdates","mutation")},ReportUsage:function(n,r){return t(function(t){return e.request(As,n,In(In({},r),t))},"ReportUsage","mutation")},ReportUsageBulk:function(n,r){return t(function(t){return e.request(Os,n,In(In({},r),t))},"ReportUsageBulk","mutation")},ConsumeCredits:function(n,r){return t(function(t){return e.request(Ns,n,In(In({},r),t))},"ConsumeCredits","mutation")},ConsumeCreditsAsync:function(n,r){return t(function(t){return e.request(Rs,n,In(In({},r),t))},"ConsumeCreditsAsync","mutation")},ReportEvent:function(n,r){return t(function(t){return e.request(Fs,n,In(In({},r),t))},"ReportEvent","mutation")},ReportEntitlementCheckRequested:function(n,r){return t(function(t){return e.request(ks,n,In(In({},r),t))},"ReportEntitlementCheckRequested","mutation")},CreateSubscription:function(n,r){return t(function(t){return e.request(xs,n,In(In({},r),t))},"CreateSubscription","mutation")},MigrateSubscriptionToLatest:function(n,r){return t(function(t){return e.request(Us,n,In(In({},r),t))},"MigrateSubscriptionToLatest","mutation")},ArchiveCustomer:function(n,r){return t(function(t){return e.request(Ms,n,In(In({},r),t))},"ArchiveCustomer","mutation")},UnarchiveCustomer:function(n,r){return t(function(t){return e.request(Ls,n,In(In({},r),t))},"UnarchiveCustomer","mutation")},TransferSubscription:function(n,r){return t(function(t){return e.request(js,n,In(In({},r),t))},"TransferSubscription","mutation")},DelegateSubscriptionToCustomer:function(n,r){return t(function(t){return e.request(Vs,n,In(In({},r),t))},"DelegateSubscriptionToCustomer","mutation")},TransferSubscriptionToResource:function(n,r){return t(function(t){return e.request(Bs,n,In(In({},r),t))},"TransferSubscriptionToResource","mutation")},GrantCredits:function(n,r){return t(function(t){return e.request(Gs,n,In(In({},r),t))},"GrantCredits","mutation")},GrantPromotionalEntitlementsGroup:function(n,r){return t(function(t){return e.request(qs,n,In(In({},r),t))},"GrantPromotionalEntitlementsGroup","mutation")},RevokePromotionalEntitlementsGroup:function(n,r){return t(function(t){return e.request($s,n,In(In({},r),t))},"RevokePromotionalEntitlementsGroup","mutation")},UnlinkPromotionalEntitlementsGroup:function(n,r){return t(function(t){return e.request(Qs,n,In(In({},r),t))},"UnlinkPromotionalEntitlementsGroup","mutation")},CreatePaymentSession:function(n,r){return t(function(t){return e.request(Hs,n,In(In({},r),t))},"CreatePaymentSession","mutation")},VoidCreditGrant:function(n,r){return t(function(t){return e.request(zs,n,In(In({},r),t))},"VoidCreditGrant","mutation")},CreateCoupon:function(n,r){return t(function(t){return e.request(Ws,n,In(In({},r),t))},"CreateCoupon","mutation")},SaveAutomaticRechargeConfiguration:function(n,r){return t(function(t){return e.request(Zs,n,In(In({},r),t))},"SaveAutomaticRechargeConfiguration","mutation")},GetCustomerById:function(n,r){return t(function(t){return e.request(Ys,n,In(In({},r),t))},"GetCustomerById","query")},GetCustomerStatistics:function(n,r){return t(function(t){return e.request(Ks,n,In(In({},r),t))},"GetCustomerStatistics","query")},GetActiveSubscriptions:function(n,r){return t(function(t){return e.request(Js,n,In(In({},r),t))},"GetActiveSubscriptions","query")},GetActiveSubscriptionsList:function(n,r){return t(function(t){return e.request(Xs,n,In(In({},r),t))},"GetActiveSubscriptionsList","query")},GetSubscriptions:function(n,r){return t(function(t){return e.request(eu,n,In(In({},r),t))},"GetSubscriptions","query")},GetSubscription:function(n,r){return t(function(t){return e.request(tu,n,In(In({},r),t))},"GetSubscription","query")},GetCoupons:function(n,r){return t(function(t){return e.request(nu,n,In(In({},r),t))},"GetCoupons","query")},GetPaywall:function(n,r){return t(function(t){return e.request(ru,n,In(In({},r),t))},"GetPaywall","query")},GetEntitlements:function(n,r){return t(function(t){return e.request(iu,n,In(In({},r),t))},"GetEntitlements","query")},GetEntitlementsState:function(n,r){return t(function(t){return e.request(ou,n,In(In({},r),t))},"GetEntitlementsState","query")},GetEntitlement:function(n,r){return t(function(t){return e.request(au,n,In(In({},r),t))},"GetEntitlement","query")},GetEntitlementV2:function(n,r){return t(function(t){return e.request(su,n,In(In({},r),t))},"GetEntitlementV2","query")},GetProducts:function(n,r){return t(function(t){return e.request(uu,n,In(In({},r),t))},"GetProducts","query")},GetSdkConfiguration:function(n,r){return t(function(t){return e.request(cu,n,In(In({},r),t))},"GetSdkConfiguration","query")},GetCustomerPortalByRefId:function(n,r){return t(function(t){return e.request(lu,n,In(In({},r),t))},"GetCustomerPortalByRefId","query")},GetCheckoutState:function(n,r){return t(function(t){return e.request(pu,n,In(In({},r),t))},"GetCheckoutState","query")},GetMockPaywall:function(n,r){return t(function(t){return e.request(du,n,In(In({},r),t))},"GetMockPaywall","query")},GetUsageHistory:function(n,r){return t(function(t){return e.request(fu,n,In(In({},r),t))},"GetUsageHistory","query")},GetUsageHistoryV2:function(n,r){return t(function(t){return e.request(hu,n,In(In({},r),t))},"GetUsageHistoryV2","query")},GetCreditBalance:function(n,r){return t(function(t){return e.request(mu,n,In(In({},r),t))},"GetCreditBalance","query")},GetCreditGrants:function(n,r){return t(function(t){return e.request(gu,n,In(In({},r),t))},"GetCreditGrants","query")},GetCreditLedger:function(n,r){return t(function(t){return e.request(yu,n,In(In({},r),t))},"GetCreditLedger","query")},GetCreditUsage:function(n,r){return t(function(t){return e.request(vu,n,In(In({},r),t))},"GetCreditUsage","query")},GetAutomaticRechargeConfiguration:function(n,r){return t(function(t){return e.request(bu,n,In(In({},r),t))},"GetAutomaticRechargeConfiguration","query")},EstimateEventCost:function(n,r){return t(function(t){return e.request(Eu,n,In(In({},r),t))},"EstimateEventCost","query")},EstimateUsageCost:function(n,r){return t(function(t){return e.request(_u,n,In(In({},r),t))},"EstimateUsageCost","query")},OnEntitlementsUpdated:function(n,r){return t(function(t){return e.request(Iu,n,In(In({},r),t))},"OnEntitlementsUpdated","subscription")},OnEntitlementsUpdatedV2:function(n,r){return t(function(t){return e.request(Su,n,In(In({},r),t))},"OnEntitlementsUpdatedV2","subscription")},OnUsageUpdated:function(n,r){return t(function(t){return e.request(Tu,n,In(In({},r),t))},"OnUsageUpdated","subscription")},OnUsageUpdatedV2:function(n,r){return t(function(t){return e.request(Cu,n,In(In({},r),t))},"OnUsageUpdatedV2","subscription")},OnPackagePublished:function(n,r){return t(function(t){return e.request(wu,n,In(In({},r),t))},"OnPackagePublished","subscription")},OnCreditBalanceUpdated:function(n,r){return t(function(t){return e.request(Pu,n,In(In({},r),t))},"OnCreditBalanceUpdated","subscription")}}}var Ou=n(6647),Nu={createClient:function(e){var t=e.apiUrl,n=void 0===t?"https://api.stigg.io/graphql":t;return Au(new Ou.GraphQLClient(n,{headers:{"X-API-KEY":e.apiKey}}),function(e,t,n){return e({"x-graphql-operation-name":t})})}};function Ru(e){return"FeatureEntitlement"===e.__typename}function Fu(e){return"CreditEntitlement"===e.__typename}function ku(e){return"FeatureEntitlementWithSummary"===(null==e?void 0:e.__typename)}function xu(e){return"CreditEntitlementWithSummary"===(null==e?void 0:e.__typename)}var Uu,Mu=n(1886),Lu=n.n(Mu);!function(e){e.ALL="ALL",e.NONE="NONE",e.LOG="LOG",e.ERROR="ERROR"}(Uu||(Uu={}));var ju=function(){function e(e,t){this.logger=e,this.logLevel=t}return e.prototype.error=function(e,t){this.logLevel!==Uu.NONE&&this.logger.error("[Stigg] ".concat(e),t||{})},e.prototype.log=function(e,t){Lu()([Uu.ERROR,Uu.NONE],this.logLevel)||this.logger.log("[Stigg] ".concat(e),t||{})},e.prototype.debug=function(e,t){Lu()([Uu.LOG,Uu.ALL],this.logLevel)&&this.logger.debug("[Stigg] ".concat(e),t||{})},e}(),Vu=Ft.JsClientSdk,Bu="js-client-sdk",Gu=["localhost","127.0.0.1","::1"],qu=function(){var e="https://api.stigg.io";return{baseUri:e,baseEdgeUri:Hu(e),logConfiguration:{logger:console,logLevel:Uu.ERROR},enableEdge:!0,cacheTtlMs:3e4}};function $u(e,t){if(p()(e.apiKey)&&!e.offline){var n="You must configure the client with an SDK key";throw t.error(n),new Error(n)}}function Qu(e){var t=qu(),n=e.baseEdgeUri?e.baseEdgeUri:e.baseUri?Hu(e.baseUri):t.baseEdgeUri,r=e.cacheTtlMs||e.entitlementPollingInterval;return f()(t,e,{baseEdgeUri:n,cacheTtlMs:r})}function Hu(e){var t=new URL(e);return Gu.includes(t.hostname)?t.port="3060":t.hostname="edge.".concat(t.hostname),t.toString().slice(0,-1)}function zu(e){var t=e.customerId;if(!t||p()(t))throw new Error("You must set customer ID first, use setCustomerId function or pass it via the constructor");return t}var Wu=n(6635);const Zu=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getSdkConfiguration=function(){return this.edgeApiClient?this.edgeApiClient.getSdkConfiguration():this.client.query({query:cu})},e}();var Yu=function(){return Yu=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},Yu.apply(this,arguments)},Ku=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getPaywall=function(e){var t=e.productId,n=e.customerId,r=e.resourceId,i=e.context,o=e.billingCountryCode,a=e.includeHiddenPlans;return!n&&this.edgeApiClient?this.edgeApiClient.getPaywall(t,o,a):this.client.query({query:ru,fetchPolicy:"no-cache",variables:{input:Yu(Yu(Yu(Yu(Yu(Yu({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{resourceId:r}:{}),i?{context:i}:{}),o?{billingCountryCode:o}:{}),a?{includeHiddenPlans:a}:{})}})},e}();const Ju=Ku;var Xu=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})},ec=function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};const tc=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getCustomer=function(e){return this.client.query({query:Ys,variables:{input:{customerId:e}},fetchPolicy:"no-cache"})},e.prototype.getActiveSubscriptions=function(e,t){return Xu(this,void 0,void 0,function(){return ec(this,function(n){return[2,this.client.query({query:Js,variables:{input:(0,Wu.isArray)(t)?{customerId:e,resourceIds:t}:{customerId:e,resourceId:t}},fetchPolicy:"no-cache"})]})})},e.prototype.getActiveSubscriptionsList=function(e,t){return Xu(this,void 0,void 0,function(){return ec(this,function(n){return this.edgeApiClient?[2,this.edgeApiClient.getActiveSubscriptionsList(e,t)]:[2,this.client.query({query:Xs,variables:{input:(0,Wu.isArray)(t)?{customerId:e,resourceIds:t}:{customerId:e,resourceId:t}},fetchPolicy:"no-cache"})]})})},e.prototype.getSubscription=function(e){return Xu(this,void 0,void 0,function(){return ec(this,function(t){return[2,this.client.query({query:tu,variables:{input:{subscriptionId:e}},fetchPolicy:"no-cache"})]})})},e.prototype.getCustomerPortal=function(e,t,n){return this.client.query({query:lu,variables:{input:{customerId:e,resourceId:t,productId:n}},fetchPolicy:"no-cache"})},e.prototype.fetchUsageHistory=function(e){return Xu(this,arguments,void 0,function(e){var t=e.customerId,n=e.resourceId,r=e.endDate,i=e.startDate,o=e.featureId;return ec(this,function(e){return[2,this.client.query({query:fu,variables:{usageHistoryInput:{customerRefId:t,featureRefId:o,resourceRefId:n,startDate:i,endDate:r||new Date}},fetchPolicy:"no-cache"})]})})},e}(),nc=function(){function e(e){this.client=e}return e.prototype.getCoupons=function(){return this.client.query({query:nu,fetchPolicy:"no-cache"})},e}();var rc=function(){return rc=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},rc.apply(this,arguments)},ic=function(){function e(e){this.client=e}return e.prototype.applySubscription=function(e){var t=e.customerId,n=e.payingCustomerId,r=e.planId,i=e.paymentMethodId,o=e.addons,a=e.billableFeatures,s=e.billingInformation,u=e.billingCountryCode,c=e.billingId,l=e.billingPeriod,p=e.metadata,d=e.promotionCode,f=e.resourceId,h=e.skipTrial,m=e.startDate,g=e.unitQuantity,y=e.scheduleStrategy,v=e.billingCycleAnchor;return this.client.mutate({mutation:Es,variables:{input:{customerId:t,payingCustomerId:n,planId:r,paymentMethodId:i,startDate:m,addons:o,billingId:c,billingPeriod:l,unitQuantity:g,billableFeatures:a,additionalMetaData:p,resourceId:f,skipTrial:h,promotionCode:d,billingInformation:this.mapBillingInformation(s),billingCountryCode:u,scheduleStrategy:y,billingCycleAnchor:v}}})},e.prototype.getSubscriptions=function(e,t,n,r){return i=this,o=arguments,s=function(e,t,n,r,i){return void 0===i&&(i={limit:10}),function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,function(o){return[2,this.client.query({query:eu,variables:rc({filter:rc(rc(rc(rc({},e?{customerId:{eq:e}}:{}),t?{resourceId:(0,Wu.isArray)(t)?{in:t}:{eq:t}}:{}),n?{status:(0,Wu.isArray)(n)?{in:n}:{eq:n}}:{}),r?{productId:(0,Wu.isArray)(r)?{in:r}:{eq:r}}:{})},i?{paging:rc({},i.startingAfter?{first:i.limit,after:i.startingAfter}:i.endingBefore?{last:i.limit,before:i.endingBefore}:{first:i.limit})}:{}),fetchPolicy:"no-cache"})]})},new((a=void 0)||(a=Promise))(function(e,t){function n(e){try{u(s.next(e))}catch(e){t(e)}}function r(e){try{u(s.throw(e))}catch(e){t(e)}}function u(t){var i;t.done?e(t.value):(i=t.value,i instanceof a?i:new a(function(e){e(i)})).then(n,r)}u((s=s.apply(i,o||[])).next())});var i,o,a,s},e.prototype.checkoutState=function(e){var t=e.customerId,n=e.resourceId,r=e.planId,i=e.billingCountryCode;return this.client.query({query:pu,fetchPolicy:"no-cache",variables:{input:rc(rc({planId:r,customerId:t},n?{resourceId:n}:{}),i?{billingCountryCode:i}:{})}})},e.prototype.mapBillingInformation=function(e){if(e)return{taxRateIds:null==e?void 0:e.taxRateIds,billingAddress:null==e?void 0:e.billingAddress,integrationId:null==e?void 0:e.integrationId,prorationBehavior:null==e?void 0:e.prorationBehavior,taxIds:null==e?void 0:e.taxIds}},e}();const oc=ic;var ac=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})},sc=function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},uc=function(){function e(e){this.client=e}return e.prototype.estimateSubscription=function(e){return ac(this,void 0,void 0,function(){var t,n;return sc(this,function(r){return[2,this.client.mutate({mutation:Ts,variables:{input:{resourceId:e.resourceId,planId:e.planId,customerId:e.customerId,payingCustomerId:e.payingCustomerId,startDate:e.startDate,addons:e.addons,billingPeriod:e.billingPeriod,priceUnitAmount:e.unitQuantity,billableFeatures:e.billableFeatures,billingInformation:{taxRateIds:null===(t=null==e?void 0:e.billingInformation)||void 0===t?void 0:t.taxRateIds,taxPercentage:null===(n=null==e?void 0:e.billingInformation)||void 0===n?void 0:n.taxPercentage},promotionCode:e.promotionCode,billingCountryCode:e.billingCountryCode,skipTrial:e.skipTrial}}})]})})},e.prototype.estimateSubscriptionUpdate=function(e){return ac(this,void 0,void 0,function(){return sc(this,function(t){return[2,this.client.mutate({mutation:Cs,variables:{input:{subscriptionId:e.subscriptionId,unitQuantity:e.unitQuantity,billableFeatures:e.billableFeatures,addons:e.addons,promotionCode:e.promotionCode}}})]})})},e.prototype.previewNextInvoice=function(e){return ac(this,void 0,void 0,function(){return sc(this,function(t){return[2,this.client.mutate({mutation:Ps,fetchPolicy:"no-cache",variables:{input:{subscriptionId:e.subscriptionId}}})]})})},e.prototype.previewSubscription=function(e){return ac(this,void 0,void 0,function(){return sc(this,function(t){return[2,this.client.mutate({mutation:ws,fetchPolicy:"no-cache",variables:{input:{planId:e.planId,customerId:e.customerId,payingCustomerId:e.payingCustomerId,resourceId:e.resourceId,startDate:e.startDate,addons:e.addons,billingPeriod:e.billingPeriod,billableFeatures:e.billableFeatures,promotionCode:e.promotionCode,scheduleStrategy:e.scheduleStrategy,billingCountryCode:e.billingCountryCode,billingInformation:null==e?void 0:e.billingInformation,billingCycleAnchor:e.billingCycleAnchor}}})]})})},e}();const cc=uc;var lc=function(){return lc=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},lc.apply(this,arguments)},pc=function(){function e(e){this.client=e}return e.prototype.getMockPaywall=function(e){var t=e.productId,n=e.customerId,r=e.context;return this.client.query({query:du,fetchPolicy:"no-cache",variables:{input:lc(lc(lc({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{context:r}:{})}})},e}();const dc=pc;var fc=function(){function e(e){this.client=e}return e.prototype.getUsageHistoryV2=function(e){return t=this,n=void 0,i=function(){return function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,function(t){return[2,this.client.query({query:hu,variables:{input:e},fetchPolicy:"no-cache"})]})},new((r=void 0)||(r=Promise))(function(e,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r(function(e){e(n)})).then(a,s)}u((i=i.apply(t,n||[])).next())});var t,n,r,i},e}(),hc=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})},mc=function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};const gc=function(){function e(e){this.client=e}return e.prototype.getCreditBalance=function(e){return hc(this,void 0,void 0,function(){return mc(this,function(t){return[2,this.client.query({query:mu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.getCreditGrants=function(e){return hc(this,void 0,void 0,function(){return mc(this,function(t){return[2,this.client.query({query:gu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.getCreditLedger=function(e){return hc(this,void 0,void 0,function(){return mc(this,function(t){return[2,this.client.query({query:yu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.getCreditUsage=function(e){return hc(this,void 0,void 0,function(){return mc(this,function(t){return[2,this.client.query({query:vu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.estimateEventCost=function(e){return hc(this,void 0,void 0,function(){return mc(this,function(t){return[2,this.client.query({query:Eu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.estimateUsageCost=function(e){return hc(this,void 0,void 0,function(){return mc(this,function(t){return[2,this.client.query({query:_u,variables:{input:e},fetchPolicy:"no-cache"})]})})},e}(),yc=function(){function e(e){this.client=e}return e.prototype.createPaymentSession=function(e){return this.client.mutate({mutation:Hs,variables:{input:e}})},e}();var vc=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})},bc=function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};const Ec=function(){function e(e){this.client=e}return e.prototype.getConfiguration=function(e){return vc(this,void 0,void 0,function(){return bc(this,function(t){return[2,this.client.query({query:bu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.saveConfiguration=function(e){return vc(this,void 0,void 0,function(){return bc(this,function(t){return[2,this.client.mutate({mutation:Zs,variables:{input:e}})]})})},e}(),_c=function(e,t){this.sdkConfiguration=new Zu(e,t),this.paywall=new Ju(e,t),this.subscriptions=new oc(e),this.mockPaywall=new dc(e),this.customers=new tc(e,t),this.coupons=new nc(e),this.subscriptionEstimations=new cc(e),this.usageHistoryApi=new fc(e),this.credits=new gc(e),this.checkout=new yc(e),this.automaticRecharge=new Ec(e)};var Ic="Invariant Violation",Sc=Object.setPrototypeOf,Tc=void 0===Sc?function(e,t){return e.__proto__=t,e}:Sc,Cc=function(e){function t(n){void 0===n&&(n=Ic);var r=e.call(this,"number"==typeof n?Ic+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=Ic,Tc(r,t.prototype),r}return m(t,e),t}(Error);function wc(e,t){if(!e)throw new Cc(t)}var Pc=["debug","log","warn","error","silent"],Dc=Pc.indexOf("log");function Ac(e){return function(){if(Pc.indexOf(e)>=Dc)return(console[e]||console.log).apply(console,arguments)}}function Oc(e){try{return e()}catch(e){}}!function(e){e.debug=Ac("debug"),e.log=Ac("log"),e.warn=Ac("warn"),e.error=Ac("error")}(wc||(wc={}));const Nc=Oc(function(){return globalThis})||Oc(function(){return window})||Oc(function(){return self})||Oc(function(){return n.g})||Oc(function(){return Function("return this")()});var Rc="__",Fc=[Rc,Rc].join("DEV");const kc=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(Nc,Fc,{value:"production"!==Oc(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),Nc[Fc]}}();function xc(e){try{return e()}catch(e){}}var Uc=xc(function(){return globalThis})||xc(function(){return window})||xc(function(){return self})||xc(function(){return n.g})||xc(function(){return xc.constructor("return this")()}),Mc=!1;function Lc(e){return Array.isArray(e)&&e.length>0}!Uc||xc(function(){return"production"})||xc(function(){return process})||(Object.defineProperty(Uc,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Mc=!0),n(4957).H,Mc&&(delete Uc.process,Mc=!1),__DEV__?wc("boolean"==typeof kc,kc):wc("boolean"==typeof kc,38);var jc=function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.clientErrors,s=n.networkError,u=n.errorMessage,c=n.extraInfo,l=e.call(this,u)||this;return l.graphQLErrors=o||[],l.clientErrors=a||[],l.networkError=s||null,l.message=u||(i="",(Lc((r=l).graphQLErrors)||Lc(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$/,"")),l.extraInfo=c,l.__proto__=t.prototype,l}return m(t,e),t}(Error),Vc=(n(3616),n(3591)),Bc=fetch,Gc=n.n(Vc)()(fetch,{retryOn:function(e,t,n){return!(e>5)&&(null!==t||!(null==n?void 0:n.status)||n.status>=500)},retryDelay:function(e){return 1e3*Math.pow(2,e)}}),qc=function(){function e(e,t){this.config=e,this.dynamicData=t}return e.create=function(t,n){return t.enableEdge?new e(t,n):null},e.prototype.getPaywall=function(e,t,n){var r=e?"/p/".concat(e):"",i=t?"billingCountryCode=".concat(t):"",o=n?"&includeHiddenPlans=".concat(n):"";return this.get("/v1".concat(r,"/paywall.json?").concat(i).concat(o))},e.prototype.getEntitlementsState=function(e,t){var n=t?"?resourceId=".concat(t):"";return this.get("/v1/c/".concat(e,"/entitlements-state.json").concat(n))},e.prototype.getActiveSubscriptionsList=function(e,t){var n=new URLSearchParams;(0,Wu.isString)(t)?n.set("resourceId",t):(0,Wu.isArray)(t)&&t.forEach(function(e){return n.append("resourceIds",e)});var r="/v1/c/".concat(e,"/subscriptions.json?").concat(n.toString());return this.get(r)},e.prototype.getSdkConfiguration=function(){return this.get("/v1/config/client-sdk-configuration.json")},e.prototype.get=function(e){return t=this,n=void 0,i=function(){var t,n,r,i,o;return function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,function(a){switch(a.label){case 0:return(t=new Headers).append("X-API-KEY",this.config.apiKey),t.append("X-API-VERSION","1"),t.append("source",Vu),(n=this.dynamicData.customerToken)&&t.append("X-CUSTOMER-KEY",n),[4,Gc("".concat(this.config.baseEdgeUri).concat(e),{headers:t,method:"GET"})];case 1:if(!(r=a.sent()).ok)throw(i=new Error("Failed to fetch data from Edge. Reason: ".concat(r.statusText))).response=r,i;return[4,r.json()];case 2:if(o=a.sent(),!p()(o.errors))throw new jc({graphQLErrors:o.errors});return[2,o]}})},new((r=void 0)||(r=Promise))(function(e,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r(function(e){e(n)})).then(a,s)}u((i=i.apply(t,n||[])).next())});var t,n,r,i},e}();function $c(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 Qc(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 Hc(e,t,n){return t&&Qc(e.prototype,t),n&&Qc(e,n),e}var zc=function(){return"function"==typeof Symbol},Wc=function(e){return zc()&&Boolean(Symbol[e])},Zc=function(e){return Wc(e)?Symbol[e]:"@@"+e};zc()&&!Wc("observable")&&(Symbol.observable=Symbol("observable"));var Yc=Zc("iterator"),Kc=Zc("observable"),Jc=Zc("species");function Xc(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function el(e){var t=e.constructor;return void 0!==t&&null===(t=t[Jc])&&(t=void 0),void 0!==t?t:ll}function tl(e){return e instanceof ll}function nl(e){nl.log?nl.log(e):setTimeout(function(){throw e})}function rl(e){Promise.resolve().then(function(){try{e()}catch(e){nl(e)}})}function il(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=Xc(t,"unsubscribe");n&&n.call(t)}}catch(e){nl(e)}}function ol(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function al(e,t,n){e._state="running";var r=e._observer;try{var i=Xc(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(ol(e),!i)throw n;i.call(r,n);break;case"complete":ol(e),i&&i.call(r)}}catch(e){nl(e)}"closed"===e._state?il(e):"running"===e._state&&(e._state="ready")}function sl(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 rl(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(al(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)})):void al(e,t,n);e._queue.push({type:t,value:n})}}var ul=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new cl(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&&(ol(this),il(this))},Hc(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),cl=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){sl(this._subscription,"next",e)},t.error=function(e){sl(this._subscription,"error",e)},t.complete=function(){sl(this._subscription,"complete")},Hc(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),ll=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 ul(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,o)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}})},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(el(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(el(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=el(this),r=arguments.length>1,i=!1,o=arguments[1];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=el(this);return new i(function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(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=el(this);return new n(function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[Kc]=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=Xc(t,Kc);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return tl(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(Wc("iterator")&&(r=Xc(t,Yc)))return new n(function(e){rl(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 $c(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)?$c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){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 o=n.value;if(e.next(o),e.closed)return}e.complete()}})});if(Array.isArray(t))return new n(function(e){rl(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];return new("function"==typeof this?this:e)(function(e){rl(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},Hc(e,null,[{key:Jc,get:function(){return this}}]),e}();function pl(e){return null!==e&&"object"==typeof e}function dl(e,t){var n=t,r=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new Cc("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 Cc(43);"FragmentDefinition"===e.kind&&r.push(e)}),void 0===n&&(__DEV__?wc(1===r.length,"Found "+r.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):wc(1===r.length,44),n=r[0].name.value),g(g({},e),{definitions:E([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function fl(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function hl(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?wc(n,"No fragment named "+e.name.value+"."):wc(n,45),n;default:return null}}function ml(e){return{__ref:String(e)}}function gl(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function yl(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 yl(i,e.name,e.value,r)}),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(e){var n={};return yl(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 Cc('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new Cc(54);e[t.value]=null}}zc()&&Object.defineProperty(ll,Symbol("extensions"),{value:{symbol:Kc,hostReportError:nl},configurable:!0});var vl=["connection","include","skip","client","rest","export"],bl=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+"("+El(i)+")"}return n.connection.key}var o=e;if(t){var a=El(t);o+="("+a+")"}return n&&Object.keys(n).forEach(function(e){-1===vl.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@"+e+"("+El(n[e])+")":o+="@"+e)}),o},{setStringify:function(e){var t=El;return El=e,t}}),El=function(e){return JSON.stringify(e,_l)};function _l(e,t){return pl(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{})),t}function Il(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){var r=e.name,i=e.value;return yl(n,r,i,t)}),n}return null}function Sl(e){return e.alias?e.alias.value:e.name.value}function Tl(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var o=i[r];if(Cl(o)){if("__typename"===o.name.value)return e[Sl(o)]}else{var a=Tl(e,hl(o,n).selectionSet,n);if("string"==typeof a)return a}}}function Cl(e){return"Field"===e.kind}function wl(e){return"InlineFragment"===e.kind}function Pl(e){__DEV__?wc(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'):wc(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 Cc('Schema type definitions not allowed in queries. Found: "'+e.kind+'"'):new Cc(47);return e});return __DEV__?wc(t.length<=1,"Ambiguous GraphQL document: contains "+t.length+" operations"):wc(t.length<=1,48),e}function Dl(e){return Pl(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function Al(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function Ol(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function Nl(e){var t=Dl(e);return __DEV__?wc(t&&"query"===t.operation,"Must contain a query definition."):wc(t&&"query"===t.operation,49),t}function Rl(e){var t;Pl(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw __DEV__?new Cc("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new Cc(53)}function Fl(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(e){e.defaultValue&&yl(t,e.variable.name,e.defaultValue)}),t}function kl(e,t){return t?t(e):ll.of()}function xl(e){return"function"==typeof e?new Ll(e):e}function Ul(e){return e.request.length<=1}var Ml=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return m(t,e),t}(Error),Ll=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return ll.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(xl).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i=xl(n),o=xl(r||new e(kl));return Ul(i)&&Ul(o)?new e(function(e){return t(e)?i.request(e)||ll.of():o.request(e)||ll.of()}):new e(function(e,n){return t(e)?i.request(e,n)||ll.of():o.request(e,n)||ll.of()})},e.execute=function(e,t){return e.request(function(e,t){var n=g({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=g(g({},n),"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return g({},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?Al(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 Cc("illegal argument: "+i):new Cc(26)}return e}(t))))||ll.of()},e.concat=function(t,n){var r=xl(t);if(Ul(r))return __DEV__&&wc.warn(new Ml("You are calling concat on a terminating link, which will have no effect",r)),r;var i=xl(n);return Ul(i)?new e(function(e){return r.request(e,function(e){return i.request(e)||ll.of()})||ll.of()}):new e(function(e,t){return r.request(e,function(e){return i.request(e,t)||ll.of()})||ll.of()})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(kl)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new Cc("request is not implemented"):new Cc(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}(),jl=n(8867),Vl=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new Cc("Network request failed. "+t+" is not serializable: "+e.message):new Cc(23);throw r.parseError=e,r}return n},Bl=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},Gl=Object.prototype.hasOwnProperty,ql=n(9054),$l={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}};function Ql(e){if(e){var t=Object.create(null);return Object.keys(Object(e)).forEach(function(n){t[n.toLowerCase()]=e[n]}),t}return e}function Hl(e){return new ll(function(t){t.error(e)})}var zl=Oc(function(){return fetch}),Wl=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,o=e.useGETForQueries,a=e.includeUnusedVariables,s=void 0!==a&&a,u=y(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new Cc("\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 Cc(22)}(r||zl);var c={http:{includeExtensions:i},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new Ll(function(e){var t=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(e,n),i=e.getContext(),a={};if(i.clientAwareness){var u=i.clientAwareness,l=u.name,p=u.version;l&&(a["apollographql-client-name"]=l),p&&(a["apollographql-client-version"]=p)}var d,f=g(g({},a),i.headers),h={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:f},m=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=g(g({},t.options),{headers:t.headers,credentials:t.credentials}),o=t.http||{};n.forEach(function(e){i=g(g(g({},i),e.options),{headers:g(g({},i.headers),Ql(e.headers))}),e.credentials&&(i.credentials=e.credentials),o=g(g({},o),e.http)});var a=e.operationName,s=e.extensions,u=e.variables,c=e.query,l={operationName:a,variables:u};return o.includeExtensions&&(l.extensions=s),o.includeQuery&&(l.query=(0,ql.S)(c)),{options:i,body:l}}(e,$l,c,h),y=m.options,v=m.body;if(v.variables&&!s){var b=new Set(Object.keys(v.variables));(0,jl.Vn)(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&b.delete(e.name.value)}}),b.size&&(v.variables=g({},v.variables),b.forEach(function(e){delete v.variables[e]}))}if(!y.signal){var E=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),_=E.controller,I=E.signal;(d=_)&&(y.signal=I)}if(o&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(y.method="GET"),"GET"===y.method){var S=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=Vl(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=Vl(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",o)}var a="",s=e,u=e.indexOf("#");-1!==u&&(a=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+n.join("&")+a}}(t,v),T=S.newURI,C=S.parseError;if(C)return Hl(C);t=T}else try{y.body=Vl(v,"Payload")}catch(C){return Hl(C)}return new ll(function(n){var i;return(r||Oc(function(){return fetch})||zl)(t,y).then(function(t){return e.setContext({response:t}),t}).then((i=e,function(e){return e.text().then(function(t){try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}).then(function(t){return e.status>=300&&Bl(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||Gl.call(t,"data")||Gl.call(t,"errors")||Bl(e,t,"Server response was missing for query '"+(Array.isArray(i)?i.map(function(e){return e.operationName}):i.operationName)+"'."),t})})).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(){d&&d.abort()}})})}(t).request)||this;return n.options=t,n}return m(t,e),t}(Ll),Zl=Ll.execute;function Yl(){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}const{toString:Kl,hasOwnProperty:Jl}=Object.prototype,Xl=Function.prototype.toString,ep=new Map;function tp(e,t){try{return np(e,t)}finally{ep.clear()}}function np(e,t){if(e===t)return!0;const n=Kl.call(e);if(n!==Kl.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(ap(e,t))return!0;const n=rp(e),r=rp(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;++e)if(!Jl.call(t,n[e]))return!1;for(let r=0;r<i;++r){const i=n[r];if(!np(e[i],t[i]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(ap(e,t))return!0;const r=e.entries(),i="[object Map]"===n;for(;;){const e=r.next();if(e.done)break;const[n,o]=e.value;if(!t.has(n))return!1;if(i&&!np(o,t.get(n)))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]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let n=e.byteLength;if(n===t.byteLength)for(;n--&&e[n]===t[n];);return-1===n}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const n=Xl.call(e);return n===Xl.call(t)&&!function(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(n,op)}}return!1}function rp(e){return Object.keys(e).filter(ip,e)}function ip(e){return void 0!==this[e]}const op="{ [native code] }";function ap(e,t){let n=ep.get(e);if(n){if(n.has(t))return!0}else ep.set(e,n=new Set);return n.add(t),!1}var sp,up,cp=function(){return Object.create(null)},lp=Array.prototype,pp=lp.forEach,dp=lp.slice,fp=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=cp),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 pp.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(dp.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}(),hp="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),mp="function"==typeof WeakSet,gp="function"==typeof Symbol&&"function"==typeof Symbol.for,yp=function(){function e(){this.known=new(mp?WeakSet:Set),this.pool=new fp(hp),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return pl(e)&&this.known.has(e)},e.prototype.pass=function(e){if(pl(e)){var t=function(e){return pl(e)?Array.isArray(e)?e.slice(0):g({__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(pl(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),o=[i],a=this.sortedKeys(e);o.push(a.json);var s,u=o.length;if(a.sorted.forEach(function(n){o.push(t.admit(e[n]))}),!(s=this.pool.lookupArray(o)).object){var c=s.object=Object.create(i);this.known.add(c),a.sorted.forEach(function(e,t){c[e]=o[u+t]}),__DEV__&&Object.freeze(c)}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}(),vp=Object.assign(function(e){if(pl(e)){void 0===sp&&bp();var t=sp.admit(e),n=up.get(t);return void 0===n&&up.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)},{reset:bp});function bp(){sp=new yp,up=new(hp?WeakMap:Map)}function Ep(e,t,n){return new ll(function(r){var i=r.next,o=r.error,a=r.complete,s=0,u=!1,c={then:function(e){return new Promise(function(t){return t(e())})}};function l(e,t){return e?function(t){++s;var n=function(){return e(t)};c=c.then(n,n).then(function(e){--s,i&&i.call(r,e),u&&p.complete()},function(e){throw--s,e}).catch(function(e){o&&o.call(r,e)})}:function(e){return t&&t.call(r,e)}}var p={next:l(t,i),error:l(n,o),complete:function(){u=!0,s||a&&a.call(r)}},d=e.subscribe(p);return function(){return d.unsubscribe()}})}function _p(e){return e.errors&&e.errors.length>0||!1}function Ip(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 Sp={kind:"Field",name:{kind:"Name",value:"__typename"}};function Tp(e,t){return e.selectionSet.selections.every(function(e){return"FragmentSpread"===e.kind&&Tp(t[e.name.value],t)})}function Cp(e){return Tp(Dl(e)||function(e){__DEV__?wc("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'):wc("Document"===e.kind,50),__DEV__?wc(e.definitions.length<=1,"Fragment must have exactly one definition."):wc(e.definitions.length<=1,51);var t=e.definitions[0];return __DEV__?wc("FragmentDefinition"===t.kind,"Must be a fragment definition."):wc("FragmentDefinition"===t.kind,52),t}(e),fl(Ol(e)))?null:e}function wp(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function Pp(e,t){var n=Object.create(null),r=[],i=Object.create(null),o=[],a=Cp((0,jl.Vn)(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(wp(e)))return t.arguments&&t.arguments.forEach(function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})}),t.selectionSet&&Op(t.selectionSet).forEach(function(e){o.push({name:e.name.value})}),null}},FragmentSpread:{enter:function(e){i[e.name.value]=!0}},Directive:{enter:function(t){if(wp(e)(t))return null}}}));return a&&Ip(r,function(e){return!!e.name&&!n[e.name]}).length&&(a=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 Cp((0,jl.Vn)(t,{OperationDefinition:{enter:function(t){return g(g({},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,a)),a&&Ip(o,function(e){return!!e.name&&!i[e.name]}).length&&(a=function(e,t){function n(t){if(e.some(function(e){return e.name===t.name.value}))return null}return Cp((0,jl.Vn)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(o,a)),a}var Dp=Object.assign(function(e){return(0,jl.Vn)(Pl(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some(function(e){return Cl(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var i=n;if(!(Cl(i)&&i.directives&&i.directives.some(function(e){return"export"===e.name.value})))return g(g({},e),{selections:E(E([],r,!0),[Sp],!1)})}}}}})},{added:function(e){return e===Sp}}),Ap={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some(function(e){return"key"===e.name.value})||__DEV__&&wc.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 Op(e){var t=[];return e.selections.forEach(function(e){(Cl(e)||wl(e))&&e.selectionSet?Op(e.selectionSet).forEach(function(e){return t.push(e)}):"FragmentSpread"===e.kind&&t.push(e)}),t}function Np(e){return"query"===Rl(e).operation?e:(0,jl.Vn)(e,{OperationDefinition:{enter:function(e){return g(g({},e),{operation:"query"})}}})}function Rp(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__?wc(n&&1===n.length,"Incorrect number of arguments for the @"+r+" directive."):wc(n&&1===n.length,40);var i=n[0];__DEV__?wc(i.name&&"if"===i.name.value,"Invalid argument for the @"+r+" directive."):wc(i.name&&"if"===i.name.value,41);var o=i.value;__DEV__?wc(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @"+r+" directive must be a variable or a boolean value."):wc(o&&("Variable"===o.kind||"BooleanValue"===o.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__?wc(void 0!==i,"Invalid variable referenced in @"+n.name.value+" directive."):wc(void 0!==i,39)):i=r.value.value,"skip"===n.name.value?!i:i})}function Fp(e,t){return function(e){var t=[];return(0,jl.Vn)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some(function(t){return e.indexOf(t)>-1})}function kp(e){return e&&Fp(["client"],e)&&Fp(["export"],e)}var xp=new Map;function Up(e){var t=xp.get(e)||1;return xp.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function Mp(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function Lp(e){function t(t){Object.defineProperty(e,t,{value:ll})}return gp&&Symbol.species&&t(Symbol.species),t("@@species"),e}function jp(e){return e&&"function"==typeof e.then}var Vp,Bp=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],Mp(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),Mp(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?jp(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(),Mp(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 ll(t)]),jp(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return m(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},o=this.addCount;this.addObserver(i),this.addCount=o},t}(ll);function Gp(e){return!!e&&e<7}Lp(Bp),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"}(Vp||(Vp={}));var qp=Object.prototype.toString;function $p(e){return Qp(e)}function Qp(e,t){switch(qp.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(e,r){n[r]=Qp(e,t)}),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(n){r[n]=Qp(e[n],t)}),r;default:return e}}var Hp=Object.assign,zp=Object.hasOwnProperty,Wp=!1,Zp=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=Yp)}catch(e){}var n=!o.observers.size;o.observers.add(e);var r=o.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&o.reobserve().catch(function(){}),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}})||this;o.observers=new Set,o.subscriptions=new Set,o.isTornDown=!1,o.options=i,o.queryId=r.queryId||n.generateQueryId();var a=Dl(i.query);return o.queryName=a&&a.name&&a.name.value,o.initialFetchPolicy=i.fetchPolicy||"cache-first",o.queryManager=n,o.queryInfo=r,o}return m(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||Vp.ready,r=g(g({},t),{loading:Gp(n),networkStatus:n}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if((t||"network-only"!==o&&"no-cache"!==o&&"standby"!==o)&&!this.queryManager.transform(this.options.query).hasForcedResolvers){var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(r.data=a.result),tp(r.data,{})&&(r.data=void 0),a.complete?(r.networkStatus!==Vp.loading||"cache-first"!==o&&"cache-only"!==o||(r.networkStatus=Vp.ready,r.loading=!1),delete r.partial):"no-cache"!==o&&(r.partial=!0),!__DEV__||a.complete||this.options.partialRefetch||r.loading||r.data||r.error||Kp(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!tp(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||tp(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&&zp.call(e,"variables")){var i=Nl(this.options.query),o=i.variableDefinitions;o&&o.some(function(e){return"variables"===e.variable.name.value})||__DEV__&&wc.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&&!tp(this.options.variables,e)&&(n.variables=this.options.variables=g(g({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,Vp.refetch)},t.prototype.fetchMore=function(e){var t=this,n=g(g({},e.query?e:g(g(g({},this.options),e),{variables:g(g({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=Vp.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,Vp.fetchMore).then(function(r){var i=r.data,o=e.updateQuery;return o?(__DEV__&&!Wp&&(__DEV__&&wc.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."),Wp=!0),t.updateQuery(function(e){return o(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__&&wc.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 tp(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},Vp.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__?wc(n,"Attempted to start a polling query without a polling interval."):wc(n,12),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(Gp(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},Vp.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=g(g({},this.last),{result:this.queryManager.assumeImmutableResults?e:$p(e),variables:t}),Lc(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===Vp.refetch||t===Vp.fetchMore||t===Vp.poll,i=this.options.variables,o=r?Yl(this.options,e):Hp(this.options,Yl(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!tp(e.variables,i)&&(o.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=Vp.setVariables)));var a=o.variables&&g({},o.variables),s=this.fetch(o,t),u={next:function(e){n.reportResult(e,a)},error:function(e){n.reportError(e,a)}};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),Mp(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=g(g({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:Vp.error,loading:!1});this.updateLastResult(n,t),Mp(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}(ll);function Yp(e){__DEV__&&wc.error("Unhandled error",e.message,e.stack)}function Kp(e){__DEV__&&Lc(e)&&__DEV__&&wc.debug("Missing cache result fields: "+e.map(function(e){return e.path.join(".")}).join(", "),e)}Lp(Zp);var Jp=Object.prototype.hasOwnProperty;function Xp(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ed(e)}function ed(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new nd,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var td=function(e,t,n){return this.merge(e[n],t[n])},nd=function(){function e(e){void 0===e&&(e=td),this.reconciler=e,this.isObject=pl,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 pl(t)&&pl(e)?(Object.keys(t).forEach(function(i){if(Jp.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,E([e,t,i],r,!1));a!==o&&((e=n.shallowCopyForMerge(e))[i]=a)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return pl(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):g({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();let rd=null;const id={};let od=1;function ad(e){try{return e()}catch(e){}}const sd="@wry/context:Slot",ud=ad(()=>globalThis)||ad(()=>global)||Object.create(null),cd=ud[sd]||Array[sd]||function(e){try{Object.defineProperty(ud,sd,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",od++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=rd;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===id)break;return e!==rd&&(rd.slots[this.id]=t),!0}return rd&&(rd.slots[this.id]=id),!1}getValue(){if(this.hasValue())return rd.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=rd;rd={parent:o,slots:i};try{return t.apply(r,n)}finally{rd=o}}static bind(e){const t=rd;return function(){const n=rd;try{return rd=t,e.apply(this,arguments)}finally{rd=n}}}static noContext(e,t,n){if(!rd)return e.apply(n,t);{const r=rd;try{return rd=null,e.apply(n,t)}finally{rd=r}}}}),{bind:ld,noContext:pd}=cd;function dd(){}var fd,hd=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=dd),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}(),md=new cd,gd=Object.prototype.hasOwnProperty,yd=void 0===(fd=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:fd;function vd(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var bd=[];function Ed(e,t){if(!e)throw new Error(t||"assertion failure")}function _d(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var Id=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&&!Cd(this))return Sd(this),this.value[0]},e.prototype.recompute=function(e){return Ed(!this.recomputing,"already recomputing"),Sd(this),Cd(this)?function(e,t){return Rd(e),md.withValue(e,Td,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{vd(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,Cd(e)||Pd(e)}(e),_d(e.value)}(this,e):_d(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,wd(this),vd(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),Rd(this),Dd(this,function(t,n){t.setDirty(),Fd(t,e)})},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=bd.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(yd(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),bd.push(this.deps),this.deps=null)},e.count=0,e}();function Sd(e){var t=md.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Cd(e)?Ad(t,e):Od(t,e),t}function Td(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 Cd(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function wd(e){Dd(e,Ad)}function Pd(e){Dd(e,Od)}function Dd(e,t){var n=e.parents.size;if(n)for(var r=yd(e.parents),i=0;i<n;++i)t(r[i],e)}function Ad(e,t){Ed(e.childValues.has(t)),Ed(Cd(t));var n=!Cd(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=bd.pop()||new Set;e.dirtyChildren.add(t),n&&wd(e)}function Od(e,t){Ed(e.childValues.has(t)),Ed(!Cd(t));var n,r,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,t.value.slice(0)):(n=o,r=t.value,(i=n.length)>0&&i===r.length&&n[i-1]===r[i-1]||e.setDirty()),Nd(e,t),Cd(e)||Pd(e)}function Nd(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(bd.length<100&&bd.push(n),e.dirtyChildren=null))}function Rd(e){e.childValues.size>0&&e.childValues.forEach(function(t,n){Fd(e,n)}),e.forgetDeps(),Ed(null===e.dirtyChildren)}function Fd(e,t){t.parents.delete(e),e.childValues.delete(t),Nd(e,t)}var kd={setDirty:!0,dispose:!0,forget:!0};function xd(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=md.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(vd(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&gd.call(kd,n)?n:"setDirty";yd(r).forEach(function(e){return e[i]()}),t.delete(e),vd(r)}},r}function Ud(){var e=new fp("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}Ud();var Md=new Set;function Ld(e,t){void 0===t&&(t=Object.create(null));var n=new hd(t.max||Math.pow(2,16),function(e){return e.dispose()}),r=t.keyArgs,i=t.makeCacheKey||Ud(),o=function(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new Id(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),Md.add(n),md.hasValue()||(Md.forEach(function(e){return e.clean()}),Md.clear()),s};function a(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(o,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))},o.forgetKey=u,o.forget=function(){return u(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}var jd=null,Vd={},Bd=1,Gd="@wry/context:Slot",qd=Array,$d=qd[Gd]||function(){var e=function(){function e(){this.id=["slot",Bd++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=jd;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Vd)break;return e!==jd&&(jd.slots[this.id]=t),!0}return jd&&(jd.slots[this.id]=Vd),!1},e.prototype.getValue=function(){if(this.hasValue())return jd.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=jd;jd={parent:a,slots:o};try{return t.apply(r,n)}finally{jd=a}},e.bind=function(e){var t=jd;return function(){var n=jd;try{return jd=t,e.apply(this,arguments)}finally{jd=n}}},e.noContext=function(e,t,n){if(!jd)return e.apply(n,t);var r=jd;try{return jd=null,e.apply(n,t)}finally{jd=r}},e}();try{Object.defineProperty(qd,Gd,{value:qd[Gd]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();$d.bind,$d.noContext;var Qd=new $d,Hd=new WeakMap;function zd(e){var t=Hd.get(e);return t||Hd.set(e,t={vars:new Set,dep:xd()}),t}function Wd(e){zd(e).vars.forEach(function(t){return t.forgetCache(e)})}function Zd(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){zd(e).dep.dirty(r),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)});var a=Array.from(n);n.clear(),a.forEach(function(t){return t(e)})}}else{var s=Qd.getValue();s&&(i(s),zd(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),zd(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var Yd=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=Xp(t.resolvers,e)}):this.resolvers=Xp(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,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return v(this,void 0,void 0,function(){return b(this,function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then(function(e){return g(g({},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 Fp(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){Pl(e);var t=Pp([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,jl.Vn)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return Cl(e)&&"__typename"===e.name.value}))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return g(g({},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={}),v(this,void 0,void 0,function(){return b(this,function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return g(g({},t),e.exportedVariables)})]:[2,g({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,jl.Vn)(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 jl.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Np(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),v(this,void 0,void 0,function(){var a,s,u,c,l,p,d,f,h;return b(this,function(m){return a=Rl(e),s=Ol(e),u=fl(s),c=a.operation,l=c?c.charAt(0).toUpperCase()+c.slice(1):"Query",d=(p=this).cache,f=p.client,h={fragmentMap:u,context:g(g({},n),{cache:d,client:f}),variables:r,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,h).then(function(e){return{result:e,exportedVariables:h.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n){return v(this,void 0,void 0,function(){var r,i,o,a,s,u=this;return b(this,function(c){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function(e){return v(u,void 0,void 0,function(){var s,u;return b(this,function(c){return Rp(e,o)?Cl(e)?[2,this.resolveField(e,t,n).then(function(t){var n;void 0!==t&&a.push(((n={})[Sl(e)]=t,n))})]:(wl(e)?s=e:(s=r[e.name.value],__DEV__?wc(s,"No fragment named "+e.name.value):wc(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){a.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(s)).then(function(){return ed(a)})]})})},e.prototype.resolveField=function(e,t,n){return v(this,void 0,void 0,function(){var r,i,o,a,s,u,c,l,p,d=this;return b(this,function(f){return r=n.variables,i=e.name.value,o=Sl(e),a=i!==o,s=t[o]||t[i],u=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(c=t.__typename||n.defaultOperationType,(l=this.resolvers&&this.resolvers[c])&&(p=l[a?i:o])&&(u=Promise.resolve(Qd.withValue(this.cache,p,[t,Il(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)?d.resolveSubSelectedArray(e,t,n):e.selectionSet?d.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}(),Kd=new(hp?WeakMap:Map);function Jd(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return Kd.set(e,(Kd.get(e)+1)%1e15),n.apply(this,arguments)})}function Xd(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var ef=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;Kd.has(n)||(Kd.set(n,0),Jd(n,"evict"),Jd(n,"modify"),Jd(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||Vp.loading;return this.variables&&this.networkStatus!==Vp.loading&&!tp(this.variables,e.variables)&&(t=Vp.setVariables),tp(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(){Xd(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&&tp(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||tp(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;Xd(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(Gp(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=g(g({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&tp(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===Kd.get(this.cache)&&tp(t,n.variables)&&tp(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=Lc(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(tf(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:Kd.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(e.data=r.lastDiff.diff.result);var o=r.getDiffOptions(t.variables),a=i.diff(o);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(a,o),a.complete&&(e.data=a.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Vp.ready},e.prototype.markError=function(e){return this.networkStatus=Vp.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function tf(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!_p(e);return!r&&n&&e.data&&(r=!0),r}var nf=Object.prototype.hasOwnProperty,rf=function(){function e(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=void 0!==r&&r,o=e.onBroadcast,a=e.ssrMode,s=void 0!==a&&a,u=e.clientAwareness,c=void 0===u?{}:u,l=e.localState,p=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(hp?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=c,this.localState=l||new Yd({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!p,(this.onBroadcast=o)&&(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 Cc("QueryManager stopped while query was in flight"):new Cc(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,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,u=void 0!==s&&s,c=e.update,l=e.onQueryUpdated,p=e.errorPolicy,d=void 0===p?"none":p,f=e.fetchPolicy,h=void 0===f?"network-only":f,m=e.keepRootFields,y=e.context;return v(this,void 0,void 0,function(){var e,o,s;return b(this,function(p){switch(p.label){case 0:return __DEV__?wc(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):wc(t,14),__DEV__?wc("network-only"===h||"no-cache"===h,"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."):wc("network-only"===h||"no-cache"===h,15),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,y)]:[3,2];case 1:n=p.sent(),p.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),r&&this.markMutationOptimistic(r,{mutationId:e,document:t,variables:n,fetchPolicy:h,errorPolicy:d,context:y,updateQueries:i,update:c,keepRootFields:m}),this.broadcastQueries(),s=this,[2,new Promise(function(p,f){return Ep(s.getObservableFromLink(t,g(g({},y),{optimisticResponse:r}),n,!1),function(p){if(_p(p)&&"none"===d)throw new jc({graphQLErrors:p.errors});o&&(o.loading=!1,o.error=null);var f=g({},p);return"function"==typeof a&&(a=a(f)),"ignore"===d&&_p(f)&&delete f.errors,s.markMutationResult({mutationId:e,result:f,document:t,variables:n,fetchPolicy:h,errorPolicy:d,context:y,update:c,updateQueries:i,awaitRefetchQueries:u,refetchQueries:a,removeOptimistic:r?e:void 0,onQueryUpdated:l,keepRootFields:m})}).subscribe({next:function(e){s.broadcastQueries(),p(e)},error:function(t){o&&(o.loading=!1,o.error=t),r&&s.cache.removeOptimistic(e),s.broadcastQueries(),f(t instanceof jc?t:new jc({networkError:t}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&tf(r,e.errorPolicy)){i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var a=e.updateQueries;a&&this.queries.forEach(function(e,o){var s=e.observableQuery,u=s&&s.queryName;if(u&&nf.call(a,u)){var c=a[u],l=n.queries.get(o),p=l.document,d=l.variables,f=t.diff({query:p,variables:d,returnPartialData:!0,optimistic:!1}),h=f.result;if(f.complete&&h){var m=c(h,{mutationResult:r,queryName:p&&Al(p)||void 0,queryVariables:d});m&&i.push({result:m,dataId:"ROOT_QUERY",query:p,variables:d})}}})}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach(function(e){return t.write(e)});var a=e.update;if(a){if(!o){var s=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&(r=g(g({},r),{data:s.result}))}a(t,r,{context:e.context,variables:e.variables})}o||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(g(g({},t),{result:{data:r}}),e)}catch(e){__DEV__&&wc.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),Pp([Ap],Pl(t))),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:kp(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:Fl(Dl(r)),asQuery:g(g({},r),{definitions:r.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?g(g({},e),{operation:"query"}):e})})},u=function(e){e&&!n.has(e)&&n.set(e,s)};u(e),u(r),u(o),u(a)}return n.get(e)},e.prototype.getVariables=function(e,t){return g(g({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=g(g({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new ef(this),n=new Zp({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__?wc(e.query,"query option is required. You must specify your GraphQL document in the query option."):wc(e.query,16),__DEV__?wc("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):wc("Document"===e.query.kind,17),__DEV__?wc(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):wc(!e.returnPartialData,18),__DEV__?wc(!e.pollInterval,"pollInterval option only supported on watchQuery."):wc(!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 Cc("Store reset while query was in flight (not completed in link chain)"):new Cc(20)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=Vp.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):pl(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):pl(e)&&e.query&&i.add(e)}),this.queries.forEach(function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void n.set(i,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&r.has(s)||a&&r.has(a))&&(n.set(i,o),s&&r.set(s,!0),a&&r.set(a,!0))}}),i.size&&i.forEach(function(e){var r=Up("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new Zp({queryManager:t,queryInfo:i,options:g(g({},e),{fetchPolicy:"network-only"})});wc(o.queryId===r),i.setObservableQuery(o),n.set(r,o)}),__DEV__&&r.size&&r.forEach(function(e,t){e||__DEV__&&wc.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 o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&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,o=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var u=function(e){return t.getObservableFromLink(n,s,e).map(function(o){if("no-cache"!==r&&(tf(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),_p(o))throw new jc({graphQLErrors:o.errors});return o})};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,s).then(u);return new ll(function(e){var t=null;return c.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return u(o)},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,o,a=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,c=this.link,l={query:s,variables:n,operationName:Al(s)||void 0,context:this.prepareContext(g(g({},t),{forceFetch:!r}))};if(t=l.context,r){var p=u.get(s)||new Map;u.set(s,p);var d=vp(n);if(!(o=p.get(d))){var f=new Bp([Zl(c,l)]);p.set(d,o=f),f.cleanup(function(){p.delete(d)&&p.size<1&&u.delete(s)})}}else o=new Bp([Zl(c,l)])}else o=new Bp([ll.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=Ep(o,function(e){return a.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})})),o},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return Ep(this.getObservableFromLink(e.document,n.context,n.variables),function(i){var o=Lc(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new jc({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||Vp.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors),a},function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new jc({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=Vp.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),s=t.fetchPolicy,u=void 0===s?"cache-first":s,c=t.errorPolicy,l=void 0===c?"none":c,p=t.returnPartialData,d=void 0!==p&&p,f=t.notifyOnNetworkStatusChange,h=void 0!==f&&f,m=t.context,g=void 0===m?{}:m,y=Object.assign({},t,{query:i,variables:o,fetchPolicy:u,errorPolicy:l,returnPartialData:d,notifyOnNetworkStatusChange:h,context:g}),v=function(e){return y.variables=e,r.fetchQueryByPolicy(a,y,n)};this.fetchCancelFns.set(e,function(e){setTimeout(function(){return b.cancel(e)})});var b=new Bp(this.transform(y.query).hasClientExports?this.localState.addExportedVariables(y.query,y.variables,y.context).then(v):v(y.variables));return b.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)}),b},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?Up("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){c.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})});var l=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof ef&&e.watcher.observableQuery;if(r){if(u){c.delete(r.queryId);var i=u(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&l.set(r,i),!1}null!==u&&c.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),c.size&&c.forEach(function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=u(i,a,o)}u&&!0!==r||(r=i.refetch()),!1!==r&&l.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,u=t.errorPolicy,c=t.returnPartialData,l=t.context,p=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var f=function(){return e.getDiff(o)},h=function(t,n){void 0===n&&(n=e.networkStatus||Vp.loading);var a=t.result;!__DEV__||c||tp(a,{})||Kp(t.missing);var s=function(e){return ll.of(g({data:e,loading:Gp(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:l,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):s(a)},m="no-cache"===a?0:n===Vp.refetch&&"merge"!==s?1:2,y=function(){return r.getResultsFromLink(e,m,{variables:o,context:l,fetchPolicy:a,errorPolicy:u})},v=p&&"number"==typeof d&&d!==n&&Gp(n);switch(a){default:case"cache-first":return(b=f()).complete?[h(b,e.markReady())]:c||v?[h(b),y()]:[y()];case"cache-and-network":var b;return(b=f()).complete||c||v?[h(b),y()]:[y()];case"cache-only":return[h(f(),e.markReady())];case"network-only":return v?[h(f()),y()]:[y()];case"no-cache":return v?[h(e.getDiff()),y()]:[y()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new ef(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return g(g({},t),{clientAwareness:this.clientAwareness})},e}(),of=!1;function af(e,t){return Yl(e,t,t.variables&&{variables:g(g({},e.variables),t.variables)})}var sf=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,s=void 0!==a&&a,u=e.ssrForceFetchDelay,c=void 0===u?0:u,l=e.connectToDevTools,p=void 0===l?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:l,d=e.queryDeduplication,f=void 0===d||d,h=e.defaultOptions,m=e.assumeImmutableResults,g=void 0!==m&&m,y=e.resolvers,v=e.typeDefs,b=e.fragmentMatcher,E=e.name,_=e.version,I=e.link;if(I||(I=n?new Wl({uri:n,credentials:r,headers:i}):Ll.empty()),!o)throw __DEV__?new Cc("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 Cc(9);if(this.link=I,this.cache=o,this.disableNetworkFetches=s||c>0,this.queryDeduplication=f,this.defaultOptions=h||{},this.typeDefs=v,c&&setTimeout(function(){return t.disableNetworkFetches=!1},c),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),p&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!of&&__DEV__&&(of=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var S=window.navigator,T=S&&S.userAgent,C=void 0;"string"==typeof T&&(T.indexOf("Chrome/")>-1?C="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":T.indexOf("Firefox/")>-1&&(C="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),C&&__DEV__&&wc.log("Download the Apollo DevTools for a better development experience: "+C)}this.version="3.4.17",this.localState=new Yd({cache:o,client:this,resolvers:y,fragmentMatcher:b}),this.queryManager=new rf({cache:this.cache,link:this.link,queryDeduplication:f,ssrMode:s,clientAwareness:{name:E,version:_},localState:this.localState,assumeImmutableResults:g,onBroadcast:p?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=af(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=g(g({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=af(this.defaultOptions.query,e)),__DEV__?wc("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."):wc("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=g(g({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=af(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 Zl(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__&&wc.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}(),uf=function(){function e(){this.getFragmentDoc=Ld(dl)}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(g(g({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(g(g({},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=y(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,o=y(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e}(),cf=function(e){function t(n,r,i,o){var a=e.call(this,n)||this;return a.message=n,a.path=r,a.query=i,a.variables=o,a.__proto__=t.prototype,a}return m(t,e),t}(Error);function lf(e){return __DEV__&&(t=e,(n=new Set([t])).forEach(function(e){pl(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(t){pl(e[t])&&n.add(e[t])})})),e;var t,n}var pf=Object.prototype.hasOwnProperty;function df(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 ff={dataIdFromObject:df,addTypename:!0,resultCaching:!0,canonizeResults:!1};function hf(e){var t=e.canonizeResults;return void 0===t?ff.canonizeResults:t}var mf=/^[_a-z][_0-9a-z]*/i;function gf(e){var t=e.match(mf);return t?t[0]:e}function yf(e,t,n){return!!pl(t)&&(Array.isArray(t)?t.every(function(t){return yf(e,t,n)}):e.selections.every(function(e){if(Cl(e)&&Rp(e,n)){var r=Sl(e);return pf.call(t,r)&&(!e.selectionSet||yf(e.selectionSet,t[r],n))}return!0}))}function vf(e){return pl(e)&&!gl(e)&&!Array.isArray(e)}var bf=Object.create(null),Ef=function(){return bf},_f=Object.create(null),If=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 lf(gl(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return gl(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return ml(e);if(gl(e))return e;var r=n.policies.identify(e)[0];if(r){var i=ml(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return g({},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),pf.call(this.data,e)){var n=this.data[e];if(n&&pf.call(n,t))return n[t]}return"__typename"===t&&pf.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof wf?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),pf.call(this.data,e)?this.data[e]:this instanceof wf?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;gl(e)&&(e=e.__ref),gl(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){__DEV__?wc("string"==typeof n,"store.merge expects a string ID"):wc("string"==typeof n,1);var a=new nd(Df).merge(i,o);if(this.data[n]=a,a!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=gf(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof wf||delete a[e]}}),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==a.__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),o=!1,a=!0,s={DELETE:bf,INVALIDATE:_f,isReference:gl,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||ml(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(u){var c=gf(u),l=r[u];if(void 0!==l){var p="function"==typeof t?t:t[u]||t[c];if(p){var d=p===Ef?bf:p(lf(l),g(g({},s),{fieldName:c,storeFieldName:u,storage:n.getStorage(e,u)}));d===_f?n.group.dirty(e,u):(d===bf&&(d=void 0),d!==l&&(i[u]=d,o=!0,l=d))}void 0!==l&&(a=!1)}}),o)return this.merge(e,i),a&&(this instanceof wf?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 o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=Ef,r):Ef)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(pf.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof wf&&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){pf.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&&pf.call(e,n)||t.delete(n)}),e){var n=e.__META,r=y(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 wf?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){pf.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 wf;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!pf.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){gl(e)&&(t[e.__ref]=!0),pl(e)&&Object.keys(e).forEach(function(t){var n=e[t];pl(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),Sf=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?xd():null,this.keyMaker=new fp(hp)},e.prototype.depend=function(e,t){if(this.d){this.d(Tf(e,t));var n=gf(t);n!==t&&this.d(Tf(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(Tf(e,t),"__exists"===t?"forget":"setDirty")},e}();function Tf(e,t){return t+"#"+e}function Cf(e,t){Af(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,o=t.seed,a=e.call(this,n,new Sf(i))||this;return a.stump=new Pf(a),a.storageTrie=new fp(hp),o&&a.replace(o),a}return m(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}(If||(If={}));var wf=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return m(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){tp(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 g(g({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return pf.call(this.data,t)?g(g({},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}(If),Pf=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new Sf(t.group.caching,t.group))||this}return m(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(wf);function Df(e,t,n){var r=e[n],i=t[n];return tp(r,i)?r:i}function Af(e){return!!(e instanceof If&&e.group.caching)}function Of(e,t){return new cf(e.message,t.path.slice(),t.query,t.variables)}function Nf(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Rf=function(){function e(e){var t=this;this.knownResults=new(hp?WeakMap:Map),this.config=Yl(e,{addTypename:!1!==e.addTypename,canonizeResults:hf(e)}),this.canon=e.canon||new yp,this.executeSelectionSet=Ld(function(e){var n,r=e.context.canonizeResults,i=Nf(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?g(g({},o),{result:t.canon.admit(o.result)}):o:(Cf(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:Nf,makeCacheKey:function(e,t,n,r){if(Af(n.store))return n.store.makeCacheKey(e,gl(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=Ld(function(e){return Cf(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(Af(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new yp},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,o=e.variables,a=e.returnPartialData,s=void 0===a||a,u=e.canonizeResults,c=void 0===u?this.config.canonizeResults:u,l=this.config.cache.policies;o=g(g({},Fl(Nl(n))),o);var p=ml(i),d=this.executeSelectionSet({selectionSet:Rl(n).selectionSet,objectOrReference:p,enclosingRef:p,context:{store:t,query:n,policies:l,variables:o,varString:vp(o),canonizeResults:c,fragmentMap:fl(Ol(n)),path:[]}}),f=d.missing&&d.missing.length>0;if(f&&!s)throw d.missing[0];return{result:d.result,missing:d.missing,complete:!f}},e.prototype.isFresh=function(e,t,n,r){if(Af(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,o=e.context;if(gl(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:[Of(__DEV__?new Cc("Dangling reference to missing "+r.__ref+" object"):new Cc(5),o)]};var a=o.variables,s=o.policies,u=o.store,c=[],l={result:null},p=u.getFieldValue(r,"__typename");function d(){return l.missing||(l.missing=[])}function f(e){var t;return e.missing&&(t=d()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof p&&!s.rootIdsByTypename[p]&&c.push({__typename:p});var h=new Set(n.selections);h.forEach(function(e){var n;if(Rp(e,a))if(Cl(e)){var u=s.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),l=Sl(e);o.path.push(l),void 0===u?Dp.added(e)||d().push(Of(__DEV__?new Cc("Can't find field '"+e.name.value+"' on "+(gl(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2))):new Cc(6),o)):Array.isArray(u)?u=f(t.executeSubSelectedArray({field:e,array:u,enclosingRef:i,context:o})):e.selectionSet?null!=u&&(u=f(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:u,enclosingRef:gl(u)?u:i,context:o}))):o.canonizeResults&&(u=t.canon.pass(u)),void 0!==u&&c.push(((n={})[l]=u,n)),wc(o.path.pop()===l)}else{var m=hl(e,o.fragmentMap);m&&s.fragmentMatches(m,p)&&m.selectionSet.selections.forEach(h.add,h)}});var m=ed(c);return l.result=o.canonizeResults?this.canon.admit(m):lf(m),this.knownResults.set(l.result,n),l},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context;function s(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),wc(a.path.pop()===n),e.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(e,t){return null===e?null:(a.path.push(t),Array.isArray(e)?s(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?s(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:gl(e)?e:o,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){pl(n)&&(__DEV__?wc(!gl(n),"Missing selection set for object of type "+function(e,t){return gl(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)+" returned for query field "+t.name.value):wc(!gl(n),7),Object.values(n).forEach(r.add,r))})}}(a.store,r,e),wc(a.path.pop()===t),e))}),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),Ff=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,o=t.dataId,a=t.variables,s=t.overwrite,u=Dl(r),c=new nd;a=g(g({},Fl(u)),a);var l={store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:vp(a),fragmentMap:fl(Ol(r)),overwrite:!!s,incomingById:new Map,clientOnly:!1},p=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:l});if(!gl(p))throw __DEV__?new Cc("Could not identify object "+JSON.stringify(i)):new Cc(8);return l.incomingById.forEach(function(t,r){var i=t.fields,o=t.mergeTree,a=t.selections,s=ml(r);if(o&&o.map.size){var u=n.applyMerges(o,s,i,l);if(gl(u))return;i=u}if(__DEV__&&!l.overwrite){var c=new Set;a.forEach(function(e){Cl(e)&&e.selectionSet&&c.add(e.name.value)}),Object.keys(i).forEach(function(e){(function(e){return c.has(gf(e))})(e)&&!function(e){var t=o&&o.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},o=i(e);if(o){var a=i(t);if(a&&!gl(o)&&!tp(o,a)&&!Object.keys(o).every(function(e){return void 0!==r.getFieldValue(a,e)})){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),u=gf(n),c=s+"."+u;if(!jf.has(c)){jf.add(c);var l=[];Array.isArray(o)||Array.isArray(a)||[o,a].forEach(function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||l.includes(t)||l.push(t)}),__DEV__&&wc.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), "+(l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"")+"define a custom merge function for the "+c+" field, so InMemoryCache can safely merge these objects:\n\n existing: "+JSON.stringify(o).slice(0,1e3)+"\n incoming: "+JSON.stringify(a).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,l.store)})}e.merge(r,i)}),e.retain(p.__ref),p},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,u=s.identify(r,i,o.fragmentMap),c=u[0],l=u[1];if("string"==typeof(n=n||c)){var p=o.written[n]||(o.written[n]=[]),d=ml(n);if(p.indexOf(i)>=0)return d;if(p.push(i),this.reader&&this.reader.isFresh(r,d,i,o))return d}var f=Object.create(null);l&&(f=o.merge(f,l));var h=n&&s.rootTypenamesById[n]||Tl(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof h&&(f.__typename=h);var m=new Set(i.selections);if(m.forEach(function(e){var n;if(Rp(e,o.variables))if(Cl(e)){var i=Sl(e),u=r[i],c=o.clientOnly;if(o.clientOnly=c||!(!e.directives||!e.directives.some(function(e){return"client"===e.name.value})),void 0!==u){var l=s.getStoreFieldName({typename:h,fieldName:e.name.value,field:e,variables:o.variables}),p=xf(a,l),d=t.processFieldValue(u,e,o,p),g=void 0;if(e.selectionSet&&!(g=o.store.getFieldValue(d,"__typename"))&&gl(d)){var y=o.incomingById.get(d.__ref);g=y&&y.fields.__typename}var v=s.getMergeFunction(h,e.name.value,g);v?p.info={field:e,typename:h,merge:v}:Lf(a,l),f=o.merge(f,((n={})[l]=d,n))}else o.clientOnly||Dp.added(e)||__DEV__&&wc.error(("Missing field '"+Sl(e)+"' while writing result "+JSON.stringify(r,null,2)).substring(0,1e3));o.clientOnly=c}else{var b=hl(e,o.fragmentMap);b&&s.fragmentMatches(b,h,r,o.variables)&&b.selectionSet.selections.forEach(m.add,m)}}),"string"==typeof n){var g=o.incomingById.get(n);return g?(g.fields=o.merge(g.fields,f),g.mergeTree=Uf(g.mergeTree,a),g.selections.forEach(m.add,m),g.selections=m):o.incomingById.set(n,{fields:f,mergeTree:Mf(a)?void 0:a,selections:m}),ml(n)}return f},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,n,xf(r,o));return Lf(r,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?$p(e):e},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!gl(n)){var s,u=Array.isArray(n)||!gl(t)&&!vf(t)?void 0:t,c=n;u&&!i&&(i=[gl(u)?u.__ref:u]);var l=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=l(u,t),o=l(c,t);if(void 0!==o){i&&i.push(t);var p=a.applyMerges(e,n,o,r,i);p!==o&&(s=s||new Map).set(t,p),i&&wc(i.pop()===t)}}),s&&(n=Array.isArray(c)?c.slice(0):g({},c),s.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(o=r.store).getStorage.apply(o,i)):n},e}(),kf=[];function xf(e,t){var n=e.map;return n.has(t)||n.set(t,kf.pop()||{map:new Map}),n.get(t)}function Uf(e,t){if(e===t||!t||Mf(t))return e;if(!e||Mf(e))return t;var n=e.info&&t.info?g(g({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var o=new Set(t.map.keys());e.map.forEach(function(e,n){i.map.set(n,Uf(e,t.map.get(n))),o.delete(n)}),o.forEach(function(n){i.map.set(n,Uf(t.map.get(n),e.map.get(n)))})}return i}function Mf(e){return!e||!(e.info||e.map.size)}function Lf(e,t){var n=e.map,r=n.get(t);r&&Mf(r)&&(kf.push(r),n.delete(t))}var jf=new Set;function Vf(e){var t=Up("stringifyForDisplay");return JSON.stringify(e,function(e,n){return void 0===n?t:n}).split(JSON.stringify(t)).join("<undefined>")}function Bf(e){return void 0!==e.args?e.args:e.field?Il(e.field,e.variables):null}bl.setStringify(vp);var Gf=function(){},qf=function(e,t){return t.fieldName},$f=function(e,t,n){return(0,n.mergeObjects)(e,t)},Qf=function(e,t){return t},Hf=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=g({dataIdFromObject:df},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?Tl(e,t,n):e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,o={typename:r,selectionSet:t,fragmentMap:n},a=r&&this.getTypePolicy(r),s=a&&a.keyFn||this.config.dataIdFromObject;s;){var u=s(e,o);if(!Array.isArray(u)){i=u;break}s=Yf(u)}return i=i?String(i):void 0,o.keyObject?[i,o.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var r=e[n],i=r.queryType,o=r.mutationType,a=r.subscriptionType,s=y(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),pf.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,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?$f:!1===t?Qf:e.merge}a(r,t.merge),r.keyFn=!1===i?Gf:Array.isArray(i)?Yf(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach(function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;r.keyFn=!1===s?qf:Array.isArray(s)?Zf(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||qf)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?wc(!r||r===e,"Cannot change root "+e+" __typename more than once"):wc(!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(mf);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!pf.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,o=y(r,["fields"]);Object.assign(n,o),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 o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},c=!(!n||!this.fuzzySubtypes.size),l=!1,p=0;p<s.length;++p){var d=s[p];if(d.has(o))return a.has(o)||(l&&__DEV__&&wc.warn("Inferring subtype "+t+" of supertype "+o),a.add(o)),!0;d.forEach(u),c&&p===s.length-1&&yf(e.selectionSet,n,r)&&(c=!1,l=!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),o=i&&i.keyFn;if(o&&n)for(var a={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=Bf(e);o;){var u=o(s,a);if(!Array.isArray(u)){t=u||r;break}o=Zf(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,o=r.value;return yl(n[e.name.value],i,o,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(e){var n=e.name,i=e.value;return yl(r,n,i,t)})),bl(e.name.value,r,n)}(e.field,e.variables):bl(r,Bf(e))),!1===t?r:r===gf(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),o=gf(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=zf(this,n,e,t,t.store.getStorage(gl(n)?n.__ref:n,i));return Qd.withValue(this.cache,u,[a,c])}return a}},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 o=n.field,a=n.typename,s=n.merge;return s===$f?Wf(r.store)(e,t):s===Qf?t:(r.overwrite&&(e=void 0),s(e,t,zf(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function zf(e,t,n,r,i){var o=e.getStoreFieldName(n),a=gf(o),s=n.variables||r.variables,u=r.store,c=u.toReference,l=u.canRead;return{args:Bf(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:gl,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(n,i){var o;if("string"==typeof n)o={fieldName:n,from:arguments.length>1?i:t};else{if(!pl(n))return void(__DEV__&&wc.warn("Unexpected readField arguments: "+Vf(Array.from(arguments))));o=g({},n),pf.call(n,"from")||(o.from=t)}return __DEV__&&void 0===o.from&&__DEV__&&wc.warn("Undefined 'from' passed to readField with arguments "+Vf(Array.from(arguments))),void 0===o.variables&&(o.variables=s),e.readField(o,r)},mergeObjects:Wf(r.store)}}function Wf(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new Cc("Cannot automatically merge arrays"):new Cc(3);if(pl(t)&&pl(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(gl(t)&&vf(n))return e.merge(t.__ref,n),t;if(vf(t)&&gl(n))return e.merge(t,n.__ref),n;if(vf(t)&&vf(n))return g(g({},t),n)}return n}}function Zf(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify(Jf(t,e,!1)):n.fieldName}}function Yf(e){var t=new fp(hp);return function(n,r){var i;if(r.selectionSet&&r.fragmentMap){var o=t.lookupArray([r.selectionSet,r.fragmentMap]);i=o.aliasMap||(o.aliasMap=Kf(r.selectionSet,r.fragmentMap))}var a=r.keyObject=Jf(n,e,!0,i);return r.typename+":"+JSON.stringify(a)}}function Kf(e,t){var n=Object.create(null),r=new Set([e]);return r.forEach(function(e){e.selections.forEach(function(e){if(Cl(e)){if(e.alias){var i=e.alias.value,o=e.name.value;o!==i&&((n.aliases||(n.aliases=Object.create(null)))[o]=i)}e.selectionSet&&((n.subsets||(n.subsets=Object.create(null)))[e.name.value]=Kf(e.selectionSet,t))}else{var a=hl(e,t);a&&r.add(a.selectionSet)}})}),n}function Jf(e,t,n,r){var i,o,a=Object.create(null);return t.forEach(function(t){if(Array.isArray(t)){if("string"==typeof o&&"string"==typeof i){var s=r&&r.subsets,u=s&&s[o];a[o]=Jf(e[i],t,n,u)}}else{var c=r&&r.aliases,l=c&&c[t]||t;pf.call(e,l)?a[o=t]=e[i=l]:(__DEV__?wc(!n,"Missing field '"+l+"' while computing key fields"):wc(!n,4),i=o=void 0)}}),a}var Xf=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=Zd,n.txCount=0,n.config=function(e){return Yl(ff,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new Hf({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return m(t,e),t.prototype.init=function(){var e=this.data=new If.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 Ff(this,this.storeReader=new Rf({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:hf(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=Ld(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(Af(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,vp({optimistic:r,rootId:i,variables:o}))}}}),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(g(g({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof cf)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(pf.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(g(g({},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||zd(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&&Wd(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){vp.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 gl(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(pf.call(e,"id"))return!1;e=g(g({},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(),vp.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),Wd(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,o=e.removeOptimistic,a=e.onWatchUpdated,s=function(e){var r=t,i=r.data,o=r.optimisticData;++t.txCount,e&&(t.data=t.optimisticData=e);try{n(t)}finally{--t.txCount,t.data=i,t.optimisticData=o}},u=new Set;a&&!this.txCount&&this.broadcastWatches(g(g({},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 o&&(this.optimisticData=this.optimisticData.removeLayer(o)),a&&u.size?(this.broadcastWatches(g(g({},e),{onWatchUpdated:function(e,t){var n=a.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=Dp(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&&tp(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(uf),eh=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 v(i,void 0,void 0,function(){var t,n,r;return b(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}(),th=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.attempts,o=r.delay;return n.delayFor="function"==typeof o?o:function(e){var t=e||{},n=t.initial,r=void 0===n?300:n,i=t.jitter,o=void 0===i||i,a=t.max,s=void 0===a?1/0:a,u=o?r:r/2;return function(e){var t=Math.min(s,u*Math.pow(2,e));return o&&(t=Math.random()*t),t}}(o),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 m(t,e),t.prototype.request=function(e,t){var n=new eh(e,t,this.delayFor,this.retryIf);return n.start(),new ll(function(e){return n.subscribe(e),function(){n.unsubscribe(e)}})},t}(Ll);const nh="4.13.0";var rh=function(e){return!!e&&![500,400].includes(e.statusCode)};var ih=[ot.Incremental,ot.Fluctuating];function oh(e){return(null==e?void 0:e.featureType)===We.Number&&!(0,Wu.isNil)(e.meterType)&&ih.includes(e.meterType)}var ah=function(){function e(e,t){this.calculatedEntitlement=e,this.usageData=t}return e.prototype.isUsageTrackable=function(){switch(this.calculatedEntitlement.type){case we.Credit:return!0;case we.Feature:return oh(this.calculatedEntitlement.feature);default:return!1}},e.prototype.getEntitlementQuery=function(){var e=this.calculatedEntitlement.type;switch(e){case we.Feature:return{type:e,id:this.calculatedEntitlement.feature.id};case we.Credit:return{type:e,id:this.calculatedEntitlement.currency.currencyId};default:throw new Error("Unknown entitlement type ".concat(e))}},e}();function sh(e){return e.calculatedEntitlement.type===we.Feature}function uh(e){return e.calculatedEntitlement.type===we.Credit}var ch,lh=function(){function e(e){if(this.map=new Map,e)for(var t=0,n=e;t<n.length;t++){var r=n[t];this.set(r)}}return e.getUniqueKey=function(e){return e.type===we.Feature?e.id:"".concat(e.type,":").concat(e.id)},e.prototype.get=function(t){return this.map.get(e.getUniqueKey(t))},e.prototype.set=function(t){var n=e.getUniqueKey(t.getEntitlementQuery());return this.map.set(n,t),this},Object.defineProperty(e.prototype,"size",{get:function(){return this.map.size},enumerable:!1,configurable:!0}),e.prototype.values=function(){return Array.from(this.map.values())},e.prototype.updateUsage=function(e,t){var n=this.get(e);if(n){var r=new ah(n.calculatedEntitlement,t);this.set(r)}},e.prototype.toJSON=function(){return Object.fromEntries(this.map)},e.fromJSON=function(t){for(var n=new e,r=0,i=Object.entries(t);r<i.length;r++){var o=i[r],a=o[0],s=o[1],u=new ah(s.calculatedEntitlement,s.usageData);n.map.set(a,u)}return n},e.empty=function(){return new e},e.fromEntitlements=function(t){return new e(t)},e.fromInput=function(t,n){for(var r=new e,i=new Map,o=0,a=(0,Wu.compact)(n.map(function(e){return t.mapEntitlement(e)}));o<a.length;o++){var s=a[o],u=s.entitlement,c=s.usageUpdatedAt;if(r.set(u),c){var l=e.getUniqueKey(u.getEntitlementQuery());i.set(l,new Date(c))}}return{entitlements:r,usageUpdatedAtMap:i}},e}(),ph=(new Date(0),function(e,t){return{cacheMiss:!1,entitlements:e,accessDeniedReason:t,globalCustomerMissing:!1}}),dh=((ch={})[Pe.CustomerNotFound]=R.CustomerNotFound,ch[Pe.NoActiveSubscription]=R.NoActiveSubscription,ch[Pe.CustomerIsArchived]=R.CustomerIsArchived,ch);function fh(e){return e?dh[e]:null}var hh=n(8879),mh=n.n(hh);var gh=function(){function e(){}return e.prototype.transform=function(e){for(var t=new Date,n=lh.empty(),r=0,i=e.values();r<i.length;r++){var o=i[r];n.set(this.transformEntitlement(o,t))}return n},e.prototype.transformEntitlement=function(e,t){var n,r,i;if(!sh(e))return e;var o=e.calculatedEntitlement,a=e.usageData;if(!(oh(o.feature)&&a.usagePeriodEnd&&a.usagePeriodEnd<t.getTime()))return e;var s,u,c=o.resetPeriod,l=o.usagePeriodAnchor;return l&&c&&(s=(n=function(e,t,n){var r=mh()(t),i=mh()(e),o=function(e){switch(e){case Ce.Year:return"years";case Ce.Month:return"months";case Ce.Week:return"weeks";case Ce.Day:return"days";case Ce.Hour:return"hours";default:throw new Error("Unsupported reset period")}}(n),a=Math.floor(r.diff(i,o,!0)),s=i.clone().add(a,o),u=i.clone().add(a+1,o);return{usagePeriodStart:s.toDate(),usagePeriodEnd:u.toDate()}}(new Date(l),t,c)).usagePeriodStart,u=n.usagePeriodEnd),new ah(o,{currentUsage:0,usagePeriodStart:null!==(r=null==s?void 0:s.getTime())&&void 0!==r?r:null,usagePeriodEnd:null!==(i=null==u?void 0:u.getTime())&&void 0!==i?i:null})},e}(),yh=function(){return yh=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},yh.apply(this,arguments)},vh=function(){function e(){}return e.prototype.transform=function(e){for(var t=lh.empty(),n=new Map,r=0,i=e.values();r<i.length;r++){var o=i[r];t.set(this.processEntitlement(o,e,n))}return t},e.prototype.processEntitlement=function(e,t,n){if(!sh(e)||!e.calculatedEntitlement.creditRate)return e;var r=e.calculatedEntitlement.creditRate.currencyId,i=this.getCachedCreditAccessReason(r,t,n);return this.withCreditAccessReason(e,i)},e.prototype.getCachedCreditAccessReason=function(e,t,n){var r=n.get(e);if(void 0!==r)return r;var i=t.get({type:we.Credit,id:e}),o=this.getCreditAccessDeniedReason(i);return n.set(e,o),o},e.prototype.getCreditAccessDeniedReason=function(e){return e&&this.hasSufficientCredits(e)?null:R.InsufficientCredits},e.prototype.hasSufficientCredits=function(e){return e.calculatedEntitlement.usageLimit-e.usageData.currentUsage>0},e.prototype.withCreditAccessReason=function(e,t){var n=e.calculatedEntitlement.accessDeniedReason;return null!==n&&n!==R.InsufficientCredits||t===n?e:new ah(yh(yh({},e.calculatedEntitlement),{accessDeniedReason:t}),e.usageData)},e}(),bh=function(){function e(){this.transformations=[new gh,new vh]}return e.prototype.transform=function(e){for(var t=e,n=0,r=this.transformations;n<r.length;n++)t=r[n].transform(t);return t},e}(),Eh=function(){function e(e){this.query=e}return e.prototype.transform=function(e){var t=e.get(this.query);if(!t)return lh.empty();var n=this.getCreditRateDependency(t,e);return lh.fromEntitlements((0,Wu.compact)([t,n]))},e.prototype.getCreditRateDependency=function(e,t){if(sh(e)){var n=e.calculatedEntitlement.creditRate;if(n)return t.get({type:we.Credit,id:n.currencyId})}},e}(),_h=function(){function e(e,t,n){var r=this;this.entitlements=e,this.instrumentation=t,this.cacheMapper=n,this.freshen=new bh,this.clearCache=function(){r.entitlements.clear()}}return e.prototype.buildCacheKey=function(e,t){return t?"".concat(e,":").concat(t):e},e.prototype.waitForInitialization=function(){return Promise.resolve()},e.prototype.setCustomer=function(e){var t=e.customerId,n=e.resourceId,r=e.entitlements,i=e.accessDeniedReason,o=this.buildCacheKey(t,n),a=lh.fromInput(this.cacheMapper,r).entitlements;return this.entitlements.set(o,{entitlements:a,accessDeniedReason:fh(i)}),this.freshen.transform(a)},e.prototype.purge=function(e){var t=this;(Array.isArray(e)?e:[e]).forEach(function(e){var n=e.customerId,r=e.resourceId,i=t.buildCacheKey(n,r);t.entitlements.delete(i)})},e.prototype.getCustomerEntitlements=function(e){var t=e.customerId,n=e.resourceId;return this.getCached({customerId:t,resourceId:n})},e.prototype.updateUsage=function(e){var t,n,r=e.customerId,i=e.resourceId,o=e.entitlementReference,a=e.usage,s=this.buildCacheKey(r,i);null===(n=null===(t=this.entitlements.get(s))||void 0===t?void 0:t.entitlements)||void 0===n||n.updateUsage(o,a)},e.prototype.getCustomerEntitlement=function(e){var t=e.query,n=new Eh(t),r=this.getCached(e,n),i=r.entitlements,o=r.accessDeniedReason,a=r.cacheMiss,s=r.globalCustomerMissing;return{cacheMiss:a,accessDeniedReason:o,entitlement:a?null:(null==i?void 0:i.get(t))||null,globalCustomerMissing:s}},e.prototype.getCached=function(e,t){var n,r,i,o,a,s=e.customerId,u=e.resourceId,c=this.buildCacheKey(s,u),l=this.entitlements.get(c)||null;if(!l)return null===(r=(n=this.instrumentation).trackMiss)||void 0===r||r.call(n,{customerId:s,resourceId:u}),void 0===a&&(a=!1),{cacheMiss:!0,entitlements:null,accessDeniedReason:null,globalCustomerMissing:a};var p=l.entitlements,d=l.accessDeniedReason,f=t?t.transform(p):p,h=this.freshen.transform(f);return null===(o=(i=this.instrumentation).trackHit)||void 0===o||o.call(i,{customerId:s,resourceId:u}),ph(h,d)},e}(),Ih=function(e){return e?new Date(e):void 0},Sh={type:"BOOLEAN",isFallback:!0,hasAccess:!1,accessDeniedReason:R.Unknown},Th={type:"NUMERIC",isFallback:!0,hasAccess:!1,isUnlimited:!1,accessDeniedReason:R.Unknown},Ch={type:"METERED",isFallback:!0,hasAccess:!1,isUnlimited:!1,hasSoftLimit:!1,currentUsage:0,requestedUsage:1,accessDeniedReason:R.Unknown},wh={type:"ENUM",isFallback:!0,hasAccess:!1,enumValues:[],accessDeniedReason:R.Unknown},Ph={isFallback:!0,hasAccess:!1,accessDeniedReason:R.Unknown,currency:{currencyId:""},usageLimit:0,currentUsage:0,remaining:0,hasSoftLimit:!1},Dh=function(){function e(e){Object.assign(this,e)}return e.prototype.getActiveSubscriptions=function(){return this.subscriptions.filter(function(e){return e.status===tn.Active})},e.prototype.getActiveTrials=function(){return this.subscriptions.filter(function(e){return e.status===tn.InTrial})},e.prototype.getActivePromotionalEntitlements=function(){return this.promotionalEntitlements.filter(function(e){return e.status===wt.Active})},e}(),Ah=function(){function e(){}return e.decideEntitlementPolicy=function(e){var t=e.entitlementType,n=e.accessDeniedReason,r=e.entitlement,i=e.requestedUsage,o=void 0===i?0:i,a=e.requestedValues,s=void 0===a?[]:a;return r?r.calculatedEntitlement.accessDeniedReason?{hasAccess:!1,accessDeniedReason:r.calculatedEntitlement.accessDeniedReason}:uh(r)?this.decideCreditAccess(r):sh(r)?this.decideFeatureAccess(r,o,s):{hasAccess:!1,accessDeniedReason:R.NoFeatureEntitlementInSubscription}:n?{accessDeniedReason:n,hasAccess:!1}:{hasAccess:!1,accessDeniedReason:this.getNotFoundReason(t)}},e.getNotFoundReason=function(e){return e===we.Feature?R.NoFeatureEntitlementInSubscription:R.EntitlementNotFound},e.decideFeatureAccess=function(e,t,n){var r=e.calculatedEntitlement.feature,i=r.featureType,o=r.meterType;switch(i){case We.Boolean:return{hasAccess:!0};case We.Enum:var a=(0,Wu.difference)(n,e.calculatedEntitlement.enumValues||[]);return(0,Wu.isEmpty)(a)?{hasAccess:!0}:{hasAccess:!1,accessDeniedReason:R.RequestedValuesMismatch};case We.Number:if(o===ot.None)return{hasAccess:!0};if(e.calculatedEntitlement.hasUnlimitedUsage||e.calculatedEntitlement.hasSoftLimit)return{hasAccess:!0};var s=e.calculatedEntitlement.usageLimit||0,u=e.usageData.currentUsage;return this.decideUsageBasedAccess(s,u,t)}},e.decideCreditAccess=function(e){if(e.calculatedEntitlement.hasSoftLimit)return{hasAccess:!0};var t=e.calculatedEntitlement.usageLimit,n=e.usageData.currentUsage;return this.decideUsageBasedAccess(t,n,1)},e.decideUsageBasedAccess=function(e,t,n){return t+n<=e?{hasAccess:!0}:{hasAccess:!1,accessDeniedReason:R.RequestedUsageExceedingLimit}},e}(),Oh=function(){return Oh=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},Oh.apply(this,arguments)},Nh=function(){function e(){var e=this;this.mapSlimCustomer=function(e){return{id:e.refId,name:e.name||void 0,email:e.email||void 0,billingId:e.billingId||void 0,createdAt:new Date(e.createdAt),updatedAt:new Date(e.updatedAt),metadata:e.additionalMetaData,awsMarketplaceCustomerId:e.awsMarketplaceCustomerId}},this.mapProvisionedCustomer=function(t){var n=e.mapSlimCustomer(t.provisionCustomer.customer),r=t.provisionCustomer.subscription?e.mapSlimSubscription(t.provisionCustomer.subscription):void 0;return{customer:n,subscriptionDecisionStrategy:t.provisionCustomer.subscriptionDecisionStrategy,subscription:r}},this.mapProvisionedSubscriptionResult=function(t){var n=t.provisionSubscription,r=n.subscription,i=n.status,o=n.checkoutUrl;return{subscription:r?e.mapSlimSubscription(r):void 0,checkoutUrl:o,provisionStatus:i}},this.mapSlimSubscription=function(t){var n,r,i=(t.prices||[])[0],o=t.totalPrice;return{id:t.refId,resource:t.resource?e.mapResource(t.resource):null,planId:t.plan.refId,status:t.status,addons:(null===(n=t.addons)||void 0===n?void 0:n.map(function(e){return{addonId:e.addon.refId,quantity:e.quantity}}))||[],addonIds:(null===(r=t.addons)||void 0===r?void 0:r.map(function(e){return e.addon.refId}))||[],customerId:t.customer.refId,metadata:t.additionalMetaData,billingId:t.billingId||void 0,billingLinkUrl:t.billingLinkUrl||void 0,latestInvoice:e.mapLatestInvoice(t.latestInvoice),paymentCollection:t.paymentCollection,prices:e.getSubscriptionPrices(t),totalPrice:o,price:i&&o&&i.price?e.mapTotalPrice(i.price,o,i.usageLimit):null,pricingType:t.pricingType,effectiveEndDate:Ih(t.effectiveEndDate),experimentInfo:(0,Wu.omit)(t.experimentInfo,"__typename"),billingSyncError:t.billingSyncError||void 0}},this.mapApplySubscriptionResults=function(t,n){var r=t.applySubscription.subscription;return{subscription:r?e.mapSlimSubscription(Oh(Oh({},r),{customer:{id:"",refId:n}})):void 0}},this.mapFullCustomer=function(t){var n;return new Dh(Oh(Oh({},e.mapSlimCustomer(t)),{alreadyTrialPlans:(null===(n=t.trialedPlans)||void 0===n?void 0:n.map(function(e){return{planId:e.planRefId,productId:e.productRefId}}))||[],hasPaymentMethod:t.hasPaymentMethod,paymentMethodDetails:e.mapPaymentDetails(t),subscriptions:(0,Wu.map)(t.subscriptions,function(t){return e.mapFullSubscription(t)}),coupon:t.coupon?e.mapCoupon(t.coupon):void 0,promotionalEntitlements:(0,Wu.map)(t.promotionalEntitlements,function(t){return e.mapPromotionalEntitlement(t)}),experimentInfo:(0,Wu.omit)(t.experimentInfo,"__typename")}))}}return e.prototype.mapEntitlement=function(e,t,n,r){if(sh(e))return this.mapFeatureEntitlement(e,t,n,r);if(uh(e))return this.mapCreditEntitlement(e,t);throw new Error("Unknown entitlement type: ".concat(e.calculatedEntitlement.type))},e.prototype.mapFeatureEntitlement=function(e,t,n,r){var i=e.calculatedEntitlement;if(!i.feature)return this.mapBooleanEntitlement(e,t);var o=i.feature,a=o.featureType,s=o.meterType,u=a===We.Number&&(s===ot.Incremental||s===ot.Fluctuating);switch(a){case We.Boolean:return this.mapBooleanEntitlement(e,t);case We.Enum:return this.mapEnumEntitlement(e,t,r);case We.Number:return u?this.mapMeteredEntitlement(e,t,n):this.mapNumericEntitlement(e,t)}},e.prototype.mapBooleanEntitlement=function(e,t){return{type:"BOOLEAN",isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,feature:e.calculatedEntitlement.feature?Oh(Oh({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapEnumEntitlement=function(e,t,n){var r;return{type:"ENUM",isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,feature:e.calculatedEntitlement.feature?Oh(Oh({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0,enumValues:null!==(r=e.calculatedEntitlement.enumValues)&&void 0!==r?r:[],requestedValues:n}},e.prototype.mapNumericEntitlement=function(e,t){var n=e.calculatedEntitlement,r=n.hasUnlimitedUsage,i=n.usageLimit;return{type:"NUMERIC",isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:r,value:null!=i?i:void 0,feature:e.calculatedEntitlement.feature?Oh(Oh({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapMeteredEntitlement=function(e,t,n){var r=e.calculatedEntitlement,i=r.hasUnlimitedUsage,o=r.usageLimit,a=r.hasSoftLimit,s=r.resetPeriod,u=r.usagePeriodAnchor,c=e.usageData,l=c.currentUsage,p=c.usagePeriodStart,d=c.usagePeriodEnd;return{type:"METERED",isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:i,hasSoftLimit:!!a,usageLimit:null!=o?o:void 0,currentUsage:l,requestedUsage:n||0,resetPeriod:null!=s?s:void 0,usagePeriodAnchor:Ih(u),usagePeriodStart:Ih(p),usagePeriodEnd:Ih(d),nextResetDate:Ih(d),feature:e.calculatedEntitlement.feature?Oh(Oh({},e.calculatedEntitlement.feature),{meterType:e.calculatedEntitlement.feature.meterType||void 0,isMetered:!0}):void 0}},e.prototype.mapCreditEntitlement=function(e,t){var n=e.calculatedEntitlement,r=n.currency,i=n.usageLimit,o=n.hasSoftLimit,a=e.usageData,s=a.currentUsage,u=a.usagePeriodEnd,c=Math.max(i-s,0);return{hasAccess:t.hasAccess,isFallback:!1,accessDeniedReason:t.accessDeniedReason,currency:r,usageLimit:i,currentUsage:s,remaining:c,hasSoftLimit:null!=o&&o,usagePeriodEnd:Ih(u)}},e.prototype.getSubscriptionPrices=function(e){var t=this;return e.prices?e.prices.filter(function(e){return!!e.price}).map(function(e){return t.mapPrice(e.price,e.usageLimit)}):[]},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.mapPaymentDetails=function(e){var t=e.defaultPaymentExpirationYear,n=e.defaultPaymentExpirationMonth,r=e.defaultPaymentMethodLast4Digits;if((0,Wu.some)([r,n,t],function(e){return e}))return{expirationMonth:n,expirationYear:t,last4Digits:r}},e.prototype.mapCoupon=function(e){return{id:e.refId,name:e.name,description:e.description,metadata:e.additionalMetaData,discountValue:e.discountValue,percentOff:e.percentOff,amountsOff:e.amountsOff}},e.prototype.mapPrice=function(e,t){var n=e.feature,r=e.price,i=e.billingId,o=e.billingModel,a=e.billingPeriod,s=e.minUnitQuantity,u=e.maxUnitQuantity,c=e.tiers,l=e.tiersMode,p=e.billingCountryCode,d=e.billingCadence,f=e.blockSize,h=e.topUpCustomCurrencyId,m=e.customCurrency,g={pricingModel:o,billingPeriod:a,billingCadence:d,billingId:i,amount:r?r.amount:null,currency:this.getPriceCurrency(e),tiers:c,tiersMode:l,minUnitQuantity:s,maxUnitQuantity:u,billingCountryCode:p,blockSize:f,creditRate:e.creditRate?{amount:e.creditRate.amount}:null,topUpCustomCurrencyId:h,customCurrency:m};return n&&(g.feature={featureId:n.refId,displayName:n.displayName,description:n.description,units:n.featureUnits,unitsPlural:n.featureUnitsPlural,unitQuantity:t}),g},e.prototype.mapPlan=function(e,t){var n,r,i=this;return void 0===t&&(t=0),{id:e.refId,order:t,billingId:e.billingId,displayName:e.displayName,description:e.description,basePlan:e.basePlan?{id:e.basePlan.refId,displayName:e.basePlan.displayName}:void 0,entitlements:(0,Wu.map)(e.entitlements,function(e){return i.mapPackageEntitlement(e)}),inheritedEntitlements:(0,Wu.map)(e.inheritedEntitlements,function(e){return i.mapPackageEntitlement(e)}),packageEntitlements:null!==(n=e.packageEntitlements)&&void 0!==n?n:[],inheritedPackageEntitlements:null!==(r=e.inheritedPackageEntitlements)&&void 0!==r?r:[],pricePoints:(0,Wu.map)(e.prices,function(e){return i.mapPrice(e)}),pricingType:e.pricingType,defaultTrialConfig:this.mapDefaultTrialConfig(e.defaultTrialConfig),compatibleAddons:this.mapCompatibleAddons(e),compatiblePackageGroups:this.mapCompatiblePackageGroups(e),product:{id:e.product.refId,displayName:e.product.displayName,description:e.product.description,metadata:e.product.additionalMetaData,awsMarketplaceProductId:e.product.awsMarketplaceProductId,downgradePlan:e.product.productSettings.downgradePlan?{id:e.product.productSettings.downgradePlan.refId,displayName:e.product.productSettings.downgradePlan.displayName}:void 0},metadata:e.additionalMetaData,awsMarketplacePlanDimension:e.awsMarketplacePlanDimension}},e.prototype.mapProduct=function(e){return{id:e.refId,displayName:e.displayName,description:e.description,metadata:e.additionalMetaData,downgradePlan:e.productSettings.downgradePlan?{id:e.productSettings.downgradePlan.refId,displayName:e.productSettings.downgradePlan.displayName}:void 0}},e.prototype.mapProducts=function(e){var t=this;return e.products.edges.map(function(e){return e.node}).map(function(e){return t.mapProduct(e)})},e.prototype.mapDefaultTrialConfig=function(e){if(e)return{duration:null==e?void 0:e.duration,units:null==e?void 0:e.units,budget:e.budget?{limit:e.budget.limit}:void 0}},e.prototype.mapCompatibleAddons=function(e){var t=this;if(e.pricingType===_t.Free||!e.compatibleAddons)return[];var n=e.compatibleAddons;return(e.pricingType===_t.Paid?n.filter(function(e){return e.pricingType===_t.Paid}):n).map(function(e){return t.mapAddon(e)})},e.prototype.mapPackageEntitlement=function(e){var t=e.feature;return{usageLimit:e.usageLimit||0,hasSoftLimit:e.hasSoftLimit,feature:{id:t.refId,featureType:t.featureType,description:t.description||"",meterType:t.meterType||void 0,units:t.featureUnits||void 0,unitsPlural:t.featureUnitsPlural||void 0,displayName:t.displayName,isMetered:oh(t),metadata:t.additionalMetaData},hasUnlimitedUsage:e.hasUnlimitedUsage,resetPeriod:e.resetPeriod,hiddenFromWidgets:e.hiddenFromWidgets,displayNameOverride:e.displayNameOverride,isGranted:e.isGranted}},e.prototype.mapFullSubscriptions=function(e){var t=this;return e.map(function(e){return t.mapFullSubscription(e)})},e.prototype.mapFullSubscription=function(e){var t,n=this,r=e.totalPrice,i=(e.prices||[])[0];return{id:e.refId,payingCustomer:e.payingCustomer?this.mapSlimCustomer(e.payingCustomer):null,resource:e.resource?this.mapResource(e.resource):null,status:e.status,plan:this.mapPlan(e.plan),price:i&&r&&i.price?this.mapTotalPrice(i.price,r,i.usageLimit):null,prices:this.getSubscriptionPrices(e),totalPrice:r,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:Ih(e.startDate),endDate:Ih(e.endDate),trialEndDate:Ih(e.trialEndDate),cancellationDate:Ih(e.cancellationDate),currentBillingPeriodEnd:Ih(e.currentBillingPeriodEnd),effectiveEndDate:Ih(e.effectiveEndDate),metadata:e.additionalMetaData,billingId:e.billingId||void 0,billingLinkUrl:e.billingLinkUrl||void 0,experimentInfo:(0,Wu.omit)(e.experimentInfo,"__typename"),latestInvoice:this.mapLatestInvoice(e.latestInvoice),paymentCollection:e.paymentCollection,paymentCollectionMethod:e.paymentCollectionMethod||void 0,billingSyncError:e.billingSyncError||void 0,futureUpdates:e.futureUpdates}},e.prototype.mapLatestInvoice=function(e){return e?Oh(Oh({},e),{createdAt:Ih(e.createdAt),updatedAt:Ih(e.updatedAt)}):void 0},e.prototype.mapTotalPrice=function(e,t,n){var r=e.feature,i=e.billingModel,o=e.billingPeriod,a=e.tiers,s=e.tiersMode,u={pricingModel:i,billingPeriod:o,amount:t.total.amount,grossAmount:t.subTotal.amount,currency:this.getPriceCurrency(e),tiersMode:s,tiers:a};return r&&(u.feature={featureId:r.refId,displayName:r.displayName,units:r.featureUnits,unitsPlural:r.featureUnitsPlural,unitQuantity:n}),u},e.prototype.mapDependencyAddon=function(e){return{refId:e.refId,displayName:e.displayName,description:e.description||void 0}},e.prototype.mapAddon=function(e){var t,n,r=this;return{id:e.refId,displayName:e.displayName,billingId:e.billingId,description:e.description||"",entitlements:(0,Wu.map)(e.entitlements,function(e){return r.mapPackageEntitlement(e)}),packageEntitlements:null!==(t=e.packageEntitlements)&&void 0!==t?t:[],pricePoints:(0,Wu.map)(e.prices,function(e){return r.mapPrice(e)}),pricingType:e.pricingType,metadata:e.additionalMetaData,maxQuantity:e.maxQuantity||void 0,dependencies:(null===(n=e.dependencies)||void 0===n?void 0:n.map(function(e){return r.mapDependencyAddon(e)}))||[]}},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:t.featureType,meterType:t.meterType||void 0,units:t.featureUnits||void 0,unitsPlural:t.featureUnitsPlural||void 0,isMetered:oh(t),metadata:t.additionalMetaData},hasUnlimitedUsage:e.hasUnlimitedUsage,expiresAt:e.endDate,hasExpirationDate:!!e.endDate,isVisible:e.isVisible}},e.prototype.mapReportUsageAck=function(e){var t;return{measurementId:e.id,customerId:e.customerId,resourceId:e.resourceId||void 0,featureId:e.featureId,currentUsage:null!==(t=e.currentUsage)&&void 0!==t?t:void 0,credit:e.credit?{currencyId:e.credit.currencyId,currentUsage:e.credit.currentUsage,usagePeriodEnd:Ih(e.credit.usagePeriodEnd),consumed:e.credit.consumed}:void 0,usagePeriodStart:Ih(e.usagePeriodStart),usagePeriodEnd:Ih(e.usagePeriodEnd),nextResetDate:Ih(e.usagePeriodEnd)}},e.prototype.mapConsumeCreditsResult=function(e){var t;return{customerId:e.customerId,currencyId:e.currencyId,resourceId:e.resourceId||void 0,amount:e.amount,timestamp:null!==(t=Ih(e.timestamp))&&void 0!==t?t:new Date,credit:e.credit?{currencyId:e.credit.currencyId,currentUsage:e.credit.currentUsage,usageLimit:e.credit.usageLimit,usagePeriodEnd:Ih(e.credit.usagePeriodEnd)}:void 0}},e.prototype.mapResource=function(e){return{id:e.resourceId}},e.prototype.mapPaywall=function(e){return{plans:this.mapPlans(e),configuration:null==e?void 0:e.paywall.configuration,customer:(null==e?void 0:e.paywall.customer)?this.mapSlimCustomer(null==e?void 0:e.paywall.customer):null,resource:(null==e?void 0:e.paywall.resource)?this.mapResource(null==e?void 0:e.paywall.resource):null,activeSubscriptions:(null==e?void 0:e.paywall.activeSubscriptions)?this.mapFullSubscriptions(null==e?void 0:e.paywall.activeSubscriptions):null,currency:e.paywall.currency}},e.prototype.mapPlans=function(e){var t,n=this;return((null===(t=null==e?void 0:e.paywall)||void 0===t?void 0:t.plans)||[]).map(function(e,t){return n.mapPlan(e,t)})},e.prototype.mapTaxFields=function(e){return e.tax&&e.taxDetails?{tax:this.mapMoney(e.tax),taxDetails:{displayName:e.taxDetails.displayName,percentage:e.taxDetails.percentage,inclusive:e.taxDetails.inclusive}}:{}},e.prototype.mapSubscriptionPreview=function(e){var t=e.subscription,n=e.proration,r=e.billingPeriodRange;return Oh(Oh(Oh({total:this.mapMoney(e.total),totalExcludingTax:this.mapMoney(e.totalExcludingTax),subTotal:this.mapMoney(e.subTotal)},this.mapTaxFields(e)),e.discount?{discount:this.mapDiscount(e.discount)}:{}),{billingPeriodRange:{start:r.start?new Date(r.start):void 0,end:r.end?new Date(r.end):void 0},proration:n?{credit:this.mapMoney(n.credit),debit:this.mapMoney(n.debit),netAmount:this.mapMoney(n.netAmount),prorationDate:new Date(n.prorationDate)}:void 0,subscription:t?{total:this.mapMoney(t.total),totalExcludingTax:this.mapMoney(t.totalExcludingTax),subTotal:this.mapMoney(t.subTotal),tax:this.mapMoney(t.tax)}:void 0})},e.prototype.mapCredits=function(e){return{initial:this.mapMoney(e.initial),used:this.mapMoney(e.used),remaining:this.mapMoney(e.remaining)}},e.prototype.mapSubscriptionPreviewV2=function(e){var t=e.immediateInvoice,n=e.recurringInvoice,r=e.billingPeriodRange,i=e.hasScheduledUpdates,o=e.isPlanDowngrade;return{immediateInvoice:Oh(Oh({},this.mapSubscriptionPreviewInvoice(t)),{proration:t.proration?{credit:this.mapMoney(t.proration.credit),debit:this.mapMoney(t.proration.debit),netAmount:this.mapMoney(t.proration.netAmount),prorationDate:new Date(t.proration.prorationDate),hasProrations:t.proration.hasProrations||void 0}:void 0,credits:t.credits?this.mapCredits(t.credits):void 0}),recurringInvoice:n?Oh({},this.mapSubscriptionPreviewInvoice(n)):void 0,billingPeriodRange:{start:r.start&&new Date(r.start),end:r.end&&new Date(r.end)},isPlanDowngrade:!!o,hasScheduledUpdates:!!i}},e.prototype.mapSubscriptionPreviewInvoice=function(e){return Oh(Oh({total:this.mapMoney(e.total),subTotal:this.mapMoney(e.subTotal),totalExcludingTax:this.mapMoney(e.totalExcludingTax),discount:e.discount?this.mapMoney(e.discount):void 0},e.discountDetails?{discountDetails:this.mapDiscount(e.discountDetails)}:{}),this.mapTaxFields(e))},e.prototype.mapDiscount=function(e){var t=e.type,n=e.value,r=e.durationType,i=e.durationInMonths;return Oh({type:t,value:n,durationType:r},i?{durationInMonths:i}:{})},e.prototype.mapMoney=function(e){return{amount:e.amount,currency:e.currency}},e.prototype.mapUsageHistory=function(e){return e.usageMeasurements.map(function(e){var t=e.date,n=e.value,r=e.isResetPoint;return{date:new Date(t),value:n,isResetPoint:!!r}})},e.prototype.mapCustomerStatistics=function(e){return{statistics:{activeSubscriptionsByPricingType:e.statistics?e.statistics.activeSubscriptionsByPricingType.map(function(e){return(0,Wu.omit)(e,"__typename")}):[]}}},e.prototype.getPriceCurrency=function(e){var t,n,r=e.price,i=e.tiers;return(null==r?void 0:r.currency)||(null===(t=null==i?void 0:i[0].unitPrice)||void 0===t?void 0:t.currency)||(null===(n=null==i?void 0:i[0].flatPrice)||void 0===n?void 0:n.currency)||he.Usd},e.prototype.mapCompatiblePackageGroups=function(e){var t=this;if(e.pricingType===_t.Free||!e.compatiblePackageGroups)return[];var n=e.compatiblePackageGroups,r=e.pricingType;return n.map(function(e){var n=e.packageGroupId,i=e.displayName,o=e.addons,a=e.options;return{packageGroupId:n,displayName:i,addons:t.mapCompatibleAddons({compatibleAddons:o,pricingType:r}),options:{minItems:(null==a?void 0:a.minItems)||void 0,freeItems:(null==a?void 0:a.freeItems)||void 0}}})},e}(),Rh=function(){return Rh=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},Rh.apply(this,arguments)};function Fh(e){return null!=e&&"requestedUsage"in e}function kh(e){return null!=e&&"requestedValues"in e}function xh(e){var t=e.currencyId,n=e.accessDeniedReason,r=e.fallback,i=void 0===r?{}:r,o=Rh(Rh(Rh(Rh(Rh({},Ph),{currency:{currencyId:t}}),void 0!==n&&{accessDeniedReason:n}),i),{isFallback:!0}),a=o.usageLimit,s=o.currentUsage,u=o.remaining,c=o.hasAccess?void 0:o.accessDeniedReason;return Rh(Rh({},o),{accessDeniedReason:c,remaining:"number"==typeof a&&"number"==typeof s?Math.max(a-s,0):u})}var Uh=function(){return Uh=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},Uh.apply(this,arguments)},Mh=function(){function e(e){this.modelMapper=null!=e?e:new Nh}return e.prototype.evaluateBooleanEntitlement=function(e,t,n){var r,i=Ah.decideEntitlementPolicy({entitlementType:we.Feature,accessDeniedReason:t,entitlement:e});return e&&(null==(r=e.calculatedEntitlement.feature)?void 0:r.featureType)!==We.Boolean?Uh(Uh({},n),{accessDeniedReason:R.FeatureTypeMismatch}):e?this.modelMapper.mapBooleanEntitlement(e,i):Uh(Uh({type:"BOOLEAN"},i),{isFallback:!1})},e.prototype.evaluateNumericEntitlement=function(e,t,n){var r,i=Ah.decideEntitlementPolicy({entitlementType:we.Feature,accessDeniedReason:t,entitlement:e});return e&&((null==(r=e.calculatedEntitlement.feature)?void 0:r.featureType)!==We.Number||!(0,Wu.isNil)(r.meterType)&&r.meterType!=ot.None)?Uh(Uh({},n),{accessDeniedReason:R.FeatureTypeMismatch}):e?this.modelMapper.mapNumericEntitlement(e,i):Uh(Uh({type:"NUMERIC"},i),{isFallback:!1,isUnlimited:!1})},e.prototype.evaluateMeteredEntitlement=function(e,t,n,r){var i=Ah.decideEntitlementPolicy({entitlementType:we.Feature,accessDeniedReason:t,entitlement:e,requestedUsage:r});return e&&!oh(e.calculatedEntitlement.feature)?Uh(Uh({},n),{accessDeniedReason:R.FeatureTypeMismatch}):e?this.modelMapper.mapMeteredEntitlement(e,i,r):Uh(Uh({type:"METERED"},i),{currentUsage:0,isFallback:!1,isUnlimited:!1,hasSoftLimit:!1,requestedUsage:r||0})},e.prototype.evaluateEnumEntitlement=function(e,t,n,r){var i,o=Ah.decideEntitlementPolicy({entitlementType:we.Feature,accessDeniedReason:t,entitlement:e,requestedValues:r});return e&&(null==(i=e.calculatedEntitlement.feature)?void 0:i.featureType)!==We.Enum?Uh(Uh({},n),{accessDeniedReason:R.FeatureTypeMismatch}):e?this.modelMapper.mapEnumEntitlement(e,o,r):Uh(Uh({type:"ENUM"},o),{isFallback:!1,enumValues:[],requestedValues:r||[]})},e.prototype.evaluateCreditEntitlement=function(e,t,n,r){var i=Ah.decideEntitlementPolicy({entitlementType:we.Credit,accessDeniedReason:t,entitlement:e});return e?this.modelMapper.mapCreditEntitlement(e,i):Uh(Uh({},xh({currencyId:n,accessDeniedReason:i.accessDeniedReason,fallback:r})),{hasAccess:i.hasAccess,isFallback:!!r})},e.prototype.evaluateEntitlement=function(e,t,n,r,i){var o,a=Fh(r)?r.requestedUsage:void 0,s=kh(r)?r.requestedValues:void 0,u=Ah.decideEntitlementPolicy({entitlementType:e.type,accessDeniedReason:n,entitlement:t,requestedUsage:a,requestedValues:s});return t?this.modelMapper.mapEntitlement(t,u,a,s):i?Uh(Uh({},i),{accessDeniedReason:null!==(o=u.accessDeniedReason)&&void 0!==o?o:i.accessDeniedReason,isFallback:!0}):function(e,t,n){if(e.type===we.Credit)return xh({currencyId:e.id,accessDeniedReason:n,fallback:null==t?void 0:t.fallback});var r=function(e){var t,n=null!==(t=null==e?void 0:e.fallback)&&void 0!==t?t:{};return Fh(e)?Rh(Rh({},Ch),n):kh(e)?Rh(Rh({},wh),n):function(e){var t=null==e?void 0:e.fallback;return null!=e&&null!=t&&"value"in t}(e)?Rh(Rh({},Th),n):Rh(Rh({},Sh),n)}(t),i=r.hasAccess?void 0:null!=n?n:r.accessDeniedReason;return Rh(Rh({},r),{accessDeniedReason:i,isFallback:!0})}(e,r,u.accessDeniedReason)},e}();function Lh(e){return"feature"in e}var jh=function(){return jh=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},jh.apply(this,arguments)};function Vh(e){return e?Object.keys(e).map(function(t){return jh({isFallback:!0,accessDeniedReason:R.Unknown,feature:{id:t}},e[t])}):[]}var Bh=function(){function e(e){this.loggerService=e}return e.prototype.mapEntitlement=function(e){var t=e.__typename;switch(t){case"CreditEntitlement":return this.mapCreditEntitlement(e);case"FeatureEntitlement":case"Entitlement":var n=e.feature;return n?this.mapFeatureEntitlement(e,n):(this.loggerService.error("Skipping feature entitlement without feature data"),null);default:return this.loggerService.error("Skipping unknown entitlement type: ".concat(t)),null}},e.prototype.mapCreditEntitlement=function(e){var t,n,r,i,o,a,s,u,c,l,p,d,f=null!==(n=null===(t=Ih(e.usageUpdatedAt))||void 0===t?void 0:t.getTime())&&void 0!==n?n:null;return{entitlement:new ah({type:we.Credit,currency:{currencyId:e.currency.currencyId,displayName:null!==(r=e.currency.displayName)&&void 0!==r?r:void 0,description:null!==(i=e.currency.description)&&void 0!==i?i:void 0,unitSingular:null!==(o=e.currency.unitSingular)&&void 0!==o?o:void 0,unitPlural:null!==(a=e.currency.unitPlural)&&void 0!==a?a:void 0,additionalMetaData:null!==(s=e.currency.additionalMetaData)&&void 0!==s?s:void 0},usageLimit:null!==(u=e.usageLimit)&&void 0!==u?u:0,hasSoftLimit:!!e.hasSoftLimit,accessDeniedReason:e.accessDeniedReason||null,validUntil:(null===(c=Ih(e.validUntil))||void 0===c?void 0:c.getTime())||null},{currentUsage:null!==(l=e.currentUsage)&&void 0!==l?l:0,usagePeriodStart:null,usagePeriodEnd:null!==(d=null===(p=Ih(e.usagePeriodEnd))||void 0===p?void 0:p.getTime())&&void 0!==d?d:null}),usageUpdatedAt:f}},e.prototype.mapFeatureEntitlement=function(e,t){var n,r,i,o,a,s,u,c,l,p={id:t.refId,displayName:t.displayName,description:t.description||void 0,featureType:t.featureType,meterType:t.meterType||void 0,units:t.featureUnits||"",unitsPlural:t.featureUnitsPlural||"",unitTransformation:t.unitTransformation||void 0},d=null;e.creditRate&&(d={amount:e.creditRate.amount,currencyId:e.creditRate.currencyId});var f=null!==(r=null===(n=Ih(e.usageUpdatedAt))||void 0===n?void 0:n.getTime())&&void 0!==r?r:null;return{entitlement:new ah({type:we.Feature,feature:p,usageLimit:null!==(i=e.usageLimit)&&void 0!==i?i:null,hasUnlimitedUsage:e.hasUnlimitedUsage,hasSoftLimit:!!e.hasSoftLimit,accessDeniedReason:e.accessDeniedReason||null,enumValues:e.enumValues||null,validUntil:(null===(o=Ih(e.validUntil))||void 0===o?void 0:o.getTime())||null,usagePeriodAnchor:(null===(a=Ih(e.usagePeriodAnchor))||void 0===a?void 0:a.getTime())||null,creditRate:d,resetPeriod:e.resetPeriod||null,resetPeriodConfiguration:e.resetPeriodConfiguration||null},{currentUsage:e.currentUsage||0,usagePeriodStart:null!==(u=null===(s=Ih(e.usagePeriodStart))||void 0===s?void 0:s.getTime())&&void 0!==u?u:null,usagePeriodEnd:null!==(l=null===(c=Ih(e.usagePeriodEnd))||void 0===c?void 0:c.getTime())&&void 0!==l?l:null}),usageUpdatedAt:f}},e}(),Gh=function(){function e(e){Object.assign(this,e)}return e.prototype.getActiveSubscriptions=function(){return this.subscriptions.filter(function(e){return e.status===tn.Active})},e.prototype.getActiveTrials=function(){return this.subscriptions.filter(function(e){return e.status===tn.InTrial})},e.prototype.getActivePromotionalEntitlements=function(){return this.promotionalEntitlements.filter(function(e){return e.status===wt.Active})},e}();const qh=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getEntitlementsState=function(e){return t=this,n=arguments,i=function(e,t,n){return void 0===t&&(t=!1),function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,function(r){return this.edgeApiClient&&!t?[2,this.edgeApiClient.getEntitlementsState(e,n)]:[2,this.client.query({query:ou,variables:{query:{customerId:e,resourceId:n}},fetchPolicy:"no-cache"})]})},new((r=void 0)||(r=Promise))(function(e,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r(function(e){e(n)})).then(a,s)}u((i=i.apply(t,n||[])).next())});var t,n,r,i},e}();var $h,Qh=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})},Hh=function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},zh=function(){function e(e,t,n,r,i,o,a){this.customerId=e,this.resourceId=t,this.cacheService=n,this.loggerService=o,this.onEntitlementsUpdated=a,this.evaluator=new Mh,this.loadingEntitlements=null,this.entitlementsApi=new qh(r,i)}return e.prototype.refresh=function(){return Qh(this,void 0,Promise,function(){return Hh(this,function(e){switch(e.label){case 0:return[4,this.loadEntitlements(!0)];case 1:return e.sent(),[2]}})})},Object.defineProperty(e.prototype,"isInitialized",{get:function(){return this.cacheService.isLoaded()},enumerable:!1,configurable:!0}),e.prototype.getBooleanEntitlement=function(e,t,n){var r=this.getEntitlement(we.Feature,e),i=r.entitlement,o=r.accessDeniedReason;return this.evaluator.evaluateBooleanEntitlement(i,o,t)},e.prototype.getNumericEntitlement=function(e,t,n){var r=this.getEntitlement(we.Feature,e),i=r.entitlement,o=r.accessDeniedReason;return this.evaluator.evaluateNumericEntitlement(i,o,t)},e.prototype.getMeteredEntitlement=function(e,t,n){var r=this.getEntitlement(we.Feature,e),i=r.entitlement,o=r.accessDeniedReason;return this.evaluator.evaluateMeteredEntitlement(i,o,t,null==n?void 0:n.requestedUsage)},e.prototype.getEnumEntitlement=function(e,t,n){var r=this.getEntitlement(we.Feature,e),i=r.entitlement,o=r.accessDeniedReason;return this.evaluator.evaluateEnumEntitlement(i,o,t,null==n?void 0:n.requestedValues)},e.prototype.getCreditEntitlement=function(e,t){var n=this.getEntitlement(we.Credit,e),r=n.entitlement,i=n.accessDeniedReason;return this.evaluator.evaluateCreditEntitlement(r,i,e,t)},e.prototype.loadEntitlements=function(e){return Qh(this,void 0,Promise,function(){return Hh(this,function(t){switch(t.label){case 0:this.loadingEntitlements||(this.loadingEntitlements=this.loadEntitlementsFromRemote(e)),t.label=1;case 1:return t.trys.push([1,,3,4]),[4,this.loadingEntitlements];case 2:return[2,t.sent()];case 3:return this.loadingEntitlements=null,[7];case 4:return[2]}})})},e.prototype.loadEntitlementsFromRemote=function(e){return Qh(this,void 0,void 0,function(){var t,n,r,i;return Hh(this,function(o){switch(o.label){case 0:return[4,this.entitlementsApi.getEntitlementsState(this.customerId,e,this.resourceId)];case 1:return t=o.sent(),n=t.data.entitlementsState.entitlementsV2,r=null!==(i=t.data.entitlementsState.accessDeniedReason)&&void 0!==i?i:null,this.storeFetchedEntitlementsInCache(n,r),[2]}})})},e.prototype.storeFetchedEntitlementsInCache=function(e,t){var n;this.cacheService.updateLastChecked();var r=this.cacheService.getLastUpdate(),i=this.getLastEntitlementsUpdate(e);r&&i.getTime()<r.getTime()||(this.cacheService.setCustomer({customerId:this.customerId,resourceId:null!==(n=this.resourceId)&&void 0!==n?n:null,entitlements:e,accessDeniedReason:t,entitlementsTimestamp:i.getTime()}),this.onEntitlementsUpdated(this.evaluateCustomerEntitlements()))},e.prototype.getLastEntitlementsUpdate=function(e){return(0,Wu.max)(e.flatMap(function(e){return[new Date(e.entitlementUpdatedAt),new Date(e.usageUpdatedAt)]}))||new Date},e.prototype.getEntitlement=function(e,t){var n,r=this.cacheService.getCustomerEntitlement({customerId:this.customerId,resourceId:null!==(n=this.resourceId)&&void 0!==n?n:null,query:{type:e,id:t}});return this.renewOutdatedCacheInBackground(),r},e.prototype.getCustomerEntitlements=function(){return Qh(this,void 0,Promise,function(){return Hh(this,function(e){switch(e.label){case 0:return[4,this.renewOutdatedCache()];case 1:return e.sent(),[2,this.evaluateCustomerEntitlements()]}})})},e.prototype.evaluateCustomerEntitlements=function(){var e,t=this,n=this.cacheService.getCustomerEntitlements({customerId:this.customerId,resourceId:null!==(e=this.resourceId)&&void 0!==e?e:null}),r=n.entitlements,i=n.accessDeniedReason;return r?{entitlements:r.values().map(function(e){return t.evaluator.evaluateEntitlement(e.getEntitlementQuery(),e,i)}),accessDeniedReason:i}:{entitlements:[],accessDeniedReason:i}},e.prototype.renewOutdatedCache=function(){return Qh(this,void 0,Promise,function(){return Hh(this,function(e){switch(e.label){case 0:return!this.cacheService.isLoaded()||this.cacheService.isOutdated()?[4,this.loadEntitlements()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},e.prototype.renewOutdatedCacheInBackground=function(){var e=this;this.renewOutdatedCache().catch(function(t){e.loggerService.error("Failed to renew cache in background",t)})},e}(),Wh=n(1434),Zh=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yh=function(e){function t(){return e.call(this)||this}return Zh(t,e),t}(Wh.TypedEmitter);!function(e){e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="READY",e.FAILED="FAILED"}($h||($h={}));var Kh=function(){function e(e){this.eventEmitter=e,this.initializationPromise=null,this.initializationStatus=$h.IN_PROGRESS,this.initFailureError=null}return e.prototype.getInitializationPromise=function(){var e=this;return this.initializationPromise?this.initializationPromise:this.initializationStatus===$h.SUCCESS?Promise.resolve():this.initializationStatus===$h.FAILED?Promise.reject(this.initFailureError):(this.initializationPromise=new Promise(function(t,n){e.eventEmitter.once("initializeSuccessfully",function(){t()}),e.eventEmitter.once("initializeFailed",function(e){n(e)})}),this.initializationPromise)},e.prototype.signalSuccessInit=function(){this.initializationStatus=$h.SUCCESS,this.eventEmitter.emit("initializeSuccessfully")},e.prototype.signalFailedInit=function(e){this.initializationStatus=$h.FAILED,this.initFailureError=e,this.eventEmitter.emit("initializeFailed",e)},e}();const Jh=Object.prototype.toString;function Xh(e){switch(Jh.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return cm(e,Error)}}function em(e,t){return Jh.call(e)===`[object ${t}]`}function tm(e){return em(e,"ErrorEvent")}function nm(e){return em(e,"DOMError")}function rm(e){return em(e,"String")}function im(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function om(e){return null===e||im(e)||"object"!=typeof e&&"function"!=typeof e}function am(e){return em(e,"Object")}function sm(e){return"undefined"!=typeof Event&&cm(e,Event)}function um(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function cm(e,t){try{return e instanceof t}catch(e){return!1}}function lm(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function pm(e){return e&&e.Math==Math?e:void 0}const dm="object"==typeof globalThis&&pm(globalThis)||"object"==typeof window&&pm(window)||"object"==typeof self&&pm(self)||"object"==typeof n.g&&pm(n.g)||function(){return this}()||{};function fm(){return dm}function hm(e,t,n){const r=n||dm,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const mm=fm();function gm(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let o=0,a=0;const s=" > ",u=s.length;let c;const l=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&o++<r&&(c=ym(n,l),!("html"===c||o>1&&a+i.length*u+c.length>=p));)i.push(c),a+=c.length,n=n.parentNode;return i.reverse().join(s)}catch(e){return"<unknown>"}}function ym(e,t){const n=e,r=[];let i,o,a,s,u;if(!n||!n.tagName)return"";if(mm.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(c&&c.length)c.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&rm(i))for(o=i.split(/\s+/),u=0;u<o.length;u++)r.push(`.${o[u]}`);const l=["aria-label","type","name","title","alt"];for(u=0;u<l.length;u++)a=l[u],s=n.getAttribute(a),s&&r.push(`[${a}="${s}"]`);return r.join("")}const vm="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,bm=["debug","info","warn","error","log","assert","trace"],Em={};function _m(e){if(!("console"in dm))return e();const t=dm.console,n={},r=Object.keys(Em);r.forEach(e=>{const r=Em[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}const Im=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return vm?bm.forEach(n=>{t[n]=(...t)=>{e&&_m(()=>{dm.console[n](`Sentry Logger [${n}]:`,...t)})}}):bm.forEach(e=>{t[e]=()=>{}}),t}();function Sm(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Tm(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const r=e[t];try{lm(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Cm(e,t=[],n=!1){return t.some(t=>function(e,t,n=!1){return!!rm(e)&&(em(t,"RegExp")?t.test(e):!!rm(t)&&(n?e===t:e.includes(t)))}(e,t,n))}function wm(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"==typeof i&&Dm(i,r),e[t]=i}function Pm(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){vm&&Im.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Dm(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Pm(e,"__sentry_original__",t)}catch(e){}}function Am(e){return e.__sentry_original__}function Om(e){if(Xh(e))return{message:e.message,name:e.name,stack:e.stack,...Rm(e)};if(sm(e)){const t={type:e.type,target:Nm(e.target),currentTarget:Nm(e.currentTarget),...Rm(e)};return"undefined"!=typeof CustomEvent&&cm(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Nm(e){try{return"undefined"!=typeof Element&&cm(e,Element)?gm(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function Rm(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Fm(e){return km(e,new Map)}function km(e,t){if(function(e){if(!am(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=km(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach(e=>{r.push(km(e,t))}),r}return e}function xm(){const e=dm,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function Um(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Mm(e){const{message:t,event_id:n}=e;if(t)return t;const r=Um(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Lm(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function jm(e,t){const n=Um(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function Vm(e){if(e&&e.__sentry_captured__)return!0;try{Pm(e,"__sentry_captured__",!0)}catch(e){}return!1}function Bm(){return Date.now()/1e3}const Gm=function(){const{performance:e}=dm;if(!e||!e.now)return Bm;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();let qm;(()=>{const{performance:e}=dm;if(!e||!e.now)return void(qm="none");const t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i<t,a=e.timing&&e.timing.navigationStart,s="number"==typeof a?Math.abs(a+n-r):t;o||s<t?i<=s?(qm="timeOrigin",e.timeOrigin):qm="navigationStart":qm="dateNow"})();const $m="production",Qm="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var Hm;function zm(e){return new Zm(t=>{t(e)})}function Wm(e){return new Zm((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(Hm||(Hm={}));class Zm{constructor(e){Zm.prototype.__init.call(this),Zm.prototype.__init2.call(this),Zm.prototype.__init3.call(this),Zm.prototype.__init4.call(this),this._state=Hm.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Zm((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 Zm((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)})})}__init(){this._resolve=e=>{this._setResult(Hm.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Hm.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===Hm.PENDING&&(um(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Hm.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===Hm.RESOLVED&&e[1](this._value),this._state===Hm.REJECTED&&e[2](this._value),e[0]=!0)})}}}function Ym(){return hm("globalEventProcessors",()=>[])}function Km(e){Ym().push(e)}function Jm(e,t,n,r=0){return new Zm((i,o)=>{const a=e[r];if(null===t||"function"!=typeof a)i(t);else{const s=a({...t},n);Qm&&a.id&&null===s&&Im.log(`Event processor "${a.id}" dropped event`),um(s)?s.then(t=>Jm(e,t,n,r+1).then(i)).then(null,o):Jm(e,s,n,r+1).then(i).then(null,o)}})}function Xm(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||Gm(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:xm()),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{const t=e.timestamp-e.started;e.duration=t>=0?t: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)}function eg(e){return e.transaction}function tg(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:a,tags:s,origin:u}=ng(e);return Fm({data:r,op:i,parent_span_id:o,span_id:t,status:a,tags:s,trace_id:n,origin:u})}function ng(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function rg(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},a=Fm({environment:r.environment||$m,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}function ig(e){const t=Ng();if(!t)return{};const n=rg(ng(e).trace_id||"",t,yg().getScope()),r=eg(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:o,source:a}=r.metadata;null!=o&&(n.sample_rate=`${o}`);const s=ng(r);return a&&"url"!==a&&(n.transaction=s.description),n.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return Boolean(1&t)}(r)),t.emit&&t.emit("createDsc",n),n}function og(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;!function(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,u=Fm(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const c=Fm(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const l=Fm(i);l&&Object.keys(l).length&&(e.user={...l,...e.user});const p=Fm(o);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts}),a&&(e.level=a),s&&(e.transaction=s)}(e,t),r&&function(e,t){e.contexts={trace:tg(t),...e.contexts};const n=eg(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:ig(t),...e.sdkProcessingMetadata};const r=ng(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,r),function(e,t){var n;e.fingerprint=e.fingerprint?(n=e.fingerprint,Array.isArray(n)?n:[n]):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,i),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,o)}function ag(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:u,fingerprint:c,eventProcessors:l,attachments:p,propagationContext:d,transactionName:f,span:h}=t;sg(e,"extra",n),sg(e,"tags",r),sg(e,"user",i),sg(e,"contexts",o),sg(e,"sdkProcessingMetadata",s),a&&(e.level=a),f&&(e.transactionName=f),h&&(e.span=h),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...d}}function sg(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}let ug;class cg{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=lg()}static clone(e){return e?e.clone():new cg}clone(){const e=new cg;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Xm(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[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;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;const t="function"==typeof e?e(this):e;if(t instanceof cg){const e=t.getScopeData();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.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if(am(t)){const t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)}return 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._propagationContext=lg(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:Bm(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:i,_user:o,_level:a,_fingerprint:s,_eventProcessors:u,_propagationContext:c,_sdkProcessingMetadata:l,_transactionName:p,_span:d}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:i,user:o,level:a,fingerprint:s||[],eventProcessors:u,propagationContext:c,sdkProcessingMetadata:l,transactionName:p,span:d}}applyToEvent(e,t={},n=[]){return og(e,this.getScopeData()),Jm([...n,...Ym(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:xm();if(!this._client)return Im.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:xm();if(!this._client)return Im.warn("No client configured on scope - will not capture message!"),r;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:xm();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Im.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function lg(){return{traceId:xm(),spanId:xm().substring(16)}}const pg="7.120.4",dg=parseFloat(pg),fg=100;class hg{constructor(e,t,n,r=dg){let i,o;this._version=r,t?i=t:(i=new cg,i.setClient(e)),n?o=n:(o=new cg,o.setClient(e)),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=o}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(e){throw this.popScope(),e}return um(n)?n.then(e=>(this.popScope(),e),e=>{throw this.popScope(),e}):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:xm(),r=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:xm(),i=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:xm();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=fg}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const a={timestamp:Bm(),...e},s=i?_m(()=>i(a,t)):a;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,o))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=gg(this);try{e(this)}finally{gg(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Qm&&Im.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return Qm&&!n&&(this.getClient()?Im.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):Im.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&function(e){let t={};"ok"===e.status&&(t={status:"exited"}),Xm(e,t)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=$m}=n&&n.getOptions()||{},{userAgent:o}=dm.navigator||{},a=function(e){const t=Gm(),n={sid:xm(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Fm({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,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Xm(n,e),n}({release:r,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),s=t.getSession&&t.getSession();return s&&"ok"===s.status&&Xm(s,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=mg().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);Qm&&Im.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function mg(){return dm.__SENTRY__=dm.__SENTRY__||{extensions:{},hub:void 0},dm}function gg(e){const t=mg(),n=vg(t);return bg(t,e),n}function yg(){const e=mg();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=mg()){return t=e,!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)&&!vg(e).isOlderThan(dg)||bg(e,new hg),vg(e);var t}(e)}function vg(e){return hm("hub",()=>new hg,e)}function bg(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}const Eg=/\(error: (.*)\)/,_g=/captureMessage|captureException/;const Ig="<anonymous>";function Sg(e){try{return e&&"function"==typeof e&&e.name||Ig}catch(e){return Ig}}function Tg(e,t=100,n=1/0){try{return wg("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Cg(e,t=3,n=102400){const r=Tg(e,t);return i=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?Cg(e,t-1,n):r;var i}function wg(e,t,r=1/0,i=1/0,o=function(){const 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[a,s]=o;if(null==t||["number","boolean","string"].includes(typeof t)&&("number"!=typeof(u=t)||u==u))return t;var u;const c=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(lm(t))return"[VueViewModel]";if(function(e){return am(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${Sg(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;const l="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:r;if(0===l)return c.replace("object ","");if(a(t))return"[Circular ~]";const p=t;if(p&&"function"==typeof p.toJSON)try{return wg("",p.toJSON(),l-1,i,o)}catch(e){}const d=Array.isArray(t)?[]:{};let f=0;const h=Om(t);for(const e in h){if(!Object.prototype.hasOwnProperty.call(h,e))continue;if(f>=i){d[e]="[MaxProperties ~]";break}const t=h[e];d[e]=wg(e,t,l-1,i,o),f++}return s(t),d}const Pg=new WeakMap;const Dg=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Ag(e,t){return yg().captureEvent(e,t)}function Og(e,t){yg().addBreadcrumb(e,t)}function Ng(){return yg().getClient()}const Rg=[];function Fg(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function kg(e,t,n){if(n[t.name])Qm&&Im.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===Rg.indexOf(t.name)&&(t.setupOnce(Km,yg),Rg.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=(t,r)=>n(t,r,e);r.id=t.name,e.addEventProcessor(r)}Qm&&Im.log(`Integration installed: ${t.name}`)}}function xg(e,t){const n=function(...e){return t(...e)};return n.id=e,n}let Ug;const Mg="FunctionToString",Lg=new WeakMap,jg=xg(Mg,()=>({name:Mg,setupOnce(){Ug=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Am(this),n=Lg.has(Ng())&&void 0!==t?t:this;return Ug.apply(n,e)}}catch(e){}},setup(e){Lg.set(e,!0)}})),Vg=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Bg=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Gg="InboundFilters",qg=xg(Gg,(e={})=>({name:Gg,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),o=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Vg],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Bg],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,i);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(Qm&&Im.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Mm(e)}`),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){const t=[];let n;e.message&&t.push(e.message);try{n=e.exception.values[e.exception.values.length-1]}catch(e){}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),Qm&&0===t.length&&Im.error(`Could not extract message for event ${Mm(e)}`),t}(e).some(e=>Cm(e,t))}(e,t.ignoreErrors)?(Qm&&Im.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Mm(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&Cm(n,t)}(e,t.ignoreTransactions)?(Qm&&Im.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Mm(e)}`),!0):function(e,t){if(!t||!t.length)return!1;const n=$g(e);return!!n&&Cm(n,t)}(e,t.denyUrls)?(Qm&&Im.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Mm(e)}.\nUrl: ${$g(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;const n=$g(e);return!n||Cm(n,t)}(e,t.allowUrls)&&(Qm&&Im.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Mm(e)}.\nUrl: ${$g(e)}`),!0)}(t,o)?null:t}}));function $g(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return Qm&&Im.error(`Cannot extract url for event ${Mm(e)}`),null}}function Qg(e,t,n=250,r,i,o,a){if(!(o.exception&&o.exception.values&&a&&cm(a.originalException,Error)))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;var u,c;s&&(o.exception.values=(u=Hg(e,t,i,a.originalException,r,o.exception.values,s,0),c=n,u.map(e=>(e.value&&(e.value=Sm(e.value,c)),e))))}function Hg(e,t,n,r,i,o,a,s){if(o.length>=n+1)return o;let u=[...o];if(cm(r[i],Error)){zg(a,s);const o=e(t,r[i]),c=u.length;Wg(o,i,c,s),u=Hg(e,t,n,r[i],i,[o,...u],o,c)}return Array.isArray(r.errors)&&r.errors.forEach((r,o)=>{if(cm(r,Error)){zg(a,s);const c=e(t,r),l=u.length;Wg(c,`errors[${o}]`,l,s),u=Hg(e,t,n,r,i,[c,...u],c,l)}}),u}function zg(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function Wg(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Zg(e,t){const n={type:t.name||t.constructor.name,value:t.message},r=function(e,t){return e(t.stack||"",1)}(e,t);return r.length&&(n.stacktrace={frames:r}),n}const Yg="LinkedErrors",Kg=xg(Yg,(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:Yg,setupOnce(){},preprocessEvent(e,r,i){const o=i.getOptions();Qg(Zg,o.stackParser,o.maxValueLength,n,t,e,r)}}}),Jg=s,Xg=dm;let ey=0;function ty(){return ey>0}function ny(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(Am(e))return e}catch(t){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=r.map(e=>ny(e,t));return e.apply(this,i)}catch(e){throw ey++,setTimeout(()=>{ey--}),function(...e){const t=yg();if(2===e.length){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}t.withScope(e[0])}(n=>{var i;n.addEventProcessor(e=>(t.mechanism&&(Lm(e,void 0,void 0),jm(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),i=e,yg().captureException(i,function(e){if(e)return function(e){return e instanceof cg||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>Dg.includes(e))}(e)?{captureContext:e}:e}(void 0))}),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}Dm(r,e),Pm(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}const ry={},iy={};function oy(e,t){ry[e]=ry[e]||[],ry[e].push(t)}function ay(e,t){iy[e]||(t(),iy[e]=!0)}function sy(e,t){const n=e&&ry[e];if(n)for(const r of n)try{r(t)}catch(t){vm&&Im.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Sg(r)}\nError:`,t)}}let uy=null;function cy(){uy=dm.onerror,dm.onerror=function(e,t,n,r,i){return sy("error",{column:r,error:i,line:n,msg:e,url:t}),!(!uy||uy.__SENTRY_LOADER__)&&uy.apply(this,arguments)},dm.onerror.__SENTRY_INSTRUMENTED__=!0}let ly=null;function py(){ly=dm.onunhandledrejection,dm.onunhandledrejection=function(e){return sy("unhandledrejection",e),!(ly&&!ly.__SENTRY_LOADER__)||ly.apply(this,arguments)},dm.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const dy="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function fy(e,t){const n=my(e,t),r={type:t&&t.name,value:yy(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function hy(e,t){return{exception:{values:[fy(e,t)]}}}function my(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(gy.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const gy=/Minified React error #\d+;/i;function yy(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function vy(e,t,n,r,i){let o;if(tm(t)&&t.error)return hy(e,t.error);if(nm(t)||em(t,"DOMException")){const i=t;if("stack"in t)o=hy(e,t);else{const t=i.name||(nm(i)?"DOMError":"DOMException"),a=i.message?`${t}: ${i.message}`:t;o=by(e,a,n,r),Lm(o,a)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return Xh(t)?hy(e,t):am(t)||sm(t)?(o=function(e,t,n,r){const i=Ng(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:sm(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Ey(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Cg(t,o)}};if(n){const t=my(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,i),jm(o,{synthetic:!0}),o):(o=by(e,t,n,r),Lm(o,`${t}`,void 0),jm(o,{synthetic:!0}),o)}function by(e,t,n,r){const i={};if(r&&n){const r=my(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(im(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function Ey(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(Om(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Sm(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:Sm(r,t)}return""}(e),r=t?"promise rejection":"exception";return tm(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:sm(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}const _y="GlobalHandlers",Iy=xg(_y,(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:_y,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){!function(){const t="error";oy(t,t=>{const{stackParser:n,attachStacktrace:r}=Cy();if(Ng()!==e||ty())return;const{msg:i,url:o,line:a,column:s,error:u}=t,c=void 0===u&&rm(i)?function(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=tm(e)?e.message:e,a="Error";const s=o.match(i);s&&(a=s[1],o=s[2]);return Sy({exception:{values:[{type:a,value:o}]}},t,n,r)}(i,o,a,s):Sy(vy(n,u||i,void 0,r,!1),o,a,s);c.level="error",Ag(c,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}),ay(t,cy)}()}(e),Ty("onerror")),t.onunhandledrejection&&(function(e){!function(){const t="unhandledrejection";oy(t,t=>{const{stackParser:n,attachStacktrace:r}=Cy();if(Ng()!==e||ty())return;const i=function(e){if(om(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return e}(t),o=om(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:vy(n,i,void 0,r,!0);o.level="error",Ag(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}),ay(t,py)}()}(e),Ty("onunhandledrejection"))}}});function Sy(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,p=rm(t)&&t.length>0?t:function(){try{return mm.document.location.href}catch(e){return""}}();return 0===u.length&&u.push({colno:c,filename:p,function:"?",in_app:!0,lineno:l}),e}function Ty(e){dy&&Im.log(`Global Handler attached: ${e}`)}function Cy(){const e=Ng();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const wy=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Py="TryCatch",Dy=xg(Py,(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Py,setupOnce(){t.setTimeout&&wm(Xg,"setTimeout",Ay),t.setInterval&&wm(Xg,"setInterval",Ay),t.requestAnimationFrame&&wm(Xg,"requestAnimationFrame",Oy),t.XMLHttpRequest&&"XMLHttpRequest"in Xg&&wm(XMLHttpRequest.prototype,"send",Ny);const e=t.eventTarget;e&&(Array.isArray(e)?e:wy).forEach(Ry)}}});function Ay(e){return function(...t){const n=t[0];return t[0]=ny(n,{mechanism:{data:{function:Sg(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Oy(e){return function(t){return e.apply(this,[ny(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Sg(e)},handled:!1,type:"instrument"}})])}}function Ny(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&wm(n,e,function(t){const n={mechanism:{data:{function:e,handler:Sg(t)},handled:!1,type:"instrument"}},r=Am(t);return r&&(n.mechanism.data.handler=Sg(r)),ny(t,n)})}),e.apply(this,t)}}function Ry(e){const t=Xg,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(wm(n,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=ny(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Sg(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,ny(r,{mechanism:{data:{function:"addEventListener",handler:Sg(r),target:e},handled:!1,type:"instrument"}}),i])}}),wm(n,"removeEventListener",function(e){return function(t,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,i,r)}}))}function Fy(){"console"in dm&&bm.forEach(function(e){e in dm.console&&wm(dm.console,e,function(t){return Em[e]=t,function(...t){sy("console",{args:t,level:e});const n=Em[e];n&&n.apply(dm.console,t)}})})}const ky=dm;let xy,Uy,My;function Ly(){if(!ky.document)return;const e=sy.bind(null,"dom"),t=jy(e,!0);ky.document.addEventListener("click",t,!1),ky.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=ky[t]&&ky[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(wm(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){const r=jy(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(e){}return t.call(this,n,r,i)}}),wm(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}function jy(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;Pm(n,"_sentryCaptured",!0),r&&!r._sentryId&&Pm(r,"_sentryId",xm());const i="keypress"===n.type?"input":n.type;(function(e){if(e.type!==Uy)return!1;try{if(!e.target||e.target._sentryId!==My)return!1}catch(e){}return!0})(n)||(e({event:n,name:i,global:t}),Uy=n.type,My=r?r._sentryId:void 0),clearTimeout(xy),xy=ky.setTimeout(()=>{My=void 0,Uy=void 0},1e3)}}const Vy=dm,By="__sentry_xhr_v3__";function Gy(){if(!Vy.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;wm(e,"open",function(e){return function(...t){const n=Date.now(),r=rm(t[0])?t[0].toUpperCase():void 0,i=function(e){if(rm(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!r||!i)return e.apply(this,t);this[By]={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const e=this[By];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}sy("xhr",{args:[r,i],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?wm(this,"onreadystatechange",function(e){return function(...t){return o(),e.apply(this,t)}}):this.addEventListener("readystatechange",o),wm(this,"setRequestHeader",function(e){return function(...t){const[n,r]=t,i=this[By];return i&&rm(n)&&rm(r)&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}}),e.apply(this,t)}}),wm(e,"send",function(e){return function(...t){const n=this[By];return n?(void 0!==t[0]&&(n.body=t[0]),sy("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)):e.apply(this,t)}})}const qy=fm();function $y(){if(!("fetch"in qy))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function Qy(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Hy(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!$y())return!1;if(Qy(qy.fetch))return!0;let e=!1;const t=qy.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Qy(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){vm&&Im.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&wm(dm,"fetch",function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Wy(t),method:zy(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Wy(t),method:zy(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return sy("fetch",{...i}),e.apply(dm,t).then(e=>(sy("fetch",{...i,endTimestamp:Date.now(),response:e}),e),e=>{throw sy("fetch",{...i,endTimestamp:Date.now(),error:e}),e})}})}function zy(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Wy(e){return"string"==typeof e?e:e?zy(e,"url")?e.url:e.toString?e.toString():"":""}const Zy=fm(),Yy=dm;let Ky;function Jy(){if(!function(){const e=Zy.chrome,t=e&&e.app&&e.app.runtime,n="history"in Zy&&!!Zy.history.pushState&&!!Zy.history.replaceState;return!t&&n}())return;const e=Yy.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Ky,t=String(n);Ky=t,sy("history",{from:e,to:t})}return e.apply(this,t)}}Yy.onpopstate=function(...t){const n=Yy.location.href,r=Ky;if(Ky=n,sy("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},wm(Yy.history,"pushState",t),wm(Yy.history,"replaceState",t)}const Xy=["fatal","error","warning","log","info","debug"];function ev(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const tv="Breadcrumbs",nv=xg(tv,(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:tv,setupOnce(){},setup(e){var n;t.console&&function(e){const t="console";oy(t,e),ay(t,Fy)}(function(e){return function(t){if(Ng()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:(r=t.level,"warn"===r?"warning":Xy.includes(r)?r:"log"),message:Tm(t.args," ")};var r;if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${Tm(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}Og(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(Ng()!==e)return;let r,i,o="object"==typeof t?t.serializeAttribute:void 0,a="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>1024&&(dy&&Im.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof o&&(o=[o]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=gm(t,{keyAttrs:o,maxStringLength:a}),i=function(e){if(!mm.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}(t)}catch(e){r="<unknown>"}if(0===r.length)return;const s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),Og(s,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),oy("dom",n),ay("dom",Ly)),t.xhr&&function(e){oy("xhr",e),ay("xhr",Gy)}(function(e){return function(t){if(Ng()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[By];if(!n||!r||!i)return;const{method:o,url:a,status_code:s,body:u}=i;Og({category:"xhr",data:{method:o,url:a,status_code:s},type:"http"},{xhr:t.xhr,input:u,startTimestamp:n,endTimestamp:r})}}(e)),t.fetch&&function(e){const t="fetch";oy(t,e),ay(t,Hy)}(function(e){return function(t){if(Ng()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error)Og({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r});else{const e=t.response;Og({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:r})}}}(e)),t.history&&function(e){const t="history";oy(t,e),ay(t,Jy)}(function(e){return function(t){if(Ng()!==e)return;let n=t.from,r=t.to;const i=ev(Xg.location.href);let o=n?ev(n):void 0;const a=ev(r);o&&o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),Og({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){Ng()===e&&Og({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Mm(t)},{event:t})}}(e))}}}),rv="LinkedErrors",iv=xg(rv,(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:rv,setupOnce(){},preprocessEvent(e,r,i){const o=i.getOptions();Qg(fy,o.stackParser,o.maxValueLength,n,t,e,r)}}}),ov="HttpContext",av=xg(ov,()=>({name:ov,setupOnce(){},preprocessEvent(e){if(!Xg.navigator&&!Xg.location&&!Xg.document)return;const t=e.request&&e.request.url||Xg.location&&Xg.location.href,{referrer:n}=Xg.document||{},{userAgent:r}=Xg.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}})),sv="Dedupe",uv=xg(sv,()=>{let e;return{name:sv,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!lv(e,t)&&!!cv(e,t))))}(e,t)||!!function(e,t){const n=pv(t),r=pv(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!lv(e,t)&&!!cv(e,t)))}(e,t))}(t,e))return dy&&Im.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}});function cv(e,t){let n=dv(e),r=dv(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function lv(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function pv(e){return e.exception&&e.exception.values&&e.exception.values[0]}function dv(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}let fv={};Xg.Sentry&&Xg.Sentry.Integrations&&(fv=Xg.Sentry.Integrations);const hv={...fv,...Jg,...u},mv="?";function gv(e,t,n,r){const i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const yv=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,vv=/\((\S*)(?::(\d+))(?::(\d+))\)/,bv=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ev=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,_v=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Iv=function(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{const r=[],i=e.split("\n");for(let e=n;e<i.length;e++){const n=i[e];if(n.length>1024)continue;const o=Eg.test(n)?n.replace(Eg,"$1"):n;if(!o.match(/\S*Error: /)){for(const e of t){const t=e(o);if(t){r.push(t);break}}if(r.length>=50)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),_g.test(t[t.length-1].function||"")&&(t.pop(),_g.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"}))}(r)}}([30,e=>{const t=yv.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=vv.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Sv(t[1]||mv,t[2]);return gv(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=bv.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Ev.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||mv;return[n,e]=Sv(n,e),gv(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=_v.exec(e);return t?gv(t[2],t[1]||mv,+t[3],t[4]?+t[4]:void 0):void 0}]),Sv=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:mv,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class Tv 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}}const Cv=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function wv(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function Pv(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Dv(e,t=[]){return[e,t]}function Av(e,t){const[n,r]=e;return[n,[...r,t]]}function Ov(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function Nv(e,t){return(t||new TextEncoder).encode(e)}function Rv(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[Nv(i,t),e]:i.push("string"==typeof e?Nv(e,t):e)}for(const e of r){const[t,n]=e;if(o(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(Tg(n))}o(e)}}return"string"==typeof i?i:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(i)}function Fv(e,t){const n="string"==typeof e.data?Nv(e.data,t):e.data;return[Fm({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const kv={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function xv(e){return kv[e]}function Uv(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Mv(e,t,n=function(e){const 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 Wm(new Tv("Not adding Promise because buffer limit was reached."));const 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 Zm((n,r)=>{let i=t.length;if(!i)return n(!0);const o=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{zm(e).then(()=>{--i||(clearTimeout(o),n(!0))},r)})})}}}(e.bufferSize||30)){let r={};function i(i){const o=[];if(Ov(i,(t,n)=>{const i=xv(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)){const r=Lv(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(t)}),0===o.length)return zm();const a=Dv(i[0],o),s=t=>{Ov(a,(n,r)=>{const i=Lv(n,r);e.recordDroppedEvent(t,xv(r),i)})};return n.add(()=>t({body:Rv(a,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Qm&&Im.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(const e of o.trim().split(",")){const[t,n,,,o]=e.split(":",5),a=parseInt(t,10),s=1e3*(isNaN(a)?60:a);if(n)for(const e of n.split(";"))"metric_bucket"===e&&o&&!o.split(";").includes("custom")||(i[e]=r+s);else i.all=r+s}else a?i.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}(r,e),e),e=>{throw s("network_error"),e})).then(e=>e,e=>{if(e instanceof Tv)return Qm&&Im.error("Skipped sending event because buffer is full."),s("queue_overflow"),zm();throw e})}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function Lv(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let jv;function Vv(e,t=function(){if(jv)return jv;if(Qy(Xg.fetch))return jv=Xg.fetch.bind(Xg);const e=Xg.document;let t=Xg.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){dy&&Im.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return jv=t.bind(Xg)}()){let n=0,r=0;return Mv(e,function(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then(e=>(n-=o,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return jv=void 0,n-=o,r--,Wm(e)}})}function Bv(e){return Mv(e,function(t){return new Zm((n,r)=>{const i=new XMLHttpRequest;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);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)})})}function Gv(e,t={}){const 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){const 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)}`}const qv="Not capturing exception because it's already been captured.";class $v{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){const t="string"==typeof e?function(e){const t=Cv.exec(e);if(!t)return void _m(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[n,r,i="",o,a="",s]=t.slice(1);let u="",c=s;const l=c.split("/");if(l.length>1&&(u=l.slice(0,-1).join("/"),c=l.pop()),c){const e=c.match(/^\d+/);e&&(c=e[0])}return Pv({host:o,pass:i,path:u,projectId:c,port:a,protocol:n,publicKey:r})}(e):Pv(e);if(t&&function(e){if(!vm)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(Im.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(Im.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(Im.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(Im.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}(e.dsn):Qm&&Im.warn("No DSN provided, client will not send events."),this._dsn){const t=Gv(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(Vm(e))return void(Qm&&Im.log(qv));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;const o=im(e)?e:String(e),a=om(e)?this.eventFromMessage(o,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&&Vm(t.originalException))return void(Qm&&Im.log(qv));let r=t&&t.event_id;const i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,i||n).then(e=>{r=e})),r}captureSession(e){"string"!=typeof e.release?Qm&&Im.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Xm(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):zm(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return Qm&&Im.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];kg(this,e,this._integrations),t||Fg(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const i=Uv(n),o=e.type&&"replay_event"!==e.type?e.type:"event";!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);const a=function(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:wv(r)},...i&&{trace:Fm({...i})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,Dv(a,[[{type:o},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=Av(n,Fv(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){const t=function(e,t,n,r){const i=Uv(n);return Dv({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:wv(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const r="number"==typeof n?n:1,i=`${e}:${t}`;Qm&&Im.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}captureAggregateMetrics(e){Qm&&Im.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=function(e,t,n,r){const i={sent_at:(new Date).toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=wv(t));const o=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?`|#${e.map(([e,t])=>`${e}:${t}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return Dv(i,[o])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach(t=>{t&&kg(e,t,n)}),n}(this,e),Fg(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1;const i=t.exception&&t.exception.values;if(i){r=!0;for(const e of i){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const o="ok"===e.status;(o&&0===e.errors||o&&n)&&(Xm(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Zm(t=>{let n=0;const 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._transport}_prepareEvent(e,t,n,r=function(){return yg().getIsolationScope()}()){const i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),function(e,t,n,r,i,o){const{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,u={...t,event_id:t.event_id||n.event_id||xm(),timestamp:t.timestamp||Bm()},c=n.integrations||e.integrations.map(e=>e.name);!function(e,t){const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:$m),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=Sm(e.message,o));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Sm(a.value,o));const s=e.request;s&&s.url&&(s.url=Sm(s.url,o))}(u,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(u,c),void 0===t.type&&function(e,t){const n=dm._sentryDebugIds;if(!n)return;let r;const i=Pg.get(t);i?r=i:(r=new Map,Pg.set(t,r));const o=Object.keys(n).reduce((e,i)=>{let o;const a=r.get(i);a?o=a:(o=t(i),r.set(i,o));for(let t=o.length-1;t>=0;t--){const r=o[t];if(r.filename){e[r.filename]=n[i];break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=o[e.filename])})})}catch(e){}}(u,e.stackParser);const l=function(e,t){if(!t)return e;const n=e?e.clone():new cg;return n.update(t),n}(r,n.captureContext);n.mechanism&&jm(u,n.mechanism);const p=i&&i.getEventProcessors?i.getEventProcessors():[],d=(ug||(ug=new cg),ug).getScopeData();o&&ag(d,o.getScopeData()),l&&ag(d,l.getScopeData());const f=[...n.attachments||[],...d.attachments];return f.length&&(n.attachments=f),og(u,d),Jm([...p,...Ym(),...d.eventProcessors],u,n).then(e=>(e&&function(e){const t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}(e),"number"==typeof a&&a>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Tg(e.data,t,n)}}))},...e.user&&{user:Tg(e.user,t,n)},...e.contexts&&{contexts:Tg(e.contexts,t,n)},...e.extra&&{extra:Tg(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=Tg(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>{const r=ng(e).data;return r&&(e.data=Tg(r,t,n)),e})),r}(e,a,s):e))}(i,e,t,n,this,r).then(e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if((!e.contexts||!e.contexts.trace)&&t){const{traceId:r,spanId:i,parentSpanId:o,dsc:a}=t;e.contexts={trace:{trace_id:r,span_id:i,parent_span_id:o},...e.contexts};const s=a||rg(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:s,...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{if(Qm){const t=e;"log"===t.logLevel?Im.log(t.message):Im.warn(t)}})}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:i}=r,o=Hv(e),a=Qv(e),s=e.type||"error",u=`before send for type \`${s}\``;if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),Wm(new Tv(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const c="replay_event"===s?"replay":s,l=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,l).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new Tv("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const i=function(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;if(Qv(t)&&r)return r(t,n);if(Hv(t)&&i){if(t.spans){const e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(t,n)}return t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(um(e))return e.then(e=>{if(!am(e)&&null!==e)throw new Tv(n);return e},e=>{throw new Tv(`${t} rejected with ${e}`)});if(!am(e)&&null!==e)throw new Tv(n);return e}(i,u)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",c,e),o){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new Tv(`${u} returned \`null\`, will not send event.`,"log")}const i=n&&n.getSession();if(!o&&i&&this._updateSessionFromEvent(i,r),o){const e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const a=r.transaction_info;if(o&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}return this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof Tv)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Tv(`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++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,e=>{Qm&&Im.error("Error while sending event:",e)});Qm&&Im.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}})}}function Qv(e){return void 0===e.type}function Hv(e){return"transaction"===e.type}class zv extends $v{constructor(e){!function(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:pg})),version:pg}),e._metadata=i}(e,"browser",["browser"],Xg.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&Xg.document&&Xg.document.addEventListener("visibilitychange",()=>{"hidden"===Xg.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){const i=vy(e,t,n&&n.syntheticException||void 0,r);return jm(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),zm(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){const o=by(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),zm(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(dy&&Im.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:wv(r)}},o=function(e){return[{type:"user_report"},e]}(e);return Dv(i,[o])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(dy&&Im.log("No outcomes to send"));if(!this._dsn)return void(dy&&Im.log("No dsn provided, will not send outcomes"));dy&&Im.log("Sending outcomes:",e);const t=(n=e,Dv((r=this._options.tunnel&&wv(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:Bm(),discarded_events:n}]]));var n,r;this._sendEnvelope(t)}}var Wv=[new hv.InboundFilters,new hv.FunctionToString,new hv.TryCatch,new hv.Breadcrumbs,new hv.LinkedErrors,new hv.Dedupe,new hv.HttpContext],Zv=new hg,Yv=n(6760),Kv=n.n(Yv),Jv=n(7620),Xv=n.n(Jv),eb=n(1525),tb=n.n(eb),nb=function(){return nb=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},nb.apply(this,arguments)},rb=function(){function e(){var e=this;this.mapApplySubscriptionResults=function(t){var n=t.applySubscription.subscription;return{subscription:n?e.mapSubscription(n):void 0}},this.mapSlimCustomer=function(e){return{id:e.refId,name:e.name||void 0,email:e.email||void 0,billingId:e.billingId||void 0,createdAt:new Date(e.createdAt),updatedAt:new Date(e.updatedAt),metadata:e.additionalMetaData,awsMarketplaceCustomerId:e.awsMarketplaceCustomerId}}}return e.prototype.mapPlans=function(e){var t=this;return((null==e?void 0:e.paywall.plans)||[]).map(function(e,n){return t.mapPlan(e,n)})},e.prototype.mapPaywall=function(e){var t=this.mapPlans(e),n=null==e?void 0:e.paywall.configuration,r=!(null==e?void 0:e.paywall.resource)&&(null==e?void 0:e.paywall.activeSubscriptions)||[];return{plans:t,configuration:n,customer:(null==e?void 0:e.paywall.customer)?this.mapCustomer(null==e?void 0:e.paywall.customer,r):null,resource:(null==e?void 0:e.paywall.resource)?this.mapResource(null==e?void 0:e.paywall.resource):null,activeSubscriptions:(null==e?void 0:e.paywall.activeSubscriptions)?this.mapSubscriptions(null==e?void 0:e.paywall.activeSubscriptions):null,currency:e.paywall.currency,paywallCalculatedPricePoints:e.paywall.paywallCalculatedPricePoints}},e.prototype.mapMockPlans=function(e){var t=this;return{plans:((null==e?void 0:e.mockPaywall.plans)||[]).map(function(e,n){return t.mapPlan(e,n)}),configuration:e.mockPaywall.configuration,customer:null,resource:null,activeSubscriptions:null,currency:{code:he.Usd,symbol:"$"}}},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.mapResource=function(e){return{id:e.resourceId}},e.prototype.mapCustomerPortal=function(e){var t=e.resource?this.mapResource(e.resource):null;return nb(nb({},e),{resource:t})},e.prototype.mapCheckoutState=function(e){var t=e.configuration,n=e.customer,r=e.plan,i=e.billingIntegration,o=e.resource,a=e.activeSubscription;return{setupSecret:e.setupSecret,configuration:t,customer:this.mapCustomer(n,a?[a]:[]),plan:this.mapPlan(r),resource:o?this.mapResource(o):null,billingIntegration:i,activeSubscription:a?this.mapSubscription(a):null}},e.prototype.mapCustomer=function(e,t){var n,r,i=this;return new Gh({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:Kv()(t,function(e){return i.mapSubscription(e)}),promotionalEntitlements:Kv()(e.promotionalEntitlements,function(e){return i.mapPromotionalEntitlement(e)}),metadata:e.additionalMetaData,paymentMethodDetails:this.mapPaymentDetails(e),trialedPlans:(null===(n=e.trialedPlans)||void 0===n?void 0:n.map(function(e){return{productId:e.productRefId,planId:e.planRefId}}))||void 0,eligibleForTrial:null===(r=e.eligibleForTrial)||void 0===r?void 0:r.map(function(e){return{productId:e.productRefId,eligible:e.eligible}}),experimentInfo:Xv()(e.experimentInfo,"__typename")})},e.prototype.mapPaymentDetails=function(e){var t=e.defaultPaymentExpirationYear,n=e.defaultPaymentExpirationMonth,r=e.defaultPaymentMethodLast4Digits;if(tb()([r,n,t],function(e){return e}))return{expirationMonth:n,expirationYear:t,last4Digits:r}},e.prototype.mapPriceWithTotalPrice=function(e,t,n){var r=e.feature,i=e.tiersMode,o=e.tiers,a=e.billingModel,s=e.billingPeriod,u=e.blockSize,c={pricingModel:a,billingPeriod:s,amount:t.total.amount,grossAmount:t.subTotal.amount,currency:this.getPriceCurrency(e),tiersMode:i,tiers:o,isTieredPrice:!!i,blockSize:u};return r&&(c.feature={featureId:r.refId,displayName:r.displayName,units:r.featureUnits,unitsPlural:r.featureUnitsPlural,unitQuantity:n}),c},e.prototype.mapPrice=function(e,t){var n=e.feature,r=e.price,i=e.tiers,o=e.tiersMode,a=e.billingId,s=e.billingModel,u=e.billingPeriod,c=e.minUnitQuantity,l=e.maxUnitQuantity,p=e.billingCountryCode,d=e.blockSize,f=e.billingCadence,h=e.topUpCustomCurrencyId,m=e.customCurrency,g={pricingModel:s,billingPeriod:u,billingId:a,amount:r?r.amount:null,currency:this.getPriceCurrency(e),tiersMode:o,tiers:i,isTieredPrice:!!o,minUnitQuantity:c,maxUnitQuantity:l,billingCountryCode:p,blockSize:d,creditRate:e.creditRate?{amount:e.creditRate.amount}:null,billingCadence:f,topUpCustomCurrencyId:h,customCurrency:m};return n&&(g.feature={featureId:n.refId,displayName:n.displayName,units:n.featureUnits,unitsPlural:n.featureUnitsPlural,unitQuantity:t}),g},e.prototype.mapPlan=function(e,t){var n,r,i=this;return void 0===t&&(t=0),{id:e.refId,order:t,displayName:e.displayName,description:e.description,billingId:e.billingId,basePlan:e.basePlan?{id:e.basePlan.refId,displayName:e.basePlan.displayName}:void 0,entitlements:Kv()(e.entitlements,function(e){return i.mapPackageEntitlement(e)}),inheritedEntitlements:Kv()(e.inheritedEntitlements,function(e){return i.mapPackageEntitlement(e)}),packageEntitlements:null!==(n=e.packageEntitlements)&&void 0!==n?n:void 0,inheritedPackageEntitlements:null!==(r=e.inheritedPackageEntitlements)&&void 0!==r?r:void 0,pricePoints:Kv()(e.prices,function(e){return i.mapPrice(e)}),pricingType:e.pricingType,defaultTrialConfig:this.mapDefaultTrialConfig(e.defaultTrialConfig),compatibleAddons:this.mapCompatibleAddons(e),compatiblePackageGroups:this.mapCompatiblePackageGroups(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===_t.Free||!e.compatibleAddons)return[];var n=e.compatibleAddons;return(e.pricingType===_t.Paid?n.filter(function(e){return e.pricingType===_t.Paid}):n).map(function(e){return t.mapAddon(e)})},e.prototype.mapDefaultTrialConfig=function(e){if(e)return{duration:null==e?void 0:e.duration,units:null==e?void 0:e.units,budget:e.budget?{limit:e.budget.limit}:void 0}},e.prototype.mapPackageEntitlement=function(e){var t=e.feature;return t?{usageLimit:e.usageLimit||0,feature:{id:t.refId,featureType: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===ot.Fluctuating||t.meterType===ot.Incremental,metadata:t.additionalMetaData},isCustom:e.isCustom||void 0,hasUnlimitedUsage:e.hasUnlimitedUsage,resetPeriod:e.resetPeriod,hiddenFromWidgets:e.hiddenFromWidgets,displayNameOverride:e.displayNameOverride,enumValues:e.enumValues,isGranted:e.isGranted}:{usageLimit:e.usageLimit||0,hasUnlimitedUsage:e.hasUnlimitedUsage,resetPeriod:e.resetPeriod,isGranted:e.isGranted}},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:t.featureType,meterType:t.meterType||void 0,units:t.featureUnits||void 0,unitsPlural:t.featureUnitsPlural||void 0,isMetered:t.meterType===ot.Fluctuating||t.meterType===ot.Incremental},hasUnlimitedUsage:e.hasUnlimitedUsage,expiresAt:e.endDate,hasExpirationDate:!!e.endDate,isVisible:e.isVisible}},e.prototype.mapSubscription=function(e){var t,n,r=this,i=e.totalPrice,o=(e.prices||[])[0];return{id:e.subscriptionId,billingId:e.billingId||void 0,resourceId:null===(t=e.resource)||void 0===t?void 0:t.resourceId,payingCustomer:e.payingCustomer?this.mapSlimCustomer(e.payingCustomer):null,status:e.status,currentBillingPeriodEnd:this.mapDate(e.currentBillingPeriodEnd),plan:this.mapPlan(e.plan),prices:e.prices?e.prices.filter(function(e){return null!==e.price}).map(function(e){return r.mapPrice(e.price,e.usageLimit)}):[],totalPrice:i,price:o&&i&&o.price?this.mapPriceWithTotalPrice(o.price,i,o.usageLimit):null,pricingType:e.pricingType,addons:(null===(n=e.addons)||void 0===n?void 0:n.map(function(e){var t=e.quantity,n=e.addon;return{quantity:t,addon:r.mapAddon(n)}}))||[],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,experimentInfo:Xv()(e.experimentInfo,"__typename"),scheduledUpdates:e.scheduledUpdates||[],futureUpdates:e.futureUpdates||[],latestInvoice:this.mapLatestInvoice(e.latestInvoice),paymentCollection:e.paymentCollection,paymentCollectionMethod:e.paymentCollectionMethod||void 0}},e.prototype.mapLatestInvoice=function(e){return e?nb(nb({},e),{createdAt:this.mapDate(e.createdAt),updatedAt:this.mapDate(e.updatedAt)}):void 0},e.prototype.mapDate=function(e){return e?new Date(e):void 0},e.prototype.mapAddon=function(e){var t,n,r,i=this;return{hiddenFromWidgets:e.hiddenFromWidgets,id:e.refId,displayName:e.displayName,description:e.description||"",billingId:e.billingId,entitlements:Kv()(e.entitlements,function(e){return i.mapPackageEntitlement(e)}),packageEntitlements:null!==(t=e.packageEntitlements)&&void 0!==t?t:void 0,pricePoints:Kv()(e.prices,function(e){return i.mapPrice(e)}),pricingType:e.pricingType,dependencies:(null===(n=e.dependencies)||void 0===n?void 0:n.map(function(e){return i.mapDependencyAddon(e)}))||[],metadata:e.additionalMetaData,maxQuantity:null!==(r=e.maxQuantity)&&void 0!==r?r:void 0}},e.prototype.mapTaxFields=function(e){return(null==e?void 0:e.tax)&&(null==e?void 0:e.taxDetails)?{tax:this.mapMoney(e.tax),taxDetails:{displayName:e.taxDetails.displayName,percentage:e.taxDetails.percentage,inclusive:e.taxDetails.inclusive}}:{}},e.prototype.mapSubscriptionPreview=function(e){var t=e.subscription,n=e.proration,r=e.billingPeriodRange,i=e.credits;return nb(nb(nb({total:this.mapMoney(e.total),totalExcludingTax:this.mapMoney(e.totalExcludingTax),subTotal:this.mapMoney(e.subTotal),discountAmount:e.discountAmount?this.mapMoney(e.discountAmount):void 0},this.mapTaxFields(e)),e.discount?{discount:this.mapDiscount(e.discount)}:{}),{billingPeriodRange:{start:r.start&&new Date(r.start),end:r.end&&new Date(r.end)},proration:n?{credit:this.mapMoney(n.credit),debit:this.mapMoney(n.debit),netAmount:this.mapMoney(n.netAmount),prorationDate:new Date(n.prorationDate)}:void 0,subscription:t?nb(nb({total:this.mapMoney(t.total),totalExcludingTax:this.mapMoney(t.totalExcludingTax),subTotal:this.mapMoney(t.subTotal),discountAmount:t.discountAmount?this.mapMoney(t.discountAmount):void 0},t.discount?{discount:this.mapDiscount(t.discount)}:{}),this.mapTaxFields(t)):void 0,isPlanDowngrade:!!e.isPlanDowngrade,hasScheduledUpdates:!!e.hasScheduledUpdates,credits:i?{initial:this.mapMoney(i.initial),used:this.mapMoney(i.used),remaining:this.mapMoney(i.remaining)}:void 0})},e.prototype.mapCredits=function(e){return{initial:this.mapMoney(e.initial),used:this.mapMoney(e.used),remaining:this.mapMoney(e.remaining)}},e.prototype.mapSubscriptionPreviewV2=function(e){var t=e.immediateInvoice,n=e.recurringInvoice,r=e.billingPeriodRange,i=e.hasScheduledUpdates,o=e.isPlanDowngrade;return{immediateInvoice:nb(nb({},this.mapSubscriptionPreviewInvoice(t)),{proration:t.proration?{credit:this.mapMoney(t.proration.credit),debit:this.mapMoney(t.proration.debit),netAmount:this.mapMoney(t.proration.netAmount),prorationDate:new Date(t.proration.prorationDate),hasProrations:t.proration.hasProrations||void 0}:void 0,credits:t.credits?this.mapCredits(t.credits):void 0}),recurringInvoice:n?nb({},this.mapSubscriptionPreviewInvoice(n)):void 0,billingPeriodRange:{start:r.start&&new Date(r.start),end:r.end&&new Date(r.end)},isPlanDowngrade:!!o,hasScheduledUpdates:!!i}},e.prototype.mapSubscriptionPreviewInvoice=function(e){return nb(nb({total:this.mapMoney(e.total),subTotal:this.mapMoney(e.subTotal),totalExcludingTax:this.mapMoney(e.totalExcludingTax),discount:e.discount?this.mapMoney(e.discount):void 0},e.discountDetails?{discountDetails:this.mapDiscount(e.discountDetails)}:{}),this.mapTaxFields(e))},e.prototype.mapDiscount=function(e){var t=e.name,n=e.type,r=e.value,i=e.durationType,o=e.durationInMonths;return nb({name:t,type:n,value:r,durationType:i},o?{durationInMonths:o}:{})},e.prototype.mapMoney=function(e){return{amount:e.amount,currency:e.currency}},e.prototype.mapCoupon=function(e){return{id:e.refId,name:e.name,description:e.description,metadata:e.additionalMetaData,discountValue:e.discountValue,percentOff:e.percentOff,amountsOff:e.amountsOff}},e.prototype.mapSubscriptions=function(e){var t=this;return e.map(function(e){return t.mapSubscription(e)})},e.prototype.mapUsageHistory=function(e){return e.usageMeasurements.map(function(e){var t=e.date,n=e.value,r=e.isResetPoint;return{date:new Date(t),value:n,isResetPoint:!!r}})},e.prototype.getPriceCurrency=function(e){var t,n,r=e.price,i=e.tiers;return(null==r?void 0:r.currency)||(null===(t=null==i?void 0:i[0].unitPrice)||void 0===t?void 0:t.currency)||(null===(n=null==i?void 0:i[0].flatPrice)||void 0===n?void 0:n.currency)||he.Usd},e.prototype.mapCompatiblePackageGroups=function(e){var t=this;return e.pricingType!==_t.Free&&e.compatiblePackageGroups?e.compatiblePackageGroups.map(function(e){var n=e.packageGroupId,r=e.displayName,i=e.options,o=e.addons;return{packageGroupId:n,displayName:r,addons:(null==o?void 0:o.map(function(e){return t.mapAddon(e)}))||[],options:{minItems:(null==i?void 0:i.minItems)||void 0,freeItems:(null==i?void 0:i.freeItems)||void 0}}}):[]},e.prototype.mapDependencyAddon=function(e){return{refId:e.refId,displayName:e.displayName,description:e.description||void 0}},e}(),ib=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ob=function(e){function t(t,n){void 0===n&&(n=3e4);var r=e.call(this,new Map,{},t)||this;return r.ttlMs=n,r.lastUpdate=null,r.lastChecked=null,r}return ib(t,e),t.prototype.updateLastChecked=function(){this.lastChecked=new Date},t.prototype.setCustomer=function(t){return this.lastUpdate=new Date(t.entitlementsTimestamp),e.prototype.setCustomer.call(this,t)},t.prototype.getLastUpdate=function(){return this.lastUpdate},t.prototype.isLoaded=function(){return!!this.lastUpdate},t.prototype.isOutdated=function(){return null===this.lastChecked||(new Date).getTime()-this.lastChecked.getTime()>this.ttlMs},t}(_h),ab=function(){return ab=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},ab.apply(this,arguments)};function sb(e,t){return n=this,r=void 0,o=function(){return function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(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,cb(n.sent(),t)];case 3:return[2]}})},new((i=void 0)||(i=Promise))(function(e,t){function a(e){try{u(o.next(e))}catch(e){t(e)}}function s(e){try{u(o.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i(function(e){e(n)})).then(a,s)}u((o=o.apply(n,r||[])).next())});var n,r,i,o}function ub(e,t){try{return e()}catch(e){return cb(e,t)}}function cb(e,t){var n=t.loggerService,r=t.sdkConfiguration,i=t.errorMessage,o=t.rethrowError,a=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;Zv.withScope(function(t){var o={errorMessage:r};if(n){var a=n.customerId,s=ab(ab({},n),{apiKey:void 0});a&&t.setTags({customerId:a}),o.sdkConfiguration=s}i&&(o=ab(ab({},o),i)),t.setExtras(o),Zv.captureException(e)})}(e,{sdkConfiguration:r,errorMessage:s,errorReportMetadata:a}),o)throw new Error(s)}var lb=function(){return lb=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},lb.apply(this,arguments)},pb=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})},db=function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},fb=function(){function e(e,t){this.modelMapper=new rb,this.eventEmitter=new Yh,this.showWatermark=!1,this.isWidgetWatermarkEnabled=!1,this.configuration=e,this.edgeApiClient=qc.create(e,e),this.graphClient=function(e){var t=e.apiKey,n=e.baseUri,r=e.clientName,i=void 0===r?Bu:r,o=e.clientVersion,a=void 0===o?nh:o,s=function(e,t){return new Ll(function(n,r){var i={"X-API-KEY":e,"x-graphql-operation-name":n.operationName,source:Vu},o=t.customerToken;return o&&(i["X-CUSTOMER-KEY"]=o),n.setContext({headers:i}),r(n)})}(t,e),u=function(e){return new Wl({uri:"".concat(e,"/graphql"),fetch:Bc})}(n),c=new th({attempts:{max:5,retryIf:rh},delay:{initial:500,max:2e3,jitter:!0}});return new sf({link:s.concat(c.concat(u)),cache:new Xf,name:i,version:a,defaultOptions:{query:{fetchPolicy:"no-cache"}}})}(this.configuration),this.loggerService=t,this.cacheMapper=new Bh(t),this.apiGateway=new _c(this.graphClient,this.edgeApiClient),this.globalEntitlementsService=null,this.resourceEntitlementsService=null,this.initializationStateTracker=new Kh(this.eventEmitter)}return e.initialize=function(t){var n=Qu(t),r=new ju(n.logConfiguration.logger,n.logConfiguration.logLevel);$u(n,r);var i=new e(n,r);return this.initializeSdk(i).then(function(){n.customerId?n.lazyLoad||i.setCustomerId(n.customerId,n.customerToken,n.resourceId):i.initializationStateTracker.signalSuccessInit()}).catch(function(e){return i.initializationStateTracker.signalFailedInit(e)}),i},e.prototype.waitForInitialization=function(){return pb(this,void 0,Promise,function(){var e=this;return db(this,function(t){return[2,this.initializationStateTracker.getInitializationPromise().then(function(){return e})]})})},e.initializeSdk=function(e){return pb(this,void 0,void 0,function(){var t,n,r,i,o,a,s,u;return db(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,e.apiGateway.sdkConfiguration.getSdkConfiguration()];case 1:return t=c.sent(),n=null===(o=t.data)||void 0===o?void 0:o.sdkConfiguration,!Zv.getClient()&&(null==n?void 0:n.sentryDsn)&&(h=n.sentryDsn,l=void 0,p=void 0,f=function(){var e,t;return function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,function(n){return e={dsn:h,normalizeDepth:6,release:"".concat(Bu,"@").concat(nh),integrations:Wv,stackParser:Iv,transport:$y()?Vv:Bv},t=new zv(e),Zv.bindClient(t),[2]})},new((d=void 0)||(d=Promise))(function(e,t){function n(e){try{i(f.next(e))}catch(e){t(e)}}function r(e){try{i(f.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof d?i:new d(function(e){e(i)})).then(n,r)}i((f=f.apply(l,p||[])).next())})),e.showWatermark=!!(null==n?void 0:n.showWatermark),[3,3];case 2:throw r=c.sent(),401===(null===(a=r.response)||void 0===a?void 0:a.status)||r.graphQLErrors&&(null===(u=null===(s=r.graphQLErrors[0])||void 0===s?void 0:s.extensions)||void 0===u?void 0:u.code)===ke.Unauthenticated?(i="Authentication failed. Double check your SDK key.",e.loggerService.error(i),new Error(i,{cause:r})):(e.loggerService.error("Failed to load sdk configuration",r),r);case 3:return[2]}var l,p,d,f,h})})},Object.defineProperty(e.prototype,"isCustomerLoaded",{get:function(){var e;return(null===(e=this.globalEntitlementsService)||void 0===e?void 0:e.isInitialized)||!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isResourceLoaded",{get:function(){var e;return(null===(e=this.resourceEntitlementsService)||void 0===e?void 0:e.isInitialized)||!1},enumerable:!1,configurable:!0}),e.prototype.getShowWatermark=function(){return this.showWatermark},e.prototype.addListener=function(e,t){this.eventEmitter.on(e,t)},e.prototype.removeListener=function(e,t){this.eventEmitter.off(e,t)},e.prototype.setCustomerId=function(e){return pb(this,arguments,Promise,function(e,t,n){var r,i,o,a,s,u=this;return void 0===t&&(t=null),void 0===n&&(n=null),db(this,function(c){switch(c.label){case 0:if(r=this.configuration,i=r.customerToken,o=r.customerId,a=r.resourceId,e===o&&t===i&&n===a)return[2];if(this.clearCustomer(),!e)return this.loggerService.log("`setCustomerId` was called without a customerId, did you mean to call `clearCustomer`?"),[2];if(!(0,Wu.isString)(e))throw new Error("customerId parameter must be a string");if(t&&!(0,Wu.isString)(t))throw new Error("customerToken parameter must be a string");if(n&&!(0,Wu.isString)(n))throw new Error("resourceId parameter must be a string");this.configuration.customerId=e,this.configuration.customerToken=t,this.configuration.resourceId=n,this.globalEntitlementsService=new zh(e,void 0,new ob(this.cacheMapper,this.configuration.cacheTtlMs),this.graphClient,this.edgeApiClient,this.loggerService,function(e){return u.eventEmitter.emit("entitlementsUpdated",e)}),n&&(this.resourceEntitlementsService=new zh(e,n,new ob(this.cacheMapper,this.configuration.cacheTtlMs),this.graphClient,this.edgeApiClient,this.loggerService,function(e){return u.eventEmitter.emit("entitlementsUpdated",e)})),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,sb(function(){return pb(u,void 0,void 0,function(){var e,t;return db(this,function(n){switch(n.label){case 0:return[4,Promise.all([null===(e=this.globalEntitlementsService)||void 0===e?void 0:e.loadEntitlements(),null===(t=this.resourceEntitlementsService)||void 0===t?void 0:t.loadEntitlements()])];case 1:return n.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})];case 2:return c.sent(),this.initializationStateTracker.signalSuccessInit(),[3,4];case 3:return s=c.sent(),this.initializationStateTracker.signalFailedInit(s),[3,4];case 4:return[2]}})})},e.prototype.clearCustomer=function(){this.globalEntitlementsService=null,this.resourceEntitlementsService=null,this.configuration.customerId=null,this.configuration.customerToken=null,this.configuration.resourceId=null},e.prototype.setResource=function(e){return pb(this,void 0,Promise,function(){var t,n,r=this;return db(this,function(i){switch(i.label){case 0:if(!this.configuration.customerId)throw new Error("`setResource` must be called when customer was set, did you forget to call `setCustomerId`?");if(t=this.configuration.resourceId,e===t)return[2];if(this.clearResource(),!(0,Wu.isString)(e))throw new Error("resourceId parameter must be a string");this.configuration.resourceId=e,this.resourceEntitlementsService=new zh(this.configuration.customerId,e,new ob(this.cacheMapper,this.configuration.cacheTtlMs),this.graphClient,this.edgeApiClient,this.loggerService,function(e){return r.eventEmitter.emit("entitlementsUpdated",e)}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,sb(function(){return pb(r,void 0,void 0,function(){var e;return db(this,function(t){return null===(e=this.resourceEntitlementsService)||void 0===e||e.loadEntitlements(),[2]})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to load initial entitlements for customer resource. Error: ".concat(e.message)},rethrowError:!0})];case 2:return i.sent(),this.initializationStateTracker.signalSuccessInit(),[3,4];case 3:return n=i.sent(),this.initializationStateTracker.signalFailedInit(n),[3,4];case 4:return[2]}})})},e.prototype.clearResource=function(){if(!this.configuration.customerId)throw new Error("`clearResource` must be called when customer was set, did you forget to call `setCustomerId`?");this.resourceEntitlementsService=null,this.configuration.resourceId=null},e.prototype.refresh=function(){return pb(this,void 0,Promise,function(){var e=this;return db(this,function(t){return[2,sb(function(){return pb(e,void 0,void 0,function(){var e,t;return db(this,function(n){switch(n.label){case 0:return[4,Promise.all([null===(e=this.globalEntitlementsService)||void 0===e?void 0:e.refresh(),null===(t=this.resourceEntitlementsService)||void 0===t?void 0:t.refresh()])];case 1:return n.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,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=lb(lb({},Sh),a);return ub(function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId," with resourceId ").concat(o,"}")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getBooleanEntitlement(r,s,i):s:n.globalEntitlementsService.getBooleanEntitlement(r,s,i):(n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId,". Reason: ").concat(n.globalEntitlementsService?"Customer not loaded":"Entitlements service not initialized "),{initializationStatus:n.initializationStateTracker.initializationStatus,customerId:n.configuration.customerId||""}),s)},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get boolean entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlement")),s)},e.prototype.getNumericEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=lb(lb({},Th),a);return ub(function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId," with resourceId ").concat(o,"}")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getNumericEntitlement(r,s,i):s:n.globalEntitlementsService.getNumericEntitlement(r,s,i):(n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId,". Reason: ").concat(n.globalEntitlementsService?"Customer not loaded":"Entitlements service not initialized "),{initializationStatus:n.initializationStateTracker.initializationStatus,customerId:n.configuration.customerId||""}),s)},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get numeric entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlement")),s)},e.prototype.getMeteredEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=lb(lb({},Ch),a);return ub(function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId," with resourceId ").concat(o,"}")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getMeteredEntitlement(r,s,i):s:n.globalEntitlementsService.getMeteredEntitlement(r,s,i):(n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId,". Reason: ").concat(n.globalEntitlementsService?"Customer not loaded":"Entitlements service not initialized "),{initializationStatus:n.initializationStateTracker.initializationStatus,customerId:n.configuration.customerId||""}),s)},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get metered entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlement")),s)},e.prototype.getEnumEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=lb(lb({},wh),a);return ub(function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId," with resourceId ").concat(o,"}")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getEnumEntitlement(r,s,i):s:n.globalEntitlementsService.getEnumEntitlement(r,s,i):(n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId,". Reason: ").concat(n.globalEntitlementsService?"Customer not loaded":"Entitlements service not initialized "),{initializationStatus:n.initializationStateTracker.initializationStatus,customerId:n.configuration.customerId||""}),s)},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get enum entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlement")),s)},e.prototype.getCreditEntitlement=function(e){var t=this,n=e.currencyId,r=e.options,i=e.resourceId,o=(null==r?void 0:r.fallback)||{},a=lb(lb(lb({},Ph),{currency:{currencyId:n}}),o),s=lb(lb({},a),{remaining:Math.max(a.usageLimit-a.currentUsage,0)});return ub(function(){return t.globalEntitlementsService&&t.isCustomerLoaded?i?i!==t.configuration.resourceId?(t.loggerService.log("Resource ID ".concat(i," does not match the current resource ID ").concat(t.configuration.resourceId,".")),t.loggerService.log("Using fallback entitlements for customer: ".concat(t.configuration.customerId," with resourceId ").concat(i,"}")),s):t.isResourceLoaded&&t.resourceEntitlementsService?t.resourceEntitlementsService.getCreditEntitlement(n,s):s:t.globalEntitlementsService.getCreditEntitlement(n,s):(t.loggerService.log("Using fallback entitlements for customer: ".concat(t.configuration.customerId,". Reason: ").concat(t.globalEntitlementsService?"Customer not loaded":"Entitlements service not initialized "),{initializationStatus:t.initializationStateTracker.initializationStatus,customerId:t.configuration.customerId||""}),s)},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get credit entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{currencyId:n,options:r}})||(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlement")),s)},e.prototype.getPaywall=function(){return pb(this,arguments,Promise,function(e){var t,n=this,r=void 0===e?{}:e,i=r.productId,o=r.resourceId,a=r.context,s=r.billingCountryCode,u=r.includeHiddenPlans;return db(this,function(e){return t={productId:i,customerId:this.configuration.customerId,resourceId:o,context:a,billingCountryCode:s,includeHiddenPlans:u},[2,sb(function(){return pb(n,void 0,void 0,function(){var e;return db(this,function(n){switch(n.label){case 0:return(null==i?void 0:i.startsWith("stiggTestData"))?[4,this.apiGateway.mockPaywall.getMockPaywall(t)]:[3,2];case 1:return e=n.sent(),[2,this.modelMapper.mapMockPlans(e.data)];case 2:return[4,this.apiGateway.paywall.getPaywall(t)];case 3:return e=n.sent(),[2,this.modelMapper.mapPaywall(e.data)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get paywall. Error: ".concat(e.message)},rethrowError:!0,errorReportMetadata:{productId:i}})]})})},e.prototype.getCoupons=function(){return pb(this,void 0,Promise,function(){var e=this;return db(this,function(t){return[2,sb(function(){return pb(e,void 0,void 0,function(){var e;return db(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 pb(this,void 0,Promise,function(){var e=this;return db(this,function(t){return[2,sb(function(){return pb(e,void 0,void 0,function(){var e,t,n,r;return db(this,function(i){switch(i.label){case 0:return e=zu(this.configuration),[4,this.apiGateway.customers.getCustomer(e)];case 1:if(t=i.sent(),!(n=t.data.getCustomerByRefId))throw new Error("Customer not found");return r=n.subscriptions||[],[2,this.modelMapper.mapCustomer(n,r)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get customer. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.getCustomerPortal=function(){return pb(this,arguments,Promise,function(e){var t=this,n=void 0===e?{}:e,r=n.resourceId,i=n.productId;return db(this,function(e){return[2,sb(function(){return pb(t,void 0,void 0,function(){var e,t;return db(this,function(n){switch(n.label){case 0:return e=zu(this.configuration),[4,this.apiGateway.customers.getCustomerPortal(e,r,i)];case 1:return t=n.sent(),[2,this.modelMapper.mapCustomerPortal(t.data.customerPortal)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get customer portal details. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.getCheckoutState=function(e){return pb(this,arguments,Promise,function(e){var t=this,n=e.planId,r=e.resourceId,i=void 0===r?this.configuration.resourceId:r,o=e.billingCountryCode;return db(this,function(e){return[2,sb(function(){return pb(t,void 0,void 0,function(){var e,t;return db(this,function(r){switch(r.label){case 0:return e=zu(this.configuration),[4,this.apiGateway.subscriptions.checkoutState({customerId:e,resourceId:i,planId:n,billingCountryCode:o})];case 1:return t=r.sent(),[2,this.modelMapper.mapCheckoutState(t.data.checkoutState)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get checkout details. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.applySubscription=function(e){return pb(this,void 0,Promise,function(){var t=this;return db(this,function(n){return[2,sb(function(){return pb(t,void 0,void 0,function(){var t,n;return db(this,function(r){switch(r.label){case 0:return t=zu(this.configuration),[4,this.apiGateway.subscriptions.applySubscription(lb({customerId:t},e))];case 1:if(!(n=r.sent().data)||!n.applySubscription)throw new Error("Invalid response");return[2,this.modelMapper.mapApplySubscriptionResults(n)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to apply subscription to customer. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.fetchUsageHistory=function(e){return pb(this,void 0,Promise,function(){var t=this;return db(this,function(n){return[2,sb(function(){return pb(t,void 0,void 0,function(){var t;return db(this,function(n){switch(n.label){case 0:return[4,this.apiGateway.customers.fetchUsageHistory(e)];case 1:if(!(t=n.sent().data)||!t.usageHistory)throw new Error("Invalid response");return[2,this.modelMapper.mapUsageHistory(t.usageHistory)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to fetch usage history. Error: ".concat(e.message)},rethrowError:!1})]})})},e.prototype.getEntitlements=function(e){return pb(this,void 0,Promise,function(){return db(this,function(t){switch(t.label){case 0:return[4,this.getEntitlementsState(e)];case 1:return[2,t.sent().entitlements]}})})},e.prototype.getEntitlementsState=function(e){return pb(this,void 0,Promise,function(){var t;return db(this,function(n){switch(n.label){case 0:return[4,this.getEntitlementsStateV2(e)];case 1:return[2,{entitlements:(t=n.sent()).entitlements.filter(Lh),accessDeniedReason:t.accessDeniedReason}]}})})},e.prototype.getEntitlementsStateV2=function(e){return pb(this,void 0,Promise,function(){var t,n,r=this;return db(this,function(i){switch(i.label){case 0:return t={entitlements:Vh(this.configuration.entitlementsFallback),accessDeniedReason:null},[4,sb(function(){return pb(r,void 0,void 0,function(){var n;return db(this,function(r){return zu(this.configuration),e?e!==this.configuration.resourceId?(this.loggerService.log("Resource ID ".concat(e," does not match the current resource ID ").concat(this.configuration.resourceId,".")),this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId," with resourceId ").concat(e,"}")),[2,t]):this.isResourceLoaded&&this.resourceEntitlementsService?(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId)),[2,this.resourceEntitlementsService.getCustomerEntitlements()]):[2,t]:[2,null===(n=this.globalEntitlementsService)||void 0===n?void 0:n.getCustomerEntitlements()]})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get entitlements. Error: ".concat(e.message)},rethrowError:!0})];case 1:return(n=i.sent())?[2,n]:(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlements.")),[2,t])}})})},e.prototype.estimateSubscription=function(e){return pb(this,void 0,Promise,function(){var t=this;return db(this,function(n){return[2,sb(function(){return pb(t,void 0,void 0,function(){var t;return db(this,function(n){switch(n.label){case 0:return[4,this.apiGateway.subscriptionEstimations.estimateSubscription(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,this.modelMapper.mapSubscriptionPreview(t.estimateSubscription)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate subscription. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.estimateSubscriptionUpdate=function(e){return pb(this,void 0,Promise,function(){var t=this;return db(this,function(n){return[2,sb(function(){return pb(t,void 0,void 0,function(){var t;return db(this,function(n){switch(n.label){case 0:return[4,this.apiGateway.subscriptionEstimations.estimateSubscriptionUpdate(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,this.modelMapper.mapSubscriptionPreview(t.estimateSubscriptionUpdate)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate subscription update. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.previewNextInvoice=function(e){return pb(this,void 0,Promise,function(){var t=this;return db(this,function(n){return[2,sb(function(){return pb(t,void 0,void 0,function(){var t;return db(this,function(n){switch(n.label){case 0:return[4,this.apiGateway.subscriptionEstimations.previewNextInvoice(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,t.previewNextInvoice]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to preview subscription next invoice. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.previewSubscription=function(e){return pb(this,void 0,Promise,function(){var t=this;return db(this,function(n){return[2,sb(function(){return pb(t,void 0,void 0,function(){var t;return db(this,function(n){switch(n.label){case 0:return[4,this.apiGateway.subscriptionEstimations.previewSubscription(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,this.modelMapper.mapSubscriptionPreviewV2(t.previewSubscription)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate checkout. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.estimateEventCost=function(e){return pb(this,void 0,Promise,function(){var t=this;return db(this,function(n){return[2,sb(function(){return pb(t,void 0,void 0,function(){var t;return db(this,function(n){switch(n.label){case 0:return[4,this.apiGateway.credits.estimateEventCost(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,t.estimateEventCost]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate event credit cost. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.estimateUsageCost=function(e){return pb(this,void 0,Promise,function(){var t=this;return db(this,function(n){return[2,sb(function(){return pb(t,void 0,void 0,function(){var t;return db(this,function(n){switch(n.label){case 0:return[4,this.apiGateway.credits.estimateUsageCost(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,t.estimateUsageCost]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate usage credit cost. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.getUsageHistoryV2=function(e){return pb(this,void 0,Promise,function(){var t=this;return db(this,function(n){return[2,sb(function(){return pb(t,void 0,void 0,function(){return db(this,function(t){switch(t.label){case 0:return[4,this.apiGateway.usageHistoryApi.getUsageHistoryV2(e)];case 1:return[2,t.sent().data.usageHistoryV2]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get usage history. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.waitForCheckoutCompleted=function(){return pb(this,arguments,Promise,function(e){var t,n,r,i,o,a,s,u,c=void 0===e?{}:e,l=c.timeoutMs,p=void 0===l?15e3:l,d=c.refreshOnComplete,f=void 0===d||d;return db(this,function(e){switch(e.label){case 0:if("undefined"==typeof window)throw new Error("`waitForCheckoutCompleted` was called, but `window` is not defined");if(t=new URLSearchParams(window.location.search),n=t.get("subscriptionId"),r=t.get("resourceId")||void 0,i=t.get("checkoutCompleted"),!n)return this.loggerService.log("`waitCheckoutCompleted` was called, but no `subscriptionId` found in query params"),[2,null];if(!i||"false"===i.toLowerCase())return this.loggerService.log("The checkout session was cancelled by the user"),[2,null];o=Date.now(),a=!1,e.label=1;case 1:return a?[4,new Promise(function(e){return setTimeout(e,1e3)})]:[3,3];case 2:e.sent(),e.label=3;case 3:return[4,this.getActiveSubscriptions({resourceId:r})];case 4:u=e.sent(),s=u.find(function(e){return e.id===n})||null,a=!0,e.label=5;case 5:if(!s&&Date.now()-o<p)return[3,1];e.label=6;case 6:if(!s)throw new Error("Timeout while waiting for checkout to complete, subscription ".concat(n," is not active"));return f?[4,this.refresh()]:[3,8];case 7:e.sent(),e.label=8;case 8:return[2,s]}})})},e.prototype.getSubscriptions=function(){return pb(this,arguments,Promise,function(e){var t,n,r,i,o,a=this;return void 0===e&&(e={}),db(this,function(s){return t=e.customerId,n=e.resourceId,r=e.status,i=e.productId,o=e.pagination,[2,sb(function(){return pb(a,void 0,void 0,function(){var e;return db(this,function(a){switch(a.label){case 0:return[4,this.apiGateway.subscriptions.getSubscriptions(t,n,r,i,o)];case 1:return[2,{data:(e=a.sent()).data.subscriptions.edges.map(function(e){return e.node}),pageInfo:e.data.subscriptions.pageInfo}]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get active subscriptions. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.getActiveSubscriptions=function(e){var t=this,n=(void 0===e?{}:e).resourceId;return sb(function(){return pb(t,void 0,void 0,function(){var e,t,r;return db(this,function(i){switch(i.label){case 0:return e=zu(this.configuration),[4,this.apiGateway.customers.getActiveSubscriptions(e,n)];case 1:if(t=i.sent(),!(r=t.data.getActiveSubscriptions))throw new Error("Customer ".concat(n?"or resource ":"","not found"));return[2,this.modelMapper.mapSubscriptions(r)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get active subscriptions. Error: ".concat(e.message)},rethrowError:!0})},e.prototype.getActiveSubscriptionsList=function(){return pb(this,arguments,Promise,function(e){var t=this,n=(void 0===e?{}:e).resourceId;return db(this,function(e){return[2,sb(function(){return pb(t,void 0,void 0,function(){var e;return db(this,function(t){switch(t.label){case 0:return e=zu(this.configuration),[4,this.apiGateway.customers.getActiveSubscriptionsList(e,n)];case 1:return[2,t.sent().data.getActiveSubscriptions]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get active subscriptions list. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.getSubscription=function(e){return pb(this,arguments,Promise,function(e){var t=this,n=e.subscriptionId;return db(this,function(e){return[2,sb(function(){return pb(t,void 0,void 0,function(){var e,t;return db(this,function(r){switch(r.label){case 0:return[4,this.apiGateway.customers.getSubscription(n)];case 1:return e=r.sent(),t=e.data.getSubscription,[2,this.modelMapper.mapSubscription(t)]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get subscription. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.getCreditUsage=function(e){return pb(this,void 0,Promise,function(){var t=this;return db(this,function(n){return[2,sb(function(){return pb(t,void 0,void 0,function(){var t,n,r;return db(this,function(i){switch(i.label){case 0:return t=zu(this.configuration),n=null!==(r=this.configuration.resourceId)&&void 0!==r?r:void 0,[4,this.apiGateway.credits.getCreditUsage(lb(lb({},e),{customerId:t,resourceId:n}))];case 1:return[2,i.sent().data.creditUsage]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get credit usage. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.getCreditBalance=function(){return pb(this,arguments,Promise,function(e){var t=this;return void 0===e&&(e={}),db(this,function(n){return[2,sb(function(){return pb(t,void 0,void 0,function(){var t,n,r;return db(this,function(i){switch(i.label){case 0:return t=zu(this.configuration),n=null!==(r=this.configuration.resourceId)&&void 0!==r?r:void 0,[4,this.apiGateway.credits.getCreditBalance(lb(lb({},e),{customerId:t,resourceId:n}))];case 1:return[2,i.sent().data.creditBalanceSummary]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return e.message},rethrowError:!0})]})})},e.prototype.getCreditGrants=function(e){return pb(this,void 0,Promise,function(){var t=this;return db(this,function(n){return[2,sb(function(){return pb(t,void 0,void 0,function(){var t,n,r,i;return db(this,function(o){switch(o.label){case 0:return t=zu(this.configuration),n=null!==(i=this.configuration.resourceId)&&void 0!==i?i:void 0,[4,this.apiGateway.credits.getCreditGrants(lb(lb({},e),{customerId:t,resourceId:n}))];case 1:return[2,{data:(r=o.sent()).data.creditGrants.edges.map(function(e){return e.node}),pageInfo:r.data.creditGrants.pageInfo,totalCount:r.data.creditGrants.totalCount}]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return e.message},rethrowError:!0})]})})},e.prototype.getCreditLedger=function(){return pb(this,arguments,Promise,function(e){var t=this;return void 0===e&&(e={}),db(this,function(n){return[2,sb(function(){return pb(t,void 0,void 0,function(){var t,n,r,i;return db(this,function(o){switch(o.label){case 0:return t=zu(this.configuration),n=null!==(i=this.configuration.resourceId)&&void 0!==i?i:void 0,[4,this.apiGateway.credits.getCreditLedger(lb(lb({},e),{customerId:t,resourceId:n}))];case 1:return[2,{data:(r=o.sent()).data.creditsLedger.edges.map(function(e){return e.node}),pageInfo:r.data.creditsLedger.pageInfo,totalCount:r.data.creditsLedger.totalCount}]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return e.message},rethrowError:!0})]})})},e.prototype.createPaymentSession=function(e){return pb(this,void 0,Promise,function(){var t=this;return db(this,function(n){return[2,sb(function(){return pb(t,void 0,void 0,function(){var t,n;return db(this,function(r){switch(r.label){case 0:return t=zu(this.configuration),[4,this.apiGateway.checkout.createPaymentSession(lb(lb({},e),{customerId:t}))];case 1:if(!(n=r.sent()).data||!n.data.createPaymentSession)throw new Error("Invalid response");return[2,n.data.createPaymentSession]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to create payment session. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.getAutomaticRechargeConfiguration=function(e){return pb(this,void 0,Promise,function(){var t=this;return db(this,function(n){return[2,sb(function(){return pb(t,void 0,void 0,function(){var t;return db(this,function(n){switch(n.label){case 0:return[4,this.apiGateway.automaticRecharge.getConfiguration(e)];case 1:if(!(t=n.sent()).data)throw new Error("No response data received from automatic recharge get operation");if(!t.data.getAutoRechargeSettings)throw new Error("Invalid response: getAutoRechargeSettings is missing");return[2,t.data.getAutoRechargeSettings]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get automatic recharge configuration. Error: ".concat(e.message)},rethrowError:!0})]})})},e.prototype.saveAutomaticRechargeConfiguration=function(e){return pb(this,void 0,Promise,function(){var t=this;return db(this,function(n){return[2,sb(function(){return pb(t,void 0,void 0,function(){var t;return db(this,function(n){switch(n.label){case 0:return[4,this.apiGateway.automaticRecharge.saveConfiguration(e)];case 1:if(!(t=n.sent()).data)throw new Error("No response data received from automatic recharge save operation");if(!t.data.saveAutoRechargeSettings)throw new Error("Invalid response: saveAutoRechargeSettings is missing");return[2,t.data.saveAutoRechargeSettings]}})})},{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to save automatic recharge configuration. Error: ".concat(e.message)},rethrowError:!0})]})})},e}(),hb=function(){var e=function(t,n){return e=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,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mb=function(){return mb=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},mb.apply(this,arguments)},gb=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(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(a,s)}u((r=r.apply(e,t||[])).next())})},yb=function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},vb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hb(t,e),t.createOffline=function(e,n){var r=new t(e,n);return r.initializationStateTracker.signalSuccessInit(),r},t.prototype.getBooleanEntitlement=function(e){var t,n=e.featureId,r=e.options,i=(null==r?void 0:r.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[n])||{};return mb(mb({},Sh),i)},t.prototype.getMeteredEntitlement=function(e){var t,n=e.featureId,r=e.options,i=(null==r?void 0:r.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[n])||{};return mb(mb({},Ch),i)},t.prototype.getNumericEntitlement=function(e){var t,n=e.featureId,r=e.options,i=(null==r?void 0:r.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[n])||{};return mb(mb({},Th),i)},t.prototype.getEnumEntitlement=function(e){var t,n=e.featureId,r=e.options,i=(null==r?void 0:r.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[n])||{};return mb(mb({},wh),i)},t.prototype.getCreditEntitlement=function(e){var t=e.currencyId,n=e.options,r=(null==n?void 0:n.fallback)||{},i=mb(mb(mb({},Ph),{currency:{currencyId:t}}),r);return mb(mb({},i),{remaining:Math.max(i.usageLimit-i.currentUsage,0)})},t.prototype.getEntitlements=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,Vh(this.configuration.entitlementsFallback)]})})},t.prototype.getEntitlementsState=function(){return gb(this,void 0,Promise,function(){var e;return yb(this,function(t){switch(t.label){case 0:return[4,this.getEntitlementsStateV2()];case 1:return[2,{entitlements:(e=t.sent()).entitlements.filter(Lh),accessDeniedReason:e.accessDeniedReason}]}})})},t.prototype.getEntitlementsStateV2=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,{entitlements:Vh(this.configuration.entitlementsFallback),accessDeniedReason:null}]})})},t.prototype.addListener=function(){},t.prototype.clearCustomer=function(){},t.prototype.clearResource=function(){},t.prototype.getActiveSubscriptionsList=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,[]]})})},t.prototype.getCoupons=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,[]]})})},t.prototype.getSubscription=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,{id:"mock-subscription-id",addons:[],futureUpdates:[],paymentCollection:mt.NotRequired,plan:{compatibleAddons:[],compatiblePackageGroups:[],displayName:"mock-plan",entitlements:[],id:"mock-plan-id",inheritedEntitlements:[],order:0,pricePoints:[],product:{id:"mock-product-id"}},price:null,prices:[],pricingType:_t.Paid,startDate:new Date,status:tn.Active,totalPrice:{total:{amount:0,currency:he.Usd},subTotal:{amount:0,currency:he.Usd}}}]})})},Object.defineProperty(t.prototype,"isCustomerLoaded",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isResourceLoaded",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.removeListener=function(){},t.prototype.waitForInitialization=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,this]})})},t.prototype.setResource=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2]})})},t.prototype.getCheckoutState=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,{setupSecret:"mock-setup-secret",resource:null,plan:{compatibleAddons:[],compatiblePackageGroups:[],displayName:"mock-plan",entitlements:[],id:"mock-plan-id",inheritedEntitlements:[],order:0,pricePoints:[],product:{id:"mock-product-id"}},customer:{createdAt:new Date,updatedAt:new Date,hasPaymentMethod:!1,id:"mock-customer-id",subscriptions:[],promotionalEntitlements:[],getActivePromotionalEntitlements:function(){return[]},getActiveSubscriptions:function(){return[]},getActiveTrials:function(){return[]}},billingIntegration:{billingIdentifier:W.Stripe,billingCredentials:{setupSecret:"mock-setup-secret",accountId:"mock-account-id",publicKey:"mock-public-key"},credentials:{accountId:"mock-account-id",publicKey:"mock-public-key"}}}]})})},t.prototype.applySubscription=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,{subscription:void 0}]})})},t.prototype.estimateSubscription=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,{billingPeriodRange:{},total:{amount:0,currency:he.Usd},subTotal:{amount:0,currency:he.Usd},totalExcludingTax:{amount:0,currency:he.Usd}}]})})},t.prototype.previewNextInvoice=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,{lastUpdatedAt:new Date,amountDue:{amount:0,currency:he.Usd},minimumSpendAdjustment:{amount:0,currency:he.Usd},total:{amount:0,currency:he.Usd},subTotalExcludingTax:{amount:0,currency:he.Usd},subTotal:{amount:0,currency:he.Usd},totalExcludingTax:{amount:0,currency:he.Usd},tax:{amount:0,currency:he.Usd},lines:[]}]})})},t.prototype.previewSubscription=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,{billingPeriodRange:{},immediateInvoice:{total:{amount:0,currency:he.Usd},subTotal:{amount:0,currency:he.Usd},totalExcludingTax:{amount:0,currency:he.Usd}}}]})})},t.prototype.estimateSubscriptionUpdate=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,{billingPeriodRange:{},total:{amount:0,currency:he.Usd},subTotal:{amount:0,currency:he.Usd},totalExcludingTax:{amount:0,currency:he.Usd}}]})})},t.prototype.estimateEventCost=function(){return gb(this,void 0,void 0,function(){return yb(this,function(e){return[2,{estimates:[],warnings:[]}]})})},t.prototype.estimateUsageCost=function(){return gb(this,void 0,void 0,function(){return yb(this,function(e){return[2,{estimates:[],warnings:[]}]})})},t.prototype.waitForCheckoutCompleted=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,null]})})},t.prototype.refresh=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2]})})},t.prototype.fetchUsageHistory=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,[]]})})},t.prototype.getUsageHistoryV2=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,{markers:[],series:[]}]})})},t.prototype.setCustomerId=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2]})})},t.prototype.getPaywall=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,{activeSubscriptions:[],currency:{code:he.Usd,symbol:"$"},plans:[],customer:null,resource:null}]})})},t.prototype.getCustomerPortal=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,{subscriptions:[],entitlements:[],entitlementsV2:[],promotionalEntitlements:[],billingInformation:{},canUpgradeSubscription:!1,resource:null,showWatermark:!0}]})})},t.prototype.getActiveSubscriptions=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,[]]})})},t.prototype.getSubscriptions=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,{data:[],pageInfo:{}}]})})},t.prototype.getCustomer=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,{id:"offline-customer-id",createdAt:new Date,updatedAt:new Date,subscriptions:[],promotionalEntitlements:[],metadata:{},hasPaymentMethod:!1,email:"offline-customer@example.com",getActivePromotionalEntitlements:function(){return[]},getActiveSubscriptions:function(){return[]},getActiveTrials:function(){return[]}}]})})},t.prototype.getCreditBalance=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,{__typename:"CreditBalanceSummary",customerId:"offline-customer-id",balances:[]}]})})},t.prototype.getCreditGrants=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,{data:[],pageInfo:{},totalCount:0}]})})},t.prototype.getCreditLedger=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,{data:[],pageInfo:{},totalCount:0}]})})},t.prototype.getCreditUsage=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,{series:[],pageInfo:{hasNextPage:!1,hasPreviousPage:!1}}]})})},t.prototype.createPaymentSession=function(){return gb(this,void 0,Promise,function(){return yb(this,function(e){return[2,{__typename:"PaymentSession",token:"mock-token"}]})})},t.prototype.getShowWatermark=function(){return!1},t.prototype.getAutomaticRechargeConfiguration=function(e){return gb(this,void 0,Promise,function(){return yb(this,function(t){return[2,{__typename:"AutoRechargeSettingsDTO",customerId:e.customerId,currencyId:e.currencyId,isEnabled:!1,thresholdType:sn.CreditAmount,thresholdValue:0,targetBalance:0,maxSpendLimit:null,grantExpirationPeriod:Ye.OneMonth,currentMonthlySpend:0,createdAt:new Date,updatedAt:new Date}]})})},t.prototype.saveAutomaticRechargeConfiguration=function(e){return gb(this,void 0,Promise,function(){var t,n,r,i,o;return yb(this,function(a){return[2,{__typename:"AutoRechargeSettingsDTO",customerId:e.customerId,currencyId:e.currencyId,isEnabled:e.isEnabled,thresholdType:null!==(t=e.thresholdType)&&void 0!==t?t:sn.CreditAmount,thresholdValue:null!==(n=e.thresholdValue)&&void 0!==n?n:0,targetBalance:null!==(r=e.targetBalance)&&void 0!==r?r:0,maxSpendLimit:null!==(i=e.maxSpendLimit)&&void 0!==i?i:null,grantExpirationPeriod:null!==(o=e.grantExpirationPeriod)&&void 0!==o?o:Ye.OneMonth,currentMonthlySpend:0,createdAt:new Date,updatedAt:new Date}]})})},t}(fb),bb=fb.initialize.bind(fb);fb.initialize=function(e){var t=Qu(e),n=new ju(t.logConfiguration.logger,t.logConfiguration.logLevel);return t.offline?(n.log("Stigg SDK has been initialized in offline mode, only fallback entitlements are being used."),vb.createOffline(t,n)):bb(e)};const Eb=fb},1510:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});const r="undefined"!=typeof globalThis&&globalThis.FormData?globalThis.FormData:"undefined"!=typeof self&&self.FormData?self.FormData:"undefined"!=typeof FormData?FormData:void 0},9793:(e,t,n)=>{n.d(t,{__:()=>b,OS:()=>_,Z:()=>I});var r=n(8660),i=n(1040),o=n(1176),a=n(4293),s=n(6242);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(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 d(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){var t="function"==typeof Map?new Map:void 0;return h=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return m(e,arguments,v(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),y(r,e)},h(e)}function m(e,t,n){return m=g()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&y(i,n.prototype),i},m.apply(null,arguments)}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(h,e);var t,n,r,s,u=(t=h,n=g(),function(){var e,r=v(t);if(n){var i=v(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return d(this,e)});function h(e,t,n,r,o,s,p){var m,g,y,v;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(v=u.call(this,e)).name="GraphQLError",v.originalError=null!=s?s:void 0,v.nodes=E(Array.isArray(t)?t:t?[t]:void 0);for(var b=[],_=0,I=null!==(S=v.nodes)&&void 0!==S?S:[];_<I.length;_++){var S,T=I[_].loc;null!=T&&b.push(T)}b=E(b),v.source=null!=n?n:null===(m=b)||void 0===m?void 0:m[0].source,v.positions=null!=r?r:null===(g=b)||void 0===g?void 0:g.map(function(e){return e.start}),v.locations=r&&n?r.map(function(e){return(0,a.k)(n,e)}):null===(y=b)||void 0===y?void 0:y.map(function(e){return(0,a.k)(e.source,e.start)}),v.path=null!=o?o:void 0;var C=null==s?void 0:s.extensions;return null==p&&(0,i.Z)(C)?v.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},C):v.extensions=null!=p?p:{},Object.defineProperties(f(v),{message:{enumerable:!0},locations:{enumerable:null!=v.locations},path:{enumerable:null!=v.path},extensions:{enumerable:null!=v.extensions&&Object.keys(v.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(f(v),"stack",{value:s.stack,writable:!0,configurable:!0}),d(v)):(Error.captureStackTrace?Error.captureStackTrace(f(v),h):Object.defineProperty(f(v),"stack",{value:Error().stack,writable:!0,configurable:!0}),v)}return r=h,(s=[{key:"toString",value:function(){return _(this)}},{key:"toJSON",value:function(){return I(this)}},{key:o.YF,get:function(){return"Object"}}])&&p(r.prototype,s),h}(h(Error));function E(e){return void 0===e||0===e.length?void 0:e}function _(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+(0,s.Q)(i.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var u=a[o];t+="\n\n"+(0,s.z)(e.source,u)}return t}function I(e){var t;e||(0,r.Z)(0,"Received null or undefined error.");var n=null!==(t=e.message)&&void 0!==t?t:"An unknown error occurred.",i=e.locations,o=e.path,a=e.extensions;return a&&Object.keys(a).length>0?{message:n,locations:i,path:o,extensions:a}:{message:n,locations:i,path:o}}},650:(e,t,n)=>{n.d(t,{h:()=>i});var r=n(9793);function i(e,t,n){return new r.__("Syntax Error: ".concat(n),void 0,e,[t])}},7267:(e,t,n)=>{n.r(t),n.d(t,{BREAK:()=>c.$_,BreakingChangeType:()=>Ro,DEFAULT_DEPRECATION_REASON:()=>Nt,DangerousChangeType:()=>Fo,DirectiveLocation:()=>We.B,ExecutableDefinitionsRule:()=>bn,FieldsOnCorrectTypeRule:()=>Dn,FragmentsOnCompositeTypesRule:()=>Cn,GraphQLBoolean:()=>ot,GraphQLDeprecatedDirective:()=>Rt,GraphQLDirective:()=>Dt,GraphQLEnumType:()=>je,GraphQLError:()=>u.__,GraphQLFloat:()=>nt,GraphQLID:()=>at,GraphQLIncludeDirective:()=>At,GraphQLInputObjectType:()=>Be,GraphQLInt:()=>tt,GraphQLInterfaceType:()=>Ue,GraphQLList:()=>ge,GraphQLNonNull:()=>ye,GraphQLObjectType:()=>Ae,GraphQLScalarType:()=>De,GraphQLSchema:()=>jt,GraphQLSkipDirective:()=>Ot,GraphQLSpecifiedByDirective:()=>Ft,GraphQLString:()=>it,GraphQLUnionType:()=>Me,Kind:()=>U.h,KnownArgumentNamesRule:()=>Gn,KnownDirectivesRule:()=>Mn,KnownFragmentNamesRule:()=>On,KnownTypeNamesRule:()=>Sn,Lexer:()=>Ci.h,Location:()=>on.Ye,LoneAnonymousOperationRule:()=>_n,LoneSchemaDefinitionRule:()=>gr,MaxIntrospectionDepthRule:()=>mr,NoDeprecatedCustomRule:()=>Fi,NoFragmentCyclesRule:()=>Fn,NoSchemaIntrospectionCustomRule:()=>ki,NoUndefinedVariablesRule:()=>xn,NoUnusedFragmentsRule:()=>Nn,NoUnusedVariablesRule:()=>Un,OverlappingFieldsCanBeMergedRule:()=>nr,PossibleFragmentSpreadsRule:()=>Rn,PossibleTypeExtensionsRule:()=>Tr,ProvidedRequiredArgumentsRule:()=>Yn,ScalarLeafsRule:()=>Pn,SchemaMetaFieldDef:()=>Et,SingleFieldSubscriptionsRule:()=>In,Source:()=>Ii.H,Token:()=>on.WU,TokenKind:()=>wi.T,TypeInfo:()=>sn,TypeKind:()=>vt,TypeMetaFieldDef:()=>_t,TypeNameMetaFieldDef:()=>It,UniqueArgumentNamesRule:()=>$n,UniqueDirectiveNamesRule:()=>Ir,UniqueDirectivesPerLocationRule:()=>Ln,UniqueEnumValueNamesRule:()=>br,UniqueFieldDefinitionNamesRule:()=>Er,UniqueFragmentNamesRule:()=>An,UniqueInputFieldNamesRule:()=>dr,UniqueOperationNamesRule:()=>En,UniqueOperationTypesRule:()=>yr,UniqueTypeNamesRule:()=>vr,UniqueVariableNamesRule:()=>kn,ValidationContext:()=>Rr,ValuesOfCorrectTypeRule:()=>Qn,VariablesAreInputTypesRule:()=>wn,VariablesInAllowedPositionRule:()=>Xn,__Directive:()=>dt,__DirectiveLocation:()=>ft,__EnumValue:()=>yt,__Field:()=>mt,__InputValue:()=>gt,__Schema:()=>pt,__Type:()=>ht,__TypeKind:()=>bt,assertAbstractType:()=>me,assertCompositeType:()=>fe,assertDirective:()=>Pt,assertEnumType:()=>X,assertInputObjectType:()=>te,assertInputType:()=>se,assertInterfaceType:()=>Z,assertLeafType:()=>pe,assertListType:()=>re,assertNamedType:()=>Te,assertNonNullType:()=>oe,assertNullableType:()=>_e,assertObjectType:()=>z,assertOutputType:()=>ce,assertScalarType:()=>Q,assertSchema:()=>Lt,assertType:()=>q,assertUnionType:()=>K,assertValidName:()=>m,assertValidSchema:()=>Gt,assertWrappingType:()=>be,astFromValue:()=>ct,buildASTSchema:()=>eo,buildClientSchema:()=>qi,buildSchema:()=>to,coerceInputValue:()=>Gr,concatAST:()=>So,createSourceEventStream:()=>Ri,defaultFieldResolver:()=>yi,defaultTypeResolver:()=>gi,doTypesOverlap:()=>He,execute:()=>Wr,executeSync:()=>Zr,extendSchema:()=>Wi,findBreakingChanges:()=>ko,findDangerousChanges:()=>xo,findDeprecatedUsages:()=>Wo,formatError:()=>u.Z,getDescription:()=>Xi,getDirectiveValues:()=>Hr,getIntrospectionQuery:()=>Li,getLocation:()=>Si.k,getNamedType:()=>Ce,getNullableType:()=>Ie,getOperationAST:()=>ji,getOperationRootType:()=>Lr,getVisitFn:()=>c.CK,graphql:()=>bi,graphqlSync:()=>Ei,introspectionFromSchema:()=>Gi,introspectionTypes:()=>St,isAbstractType:()=>he,isCompositeType:()=>de,isDefinitionNode:()=>ln,isDirective:()=>wt,isEnumType:()=>J,isEqualType:()=>$e,isExecutableDefinitionNode:()=>pn,isInputObjectType:()=>ee,isInputType:()=>ae,isInterfaceType:()=>W,isIntrospectionType:()=>Tt,isLeafType:()=>le,isListType:()=>ne,isNamedType:()=>Se,isNonNullType:()=>ie,isNullableType:()=>Ee,isObjectType:()=>H,isOutputType:()=>ue,isRequiredArgument:()=>xe,isRequiredInputField:()=>qe,isScalarType:()=>$,isSchema:()=>Mt,isSelectionNode:()=>dn,isSpecifiedDirective:()=>xt,isSpecifiedScalarType:()=>ut,isType:()=>G,isTypeDefinitionNode:()=>gn,isTypeExtensionNode:()=>vn,isTypeNode:()=>hn,isTypeSubTypeOf:()=>Qe,isTypeSystemDefinitionNode:()=>mn,isTypeSystemExtensionNode:()=>yn,isUnionType:()=>Y,isValidNameError:()=>g,isValueNode:()=>fn,isWrappingType:()=>ve,lexicographicSortSchema:()=>oo,locatedError:()=>f,parse:()=>a.Qc,parseType:()=>a.gZ,parseValue:()=>a.H2,print:()=>M.S,printError:()=>u.OS,printIntrospectionSchema:()=>lo,printLocation:()=>Ti.Q,printSchema:()=>co,printSourceLocation:()=>Ti.z,printType:()=>mo,recommendedRules:()=>wr,responsePathAsArray:()=>Mr,separateOperations:()=>To,specifiedDirectives:()=>kt,specifiedRules:()=>Pr,specifiedScalarTypes:()=>st,stripIgnoredCharacters:()=>Po,subscribe:()=>Oi,syntaxError:()=>xi.h,typeFromAST:()=>an,validate:()=>Fr,validateSchema:()=>Bt,valueFromAST:()=>Vr,valueFromASTUntyped:()=>j,version:()=>r,versionInfo:()=>i,visit:()=>c.Vn,visitInParallel:()=>c.j1,visitWithTypeInfo:()=>cn});var r="15.10.1",i=Object.freeze({major:15,minor:10,patch:1,preReleaseTag:null});function o(e){return"function"==typeof(null==e?void 0:e.then)}var a=n(5390),s=n(8660),u=n(9793),c=n(8867);const l=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}},p=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})};var d=n(2277);function f(e,t,n){var r,i=e instanceof Error?e:new Error("Unexpected error value: "+(0,d.Z)(e));return Array.isArray(i.path)?i:new u.__(i.message,null!==(r=i.nodes)&&void 0!==r?r:t,i.source,i.positions,n,i)}var h=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function m(e){var t=g(e);if(t)throw t;return e}function g(e){return"string"==typeof e||(0,s.Z)(0,"Expected name to be a string."),e.length>1&&"_"===e[0]&&"_"===e[1]?new u.__('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.')):h.test(e)?void 0:new u.__('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}const y=Object.entries||function(e){return Object.keys(e).map(function(t){return[t,e[t]]})};var v=n(1176);function b(e,t){return e.reduce(function(e,n){return e[t(n)]=n,e},Object.create(null))}function E(e,t){for(var n=Object.create(null),r=0,i=y(e);r<i.length;r++){var o=i[r],a=o[0],s=o[1];n[a]=t(s,a)}return n}function _(e){if(null===Object.getPrototypeOf(e))return e;for(var t=Object.create(null),n=0,r=y(e);n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=a}return t}function I(e,t,n){return e.reduce(function(e,r){return e[t(r)]=n(r),e},Object.create(null))}var S=n(4846),T=5;function C(e,t){var n="string"==typeof e?[e,t]:[void 0,e],r=n[0],i=" Did you mean ";r&&(i+=r+" ");var o=n[1].map(function(e){return'"'.concat(e,'"')});switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}var a=o.slice(0,T),s=a.pop();return i+a.join(", ")+", or "+s+"?"}var w=n(1040);function P(e){return e}var D=n(9499);function A(e,t){for(var n=0,r=0;n<e.length&&r<t.length;){var i=e.charCodeAt(n),o=t.charCodeAt(r);if(R(i)&&R(o)){var a=0;do{++n,a=10*a+i-O,i=e.charCodeAt(n)}while(R(i)&&a>0);var s=0;do{++r,s=10*s+o-O,o=t.charCodeAt(r)}while(R(o)&&s>0);if(a<s)return-1;if(a>s)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}var O=48,N=57;function R(e){return!isNaN(e)&&O<=e&&e<=N}function F(e,t){for(var n=Object.create(null),r=new k(e),i=Math.floor(.4*e.length)+1,o=0;o<t.length;o++){var a=t[o],s=r.measure(a,i);void 0!==s&&(n[a]=s)}return Object.keys(n).sort(function(e,t){var r=n[e]-n[t];return 0!==r?r:A(e,t)})}var k=function(){function e(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=x(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}return e.prototype.measure=function(e,t){if(this._input===e)return 0;var n=e.toLowerCase();if(this._inputLowerCase===n)return 1;var r=x(n),i=this._inputArray;if(r.length<i.length){var o=r;r=i,i=o}var a=r.length,s=i.length;if(!(a-s>t)){for(var u=this._rows,c=0;c<=s;c++)u[0][c]=c;for(var l=1;l<=a;l++){for(var p=u[(l-1)%3],d=u[l%3],f=d[0]=l,h=1;h<=s;h++){var m=r[l-1]===i[h-1]?0:1,g=Math.min(p[h]+1,d[h-1]+1,p[h-1]+m);if(l>1&&h>1&&r[l-1]===i[h-2]&&r[l-2]===i[h-1]){var y=u[(l-2)%3][h-2];g=Math.min(g,y+1)}g<f&&(f=g),d[h]=g}if(f>t)return}var v=u[a%3][s];return v<=t?v:void 0}},e}();function x(e){for(var t=e.length,n=new Array(t),r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}var U=n(5115),M=n(9054),L=n(1424);function j(e,t){switch(e.kind){case U.h.NULL:return null;case U.h.INT:return parseInt(e.value,10);case U.h.FLOAT:return parseFloat(e.value);case U.h.STRING:case U.h.ENUM:case U.h.BOOLEAN:return e.value;case U.h.LIST:return e.values.map(function(e){return j(e,t)});case U.h.OBJECT:return I(e.fields,function(e){return e.name.value},function(e){return j(e.value,t)});case U.h.VARIABLE:return null==t?void 0:t[e.name.value]}(0,L.Z)(0,"Unexpected value node: "+(0,d.Z)(e))}function V(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 B(e,t,n){return t&&V(e.prototype,t),n&&V(e,n),e}function G(e){return $(e)||H(e)||W(e)||Y(e)||J(e)||ee(e)||ne(e)||ie(e)}function q(e){if(!G(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL type."));return e}function $(e){return(0,S.Z)(e,De)}function Q(e){if(!$(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL Scalar type."));return e}function H(e){return(0,S.Z)(e,Ae)}function z(e){if(!H(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL Object type."));return e}function W(e){return(0,S.Z)(e,Ue)}function Z(e){if(!W(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL Interface type."));return e}function Y(e){return(0,S.Z)(e,Me)}function K(e){if(!Y(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL Union type."));return e}function J(e){return(0,S.Z)(e,je)}function X(e){if(!J(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL Enum type."));return e}function ee(e){return(0,S.Z)(e,Be)}function te(e){if(!ee(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL Input Object type."));return e}function ne(e){return(0,S.Z)(e,ge)}function re(e){if(!ne(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL List type."));return e}function ie(e){return(0,S.Z)(e,ye)}function oe(e){if(!ie(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL Non-Null type."));return e}function ae(e){return $(e)||J(e)||ee(e)||ve(e)&&ae(e.ofType)}function se(e){if(!ae(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL input type."));return e}function ue(e){return $(e)||H(e)||W(e)||Y(e)||J(e)||ve(e)&&ue(e.ofType)}function ce(e){if(!ue(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL output type."));return e}function le(e){return $(e)||J(e)}function pe(e){if(!le(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL leaf type."));return e}function de(e){return H(e)||W(e)||Y(e)}function fe(e){if(!de(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL composite type."));return e}function he(e){return W(e)||Y(e)}function me(e){if(!he(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL abstract type."));return e}function ge(e){if(!(this instanceof ge))return new ge(e);this.ofType=q(e)}function ye(e){if(!(this instanceof ye))return new ye(e);this.ofType=_e(e)}function ve(e){return ne(e)||ie(e)}function be(e){if(!ve(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL wrapping type."));return e}function Ee(e){return G(e)&&!ie(e)}function _e(e){if(!Ee(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL nullable type."));return e}function Ie(e){if(e)return ie(e)?e.ofType:e}function Se(e){return $(e)||H(e)||W(e)||Y(e)||J(e)||ee(e)}function Te(e){if(!Se(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL named type."));return e}function Ce(e){if(e){for(var t=e;ve(t);)t=t.ofType;return t}}function we(e){return"function"==typeof e?e():e}function Pe(e){return e&&e.length>0?e:void 0}ge.prototype.toString=function(){return"["+String(this.ofType)+"]"},ge.prototype.toJSON=function(){return this.toString()},Object.defineProperty(ge.prototype,v.YF,{get:function(){return"GraphQLList"}}),(0,D.Z)(ge),ye.prototype.toString=function(){return String(this.ofType)+"!"},ye.prototype.toJSON=function(){return this.toString()},Object.defineProperty(ye.prototype,v.YF,{get:function(){return"GraphQLNonNull"}}),(0,D.Z)(ye);var De=function(){function e(e){var t,n,r,i=null!==(t=e.parseValue)&&void 0!==t?t:P;this.name=e.name,this.description=e.description,this.specifiedByUrl=e.specifiedByUrl,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:P,this.parseValue=i,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:function(e,t){return i(j(e,t))},this.extensions=e.extensions&&_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Pe(e.extensionASTNodes),"string"==typeof e.name||(0,s.Z)(0,"Must provide name."),null==e.specifiedByUrl||"string"==typeof e.specifiedByUrl||(0,s.Z)(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat((0,d.Z)(e.specifiedByUrl),".")),null==e.serialize||"function"==typeof e.serialize||(0,s.Z)(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,s.Z)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){var e;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},B(e,[{key:v.YF,get:function(){return"GraphQLScalarType"}}]),e}();(0,D.Z)(De);var Ae=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Pe(e.extensionASTNodes),this._fields=Ne.bind(void 0,e),this._interfaces=Oe.bind(void 0,e),"string"==typeof e.name||(0,s.Z)(0,"Must provide name."),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,s.Z)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,d.Z)(e.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Fe(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},B(e,[{key:v.YF,get:function(){return"GraphQLObjectType"}}]),e}();function Oe(e){var t,n=null!==(t=we(e.interfaces))&&void 0!==t?t:[];return Array.isArray(n)||(0,s.Z)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function Ne(e){var t=we(e.fields);return Re(t)||(0,s.Z)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),E(t,function(t,n){var r;Re(t)||(0,s.Z)(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in t)||(0,s.Z)(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"==typeof t.resolve||(0,s.Z)(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat((0,d.Z)(t.resolve),"."));var i=null!==(r=t.args)&&void 0!==r?r:{};Re(i)||(0,s.Z)(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var o=y(i).map(function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&_(n.extensions),astNode:n.astNode}});return{name:n,description:t.description,type:t.type,args:o,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:null!=t.deprecationReason,deprecationReason:t.deprecationReason,extensions:t.extensions&&_(t.extensions),astNode:t.astNode}})}function Re(e){return(0,w.Z)(e)&&!Array.isArray(e)}function Fe(e){return E(e,function(e){return{description:e.description,type:e.type,args:ke(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}})}function ke(e){return I(e,function(e){return e.name},function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}})}function xe(e){return ie(e.type)&&void 0===e.defaultValue}(0,D.Z)(Ae);var Ue=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Pe(e.extensionASTNodes),this._fields=Ne.bind(void 0,e),this._interfaces=Oe.bind(void 0,e),"string"==typeof e.name||(0,s.Z)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||(0,s.Z)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,d.Z)(e.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){var e;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Fe(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},B(e,[{key:v.YF,get:function(){return"GraphQLInterfaceType"}}]),e}();(0,D.Z)(Ue);var Me=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Pe(e.extensionASTNodes),this._types=Le.bind(void 0,e),"string"==typeof e.name||(0,s.Z)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||(0,s.Z)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,d.Z)(e.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},t.toConfig=function(){var e;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},B(e,[{key:v.YF,get:function(){return"GraphQLUnionType"}}]),e}();function Le(e){var t=we(e.types);return Array.isArray(t)||(0,s.Z)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}(0,D.Z)(Me);var je=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Pe(e.extensionASTNodes),this._values=(t=this.name,Re(n=e.values)||(0,s.Z)(0,"".concat(t," values must be an object with value names as keys.")),y(n).map(function(e){var n=e[0],r=e[1];return Re(r)||(0,s.Z)(0,"".concat(t,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,d.Z)(r),".")),!("isDeprecated"in r)||(0,s.Z)(0,"".concat(t,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:r.description,value:void 0!==r.value?r.value:n,isDeprecated:null!=r.deprecationReason,deprecationReason:r.deprecationReason,extensions:r.extensions&&_(r.extensions),astNode:r.astNode}})),this._valueLookup=new Map(this._values.map(function(e){return[e.value,e]})),this._nameLookup=b(this._values,function(e){return e.name}),"string"==typeof e.name||(0,s.Z)(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(e){return this._nameLookup[e]},t.serialize=function(e){var t=this._valueLookup.get(e);if(void 0===t)throw new u.__('Enum "'.concat(this.name,'" cannot represent value: ').concat((0,d.Z)(e)));return t.name},t.parseValue=function(e){if("string"!=typeof e){var t=(0,d.Z)(e);throw new u.__('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+Ve(this,t))}var n=this.getValue(e);if(null==n)throw new u.__('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+Ve(this,e));return n.value},t.parseLiteral=function(e,t){if(e.kind!==U.h.ENUM){var n=(0,M.S)(e);throw new u.__('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(n,".")+Ve(this,n),e)}var r=this.getValue(e.value);if(null==r){var i=(0,M.S)(e);throw new u.__('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+Ve(this,i),e)}return r.value},t.toConfig=function(){var e,t=I(this.getValues(),function(e){return e.name},function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}});return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},B(e,[{key:v.YF,get:function(){return"GraphQLEnumType"}}]),e}();function Ve(e,t){return C("the enum value",F(t,e.getValues().map(function(e){return e.name})))}(0,D.Z)(je);var Be=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Pe(e.extensionASTNodes),this._fields=Ge.bind(void 0,e),"string"==typeof e.name||(0,s.Z)(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var e,t=E(this.getFields(),function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}});return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},B(e,[{key:v.YF,get:function(){return"GraphQLInputObjectType"}}]),e}();function Ge(e){var t=we(e.fields);return Re(t)||(0,s.Z)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),E(t,function(t,n){return!("resolve"in t)||(0,s.Z)(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&_(t.extensions),astNode:t.astNode}})}function qe(e){return ie(e.type)&&void 0===e.defaultValue}function $e(e,t){return e===t||(ie(e)&&ie(t)||!(!ne(e)||!ne(t)))&&$e(e.ofType,t.ofType)}function Qe(e,t,n){return t===n||(ie(n)?!!ie(t)&&Qe(e,t.ofType,n.ofType):ie(t)?Qe(e,t.ofType,n):ne(n)?!!ne(t)&&Qe(e,t.ofType,n.ofType):!ne(t)&&he(n)&&(W(t)||H(t))&&e.isSubType(n,t))}function He(e,t,n){return t===n||(he(t)?he(n)?e.getPossibleTypes(t).some(function(t){return e.isSubType(n,t)}):e.isSubType(t,n):!!he(n)&&e.isSubType(n,t))}(0,D.Z)(Be);const ze=Array.from||function(e,t,n){if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r=e[v.Xr];if("function"==typeof r){for(var i,o=r.call(e),a=[],s=0;!(i=o.next()).done;++s)if(a.push(t.call(n,i.value,s)),s>9999999)throw new TypeError("Near-infinite iteration.");return a}var u=e.length;if("number"==typeof u&&u>=0&&u%1==0){for(var c=[],l=0;l<u;++l)Object.prototype.hasOwnProperty.call(e,l)&&c.push(t.call(n,e[l],l));return c}return[]};var We=n(9633);const Ze=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)};function Ye(e){return Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ye(e)}function Ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};if(null==e||"object"!==Ye(e))return null;if(Array.isArray(e))return e.map(t);var n=e[v.Xr];if("function"==typeof n){for(var r,i=n.call(e),o=[],a=0;!(r=i.next()).done;++a)o.push(t(r.value,a));return o}var s=e.length;if("number"==typeof s&&s>=0&&s%1==0){for(var u=[],c=0;c<s;++c){if(!Object.prototype.hasOwnProperty.call(e,c))return null;u.push(t(e[String(c)],c))}return u}return null}const Je=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};var Xe=2147483647,et=-2147483648,tt=new De({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:function(e){var t=rt(e);if("boolean"==typeof t)return t?1:0;var n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),!Je(n))throw new u.__("Int cannot represent non-integer value: ".concat((0,d.Z)(t)));if(n>Xe||n<et)throw new u.__("Int cannot represent non 32-bit signed integer value: "+(0,d.Z)(t));return n},parseValue:function(e){if(!Je(e))throw new u.__("Int cannot represent non-integer value: ".concat((0,d.Z)(e)));if(e>Xe||e<et)throw new u.__("Int cannot represent non 32-bit signed integer value: ".concat(e));return e},parseLiteral:function(e){if(e.kind!==U.h.INT)throw new u.__("Int cannot represent non-integer value: ".concat((0,M.S)(e)),e);var t=parseInt(e.value,10);if(t>Xe||t<et)throw new u.__("Int cannot represent non 32-bit signed integer value: ".concat(e.value),e);return t}}),nt=new De({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){var t=rt(e);if("boolean"==typeof t)return t?1:0;var n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),!Ze(n))throw new u.__("Float cannot represent non numeric value: ".concat((0,d.Z)(t)));return n},parseValue:function(e){if(!Ze(e))throw new u.__("Float cannot represent non numeric value: ".concat((0,d.Z)(e)));return e},parseLiteral:function(e){if(e.kind!==U.h.FLOAT&&e.kind!==U.h.INT)throw new u.__("Float cannot represent non numeric value: ".concat((0,M.S)(e)),e);return parseFloat(e.value)}});function rt(e){if((0,w.Z)(e)){if("function"==typeof e.valueOf){var t=e.valueOf();if(!(0,w.Z)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}var it=new De({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=rt(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if(Ze(t))return t.toString();throw new u.__("String cannot represent value: ".concat((0,d.Z)(e)))},parseValue:function(e){if("string"!=typeof e)throw new u.__("String cannot represent a non string value: ".concat((0,d.Z)(e)));return e},parseLiteral:function(e){if(e.kind!==U.h.STRING)throw new u.__("String cannot represent a non string value: ".concat((0,M.S)(e)),e);return e.value}}),ot=new De({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){var t=rt(e);if("boolean"==typeof t)return t;if(Ze(t))return 0!==t;throw new u.__("Boolean cannot represent a non boolean value: ".concat((0,d.Z)(t)))},parseValue:function(e){if("boolean"!=typeof e)throw new u.__("Boolean cannot represent a non boolean value: ".concat((0,d.Z)(e)));return e},parseLiteral:function(e){if(e.kind!==U.h.BOOLEAN)throw new u.__("Boolean cannot represent a non boolean value: ".concat((0,M.S)(e)),e);return e.value}}),at=new De({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=rt(e);if("string"==typeof t)return t;if(Je(t))return String(t);throw new u.__("ID cannot represent value: ".concat((0,d.Z)(e)))},parseValue:function(e){if("string"==typeof e)return e;if(Je(e))return e.toString();throw new u.__("ID cannot represent value: ".concat((0,d.Z)(e)))},parseLiteral:function(e){if(e.kind!==U.h.STRING&&e.kind!==U.h.INT)throw new u.__("ID cannot represent a non-string and non-integer value: "+(0,M.S)(e),e);return e.value}}),st=Object.freeze([it,tt,nt,ot,at]);function ut(e){return st.some(function(t){var n=t.name;return e.name===n})}function ct(e,t){if(ie(t)){var n=ct(e,t.ofType);return(null==n?void 0:n.kind)===U.h.NULL?null:n}if(null===e)return{kind:U.h.NULL};if(void 0===e)return null;if(ne(t)){var r=t.ofType,i=Ke(e);if(null!=i){for(var o=[],a=0;a<i.length;a++){var s=ct(i[a],r);null!=s&&o.push(s)}return{kind:U.h.LIST,values:o}}return ct(e,r)}if(ee(t)){if(!(0,w.Z)(e))return null;for(var u=[],c=0,l=p(t.getFields());c<l.length;c++){var f=l[c],h=ct(e[f.name],f.type);h&&u.push({kind:U.h.OBJECT_FIELD,name:{kind:U.h.NAME,value:f.name},value:h})}return{kind:U.h.OBJECT,fields:u}}if(le(t)){var m=t.serialize(e);if(null==m)return null;if("boolean"==typeof m)return{kind:U.h.BOOLEAN,value:m};if("number"==typeof m&&Ze(m)){var g=String(m);return lt.test(g)?{kind:U.h.INT,value:g}:{kind:U.h.FLOAT,value:g}}if("string"==typeof m)return J(t)?{kind:U.h.ENUM,value:m}:t===at&<.test(m)?{kind:U.h.INT,value:m}:{kind:U.h.STRING,value:m};throw new TypeError("Cannot convert value to AST: ".concat((0,d.Z)(m),"."))}(0,L.Z)(0,"Unexpected input type: "+(0,d.Z)(t))}var lt=/^-?(?:0|[1-9][0-9]*)$/,pt=new Ae({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:it,resolve:function(e){return e.description}},types:{description:"A list of all types supported by this server.",type:new ye(new ge(new ye(ht))),resolve:function(e){return p(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new ye(ht),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:ht,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:ht,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new ye(new ge(new ye(dt))),resolve:function(e){return e.getDirectives()}}}}}),dt=new Ae({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:new ye(it),resolve:function(e){return e.name}},description:{type:it,resolve:function(e){return e.description}},isRepeatable:{type:new ye(ot),resolve:function(e){return e.isRepeatable}},locations:{type:new ye(new ge(new ye(ft))),resolve:function(e){return e.locations}},args:{type:new ye(new ge(new ye(gt))),args:{includeDeprecated:{type:ot,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter(function(e){return null==e.deprecationReason})}}}}}),ft=new je({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:We.B.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:We.B.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:We.B.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:We.B.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:We.B.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:We.B.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:We.B.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:We.B.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:We.B.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:We.B.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:We.B.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:We.B.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:We.B.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:We.B.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:We.B.UNION,description:"Location adjacent to a union definition."},ENUM:{value:We.B.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:We.B.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:We.B.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:We.B.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),ht=new Ae({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new ye(bt),resolve:function(e){return $(e)?vt.SCALAR:H(e)?vt.OBJECT:W(e)?vt.INTERFACE:Y(e)?vt.UNION:J(e)?vt.ENUM:ee(e)?vt.INPUT_OBJECT:ne(e)?vt.LIST:ie(e)?vt.NON_NULL:void(0,L.Z)(0,'Unexpected type: "'.concat((0,d.Z)(e),'".'))}},name:{type:it,resolve:function(e){return void 0!==e.name?e.name:void 0}},description:{type:it,resolve:function(e){return void 0!==e.description?e.description:void 0}},specifiedByUrl:{type:it,resolve:function(e){return void 0!==e.specifiedByUrl?e.specifiedByUrl:void 0}},fields:{type:new ge(new ye(mt)),args:{includeDeprecated:{type:ot,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(H(e)||W(e)){var r=p(e.getFields());return n?r:r.filter(function(e){return null==e.deprecationReason})}}},interfaces:{type:new ge(new ye(ht)),resolve:function(e){if(H(e)||W(e))return e.getInterfaces()}},possibleTypes:{type:new ge(new ye(ht)),resolve:function(e,t,n,r){var i=r.schema;if(he(e))return i.getPossibleTypes(e)}},enumValues:{type:new ge(new ye(yt)),args:{includeDeprecated:{type:ot,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(J(e)){var r=e.getValues();return n?r:r.filter(function(e){return null==e.deprecationReason})}}},inputFields:{type:new ge(new ye(gt)),args:{includeDeprecated:{type:ot,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(ee(e)){var r=p(e.getFields());return n?r:r.filter(function(e){return null==e.deprecationReason})}}},ofType:{type:ht,resolve:function(e){return void 0!==e.ofType?e.ofType:void 0}}}}}),mt=new Ae({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new ye(it),resolve:function(e){return e.name}},description:{type:it,resolve:function(e){return e.description}},args:{type:new ye(new ge(new ye(gt))),args:{includeDeprecated:{type:ot,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter(function(e){return null==e.deprecationReason})}},type:{type:new ye(ht),resolve:function(e){return e.type}},isDeprecated:{type:new ye(ot),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:it,resolve:function(e){return e.deprecationReason}}}}}),gt=new Ae({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new ye(it),resolve:function(e){return e.name}},description:{type:it,resolve:function(e){return e.description}},type:{type:new ye(ht),resolve:function(e){return e.type}},defaultValue:{type:it,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){var t=e.type,n=ct(e.defaultValue,t);return n?(0,M.S)(n):null}},isDeprecated:{type:new ye(ot),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:it,resolve:function(e){return e.deprecationReason}}}}}),yt=new Ae({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new ye(it),resolve:function(e){return e.name}},description:{type:it,resolve:function(e){return e.description}},isDeprecated:{type:new ye(ot),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:it,resolve:function(e){return e.deprecationReason}}}}}),vt=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),bt=new je({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:vt.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:vt.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:vt.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:vt.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:vt.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:vt.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:vt.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:vt.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Et={name:"__schema",type:new ye(pt),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},_t={name:"__type",type:ht,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new ye(it),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(e,t,n,r){var i=t.name;return r.schema.getType(i)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},It={name:"__typename",type:new ye(it),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,r){return r.parentType.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},St=Object.freeze([pt,dt,ft,ht,mt,gt,yt,bt]);function Tt(e){return St.some(function(t){var n=t.name;return e.name===n})}function Ct(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 wt(e){return(0,S.Z)(e,Dt)}function Pt(e){if(!wt(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL directive."));return e}var Dt=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=e.extensions&&_(e.extensions),this.astNode=e.astNode,e.name||(0,s.Z)(0,"Directive must be named."),Array.isArray(e.locations)||(0,s.Z)(0,"@".concat(e.name," locations must be an Array."));var r=null!==(n=e.args)&&void 0!==n?n:{};(0,w.Z)(r)&&!Array.isArray(r)||(0,s.Z)(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=y(r).map(function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&_(n.extensions),astNode:n.astNode}})}var t,n,r=e.prototype;return r.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:ke(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},r.toString=function(){return"@"+this.name},r.toJSON=function(){return this.toString()},t=e,(n=[{key:v.YF,get:function(){return"GraphQLDirective"}}])&&Ct(t.prototype,n),e}();(0,D.Z)(Dt);var At=new Dt({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[We.B.FIELD,We.B.FRAGMENT_SPREAD,We.B.INLINE_FRAGMENT],args:{if:{type:new ye(ot),description:"Included when true."}}}),Ot=new Dt({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[We.B.FIELD,We.B.FRAGMENT_SPREAD,We.B.INLINE_FRAGMENT],args:{if:{type:new ye(ot),description:"Skipped when true."}}}),Nt="No longer supported",Rt=new Dt({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[We.B.FIELD_DEFINITION,We.B.ARGUMENT_DEFINITION,We.B.INPUT_FIELD_DEFINITION,We.B.ENUM_VALUE],args:{reason:{type:it,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:Nt}}}),Ft=new Dt({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[We.B.SCALAR],args:{url:{type:new ye(it),description:"The URL that specifies the behaviour of this scalar."}}}),kt=Object.freeze([At,Ot,Rt,Ft]);function xt(e){return kt.some(function(t){return t.name===e.name})}function Ut(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 Mt(e){return(0,S.Z)(e,jt)}function Lt(e){if(!Mt(e))throw new Error("Expected ".concat((0,d.Z)(e)," to be a GraphQL schema."));return e}var jt=function(){function e(e){var t;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,w.Z)(e)||(0,s.Z)(0,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,s.Z)(0,'"types" must be Array if provided but got: '.concat((0,d.Z)(e.types),".")),!e.directives||Array.isArray(e.directives)||(0,s.Z)(0,'"directives" must be Array if provided but got: '+"".concat((0,d.Z)(e.directives),".")),this.description=e.description,this.extensions=e.extensions&&_(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(t=e.directives)&&void 0!==t?t:kt;var n=new Set(e.types);if(null!=e.types)for(var r=0,i=e.types;r<i.length;r++){var o=i[r];n.delete(o),Vt(o,n)}null!=this._queryType&&Vt(this._queryType,n),null!=this._mutationType&&Vt(this._mutationType,n),null!=this._subscriptionType&&Vt(this._subscriptionType,n);for(var a=0,u=this._directives;a<u.length;a++){var c=u[a];if(wt(c))for(var l=0,p=c.args;l<p.length;l++)Vt(p[l].type,n)}Vt(pt,n),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var f=0,h=ze(n);f<h.length;f++){var m=h[f];if(null!=m){var g=m.name;if(g||(0,s.Z)(0,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[g])throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(g,'".'));if(this._typeMap[g]=m,W(m))for(var y=0,v=m.getInterfaces();y<v.length;y++){var b=v[y];if(W(b)){var E=this._implementationsMap[b.name];void 0===E&&(E=this._implementationsMap[b.name]={objects:[],interfaces:[]}),E.interfaces.push(m)}}else if(H(m))for(var I=0,S=m.getInterfaces();I<S.length;I++){var T=S[I];if(W(T)){var C=this._implementationsMap[T.name];void 0===C&&(C=this._implementationsMap[T.name]={objects:[],interfaces:[]}),C.objects.push(m)}}}}}var t,n,r=e.prototype;return r.getQueryType=function(){return this._queryType},r.getMutationType=function(){return this._mutationType},r.getSubscriptionType=function(){return this._subscriptionType},r.getTypeMap=function(){return this._typeMap},r.getType=function(e){return this.getTypeMap()[e]},r.getPossibleTypes=function(e){return Y(e)?e.getTypes():this.getImplementations(e).objects},r.getImplementations=function(e){var t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}},r.isPossibleType=function(e,t){return this.isSubType(e,t)},r.isSubType=function(e,t){var n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),Y(e))for(var r=0,i=e.getTypes();r<i.length;r++)n[i[r].name]=!0;else{for(var o=this.getImplementations(e),a=0,s=o.objects;a<s.length;a++)n[s[a].name]=!0;for(var u=0,c=o.interfaces;u<c.length;u++)n[c[u].name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]},r.getDirectives=function(){return this._directives},r.getDirective=function(e){return l(this.getDirectives(),function(t){return t.name===e})},r.toConfig=function(){var e;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:p(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[],assumeValid:void 0!==this.__validationErrors}},t=e,(n=[{key:v.YF,get:function(){return"GraphQLSchema"}}])&&Ut(t.prototype,n),e}();function Vt(e,t){var n=Ce(e);if(!t.has(n))if(t.add(n),Y(n))for(var r=0,i=n.getTypes();r<i.length;r++)Vt(i[r],t);else if(H(n)||W(n)){for(var o=0,a=n.getInterfaces();o<a.length;o++)Vt(a[o],t);for(var s=0,u=p(n.getFields());s<u.length;s++){var c=u[s];Vt(c.type,t);for(var l=0,d=c.args;l<d.length;l++)Vt(d[l].type,t)}}else if(ee(n))for(var f=0,h=p(n.getFields());f<h.length;f++)Vt(h[f].type,t);return t}function Bt(e){if(Lt(e),e.__validationErrors)return e.__validationErrors;var t=new qt(e);!function(e){var t=e.schema,n=t.getQueryType();if(n){if(!H(n)){var r;e.reportError("Query root type must be Object type, it cannot be ".concat((0,d.Z)(n),"."),null!==(r=$t(t,"query"))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);var i,o=t.getMutationType();o&&!H(o)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,d.Z)(o),"."),null!==(i=$t(t,"mutation"))&&void 0!==i?i:o.astNode);var a,s=t.getSubscriptionType();s&&!H(s)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,d.Z)(s),"."),null!==(a=$t(t,"subscription"))&&void 0!==a?a:s.astNode)}(t),function(e){for(var t=0,n=e.schema.getDirectives();t<n.length;t++){var r=n[t];if(wt(r)){Qt(e,r);for(var i=0,o=r.args;i<o.length;i++){var a,s=o[i];Qt(e,s),ae(s.type)||e.reportError("The type of @".concat(r.name,"(").concat(s.name,":) must be Input Type ")+"but got: ".concat((0,d.Z)(s.type),"."),s.astNode),xe(s)&&null!=s.deprecationReason&&e.reportError("Required argument @".concat(r.name,"(").concat(s.name,":) cannot be deprecated."),[rn(s.astNode),null===(a=s.astNode)||void 0===a?void 0:a.type])}}else e.reportError("Expected directive but got: ".concat((0,d.Z)(r),"."),null==r?void 0:r.astNode)}}(t),function(e){for(var t=function(e){var t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(!t[o.name]){t[o.name]=!0,r[o.name]=n.length;for(var a=p(o.getFields()),s=0;s<a.length;s++){var u=a[s];if(ie(u.type)&&ee(u.type.ofType)){var c=u.type.ofType,l=r[c.name];if(n.push(u),void 0===l)i(c);else{var d=n.slice(l),f=d.map(function(e){return e.name}).join(".");e.reportError('Cannot reference Input Object "'.concat(c.name,'" within itself through a series of non-null fields: "').concat(f,'".'),d.map(function(e){return e.astNode}))}n.pop()}}r[o.name]=void 0}}}(e),n=e.schema.getTypeMap(),r=0,i=p(n);r<i.length;r++){var o=i[r];Se(o)?(Tt(o)||Qt(e,o),H(o)||W(o)?(Ht(e,o),zt(e,o)):Y(o)?Yt(e,o):J(o)?Kt(e,o):ee(o)&&(Jt(e,o),t(o))):e.reportError("Expected GraphQL named type but got: ".concat((0,d.Z)(o),"."),o.astNode)}}(t);var n=t.getErrors();return e.__validationErrors=n,n}function Gt(e){var t=Bt(e);if(0!==t.length)throw new Error(t.map(function(e){return e.message}).join("\n\n"))}var qt=function(){function e(e){this._errors=[],this.schema=e}var t=e.prototype;return t.reportError=function(e,t){var n=Array.isArray(t)?t.filter(Boolean):t;this.addError(new u.__(e,n))},t.addError=function(e){this._errors.push(e)},t.getErrors=function(){return this._errors},e}();function $t(e,t){for(var n=en(e,function(e){return e.operationTypes}),r=0;r<n.length;r++){var i=n[r];if(i.operation===t)return i.type}}function Qt(e,t){var n=g(t.name);n&&e.addError(f(n,t.astNode))}function Ht(e,t){var n=p(t.getFields());0===n.length&&e.reportError("Type ".concat(t.name," must define one or more fields."),Xt(t));for(var r=0;r<n.length;r++){var i,o=n[r];Qt(e,o),ue(o.type)||e.reportError("The type of ".concat(t.name,".").concat(o.name," must be Output Type ")+"but got: ".concat((0,d.Z)(o.type),"."),null===(i=o.astNode)||void 0===i?void 0:i.type);for(var a=0,s=o.args;a<s.length;a++){var u,c,l=s[a],f=l.name;Qt(e,l),ae(l.type)||e.reportError("The type of ".concat(t.name,".").concat(o.name,"(").concat(f,":) must be Input ")+"Type but got: ".concat((0,d.Z)(l.type),"."),null===(u=l.astNode)||void 0===u?void 0:u.type),xe(l)&&null!=l.deprecationReason&&e.reportError("Required argument ".concat(t.name,".").concat(o.name,"(").concat(f,":) cannot be deprecated."),[rn(l.astNode),null===(c=l.astNode)||void 0===c?void 0:c.type])}}}function zt(e,t){for(var n=Object.create(null),r=0,i=t.getInterfaces();r<i.length;r++){var o=i[r];W(o)?t!==o?n[o.name]?e.reportError("Type ".concat(t.name," can only implement ").concat(o.name," once."),tn(t,o)):(n[o.name]=!0,Zt(e,t,o),Wt(e,t,o)):e.reportError("Type ".concat(t.name," cannot implement itself because it would create a circular reference."),tn(t,o)):e.reportError("Type ".concat((0,d.Z)(t)," must only implement Interface types, ")+"it cannot implement ".concat((0,d.Z)(o),"."),tn(t,o))}}function Wt(e,t,n){for(var r=t.getFields(),i=0,o=p(n.getFields());i<o.length;i++){var a=o[i],s=a.name,u=r[s];if(u){var c,f;Qe(e.schema,u.type,a.type)||e.reportError("Interface field ".concat(n.name,".").concat(s," expects type ")+"".concat((0,d.Z)(a.type)," but ").concat(t.name,".").concat(s," ")+"is type ".concat((0,d.Z)(u.type),"."),[null===(c=a.astNode)||void 0===c?void 0:c.type,null===(f=u.astNode)||void 0===f?void 0:f.type]);for(var h=function(r,i){var o,a,c=i[r],p=c.name,f=l(u.args,function(e){return e.name===p});if(!f)return e.reportError("Interface field argument ".concat(n.name,".").concat(s,"(").concat(p,":) expected but ").concat(t.name,".").concat(s," does not provide it."),[c.astNode,u.astNode]),"continue";$e(c.type,f.type)||e.reportError("Interface field argument ".concat(n.name,".").concat(s,"(").concat(p,":) ")+"expects type ".concat((0,d.Z)(c.type)," but ")+"".concat(t.name,".").concat(s,"(").concat(p,":) is type ")+"".concat((0,d.Z)(f.type),"."),[null===(o=c.astNode)||void 0===o?void 0:o.type,null===(a=f.astNode)||void 0===a?void 0:a.type])},m=0,g=a.args;m<g.length;m++)h(m,g);for(var y=function(r,i){var o=i[r],u=o.name;!l(a.args,function(e){return e.name===u})&&xe(o)&&e.reportError("Object field ".concat(t.name,".").concat(s," includes required argument ").concat(u," that is missing from the Interface field ").concat(n.name,".").concat(s,"."),[o.astNode,a.astNode])},v=0,b=u.args;v<b.length;v++)y(v,b)}else e.reportError("Interface field ".concat(n.name,".").concat(s," expected but ").concat(t.name," does not provide it."),[a.astNode].concat(Xt(t)))}}function Zt(e,t,n){for(var r=t.getInterfaces(),i=0,o=n.getInterfaces();i<o.length;i++){var a=o[i];-1===r.indexOf(a)&&e.reportError(a===t?"Type ".concat(t.name," cannot implement ").concat(n.name," because it would create a circular reference."):"Type ".concat(t.name," must implement ").concat(a.name," because it is implemented by ").concat(n.name,"."),[].concat(tn(n,a),tn(t,n)))}}function Yt(e,t){var n=t.getTypes();0===n.length&&e.reportError("Union type ".concat(t.name," must define one or more member types."),Xt(t));for(var r=Object.create(null),i=0;i<n.length;i++){var o=n[i];r[o.name]?e.reportError("Union type ".concat(t.name," can only include type ").concat(o.name," once."),nn(t,o.name)):(r[o.name]=!0,H(o)||e.reportError("Union type ".concat(t.name," can only include Object types, ")+"it cannot include ".concat((0,d.Z)(o),"."),nn(t,String(o))))}}function Kt(e,t){var n=t.getValues();0===n.length&&e.reportError("Enum type ".concat(t.name," must define one or more values."),Xt(t));for(var r=0;r<n.length;r++){var i=n[r],o=i.name;Qt(e,i),"true"!==o&&"false"!==o&&"null"!==o||e.reportError("Enum type ".concat(t.name," cannot include value: ").concat(o,"."),i.astNode)}}function Jt(e,t){var n=p(t.getFields());0===n.length&&e.reportError("Input Object type ".concat(t.name," must define one or more fields."),Xt(t));for(var r=0;r<n.length;r++){var i,o,a=n[r];Qt(e,a),ae(a.type)||e.reportError("The type of ".concat(t.name,".").concat(a.name," must be Input Type ")+"but got: ".concat((0,d.Z)(a.type),"."),null===(i=a.astNode)||void 0===i?void 0:i.type),qe(a)&&null!=a.deprecationReason&&e.reportError("Required input field ".concat(t.name,".").concat(a.name," cannot be deprecated."),[rn(a.astNode),null===(o=a.astNode)||void 0===o?void 0:o.type])}}function Xt(e){var t=e.astNode,n=e.extensionASTNodes;return t?n?[t].concat(n):[t]:null!=n?n:[]}function en(e,t){for(var n=[],r=0,i=Xt(e);r<i.length;r++){var o,a=i[r];n=n.concat(null!==(o=t(a))&&void 0!==o?o:[])}return n}function tn(e,t){return en(e,function(e){return e.interfaces}).filter(function(e){return e.name.value===t.name})}function nn(e,t){return en(e,function(e){return e.types}).filter(function(e){return e.name.value===t})}function rn(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find(function(e){return e.name.value===Rt.name})}var on=n(781);function an(e,t){var n;return t.kind===U.h.LIST_TYPE?(n=an(e,t.type))&&new ge(n):t.kind===U.h.NON_NULL_TYPE?(n=an(e,t.type))&&new ye(n):t.kind===U.h.NAMED_TYPE?e.getType(t.name.value):void(0,L.Z)(0,"Unexpected type node: "+(0,d.Z)(t))}var sn=function(){function e(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=t?t:un,n&&(ae(n)&&this._inputTypeStack.push(n),de(n)&&this._parentTypeStack.push(n),ue(n)&&this._typeStack.push(n))}var t=e.prototype;return t.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case U.h.SELECTION_SET:var n=Ce(this.getType());this._parentTypeStack.push(de(n)?n:void 0);break;case U.h.FIELD:var r,i,o=this.getParentType();o&&(r=this._getFieldDef(t,o,e))&&(i=r.type),this._fieldDefStack.push(r),this._typeStack.push(ue(i)?i:void 0);break;case U.h.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case U.h.OPERATION_DEFINITION:var a;switch(e.operation){case"query":a=t.getQueryType();break;case"mutation":a=t.getMutationType();break;case"subscription":a=t.getSubscriptionType()}this._typeStack.push(H(a)?a:void 0);break;case U.h.INLINE_FRAGMENT:case U.h.FRAGMENT_DEFINITION:var s=e.typeCondition,u=s?an(t,s):Ce(this.getType());this._typeStack.push(ue(u)?u:void 0);break;case U.h.VARIABLE_DEFINITION:var c=an(t,e.type);this._inputTypeStack.push(ae(c)?c:void 0);break;case U.h.ARGUMENT:var p,d,f,h=null!==(p=this.getDirective())&&void 0!==p?p:this.getFieldDef();h&&(d=l(h.args,function(t){return t.name===e.name.value}))&&(f=d.type),this._argument=d,this._defaultValueStack.push(d?d.defaultValue:void 0),this._inputTypeStack.push(ae(f)?f:void 0);break;case U.h.LIST:var m=Ie(this.getInputType()),g=ne(m)?m.ofType:m;this._defaultValueStack.push(void 0),this._inputTypeStack.push(ae(g)?g:void 0);break;case U.h.OBJECT_FIELD:var y,v,b=Ce(this.getInputType());ee(b)&&(v=b.getFields()[e.name.value])&&(y=v.type),this._defaultValueStack.push(v?v.defaultValue:void 0),this._inputTypeStack.push(ae(y)?y:void 0);break;case U.h.ENUM:var E,_=Ce(this.getInputType());J(_)&&(E=_.getValue(e.value)),this._enumValue=E}},t.leave=function(e){switch(e.kind){case U.h.SELECTION_SET:this._parentTypeStack.pop();break;case U.h.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case U.h.DIRECTIVE:this._directive=null;break;case U.h.OPERATION_DEFINITION:case U.h.INLINE_FRAGMENT:case U.h.FRAGMENT_DEFINITION:this._typeStack.pop();break;case U.h.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case U.h.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case U.h.LIST:case U.h.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case U.h.ENUM:this._enumValue=null}},e}();function un(e,t,n){var r=n.name.value;return r===Et.name&&e.getQueryType()===t?Et:r===_t.name&&e.getQueryType()===t?_t:r===It.name&&de(t)?It:H(t)||W(t)?t.getFields()[r]:void 0}function cn(e,t){return{enter:function(n){e.enter(n);var r=(0,c.CK)(t,n.kind,!1);if(r){var i=r.apply(t,arguments);return void 0!==i&&(e.leave(n),(0,on.UG)(i)&&e.enter(i)),i}},leave:function(n){var r,i=(0,c.CK)(t,n.kind,!0);return i&&(r=i.apply(t,arguments)),e.leave(n),r}}}function ln(e){return pn(e)||mn(e)||yn(e)}function pn(e){return e.kind===U.h.OPERATION_DEFINITION||e.kind===U.h.FRAGMENT_DEFINITION}function dn(e){return e.kind===U.h.FIELD||e.kind===U.h.FRAGMENT_SPREAD||e.kind===U.h.INLINE_FRAGMENT}function fn(e){return e.kind===U.h.VARIABLE||e.kind===U.h.INT||e.kind===U.h.FLOAT||e.kind===U.h.STRING||e.kind===U.h.BOOLEAN||e.kind===U.h.NULL||e.kind===U.h.ENUM||e.kind===U.h.LIST||e.kind===U.h.OBJECT}function hn(e){return e.kind===U.h.NAMED_TYPE||e.kind===U.h.LIST_TYPE||e.kind===U.h.NON_NULL_TYPE}function mn(e){return e.kind===U.h.SCHEMA_DEFINITION||gn(e)||e.kind===U.h.DIRECTIVE_DEFINITION}function gn(e){return e.kind===U.h.SCALAR_TYPE_DEFINITION||e.kind===U.h.OBJECT_TYPE_DEFINITION||e.kind===U.h.INTERFACE_TYPE_DEFINITION||e.kind===U.h.UNION_TYPE_DEFINITION||e.kind===U.h.ENUM_TYPE_DEFINITION||e.kind===U.h.INPUT_OBJECT_TYPE_DEFINITION}function yn(e){return e.kind===U.h.SCHEMA_EXTENSION||vn(e)}function vn(e){return e.kind===U.h.SCALAR_TYPE_EXTENSION||e.kind===U.h.OBJECT_TYPE_EXTENSION||e.kind===U.h.INTERFACE_TYPE_EXTENSION||e.kind===U.h.UNION_TYPE_EXTENSION||e.kind===U.h.ENUM_TYPE_EXTENSION||e.kind===U.h.INPUT_OBJECT_TYPE_EXTENSION}function bn(e){return{Document:function(t){for(var n=0,r=t.definitions;n<r.length;n++){var i=r[n];if(!pn(i)){var o=i.kind===U.h.SCHEMA_DEFINITION||i.kind===U.h.SCHEMA_EXTENSION?"schema":'"'+i.name.value+'"';e.reportError(new u.__("The ".concat(o," definition is not executable."),i))}}return!1}}}function En(e){var t=Object.create(null);return{OperationDefinition:function(n){var r=n.name;return r&&(t[r.value]?e.reportError(new u.__('There can be only one operation named "'.concat(r.value,'".'),[t[r.value],r])):t[r.value]=r),!1},FragmentDefinition:function(){return!1}}}function _n(e){var t=0;return{Document:function(e){t=e.definitions.filter(function(e){return e.kind===U.h.OPERATION_DEFINITION}).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new u.__("This anonymous operation must be the only defined operation.",n))}}}function In(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new u.__(t.name?'Subscription "'.concat(t.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",t.selectionSet.selections.slice(1)))}}}function Sn(e){for(var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null),i=0,o=e.getDocument().definitions;i<o.length;i++){var a=o[i];gn(a)&&(r[a.name.value]=!0)}var s=Object.keys(n).concat(Object.keys(r));return{NamedType:function(t,i,o,a,c){var l,p=t.name.value;if(!n[p]&&!r[p]){var d,f=null!==(d=c[2])&&void 0!==d?d:o,h=null!=f&&(l=f,!Array.isArray(l)&&(mn(l)||yn(l)));if(h&&function(e){return-1!==Tn.indexOf(e)}(p))return;var m=F(p,h?Tn.concat(s):s);e.reportError(new u.__('Unknown type "'.concat(p,'".')+C(m),t))}}}}var Tn=[].concat(st,St).map(function(e){return e.name});function Cn(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var r=an(e.getSchema(),n);if(r&&!de(r)){var i=(0,M.S)(n);e.reportError(new u.__('Fragment cannot condition on non composite type "'.concat(i,'".'),n))}}},FragmentDefinition:function(t){var n=an(e.getSchema(),t.typeCondition);if(n&&!de(n)){var r=(0,M.S)(t.typeCondition);e.reportError(new u.__('Fragment "'.concat(t.name.value,'" cannot condition on non composite type "').concat(r,'".'),t.typeCondition))}}}}function wn(e){return{VariableDefinition:function(t){var n=an(e.getSchema(),t.type);if(n&&!ae(n)){var r=t.variable.name.value,i=(0,M.S)(t.type);e.reportError(new u.__('Variable "$'.concat(r,'" cannot be non-input type "').concat(i,'".'),t.type))}}}}function Pn(e){return{Field:function(t){var n=e.getType(),r=t.selectionSet;if(n)if(le(Ce(n))){if(r){var i=t.name.value,o=(0,d.Z)(n);e.reportError(new u.__('Field "'.concat(i,'" must not have a selection since type "').concat(o,'" has no subfields.'),r))}}else if(!r){var a=t.name.value,s=(0,d.Z)(n);e.reportError(new u.__('Field "'.concat(a,'" of type "').concat(s,'" must have a selection of subfields. Did you mean "').concat(a,' { ... }"?'),t))}}}}function Dn(e){return{Field:function(t){var n=e.getParentType();if(n&&!e.getFieldDef()){var r=e.getSchema(),i=t.name.value,o=C("to use an inline fragment on",function(e,t,n){if(!he(t))return[];for(var r=new Set,i=Object.create(null),o=0,a=e.getPossibleTypes(t);o<a.length;o++){var s=a[o];if(s.getFields()[n]){r.add(s),i[s.name]=1;for(var u=0,c=s.getInterfaces();u<c.length;u++){var l,p=c[u];p.getFields()[n]&&(r.add(p),i[p.name]=(null!==(l=i[p.name])&&void 0!==l?l:0)+1)}}}return ze(r).sort(function(t,n){var r=i[n.name]-i[t.name];return 0!==r?r:W(t)&&e.isSubType(t,n)?-1:W(n)&&e.isSubType(n,t)?1:A(t.name,n.name)}).map(function(e){return e.name})}(r,n,i));""===o&&(o=C(function(e,t){return H(e)||W(e)?F(t,Object.keys(e.getFields())):[]}(n,i))),e.reportError(new u.__('Cannot query field "'.concat(i,'" on type "').concat(n.name,'".')+o,t))}}}}function An(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var r=n.name.value;return t[r]?e.reportError(new u.__('There can be only one fragment named "'.concat(r,'".'),[t[r],n.name])):t[r]=n.name,!1}}}function On(e){return{FragmentSpread:function(t){var n=t.name.value;e.getFragment(n)||e.reportError(new u.__('Unknown fragment "'.concat(n,'".'),t.name))}}}function Nn(e){var t=[],n=[];return{OperationDefinition:function(e){return t.push(e),!1},FragmentDefinition:function(e){return n.push(e),!1},Document:{leave:function(){for(var r=Object.create(null),i=0;i<t.length;i++)for(var o=t[i],a=0,s=e.getRecursivelyReferencedFragments(o);a<s.length;a++)r[s[a].name.value]=!0;for(var c=0;c<n.length;c++){var l=n[c],p=l.name.value;!0!==r[p]&&e.reportError(new u.__('Fragment "'.concat(p,'" is never used.'),l))}}}}}function Rn(e){return{InlineFragment:function(t){var n=e.getType(),r=e.getParentType();if(de(n)&&de(r)&&!He(e.getSchema(),n,r)){var i=(0,d.Z)(r),o=(0,d.Z)(n);e.reportError(new u.__('Fragment cannot be spread here as objects of type "'.concat(i,'" can never be of type "').concat(o,'".'),t))}},FragmentSpread:function(t){var n=t.name.value,r=function(e,t){var n=e.getFragment(t);if(n){var r=an(e.getSchema(),n.typeCondition);if(de(r))return r}}(e,n),i=e.getParentType();if(r&&i&&!He(e.getSchema(),r,i)){var o=(0,d.Z)(i),a=(0,d.Z)(r);e.reportError(new u.__('Fragment "'.concat(n,'" cannot be spread here as objects of type "').concat(o,'" can never be of type "').concat(a,'".'),t))}}}}function Fn(e){var t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(e){return i(e),!1}};function i(o){if(!t[o.name.value]){var a=o.name.value;t[a]=!0;var s=e.getFragmentSpreads(o.selectionSet);if(0!==s.length){r[a]=n.length;for(var c=0;c<s.length;c++){var l=s[c],p=l.name.value,d=r[p];if(n.push(l),void 0===d){var f=e.getFragment(p);f&&i(f)}else{var h=n.slice(d),m=h.slice(0,-1).map(function(e){return'"'+e.name.value+'"'}).join(", ");e.reportError(new u.__('Cannot spread fragment "'.concat(p,'" within itself')+(""!==m?" via ".concat(m,"."):"."),h))}n.pop()}r[a]=void 0}}}}function kn(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var r=n.variable.name.value;t[r]?e.reportError(new u.__('There can be only one variable named "$'.concat(r,'".'),[t[r],n.variable.name])):t[r]=n.variable.name}}}function xn(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var r=e.getRecursiveVariableUsages(n),i=0;i<r.length;i++){var o=r[i].node,a=o.name.value;!0!==t[a]&&e.reportError(new u.__(n.name?'Variable "$'.concat(a,'" is not defined by operation "').concat(n.name.value,'".'):'Variable "$'.concat(a,'" is not defined.'),[o,n]))}}},VariableDefinition:function(e){t[e.variable.name.value]=!0}}}function Un(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){for(var r=Object.create(null),i=e.getRecursiveVariableUsages(n),o=0;o<i.length;o++)r[i[o].node.name.value]=!0;for(var a=0,s=t;a<s.length;a++){var c=s[a],l=c.variable.name.value;!0!==r[l]&&e.reportError(new u.__(n.name?'Variable "$'.concat(l,'" is never used in operation "').concat(n.name.value,'".'):'Variable "$'.concat(l,'" is never used.'),c))}}},VariableDefinition:function(e){t.push(e)}}}function Mn(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():kt,i=0;i<r.length;i++){var o=r[i];t[o.name]=o.locations}for(var a=e.getDocument().definitions,s=0;s<a.length;s++){var c=a[s];c.kind===U.h.DIRECTIVE_DEFINITION&&(t[c.name.value]=c.locations.map(function(e){return e.value}))}return{Directive:function(n,r,i,o,a){var s=n.name.value,c=t[s];if(c){var l=function(e){var t=e[e.length-1];switch(!Array.isArray(t)||(0,L.Z)(0),t.kind){case U.h.OPERATION_DEFINITION:return function(e){switch(e){case"query":return We.B.QUERY;case"mutation":return We.B.MUTATION;case"subscription":return We.B.SUBSCRIPTION}(0,L.Z)(0,"Unexpected operation: "+(0,d.Z)(e))}(t.operation);case U.h.FIELD:return We.B.FIELD;case U.h.FRAGMENT_SPREAD:return We.B.FRAGMENT_SPREAD;case U.h.INLINE_FRAGMENT:return We.B.INLINE_FRAGMENT;case U.h.FRAGMENT_DEFINITION:return We.B.FRAGMENT_DEFINITION;case U.h.VARIABLE_DEFINITION:return We.B.VARIABLE_DEFINITION;case U.h.SCHEMA_DEFINITION:case U.h.SCHEMA_EXTENSION:return We.B.SCHEMA;case U.h.SCALAR_TYPE_DEFINITION:case U.h.SCALAR_TYPE_EXTENSION:return We.B.SCALAR;case U.h.OBJECT_TYPE_DEFINITION:case U.h.OBJECT_TYPE_EXTENSION:return We.B.OBJECT;case U.h.FIELD_DEFINITION:return We.B.FIELD_DEFINITION;case U.h.INTERFACE_TYPE_DEFINITION:case U.h.INTERFACE_TYPE_EXTENSION:return We.B.INTERFACE;case U.h.UNION_TYPE_DEFINITION:case U.h.UNION_TYPE_EXTENSION:return We.B.UNION;case U.h.ENUM_TYPE_DEFINITION:case U.h.ENUM_TYPE_EXTENSION:return We.B.ENUM;case U.h.ENUM_VALUE_DEFINITION:return We.B.ENUM_VALUE;case U.h.INPUT_OBJECT_TYPE_DEFINITION:case U.h.INPUT_OBJECT_TYPE_EXTENSION:return We.B.INPUT_OBJECT;case U.h.INPUT_VALUE_DEFINITION:return e[e.length-3].kind===U.h.INPUT_OBJECT_TYPE_DEFINITION?We.B.INPUT_FIELD_DEFINITION:We.B.ARGUMENT_DEFINITION}}(a);l&&-1===c.indexOf(l)&&e.reportError(new u.__('Directive "@'.concat(s,'" may not be used on ').concat(l,"."),n))}else e.reportError(new u.__('Unknown directive "@'.concat(s,'".'),n))}}}function Ln(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():kt,i=0;i<r.length;i++){var o=r[i];t[o.name]=!o.isRepeatable}for(var a=e.getDocument().definitions,s=0;s<a.length;s++){var c=a[s];c.kind===U.h.DIRECTIVE_DEFINITION&&(t[c.name.value]=!c.repeatable)}var l=Object.create(null),p=Object.create(null);return{enter:function(n){if(null!=n.directives){var r;if(n.kind===U.h.SCHEMA_DEFINITION||n.kind===U.h.SCHEMA_EXTENSION)r=l;else if(gn(n)||vn(n)){var i=n.name.value;void 0===(r=p[i])&&(p[i]=r=Object.create(null))}else r=Object.create(null);for(var o=0,a=n.directives;o<a.length;o++){var s=a[o],c=s.name.value;t[c]&&(r[c]?e.reportError(new u.__('The directive "@'.concat(c,'" can only be used once at this location.'),[r[c],s])):r[c]=s)}}}}}function jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jn(Object(n),!0).forEach(function(t){Bn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gn(e){return Vn(Vn({},qn(e)),{},{Argument:function(t){var n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){var o=t.name.value,a=F(o,r.args.map(function(e){return e.name}));e.reportError(new u.__('Unknown argument "'.concat(o,'" on field "').concat(i.name,".").concat(r.name,'".')+C(a),t))}}})}function qn(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():kt,i=0;i<r.length;i++){var o=r[i];t[o.name]=o.args.map(function(e){return e.name})}for(var a=e.getDocument().definitions,s=0;s<a.length;s++){var c=a[s];if(c.kind===U.h.DIRECTIVE_DEFINITION){var l,p=null!==(l=c.arguments)&&void 0!==l?l:[];t[c.name.value]=p.map(function(e){return e.name.value})}}return{Directive:function(n){var r=n.name.value,i=t[r];if(n.arguments&&i)for(var o=0,a=n.arguments;o<a.length;o++){var s=a[o],c=s.name.value;if(-1===i.indexOf(c)){var l=F(c,i);e.reportError(new u.__('Unknown argument "'.concat(c,'" on directive "@').concat(r,'".')+C(l),s))}}return!1}}}function $n(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var r=n.name.value;return t[r]?e.reportError(new u.__('There can be only one argument named "'.concat(r,'".'),[t[r],n.name])):t[r]=n.name,!1}}}function Qn(e){return{ListValue:function(t){if(!ne(Ie(e.getParentInputType())))return Hn(e,t),!1},ObjectValue:function(t){var n=Ce(e.getInputType());if(!ee(n))return Hn(e,t),!1;for(var r=b(t.fields,function(e){return e.name.value}),i=0,o=p(n.getFields());i<o.length;i++){var a=o[i];if(!r[a.name]&&qe(a)){var s=(0,d.Z)(a.type);e.reportError(new u.__('Field "'.concat(n.name,".").concat(a.name,'" of required type "').concat(s,'" was not provided.'),t))}}},ObjectField:function(t){var n=Ce(e.getParentInputType());if(!e.getInputType()&&ee(n)){var r=F(t.name.value,Object.keys(n.getFields()));e.reportError(new u.__('Field "'.concat(t.name.value,'" is not defined by type "').concat(n.name,'".')+C(r),t))}},NullValue:function(t){var n=e.getInputType();ie(n)&&e.reportError(new u.__('Expected value of type "'.concat((0,d.Z)(n),'", found ').concat((0,M.S)(t),"."),t))},EnumValue:function(t){return Hn(e,t)},IntValue:function(t){return Hn(e,t)},FloatValue:function(t){return Hn(e,t)},StringValue:function(t){return Hn(e,t)},BooleanValue:function(t){return Hn(e,t)}}}function Hn(e,t){var n=e.getInputType();if(n){var r=Ce(n);if(le(r))try{if(void 0===r.parseLiteral(t,void 0)){var i=(0,d.Z)(n);e.reportError(new u.__('Expected value of type "'.concat(i,'", found ').concat((0,M.S)(t),"."),t))}}catch(r){var o=(0,d.Z)(n);r instanceof u.__?e.reportError(r):e.reportError(new u.__('Expected value of type "'.concat(o,'", found ').concat((0,M.S)(t),"; ")+r.message,t,void 0,void 0,void 0,r))}else{var a=(0,d.Z)(n);e.reportError(new u.__('Expected value of type "'.concat(a,'", found ').concat((0,M.S)(t),"."),t))}}}function zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zn(Object(n),!0).forEach(function(t){Zn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yn(e){return Wn(Wn({},Kn(e)),{},{Field:{leave:function(t){var n,r=e.getFieldDef();if(!r)return!1;for(var i=b(null!==(n=t.arguments)&&void 0!==n?n:[],function(e){return e.name.value}),o=0,a=r.args;o<a.length;o++){var s=a[o];if(!i[s.name]&&xe(s)){var c=(0,d.Z)(s.type);e.reportError(new u.__('Field "'.concat(r.name,'" argument "').concat(s.name,'" of type "').concat(c,'" is required, but it was not provided.'),t))}}}}})}function Kn(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():kt,i=0;i<r.length;i++){var o=r[i];t[o.name]=b(o.args.filter(xe),function(e){return e.name})}for(var a=e.getDocument().definitions,s=0;s<a.length;s++){var c=a[s];if(c.kind===U.h.DIRECTIVE_DEFINITION){var l,p=null!==(l=c.arguments)&&void 0!==l?l:[];t[c.name.value]=b(p.filter(Jn),function(e){return e.name.value})}}return{Directive:{leave:function(n){var r=n.name.value,i=t[r];if(i)for(var o,a=b(null!==(o=n.arguments)&&void 0!==o?o:[],function(e){return e.name.value}),s=0,c=Object.keys(i);s<c.length;s++){var l=c[s];if(!a[l]){var p=i[l].type,f=G(p)?(0,d.Z)(p):(0,M.S)(p);e.reportError(new u.__('Directive "@'.concat(r,'" argument "').concat(l,'" of type "').concat(f,'" is required, but it was not provided.'),n))}}}}}}function Jn(e){return e.type.kind===U.h.NON_NULL_TYPE&&null==e.defaultValue}function Xn(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var r=e.getRecursiveVariableUsages(n),i=0;i<r.length;i++){var o=r[i],a=o.node,s=o.type,c=o.defaultValue,l=a.name.value,p=t[l];if(p&&s){var f=e.getSchema(),h=an(f,p.type);if(h&&!er(f,h,p.defaultValue,s,c)){var m=(0,d.Z)(h),g=(0,d.Z)(s);e.reportError(new u.__('Variable "$'.concat(l,'" of type "').concat(m,'" used in position expecting type "').concat(g,'".'),[p,a]))}}}}},VariableDefinition:function(e){t[e.variable.name.value]=e}}}function er(e,t,n,r,i){return ie(r)&&!ie(t)?(null!=n&&n.kind!==U.h.NULL||void 0!==i)&&Qe(e,t,r.ofType):Qe(e,t,r)}function tr(e){return Array.isArray(e)?e.map(function(e){var t=e[0],n=e[1];return'subfields "'.concat(t,'" conflict because ')+tr(n)}).join(" and "):e}function nr(e){var t=new pr,n=new Map;return{SelectionSet:function(r){for(var i=function(e,t,n,r,i){var o=[],a=ur(e,t,r,i),s=a[0],u=a[1];if(function(e,t,n,r,i){for(var o=0,a=y(i);o<a.length;o++){var s=a[o],u=s[0],c=s[1];if(c.length>1)for(var l=0;l<c.length;l++)for(var p=l+1;p<c.length;p++){var d=ar(e,n,r,!1,u,c[l],c[p]);d&&t.push(d)}}}(e,o,t,n,s),0!==u.length)for(var c=0;c<u.length;c++){rr(e,o,t,n,!1,s,u[c]);for(var l=c+1;l<u.length;l++)ir(e,o,t,n,!1,u[c],u[l])}return o}(e,n,t,e.getParentType(),r),o=0;o<i.length;o++){var a=i[o],s=a[0],c=s[0],l=s[1],p=a[1],d=a[2],f=tr(l);e.reportError(new u.__('Fields "'.concat(c,'" conflict because ').concat(f,". Use different aliases on the fields to fetch both if this was intentional."),p.concat(d)))}}}}function rr(e,t,n,r,i,o,a){var s=e.getFragment(a);if(s){var u=cr(e,n,s),c=u[0],l=u[1];if(o!==c){or(e,t,n,r,i,o,c);for(var p=0;p<l.length;p++){var d=l[p];r.has(d,a,i)||(r.add(d,a,i),rr(e,t,n,r,i,o,l[p]))}}}}function ir(e,t,n,r,i,o,a){if(o!==a&&!r.has(o,a,i)){r.add(o,a,i);var s=e.getFragment(o),u=e.getFragment(a);if(s&&u){var c=cr(e,n,s),l=c[0],p=c[1],d=cr(e,n,u),f=d[0],h=d[1];or(e,t,n,r,i,l,f);for(var m=0;m<h.length;m++)ir(e,t,n,r,i,o,h[m]);for(var g=0;g<p.length;g++)ir(e,t,n,r,i,p[g],a)}}}function or(e,t,n,r,i,o,a){for(var s=0,u=Object.keys(o);s<u.length;s++){var c=u[s],l=a[c];if(l)for(var p=o[c],d=0;d<p.length;d++)for(var f=0;f<l.length;f++){var h=ar(e,n,r,i,c,p[d],l[f]);h&&t.push(h)}}}function ar(e,t,n,r,i,o,a){var s,u,c=o[0],p=o[1],f=o[2],h=a[0],m=a[1],g=a[2],y=r||c!==h&&H(c)&&H(h);if(!y){var v,b,E=p.name.value,_=m.name.value;if(E!==_)return[[i,'"'.concat(E,'" and "').concat(_,'" are different fields')],[p],[m]];if(s=null!==(v=p.arguments)&&void 0!==v?v:[],u=null!==(b=m.arguments)&&void 0!==b?b:[],s.length!==u.length||!s.every(function(e){var t,n,r=l(u,function(t){return t.name.value===e.name.value});return!!r&&(t=e.value,n=r.value,(0,M.S)(t)===(0,M.S)(n))}))return[[i,"they have differing arguments"],[p],[m]]}var I=null==f?void 0:f.type,S=null==g?void 0:g.type;if(I&&S&&sr(I,S))return[[i,'they return conflicting types "'.concat((0,d.Z)(I),'" and "').concat((0,d.Z)(S),'"')],[p],[m]];var T=p.selectionSet,C=m.selectionSet;if(T&&C){var w=function(e,t,n,r,i,o,a,s){var u=[],c=ur(e,t,i,o),l=c[0],p=c[1],d=ur(e,t,a,s),f=d[0],h=d[1];if(or(e,u,t,n,r,l,f),0!==h.length)for(var m=0;m<h.length;m++)rr(e,u,t,n,r,l,h[m]);if(0!==p.length)for(var g=0;g<p.length;g++)rr(e,u,t,n,r,f,p[g]);for(var y=0;y<p.length;y++)for(var v=0;v<h.length;v++)ir(e,u,t,n,r,p[y],h[v]);return u}(e,t,n,y,Ce(I),T,Ce(S),C);return function(e,t,n,r){if(e.length>0)return[[t,e.map(function(e){return e[0]})],e.reduce(function(e,t){var n=t[1];return e.concat(n)},[n]),e.reduce(function(e,t){var n=t[2];return e.concat(n)},[r])]}(w,i,p,m)}}function sr(e,t){return ne(e)?!ne(t)||sr(e.ofType,t.ofType):!!ne(t)||(ie(e)?!ie(t)||sr(e.ofType,t.ofType):!!ie(t)||!(!le(e)&&!le(t))&&e!==t)}function ur(e,t,n,r){var i=t.get(r);if(!i){var o=Object.create(null),a=Object.create(null);lr(e,n,r,o,a),i=[o,Object.keys(a)],t.set(r,i)}return i}function cr(e,t,n){var r=t.get(n.selectionSet);if(r)return r;var i=an(e.getSchema(),n.typeCondition);return ur(e,t,i,n.selectionSet)}function lr(e,t,n,r,i){for(var o=0,a=n.selections;o<a.length;o++){var s=a[o];switch(s.kind){case U.h.FIELD:var u=s.name.value,c=void 0;(H(t)||W(t))&&(c=t.getFields()[u]);var l=s.alias?s.alias.value:u;r[l]||(r[l]=[]),r[l].push([t,s,c]);break;case U.h.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case U.h.INLINE_FRAGMENT:var p=s.typeCondition,d=p?an(e.getSchema(),p):t;lr(e,d,s.selectionSet,r,i)}}}var pr=function(){function e(){this._data=Object.create(null)}var t=e.prototype;return t.has=function(e,t,n){var r=this._data[e],i=r&&r[t];return void 0!==i&&(!1!==n||!1===i)},t.add=function(e,t,n){this._pairSetAdd(e,t,n),this._pairSetAdd(t,e,n)},t._pairSetAdd=function(e,t,n){var r=this._data[e];r||(r=Object.create(null),this._data[e]=r),r[t]=n},e}();function dr(e){var t=[],n=Object.create(null);return{ObjectValue:{enter:function(){t.push(n),n=Object.create(null)},leave:function(){n=t.pop()}},ObjectField:function(t){var r=t.name.value;n[r]?e.reportError(new u.__('There can be only one input field named "'.concat(r,'".'),[n[r],t.name])):n[r]=t.name}}}var fr,hr=3;function mr(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.create(null),i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n.kind===U.h.FRAGMENT_SPREAD){var o=n.name.value;if(!0===r[o])return!1;var a=e.getFragment(o);if(!a)return!1;try{return r[o]=!0,t(a,r,i)}finally{r[o]=null}}if(n.kind===U.h.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++i>=hr)return!0;if("selectionSet"in n&&n.selectionSet)for(var s=0,u=n.selectionSet.selections;s<u.length;s++)if(t(u[s],r,i))return!0;return!1}return{Field:function(n){if(("__schema"===n.name.value||"__type"===n.name.value)&&t(n))return e.reportError(new u.__("Maximum introspection depth exceeded",[n])),!1}}}function gr(e){var t,n,r,i=e.getSchema(),o=null!==(t=null!==(n=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==n?n:null==i?void 0:i.getMutationType())&&void 0!==t?t:null==i?void 0:i.getSubscriptionType(),a=0;return{SchemaDefinition:function(t){o?e.reportError(new u.__("Cannot define a new schema within a schema extension.",t)):(a>0&&e.reportError(new u.__("Must provide only one schema definition.",t)),++a)}}}function yr(e){var t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){for(var i,o=null!==(i=t.operationTypes)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a],c=s.operation,l=n[c];r[c]?e.reportError(new u.__("Type for ".concat(c," already defined in the schema. It cannot be redefined."),s)):l?e.reportError(new u.__("There can be only one ".concat(c," type in schema."),[l,s])):n[c]=s}return!1}}function vr(e){var t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){var i=r.name.value;if(null==n||!n.getType(i))return t[i]?e.reportError(new u.__('There can be only one type named "'.concat(i,'".'),[t[i],r.name])):t[i]=r.name,!1;e.reportError(new u.__('Type "'.concat(i,'" already exists in the schema. It cannot also be defined in this type definition.'),r.name))}}function br(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i,o=t.name.value;r[o]||(r[o]=Object.create(null));for(var a=null!==(i=t.values)&&void 0!==i?i:[],s=r[o],c=0;c<a.length;c++){var l=a[c],p=l.name.value,d=n[o];J(d)&&d.getValue(p)?e.reportError(new u.__('Enum value "'.concat(o,".").concat(p,'" already exists in the schema. It cannot also be defined in this type extension.'),l.name)):s[p]?e.reportError(new u.__('Enum value "'.concat(o,".").concat(p,'" can only be defined once.'),[s[p],l.name])):s[p]=l.name}return!1}}function Er(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i,o=t.name.value;r[o]||(r[o]=Object.create(null));for(var a=null!==(i=t.fields)&&void 0!==i?i:[],s=r[o],c=0;c<a.length;c++){var l=a[c],p=l.name.value;_r(n[o],p)?e.reportError(new u.__('Field "'.concat(o,".").concat(p,'" already exists in the schema. It cannot also be defined in this type extension.'),l.name)):s[p]?e.reportError(new u.__('Field "'.concat(o,".").concat(p,'" can only be defined once.'),[s[p],l.name])):s[p]=l.name}return!1}}function _r(e,t){return!!(H(e)||W(e)||ee(e))&&null!=e.getFields()[t]}function Ir(e){var t=Object.create(null),n=e.getSchema();return{DirectiveDefinition:function(r){var i=r.name.value;if(null==n||!n.getDirective(i))return t[i]?e.reportError(new u.__('There can be only one directive named "@'.concat(i,'".'),[t[i],r.name])):t[i]=r.name,!1;e.reportError(new u.__('Directive "@'.concat(i,'" already exists in the schema. It cannot be redefined.'),r.name))}}}function Sr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tr(e){for(var t=e.getSchema(),n=Object.create(null),r=0,i=e.getDocument().definitions;r<i.length;r++){var o=i[r];gn(o)&&(n[o.name.value]=o)}return{ScalarTypeExtension:a,ObjectTypeExtension:a,InterfaceTypeExtension:a,UnionTypeExtension:a,EnumTypeExtension:a,InputObjectTypeExtension:a};function a(r){var i,o,a=r.name.value,s=n[a],c=null==t?void 0:t.getType(a);if(s?i=Cr[s.kind]:c&&(i=$(o=c)?U.h.SCALAR_TYPE_EXTENSION:H(o)?U.h.OBJECT_TYPE_EXTENSION:W(o)?U.h.INTERFACE_TYPE_EXTENSION:Y(o)?U.h.UNION_TYPE_EXTENSION:J(o)?U.h.ENUM_TYPE_EXTENSION:ee(o)?U.h.INPUT_OBJECT_TYPE_EXTENSION:void(0,L.Z)(0,"Unexpected type: "+(0,d.Z)(o))),i){if(i!==r.kind){var l=function(e){switch(e){case U.h.SCALAR_TYPE_EXTENSION:return"scalar";case U.h.OBJECT_TYPE_EXTENSION:return"object";case U.h.INTERFACE_TYPE_EXTENSION:return"interface";case U.h.UNION_TYPE_EXTENSION:return"union";case U.h.ENUM_TYPE_EXTENSION:return"enum";case U.h.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}(0,L.Z)(0,"Unexpected kind: "+(0,d.Z)(e))}(r.kind);e.reportError(new u.__("Cannot extend non-".concat(l,' type "').concat(a,'".'),s?[s,r]:r))}}else{var p=Object.keys(n);t&&(p=p.concat(Object.keys(t.getTypeMap())));var f=F(a,p);e.reportError(new u.__('Cannot extend type "'.concat(a,'" because it is not defined.')+C(f),r.name))}}}var Cr=(Sr(fr={},U.h.SCALAR_TYPE_DEFINITION,U.h.SCALAR_TYPE_EXTENSION),Sr(fr,U.h.OBJECT_TYPE_DEFINITION,U.h.OBJECT_TYPE_EXTENSION),Sr(fr,U.h.INTERFACE_TYPE_DEFINITION,U.h.INTERFACE_TYPE_EXTENSION),Sr(fr,U.h.UNION_TYPE_DEFINITION,U.h.UNION_TYPE_EXTENSION),Sr(fr,U.h.ENUM_TYPE_DEFINITION,U.h.ENUM_TYPE_EXTENSION),Sr(fr,U.h.INPUT_OBJECT_TYPE_DEFINITION,U.h.INPUT_OBJECT_TYPE_EXTENSION),fr),wr=Object.freeze([mr]),Pr=Object.freeze([bn,En,_n,In,Sn,Cn,wn,Pn,Dn,An,On,Nn,Rn,Fn,kn,xn,Un,Mn,Ln,Gn,$n,Qn,Yn,Xn,nr,dr].concat(wr)),Dr=Object.freeze([gr,yr,vr,br,Er,Ir,Sn,Mn,Ln,Tr,qn,$n,dr,Kn]);function Ar(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Or=function(){function e(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}var t=e.prototype;return t.reportError=function(e){this._onError(e)},t.getDocument=function(){return this._ast},t.getFragment=function(e){var t=this._fragments;return t||(this._fragments=t=this.getDocument().definitions.reduce(function(e,t){return t.kind===U.h.FRAGMENT_DEFINITION&&(e[t.name.value]=t),e},Object.create(null))),t[e]},t.getFragmentSpreads=function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var n=[e];0!==n.length;)for(var r=0,i=n.pop().selections;r<i.length;r++){var o=i[r];o.kind===U.h.FRAGMENT_SPREAD?t.push(o):o.selectionSet&&n.push(o.selectionSet)}this._fragmentSpreads.set(e,t)}return t},t.getRecursivelyReferencedFragments=function(e){var t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];for(var n=Object.create(null),r=[e.selectionSet];0!==r.length;)for(var i=r.pop(),o=0,a=this.getFragmentSpreads(i);o<a.length;o++){var s=a[o].name.value;if(!0!==n[s]){n[s]=!0;var u=this.getFragment(s);u&&(t.push(u),r.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t},e}(),Nr=function(e){function t(t,n,r){var i;return(i=e.call(this,t,r)||this)._schema=n,i}return Ar(t,e),t.prototype.getSchema=function(){return this._schema},t}(Or),Rr=function(e){function t(t,n,r,i){var o;return(o=e.call(this,n,i)||this)._schema=t,o._typeInfo=r,o._variableUsages=new Map,o._recursiveVariableUsages=new Map,o}Ar(t,e);var n=t.prototype;return n.getSchema=function(){return this._schema},n.getVariableUsages=function(e){var t=this._variableUsages.get(e);if(!t){var n=[],r=new sn(this._schema);(0,c.Vn)(e,cn(r,{VariableDefinition:function(){return!1},Variable:function(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t},n.getRecursiveVariableUsages=function(e){var t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(var n=0,r=this.getRecursivelyReferencedFragments(e);n<r.length;n++){var i=r[n];t=t.concat(this.getVariableUsages(i))}this._recursiveVariableUsages.set(e,t)}return t},n.getType=function(){return this._typeInfo.getType()},n.getParentType=function(){return this._typeInfo.getParentType()},n.getInputType=function(){return this._typeInfo.getInputType()},n.getParentInputType=function(){return this._typeInfo.getParentInputType()},n.getFieldDef=function(){return this._typeInfo.getFieldDef()},n.getDirective=function(){return this._typeInfo.getDirective()},n.getArgument=function(){return this._typeInfo.getArgument()},n.getEnumValue=function(){return this._typeInfo.getEnumValue()},t}(Or);function Fr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pr,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new sn(e),i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{maxErrors:void 0};t||(0,s.Z)(0,"Must provide document."),Gt(e);var o=Object.freeze({}),a=[],l=new Rr(e,t,r,function(e){if(null!=i.maxErrors&&a.length>=i.maxErrors)throw a.push(new u.__("Too many validation errors, error limit reached. Validation aborted.")),o;a.push(e)}),p=(0,c.j1)(n.map(function(e){return e(l)}));try{(0,c.Vn)(t,cn(r,p))}catch(e){if(e!==o)throw e}return a}function kr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dr,r=[],i=new Nr(e,t,function(e){r.push(e)}),o=n.map(function(e){return e(i)});return(0,c.Vn)(e,(0,c.j1)(o)),r}function xr(e){var t=Object.keys(e),n=t.map(function(t){return e[t]});return Promise.all(n).then(function(e){return e.reduce(function(e,n,r){return e[t[r]]=n,e},Object.create(null))})}function Ur(e,t,n){return{prev:e,key:t,typename:n}}function Mr(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}function Lr(e,t){if("query"===t.operation){var n=e.getQueryType();if(!n)throw new u.__("Schema does not define the required query root type.",t);return n}if("mutation"===t.operation){var r=e.getMutationType();if(!r)throw new u.__("Schema is not configured for mutations.",t);return r}if("subscription"===t.operation){var i=e.getSubscriptionType();if(!i)throw new u.__("Schema is not configured for subscriptions.",t);return i}throw new u.__("Can only have query, mutation and subscription operations.",t)}function jr(e){return e.map(function(e){return"number"==typeof e?"["+e.toString()+"]":"."+e}).join("")}function Vr(e,t,n){if(e){if(e.kind===U.h.VARIABLE){var r=e.name.value;if(null==n||void 0===n[r])return;var i=n[r];if(null===i&&ie(t))return;return i}if(ie(t)){if(e.kind===U.h.NULL)return;return Vr(e,t.ofType,n)}if(e.kind===U.h.NULL)return null;if(ne(t)){var o=t.ofType;if(e.kind===U.h.LIST){for(var a=[],s=0,u=e.values;s<u.length;s++){var c=u[s];if(Br(c,n)){if(ie(o))return;a.push(null)}else{var l=Vr(c,o,n);if(void 0===l)return;a.push(l)}}return a}var f=Vr(e,o,n);if(void 0===f)return;return[f]}if(ee(t)){if(e.kind!==U.h.OBJECT)return;for(var h=Object.create(null),m=b(e.fields,function(e){return e.name.value}),g=0,y=p(t.getFields());g<y.length;g++){var v=y[g],E=m[v.name];if(E&&!Br(E.value,n)){var _=Vr(E.value,v.type,n);if(void 0===_)return;h[v.name]=_}else if(void 0!==v.defaultValue)h[v.name]=v.defaultValue;else if(ie(v.type))return}return h}if(le(t)){var I;try{I=t.parseLiteral(e,n)}catch(e){return}if(void 0===I)return;return I}(0,L.Z)(0,"Unexpected input type: "+(0,d.Z)(t))}}function Br(e,t){return e.kind===U.h.VARIABLE&&(null==t||void 0===t[e.name.value])}function Gr(e,t){return $r(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:qr)}function qr(e,t,n){var r="Invalid value "+(0,d.Z)(t);throw e.length>0&&(r+=' at "value'.concat(jr(e),'"')),n.message=r+": "+n.message,n}function $r(e,t,n,r){if(ie(t))return null!=e?$r(e,t.ofType,n,r):void n(Mr(r),e,new u.__('Expected non-nullable type "'.concat((0,d.Z)(t),'" not to be null.')));if(null==e)return null;if(ne(t)){var i=t.ofType,o=Ke(e,function(e,t){var o=Ur(r,t,void 0);return $r(e,i,n,o)});return null!=o?o:[$r(e,i,n,r)]}if(ee(t)){if(!(0,w.Z)(e))return void n(Mr(r),e,new u.__('Expected type "'.concat(t.name,'" to be an object.')));for(var a={},s=t.getFields(),c=0,l=p(s);c<l.length;c++){var f=l[c],h=e[f.name];if(void 0!==h)a[f.name]=$r(h,f.type,n,Ur(r,f.name,t.name));else if(void 0!==f.defaultValue)a[f.name]=f.defaultValue;else if(ie(f.type)){var m=(0,d.Z)(f.type);n(Mr(r),e,new u.__('Field "'.concat(f.name,'" of required type "').concat(m,'" was not provided.')))}}for(var g=0,y=Object.keys(e);g<y.length;g++){var v=y[g];if(!s[v]){var b=F(v,Object.keys(t.getFields()));n(Mr(r),e,new u.__('Field "'.concat(v,'" is not defined by type "').concat(t.name,'".')+C(b)))}}return a}if(le(t)){var E;try{E=t.parseValue(e)}catch(i){return void(i instanceof u.__?n(Mr(r),e,i):n(Mr(r),e,new u.__('Expected type "'.concat(t.name,'". ')+i.message,void 0,void 0,void 0,void 0,i)))}return void 0===E&&n(Mr(r),e,new u.__('Expected type "'.concat(t.name,'".'))),E}(0,L.Z)(0,"Unexpected input type: "+(0,d.Z)(t))}function Qr(e,t,n){for(var r,i={},o=b(null!==(r=t.arguments)&&void 0!==r?r:[],function(e){return e.name.value}),a=0,s=e.args;a<s.length;a++){var c=s[a],l=c.name,p=c.type,f=o[l];if(f){var h=f.value,m=h.kind===U.h.NULL;if(h.kind===U.h.VARIABLE){var g=h.name.value;if(null==n||!zr(n,g)){if(void 0!==c.defaultValue)i[l]=c.defaultValue;else if(ie(p))throw new u.__('Argument "'.concat(l,'" of required type "').concat((0,d.Z)(p),'" ')+'was provided the variable "$'.concat(g,'" which was not provided a runtime value.'),h);continue}m=null==n[g]}if(m&&ie(p))throw new u.__('Argument "'.concat(l,'" of non-null type "').concat((0,d.Z)(p),'" ')+"must not be null.",h);var y=Vr(h,p,n);if(void 0===y)throw new u.__('Argument "'.concat(l,'" has invalid value ').concat((0,M.S)(h),"."),h);i[l]=y}else if(void 0!==c.defaultValue)i[l]=c.defaultValue;else if(ie(p))throw new u.__('Argument "'.concat(l,'" of required type "').concat((0,d.Z)(p),'" ')+"was not provided.",t)}return i}function Hr(e,t,n){var r=t.directives&&l(t.directives,function(t){return t.name.value===e.name});if(r)return Qr(e,r,n)}function zr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Wr(e,t,n,r,i,o,a,s){return Yr(1===arguments.length?e:{schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,typeResolver:s})}function Zr(e){var t=Yr(e);if(o(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Yr(e){var t=e.schema,n=e.document,r=e.rootValue,i=e.contextValue,a=e.variableValues,s=e.operationName,u=e.fieldResolver,c=e.typeResolver;Jr(t,n,a);var l=Xr(t,n,r,i,a,s,u,c);if(Array.isArray(l))return{errors:l};var p=function(e,t,n){var r=Lr(e.schema,t),i=ti(e,r,t.selectionSet,Object.create(null),Object.create(null)),a=void 0;try{var s="mutation"===t.operation?function(e,t,n,r,i){return a=Object.keys(i),s=function(a,s){var u=i[s],c=Ur(r,s,t.name),l=oi(e,t,n,u,c);return void 0===l?a:o(l)?l.then(function(e){return a[s]=e,a}):(a[s]=l,a)},u=Object.create(null),a.reduce(function(e,t){return o(e)?e.then(function(e){return s(e,t)}):s(e,t)},u);var a,s,u}(e,r,n,a,i):ei(e,r,n,a,i);return o(s)?s.then(void 0,function(t){return e.errors.push(t),Promise.resolve(null)}):s}catch(t){return e.errors.push(t),null}}(l,l.operation,r);return Kr(l,p)}function Kr(e,t){return o(t)?t.then(function(t){return Kr(e,t)}):0===e.errors.length?{data:t}:{errors:e.errors,data:t}}function Jr(e,t,n){t||(0,s.Z)(0,"Must provide document."),Gt(e),null==n||(0,w.Z)(n)||(0,s.Z)(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function Xr(e,t,n,r,i,o,a,s){for(var c,l,p,f=Object.create(null),h=0,m=t.definitions;h<m.length;h++){var g=m[h];switch(g.kind){case U.h.OPERATION_DEFINITION:if(null==o){if(void 0!==p)return[new u.__("Must provide operation name if query contains multiple operations.")];p=g}else(null===(c=g.name)||void 0===c?void 0:c.value)===o&&(p=g);break;case U.h.FRAGMENT_DEFINITION:f[g.name.value]=g}}if(!p)return null!=o?[new u.__('Unknown operation named "'.concat(o,'".'))]:[new u.__("Must provide an operation.")];var y=function(e,t,n,r){var i=[],o=null==r?void 0:r.maxErrors;try{var a=function(e,t,n,r){for(var i={},o=function(o){var a=t[o],s=a.variable.name.value,c=an(e,a.type);if(!ae(c)){var l=(0,M.S)(a.type);return r(new u.__('Variable "$'.concat(s,'" expected value of type "').concat(l,'" which cannot be used as an input type.'),a.type)),"continue"}if(!zr(n,s)){if(a.defaultValue)i[s]=Vr(a.defaultValue,c);else if(ie(c)){var p=(0,d.Z)(c);r(new u.__('Variable "$'.concat(s,'" of required type "').concat(p,'" was not provided.'),a))}return"continue"}var f=n[s];if(null===f&&ie(c)){var h=(0,d.Z)(c);return r(new u.__('Variable "$'.concat(s,'" of non-null type "').concat(h,'" must not be null.'),a)),"continue"}i[s]=Gr(f,c,function(e,t,n){var i='Variable "$'.concat(s,'" got invalid value ')+(0,d.Z)(t);e.length>0&&(i+=' at "'.concat(s).concat(jr(e),'"')),r(new u.__(i+"; "+n.message,a,void 0,void 0,void 0,n.originalError))})},a=0;a<t.length;a++)o(a);return i}(e,t,n,function(e){if(null!=o&&i.length>=o)throw new u.__("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)});if(0===i.length)return{coerced:a}}catch(e){i.push(e)}return{errors:i}}(e,null!==(l=p.variableDefinitions)&&void 0!==l?l:[],null!=i?i:{},{maxErrors:50});return y.errors?y.errors:{schema:e,fragments:f,rootValue:n,contextValue:r,operation:p,variableValues:y.coerced,fieldResolver:null!=a?a:yi,typeResolver:null!=s?s:gi,errors:[]}}function ei(e,t,n,r,i){var a=Object.create(null),s=!1;try{for(var u=0,c=Object.keys(i);u<c.length;u++){var l=c[u],p=oi(e,t,n,i[l],Ur(r,l,t.name));void 0!==p&&(a[l]=p,o(p)&&(s=!0))}}catch(e){if(s)return xr(a).finally(function(){throw e});throw e}return s?xr(a):a}function ti(e,t,n,r,i){for(var o=0,a=n.selections;o<a.length;o++){var s=a[o];switch(s.kind){case U.h.FIELD:if(!ni(e,s))continue;var u=ii(s);r[u]||(r[u]=[]),r[u].push(s);break;case U.h.INLINE_FRAGMENT:if(!ni(e,s)||!ri(e,s,t))continue;ti(e,t,s.selectionSet,r,i);break;case U.h.FRAGMENT_SPREAD:var c=s.name.value;if(i[c]||!ni(e,s))continue;i[c]=!0;var l=e.fragments[c];if(!l||!ri(e,l,t))continue;ti(e,t,l.selectionSet,r,i)}}return r}function ni(e,t){var n=Hr(Ot,t,e.variableValues);if(!0===(null==n?void 0:n.if))return!1;var r=Hr(At,t,e.variableValues);return!1!==(null==r?void 0:r.if)}function ri(e,t,n){var r=t.typeCondition;if(!r)return!0;var i=an(e.schema,r);return i===n||!!he(i)&&e.schema.isSubType(i,n)}function ii(e){return e.alias?e.alias.value:e.name.value}function oi(e,t,n,r,i){var a,s=r[0].name.value,u=vi(e.schema,t,s);if(u){var c=u.type,l=null!==(a=u.resolve)&&void 0!==a?a:e.fieldResolver,p=ai(e,u,r,t,i);try{var d,h=l(n,Qr(u,r[0],e.variableValues),e.contextValue,p);return d=o(h)?h.then(function(t){return ui(e,c,r,p,i,t)}):ui(e,c,r,p,i,h),o(d)?d.then(void 0,function(t){return si(f(t,r,Mr(i)),c,e)}):d}catch(t){return si(f(t,r,Mr(i)),c,e)}}}function ai(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function si(e,t,n){if(ie(t))throw e;return n.errors.push(e),null}function ui(e,t,n,r,i,a){if(a instanceof Error)throw a;if(ie(t)){var s=ui(e,t.ofType,n,r,i,a);if(null===s)throw new Error("Cannot return null for non-nullable field ".concat(r.parentType.name,".").concat(r.fieldName,"."));return s}return null==a?null:ne(t)?function(e,t,n,r,i,a){var s=t.ofType,c=!1,l=Ke(a,function(t,a){var u=Ur(i,a,void 0);try{var l;return l=o(t)?t.then(function(t){return ui(e,s,n,r,u,t)}):ui(e,s,n,r,u,t),o(l)?(c=!0,l.then(void 0,function(t){return si(f(t,n,Mr(u)),s,e)})):l}catch(t){return si(f(t,n,Mr(u)),s,e)}});if(null==l)throw new u.__('Expected Iterable, but did not find one for field "'.concat(r.parentType.name,".").concat(r.fieldName,'".'));return c?Promise.all(l):l}(e,t,n,r,i,a):le(t)?function(e,t){var n=e.serialize(t);if(void 0===n)throw new Error('Expected a value of type "'.concat((0,d.Z)(e),'" but ')+"received: ".concat((0,d.Z)(t)));return n}(t,a):he(t)?function(e,t,n,r,i,a){var s,u=null!==(s=t.resolveType)&&void 0!==s?s:e.typeResolver,c=e.contextValue,l=u(a,c,r,t);return o(l)?l.then(function(o){return li(e,ci(o,e,t,n,r,a),n,r,i,a)}):li(e,ci(l,e,t,n,r,a),n,r,i,a)}(e,t,n,r,i,a):H(t)?li(e,t,n,r,i,a):void(0,L.Z)(0,"Cannot complete value of unexpected output type: "+(0,d.Z)(t))}function ci(e,t,n,r,i,o){if(null==e)throw new u.__('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'". Either the "').concat(n.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),r);var a=Se(e)?e.name:e;if("string"!=typeof a)throw new u.__('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'" with ')+"value ".concat((0,d.Z)(o),', received "').concat((0,d.Z)(e),'".'));var s=t.schema.getType(a);if(null==s)throw new u.__('Abstract type "'.concat(n.name,'" was resolve to a type "').concat(a,'" that does not exist inside schema.'),r);if(!H(s))throw new u.__('Abstract type "'.concat(n.name,'" was resolve to a non-object type "').concat(a,'".'),r);if(!t.schema.isSubType(n,s))throw new u.__('Runtime Object type "'.concat(s.name,'" is not a possible type for "').concat(n.name,'".'),r);return s}function li(e,t,n,r,i,a){if(t.isTypeOf){var s=t.isTypeOf(a,e.contextValue,r);if(o(s))return s.then(function(r){if(!r)throw pi(t,a,n);return di(e,t,n,i,a)});if(!s)throw pi(t,a,n)}return di(e,t,n,i,a)}function pi(e,t,n){return new u.__('Expected value of type "'.concat(e.name,'" but got: ').concat((0,d.Z)(t),"."),n)}function di(e,t,n,r,i){return ei(e,t,i,r,mi(e,t,n))}var fi,hi,mi=(fi=function(e,t,n){for(var r=Object.create(null),i=Object.create(null),o=0;o<n.length;o++){var a=n[o];a.selectionSet&&(r=ti(e,t,a.selectionSet,r,i))}return r},function(e,t,n){hi||(hi=new WeakMap);var r,i=hi.get(e);if(i){if(r=i.get(t)){var o=r.get(n);if(void 0!==o)return o}}else i=new WeakMap,hi.set(e,i);r||(r=new WeakMap,i.set(t,r));var a=fi(e,t,n);return r.set(n,a),a}),gi=function(e,t,n,r){if((0,w.Z)(e)&&"string"==typeof e.__typename)return e.__typename;for(var i=n.schema.getPossibleTypes(r),a=[],s=0;s<i.length;s++){var u=i[s];if(u.isTypeOf){var c=u.isTypeOf(e,t,n);if(o(c))a[s]=c;else if(c)return u.name}}return a.length?Promise.all(a).then(function(e){for(var t=0;t<e.length;t++)if(e[t])return i[t].name}):void 0},yi=function(e,t,n,r){if((0,w.Z)(e)||"function"==typeof e){var i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function vi(e,t,n){return n===Et.name&&e.getQueryType()===t?Et:n===_t.name&&e.getQueryType()===t?_t:n===It.name?It:t.getFields()[n]}function bi(e,t,n,r,i,o,a,s){var u=arguments;return new Promise(function(c){return c(_i(1===u.length?e:{schema:e,source:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,typeResolver:s}))})}function Ei(e,t,n,r,i,a,s,u){var c=_i(1===arguments.length?e:{schema:e,source:t,rootValue:n,contextValue:r,variableValues:i,operationName:a,fieldResolver:s,typeResolver:u});if(o(c))throw new Error("GraphQL execution failed to complete synchronously.");return c}function _i(e){var t,n=e.schema,r=e.source,i=e.rootValue,o=e.contextValue,s=e.variableValues,u=e.operationName,c=e.fieldResolver,l=e.typeResolver,p=Bt(n);if(p.length>0)return{errors:p};try{t=(0,a.Qc)(r)}catch(e){return{errors:[e]}}var d=Fr(n,t);return d.length>0?{errors:d}:Wr({schema:n,document:t,rootValue:i,contextValue:o,variableValues:s,operationName:u,fieldResolver:c,typeResolver:l})}var Ii=n(4957),Si=n(4293),Ti=n(6242),Ci=n(2027),wi=n(7956);function Pi(e){return"function"==typeof(null==e?void 0:e[v.PA])}function Di(e,t){return new Promise(function(n){return n(t(e))})}function Ai(e){return{value:e,done:!1}}function Oi(e,t,n,r,i,o,a,s){return function(e){var t=e.schema,n=e.document,r=e.rootValue,i=e.contextValue,o=e.variableValues,a=e.operationName,s=e.fieldResolver,u=e.subscribeFieldResolver,c=Ri(t,n,r,i,o,a,u),l=function(e){return Wr({schema:t,document:n,rootValue:e,contextValue:i,variableValues:o,operationName:a,fieldResolver:s})};return c.then(function(e){return Pi(e)?function(e,t,n){var r,i,o,a,s,u,c=e[v.PA].call(e);function l(e){return e.done?e:Di(e.value,t).then(Ai,i)}if("function"==typeof c.return&&(r=c.return,i=function(e){var t=function(){return Promise.reject(e)};return r.call(c).then(t,t)}),n){var p=n;o=function(e){return Di(e,p).then(Ai,i)}}return a={next:function(){return c.next().then(l,o)},return:function(){return r?r.call(c).then(l,o):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"==typeof c.throw?c.throw(e).then(l,o):Promise.reject(e).catch(i)}},u=function(){return this},(s=v.PA)in a?Object.defineProperty(a,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[s]=u,a}(e,l,Ni):e})}(1===arguments.length?e:{schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,subscribeFieldResolver:s})}function Ni(e){if(e instanceof u.__)return{errors:[e]};throw e}function Ri(e,t,n,r,i,o,a){return Jr(e,t,i),new Promise(function(s){var c=Xr(e,t,n,r,i,o,a);s(Array.isArray(c)?{errors:c}:function(e){var t=e.schema,n=e.operation,r=e.variableValues,i=e.rootValue,o=Lr(t,n),a=ti(e,o,n.selectionSet,Object.create(null),Object.create(null)),s=Object.keys(a)[0],c=a[s],l=c[0].name.value,p=vi(t,o,l);if(!p)throw new u.__('The subscription field "'.concat(l,'" is not defined.'),c);var h=Ur(void 0,s,o.name),m=ai(e,p,c,o,h);return new Promise(function(t){var n,o=Qr(p,c[0],r),a=e.contextValue;t((null!==(n=p.subscribe)&&void 0!==n?n:e.fieldResolver)(i,o,a,m))}).then(function(e){if(e instanceof Error)throw f(e,c,Mr(h));if(!Pi(e))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat((0,d.Z)(e),"."));return e},function(e){throw f(e,c,Mr(h))})}(c))}).catch(Ni)}function Fi(e){return{Field:function(t){var n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){var i=e.getParentType();null!=i||(0,L.Z)(0),e.reportError(new u.__("The field ".concat(i.name,".").concat(n.name," is deprecated. ").concat(r),t))}},Argument:function(t){var n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){var i=e.getDirective();if(null!=i)e.reportError(new u.__('Directive "@'.concat(i.name,'" argument "').concat(n.name,'" is deprecated. ').concat(r),t));else{var o=e.getParentType(),a=e.getFieldDef();null!=o&&null!=a||(0,L.Z)(0),e.reportError(new u.__('Field "'.concat(o.name,".").concat(a.name,'" argument "').concat(n.name,'" is deprecated. ').concat(r),t))}}},ObjectField:function(t){var n=Ce(e.getParentInputType());if(ee(n)){var r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new u.__("The input field ".concat(n.name,".").concat(r.name," is deprecated. ").concat(i),t))}},EnumValue:function(t){var n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){var i=Ce(e.getInputType());null!=i||(0,L.Z)(0),e.reportError(new u.__('The enum value "'.concat(i.name,".").concat(n.name,'" is deprecated. ').concat(r),t))}}}}function ki(e){return{Field:function(t){var n=Ce(e.getType());n&&Tt(n)&&e.reportError(new u.__('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(t.name.value,'".'),t))}}}var xi=n(650);function Ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Li(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ui(Object(n),!0).forEach(function(t){Mi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ui(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1},e),n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByUrl":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}return"\n query IntrospectionQuery {\n __schema {\n ".concat(o,"\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ").concat(n,"\n ").concat(i,"\n locations\n args").concat(a("(includeDeprecated: true)")," {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(n,"\n ").concat(r,"\n fields(includeDeprecated: true) {\n name\n ").concat(n,"\n args").concat(a("(includeDeprecated: true)")," {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields").concat(a("(includeDeprecated: true)")," {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(n,"\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(n,"\n type { ...TypeRef }\n defaultValue\n ").concat(a("isDeprecated"),"\n ").concat(a("deprecationReason"),"\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n ")}function ji(e,t){for(var n=null,r=0,i=e.definitions;r<i.length;r++){var o,a=i[r];if(a.kind===U.h.OPERATION_DEFINITION)if(null==t){if(n)return null;n=a}else if((null===(o=a.name)||void 0===o?void 0:o.value)===t)return a}return n}function Vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gi(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vi(Object(n),!0).forEach(function(t){Bi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},t),r=Zr({schema:e,document:(0,a.Qc)(Li(n))});return!r.errors&&r.data||(0,L.Z)(0),r.data}function qi(e,t){(0,w.Z)(e)&&(0,w.Z)(e.__schema)||(0,s.Z)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat((0,d.Z)(e),"."));for(var n=e.__schema,r=I(n.types,function(e){return e.name},function(e){return function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case vt.SCALAR:return new De({name:(r=e).name,description:r.description,specifiedByUrl:r.specifiedByUrl});case vt.OBJECT:return new Ae({name:(n=e).name,description:n.description,interfaces:function(){return b(n)},fields:function(){return E(n)}});case vt.INTERFACE:return new Ue({name:(t=e).name,description:t.description,interfaces:function(){return b(t)},fields:function(){return E(t)}});case vt.UNION:return function(e){if(!e.possibleTypes){var t=(0,d.Z)(e);throw new Error("Introspection result missing possibleTypes: ".concat(t,"."))}return new Me({name:e.name,description:e.description,types:function(){return e.possibleTypes.map(y)}})}(e);case vt.ENUM:return function(e){if(!e.enumValues){var t=(0,d.Z)(e);throw new Error("Introspection result missing enumValues: ".concat(t,"."))}return new je({name:e.name,description:e.description,values:I(e.enumValues,function(e){return e.name},function(e){return{description:e.description,deprecationReason:e.deprecationReason}})})}(e);case vt.INPUT_OBJECT:return function(e){if(!e.inputFields){var t=(0,d.Z)(e);throw new Error("Introspection result missing inputFields: ".concat(t,"."))}return new Be({name:e.name,description:e.description,fields:function(){return S(e.inputFields)}})}(e)}var t,n,r,i=(0,d.Z)(e);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(i,"."))}(e)}),i=0,o=[].concat(st,St);i<o.length;i++){var u=o[i];r[u.name]&&(r[u.name]=u)}var c=n.queryType?y(n.queryType):null,l=n.mutationType?y(n.mutationType):null,f=n.subscriptionType?y(n.subscriptionType):null,h=n.directives?n.directives.map(function(e){if(!e.args){var t=(0,d.Z)(e);throw new Error("Introspection result missing directive args: ".concat(t,"."))}if(!e.locations){var n=(0,d.Z)(e);throw new Error("Introspection result missing directive locations: ".concat(n,"."))}return new Dt({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:S(e.args)})}):[];return new jt({description:n.description,query:c,mutation:l,subscription:f,types:p(r),directives:h,assumeValid:null==t?void 0:t.assumeValid});function m(e){if(e.kind===vt.LIST){var t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new ge(m(t))}if(e.kind===vt.NON_NULL){var n=e.ofType;if(!n)throw new Error("Decorated type deeper than introspection query.");return new ye(_e(m(n)))}return g(e)}function g(e){var t=e.name;if(!t)throw new Error("Unknown type reference: ".concat((0,d.Z)(e),"."));var n=r[t];if(!n)throw new Error("Invalid or incomplete schema, unknown type: ".concat(t,". Ensure that a full introspection query is used in order to build a client schema."));return n}function y(e){return z(g(e))}function v(e){return Z(g(e))}function b(e){if(null===e.interfaces&&e.kind===vt.INTERFACE)return[];if(!e.interfaces){var t=(0,d.Z)(e);throw new Error("Introspection result missing interfaces: ".concat(t,"."))}return e.interfaces.map(v)}function E(e){if(!e.fields)throw new Error("Introspection result missing fields: ".concat((0,d.Z)(e),"."));return I(e.fields,function(e){return e.name},_)}function _(e){var t=m(e.type);if(!ue(t)){var n=(0,d.Z)(t);throw new Error("Introspection must provide output type for fields, but received: ".concat(n,"."))}if(!e.args){var r=(0,d.Z)(e);throw new Error("Introspection result missing field args: ".concat(r,"."))}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:S(e.args)}}function S(e){return I(e,function(e){return e.name},T)}function T(e){var t=m(e.type);if(!ae(t)){var n=(0,d.Z)(t);throw new Error("Introspection must provide input type for arguments, but received: ".concat(n,"."))}var r=null!=e.defaultValue?Vr((0,a.H2)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:r,deprecationReason:e.deprecationReason}}}var $i=n(5717);function Qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qi(Object(n),!0).forEach(function(t){zi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wi(e,t,n){Lt(e),null!=t&&t.kind===U.h.DOCUMENT||(0,s.Z)(0,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&function(e,t){var n=kr(e,t);if(0!==n.length)throw new Error(n.map(function(e){return e.message}).join("\n\n"))}(t,e);var r=e.toConfig(),i=Zi(r,t,n);return r===i?e:new jt(i)}function Zi(e,t,n){for(var r,i,o,a,s,u=[],c=Object.create(null),l=[],f=[],h=0,m=t.definitions;h<m.length;h++){var g=m[h];if(g.kind===U.h.SCHEMA_DEFINITION)s=g;else if(g.kind===U.h.SCHEMA_EXTENSION)f.push(g);else if(gn(g))u.push(g);else if(vn(g)){var y=g.name.value,v=c[y];c[y]=v?v.concat([g]):[g]}else g.kind===U.h.DIRECTIVE_DEFINITION&&l.push(g)}if(0===Object.keys(c).length&&0===u.length&&0===l.length&&0===f.length&&null==s)return e;for(var b=Object.create(null),_=0,I=e.types;_<I.length;_++){var S=I[_];b[S.name]=N(S)}for(var T=0;T<u.length;T++){var C,w=u[T],P=w.name.value;b[P]=null!==(C=Yi[P])&&void 0!==C?C:z(w)}var D=Hi(Hi({query:e.query&&O(e.query),mutation:e.mutation&&O(e.mutation),subscription:e.subscription&&O(e.subscription)},s&&k([s])),k(f));return Hi(Hi({description:null===(r=s)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value},D),{},{types:p(b),directives:[].concat(e.directives.map(function(e){var t=e.toConfig();return new Dt(Hi(Hi({},t),{},{args:E(t.args,F)}))}),l.map(function(e){var t=e.locations.map(function(e){return e.value});return new Dt({name:e.name.value,description:Xi(e,n),locations:t,isRepeatable:e.repeatable,args:V(e.arguments),astNode:e})})),extensions:void 0,astNode:null!==(o=s)&&void 0!==o?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:null!==(a=null==n?void 0:n.assumeValid)&&void 0!==a&&a});function A(e){return ne(e)?new ge(A(e.ofType)):ie(e)?new ye(A(e.ofType)):O(e)}function O(e){return b[e.name]}function N(e){return Tt(e)||ut(e)?e:$(e)?function(e){for(var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[],i=n.specifiedByUrl,o=0;o<r.length;o++){var a;i=null!==(a=Ji(r[o]))&&void 0!==a?a:i}return new De(Hi(Hi({},n),{},{specifiedByUrl:i,extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):H(e)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Ae(Hi(Hi({},n),{},{interfaces:function(){return[].concat(e.getInterfaces().map(O),q(r))},fields:function(){return Hi(Hi({},E(n.fields,R)),j(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):W(e)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Ue(Hi(Hi({},n),{},{interfaces:function(){return[].concat(e.getInterfaces().map(O),q(r))},fields:function(){return Hi(Hi({},E(n.fields,R)),j(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):Y(e)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Me(Hi(Hi({},n),{},{types:function(){return[].concat(e.getTypes().map(O),Q(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):J(e)?function(e){var t,n=e.toConfig(),r=null!==(t=c[e.name])&&void 0!==t?t:[];return new je(Hi(Hi({},n),{},{values:Hi(Hi({},n.values),G(r)),extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):ee(e)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Be(Hi(Hi({},n),{},{fields:function(){return Hi(Hi({},E(n.fields,function(e){return Hi(Hi({},e),{},{type:A(e.type)})})),B(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):void(0,L.Z)(0,"Unexpected type: "+(0,d.Z)(e))}function R(e){return Hi(Hi({},e),{},{type:A(e.type),args:E(e.args,F)})}function F(e){return Hi(Hi({},e),{},{type:A(e.type)})}function k(e){for(var t={},n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].operationTypes)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t[a.operation]=x(a.type)}return t}function x(e){var t,n=e.name.value,r=null!==(t=Yi[n])&&void 0!==t?t:b[n];if(void 0===r)throw new Error('Unknown type: "'.concat(n,'".'));return r}function M(e){return e.kind===U.h.LIST_TYPE?new ge(M(e.type)):e.kind===U.h.NON_NULL_TYPE?new ye(M(e.type)):x(e)}function j(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].fields)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a];t[s.name.value]={type:M(s.type),description:Xi(s,n),args:V(s.arguments),deprecationReason:Ki(s),astNode:s}}return t}function V(e){for(var t=null!=e?e:[],r=Object.create(null),i=0;i<t.length;i++){var o=t[i],a=M(o.type);r[o.name.value]={type:a,description:Xi(o,n),defaultValue:Vr(o.defaultValue,a),deprecationReason:Ki(o),astNode:o}}return r}function B(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].fields)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a],u=M(s.type);t[s.name.value]={type:u,description:Xi(s,n),defaultValue:Vr(s.defaultValue,u),deprecationReason:Ki(s),astNode:s}}return t}function G(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].values)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a];t[s.name.value]={description:Xi(s,n),deprecationReason:Ki(s),astNode:s}}return t}function q(e){for(var t=[],n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].interfaces)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t.push(x(a))}return t}function Q(e){for(var t=[],n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].types)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t.push(x(a))}return t}function z(e){var t,r=e.name.value,i=Xi(e,n),o=null!==(t=c[r])&&void 0!==t?t:[];switch(e.kind){case U.h.OBJECT_TYPE_DEFINITION:var a=o,s=[e].concat(a);return new Ae({name:r,description:i,interfaces:function(){return q(s)},fields:function(){return j(s)},astNode:e,extensionASTNodes:a});case U.h.INTERFACE_TYPE_DEFINITION:var u=o,l=[e].concat(u);return new Ue({name:r,description:i,interfaces:function(){return q(l)},fields:function(){return j(l)},astNode:e,extensionASTNodes:u});case U.h.ENUM_TYPE_DEFINITION:var p=o,f=[e].concat(p);return new je({name:r,description:i,values:G(f),astNode:e,extensionASTNodes:p});case U.h.UNION_TYPE_DEFINITION:var h=o,m=[e].concat(h);return new Me({name:r,description:i,types:function(){return Q(m)},astNode:e,extensionASTNodes:h});case U.h.SCALAR_TYPE_DEFINITION:var g=o;return new De({name:r,description:i,specifiedByUrl:Ji(e),astNode:e,extensionASTNodes:g});case U.h.INPUT_OBJECT_TYPE_DEFINITION:var y=o,v=[e].concat(y);return new Be({name:r,description:i,fields:function(){return B(v)},astNode:e,extensionASTNodes:y})}(0,L.Z)(0,"Unexpected type definition node: "+(0,d.Z)(e))}}var Yi=b(st.concat(St),function(e){return e.name});function Ki(e){var t=Hr(Rt,e);return null==t?void 0:t.reason}function Ji(e){var t=Hr(Ft,e);return null==t?void 0:t.url}function Xi(e,t){if(e.description)return e.description.value;if(!0===(null==t?void 0:t.commentDescriptions)){var n=function(e){var t=e.loc;if(t){for(var n=[],r=t.startToken.prev;null!=r&&r.kind===wi.T.COMMENT&&r.next&&r.prev&&r.line+1===r.next.line&&r.line!==r.prev.line;){var i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join("\n"):void 0}}(e);if(void 0!==n)return(0,$i.W7)("\n"+n)}}function eo(e,t){null!=e&&e.kind===U.h.DOCUMENT||(0,s.Z)(0,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&function(e){var t=kr(e);if(0!==t.length)throw new Error(t.map(function(e){return e.message}).join("\n\n"))}(e);var n=Zi({description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(var r=0,i=n.types;r<i.length;r++){var o=i[r];switch(o.name){case"Query":n.query=o;break;case"Mutation":n.mutation=o;break;case"Subscription":n.subscription=o}}for(var a=n.directives,u=function(e){var t=kt[e];a.every(function(e){return e.name!==t.name})&&a.push(t)},c=0;c<kt.length;c++)u(c);return new jt(n)}function to(e,t){return eo((0,a.Qc)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacySDLEmptyFields:null==t?void 0:t.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:null==t?void 0:t.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:null==t?void 0:t.experimentalFragmentVariables}),{commentDescriptions:null==t?void 0:t.commentDescriptions,assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function no(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ro(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?no(Object(n),!0).forEach(function(t){io(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):no(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function io(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oo(e){var t=e.toConfig(),n=I(so(t.types),function(e){return e.name},function(e){if($(e)||Tt(e))return e;if(H(e)){var t=e.toConfig();return new Ae(ro(ro({},t),{},{interfaces:function(){return u(t.interfaces)},fields:function(){return s(t.fields)}}))}if(W(e)){var n=e.toConfig();return new Ue(ro(ro({},n),{},{interfaces:function(){return u(n.interfaces)},fields:function(){return s(n.fields)}}))}if(Y(e)){var i=e.toConfig();return new Me(ro(ro({},i),{},{types:function(){return u(i.types)}}))}if(J(e)){var o=e.toConfig();return new je(ro(ro({},o),{},{values:ao(o.values)}))}if(ee(e)){var a=e.toConfig();return new Be(ro(ro({},a),{},{fields:function(){return ao(a.fields,function(e){return ro(ro({},e),{},{type:r(e.type)})})}}))}(0,L.Z)(0,"Unexpected type: "+(0,d.Z)(e))});return new jt(ro(ro({},t),{},{types:p(n),directives:so(t.directives).map(function(e){var t=e.toConfig();return new Dt(ro(ro({},t),{},{locations:uo(t.locations,function(e){return e}),args:a(t.args)}))}),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)}));function r(e){return ne(e)?new ge(r(e.ofType)):ie(e)?new ye(r(e.ofType)):i(e)}function i(e){return n[e.name]}function o(e){return e&&i(e)}function a(e){return ao(e,function(e){return ro(ro({},e),{},{type:r(e.type)})})}function s(e){return ao(e,function(e){return ro(ro({},e),{},{type:r(e.type),args:a(e.args)})})}function u(e){return so(e).map(i)}}function ao(e,t){for(var n=Object.create(null),r=uo(Object.keys(e),function(e){return e}),i=0;i<r.length;i++){var o=r[i],a=e[o];n[o]=t?t(a):a}return n}function so(e){return uo(e,function(e){return e.name})}function uo(e,t){return e.slice().sort(function(e,n){return A(t(e),t(n))})}function co(e,t){return fo(e,function(e){return!xt(e)},po,t)}function lo(e,t){return fo(e,xt,Tt,t)}function po(e){return!ut(e)&&!Tt(e)}function fo(e,t,n,r){var i=e.getDirectives().filter(t),o=p(e.getTypeMap()).filter(n);return[ho(e)].concat(i.map(function(e){return function(e,t){return Io(t,e)+"directive @"+e.name+bo(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e,r)}),o.map(function(e){return mo(e,r)})).filter(Boolean).join("\n\n")+"\n"}function ho(e){if(null!=e.description||!function(e){var t=e.getQueryType();if(t&&"Query"!==t.name)return!1;var n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;var r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e)){var t=[],n=e.getQueryType();n&&t.push(" query: ".concat(n.name));var r=e.getMutationType();r&&t.push(" mutation: ".concat(r.name));var i=e.getSubscriptionType();return i&&t.push(" subscription: ".concat(i.name)),Io({},e)+"schema {\n".concat(t.join("\n"),"\n}")}}function mo(e,t){return $(e)?function(e,t){return Io(t,e)+"scalar ".concat(e.name)+function(e){if(null==e.specifiedByUrl)return"";var t=ct(e.specifiedByUrl,it);return t||(0,L.Z)(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+(0,M.S)(t)+")"}(e)}(e,t):H(e)?function(e,t){return Io(t,e)+"type ".concat(e.name)+go(e)+yo(t,e)}(e,t):W(e)?function(e,t){return Io(t,e)+"interface ".concat(e.name)+go(e)+yo(t,e)}(e,t):Y(e)?function(e,t){var n=e.getTypes(),r=n.length?" = "+n.join(" | "):"";return Io(t,e)+"union "+e.name+r}(e,t):J(e)?function(e,t){var n=e.getValues().map(function(e,n){return Io(t,e," ",!n)+" "+e.name+_o(e.deprecationReason)});return Io(t,e)+"enum ".concat(e.name)+vo(n)}(e,t):ee(e)?function(e,t){var n=p(e.getFields()).map(function(e,n){return Io(t,e," ",!n)+" "+Eo(e)});return Io(t,e)+"input ".concat(e.name)+vo(n)}(e,t):void(0,L.Z)(0,"Unexpected type: "+(0,d.Z)(e))}function go(e){var t=e.getInterfaces();return t.length?" implements "+t.map(function(e){return e.name}).join(" & "):""}function yo(e,t){return vo(p(t.getFields()).map(function(t,n){return Io(e,t," ",!n)+" "+t.name+bo(e,t.args," ")+": "+String(t.type)+_o(t.deprecationReason)}))}function vo(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function bo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return 0===t.length?"":t.every(function(e){return!e.description})?"("+t.map(Eo).join(", ")+")":"(\n"+t.map(function(t,r){return Io(e,t," "+n,!r)+" "+n+Eo(t)}).join("\n")+"\n"+n+")"}function Eo(e){var t=ct(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=" = ".concat((0,M.S)(t))),n+_o(e.deprecationReason)}function _o(e){if(null==e)return"";var t=ct(e,it);return t&&e!==Nt?" @deprecated(reason: "+(0,M.S)(t)+")":" @deprecated"}function Io(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=t.description;if(null==i)return"";if(!0===(null==e?void 0:e.commentDescriptions))return function(e,t,n){return(t&&!n?"\n":"")+e.split("\n").map(function(e){return t+(""!==e?"# "+e:"#")}).join("\n")+"\n"}(i,n,r);var o=i.length>70;return(n&&!r?"\n"+n:n)+(0,$i.LZ)(i,"",o).replace(/\n/g,"\n"+n)+"\n"}function So(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t=t.concat(r.definitions)}return{kind:"Document",definitions:t}}function To(e){for(var t=[],n=Object.create(null),r=0,i=e.definitions;r<i.length;r++){var o=i[r];switch(o.kind){case U.h.OPERATION_DEFINITION:t.push(o);break;case U.h.FRAGMENT_DEFINITION:n[o.name.value]=wo(o.selectionSet)}}for(var a=Object.create(null),s=function(r){for(var i=t[r],o=new Set,s=0,u=wo(i.selectionSet);s<u.length;s++){var c=u[s];Co(o,n,c)}var l=i.name?i.name.value:"";a[l]={kind:U.h.DOCUMENT,definitions:e.definitions.filter(function(e){return e===i||e.kind===U.h.FRAGMENT_DEFINITION&&o.has(e.name.value)})}},u=0;u<t.length;u++)s(u);return a}function Co(e,t,n){if(!e.has(n)){e.add(n);var r=t[n];if(void 0!==r)for(var i=0;i<r.length;i++)Co(e,t,r[i])}}function wo(e){var t=[];return(0,c.Vn)(e,{FragmentSpread:function(e){t.push(e.name.value)}}),t}function Po(e){for(var t=(0,Ii.T)(e)?e:new Ii.H(e),n=t.body,r=new Ci.h(t),i="",o=!1;r.advance().kind!==wi.T.EOF;){var a=r.token,s=a.kind,u=!(0,Ci.u)(a.kind);o&&(u||a.kind===wi.T.SPREAD)&&(i+=" ");var c=n.slice(a.start,a.end);s===wi.T.BLOCK_STRING?i+=Do(c):i+=c,o=u}return i}function Do(e){var t=e.slice(3,-3),n=(0,$i.W7)(t);(0,$i.Z2)(n)>0&&(n="\n"+n);var r=n[n.length-1];return('"'===r&&'\\"""'!==n.slice(-4)||"\\"===r)&&(n+="\n"),'"""'+n+'"""'}function Ao(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ao(Object(n),!0).forEach(function(t){No(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ao(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function No(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ro=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",IMPLEMENTED_INTERFACE_REMOVED:"IMPLEMENTED_INTERFACE_REMOVED",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_REPEATABLE_REMOVED:"DIRECTIVE_REPEATABLE_REMOVED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"}),Fo=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",IMPLEMENTED_INTERFACE_ADDED:"IMPLEMENTED_INTERFACE_ADDED",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});function ko(e,t){return Uo(e,t).filter(function(e){return e.type in Ro})}function xo(e,t){return Uo(e,t).filter(function(e){return e.type in Fo})}function Uo(e,t){return[].concat(function(e,t){for(var n=[],r=zo(p(e.getTypeMap()),p(t.getTypeMap())),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:Ro.TYPE_REMOVED,description:ut(a)?"Standard scalar ".concat(a.name," was removed because it is not referenced anymore."):"".concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){var c=u[s],l=c[0],d=c[1];J(l)&&J(d)?n.push.apply(n,jo(l,d)):Y(l)&&Y(d)?n.push.apply(n,Lo(l,d)):ee(l)&&ee(d)?n.push.apply(n,Mo(l,d)):H(l)&&H(d)||W(l)&&W(d)?n.push.apply(n,Bo(l,d).concat(Vo(l,d))):l.constructor!==d.constructor&&n.push({type:Ro.TYPE_CHANGED_KIND,description:"".concat(l.name," changed from ")+"".concat(Qo(l)," to ").concat(Qo(d),".")})}return n}(e,t),function(e,t){for(var n=[],r=zo(e.getDirectives(),t.getDirectives()),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:Ro.DIRECTIVE_REMOVED,description:"".concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){for(var c=u[s],l=c[0],p=c[1],d=zo(l.args,p.args),f=0,h=d.added;f<h.length;f++){var m=h[f];xe(m)&&n.push({type:Ro.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(m.name," on directive ").concat(l.name," was added.")})}for(var g=0,y=d.removed;g<y.length;g++){var v=y[g];n.push({type:Ro.DIRECTIVE_ARG_REMOVED,description:"".concat(v.name," was removed from ").concat(l.name,".")})}l.isRepeatable&&!p.isRepeatable&&n.push({type:Ro.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(l.name,".")});for(var b=0,E=l.locations;b<E.length;b++){var _=E[b];-1===p.locations.indexOf(_)&&n.push({type:Ro.DIRECTIVE_LOCATION_REMOVED,description:"".concat(_," was removed from ").concat(l.name,".")})}}return n}(e,t))}function Mo(e,t){for(var n=[],r=zo(p(e.getFields()),p(t.getFields())),i=0,o=r.added;i<o.length;i++){var a=o[i];qe(a)?n.push({type:Ro.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(a.name," on input type ").concat(e.name," was added.")}):n.push({type:Fo.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(a.name," on input type ").concat(e.name," was added.")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:Ro.FIELD_REMOVED,description:"".concat(e.name,".").concat(c.name," was removed.")})}for(var l=0,d=r.persisted;l<d.length;l++){var f=d[l],h=f[0],m=f[1];$o(h.type,m.type)||n.push({type:Ro.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(h.name," changed type from ")+"".concat(String(h.type)," to ").concat(String(m.type),".")})}return n}function Lo(e,t){for(var n=[],r=zo(e.getTypes(),t.getTypes()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:Fo.TYPE_ADDED_TO_UNION,description:"".concat(a.name," was added to union type ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:Ro.TYPE_REMOVED_FROM_UNION,description:"".concat(c.name," was removed from union type ").concat(e.name,".")})}return n}function jo(e,t){for(var n=[],r=zo(e.getValues(),t.getValues()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:Fo.VALUE_ADDED_TO_ENUM,description:"".concat(a.name," was added to enum type ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:Ro.VALUE_REMOVED_FROM_ENUM,description:"".concat(c.name," was removed from enum type ").concat(e.name,".")})}return n}function Vo(e,t){for(var n=[],r=zo(e.getInterfaces(),t.getInterfaces()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:Fo.IMPLEMENTED_INTERFACE_ADDED,description:"".concat(a.name," added to interfaces implemented by ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:Ro.IMPLEMENTED_INTERFACE_REMOVED,description:"".concat(e.name," no longer implements interface ").concat(c.name,".")})}return n}function Bo(e,t){for(var n=[],r=zo(p(e.getFields()),p(t.getFields())),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:Ro.FIELD_REMOVED,description:"".concat(e.name,".").concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){var c=u[s],l=c[0],d=c[1];n.push.apply(n,Go(e,l,d)),qo(l.type,d.type)||n.push({type:Ro.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(l.name," changed type from ")+"".concat(String(l.type)," to ").concat(String(d.type),".")})}return n}function Go(e,t,n){for(var r=[],i=zo(t.args,n.args),o=0,a=i.removed;o<a.length;o++){var s=a[o];r.push({type:Ro.ARG_REMOVED,description:"".concat(e.name,".").concat(t.name," arg ").concat(s.name," was removed.")})}for(var u=0,c=i.persisted;u<c.length;u++){var l=c[u],p=l[0],d=l[1];if($o(p.type,d.type)){if(void 0!==p.defaultValue)if(void 0===d.defaultValue)r.push({type:Fo.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(p.name," defaultValue was removed.")});else{var f=Ho(p.defaultValue,p.type),h=Ho(d.defaultValue,d.type);f!==h&&r.push({type:Fo.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(p.name," has changed defaultValue from ").concat(f," to ").concat(h,".")})}}else r.push({type:Ro.ARG_CHANGED_KIND,description:"".concat(e.name,".").concat(t.name," arg ").concat(p.name," has changed type from ")+"".concat(String(p.type)," to ").concat(String(d.type),".")})}for(var m=0,g=i.added;m<g.length;m++){var y=g[m];xe(y)?r.push({type:Ro.REQUIRED_ARG_ADDED,description:"A required arg ".concat(y.name," on ").concat(e.name,".").concat(t.name," was added.")}):r.push({type:Fo.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(y.name," on ").concat(e.name,".").concat(t.name," was added.")})}return r}function qo(e,t){return ne(e)?ne(t)&&qo(e.ofType,t.ofType)||ie(t)&&qo(e,t.ofType):ie(e)?ie(t)&&qo(e.ofType,t.ofType):Se(t)&&e.name===t.name||ie(t)&&qo(e,t.ofType)}function $o(e,t){return ne(e)?ne(t)&&$o(e.ofType,t.ofType):ie(e)?ie(t)&&$o(e.ofType,t.ofType)||!ie(t)&&$o(e.ofType,t):Se(t)&&e.name===t.name}function Qo(e){return $(e)?"a Scalar type":H(e)?"an Object type":W(e)?"an Interface type":Y(e)?"a Union type":J(e)?"an Enum type":ee(e)?"an Input type":void(0,L.Z)(0,"Unexpected type: "+(0,d.Z)(e))}function Ho(e,t){var n=ct(e,t);null!=n||(0,L.Z)(0);var r=(0,c.Vn)(n,{ObjectValue:function(e){var t=[].concat(e.fields);return t.sort(function(e,t){return A(e.name.value,t.name.value)}),Oo(Oo({},e),{},{fields:t})}});return(0,M.S)(r)}function zo(e,t){for(var n=[],r=[],i=[],o=b(e,function(e){return e.name}),a=b(t,function(e){return e.name}),s=0;s<e.length;s++){var u=e[s],c=a[u.name];void 0===c?r.push(u):i.push([u,c])}for(var l=0;l<t.length;l++){var p=t[l];void 0===o[p.name]&&n.push(p)}return{added:n,persisted:i,removed:r}}function Wo(e,t){return Fr(e,t,[Fi])}},9499:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(1424),i=n(6182);function o(e){var t=e.prototype.toJSON;"function"==typeof t||(0,r.Z)(0),e.prototype.inspect=t,i.Z&&(e.prototype[i.Z]=t)}},8660:(e,t,n)=>{function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,{Z:()=>r})},2277:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(6182);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o=10,a=2;function s(e){return u(e,[])}function u(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(r.Z)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==i){var s=i.call(e);if(s!==e)return"string"==typeof s?s:u(s,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>a)return"[Array]";for(var n=Math.min(o,e.length),r=e.length-n,i=[],s=0;s<n;++s)i.push(u(e[s],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.length>a?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+n.map(function(n){return n+": "+u(e[n],t)}).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},4846:(e,t,n)=>{n.d(t,{Z:()=>r});const r=function(e,t){return e instanceof t}},1424:(e,t,n)=>{function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.d(t,{Z:()=>r})},1040:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){return"object"==r(e)&&null!==e}n.d(t,{Z:()=>i})},6182:(e,t,n)=>{n.d(t,{Z:()=>r});const r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0},781:(e,t,n)=>{n.d(t,{Ye:()=>i,WU:()=>o,UG:()=>a});var r=n(9499),i=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();(0,r.Z)(i);var o=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function a(e){return null!=e&&"string"==typeof e.kind}(0,r.Z)(o)},5717:(e,t,n)=>{function r(e){var t=e.split(/\r\n|[\n\r]/g),n=o(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var a=0;a<t.length&&i(t[a]);)++a;for(var s=t.length;s>a&&i(t[s-1]);)--s;return t.slice(a,s).join("\n")}function i(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function o(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,u="";return!s||r&&i||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}n.d(t,{W7:()=>r,Z2:()=>o,LZ:()=>a})},9633:(e,t,n)=>{n.d(t,{B:()=>r});var r=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"})},5115:(e,t,n)=>{n.d(t,{h:()=>r});var r=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},2027:(e,t,n)=>{n.d(t,{h:()=>s,u:()=>u});var r=n(650),i=n(781),o=n(7956),a=n(5717),s=function(){function e(e){var t=new i.WU(o.T.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==o.T.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=l(this,e)}while(e.kind===o.T.COMMENT);return e},e}();function u(e){return e===o.T.BANG||e===o.T.DOLLAR||e===o.T.AMP||e===o.T.PAREN_L||e===o.T.PAREN_R||e===o.T.SPREAD||e===o.T.COLON||e===o.T.EQUALS||e===o.T.AT||e===o.T.BRACKET_L||e===o.T.BRACKET_R||e===o.T.BRACE_L||e===o.T.PIPE||e===o.T.BRACE_R}function c(e){return isNaN(e)?o.T.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function l(e,t){for(var n=e.source,a=n.body,s=a.length,u=t.end;u<s;){var c=a.charCodeAt(u),l=e.line,h=1+u-e.lineStart;switch(c){case 65279:case 9:case 32:case 44:++u;continue;case 10:++u,++e.line,e.lineStart=u;continue;case 13:10===a.charCodeAt(u+1)?u+=2:++u,++e.line,e.lineStart=u;continue;case 33:return new i.WU(o.T.BANG,u,u+1,l,h,t);case 35:return d(n,u,l,h,t);case 36:return new i.WU(o.T.DOLLAR,u,u+1,l,h,t);case 38:return new i.WU(o.T.AMP,u,u+1,l,h,t);case 40:return new i.WU(o.T.PAREN_L,u,u+1,l,h,t);case 41:return new i.WU(o.T.PAREN_R,u,u+1,l,h,t);case 46:if(46===a.charCodeAt(u+1)&&46===a.charCodeAt(u+2))return new i.WU(o.T.SPREAD,u,u+3,l,h,t);break;case 58:return new i.WU(o.T.COLON,u,u+1,l,h,t);case 61:return new i.WU(o.T.EQUALS,u,u+1,l,h,t);case 64:return new i.WU(o.T.AT,u,u+1,l,h,t);case 91:return new i.WU(o.T.BRACKET_L,u,u+1,l,h,t);case 93:return new i.WU(o.T.BRACKET_R,u,u+1,l,h,t);case 123:return new i.WU(o.T.BRACE_L,u,u+1,l,h,t);case 124:return new i.WU(o.T.PIPE,u,u+1,l,h,t);case 125:return new i.WU(o.T.BRACE_R,u,u+1,l,h,t);case 34:return 34===a.charCodeAt(u+1)&&34===a.charCodeAt(u+2)?g(n,u,l,h,t,e):m(n,u,l,h,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return f(n,u,c,l,h,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return b(n,u,l,h,t)}throw(0,r.h)(n,u,p(c))}var y=e.line,v=1+u-e.lineStart;return new i.WU(o.T.EOF,s,s,y,v,t)}function p(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(c(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(c(e),".")}function d(e,t,n,r,a){var s,u=e.body,c=t;do{s=u.charCodeAt(++c)}while(!isNaN(s)&&(s>31||9===s));return new i.WU(o.T.COMMENT,t,c,n,r,a,u.slice(t+1,c))}function f(e,t,n,a,s,u){var l=e.body,p=n,d=t,f=!1;if(45===p&&(p=l.charCodeAt(++d)),48===p){if((p=l.charCodeAt(++d))>=48&&p<=57)throw(0,r.h)(e,d,"Invalid number, unexpected digit after 0: ".concat(c(p),"."))}else d=h(e,d,p),p=l.charCodeAt(d);if(46===p&&(f=!0,p=l.charCodeAt(++d),d=h(e,d,p),p=l.charCodeAt(d)),69!==p&&101!==p||(f=!0,43!==(p=l.charCodeAt(++d))&&45!==p||(p=l.charCodeAt(++d)),d=h(e,d,p),p=l.charCodeAt(d)),46===p||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(p))throw(0,r.h)(e,d,"Invalid number, expected digit but got: ".concat(c(p),"."));return new i.WU(f?o.T.FLOAT:o.T.INT,t,d,a,s,u,l.slice(t,d))}function h(e,t,n){var i=e.body,o=t,a=n;if(a>=48&&a<=57){do{a=i.charCodeAt(++o)}while(a>=48&&a<=57);return o}throw(0,r.h)(e,o,"Invalid number, expected digit but got: ".concat(c(a),"."))}function m(e,t,n,a,s){for(var u=e.body,l=t+1,p=l,d=0,f="";l<u.length&&!isNaN(d=u.charCodeAt(l))&&10!==d&&13!==d;){if(34===d)return f+=u.slice(p,l),new i.WU(o.T.STRING,t,l+1,n,a,s,f);if(d<32&&9!==d)throw(0,r.h)(e,l,"Invalid character within String: ".concat(c(d),"."));if(++l,92===d){switch(f+=u.slice(p,l-1),d=u.charCodeAt(l)){case 34:f+='"';break;case 47:f+="/";break;case 92:f+="\\";break;case 98:f+="\b";break;case 102:f+="\f";break;case 110:f+="\n";break;case 114:f+="\r";break;case 116:f+="\t";break;case 117:var h=y(u.charCodeAt(l+1),u.charCodeAt(l+2),u.charCodeAt(l+3),u.charCodeAt(l+4));if(h<0){var m=u.slice(l+1,l+5);throw(0,r.h)(e,l,"Invalid character escape sequence: \\u".concat(m,"."))}f+=String.fromCharCode(h),l+=4;break;default:throw(0,r.h)(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(d),"."))}p=++l}}throw(0,r.h)(e,l,"Unterminated string.")}function g(e,t,n,s,u,l){for(var p=e.body,d=t+3,f=d,h=0,m="";d<p.length&&!isNaN(h=p.charCodeAt(d));){if(34===h&&34===p.charCodeAt(d+1)&&34===p.charCodeAt(d+2))return m+=p.slice(f,d),new i.WU(o.T.BLOCK_STRING,t,d+3,n,s,u,(0,a.W7)(m));if(h<32&&9!==h&&10!==h&&13!==h)throw(0,r.h)(e,d,"Invalid character within String: ".concat(c(h),"."));10===h?(++d,++l.line,l.lineStart=d):13===h?(10===p.charCodeAt(d+1)?d+=2:++d,++l.line,l.lineStart=d):92===h&&34===p.charCodeAt(d+1)&&34===p.charCodeAt(d+2)&&34===p.charCodeAt(d+3)?(m+=p.slice(f,d)+'"""',f=d+=4):++d}throw(0,r.h)(e,d,"Unterminated string.")}function y(e,t,n,r){return v(e)<<12|v(t)<<8|v(n)<<4|v(r)}function v(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function b(e,t,n,r,a){for(var s=e.body,u=s.length,c=t+1,l=0;c!==u&&!isNaN(l=s.charCodeAt(c))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++c;return new i.WU(o.T.NAME,t,c,n,r,a,s.slice(t,c))}},4293:(e,t,n)=>{function r(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}n.d(t,{k:()=>r})},5390:(e,t,n)=>{n.d(t,{Qc:()=>l,H2:()=>p,gZ:()=>d});var r=n(650),i=n(5115),o=n(781),a=n(7956),s=n(4957),u=n(9633),c=n(2027);function l(e,t){return new f(e,t).parseDocument()}function p(e,t){var n=new f(e,t);n.expectToken(a.T.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(a.T.EOF),r}function d(e,t){var n=new f(e,t);n.expectToken(a.T.SOF);var r=n.parseTypeReference();return n.expectToken(a.T.EOF),r}var f=function(){function e(e,t){var n=(0,s.T)(e)?e:new s.H(e);this._lexer=new c.h(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(a.T.NAME);return{kind:i.h.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:i.h.DOCUMENT,definitions:this.many(a.T.SOF,this.parseDefinition,a.T.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(a.T.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(a.T.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(a.T.BRACE_L))return{kind:i.h.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(a.T.NAME)&&(t=this.parseName()),{kind:i.h.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(a.T.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(a.T.PAREN_L,this.parseVariableDefinition,a.T.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:i.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(a.T.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(a.T.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(a.T.DOLLAR),{kind:i.h.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:i.h.SELECTION_SET,selections:this.many(a.T.BRACE_L,this.parseSelection,a.T.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(a.T.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(a.T.COLON)?(e=r,t=this.parseName()):t=r,{kind:i.h.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(a.T.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(a.T.PAREN_L,t,a.T.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(a.T.COLON),{kind:i.h.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:i.h.ARGUMENT,name:this.parseName(),value:(this.expectToken(a.T.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(a.T.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(a.T.NAME)?{kind:i.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:i.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:i.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:i.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case a.T.BRACKET_L:return this.parseList(e);case a.T.BRACE_L:return this.parseObject(e);case a.T.INT:return this._lexer.advance(),{kind:i.h.INT,value:t.value,loc:this.loc(t)};case a.T.FLOAT:return this._lexer.advance(),{kind:i.h.FLOAT,value:t.value,loc:this.loc(t)};case a.T.STRING:case a.T.BLOCK_STRING:return this.parseStringLiteral();case a.T.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:i.h.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:i.h.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:i.h.NULL,loc:this.loc(t)};default:return{kind:i.h.ENUM,value:t.value,loc:this.loc(t)}}case a.T.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:i.h.STRING,value:e.value,block:e.kind===a.T.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:i.h.LIST,values:this.any(a.T.BRACKET_L,function(){return t.parseValueLiteral(e)},a.T.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:i.h.OBJECT,fields:this.any(a.T.BRACE_L,function(){return t.parseObjectField(e)},a.T.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(a.T.COLON),{kind:i.h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(a.T.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(a.T.AT),{kind:i.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(a.T.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(a.T.BRACKET_R),e={kind:i.h.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(a.T.BANG)?{kind:i.h.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:i.h.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===a.T.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(a.T.STRING)||this.peek(a.T.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(a.T.BRACE_L,this.parseOperationTypeDefinition,a.T.BRACE_R);return{kind:i.h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(a.T.COLON);var n=this.parseNamedType();return{kind:i.h.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:i.h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:i.h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:a,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(a.T.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(a.T.AMP)||this.peek(a.T.NAME));return t}return this.delimitedMany(a.T.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(a.T.BRACE_L)&&this._lexer.lookahead().kind===a.T.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(a.T.BRACE_L,this.parseFieldDefinition,a.T.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(a.T.COLON);var o=this.parseTypeReference(),s=this.parseDirectives(!0);return{kind:i.h.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:s,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(a.T.PAREN_L,this.parseInputValueDef,a.T.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(a.T.COLON);var r,o=this.parseTypeReference();this.expectOptionalToken(a.T.EQUALS)&&(r=this.parseValueLiteral(!0));var s=this.parseDirectives(!0);return{kind:i.h.INPUT_VALUE_DEFINITION,description:t,name:n,type:o,defaultValue:r,directives:s,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:i.h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:a,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseUnionMemberTypes();return{kind:i.h.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:o,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(a.T.EQUALS)?this.delimitedMany(a.T.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseEnumValuesDefinition();return{kind:i.h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:o,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(a.T.BRACE_L,this.parseEnumValueDefinition,a.T.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:i.h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseInputFieldsDefinition();return{kind:i.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:o,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(a.T.BRACE_L,this.parseInputValueDef,a.T.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===a.T.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)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(a.T.BRACE_L,this.parseOperationTypeDefinition,a.T.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:i.h.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:i.h.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return{kind:i.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return{kind:i.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:i.h.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:i.h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:i.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(a.T.AT);var n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var s=this.parseDirectiveLocations();return{kind:i.h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:o,locations:s,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(a.T.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==u.B[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new o.Ye(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw(0,r.h)(this._lexer.source,t.start,"Expected ".concat(m(e),", found ").concat(h(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==a.T.NAME||t.value!==e)throw(0,r.h)(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(h(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===a.T.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return(0,r.h)(this._lexer.source,t.start,"Unexpected ".concat(h(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function h(e){var t=e.value;return m(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function m(e){return(0,c.u)(e)?'"'.concat(e,'"'):e}},6242:(e,t,n)=>{n.d(t,{Q:()=>i,z:()=>o});var r=n(4293);function i(e){return o(e.source,(0,r.k)(e.source,e.start))}function o(e,t){var n=e.locationOffset.column-1,r=s(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,u=t.line+o,c=1===t.line?n:0,l=t.column+c,p="".concat(e.name,":").concat(u,":").concat(l,"\n"),d=r.split(/\r\n|[\n\r]/g),f=d[i];if(f.length>120){for(var h=Math.floor(l/80),m=l%80,g=[],y=0;y<f.length;y+=80)g.push(f.slice(y,y+80));return p+a([["".concat(u),g[0]]].concat(g.slice(1,h+1).map(function(e){return["",e]}),[[" ",s(m-1)+"^"],["",g[h+1]]]))}return p+a([["".concat(u-1),d[i-1]],["".concat(u),f],["",s(l-1)+"^"],["".concat(u+1),d[i+1]]])}function a(e){var t=e.filter(function(e){return e[0],void 0!==e[1]}),n=Math.max.apply(Math,t.map(function(e){return e[0].length}));return t.map(function(e){var t,r=e[0],i=e[1];return s(n-(t=r).length)+t+(i?" | "+i:" |")}).join("\n")}function s(e){return Array(e+1).join(" ")}},9054:(e,t,n)=>{n.d(t,{S:()=>o});var r=n(8867),i=n(5717);function o(e){return(0,r.Vn)(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return u(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=l("(",u(e.variableDefinitions,", "),")"),i=u(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?u([t,u([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+l(" = ",r)+l(" ",u(i," "))},SelectionSet:function(e){return c(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=l("",t,": ")+n,s=a+l("(",u(r,", "),")");return s.length>80&&(s=a+l("(\n",p(u(r,"\n")),"\n)")),u([s,u(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+l(" ",u(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return u(["...",l("on ",t),u(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(l("(",u(r,", "),")")," ")+"on ".concat(n," ").concat(l("",u(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,i.LZ)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+u(e.values,", ")+"]"},ObjectValue:function(e){return"{"+u(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+l("(",u(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:s(function(e){var t=e.directives,n=e.operationTypes;return u(["schema",u(t," "),c(n)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:s(function(e){return u(["scalar",e.name,u(e.directives," ")]," ")}),ObjectTypeDefinition:s(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["type",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")}),FieldDefinition:s(function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(f(n)?l("(\n",p(u(n,"\n")),"\n)"):l("(",u(n,", "),")"))+": "+r+l(" ",u(i," "))}),InputValueDefinition:s(function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return u([t+": "+n,l("= ",r),u(i," ")]," ")}),InterfaceTypeDefinition:s(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["interface",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")}),UnionTypeDefinition:s(function(e){var t=e.name,n=e.directives,r=e.types;return u(["union",t,u(n," "),r&&0!==r.length?"= "+u(r," | "):""]," ")}),EnumTypeDefinition:s(function(e){var t=e.name,n=e.directives,r=e.values;return u(["enum",t,u(n," "),c(r)]," ")}),EnumValueDefinition:s(function(e){return u([e.name,u(e.directives," ")]," ")}),InputObjectTypeDefinition:s(function(e){var t=e.name,n=e.directives,r=e.fields;return u(["input",t,u(n," "),c(r)]," ")}),DirectiveDefinition:s(function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(f(n)?l("(\n",p(u(n,"\n")),"\n)"):l("(",u(n,", "),")"))+(r?" repeatable":"")+" on "+u(i," | ")}),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return u(["extend schema",u(t," "),c(n)]," ")},ScalarTypeExtension:function(e){return u(["extend scalar",e.name,u(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["extend type",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["extend interface",t,l("implements ",u(n," & ")),u(r," "),c(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return u(["extend union",t,u(n," "),r&&0!==r.length?"= "+u(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return u(["extend enum",t,u(n," "),c(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return u(["extend input",t,u(n," "),c(r)]," ")}};function s(e){return function(t){return u([t.description,e(t)],"\n")}}function u(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter(function(e){return e}).join(n))&&void 0!==t?t:""}function c(e){return l("{\n",p(u(e,"\n")),"\n}")}function l(e,t){return null!=t&&""!==t?e+t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function p(e){return l(" ",e.replace(/\n/g,"\n "))}function d(e){return-1!==e.indexOf("\n")}function f(e){return null!=e&&e.some(d)}},4957:(e,t,n)=>{n.d(t,{H:()=>u,T:()=>c});var r=n(1176),i=n(2277),o=n(8660),a=n(4846);function s(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)}}var u=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||(0,o.Z)(0,"Body must be a string. Received: ".concat((0,i.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,o.Z)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,o.Z)(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n;return t=e,(n=[{key:r.YF,get:function(){return"Source"}}])&&s(t.prototype,n),e}();function c(e){return(0,a.Z)(e,u)}},7956:(e,t,n)=>{n.d(t,{T:()=>r});var r=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"})},8867:(e,t,n)=>{n.d(t,{$_:()=>a,Vn:()=>s,j1:()=>u,CK:()=>c});var r=n(2277),i=n(781),o={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"]},a=Object.freeze({});function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=void 0,u=Array.isArray(e),l=[e],p=-1,d=[],f=void 0,h=void 0,m=void 0,g=[],y=[],v=e;do{var b=++p===l.length,E=b&&0!==d.length;if(b){if(h=0===y.length?void 0:g[g.length-1],f=m,m=y.pop(),E){if(u)f=f.slice();else{for(var _={},I=0,S=Object.keys(f);I<S.length;I++){var T=S[I];_[T]=f[T]}f=_}for(var C=0,w=0;w<d.length;w++){var P=d[w][0],D=d[w][1];u&&(P-=C),u&&null===D?(f.splice(P,1),C++):f[P]=D}}p=s.index,l=s.keys,d=s.edits,u=s.inArray,s=s.prev}else{if(h=m?u?p:l[p]:void 0,null==(f=m?m[h]:v))continue;m&&g.push(h)}var A,O=void 0;if(!Array.isArray(f)){if(!(0,i.UG)(f))throw new Error("Invalid AST Node: ".concat((0,r.Z)(f),"."));var N=c(t,f.kind,b);if(N){if((O=N.call(t,f,h,m,g,y))===a)break;if(!1===O){if(!b){g.pop();continue}}else if(void 0!==O&&(d.push([h,O]),!b)){if(!(0,i.UG)(O)){g.pop();continue}f=O}}}void 0===O&&E&&d.push([h,f]),b?g.pop():(s={inArray:u,index:p,keys:l,edits:d,prev:s},l=(u=Array.isArray(f))?f:null!==(A=n[f.kind])&&void 0!==A?A:[],p=-1,d=[],m&&y.push(m),m=f)}while(void 0!==s);return 0!==d.length&&(v=d[d.length-1][1]),v}function u(e){var t=new Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=c(e[r],n.kind,!1);if(i){var o=i.apply(e[r],arguments);if(!1===o)t[r]=n;else if(o===a)t[r]=a;else if(void 0!==o)return o}}},leave:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=c(e[r],n.kind,!0);if(i){var o=i.apply(e[r],arguments);if(o===a)t[r]=a;else if(void 0!==o&&!1!==o)return o}}else t[r]===n&&(t[r]=null)}}}function c(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[t];if("function"==typeof a)return a}}}},1176:(e,t,n)=>{n.d(t,{Xr:()=>r,PA:()=>i,YF:()=>o});var r="function"==typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:"@@iterator",i="function"==typeof Symbol&&null!=Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator",o="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag"}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r=n(3884),i=r.fEx,o=r.zVd,a=r.zu7,s=r.dpb,u=r.T0E,c=r.d4U,l=r.nwm,p=r.Ijf,d=r.ivL,f=r.v2N,h=r.fg_,m=r.$SX,g=r.Mbo,y=r.E34,v=r.Bkk,b=r.Y92,E=r.m06,_=r.bM9,I=r.ucG,S=r.sZY,T=r.Yti,C=r.PLi,w=r.yTz,P=r.FzK,D=r.tvV,A=r.ugv,O=r.feI,N=r.Yop,R=r.mu$,F=r.sf5,k=r.x3v,x=r.jAf,U=r.u4I,M=r.bno,L=r.bEP,j=r.weZ,V=r.bfH,B=r.uS8,G=r.K6s,q=r.eyU,$=r.wE_,Q=r.RJY,H=r.zdd,z=r.i2A,W=r.fc5,Z=r.K79,Y=r.$i2,K=r.m0x,J=r.$QI,X=r.WJn,ee=r.Pzm,te=r.Q_D,ne=r.fc8,re=r.XCy,ie=r.W0R,oe=r.MnN,ae=r.ETy,se=r.vPg,ue=r.Q0c,ce=r.NWj,le=r.lj3,pe=r.XQy,de=r.R8w,fe=r.gYt,he=r.g9Q,me=r.U9R,ge=r.bSK,ye=r.BGD,ve=r.Eq9,be=r.mKD,Ee=r._Yx,_e=r.uMJ,Ie=r.oiL,Se=r.Fa6,Te=r.$ur,Ce=r.Ch6,we=r.of1,Pe=r.hk_,De=r.vjn,Ae=r._d$,Oe=r.NSU,Ne=r.Eph,Re=r.g31,Fe=r.u9g,ke=r.aqW,xe=r.LBz,Ue=r.qYx,Me=r.X$1,Le=r.OoB,je=r.pDu,Ve=r.rpU,Be=r.fYe,Ge=r.Pg9,qe=r.GBW,$e=r.g20,Qe=r.i1W,He=r.vQb,ze=r.yEZ,We=r.Wky,Ze=r.C2e,Ye=r.Lbh,Ke=r.RCf,Je=r.z2r,Xe=r.AVk,et=r.cUI,tt=r.HHl,nt=r.XHu,rt=r.Uze,it=r.sA9,ot=r.cG4,at=r.H5H,st=r.RlM,ut=r.JrM,ct=r.bII,lt=r.jUP,pt=r.FT8,dt=r.xEh,ft=r.cjh,ht=r.$Yq,mt=r.Pr8,gt=r.YOP,yt=r.IZr,vt=r.$BG,bt=r.Qj0,Et=r.jKp,_t=r.e8S,It=r.m5b,St=r.wO5,Tt=r.VpA,Ct=r.FFB,wt=r.y3V,Pt=r.Zr9,Dt=r.g3t,At=r.m72,Ot=r.i3Z,Nt=r.zcH,Rt=r.zOd,Ft=r.o_I,kt=r.bWm,xt=r.EP_,Ut=r.o5f,Mt=r.i4m,Lt=r.sEr,jt=r.GAT,Vt=r.iKc,Bt=r.Tex,Gt=r.XsQ,qt=r.U9t,$t=r.OpC,Qt=r.bgy,Ht=r.T5f,zt=r.jPD,Wt=r.Q$1,Zt=r.Cmg,Yt=r.$Iz,Kt=r.tIq,Jt=r.zHr,Xt=r.ZeH,en=r.$Av,tn=r.TpL,nn=r.pWb,rn=r.Rk$,on=r.roX,an=r.RXg,sn=r._xu,un=r.RVX,cn=r.Fd7,ln=r.N9K,pn=r.do1,dn=r.hH,fn=r.K0T,hn=r.p7R,mn=r.E7k,gn=r.EAJ,yn=r.Mal,vn=r.KeG,bn=r.uMn,En=r.qBr,_n=r.DFP,In=r.m76,Sn=r.$jJ,Tn=r.B8X,Cn=r.N5j,wn=r.Us3,Pn=r.isD,Dn=r.nN6,An=r.CQ1,On=r.ini,Nn=r.YdH,Rn=r.VsH,Fn=r.Kyg,kn=r.XY6,xn=r.QmV,Un=r.puT,Mn=r._sg,Ln=r.BuV,jn=r.fAd,Vn=r.bGN,Bn=r.$Bh,Gn=r.hVT,qn=r.k8_,$n=r.wn5,Qn=r.lgL,Hn=r.VeJ,zn=r.pSI,Wn=r.ctk,Zn=r.GL8,Yn=r.VHF,Kn=r.o5C,Jn=r.gpE,Xn=r.PVi,er=r.opi,tr=r.AQp,nr=r.Bve,rr=r.r$Y,ir=r.zBW,or=r.LpH,ar=r.H81,sr=r.q5V,ur=r.BoX,cr=r.a8K,lr=r.zv6,pr=r.RzF,dr=r.iI3,fr=r.DW2,hr=r.lKo,mr=r.jCI,gr=r.OeJ,yr=r.ab2,vr=r.TVs,br=r.JU,Er=r.QdX,_r=r.Kf7,Ir=r.LtK,Sr=r.r6R,Tr=r.fvX,Cr=r.r4r,wr=r.FcI,Pr=r.qw4,Dr=r.Cc7,Ar=r.kd9,Or=r.bOA,Nr=r.qXR,Rr=r.yGq,Fr=r.ZD9,kr=r.wEB,xr=r.YGW,Ur=r.Chb,Mr=r._HY,Lr=r.cMT,jr=r.p_C,Vr=r.Pte,Br=r.Ehw,Gr=r.JkE,qr=r.ku9,$r=r.$Vq,Qr=r.QZw,Hr=r.q6C,zr=r.YlF,Wr=r.rDA,Zr=r.CjA,Yr=r.u0j,Kr=r.Zam,Jr=r.JDz,Xr=r.ZSL,ei=r.dO5,ti=r.K5h,ni=r.UK7,ri=r.JyR,ii=r.GHz,oi=r._He,ai=r.kyC,si=r.nM6,ui=r.zWW,ci=r.xrg,li=r.bj8,pi=r.bGH,di=r.cTO,fi=r.SrV,hi=r.Xm9,mi=r.PO0,gi=r.FVE,yi=r.iSe,vi=r.CPx,bi=r.x3Z,Ei=r.e$z,_i=r.Yo2,Ii=r.ueJ,Si=r.eo$,Ti=r.w1y,Ci=r.c06,wi=r.lS0,Pi=r.abb,Di=r.ird,Ai=r._oj,Oi=r.e1Q,Ni=r.Ugm,Ri=r.hvo,Fi=r.tV1,ki=r.FL0,xi=r.Dxn,Ui=r.G6j,Mi=r.eSW,Li=r.DWP,ji=r.zjf,Vi=r.Eam,Bi=r.URA,Gi=r.yBL,qi=r.SQC,$i=r._q5,Qi=r.o88,Hi=r.cUf,zi=r.YVG,Wi=r.J5K,Zi=r.nOi,Yi=r.yhH,Ki=r.HsO,Ji=r.XqI,Xi=r.wRo,eo=r.hYU,to=r.UAI,no=r.aYi,ro=r.PNd,io=r.N9N,oo=r.$02,ao=r.Dc_,so=r.bk4,uo=r.p13,co=r.Yky,lo=r.mGS,po=r._gQ,fo=r.Dfv,ho=r.bd6,mo=r.eKV,go=r.EQD,yo=r.QNm,vo=r.yaX,bo=r.X3h,Eo=r.Buv,_o=r._yy,Io=r.l3m,So=r.aVo,To=r.f4i,Co=r.FoD,wo=r.O0T,Po=r.yyj,Do=r.rCU,Ao=r.l9N,Oo=r.EOH,No=r.LkV,Ro=r.ZPm,Fo=r.mKo,ko=r.RZ6,xo=r.Dvk,Uo=r.HBH,Mo=r.McM;export{i as AccessDeniedReason,o as AccountAccessMethod,a as AccountAccessRole,s as AccountStatus,u as AddonDependencyFragmentDoc,c as AddonFragmentDoc,l as AddonSortFields,p as AggregationFunction,d as AirwallexCheckoutCredentialsFragmentDoc,f as Alignment,h as ApiKeyScopeAction,m as ApiKeyScopeResource,g as ApiKeySortFields,y as ApiKeyType,v as ApplySubscriptionDocument,b as ApplySubscriptionFragmentDoc,E as ArchiveCustomerDocument,_ as Auth0ApplicationType,I as AutoRechargeSettingsFragmentDoc,S as BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT,T as BaseEntitlement,C as BillingAnchor,w as BillingCadence,P as BillingModel,D as BillingPeriod,A as BillingVendorIdentifier,O as BooleanEntitlement,N as BooleanEntitlementFallback,R as BooleanEntitlementOptions,F as CREDIT_DEFAULT_FALLBACK_ENTITLEMENT,k as CancelSubscriptionDocument,x as CancelSubscriptionUpdatesDocument,U as ChangeType,M as ChargeType,L as CheckoutConfigurationFragmentDoc,j as CheckoutStateFragmentDoc,V as ClientConfiguration,B as ConditionOperation,G as ConsumeCreditsAsyncDocument,q as ConsumeCreditsDocument,$ as ContractState,Q as ContractType,H as CouponFragmentDoc,z as CouponSortFields,W as CouponSource,Z as CouponStatus,Y as CouponType,K as CreateCouponDocument,J as CreatePaymentSessionDocument,X as CreateSubscriptionDocument,ee as CreditBalanceFragmentDoc,te as CreditBalanceUpdatedPayloadFragmentDoc,ne as CreditCadence,re as CreditConsumptionResponseFragmentDoc,ie as CreditCostEstimationFragmentDoc,oe as CreditEntitlement,ae as CreditEntitlementFallback,se as CreditEntitlementFragmentDoc,ue as CreditEntitlementOptions,ce as CreditGrantCadence,le as CreditGrantFragmentDoc,pe as CreditGrantInvoiceBillingReason,de as CreditGrantInvoiceFragmentDoc,fe as CreditGrantInvoiceStatus,he as CreditGrantSourceType,me as CreditGrantStatus,ge as CreditGrantType,ye as CreditGrantTypeInput,ve as CreditLedgerEventType,be as CreditLedgerFragmentDoc,Ee as CreditUsageFragmentDoc,_e as CreditUsageTimeRange,Ie as CreditsBalanceSummaryFragmentDoc,Se as Currency,Te as CustomCurrencyStatus,Ce as CustomerEntitlementsResult,we as CustomerEntitlementsResultV2,Pe as CustomerFragmentDoc,De as CustomerModel,Ae as CustomerPortalBillingInformationFragmentDoc,Oe as CustomerPortalConfigurationFragmentDoc,Ne as CustomerPortalEntitlementFragmentDoc,Re as CustomerPortalFragmentDoc,Fe as CustomerPortalPromotionalEntitlementFragmentDoc,ke as CustomerPortalSubscriptionAddonFragmentDoc,xe as CustomerPortalSubscriptionFragmentDoc,Ue as CustomerPortalSubscriptionPriceFragmentDoc,Me as CustomerPortalSubscriptionScheduledUpdateDataFragmentDoc,Le as CustomerResourceFragmentDoc,je as CustomerResourceSortFields,Ve as CustomerSortFields,Be as CustomerStatisticsFragmentDoc,Ge as CustomerSubscriptionSortFields,qe as CustomerWithSubscriptionsFragmentDoc,$e as DataExportJobStatus,Qe as DataExportSourceType,He as DelegateSubscriptionToCustomerDocument,ze as Department,We as DetachCustomerPaymentMethodDocument,Ze as DiscountDurationType,Ye as DiscountType,Ke as ENUM_DEFAULT_FALLBACK_ENTITLEMENT,Je as Entitlement,Xe as EntitlementBehavior,et as EntitlementFragmentDoc,tt as EntitlementReferenceFragmentDoc,nt as EntitlementResetPeriod,rt as EntitlementType,it as EntitlementUnionFragmentDoc,ot as EntitlementUsageUpdatedFragmentDoc,at as EntitlementV2,st as EntitlementsFallback,ut as EntitlementsStateAccessDeniedReason,ct as EntitlementsUpdatedPayloadFragmentDoc,lt as EntitlementsUpdatedV2PayloadFragmentDoc,pt as EntitySelectionMode,dt as EnumEntitlement,ft as EnumEntitlementFallback,ht as EnumEntitlementOptions,mt as EnvironmentAccessRole,gt as EnvironmentExportState,yt as EnvironmentProvisionStatus,vt as EnvironmentSortFields,bt as EnvironmentType,Et as ErrorCode,_t as EstimateEventCostDocument,It as EstimateSubscriptionDocument,St as EstimateSubscriptionUpdateDocument,Tt as EstimateUsageCostDocument,Ct as EstimationRequestWarning,wt as EstimationWarningCode,Pt as EventActor,Dt as EventEntityType,At as EventLogSortFields,Ot as EventLogType,Nt as EventQueueProvisioningStatus,Rt as ExperimentGroupType,Ft as ExperimentSortFields,kt as ExperimentStatus,xt as FeatureEntitlementFragmentDoc,Ut as FeatureFragmentDoc,Mt as FeatureGroupSortFields,Lt as FeatureGroupStatus,jt as FeatureSortFields,Vt as FeatureStatus,Bt as FeatureType,Gt as FontVariantFragmentDoc,qt as FontWeight,$t as GetActiveSubscriptionsDocument,Qt as GetActiveSubscriptionsListDocument,Ht as GetAutomaticRechargeConfigurationDocument,zt as GetCheckoutStateDocument,Wt as GetCouponsDocument,Zt as GetCreditBalanceDocument,Yt as GetCreditGrantsDocument,Kt as GetCreditLedgerDocument,Jt as GetCreditUsageDocument,Xt as GetCustomerByIdDocument,en as GetCustomerPortalByRefIdDocument,tn as GetCustomerStatisticsDocument,nn as GetEntitlementDocument,rn as GetEntitlementV2Document,on as GetEntitlementsDocument,an as GetEntitlementsStateDocument,sn as GetMockPaywallDocument,un as GetPaywallDocument,cn as GetProductsDocument,ln as GetSdkConfigurationDocument,pn as GetSubscriptionDocument,dn as GetSubscriptionsDocument,fn as GetUsageHistoryDocument,hn as GetUsageHistoryV2Document,mn as GrantCreditsDocument,gn as GrantExpirationPeriod,yn as GrantPromotionalEntitlementsDocument,vn as GrantPromotionalEntitlementsGroupDocument,bn as HookSortFields,En as HookStatus,_n as ImmediateSubscriptionPreviewInvoiceFragmentDoc,In as ImportCustomerBulkDocument,Sn as ImportCustomerDocument,Tn as ImportIntegrationTaskSortFields,Cn as ImportSubscriptionsBulkDocument,wn as IntegrationSortFields,Pn as InvoiceLineItemType,Dn as LayoutConfigurationFragmentDoc,An as LogConfiguration,On as LogLevel,Nn as Logger,Rn as METERED_DEFAULT_FALLBACK_ENTITLEMENT,Fn as MemberSortFields,kn as MemberStatus,xn as MergeApplyState,Un as MeterType,Mn as MeteredEntitlement,Ln as MeteredEntitlementFallback,jn as MeteredEntitlementOptions,Vn as MigrateSubscriptionToLatestDocument,Bn as MockPaywallAddonDependencyFragmentDoc,Gn as MockPaywallAddonFragmentDoc,qn as MockPaywallPackageEntitlementFragmentDoc,$n as MockPaywallPlanCompatiblePackageGroupsFragmentDoc,Qn as MockPaywallPlanFragmentDoc,Hn as MockPaywallPriceFragmentDoc,zn as MonthlyAccordingTo,Wn as NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT,Zn as NumericEntitlement,Yn as NumericEntitlementFallback,Kn as NumericEntitlementOptions,Jn as OfferSortFields,Xn as OfferStatus,er as OfflineStigg,tr as OnCreditBalanceUpdatedDocument,nr as OnEntitlementsUpdatedDocument,rr as OnEntitlementsUpdatedV2Document,ir as OnPackagePublishedDocument,or as OnUsageUpdatedDocument,ar as OnUsageUpdatedV2Document,sr as OverageBillingPeriod,ur as OveragePriceFragmentDoc,cr as PackageCreditEntitlementFragmentDoc,lr as PackageDtoSortFields,pr as PackageEntitlementFragmentDoc,dr as PackageEntitlementSortFields,fr as PackageEntitlementUnionFragmentDoc,hr as PackageFeatureEntitlementFragmentDoc,mr as PackageGroupSortFields,gr as PackageGroupStatus,yr as PackagePublishedPayloadFragmentDoc,vr as PackageStatus,br as PageInfoFragmentDoc,Er as PaymentCollection,_r as PaymentCollectionMethod,Ir as PaymentMethodType,Sr as PaymentSessionFragmentDoc,Tr as PaywallCalculatedPricePointsFragmentDoc,Cr as PaywallConfigurationFragmentDoc,wr as PaywallCurrencyFragmentDoc,Pr as PaywallFragmentDoc,Dr as PlanChangeType,Ar as PlanCompatiblePackageGroupsFragmentDoc,Or as PlanFragmentDoc,Nr as PlanSortFields,Rr as PreviewNextInvoiceDocument,Fr as PreviewSubscriptionDocument,kr as PriceFragmentDoc,xr as PriceSortFields,Ur as PriceTierFragmentDoc,Mr as PricingType,Lr as ProductFragmentDoc,jr as ProductSortFields,Vr as ProductStatus,Br as PromotionalEntitlementFragmentDoc,Gr as PromotionalEntitlementPeriod,qr as PromotionalEntitlementSortFields,$r as PromotionalEntitlementStatus,Qr as ProrationBehavior,Hr as ProvisionCustomerDocument,zr as ProvisionCustomerFragmentDoc,Wr as ProvisionSubscriptionDocument,Zr as ProvisionSubscriptionFragmentDoc,Yr as ProvisionSubscriptionStatus,Kr as PublishMigrationType,Jr as ReportEntitlementCheckRequestedDocument,Xr as ReportEventDocument,ei as ReportUsageBulkDocument,ti as ReportUsageDocument,ni as ReportUsageFragmentDoc,ri as ResetPeriodConfigurationFragmentDoc,ii as RevokePromotionalEntitlementDocument,oi as RevokePromotionalEntitlementsGroupDocument,ai as SaveAutomaticRechargeConfigurationDocument,si as ScheduleStrategy,ui as ScheduleVariablesFragmentDoc,ci as SlimCustomCurrencyFragmentDoc,li as SlimCustomerFragmentDoc,pi as SlimSubscriptionFragmentDoc,di as SlimSubscriptionFragmentV2FragmentDoc,fi as SortDirection,hi as SortNulls,mi as SourceType,gi as Stigg,yi as StiggClient,vi as StiggManagement,bi as StripeAccountMode,Ei as StripeAccountSource,_i as StripeCheckoutCredentialsFragmentDoc,Ii as SubscriptionAddonSortFields,Si as SubscriptionBillingCycleAnchor,Ti as SubscriptionCancelReason,Ci as SubscriptionCancellationAction,wi as SubscriptionCancellationTime,Pi as SubscriptionCouponStatus,Di as SubscriptionDecisionStrategy,Ai as SubscriptionEndSetup,Oi as SubscriptionEntitlementSortFields,Ni as SubscriptionFragmentDoc,Ri as SubscriptionFutureUpdateDataFragmentDoc,Fi as SubscriptionInvoiceBillingReason,ki as SubscriptionInvoiceFragmentDoc,xi as SubscriptionInvoicePreviewFragmentDoc,Ui as SubscriptionInvoiceStatus,Mi as SubscriptionMigrationTaskSortFields,Li as SubscriptionMigrationTime,ji as SubscriptionPreviewFragmentDoc,Vi as SubscriptionPreviewInvoiceFragmentDoc,Bi as SubscriptionPreviewV2FragmentDoc,Gi as SubscriptionPriceSortFields,qi as SubscriptionProrationBehavior,$i as SubscriptionQueryFragmentDoc,Qi as SubscriptionQuerySortFields,Hi as SubscriptionScheduleStatus,zi as SubscriptionScheduleType,Wi as SubscriptionScheduledUpdateDataFragmentDoc,Zi as SubscriptionStartSetup,Yi as SubscriptionStatus,Ki as SubscriptionTrialConfigurationFragmentDoc,Ji as SubscriptionUpdateUsageCutoffBehavior,Xi as SyncStatus,eo as TaskStatus,to as TaskType,no as ThresholdType,ro as TiersMode,io as TotalPriceFragmentDoc,oo as TransferSubscriptionDocument,ao as TransferSubscriptionToResourceDocument,so as TrialEndBehavior,uo as TrialPeriodUnits,co as Types,lo as TypographyConfigurationFragmentDoc,po as UnarchiveCustomerDocument,fo as UnitTransformationRound,ho as UnlinkPromotionalEntitlementsGroupDocument,mo as UpdateCustomerDocument,go as UpdateSubscriptionDocument,yo as UsageHistoryFragmentDoc,vo as UsageHistoryV2FragmentDoc,bo as UsageMarkerType,Eo as UsageMeasurementSortFields,_o as UsageUpdateBehavior,Io as UsageUpdatedFragmentDoc,So as UsageUpdatedV2PayloadFragmentDoc,To as UsageV2FragmentDoc,Co as VendorIdentifier,wo as VendorType,Po as VoidCreditGrantDocument,Do as WeeklyAccordingTo,Ao as WidgetType,Oo as YearlyAccordingTo,No as ZuoraCheckoutCredentialsFragmentDoc,Ro as default,Fo as getSdk,ko as isCreditEntitlementFragment,xo as isCreditEntitlementWithSummary,Uo as isFeatureEntitlementFragment,Mo as isFeatureEntitlementWithSummary};
|
|
3
3
|
//# sourceMappingURL=index.esm.js.map
|