@stigg/js-client-sdk 4.11.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/api/CreditsApi.d.ts +3 -1
- package/dist/client.d.ts +5 -1
- 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/dist/offlineClient.d.ts +8 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Stigg",[],t):"object"==typeof exports?exports.Stigg=t():e.Stigg=t()}(this,function(){return(()=>{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(){"use strict";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=>{"use strict";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(){"use strict";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){"use strict";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)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultJsonSerializer=void 0,t.defaultJsonSerializer={parse:JSON.parse,stringify:JSON.stringify}},3210:function(e,t,n){"use strict";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){"use strict";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)=>{"use strict";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)=>{"use strict";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){"use strict";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=>{"use strict";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)=>{"use strict";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)=>{"use strict";t.ReactNativeFile=n(9653),t.extractFiles=n(7368),t.isExtractableFile=n(2180)},2180:(e,t,n)=>{"use strict";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)=>{"use strict";t.TypedEmitter=n(2699).EventEmitter},3884:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AccessDeniedReason:()=>R,AccountAccessMethod:()=>F,AccountAccessRole:()=>k,AccountStatus:()=>x,AddonDependencyFragmentDoc:()=>Mo,AddonFragmentDoc:()=>Lo,AddonSortFields:()=>U,AggregationFunction:()=>M,Alignment:()=>L,ApiKeyScopeAction:()=>j,ApiKeyScopeResource:()=>V,ApiKeySortFields:()=>B,ApiKeyType:()=>G,ApplySubscriptionDocument:()=>ds,ApplySubscriptionFragmentDoc:()=>Va,ArchiveCustomerDocument:()=>As,Auth0ApplicationType:()=>q,AutoRechargeSettingsFragmentDoc:()=>Xa,BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT:()=>hh,BaseEntitlement:()=>a.BaseEntitlement,BillingAnchor:()=>$,BillingCadence:()=>Q,BillingModel:()=>H,BillingPeriod:()=>z,BillingVendorIdentifier:()=>W,BooleanEntitlement:()=>a.BooleanEntitlement,BooleanEntitlementFallback:()=>a.BooleanEntitlementFallback,BooleanEntitlementOptions:()=>a.BooleanEntitlementOptions,CREDIT_DEFAULT_FALLBACK_ENTITLEMENT:()=>vh,CancelSubscriptionDocument:()=>ms,CancelSubscriptionUpdatesDocument:()=>Es,ChangeType:()=>Z,ChargeType:()=>Y,CheckoutConfigurationFragmentDoc:()=>_a,CheckoutStateFragmentDoc:()=>Ta,ClientConfiguration:()=>o.ClientConfiguration,ConditionOperation:()=>K,ConsumeCreditsAsyncDocument:()=>Ts,ConsumeCreditsDocument:()=>Ss,ContractState:()=>J,ContractType:()=>X,CouponFragmentDoc:()=>So,CouponSortFields:()=>ee,CouponSource:()=>te,CouponStatus:()=>ne,CouponType:()=>re,CreateCouponDocument:()=>Vs,CreatePaymentSessionDocument:()=>Ls,CreateSubscriptionDocument:()=>Ps,CreditBalanceFragmentDoc:()=>za,CreditBalanceUpdatedPayloadFragmentDoc:()=>aa,CreditCadence:()=>ie,CreditConsumptionResponseFragmentDoc:()=>qa,CreditEntitlement:()=>a.CreditEntitlement,CreditEntitlementFallback:()=>a.CreditEntitlementFallback,CreditEntitlementFragmentDoc:()=>fa,CreditEntitlementOptions:()=>a.CreditEntitlementOptions,CreditGrantCadence:()=>oe,CreditGrantFragmentDoc:()=>Qa,CreditGrantInvoiceBillingReason:()=>ae,CreditGrantInvoiceFragmentDoc:()=>$a,CreditGrantInvoiceStatus:()=>se,CreditGrantSourceType:()=>ue,CreditGrantStatus:()=>ce,CreditGrantType:()=>le,CreditGrantTypeInput:()=>pe,CreditLedgerEventType:()=>de,CreditLedgerFragmentDoc:()=>Ha,CreditUsageFragmentDoc:()=>Ja,CreditUsageTimeRange:()=>fe,CreditsBalanceSummaryFragmentDoc:()=>Wa,Currency:()=>he,CustomCurrencyStatus:()=>me,CustomerEntitlementsResult:()=>a.CustomerEntitlementsResult,CustomerEntitlementsResultV2:()=>a.CustomerEntitlementsResultV2,CustomerFragmentDoc:()=>Co,CustomerModel:()=>Fh,CustomerPortalBillingInformationFragmentDoc:()=>ga,CustomerPortalConfigurationFragmentDoc:()=>ba,CustomerPortalEntitlementFragmentDoc:()=>pa,CustomerPortalFragmentDoc:()=>Ea,CustomerPortalPromotionalEntitlementFragmentDoc:()=>ma,CustomerPortalSubscriptionAddonFragmentDoc:()=>ua,CustomerPortalSubscriptionFragmentDoc:()=>la,CustomerPortalSubscriptionPriceFragmentDoc:()=>sa,CustomerPortalSubscriptionScheduledUpdateDataFragmentDoc:()=>ca,CustomerResourceFragmentDoc:()=>Po,CustomerResourceSortFields:()=>ge,CustomerSortFields:()=>ye,CustomerStatisticsFragmentDoc:()=>zo,CustomerSubscriptionSortFields:()=>ve,CustomerWithSubscriptionsFragmentDoc:()=>Ho,DataExportJobStatus:()=>be,DataExportSourceType:()=>Ee,DelegateSubscriptionToCustomerDocument:()=>Rs,Department:()=>_e,DetachCustomerPaymentMethodDocument:()=>us,DiscountDurationType:()=>Ie,DiscountType:()=>Se,ENUM_DEFAULT_FALLBACK_ENTITLEMENT:()=>yh,Entitlement:()=>a.Entitlement,EntitlementBehavior:()=>Te,EntitlementFragmentDoc:()=>ta,EntitlementReferenceFragmentDoc:()=>ts,EntitlementResetPeriod:()=>Ce,EntitlementType:()=>we,EntitlementUnionFragmentDoc:()=>ha,EntitlementUsageUpdatedFragmentDoc:()=>ia,EntitlementV2:()=>a.EntitlementV2,EntitlementsFallback:()=>a.EntitlementsFallback,EntitlementsStateAccessDeniedReason:()=>Pe,EntitlementsUpdatedPayloadFragmentDoc:()=>na,EntitlementsUpdatedV2PayloadFragmentDoc:()=>es,EntitySelectionMode:()=>De,EnumEntitlement:()=>a.EnumEntitlement,EnumEntitlementFallback:()=>a.EnumEntitlementFallback,EnumEntitlementOptions:()=>a.EnumEntitlementOptions,EnvironmentAccessRole:()=>Ae,EnvironmentExportState:()=>Oe,EnvironmentProvisionStatus:()=>Ne,EnvironmentSortFields:()=>Re,EnvironmentType:()=>Fe,ErrorCode:()=>ke,EstimateSubscriptionDocument:()=>gs,EstimateSubscriptionUpdateDocument:()=>ys,EventActor:()=>xe,EventEntityType:()=>Ue,EventLogSortFields:()=>Me,EventLogType:()=>Le,EventQueueProvisioningStatus:()=>je,ExperimentGroupType:()=>vn,ExperimentSortFields:()=>Ve,ExperimentStatus:()=>Be,FeatureEntitlementFragmentDoc:()=>da,FeatureFragmentDoc:()=>ea,FeatureGroupSortFields:()=>Ge,FeatureGroupStatus:()=>qe,FeatureSortFields:()=>$e,FeatureStatus:()=>Qe,FeatureType:()=>He,FontVariantFragmentDoc:()=>ya,FontWeight:()=>ze,GetActiveSubscriptionsDocument:()=>$s,GetActiveSubscriptionsListDocument:()=>Qs,GetAutomaticRechargeConfigurationDocument:()=>pu,GetCheckoutStateDocument:()=>ru,GetCouponsDocument:()=>Ws,GetCreditBalanceDocument:()=>su,GetCreditGrantsDocument:()=>uu,GetCreditLedgerDocument:()=>cu,GetCreditUsageDocument:()=>lu,GetCustomerByIdDocument:()=>Gs,GetCustomerPortalByRefIdDocument:()=>nu,GetCustomerStatisticsDocument:()=>qs,GetEntitlementDocument:()=>Js,GetEntitlementV2Document:()=>Xs,GetEntitlementsDocument:()=>Ys,GetEntitlementsStateDocument:()=>Ks,GetMockPaywallDocument:()=>iu,GetPaywallDocument:()=>Zs,GetProductsDocument:()=>eu,GetSdkConfigurationDocument:()=>tu,GetSubscriptionDocument:()=>zs,GetSubscriptionsDocument:()=>Hs,GetUsageHistoryDocument:()=>ou,GetUsageHistoryV2Document:()=>au,GrantCreditsDocument:()=>ks,GrantExpirationPeriod:()=>We,GrantPromotionalEntitlementsDocument:()=>cs,GrantPromotionalEntitlementsGroupDocument:()=>xs,HookSortFields:()=>Ze,HookStatus:()=>Ye,ImmediateSubscriptionPreviewInvoiceFragmentDoc:()=>Zo,ImportCustomerBulkDocument:()=>os,ImportCustomerDocument:()=>as,ImportIntegrationTaskSortFields:()=>Ke,ImportSubscriptionsBulkDocument:()=>fs,IntegrationSortFields:()=>Je,InvoiceLineItemType:()=>Xe,LayoutConfigurationFragmentDoc:()=>Ra,LogConfiguration:()=>i.LogConfiguration,LogLevel:()=>wu,Logger:()=>i.Logger,METERED_DEFAULT_FALLBACK_ENTITLEMENT:()=>gh,MemberSortFields:()=>et,MemberStatus:()=>tt,MergeApplyState:()=>nt,MeterType:()=>rt,MeteredEntitlement:()=>a.MeteredEntitlement,MeteredEntitlementFallback:()=>a.MeteredEntitlementFallback,MeteredEntitlementOptions:()=>a.MeteredEntitlementOptions,MigrateSubscriptionToLatestDocument:()=>Ds,MockPaywallAddonDependencyFragmentDoc:()=>Pa,MockPaywallAddonFragmentDoc:()=>Da,MockPaywallPackageEntitlementFragmentDoc:()=>Ca,MockPaywallPlanCompatiblePackageGroupsFragmentDoc:()=>Aa,MockPaywallPlanFragmentDoc:()=>Oa,MockPaywallPriceFragmentDoc:()=>wa,MonthlyAccordingTo:()=>it,NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT:()=>mh,NumericEntitlement:()=>a.NumericEntitlement,NumericEntitlementFallback:()=>a.NumericEntitlementFallback,NumericEntitlementOptions:()=>a.NumericEntitlementOptions,OfferSortFields:()=>ot,OfferStatus:()=>at,OfflineStigg:()=>lb,OnCreditBalanceUpdatedDocument:()=>yu,OnEntitlementsUpdatedDocument:()=>du,OnEntitlementsUpdatedV2Document:()=>fu,OnPackagePublishedDocument:()=>gu,OnUsageUpdatedDocument:()=>hu,OnUsageUpdatedV2Document:()=>mu,OverageBillingPeriod:()=>st,OveragePriceFragmentDoc:()=>Uo,PackageCreditEntitlementFragmentDoc:()=>ko,PackageDtoSortFields:()=>ut,PackageEntitlementFragmentDoc:()=>Ro,PackageEntitlementSortFields:()=>ct,PackageEntitlementUnionFragmentDoc:()=>xo,PackageFeatureEntitlementFragmentDoc:()=>Fo,PackageGroupSortFields:()=>lt,PackageGroupStatus:()=>pt,PackagePublishedPayloadFragmentDoc:()=>oa,PackageStatus:()=>dt,PageInfoFragmentDoc:()=>Ka,PaymentCollection:()=>ft,PaymentCollectionMethod:()=>ht,PaymentMethodType:()=>mt,PaymentSessionFragmentDoc:()=>Za,PaywallCalculatedPricePointsFragmentDoc:()=>ka,PaywallConfigurationFragmentDoc:()=>Fa,PaywallCurrencyFragmentDoc:()=>Na,PaywallFragmentDoc:()=>xa,PlanChangeType:()=>gt,PlanCompatiblePackageGroupsFragmentDoc:()=>jo,PlanFragmentDoc:()=>Vo,PlanSortFields:()=>yt,PreviewNextInvoiceDocument:()=>bs,PreviewSubscriptionDocument:()=>vs,PriceFragmentDoc:()=>Ao,PriceSortFields:()=>vt,PriceTierFragmentDoc:()=>Do,PricingType:()=>bt,ProductFragmentDoc:()=>No,ProductSortFields:()=>Et,ProductStatus:()=>_t,PromotionalEntitlementFragmentDoc:()=>To,PromotionalEntitlementPeriod:()=>It,PromotionalEntitlementSortFields:()=>St,PromotionalEntitlementStatus:()=>Tt,ProrationBehavior:()=>Ct,ProvisionCustomerDocument:()=>is,ProvisionCustomerFragmentDoc:()=>ja,ProvisionSubscriptionDocument:()=>ps,ProvisionSubscriptionFragmentDoc:()=>Ba,ProvisionSubscriptionStatus:()=>wt,PublishMigrationType:()=>Pt,ReportEntitlementCheckRequestedDocument:()=>ws,ReportEventDocument:()=>Cs,ReportUsageBulkDocument:()=>Is,ReportUsageDocument:()=>_s,ReportUsageFragmentDoc:()=>Ga,ResetPeriodConfigurationFragmentDoc:()=>Xo,RevokePromotionalEntitlementDocument:()=>ls,RevokePromotionalEntitlementsGroupDocument:()=>Us,SaveAutomaticRechargeConfigurationDocument:()=>Bs,ScheduleStrategy:()=>Dt,ScheduleVariablesFragmentDoc:()=>Bo,SlimCustomCurrencyFragmentDoc:()=>Ya,SlimCustomerFragmentDoc:()=>Io,SlimSubscriptionFragmentDoc:()=>La,SlimSubscriptionFragmentV2FragmentDoc:()=>_o,SortDirection:()=>At,SortNulls:()=>Ot,SourceType:()=>Nt,Stigg:()=>ob,StiggClient:()=>c.StiggClient,StiggManagement:()=>_u,StripeAccountMode:()=>Rt,StripeAccountSource:()=>Ft,StripeCheckoutCredentialsFragmentDoc:()=>Ia,SubscriptionAddonSortFields:()=>kt,SubscriptionBillingCycleAnchor:()=>xt,SubscriptionCancelReason:()=>Ut,SubscriptionCancellationAction:()=>Mt,SubscriptionCancellationTime:()=>Lt,SubscriptionCouponStatus:()=>jt,SubscriptionDecisionStrategy:()=>Vt,SubscriptionEndSetup:()=>Bt,SubscriptionEntitlementSortFields:()=>Gt,SubscriptionFragmentDoc:()=>Qo,SubscriptionFutureUpdateDataFragmentDoc:()=>qo,SubscriptionInvoiceBillingReason:()=>qt,SubscriptionInvoiceFragmentDoc:()=>wo,SubscriptionInvoicePreviewFragmentDoc:()=>Jo,SubscriptionInvoiceStatus:()=>$t,SubscriptionMigrationTaskSortFields:()=>Qt,SubscriptionMigrationTime:()=>Ht,SubscriptionPreviewFragmentDoc:()=>Wo,SubscriptionPreviewInvoiceFragmentDoc:()=>Yo,SubscriptionPreviewV2FragmentDoc:()=>Ko,SubscriptionPriceSortFields:()=>zt,SubscriptionProrationBehavior:()=>Wt,SubscriptionQueryFragmentDoc:()=>Eo,SubscriptionQuerySortFields:()=>Zt,SubscriptionScheduleStatus:()=>Yt,SubscriptionScheduleType:()=>Kt,SubscriptionScheduledUpdateDataFragmentDoc:()=>Go,SubscriptionStartSetup:()=>Jt,SubscriptionStatus:()=>Xt,SubscriptionTrialConfigurationFragmentDoc:()=>$o,SubscriptionUpdateUsageCutoffBehavior:()=>en,SyncStatus:()=>tn,TaskStatus:()=>nn,TaskType:()=>rn,ThresholdType:()=>on,TiersMode:()=>an,TotalPriceFragmentDoc:()=>Oo,TransferSubscriptionDocument:()=>Ns,TransferSubscriptionToResourceDocument:()=>Fs,TrialEndBehavior:()=>sn,TrialPeriodUnits:()=>un,Types:()=>r,TypographyConfigurationFragmentDoc:()=>va,UnarchiveCustomerDocument:()=>Os,UnitTransformationRound:()=>cn,UnlinkPromotionalEntitlementsGroupDocument:()=>Ms,UpdateCustomerDocument:()=>ss,UpdateSubscriptionDocument:()=>hs,UsageHistoryFragmentDoc:()=>Ua,UsageHistoryV2FragmentDoc:()=>Ma,UsageMarkerType:()=>ln,UsageMeasurementSortFields:()=>pn,UsageUpdateBehavior:()=>dn,UsageUpdatedFragmentDoc:()=>ra,UsageUpdatedV2PayloadFragmentDoc:()=>rs,UsageV2FragmentDoc:()=>ns,VendorIdentifier:()=>fn,VendorType:()=>hn,VoidCreditGrantDocument:()=>js,WeeklyAccordingTo:()=>mn,WidgetType:()=>gn,YearlyAccordingTo:()=>yn,ZuoraCheckoutCredentialsFragmentDoc:()=>Sa,default:()=>db,getSdk:()=>bu,isCreditEntitlementFragment:()=>Su,isCreditEntitlementWithSummary:()=>Cu,isFeatureEntitlementFragment:()=>Iu,isFeatureEntitlementWithSummary:()=>Tu});var r={};n.r(r),n.d(r,{AccessDeniedReason:()=>R,AccountAccessMethod:()=>F,AccountAccessRole:()=>k,AccountStatus:()=>x,AddonDependencyFragmentDoc:()=>Mo,AddonFragmentDoc:()=>Lo,AddonSortFields:()=>U,AggregationFunction:()=>M,Alignment:()=>L,ApiKeyScopeAction:()=>j,ApiKeyScopeResource:()=>V,ApiKeySortFields:()=>B,ApiKeyType:()=>G,ApplySubscriptionDocument:()=>ds,ApplySubscriptionFragmentDoc:()=>Va,ArchiveCustomerDocument:()=>As,Auth0ApplicationType:()=>q,AutoRechargeSettingsFragmentDoc:()=>Xa,BillingAnchor:()=>$,BillingCadence:()=>Q,BillingModel:()=>H,BillingPeriod:()=>z,BillingVendorIdentifier:()=>W,CancelSubscriptionDocument:()=>ms,CancelSubscriptionUpdatesDocument:()=>Es,ChangeType:()=>Z,ChargeType:()=>Y,CheckoutConfigurationFragmentDoc:()=>_a,CheckoutStateFragmentDoc:()=>Ta,ConditionOperation:()=>K,ConsumeCreditsAsyncDocument:()=>Ts,ConsumeCreditsDocument:()=>Ss,ContractState:()=>J,ContractType:()=>X,CouponFragmentDoc:()=>So,CouponSortFields:()=>ee,CouponSource:()=>te,CouponStatus:()=>ne,CouponType:()=>re,CreateCouponDocument:()=>Vs,CreatePaymentSessionDocument:()=>Ls,CreateSubscriptionDocument:()=>Ps,CreditBalanceFragmentDoc:()=>za,CreditBalanceUpdatedPayloadFragmentDoc:()=>aa,CreditCadence:()=>ie,CreditConsumptionResponseFragmentDoc:()=>qa,CreditEntitlementFragmentDoc:()=>fa,CreditGrantCadence:()=>oe,CreditGrantFragmentDoc:()=>Qa,CreditGrantInvoiceBillingReason:()=>ae,CreditGrantInvoiceFragmentDoc:()=>$a,CreditGrantInvoiceStatus:()=>se,CreditGrantSourceType:()=>ue,CreditGrantStatus:()=>ce,CreditGrantType:()=>le,CreditGrantTypeInput:()=>pe,CreditLedgerEventType:()=>de,CreditLedgerFragmentDoc:()=>Ha,CreditUsageFragmentDoc:()=>Ja,CreditUsageTimeRange:()=>fe,CreditsBalanceSummaryFragmentDoc:()=>Wa,Currency:()=>he,CustomCurrencyStatus:()=>me,CustomerFragmentDoc:()=>Co,CustomerPortalBillingInformationFragmentDoc:()=>ga,CustomerPortalConfigurationFragmentDoc:()=>ba,CustomerPortalEntitlementFragmentDoc:()=>pa,CustomerPortalFragmentDoc:()=>Ea,CustomerPortalPromotionalEntitlementFragmentDoc:()=>ma,CustomerPortalSubscriptionAddonFragmentDoc:()=>ua,CustomerPortalSubscriptionFragmentDoc:()=>la,CustomerPortalSubscriptionPriceFragmentDoc:()=>sa,CustomerPortalSubscriptionScheduledUpdateDataFragmentDoc:()=>ca,CustomerResourceFragmentDoc:()=>Po,CustomerResourceSortFields:()=>ge,CustomerSortFields:()=>ye,CustomerStatisticsFragmentDoc:()=>zo,CustomerSubscriptionSortFields:()=>ve,CustomerWithSubscriptionsFragmentDoc:()=>Ho,DataExportJobStatus:()=>be,DataExportSourceType:()=>Ee,DelegateSubscriptionToCustomerDocument:()=>Rs,Department:()=>_e,DetachCustomerPaymentMethodDocument:()=>us,DiscountDurationType:()=>Ie,DiscountType:()=>Se,EntitlementBehavior:()=>Te,EntitlementFragmentDoc:()=>ta,EntitlementReferenceFragmentDoc:()=>ts,EntitlementResetPeriod:()=>Ce,EntitlementType:()=>we,EntitlementUnionFragmentDoc:()=>ha,EntitlementUsageUpdatedFragmentDoc:()=>ia,EntitlementsStateAccessDeniedReason:()=>Pe,EntitlementsUpdatedPayloadFragmentDoc:()=>na,EntitlementsUpdatedV2PayloadFragmentDoc:()=>es,EntitySelectionMode:()=>De,EnvironmentAccessRole:()=>Ae,EnvironmentExportState:()=>Oe,EnvironmentProvisionStatus:()=>Ne,EnvironmentSortFields:()=>Re,EnvironmentType:()=>Fe,ErrorCode:()=>ke,EstimateSubscriptionDocument:()=>gs,EstimateSubscriptionUpdateDocument:()=>ys,EventActor:()=>xe,EventEntityType:()=>Ue,EventLogSortFields:()=>Me,EventLogType:()=>Le,EventQueueProvisioningStatus:()=>je,ExperimentGroupType:()=>vn,ExperimentSortFields:()=>Ve,ExperimentStatus:()=>Be,FeatureEntitlementFragmentDoc:()=>da,FeatureFragmentDoc:()=>ea,FeatureGroupSortFields:()=>Ge,FeatureGroupStatus:()=>qe,FeatureSortFields:()=>$e,FeatureStatus:()=>Qe,FeatureType:()=>He,FontVariantFragmentDoc:()=>ya,FontWeight:()=>ze,GetActiveSubscriptionsDocument:()=>$s,GetActiveSubscriptionsListDocument:()=>Qs,GetAutomaticRechargeConfigurationDocument:()=>pu,GetCheckoutStateDocument:()=>ru,GetCouponsDocument:()=>Ws,GetCreditBalanceDocument:()=>su,GetCreditGrantsDocument:()=>uu,GetCreditLedgerDocument:()=>cu,GetCreditUsageDocument:()=>lu,GetCustomerByIdDocument:()=>Gs,GetCustomerPortalByRefIdDocument:()=>nu,GetCustomerStatisticsDocument:()=>qs,GetEntitlementDocument:()=>Js,GetEntitlementV2Document:()=>Xs,GetEntitlementsDocument:()=>Ys,GetEntitlementsStateDocument:()=>Ks,GetMockPaywallDocument:()=>iu,GetPaywallDocument:()=>Zs,GetProductsDocument:()=>eu,GetSdkConfigurationDocument:()=>tu,GetSubscriptionDocument:()=>zs,GetSubscriptionsDocument:()=>Hs,GetUsageHistoryDocument:()=>ou,GetUsageHistoryV2Document:()=>au,GrantCreditsDocument:()=>ks,GrantExpirationPeriod:()=>We,GrantPromotionalEntitlementsDocument:()=>cs,GrantPromotionalEntitlementsGroupDocument:()=>xs,HookSortFields:()=>Ze,HookStatus:()=>Ye,ImmediateSubscriptionPreviewInvoiceFragmentDoc:()=>Zo,ImportCustomerBulkDocument:()=>os,ImportCustomerDocument:()=>as,ImportIntegrationTaskSortFields:()=>Ke,ImportSubscriptionsBulkDocument:()=>fs,IntegrationSortFields:()=>Je,InvoiceLineItemType:()=>Xe,LayoutConfigurationFragmentDoc:()=>Ra,MemberSortFields:()=>et,MemberStatus:()=>tt,MergeApplyState:()=>nt,MeterType:()=>rt,MigrateSubscriptionToLatestDocument:()=>Ds,MockPaywallAddonDependencyFragmentDoc:()=>Pa,MockPaywallAddonFragmentDoc:()=>Da,MockPaywallPackageEntitlementFragmentDoc:()=>Ca,MockPaywallPlanCompatiblePackageGroupsFragmentDoc:()=>Aa,MockPaywallPlanFragmentDoc:()=>Oa,MockPaywallPriceFragmentDoc:()=>wa,MonthlyAccordingTo:()=>it,OfferSortFields:()=>ot,OfferStatus:()=>at,OnCreditBalanceUpdatedDocument:()=>yu,OnEntitlementsUpdatedDocument:()=>du,OnEntitlementsUpdatedV2Document:()=>fu,OnPackagePublishedDocument:()=>gu,OnUsageUpdatedDocument:()=>hu,OnUsageUpdatedV2Document:()=>mu,OverageBillingPeriod:()=>st,OveragePriceFragmentDoc:()=>Uo,PackageCreditEntitlementFragmentDoc:()=>ko,PackageDtoSortFields:()=>ut,PackageEntitlementFragmentDoc:()=>Ro,PackageEntitlementSortFields:()=>ct,PackageEntitlementUnionFragmentDoc:()=>xo,PackageFeatureEntitlementFragmentDoc:()=>Fo,PackageGroupSortFields:()=>lt,PackageGroupStatus:()=>pt,PackagePublishedPayloadFragmentDoc:()=>oa,PackageStatus:()=>dt,PageInfoFragmentDoc:()=>Ka,PaymentCollection:()=>ft,PaymentCollectionMethod:()=>ht,PaymentMethodType:()=>mt,PaymentSessionFragmentDoc:()=>Za,PaywallCalculatedPricePointsFragmentDoc:()=>ka,PaywallConfigurationFragmentDoc:()=>Fa,PaywallCurrencyFragmentDoc:()=>Na,PaywallFragmentDoc:()=>xa,PlanChangeType:()=>gt,PlanCompatiblePackageGroupsFragmentDoc:()=>jo,PlanFragmentDoc:()=>Vo,PlanSortFields:()=>yt,PreviewNextInvoiceDocument:()=>bs,PreviewSubscriptionDocument:()=>vs,PriceFragmentDoc:()=>Ao,PriceSortFields:()=>vt,PriceTierFragmentDoc:()=>Do,PricingType:()=>bt,ProductFragmentDoc:()=>No,ProductSortFields:()=>Et,ProductStatus:()=>_t,PromotionalEntitlementFragmentDoc:()=>To,PromotionalEntitlementPeriod:()=>It,PromotionalEntitlementSortFields:()=>St,PromotionalEntitlementStatus:()=>Tt,ProrationBehavior:()=>Ct,ProvisionCustomerDocument:()=>is,ProvisionCustomerFragmentDoc:()=>ja,ProvisionSubscriptionDocument:()=>ps,ProvisionSubscriptionFragmentDoc:()=>Ba,ProvisionSubscriptionStatus:()=>wt,PublishMigrationType:()=>Pt,ReportEntitlementCheckRequestedDocument:()=>ws,ReportEventDocument:()=>Cs,ReportUsageBulkDocument:()=>Is,ReportUsageDocument:()=>_s,ReportUsageFragmentDoc:()=>Ga,ResetPeriodConfigurationFragmentDoc:()=>Xo,RevokePromotionalEntitlementDocument:()=>ls,RevokePromotionalEntitlementsGroupDocument:()=>Us,SaveAutomaticRechargeConfigurationDocument:()=>Bs,ScheduleStrategy:()=>Dt,ScheduleVariablesFragmentDoc:()=>Bo,SlimCustomCurrencyFragmentDoc:()=>Ya,SlimCustomerFragmentDoc:()=>Io,SlimSubscriptionFragmentDoc:()=>La,SlimSubscriptionFragmentV2FragmentDoc:()=>_o,SortDirection:()=>At,SortNulls:()=>Ot,SourceType:()=>Nt,StripeAccountMode:()=>Rt,StripeAccountSource:()=>Ft,StripeCheckoutCredentialsFragmentDoc:()=>Ia,SubscriptionAddonSortFields:()=>kt,SubscriptionBillingCycleAnchor:()=>xt,SubscriptionCancelReason:()=>Ut,SubscriptionCancellationAction:()=>Mt,SubscriptionCancellationTime:()=>Lt,SubscriptionCouponStatus:()=>jt,SubscriptionDecisionStrategy:()=>Vt,SubscriptionEndSetup:()=>Bt,SubscriptionEntitlementSortFields:()=>Gt,SubscriptionFragmentDoc:()=>Qo,SubscriptionFutureUpdateDataFragmentDoc:()=>qo,SubscriptionInvoiceBillingReason:()=>qt,SubscriptionInvoiceFragmentDoc:()=>wo,SubscriptionInvoicePreviewFragmentDoc:()=>Jo,SubscriptionInvoiceStatus:()=>$t,SubscriptionMigrationTaskSortFields:()=>Qt,SubscriptionMigrationTime:()=>Ht,SubscriptionPreviewFragmentDoc:()=>Wo,SubscriptionPreviewInvoiceFragmentDoc:()=>Yo,SubscriptionPreviewV2FragmentDoc:()=>Ko,SubscriptionPriceSortFields:()=>zt,SubscriptionProrationBehavior:()=>Wt,SubscriptionQueryFragmentDoc:()=>Eo,SubscriptionQuerySortFields:()=>Zt,SubscriptionScheduleStatus:()=>Yt,SubscriptionScheduleType:()=>Kt,SubscriptionScheduledUpdateDataFragmentDoc:()=>Go,SubscriptionStartSetup:()=>Jt,SubscriptionStatus:()=>Xt,SubscriptionTrialConfigurationFragmentDoc:()=>$o,SubscriptionUpdateUsageCutoffBehavior:()=>en,SyncStatus:()=>tn,TaskStatus:()=>nn,TaskType:()=>rn,ThresholdType:()=>on,TiersMode:()=>an,TotalPriceFragmentDoc:()=>Oo,TransferSubscriptionDocument:()=>Ns,TransferSubscriptionToResourceDocument:()=>Fs,TrialEndBehavior:()=>sn,TrialPeriodUnits:()=>un,TypographyConfigurationFragmentDoc:()=>va,UnarchiveCustomerDocument:()=>Os,UnitTransformationRound:()=>cn,UnlinkPromotionalEntitlementsGroupDocument:()=>Ms,UpdateCustomerDocument:()=>ss,UpdateSubscriptionDocument:()=>hs,UsageHistoryFragmentDoc:()=>Ua,UsageHistoryV2FragmentDoc:()=>Ma,UsageMarkerType:()=>ln,UsageMeasurementSortFields:()=>pn,UsageUpdateBehavior:()=>dn,UsageUpdatedFragmentDoc:()=>ra,UsageUpdatedV2PayloadFragmentDoc:()=>rs,UsageV2FragmentDoc:()=>ns,VendorIdentifier:()=>fn,VendorType:()=>hn,VoidCreditGrantDocument:()=>js,WeeklyAccordingTo:()=>mn,WidgetType:()=>gn,YearlyAccordingTo:()=>yn,ZuoraCheckoutCredentialsFragmentDoc:()=>Sa,getSdk:()=>bu});var i={};n.r(i),n.d(i,{i:()=>wu,m:()=>Au});var o={};n.r(o),n.d(o,{jJ:()=>Nu,Hk:()=>Ou,dt:()=>Mu,P_:()=>xu,OK:()=>ku});var a={};n.r(a),n.d(a,{uiS:()=>Rh,sZY:()=>hh,sf5:()=>vh,RCf:()=>yh,zVU:()=>Dh,VsH:()=>gh,ctk:()=>mh,qCH:()=>Ah,$X:()=>Nh});var s={};n.r(s),n.d(s,{FunctionToString:()=>Ng,InboundFilters:()=>xg,LinkedErrors:()=>qg});var u={};n.r(u),n.d(u,{Breadcrumbs:()=>Wy,Dedupe:()=>ev,GlobalHandlers:()=>hy,HttpContext:()=>Jy,LinkedErrors:()=>Yy,TryCatch:()=>Ey});var c={};n.r(c),n.d(c,{F:()=>ob});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=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},En=function(){return En=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},En.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.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"}(xe||(xe={})),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"}(Ue||(Ue={})),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"}(Me||(Me={})),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"}(Le||(Le={})),function(e){e.Active="ACTIVE",e.Deprovisioning="DEPROVISIONING",e.Failed="FAILED",e.Provisioning="PROVISIONING"}(je||(je={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Name="name",e.ProductId="productId",e.RefId="refId",e.Status="status"}(Ve||(Ve={})),function(e){e.Completed="COMPLETED",e.Draft="DRAFT",e.InProgress="IN_PROGRESS"}(Be||(Be={})),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"}(Ge||(Ge={})),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"}($e||($e={})),function(e){e.Active="ACTIVE",e.New="NEW",e.Suspended="SUSPENDED"}(Qe||(Qe={})),function(e){e.Boolean="BOOLEAN",e.Enum="ENUM",e.Number="NUMBER"}(He||(He={})),function(e){e.Bold="BOLD",e.Normal="NORMAL"}(ze||(ze={})),function(e){e.OneMonth="OneMonth",e.OneYear="OneYear"}(We||(We={})),function(e){e.CreatedAt="createdAt",e.Endpoint="endpoint",e.EnvironmentId="environmentId",e.Id="id",e.Status="status"}(Ze||(Ze={})),function(e){e.Active="ACTIVE",e.Inactive="INACTIVE"}(Ye||(Ye={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.TaskType="taskType"}(Ke||(Ke={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.VendorIdentifier="vendorIdentifier",e.VendorType="vendorType"}(Je||(Je={})),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"}(Xe||(Xe={})),function(e){e.CreatedAt="createdAt",e.Email="email",e.Id="id"}(et||(et={})),function(e){e.Invited="INVITED",e.Registered="REGISTERED"}(tt||(tt={})),function(e){e.Completed="COMPLETED",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.Pending="PENDING"}(nt||(nt={})),function(e){e.Fluctuating="Fluctuating",e.Incremental="Incremental",e.None="None"}(rt||(rt={})),function(e){e.StartOfTheMonth="StartOfTheMonth",e.SubscriptionStart="SubscriptionStart"}(it||(it={})),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"}(ot||(ot={})),function(e){e.Archived="ARCHIVED",e.Draft="DRAFT",e.Published="PUBLISHED"}(at||(at={})),function(e){e.Monthly="MONTHLY",e.OnSubscriptionRenewal="ON_SUBSCRIPTION_RENEWAL"}(st||(st={})),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"}(ut||(ut={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.PackageId="packageId",e.UpdatedAt="updatedAt"}(ct||(ct={})),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"}(lt||(lt={})),function(e){e.Archived="ARCHIVED",e.Draft="DRAFT",e.Published="PUBLISHED"}(pt||(pt={})),function(e){e.Archived="ARCHIVED",e.Draft="DRAFT",e.Published="PUBLISHED"}(dt||(dt={})),function(e){e.ActionRequired="ACTION_REQUIRED",e.Failed="FAILED",e.NotRequired="NOT_REQUIRED",e.Processing="PROCESSING"}(ft||(ft={})),function(e){e.Charge="CHARGE",e.Invoice="INVOICE",e.None="NONE"}(ht||(ht={})),function(e){e.Bank="BANK",e.Card="CARD",e.CashApp="CASH_APP"}(mt||(mt={})),function(e){e.Downgrade="DOWNGRADE",e.None="NONE",e.Upgrade="UPGRADE"}(gt||(gt={})),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"}(yt||(yt={})),function(e){e.BillingCadence="billingCadence",e.BillingId="billingId",e.BillingModel="billingModel",e.BillingPeriod="billingPeriod",e.CreatedAt="createdAt",e.Id="id",e.TiersMode="tiersMode"}(vt||(vt={})),function(e){e.Custom="CUSTOM",e.Free="FREE",e.Paid="PAID"}(bt||(bt={})),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"}(Et||(Et={})),function(e){e.Archived="ARCHIVED",e.Published="PUBLISHED"}(_t||(_t={})),function(e){e.Custom="CUSTOM",e.Lifetime="LIFETIME",e.OneMonth="ONE_MONTH",e.OneWeek="ONE_WEEK",e.OneYear="ONE_YEAR",e.SixMonth="SIX_MONTH"}(It||(It={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.UpdatedAt="updatedAt"}(St||(St={})),function(e){e.Active="Active",e.Expired="Expired",e.Paused="Paused"}(Tt||(Tt={})),function(e){e.CreateProrations="CREATE_PRORATIONS",e.InvoiceImmediately="INVOICE_IMMEDIATELY"}(Ct||(Ct={})),function(e){e.PaymentRequired="PAYMENT_REQUIRED",e.Success="SUCCESS"}(wt||(wt={})),function(e){e.AllCustomers="ALL_CUSTOMERS",e.NewCustomers="NEW_CUSTOMERS"}(Pt||(Pt={})),function(e){e.EndOfBillingMonth="END_OF_BILLING_MONTH",e.EndOfBillingPeriod="END_OF_BILLING_PERIOD",e.Immediate="IMMEDIATE"}(Dt||(Dt={})),function(e){e.Asc="ASC",e.Desc="DESC"}(At||(At={})),function(e){e.NullsFirst="NULLS_FIRST",e.NullsLast="NULLS_LAST"}(Ot||(Ot={})),function(e){e.JsClientSdk="JS_CLIENT_SDK",e.NodeServerSdk="NODE_SERVER_SDK",e.PersistentCacheService="PERSISTENT_CACHE_SERVICE"}(Nt||(Nt={})),function(e){e.Live="LIVE",e.Sandbox="SANDBOX",e.Test="TEST"}(Rt||(Rt={})),function(e){e.App="APP",e.Connect="CONNECT"}(Ft||(Ft={})),function(e){e.CreatedAt="createdAt",e.Id="id",e.Quantity="quantity",e.UpdatedAt="updatedAt"}(kt||(kt={})),function(e){e.Now="NOW",e.Unchanged="UNCHANGED"}(xt||(xt={})),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"}(Ut||(Ut={})),function(e){e.Default="DEFAULT",e.RevokeEntitlements="REVOKE_ENTITLEMENTS"}(Mt||(Mt={})),function(e){e.EndOfBillingPeriod="END_OF_BILLING_PERIOD",e.Immediate="IMMEDIATE",e.SpecificDate="SPECIFIC_DATE"}(Lt||(Lt={})),function(e){e.Active="ACTIVE",e.Expired="EXPIRED",e.Removed="REMOVED"}(jt||(jt={})),function(e){e.PredefinedFreePlan="PREDEFINED_FREE_PLAN",e.PredefinedTrialPlan="PREDEFINED_TRIAL_PLAN",e.RequestedPlan="REQUESTED_PLAN",e.SkippedSubscriptionCreation="SKIPPED_SUBSCRIPTION_CREATION"}(Vt||(Vt={})),function(e){e.CancelSubscription="CANCEL_SUBSCRIPTION",e.DowngradeToFree="DOWNGRADE_TO_FREE"}(Bt||(Bt={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.SubscriptionId="subscriptionId",e.UpdatedAt="updatedAt"}(Gt||(Gt={})),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"}($t||($t={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.TaskType="taskType"}(Qt||(Qt={})),function(e){e.EndOfBillingPeriod="END_OF_BILLING_PERIOD",e.Immediate="IMMEDIATE"}(Ht||(Ht={})),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"}(Wt||(Wt={})),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"}(Zt||(Zt={})),function(e){e.Canceled="Canceled",e.Done="Done",e.Failed="Failed",e.PendingPayment="PendingPayment",e.Scheduled="Scheduled"}(Yt||(Yt={})),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"}(Kt||(Kt={})),function(e){e.FreePlan="FREE_PLAN",e.PlanSelection="PLAN_SELECTION",e.TrialPeriod="TRIAL_PERIOD"}(Jt||(Jt={})),function(e){e.Active="ACTIVE",e.Canceled="CANCELED",e.Expired="EXPIRED",e.InTrial="IN_TRIAL",e.NotStarted="NOT_STARTED",e.PaymentPending="PAYMENT_PENDING"}(Xt||(Xt={})),function(e){e.AlwaysReset="ALWAYS_RESET",e.BillingPeriodChange="BILLING_PERIOD_CHANGE",e.NeverReset="NEVER_RESET"}(en||(en={})),function(e){e.Error="ERROR",e.NoSyncRequired="NO_SYNC_REQUIRED",e.Pending="PENDING",e.Success="SUCCESS"}(tn||(tn={})),function(e){e.Canceled="CANCELED",e.Completed="COMPLETED",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.PartiallyFailed="PARTIALLY_FAILED",e.Pending="PENDING"}(nn||(nn={})),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"}(rn||(rn={})),function(e){e.CreditAmount="CreditAmount",e.DollarAmount="DollarAmount"}(on||(on={})),function(e){e.Graduated="GRADUATED",e.Volume="VOLUME"}(an||(an={})),function(e){e.CancelSubscription="CANCEL_SUBSCRIPTION",e.ConvertToPaid="CONVERT_TO_PAID"}(sn||(sn={})),function(e){e.Day="DAY",e.Month="MONTH"}(un||(un={})),function(e){e.Down="DOWN",e.Up="UP"}(cn||(cn={})),function(e){e.PeriodicReset="PERIODIC_RESET",e.SubscriptionChangeReset="SUBSCRIPTION_CHANGE_RESET"}(ln||(ln={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id"}(pn||(pn={})),function(e){e.Delta="DELTA",e.Set="SET"}(dn||(dn={})),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"}(fn||(fn={})),function(e){e.Auth="AUTH",e.Billing="BILLING",e.Crm="CRM",e.DataExport="DATA_EXPORT",e.Invoicing="INVOICING",e.Marketplace="MARKETPLACE"}(hn||(hn={})),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"}(mn||(mn={})),function(e){e.Checkout="CHECKOUT",e.CustomerPortal="CUSTOMER_PORTAL",e.Paywall="PAYWALL"}(gn||(gn={})),function(e){e.SubscriptionStart="SubscriptionStart"}(yn||(yn={})),function(e){e.Control="CONTROL",e.Variant="VARIANT"}(vn||(vn={}));var _n,In,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=N(_n||(_n=bn(["\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 "]))),_o=N(In||(In=bn(["\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 "]))),Io=N(Sn||(Sn=bn(["\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 "]))),So=N(Tn||(Tn=bn(["\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 "]))),To=N(Cn||(Cn=bn(["\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 "]))),Co=N(wn||(wn=bn(["\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 "]))),wo=N(Pn||(Pn=bn(["\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 "]))),Po=N(Dn||(Dn=bn(["\n fragment CustomerResourceFragment on CustomerResource {\n resourceId\n}\n "],["\n fragment CustomerResourceFragment on CustomerResource {\n resourceId\n}\n "]))),Do=N(An||(An=bn(["\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 "]))),Ao=N(On||(On=bn(["\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 "]))),Oo=N(Nn||(Nn=bn(["\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 "]))),No=N(Rn||(Rn=bn(["\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 "]))),Ro=N(Fn||(Fn=bn(["\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 "]))),Fo=N(kn||(kn=bn(["\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 "]))),ko=N(xn||(xn=bn(["\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 "]))),xo=N(Un||(Un=bn(["\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 "]))),Uo=N(Mn||(Mn=bn(["\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 "]))),Mo=N(Ln||(Ln=bn(["\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 "]))),Lo=N(jn||(jn=bn(["\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 "]))),jo=N(Vn||(Vn=bn(["\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 "]))),Vo=N(Bn||(Bn=bn(["\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 "]))),Bo=N(Gn||(Gn=bn(["\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 "]))),Go=N(qn||(qn=bn(["\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 "]))),qo=N($n||($n=bn(["\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 "]))),$o=N(Qn||(Qn=bn(["\n fragment SubscriptionTrialConfigurationFragment on TrialConfiguration {\n trialEndBehavior\n}\n "],["\n fragment SubscriptionTrialConfigurationFragment on TrialConfiguration {\n trialEndBehavior\n}\n "]))),Qo=N(Hn||(Hn=bn(["\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 "]))),Ho=N(zn||(zn=bn(["\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 "]))),zo=N(Wn||(Wn=bn(["\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 "]))),Wo=N(Zn||(Zn=bn(["\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 "]))),Zo=N(Yn||(Yn=bn(["\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 "]))),Yo=N(Kn||(Kn=bn(["\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 "]))),Ko=N(Jn||(Jn=bn(["\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 "]))),Jo=N(Xn||(Xn=bn(["\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 "]))),Xo=N(er||(er=bn(["\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 "]))),ea=N(tr||(tr=bn(["\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 "]))),ta=N(nr||(nr=bn(["\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 "]))),na=N(rr||(rr=bn(["\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 "]))),ra=N(ir||(ir=bn(["\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 "]))),ia=N(or||(or=bn(["\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 "]))),oa=N(ar||(ar=bn(["\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 "]))),aa=N(sr||(sr=bn(["\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 "]))),sa=N(ur||(ur=bn(["\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 "]))),ua=N(cr||(cr=bn(["\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 "]))),ca=N(lr||(lr=bn(["\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 "]))),la=N(pr||(pr=bn(["\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 "]))),pa=N(dr||(dr=bn(["\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 "]))),da=N(fr||(fr=bn(["\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 "]))),fa=N(hr||(hr=bn(["\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 "]))),ha=N(mr||(mr=bn(["\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 "]))),ma=N(gr||(gr=bn(["\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 "]))),ga=N(yr||(yr=bn(["\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 "]))),ya=N(vr||(vr=bn(["\n fragment FontVariantFragment on FontVariant {\n fontSize\n fontWeight\n}\n "],["\n fragment FontVariantFragment on FontVariant {\n fontSize\n fontWeight\n}\n "]))),va=N(br||(br=bn(["\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 "]))),ba=N(Er||(Er=bn(["\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 "]))),Ea=N(_r||(_r=bn(["\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 "]))),_a=N(Ir||(Ir=bn(["\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 "]))),Ia=N(Sr||(Sr=bn(["\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 "]))),Sa=N(Tr||(Tr=bn(["\n fragment ZuoraCheckoutCredentialsFragment on ZuoraCheckoutCredentials {\n publishableKey\n}\n "],["\n fragment ZuoraCheckoutCredentialsFragment on ZuoraCheckoutCredentials {\n publishableKey\n}\n "]))),Ta=N(Cr||(Cr=bn(["\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 "]))),Ca=N(wr||(wr=bn(["\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 "]))),wa=N(Pr||(Pr=bn(["\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 "]))),Pa=N(Dr||(Dr=bn(["\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 "]))),Da=N(Ar||(Ar=bn(["\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 "]))),Aa=N(Or||(Or=bn(["\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 "]))),Oa=N(Nr||(Nr=bn(["\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 "]))),Na=N(Rr||(Rr=bn(["\n fragment PaywallCurrencyFragment on PaywallCurrency {\n code\n symbol\n}\n "],["\n fragment PaywallCurrencyFragment on PaywallCurrency {\n code\n symbol\n}\n "]))),Ra=N(Fr||(Fr=bn(["\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 "]))),Fa=N(kr||(kr=bn(["\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 "]))),ka=N(xr||(xr=bn(["\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 "]))),xa=N(Ur||(Ur=bn(["\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 "]))),Ua=N(Mr||(Mr=bn(["\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 "]))),Ma=N(Lr||(Lr=bn(["\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 "]))),La=N(jr||(jr=bn(["\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 "]))),ja=N(Vr||(Vr=bn(["\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 "]))),Va=N(Br||(Br=bn(["\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 "]))),Ba=N(Gr||(Gr=bn(["\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 "]))),Ga=N(qr||(qr=bn(["\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 "]))),qa=N($r||($r=bn(["\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 "]))),$a=N(Qr||(Qr=bn(["\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 "]))),Qa=N(Hr||(Hr=bn(["\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 "]))),Ha=N(zr||(zr=bn(["\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 "]))),za=N(Wr||(Wr=bn(["\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 "]))),Wa=N(Zr||(Zr=bn(["\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 "]))),Za=N(Yr||(Yr=bn(["\n fragment PaymentSessionFragment on PaymentSession {\n token\n}\n "],["\n fragment PaymentSessionFragment on PaymentSession {\n token\n}\n "]))),Ya=N(Kr||(Kr=bn(["\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 "]))),Ka=N(Jr||(Jr=bn(["\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 "]))),Ja=N(Xr||(Xr=bn(["\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 "]))),Xa=N(ei||(ei=bn(["\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 "]))),es=N(ti||(ti=bn(["\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 "]))),ts=N(ni||(ni=bn(["\n fragment EntitlementReferenceFragment on EntitlementReference {\n id\n type\n}\n "],["\n fragment EntitlementReferenceFragment on EntitlementReference {\n id\n type\n}\n "]))),ns=N(ri||(ri=bn(["\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 "]))),rs=N(ii||(ii=bn(["\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 "]))),is=N(oi||(oi=bn(["\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",""])),ja,Io,La,wo,Po,Ao,Do,Oo,ta,Xo,ea,ha,da,fa),os=N(ai||(ai=bn(["\n mutation ImportCustomerBulk($input: ImportCustomerBulkInput!) {\n importCustomersBulk(input: $input)\n}\n "],["\n mutation ImportCustomerBulk($input: ImportCustomerBulkInput!) {\n importCustomersBulk(input: $input)\n}\n "]))),as=N(si||(si=bn(["\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 ",""])),Io),ss=N(ui||(ui=bn(["\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 ",""])),Io),us=N(ci||(ci=bn(["\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 ",""])),Io),cs=N(li||(li=bn(["\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 ",""])),To),ls=N(pi||(pi=bn(["\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 "]))),ps=N(di||(di=bn(["\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",""])),Ba,La,wo,Po,Ao,Do,Oo,ta,Xo,ea,ha,da,fa),ds=N(fi||(fi=bn(["\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",""])),Va,Qo,Io,wo,Po,Ao,Do,Oo,Vo,No,Ro,Lo,xo,Fo,ko,Uo,Mo,jo,Go,Bo,qo,$o,ta,Xo,ea,ha,da,fa),fs=N(hi||(hi=bn(["\n mutation ImportSubscriptionsBulk($input: ImportSubscriptionsBulkInput!) {\n importSubscriptionsBulk(input: $input)\n}\n "],["\n mutation ImportSubscriptionsBulk($input: ImportSubscriptionsBulkInput!) {\n importSubscriptionsBulk(input: $input)\n}\n "]))),hs=N(mi||(mi=bn(["\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",""])),La,wo,Po,Ao,Do,Oo),ms=N(gi||(gi=bn(["\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",""])),La,wo,Po,Ao,Do,Oo),gs=N(yi||(yi=bn(["\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 ",""])),Wo),ys=N(vi||(vi=bn(["\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 ",""])),Wo),vs=N(bi||(bi=bn(["\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",""])),Ko,Zo,Yo),bs=N(Ei||(Ei=bn(["\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",""])),Jo,Ao,Do),Es=N(_i||(_i=bn(["\n mutation CancelSubscriptionUpdates($input: SubscriptionUpdateScheduleCancellationInput!) {\n cancelSchedule(input: $input)\n}\n "],["\n mutation CancelSubscriptionUpdates($input: SubscriptionUpdateScheduleCancellationInput!) {\n cancelSchedule(input: $input)\n}\n "]))),_s=N(Ii||(Ii=bn(["\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 ",""])),Ga),Is=N(Si||(Si=bn(["\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 ",""])),Ga),Ss=N(Ti||(Ti=bn(["\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 ",""])),qa),Ts=N(Ci||(Ci=bn(["\n mutation ConsumeCreditsAsync($input: ConsumeCreditsAsyncInput!) {\n consumeCreditsAsync(input: $input)\n}\n "],["\n mutation ConsumeCreditsAsync($input: ConsumeCreditsAsyncInput!) {\n consumeCreditsAsync(input: $input)\n}\n "]))),Cs=N(wi||(wi=bn(["\n mutation ReportEvent($input: UsageEventsReportInput!) {\n reportEvent(events: $input)\n}\n "],["\n mutation ReportEvent($input: UsageEventsReportInput!) {\n reportEvent(events: $input)\n}\n "]))),ws=N(Pi||(Pi=bn(["\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 "]))),Ps=N(Di||(Di=bn(["\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",""])),La,wo,Po,Ao,Do,Oo),Ds=N(Ai||(Ai=bn(["\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 "]))),As=N(Oi||(Oi=bn(["\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 "]))),Os=N(Ni||(Ni=bn(["\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 ",""])),Io),Ns=N(Ri||(Ri=bn(["\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",""])),La,wo,Po,Ao,Do,Oo),Rs=N(Fi||(Fi=bn(["\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",""])),La,wo,Po,Ao,Do,Oo),Fs=N(ki||(ki=bn(["\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",""])),La,wo,Po,Ao,Do,Oo),ks=N(xi||(xi=bn(["\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",""])),Qa,$a),xs=N(Ui||(Ui=bn(["\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 ",""])),To),Us=N(Mi||(Mi=bn(["\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 ",""])),To),Ms=N(Li||(Li=bn(["\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 ",""])),To),Ls=N(ji||(ji=bn(["\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 ",""])),Za),js=N(Vi||(Vi=bn(["\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",""])),Qa,$a),Vs=N(Bi||(Bi=bn(["\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 ",""])),So),Bs=N(Gi||(Gi=bn(["\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 ",""])),Xa),Gs=N(qi||(qi=bn(["\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",""])),Ho,Co,Io,So,To,Qo,wo,Po,Ao,Do,Oo,Vo,No,Ro,Lo,xo,Fo,ko,Uo,Mo,jo,Go,Bo,qo,$o),qs=N($i||($i=bn(["\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 ",""])),zo),$s=N(Qi||(Qi=bn(["\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",""])),Qo,Io,wo,Po,Ao,Do,Oo,Vo,No,Ro,Lo,xo,Fo,ko,Uo,Mo,jo,Go,Bo,qo,$o),Qs=N(Hi||(Hi=bn(["\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 ",""])),_o),Hs=N(zi||(zi=bn(["\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",""])),Eo,Ka),zs=N(Wi||(Wi=bn(["\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",""])),Qo,Io,wo,Po,Ao,Do,Oo,Vo,No,Ro,Lo,xo,Fo,ko,Uo,Mo,jo,Go,Bo,qo,$o),Ws=N(Zi||(Zi=bn(["\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 ",""])),So),Zs=N(Yi||(Yi=bn(["\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",""])),xa,Vo,No,Ro,Lo,xo,Fo,ko,Ao,Do,Uo,Mo,jo,Na,Fa,va,ya,Ra,Co,Io,So,To,Qo,wo,Po,Oo,Go,Bo,qo,$o,ka),Ys=N(Ki||(Ki=bn(["\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",""])),ta,Xo,ea),Ks=N(Ji||(Ji=bn(["\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",""])),ta,Xo,ea,ha,da,fa),Js=N(Xi||(Xi=bn(["\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",""])),ta,Xo,ea),Xs=N(eo||(eo=bn(["\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",""])),ha,da,Xo,ea,fa),eu=N(to||(to=bn(["\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 ",""])),No),tu=N(no||(no=bn(["\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 "]))),nu=N(ro||(ro=bn(["\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",""])),Ea,la,sa,ua,ca,Bo,pa,Xo,ea,ha,da,fa,ma,ga,ba,va,ya,Po),ru=N(io||(io=bn(["\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",""])),Ta,_a,va,ya,Co,Io,So,To,Qo,wo,Po,Ao,Do,Oo,Vo,No,Ro,Lo,xo,Fo,ko,Uo,Mo,jo,Go,Bo,qo,$o,Ia,Sa),iu=N(oo||(oo=bn(["\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",""])),Oa,Ca,xo,Fo,ko,wa,Do,Da,Pa,Aa,Fa,va,ya,Ra),ou=N(ao||(ao=bn(["\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 ",""])),Ua),au=N(so||(so=bn(["\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 ",""])),Ma),su=N(uo||(uo=bn(["\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",""])),Wa,za),uu=N(co||(co=bn(["\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",""])),Ka,Qa,$a),cu=N(lo||(lo=bn(["\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",""])),Ka,Ha),lu=N(po||(po=bn(["\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",""])),Ja,Ya,Ka),pu=N(fo||(fo=bn(["\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 ",""])),Xa),du=N(ho||(ho=bn(["\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",""])),na,ta,Xo,ea),fu=N(mo||(mo=bn(["\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",""])),es,ha,da,Xo,ea,fa),hu=N(go||(go=bn(["\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",""])),ia,ra,ta,Xo,ea),mu=N(yo||(yo=bn(["\n subscription OnUsageUpdatedV2 {\n usageUpdatedV2 {\n ...UsageUpdatedV2Payload\n }\n}\n ","\n","\n",""],["\n subscription OnUsageUpdatedV2 {\n usageUpdatedV2 {\n ...UsageUpdatedV2Payload\n }\n}\n ","\n","\n",""])),rs,ts,ns),gu=N(vo||(vo=bn(["\n subscription OnPackagePublished {\n packagePublished {\n ...PackagePublishedPayload\n }\n}\n ",""],["\n subscription OnPackagePublished {\n packagePublished {\n ...PackagePublishedPayload\n }\n}\n ",""])),oa),yu=N(bo||(bo=bn(["\n subscription OnCreditBalanceUpdated {\n creditBalanceUpdated {\n ...CreditBalanceUpdatedPayload\n }\n}\n ",""],["\n subscription OnCreditBalanceUpdated {\n creditBalanceUpdated {\n ...CreditBalanceUpdatedPayload\n }\n}\n ",""])),aa),vu=function(e,t,n){return e()};function bu(e,t){return void 0===t&&(t=vu),{ProvisionCustomer:function(n,r){return t(function(t){return e.request(is,n,En(En({},r),t))},"ProvisionCustomer","mutation")},ImportCustomerBulk:function(n,r){return t(function(t){return e.request(os,n,En(En({},r),t))},"ImportCustomerBulk","mutation")},ImportCustomer:function(n,r){return t(function(t){return e.request(as,n,En(En({},r),t))},"ImportCustomer","mutation")},UpdateCustomer:function(n,r){return t(function(t){return e.request(ss,n,En(En({},r),t))},"UpdateCustomer","mutation")},DetachCustomerPaymentMethod:function(n,r){return t(function(t){return e.request(us,n,En(En({},r),t))},"DetachCustomerPaymentMethod","mutation")},GrantPromotionalEntitlements:function(n,r){return t(function(t){return e.request(cs,n,En(En({},r),t))},"GrantPromotionalEntitlements","mutation")},RevokePromotionalEntitlement:function(n,r){return t(function(t){return e.request(ls,n,En(En({},r),t))},"RevokePromotionalEntitlement","mutation")},ProvisionSubscription:function(n,r){return t(function(t){return e.request(ps,n,En(En({},r),t))},"ProvisionSubscription","mutation")},ApplySubscription:function(n,r){return t(function(t){return e.request(ds,n,En(En({},r),t))},"ApplySubscription","mutation")},ImportSubscriptionsBulk:function(n,r){return t(function(t){return e.request(fs,n,En(En({},r),t))},"ImportSubscriptionsBulk","mutation")},UpdateSubscription:function(n,r){return t(function(t){return e.request(hs,n,En(En({},r),t))},"UpdateSubscription","mutation")},CancelSubscription:function(n,r){return t(function(t){return e.request(ms,n,En(En({},r),t))},"CancelSubscription","mutation")},EstimateSubscription:function(n,r){return t(function(t){return e.request(gs,n,En(En({},r),t))},"EstimateSubscription","mutation")},EstimateSubscriptionUpdate:function(n,r){return t(function(t){return e.request(ys,n,En(En({},r),t))},"EstimateSubscriptionUpdate","mutation")},PreviewSubscription:function(n,r){return t(function(t){return e.request(vs,n,En(En({},r),t))},"PreviewSubscription","mutation")},PreviewNextInvoice:function(n,r){return t(function(t){return e.request(bs,n,En(En({},r),t))},"PreviewNextInvoice","mutation")},CancelSubscriptionUpdates:function(n,r){return t(function(t){return e.request(Es,n,En(En({},r),t))},"CancelSubscriptionUpdates","mutation")},ReportUsage:function(n,r){return t(function(t){return e.request(_s,n,En(En({},r),t))},"ReportUsage","mutation")},ReportUsageBulk:function(n,r){return t(function(t){return e.request(Is,n,En(En({},r),t))},"ReportUsageBulk","mutation")},ConsumeCredits:function(n,r){return t(function(t){return e.request(Ss,n,En(En({},r),t))},"ConsumeCredits","mutation")},ConsumeCreditsAsync:function(n,r){return t(function(t){return e.request(Ts,n,En(En({},r),t))},"ConsumeCreditsAsync","mutation")},ReportEvent:function(n,r){return t(function(t){return e.request(Cs,n,En(En({},r),t))},"ReportEvent","mutation")},ReportEntitlementCheckRequested:function(n,r){return t(function(t){return e.request(ws,n,En(En({},r),t))},"ReportEntitlementCheckRequested","mutation")},CreateSubscription:function(n,r){return t(function(t){return e.request(Ps,n,En(En({},r),t))},"CreateSubscription","mutation")},MigrateSubscriptionToLatest:function(n,r){return t(function(t){return e.request(Ds,n,En(En({},r),t))},"MigrateSubscriptionToLatest","mutation")},ArchiveCustomer:function(n,r){return t(function(t){return e.request(As,n,En(En({},r),t))},"ArchiveCustomer","mutation")},UnarchiveCustomer:function(n,r){return t(function(t){return e.request(Os,n,En(En({},r),t))},"UnarchiveCustomer","mutation")},TransferSubscription:function(n,r){return t(function(t){return e.request(Ns,n,En(En({},r),t))},"TransferSubscription","mutation")},DelegateSubscriptionToCustomer:function(n,r){return t(function(t){return e.request(Rs,n,En(En({},r),t))},"DelegateSubscriptionToCustomer","mutation")},TransferSubscriptionToResource:function(n,r){return t(function(t){return e.request(Fs,n,En(En({},r),t))},"TransferSubscriptionToResource","mutation")},GrantCredits:function(n,r){return t(function(t){return e.request(ks,n,En(En({},r),t))},"GrantCredits","mutation")},GrantPromotionalEntitlementsGroup:function(n,r){return t(function(t){return e.request(xs,n,En(En({},r),t))},"GrantPromotionalEntitlementsGroup","mutation")},RevokePromotionalEntitlementsGroup:function(n,r){return t(function(t){return e.request(Us,n,En(En({},r),t))},"RevokePromotionalEntitlementsGroup","mutation")},UnlinkPromotionalEntitlementsGroup:function(n,r){return t(function(t){return e.request(Ms,n,En(En({},r),t))},"UnlinkPromotionalEntitlementsGroup","mutation")},CreatePaymentSession:function(n,r){return t(function(t){return e.request(Ls,n,En(En({},r),t))},"CreatePaymentSession","mutation")},VoidCreditGrant:function(n,r){return t(function(t){return e.request(js,n,En(En({},r),t))},"VoidCreditGrant","mutation")},CreateCoupon:function(n,r){return t(function(t){return e.request(Vs,n,En(En({},r),t))},"CreateCoupon","mutation")},SaveAutomaticRechargeConfiguration:function(n,r){return t(function(t){return e.request(Bs,n,En(En({},r),t))},"SaveAutomaticRechargeConfiguration","mutation")},GetCustomerById:function(n,r){return t(function(t){return e.request(Gs,n,En(En({},r),t))},"GetCustomerById","query")},GetCustomerStatistics:function(n,r){return t(function(t){return e.request(qs,n,En(En({},r),t))},"GetCustomerStatistics","query")},GetActiveSubscriptions:function(n,r){return t(function(t){return e.request($s,n,En(En({},r),t))},"GetActiveSubscriptions","query")},GetActiveSubscriptionsList:function(n,r){return t(function(t){return e.request(Qs,n,En(En({},r),t))},"GetActiveSubscriptionsList","query")},GetSubscriptions:function(n,r){return t(function(t){return e.request(Hs,n,En(En({},r),t))},"GetSubscriptions","query")},GetSubscription:function(n,r){return t(function(t){return e.request(zs,n,En(En({},r),t))},"GetSubscription","query")},GetCoupons:function(n,r){return t(function(t){return e.request(Ws,n,En(En({},r),t))},"GetCoupons","query")},GetPaywall:function(n,r){return t(function(t){return e.request(Zs,n,En(En({},r),t))},"GetPaywall","query")},GetEntitlements:function(n,r){return t(function(t){return e.request(Ys,n,En(En({},r),t))},"GetEntitlements","query")},GetEntitlementsState:function(n,r){return t(function(t){return e.request(Ks,n,En(En({},r),t))},"GetEntitlementsState","query")},GetEntitlement:function(n,r){return t(function(t){return e.request(Js,n,En(En({},r),t))},"GetEntitlement","query")},GetEntitlementV2:function(n,r){return t(function(t){return e.request(Xs,n,En(En({},r),t))},"GetEntitlementV2","query")},GetProducts:function(n,r){return t(function(t){return e.request(eu,n,En(En({},r),t))},"GetProducts","query")},GetSdkConfiguration:function(n,r){return t(function(t){return e.request(tu,n,En(En({},r),t))},"GetSdkConfiguration","query")},GetCustomerPortalByRefId:function(n,r){return t(function(t){return e.request(nu,n,En(En({},r),t))},"GetCustomerPortalByRefId","query")},GetCheckoutState:function(n,r){return t(function(t){return e.request(ru,n,En(En({},r),t))},"GetCheckoutState","query")},GetMockPaywall:function(n,r){return t(function(t){return e.request(iu,n,En(En({},r),t))},"GetMockPaywall","query")},GetUsageHistory:function(n,r){return t(function(t){return e.request(ou,n,En(En({},r),t))},"GetUsageHistory","query")},GetUsageHistoryV2:function(n,r){return t(function(t){return e.request(au,n,En(En({},r),t))},"GetUsageHistoryV2","query")},GetCreditBalance:function(n,r){return t(function(t){return e.request(su,n,En(En({},r),t))},"GetCreditBalance","query")},GetCreditGrants:function(n,r){return t(function(t){return e.request(uu,n,En(En({},r),t))},"GetCreditGrants","query")},GetCreditLedger:function(n,r){return t(function(t){return e.request(cu,n,En(En({},r),t))},"GetCreditLedger","query")},GetCreditUsage:function(n,r){return t(function(t){return e.request(lu,n,En(En({},r),t))},"GetCreditUsage","query")},GetAutomaticRechargeConfiguration:function(n,r){return t(function(t){return e.request(pu,n,En(En({},r),t))},"GetAutomaticRechargeConfiguration","query")},OnEntitlementsUpdated:function(n,r){return t(function(t){return e.request(du,n,En(En({},r),t))},"OnEntitlementsUpdated","subscription")},OnEntitlementsUpdatedV2:function(n,r){return t(function(t){return e.request(fu,n,En(En({},r),t))},"OnEntitlementsUpdatedV2","subscription")},OnUsageUpdated:function(n,r){return t(function(t){return e.request(hu,n,En(En({},r),t))},"OnUsageUpdated","subscription")},OnUsageUpdatedV2:function(n,r){return t(function(t){return e.request(mu,n,En(En({},r),t))},"OnUsageUpdatedV2","subscription")},OnPackagePublished:function(n,r){return t(function(t){return e.request(gu,n,En(En({},r),t))},"OnPackagePublished","subscription")},OnCreditBalanceUpdated:function(n,r){return t(function(t){return e.request(yu,n,En(En({},r),t))},"OnCreditBalanceUpdated","subscription")}}}var Eu=n(6647),_u={createClient:function(e){var t=e.apiUrl,n=void 0===t?"https://api.stigg.io/graphql":t;return bu(new Eu.GraphQLClient(n,{headers:{"X-API-KEY":e.apiKey}}),function(e,t,n){return e({"x-graphql-operation-name":t})})}};function Iu(e){return"FeatureEntitlement"===e.__typename}function Su(e){return"CreditEntitlement"===e.__typename}function Tu(e){return"FeatureEntitlementWithSummary"===(null==e?void 0:e.__typename)}function Cu(e){return"CreditEntitlementWithSummary"===(null==e?void 0:e.__typename)}var wu,Pu=n(1886),Du=n.n(Pu);!function(e){e.ALL="ALL",e.NONE="NONE",e.LOG="LOG",e.ERROR="ERROR"}(wu||(wu={}));var Au=function(){function e(e,t){this.logger=e,this.logLevel=t}return e.prototype.error=function(e,t){this.logLevel!==wu.NONE&&this.logger.error("[Stigg] ".concat(e),t||{})},e.prototype.log=function(e,t){Du()([wu.ERROR,wu.NONE],this.logLevel)||this.logger.log("[Stigg] ".concat(e),t||{})},e.prototype.debug=function(e,t){Du()([wu.LOG,wu.ALL],this.logLevel)&&this.logger.debug("[Stigg] ".concat(e),t||{})},e}(),Ou=Nt.JsClientSdk,Nu="js-client-sdk",Ru=["localhost","127.0.0.1","::1"],Fu=function(){var e="https://api.stigg.io";return{baseUri:e,baseEdgeUri:Uu(e),logConfiguration:{logger:console,logLevel:wu.ERROR},enableEdge:!0,cacheTtlMs:3e4}};function ku(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 xu(e){var t=Fu(),n=e.baseEdgeUri?e.baseEdgeUri:e.baseUri?Uu(e.baseUri):t.baseEdgeUri,r=e.cacheTtlMs||e.entitlementPollingInterval;return f()(t,e,{baseEdgeUri:n,cacheTtlMs:r})}function Uu(e){var t=new URL(e);return Ru.includes(t.hostname)?t.port="3060":t.hostname="edge.".concat(t.hostname),t.toString().slice(0,-1)}function Mu(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 Lu=n(6635);const ju=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:tu})},e}();var Vu=function(){return Vu=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},Vu.apply(this,arguments)},Bu=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:Zs,fetchPolicy:"no-cache",variables:{input:Vu(Vu(Vu(Vu(Vu(Vu({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{resourceId:r}:{}),i?{context:i}:{}),o?{billingCountryCode:o}:{}),a?{includeHiddenPlans:a}:{})}})},e}();const Gu=Bu;var qu=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=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])}}},Qu=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getCustomer=function(e){return this.client.query({query:Gs,variables:{input:{customerId:e}},fetchPolicy:"no-cache"})},e.prototype.getActiveSubscriptions=function(e,t){return qu(this,void 0,void 0,function(){return $u(this,function(n){return[2,this.client.query({query:$s,variables:{input:(0,Lu.isArray)(t)?{customerId:e,resourceIds:t}:{customerId:e,resourceId:t}},fetchPolicy:"no-cache"})]})})},e.prototype.getActiveSubscriptionsList=function(e,t){return qu(this,void 0,void 0,function(){return $u(this,function(n){return this.edgeApiClient?[2,this.edgeApiClient.getActiveSubscriptionsList(e,t)]:[2,this.client.query({query:Qs,variables:{input:(0,Lu.isArray)(t)?{customerId:e,resourceIds:t}:{customerId:e,resourceId:t}},fetchPolicy:"no-cache"})]})})},e.prototype.getSubscription=function(e){return qu(this,void 0,void 0,function(){return $u(this,function(t){return[2,this.client.query({query:zs,variables:{input:{subscriptionId:e}},fetchPolicy:"no-cache"})]})})},e.prototype.getCustomerPortal=function(e,t,n){return this.client.query({query:nu,variables:{input:{customerId:e,resourceId:t,productId:n}},fetchPolicy:"no-cache"})},e.prototype.fetchUsageHistory=function(e){return qu(this,arguments,void 0,function(e){var t=e.customerId,n=e.resourceId,r=e.endDate,i=e.startDate,o=e.featureId;return $u(this,function(e){return[2,this.client.query({query:ou,variables:{usageHistoryInput:{customerRefId:t,featureRefId:o,resourceRefId:n,startDate:i,endDate:r||new Date}},fetchPolicy:"no-cache"})]})})},e}();const Hu=Qu,zu=function(){function e(e){this.client=e}return e.prototype.getCoupons=function(){return this.client.query({query:Ws,fetchPolicy:"no-cache"})},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){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:ds,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:Hs,variables:Wu({filter:Wu(Wu(Wu(Wu({},e?{customerId:{eq:e}}:{}),t?{resourceId:(0,Lu.isArray)(t)?{in:t}:{eq:t}}:{}),n?{status:(0,Lu.isArray)(n)?{in:n}:{eq:n}}:{}),r?{productId:(0,Lu.isArray)(r)?{in:r}:{eq:r}}:{})},i?{paging:Wu({},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:ru,fetchPolicy:"no-cache",variables:{input:Wu(Wu({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 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])}}},Xu=function(){function e(e){this.client=e}return e.prototype.estimateSubscription=function(e){return Ku(this,void 0,void 0,function(){var t,n;return Ju(this,function(r){return[2,this.client.mutate({mutation:gs,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 Ku(this,void 0,void 0,function(){return Ju(this,function(t){return[2,this.client.mutate({mutation:ys,variables:{input:{subscriptionId:e.subscriptionId,unitQuantity:e.unitQuantity,billableFeatures:e.billableFeatures,addons:e.addons,promotionCode:e.promotionCode}}})]})})},e.prototype.previewNextInvoice=function(e){return Ku(this,void 0,void 0,function(){return Ju(this,function(t){return[2,this.client.mutate({mutation:bs,fetchPolicy:"no-cache",variables:{input:{subscriptionId:e.subscriptionId}}})]})})},e.prototype.previewSubscription=function(e){return Ku(this,void 0,void 0,function(){return Ju(this,function(t){return[2,this.client.mutate({mutation:vs,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 ec=Xu;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.getMockPaywall=function(e){var t=e.productId,n=e.customerId,r=e.context;return this.client.query({query:iu,fetchPolicy:"no-cache",variables:{input:tc(tc(tc({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{context:r}:{})}})},e}();const rc=nc;var ic=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:au,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}(),oc=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())})},ac=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 sc=function(){function e(e){this.client=e}return e.prototype.getCreditBalance=function(e){return oc(this,void 0,void 0,function(){return ac(this,function(t){return[2,this.client.query({query:su,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.getCreditGrants=function(e){return oc(this,void 0,void 0,function(){return ac(this,function(t){return[2,this.client.query({query:uu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.getCreditLedger=function(e){return oc(this,void 0,void 0,function(){return ac(this,function(t){return[2,this.client.query({query:cu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.getCreditUsage=function(e){return oc(this,void 0,void 0,function(){return ac(this,function(t){return[2,this.client.query({query:lu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e}(),uc=function(){function e(e){this.client=e}return e.prototype.createPaymentSession=function(e){return this.client.mutate({mutation:Ls,variables:{input:e}})},e}();var cc=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())})},lc=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 pc=function(){function e(e){this.client=e}return e.prototype.getConfiguration=function(e){return cc(this,void 0,void 0,function(){return lc(this,function(t){return[2,this.client.query({query:pu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.saveConfiguration=function(e){return cc(this,void 0,void 0,function(){return lc(this,function(t){return[2,this.client.mutate({mutation:Bs,variables:{input:e}})]})})},e}(),dc=function(e,t){this.sdkConfiguration=new ju(e,t),this.paywall=new Gu(e,t),this.subscriptions=new Yu(e),this.mockPaywall=new rc(e),this.customers=new Hu(e,t),this.coupons=new zu(e),this.subscriptionEstimations=new ec(e),this.usageHistoryApi=new ic(e),this.credits=new sc(e),this.checkout=new uc(e),this.automaticRecharge=new pc(e)};var fc="Invariant Violation",hc=Object.setPrototypeOf,mc=void 0===hc?function(e,t){return e.__proto__=t,e}:hc,gc=function(e){function t(n){void 0===n&&(n=fc);var r=e.call(this,"number"==typeof n?fc+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=fc,mc(r,t.prototype),r}return m(t,e),t}(Error);function yc(e,t){if(!e)throw new gc(t)}var vc=["debug","log","warn","error","silent"],bc=vc.indexOf("log");function Ec(e){return function(){if(vc.indexOf(e)>=bc)return(console[e]||console.log).apply(console,arguments)}}function _c(e){try{return e()}catch(e){}}!function(e){e.debug=Ec("debug"),e.log=Ec("log"),e.warn=Ec("warn"),e.error=Ec("error")}(yc||(yc={}));const Ic=_c(function(){return globalThis})||_c(function(){return window})||_c(function(){return self})||_c(function(){return n.g})||_c(function(){return Function("return this")()});var Sc="__",Tc=[Sc,Sc].join("DEV");const Cc=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(Ic,Tc,{value:"production"!==_c(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),Ic[Tc]}}();function wc(e){try{return e()}catch(e){}}var Pc=wc(function(){return globalThis})||wc(function(){return window})||wc(function(){return self})||wc(function(){return n.g})||wc(function(){return wc.constructor("return this")()}),Dc=!1;function Ac(e){return Array.isArray(e)&&e.length>0}!Pc||wc(function(){return"production"})||wc(function(){return process})||(Object.defineProperty(Pc,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Dc=!0),n(4957).H,Dc&&(delete Pc.process,Dc=!1),__DEV__?yc("boolean"==typeof Cc,Cc):yc("boolean"==typeof Cc,38);var Oc=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="",(Ac((r=l).graphQLErrors)||Ac(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),Nc=(n(3616),n(3591)),Rc=fetch,Fc=n.n(Nc)()(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)}}),kc=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,Lu.isString)(t)?n.set("resourceId",t):(0,Lu.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",Ou),(n=this.dynamicData.customerToken)&&t.append("X-CUSTOMER-KEY",n),[4,Fc("".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 Oc({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 xc(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 Uc(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 Mc(e,t,n){return t&&Uc(e.prototype,t),n&&Uc(e,n),e}var Lc=function(){return"function"==typeof Symbol},jc=function(e){return Lc()&&Boolean(Symbol[e])},Vc=function(e){return jc(e)?Symbol[e]:"@@"+e};Lc()&&!jc("observable")&&(Symbol.observable=Symbol("observable"));var Bc=Vc("iterator"),Gc=Vc("observable"),qc=Vc("species");function $c(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function Qc(e){var t=e.constructor;return void 0!==t&&null===(t=t[qc])&&(t=void 0),void 0!==t?t:tl}function Hc(e){return e instanceof tl}function zc(e){zc.log?zc.log(e):setTimeout(function(){throw e})}function Wc(e){Promise.resolve().then(function(){try{e()}catch(e){zc(e)}})}function Zc(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=$c(t,"unsubscribe");n&&n.call(t)}}catch(e){zc(e)}}function Yc(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function Kc(e,t,n){e._state="running";var r=e._observer;try{var i=$c(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(Yc(e),!i)throw n;i.call(r,n);break;case"complete":Yc(e),i&&i.call(r)}}catch(e){zc(e)}"closed"===e._state?Zc(e):"running"===e._state&&(e._state="ready")}function Jc(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 Wc(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(Kc(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)})):void Kc(e,t,n);e._queue.push({type:t,value:n})}}var Xc=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new el(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&&(Yc(this),Zc(this))},Mc(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),el=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){Jc(this._subscription,"next",e)},t.error=function(e){Jc(this._subscription,"error",e)},t.complete=function(){Jc(this._subscription,"complete")},Mc(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),tl=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 Xc(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(Qc(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(Qc(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=Qc(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=Qc(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=Qc(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[Gc]=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=$c(t,Gc);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return Hc(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(jc("iterator")&&(r=$c(t,Bc)))return new n(function(e){Wc(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 xc(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)?xc(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){Wc(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){Wc(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},Mc(e,null,[{key:qc,get:function(){return this}}]),e}();function nl(e){return null!==e&&"object"==typeof e}function rl(e,t){var n=t,r=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new gc("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 gc(43);"FragmentDefinition"===e.kind&&r.push(e)}),void 0===n&&(__DEV__?yc(1===r.length,"Found "+r.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):yc(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 il(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function ol(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?yc(n,"No fragment named "+e.name.value+"."):yc(n,45),n;default:return null}}function al(e){return{__ref:String(e)}}function sl(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function ul(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 ul(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 ul(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 gc('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new gc(54);e[t.value]=null}}Lc()&&Object.defineProperty(tl,Symbol("extensions"),{value:{symbol:Gc,hostReportError:zc},configurable:!0});var cl=["connection","include","skip","client","rest","export"],ll=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+"("+pl(i)+")"}return n.connection.key}var o=e;if(t){var a=pl(t);o+="("+a+")"}return n&&Object.keys(n).forEach(function(e){-1===cl.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@"+e+"("+pl(n[e])+")":o+="@"+e)}),o},{setStringify:function(e){var t=pl;return pl=e,t}}),pl=function(e){return JSON.stringify(e,dl)};function dl(e,t){return nl(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{})),t}function fl(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){var r=e.name,i=e.value;return ul(n,r,i,t)}),n}return null}function hl(e){return e.alias?e.alias.value:e.name.value}function ml(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(gl(o)){if("__typename"===o.name.value)return e[hl(o)]}else{var a=ml(e,ol(o,n).selectionSet,n);if("string"==typeof a)return a}}}function gl(e){return"Field"===e.kind}function yl(e){return"InlineFragment"===e.kind}function vl(e){__DEV__?yc(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'):yc(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 gc('Schema type definitions not allowed in queries. Found: "'+e.kind+'"'):new gc(47);return e});return __DEV__?yc(t.length<=1,"Ambiguous GraphQL document: contains "+t.length+" operations"):yc(t.length<=1,48),e}function bl(e){return vl(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function El(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function _l(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function Il(e){var t=bl(e);return __DEV__?yc(t&&"query"===t.operation,"Must contain a query definition."):yc(t&&"query"===t.operation,49),t}function Sl(e){var t;vl(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 gc("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new gc(53)}function Tl(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(e){e.defaultValue&&ul(t,e.variable.name,e.defaultValue)}),t}function Cl(e,t){return t?t(e):tl.of()}function wl(e){return"function"==typeof e?new Al(e):e}function Pl(e){return e.request.length<=1}var Dl=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return m(t,e),t}(Error),Al=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return tl.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(wl).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i=wl(n),o=wl(r||new e(Cl));return Pl(i)&&Pl(o)?new e(function(e){return t(e)?i.request(e)||tl.of():o.request(e)||tl.of()}):new e(function(e,n){return t(e)?i.request(e,n)||tl.of():o.request(e,n)||tl.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?El(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 gc("illegal argument: "+i):new gc(26)}return e}(t))))||tl.of()},e.concat=function(t,n){var r=wl(t);if(Pl(r))return __DEV__&&yc.warn(new Dl("You are calling concat on a terminating link, which will have no effect",r)),r;var i=wl(n);return Pl(i)?new e(function(e){return r.request(e,function(e){return i.request(e)||tl.of()})||tl.of()}):new e(function(e,t){return r.request(e,function(e){return i.request(e,t)||tl.of()})||tl.of()})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(Cl)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new gc("request is not implemented"):new gc(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}(),Ol=n(8867),Nl=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new gc("Network request failed. "+t+" is not serializable: "+e.message):new gc(23);throw r.parseError=e,r}return n},Rl=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},Fl=Object.prototype.hasOwnProperty,kl=n(9054),xl={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}};function Ul(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 Ml(e){return new tl(function(t){t.error(e)})}var Ll=_c(function(){return fetch}),jl=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 gc("\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 gc(22)}(r||Ll);var c={http:{includeExtensions:i},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new Al(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),Ul(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,kl.S)(c)),{options:i,body:l}}(e,xl,c,h),y=m.options,v=m.body;if(v.variables&&!s){var b=new Set(Object.keys(v.variables));(0,Ol.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=Nl(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=Nl(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 Ml(C);t=T}else try{y.body=Nl(v,"Payload")}catch(C){return Ml(C)}return new tl(function(n){var i;return(r||_c(function(){return fetch})||Ll)(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&&Rl(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||Fl.call(t,"data")||Fl.call(t,"errors")||Rl(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}(Al),Vl=Al.execute;function Bl(){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:Gl,hasOwnProperty:ql}=Object.prototype,$l=Function.prototype.toString,Ql=new Map;function Hl(e,t){try{return zl(e,t)}finally{Ql.clear()}}function zl(e,t){if(e===t)return!0;const n=Gl.call(e);if(n!==Gl.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(Kl(e,t))return!0;const n=Wl(e),r=Wl(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;++e)if(!ql.call(t,n[e]))return!1;for(let r=0;r<i;++r){const i=n[r];if(!zl(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(Kl(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&&!zl(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=$l.call(e);return n===$l.call(t)&&!function(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(n,Yl)}}return!1}function Wl(e){return Object.keys(e).filter(Zl,e)}function Zl(e){return void 0!==this[e]}const Yl="{ [native code] }";function Kl(e,t){let n=Ql.get(e);if(n){if(n.has(t))return!0}else Ql.set(e,n=new Set);return n.add(t),!1}var Jl,Xl,ep=function(){return Object.create(null)},tp=Array.prototype,np=tp.forEach,rp=tp.slice,ip=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=ep),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 np.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(rp.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}(),op="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),ap="function"==typeof WeakSet,sp="function"==typeof Symbol&&"function"==typeof Symbol.for,up=function(){function e(){this.known=new(ap?WeakSet:Set),this.pool=new ip(op),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return nl(e)&&this.known.has(e)},e.prototype.pass=function(e){if(nl(e)){var t=function(e){return nl(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(nl(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}(),cp=Object.assign(function(e){if(nl(e)){void 0===Jl&&lp();var t=Jl.admit(e),n=Xl.get(t);return void 0===n&&Xl.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)},{reset:lp});function lp(){Jl=new up,Xl=new(op?WeakMap:Map)}function pp(e,t,n){return new tl(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 dp(e){return e.errors&&e.errors.length>0||!1}function fp(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 hp={kind:"Field",name:{kind:"Name",value:"__typename"}};function mp(e,t){return e.selectionSet.selections.every(function(e){return"FragmentSpread"===e.kind&&mp(t[e.name.value],t)})}function gp(e){return mp(bl(e)||function(e){__DEV__?yc("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'):yc("Document"===e.kind,50),__DEV__?yc(e.definitions.length<=1,"Fragment must have exactly one definition."):yc(e.definitions.length<=1,51);var t=e.definitions[0];return __DEV__?yc("FragmentDefinition"===t.kind,"Must be a fragment definition."):yc("FragmentDefinition"===t.kind,52),t}(e),il(_l(e)))?null:e}function yp(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function vp(e,t){var n=Object.create(null),r=[],i=Object.create(null),o=[],a=gp((0,Ol.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(yp(e)))return t.arguments&&t.arguments.forEach(function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})}),t.selectionSet&&_p(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(yp(e)(t))return null}}}));return a&&fp(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 gp((0,Ol.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&&fp(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 gp((0,Ol.Vn)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(o,a)),a}var bp=Object.assign(function(e){return(0,Ol.Vn)(vl(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some(function(e){return gl(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var i=n;if(!(gl(i)&&i.directives&&i.directives.some(function(e){return"export"===e.name.value})))return g(g({},e),{selections:E(E([],r,!0),[hp],!1)})}}}}})},{added:function(e){return e===hp}}),Ep={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some(function(e){return"key"===e.name.value})||__DEV__&&yc.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),t}};function _p(e){var t=[];return e.selections.forEach(function(e){(gl(e)||yl(e))&&e.selectionSet?_p(e.selectionSet).forEach(function(e){return t.push(e)}):"FragmentSpread"===e.kind&&t.push(e)}),t}function Ip(e){return"query"===Sl(e).operation?e:(0,Ol.Vn)(e,{OperationDefinition:{enter:function(e){return g(g({},e),{operation:"query"})}}})}function Sp(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__?yc(n&&1===n.length,"Incorrect number of arguments for the @"+r+" directive."):yc(n&&1===n.length,40);var i=n[0];__DEV__?yc(i.name&&"if"===i.name.value,"Invalid argument for the @"+r+" directive."):yc(i.name&&"if"===i.name.value,41);var o=i.value;__DEV__?yc(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @"+r+" directive must be a variable or a boolean value."):yc(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__?yc(void 0!==i,"Invalid variable referenced in @"+n.name.value+" directive."):yc(void 0!==i,39)):i=r.value.value,"skip"===n.name.value?!i:i})}function Tp(e,t){return function(e){var t=[];return(0,Ol.Vn)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some(function(t){return e.indexOf(t)>-1})}function Cp(e){return e&&Tp(["client"],e)&&Tp(["export"],e)}var wp=new Map;function Pp(e){var t=wp.get(e)||1;return wp.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function Dp(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function Ap(e){function t(t){Object.defineProperty(e,t,{value:tl})}return sp&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Op(e){return e&&"function"==typeof e.then}var Np,Rp=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],Dp(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),Dp(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?Op(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(),Dp(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 tl(t)]),Op(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}(tl);function Fp(e){return!!e&&e<7}Ap(Rp),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"}(Np||(Np={}));var kp=Object.prototype.toString;function xp(e){return Up(e)}function Up(e,t){switch(kp.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]=Up(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]=Up(e[n],t)}),r;default:return e}}var Mp=Object.assign,Lp=Object.hasOwnProperty,jp=!1,Vp=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=Bp)}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=bl(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||Np.ready,r=g(g({},t),{loading:Fp(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),Hl(r.data,{})&&(r.data=void 0),a.complete?(r.networkStatus!==Np.loading||"cache-first"!==o&&"cache-only"!==o||(r.networkStatus=Np.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||Gp(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!Hl(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||Hl(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&&Lp.call(e,"variables")){var i=Il(this.options.query),o=i.variableDefinitions;o&&o.some(function(e){return"variables"===e.variable.name.value})||__DEV__&&yc.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&&!Hl(this.options.variables,e)&&(n.variables=this.options.variables=g(g({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,Np.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=Np.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,Np.fetchMore).then(function(r){var i=r.data,o=e.updateQuery;return o?(__DEV__&&!jp&&(__DEV__&&yc.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."),jp=!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__&&yc.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 Hl(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},Np.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__?yc(n,"Attempted to start a polling query without a polling interval."):yc(n,12),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(Fp(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},Np.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:xp(e),variables:t}),Ac(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===Np.refetch||t===Np.fetchMore||t===Np.poll,i=this.options.variables,o=r?Bl(this.options,e):Mp(this.options,Bl(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!Hl(e.variables,i)&&(o.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=Np.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),Dp(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=g(g({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:Np.error,loading:!1});this.updateLastResult(n,t),Dp(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}(tl);function Bp(e){__DEV__&&yc.error("Unhandled error",e.message,e.stack)}function Gp(e){__DEV__&&Ac(e)&&__DEV__&&yc.debug("Missing cache result fields: "+e.map(function(e){return e.path.join(".")}).join(", "),e)}Ap(Vp);var qp=Object.prototype.hasOwnProperty;function $p(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Qp(e)}function Qp(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new zp,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var Hp=function(e,t,n){return this.merge(e[n],t[n])},zp=function(){function e(e){void 0===e&&(e=Hp),this.reconciler=e,this.isObject=nl,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 nl(t)&&nl(e)?(Object.keys(t).forEach(function(i){if(qp.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 nl(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 Wp=null;const Zp={};let Yp=1;function Kp(e){try{return e()}catch(e){}}const Jp="@wry/context:Slot",Xp=Kp(()=>globalThis)||Kp(()=>global)||Object.create(null),ed=Xp[Jp]||Array[Jp]||function(e){try{Object.defineProperty(Xp,Jp,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",Yp++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=Wp;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===Zp)break;return e!==Wp&&(Wp.slots[this.id]=t),!0}return Wp&&(Wp.slots[this.id]=Zp),!1}getValue(){if(this.hasValue())return Wp.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=Wp;Wp={parent:o,slots:i};try{return t.apply(r,n)}finally{Wp=o}}static bind(e){const t=Wp;return function(){const n=Wp;try{return Wp=t,e.apply(this,arguments)}finally{Wp=n}}}static noContext(e,t,n){if(!Wp)return e.apply(n,t);{const r=Wp;try{return Wp=null,e.apply(n,t)}finally{Wp=r}}}}),{bind:td,noContext:nd}=ed;function rd(){}var id,od=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=rd),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}(),ad=new ed,sd=Object.prototype.hasOwnProperty,ud=void 0===(id=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:id;function cd(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var ld=[];function pd(e,t){if(!e)throw new Error(t||"assertion failure")}function dd(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var fd=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&&!gd(this))return hd(this),this.value[0]},e.prototype.recompute=function(e){return pd(!this.recomputing,"already recomputing"),hd(this),gd(this)?function(e,t){return Sd(e),ad.withValue(e,md,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{cd(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,gd(e)||vd(e)}(e),dd(e.value)}(this,e):dd(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,yd(this),cd(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),Sd(this),bd(this,function(t,n){t.setDirty(),Td(t,e)})},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=ld.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(ud(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),ld.push(this.deps),this.deps=null)},e.count=0,e}();function hd(e){var t=ad.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),gd(e)?Ed(t,e):_d(t,e),t}function md(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 gd(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function yd(e){bd(e,Ed)}function vd(e){bd(e,_d)}function bd(e,t){var n=e.parents.size;if(n)for(var r=ud(e.parents),i=0;i<n;++i)t(r[i],e)}function Ed(e,t){pd(e.childValues.has(t)),pd(gd(t));var n=!gd(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=ld.pop()||new Set;e.dirtyChildren.add(t),n&&yd(e)}function _d(e,t){pd(e.childValues.has(t)),pd(!gd(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()),Id(e,t),gd(e)||vd(e)}function Id(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(ld.length<100&&ld.push(n),e.dirtyChildren=null))}function Sd(e){e.childValues.size>0&&e.childValues.forEach(function(t,n){Td(e,n)}),e.forgetDeps(),pd(null===e.dirtyChildren)}function Td(e,t){t.parents.delete(e),e.childValues.delete(t),Id(e,t)}var Cd={setDirty:!0,dispose:!0,forget:!0};function wd(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=ad.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(cd(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&sd.call(Cd,n)?n:"setDirty";ud(r).forEach(function(e){return e[i]()}),t.delete(e),cd(r)}},r}function Pd(){var e=new ip("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}Pd();var Dd=new Set;function Ad(e,t){void 0===t&&(t=Object.create(null));var n=new od(t.max||Math.pow(2,16),function(e){return e.dispose()}),r=t.keyArgs,i=t.makeCacheKey||Pd(),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 fd(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),Dd.add(n),ad.hasValue()||(Dd.forEach(function(e){return e.clean()}),Dd.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 Od=null,Nd={},Rd=1,Fd="@wry/context:Slot",kd=Array,xd=kd[Fd]||function(){var e=function(){function e(){this.id=["slot",Rd++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=Od;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Nd)break;return e!==Od&&(Od.slots[this.id]=t),!0}return Od&&(Od.slots[this.id]=Nd),!1},e.prototype.getValue=function(){if(this.hasValue())return Od.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=Od;Od={parent:a,slots:o};try{return t.apply(r,n)}finally{Od=a}},e.bind=function(e){var t=Od;return function(){var n=Od;try{return Od=t,e.apply(this,arguments)}finally{Od=n}}},e.noContext=function(e,t,n){if(!Od)return e.apply(n,t);var r=Od;try{return Od=null,e.apply(n,t)}finally{Od=r}},e}();try{Object.defineProperty(kd,Fd,{value:kd[Fd]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();xd.bind,xd.noContext;var Ud=new xd,Md=new WeakMap;function Ld(e){var t=Md.get(e);return t||Md.set(e,t={vars:new Set,dep:wd()}),t}function jd(e){Ld(e).vars.forEach(function(t){return t.forgetCache(e)})}function Vd(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){Ld(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=Ud.getValue();s&&(i(s),Ld(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),Ld(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var Bd=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=$p(t.resolvers,e)}):this.resolvers=$p(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 Tp(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){vl(e);var t=vp([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,Ol.Vn)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return gl(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,Ol.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 Ol.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Ip(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=Sl(e),s=_l(e),u=il(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 Sp(e,o)?gl(e)?[2,this.resolveField(e,t,n).then(function(t){var n;void 0!==t&&a.push(((n={})[hl(e)]=t,n))})]:(yl(e)?s=e:(s=r[e.name.value],__DEV__?yc(s,"No fragment named "+e.name.value):yc(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 Qp(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=hl(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(Ud.withValue(this.cache,p,[t,fl(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}(),Gd=new(op?WeakMap:Map);function qd(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return Gd.set(e,(Gd.get(e)+1)%1e15),n.apply(this,arguments)})}function $d(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Qd=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;Gd.has(n)||(Gd.set(n,0),qd(n,"evict"),qd(n,"modify"),qd(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||Np.loading;return this.variables&&this.networkStatus!==Np.loading&&!Hl(this.variables,e.variables)&&(t=Np.setVariables),Hl(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(){$d(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&&Hl(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||Hl(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;$d(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(Fp(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&&Hl(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===Gd.get(this.cache)&&Hl(t,n.variables)&&Hl(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=Ac(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(Hd(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:Gd.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=Np.ready},e.prototype.markError=function(e){return this.networkStatus=Np.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Hd(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!dp(e);return!r&&n&&e.data&&(r=!0),r}var zd=Object.prototype.hasOwnProperty,Wd=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(op?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 Bd({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 gc("QueryManager stopped while query was in flight"):new gc(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__?yc(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):yc(t,14),__DEV__?yc("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."):yc("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 pp(s.getObservableFromLink(t,g(g({},y),{optimisticResponse:r}),n,!1),function(p){if(dp(p)&&"none"===d)throw new Oc({graphQLErrors:p.errors});o&&(o.loading=!1,o.error=null);var f=g({},p);return"function"==typeof a&&(a=a(f)),"ignore"===d&&dp(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 Oc?t:new Oc({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&&Hd(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&&zd.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&&El(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__&&yc.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),vp([Ep],vl(t))),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:Cp(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:Tl(bl(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 Qd(this),n=new Vp({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__?yc(e.query,"query option is required. You must specify your GraphQL document in the query option."):yc(e.query,16),__DEV__?yc("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):yc("Document"===e.query.kind,17),__DEV__?yc(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):yc(!e.returnPartialData,18),__DEV__?yc(!e.pollInterval,"pollInterval option only supported on watchQuery."):yc(!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 gc("Store reset while query was in flight (not completed in link chain)"):new gc(20)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=Np.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):nl(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):nl(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=Pp("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new Vp({queryManager:t,queryInfo:i,options:g(g({},e),{fetchPolicy:"network-only"})});yc(o.queryId===r),i.setObservableQuery(o),n.set(r,o)}),__DEV__&&r.size&&r.forEach(function(e,t){e||__DEV__&&yc.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&&(Hd(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),dp(o))throw new Oc({graphQLErrors:o.errors});return o})};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,s).then(u);return new tl(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:El(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=cp(n);if(!(o=p.get(d))){var f=new Rp([Vl(c,l)]);p.set(d,o=f),f.cleanup(function(){p.delete(d)&&p.size<1&&u.delete(s)})}}else o=new Rp([Vl(c,l)])}else o=new Rp([tl.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=pp(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 pp(this.getObservableFromLink(e.document,n.context,n.variables),function(i){var o=Ac(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new Oc({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||Np.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors),a},function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new Oc({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=Np.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 Rp(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?Pp("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 Qd&&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||Np.loading);var a=t.result;!__DEV__||c||Hl(a,{})||Gp(t.missing);var s=function(e){return tl.of(g({data:e,loading:Fp(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===Np.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&&Fp(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 Qd(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}(),Zd=!1;function Yd(e,t){return Bl(e,t,t.variables&&{variables:g(g({},e.variables),t.variables)})}var Kd=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 jl({uri:n,credentials:r,headers:i}):Al.empty()),!o)throw __DEV__?new gc("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 gc(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),!Zd&&__DEV__&&(Zd=!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__&&yc.log("Download the Apollo DevTools for a better development experience: "+C)}this.version="3.4.17",this.localState=new Bd({cache:o,client:this,resolvers:y,fragmentMatcher:b}),this.queryManager=new Wd({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=Yd(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=Yd(this.defaultOptions.query,e)),__DEV__?yc("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."):yc("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=Yd(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 Vl(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__&&yc.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}(),Jd=function(){function e(){this.getFragmentDoc=Ad(rl)}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}(),Xd=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 ef(e){return __DEV__&&(t=e,(n=new Set([t])).forEach(function(e){nl(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){nl(e[t])&&n.add(e[t])})})),e;var t,n}var tf=Object.prototype.hasOwnProperty;function nf(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 rf={dataIdFromObject:nf,addTypename:!0,resultCaching:!0,canonizeResults:!1};function of(e){var t=e.canonizeResults;return void 0===t?rf.canonizeResults:t}var af=/^[_a-z][_0-9a-z]*/i;function sf(e){var t=e.match(af);return t?t[0]:e}function uf(e,t,n){return!!nl(t)&&(Array.isArray(t)?t.every(function(t){return uf(e,t,n)}):e.selections.every(function(e){if(gl(e)&&Sp(e,n)){var r=hl(e);return tf.call(t,r)&&(!e.selectionSet||uf(e.selectionSet,t[r],n))}return!0}))}function cf(e){return nl(e)&&!sl(e)&&!Array.isArray(e)}var lf=Object.create(null),pf=function(){return lf},df=Object.create(null),ff=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 ef(sl(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return sl(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return al(e);if(sl(e))return e;var r=n.policies.identify(e)[0];if(r){var i=al(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),tf.call(this.data,e)){var n=this.data[e];if(n&&tf.call(n,t))return n[t]}return"__typename"===t&&tf.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof yf?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),tf.call(this.data,e)?this.data[e]:this instanceof yf?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;sl(e)&&(e=e.__ref),sl(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__?yc("string"==typeof n,"store.merge expects a string ID"):yc("string"==typeof n,1);var a=new zp(bf).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=sf(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof yf||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:lf,INVALIDATE:df,isReference:sl,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||al(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(u){var c=sf(u),l=r[u];if(void 0!==l){var p="function"==typeof t?t:t[u]||t[c];if(p){var d=p===pf?lf:p(ef(l),g(g({},s),{fieldName:c,storeFieldName:u,storage:n.getStorage(e,u)}));d===df?n.group.dirty(e,u):(d===lf&&(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 yf?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]=pf,r):pf)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(tf.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof yf&&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){tf.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&&tf.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 yf?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){tf.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 yf;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!tf.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){sl(e)&&(t[e.__ref]=!0),nl(e)&&Object.keys(e).forEach(function(t){var n=e[t];nl(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),hf=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?wd():null,this.keyMaker=new ip(op)},e.prototype.depend=function(e,t){if(this.d){this.d(mf(e,t));var n=sf(t);n!==t&&this.d(mf(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(mf(e,t),"__exists"===t?"forget":"setDirty")},e}();function mf(e,t){return t+"#"+e}function gf(e,t){Ef(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 hf(i))||this;return a.stump=new vf(a),a.storageTrie=new ip(op),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}(ff||(ff={}));var yf=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){Hl(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 tf.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}(ff),vf=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new hf(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}(yf);function bf(e,t,n){var r=e[n],i=t[n];return Hl(r,i)?r:i}function Ef(e){return!!(e instanceof ff&&e.group.caching)}function _f(e,t){return new Xd(e.message,t.path.slice(),t.query,t.variables)}function If(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Sf=function(){function e(e){var t=this;this.knownResults=new(op?WeakMap:Map),this.config=Bl(e,{addTypename:!1!==e.addTypename,canonizeResults:of(e)}),this.canon=e.canon||new up,this.executeSelectionSet=Ad(function(e){var n,r=e.context.canonizeResults,i=If(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:(gf(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:If,makeCacheKey:function(e,t,n,r){if(Ef(n.store))return n.store.makeCacheKey(e,sl(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=Ad(function(e){return gf(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(Ef(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new up},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({},Tl(Il(n))),o);var p=al(i),d=this.executeSelectionSet({selectionSet:Sl(n).selectionSet,objectOrReference:p,enclosingRef:p,context:{store:t,query:n,policies:l,variables:o,varString:cp(o),canonizeResults:c,fragmentMap:il(_l(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(Ef(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(sl(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:[_f(__DEV__?new gc("Dangling reference to missing "+r.__ref+" object"):new gc(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(Sp(e,a))if(gl(e)){var u=s.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),l=hl(e);o.path.push(l),void 0===u?bp.added(e)||d().push(_f(__DEV__?new gc("Can't find field '"+e.name.value+"' on "+(sl(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2))):new gc(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:sl(u)?u:i,context:o}))):o.canonizeResults&&(u=t.canon.pass(u)),void 0!==u&&c.push(((n={})[l]=u,n)),yc(o.path.pop()===l)}else{var m=ol(e,o.fragmentMap);m&&s.fragmentMatches(m,p)&&m.selectionSet.selections.forEach(h.add,h)}});var m=Qp(c);return l.result=o.canonizeResults?this.canon.admit(m):ef(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),yc(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:sl(e)?e:o,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){nl(n)&&(__DEV__?yc(!sl(n),"Missing selection set for object of type "+function(e,t){return sl(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)+" returned for query field "+t.name.value):yc(!sl(n),7),Object.values(n).forEach(r.add,r))})}}(a.store,r,e),yc(a.path.pop()===t),e))}),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),Tf=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=bl(r),c=new zp;a=g(g({},Tl(u)),a);var l={store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:cp(a),fragmentMap:il(_l(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(!sl(p))throw __DEV__?new gc("Could not identify object "+JSON.stringify(i)):new gc(8);return l.incomingById.forEach(function(t,r){var i=t.fields,o=t.mergeTree,a=t.selections,s=al(r);if(o&&o.map.size){var u=n.applyMerges(o,s,i,l);if(sl(u))return;i=u}if(__DEV__&&!l.overwrite){var c=new Set;a.forEach(function(e){gl(e)&&e.selectionSet&&c.add(e.name.value)}),Object.keys(i).forEach(function(e){(function(e){return c.has(sf(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&&!sl(o)&&!Hl(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=sf(n),c=s+"."+u;if(!Of.has(c)){Of.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__&&yc.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=al(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]||ml(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(Sp(e,o.variables))if(gl(e)){var i=hl(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=wf(a,l),d=t.processFieldValue(u,e,o,p),g=void 0;if(e.selectionSet&&!(g=o.store.getFieldValue(d,"__typename"))&&sl(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}:Af(a,l),f=o.merge(f,((n={})[l]=d,n))}else o.clientOnly||bp.added(e)||__DEV__&&yc.error(("Missing field '"+hl(e)+"' while writing result "+JSON.stringify(r,null,2)).substring(0,1e3));o.clientOnly=c}else{var b=ol(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=Pf(g.mergeTree,a),g.selections.forEach(m.add,m),g.selections=m):o.incomingById.set(n,{fields:f,mergeTree:Df(a)?void 0:a,selections:m}),al(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,wf(r,o));return Af(r,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?xp(e):e},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!sl(n)){var s,u=Array.isArray(n)||!sl(t)&&!cf(t)?void 0:t,c=n;u&&!i&&(i=[sl(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&&yc(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}(),Cf=[];function wf(e,t){var n=e.map;return n.has(t)||n.set(t,Cf.pop()||{map:new Map}),n.get(t)}function Pf(e,t){if(e===t||!t||Df(t))return e;if(!e||Df(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,Pf(e,t.map.get(n))),o.delete(n)}),o.forEach(function(n){i.map.set(n,Pf(t.map.get(n),e.map.get(n)))})}return i}function Df(e){return!e||!(e.info||e.map.size)}function Af(e,t){var n=e.map,r=n.get(t);r&&Df(r)&&(Cf.push(r),n.delete(t))}var Of=new Set;function Nf(e){var t=Pp("stringifyForDisplay");return JSON.stringify(e,function(e,n){return void 0===n?t:n}).split(JSON.stringify(t)).join("<undefined>")}function Rf(e){return void 0!==e.args?e.args:e.field?fl(e.field,e.variables):null}ll.setStringify(cp);var Ff=function(){},kf=function(e,t){return t.fieldName},xf=function(e,t,n){return(0,n.mergeObjects)(e,t)},Uf=function(e,t){return t},Mf=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:nf},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?ml(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=Bf(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),tf.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?xf:!1===t?Uf:e.merge}a(r,t.merge),r.keyFn=!1===i?Ff:Array.isArray(i)?Bf(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?kf:Array.isArray(s)?Vf(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||kf)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?yc(!r||r===e,"Cannot change root "+e+" __typename more than once"):yc(!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(af);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!tf.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__&&yc.warn("Inferring subtype "+t+" of supertype "+o),a.add(o)),!0;d.forEach(u),c&&p===s.length-1&&uf(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=Rf(e);o;){var u=o(s,a);if(!Array.isArray(u)){t=u||r;break}o=Vf(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 ul(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 ul(r,n,i,t)})),ll(e.name.value,r,n)}(e.field,e.variables):ll(r,Rf(e))),!1===t?r:r===sf(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=sf(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=Lf(this,n,e,t,t.store.getStorage(sl(n)?n.__ref:n,i));return Ud.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===xf?jf(r.store)(e,t):s===Uf?t:(r.overwrite&&(e=void 0),s(e,t,Lf(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function Lf(e,t,n,r,i){var o=e.getStoreFieldName(n),a=sf(o),s=n.variables||r.variables,u=r.store,c=u.toReference,l=u.canRead;return{args:Rf(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:sl,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(!nl(n))return void(__DEV__&&yc.warn("Unexpected readField arguments: "+Nf(Array.from(arguments))));o=g({},n),tf.call(n,"from")||(o.from=t)}return __DEV__&&void 0===o.from&&__DEV__&&yc.warn("Undefined 'from' passed to readField with arguments "+Nf(Array.from(arguments))),void 0===o.variables&&(o.variables=s),e.readField(o,r)},mergeObjects:jf(r.store)}}function jf(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new gc("Cannot automatically merge arrays"):new gc(3);if(nl(t)&&nl(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(sl(t)&&cf(n))return e.merge(t.__ref,n),t;if(cf(t)&&sl(n))return e.merge(t,n.__ref),n;if(cf(t)&&cf(n))return g(g({},t),n)}return n}}function Vf(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify(qf(t,e,!1)):n.fieldName}}function Bf(e){var t=new ip(op);return function(n,r){var i;if(r.selectionSet&&r.fragmentMap){var o=t.lookupArray([r.selectionSet,r.fragmentMap]);i=o.aliasMap||(o.aliasMap=Gf(r.selectionSet,r.fragmentMap))}var a=r.keyObject=qf(n,e,!0,i);return r.typename+":"+JSON.stringify(a)}}function Gf(e,t){var n=Object.create(null),r=new Set([e]);return r.forEach(function(e){e.selections.forEach(function(e){if(gl(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]=Gf(e.selectionSet,t))}else{var a=ol(e,t);a&&r.add(a.selectionSet)}})}),n}function qf(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]=qf(e[i],t,n,u)}}else{var c=r&&r.aliases,l=c&&c[t]||t;tf.call(e,l)?a[o=t]=e[i=l]:(__DEV__?yc(!n,"Missing field '"+l+"' while computing key fields"):yc(!n,4),i=o=void 0)}}),a}var $f=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=Vd,n.txCount=0,n.config=function(e){return Bl(rf,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new Mf({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 ff.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 Tf(this,this.storeReader=new Sf({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:of(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=Ad(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(Ef(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,cp({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 Xd)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(tf.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||Ld(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&&jd(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){cp.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 sl(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(tf.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(),cp.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),jd(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=bp(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&&Hl(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(Jd),Qf=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}(),Hf=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 Qf(e,t,this.delayFor,this.retryIf);return n.start(),new tl(function(e){return n.subscribe(e),function(){n.unsubscribe(e)}})},t}(Al);const zf="4.11.0";var Wf=function(e){return!!e&&![500,400].includes(e.statusCode)};var Zf=[rt.Incremental,rt.Fluctuating];function Yf(e){return(null==e?void 0:e.featureType)===He.Number&&!(0,Lu.isNil)(e.meterType)&&Zf.includes(e.meterType)}var Kf=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 Yf(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 Jf(e){return e.calculatedEntitlement.type===we.Feature}function Xf(e){return e.calculatedEntitlement.type===we.Credit}var eh,th=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 Kf(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 Kf(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,Lu.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}(),nh=(new Date(0),function(e,t){return{cacheMiss:!1,entitlements:e,accessDeniedReason:t,globalCustomerMissing:!1}}),rh=((eh={})[Pe.CustomerNotFound]=R.CustomerNotFound,eh[Pe.NoActiveSubscription]=R.NoActiveSubscription,eh[Pe.CustomerIsArchived]=R.CustomerIsArchived,eh);function ih(e){return e?rh[e]:null}var oh=n(8879),ah=n.n(oh);var sh=function(){function e(){}return e.prototype.transform=function(e){for(var t=new Date,n=th.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(!Jf(e))return e;var o=e.calculatedEntitlement,a=e.usageData;if(!(Yf(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=ah()(t),i=ah()(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 Kf(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}(),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)},ch=function(){function e(){}return e.prototype.transform=function(e){for(var t=th.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(!Jf(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 Kf(uh(uh({},e.calculatedEntitlement),{accessDeniedReason:t}),e.usageData)},e}(),lh=function(){function e(){this.transformations=[new sh,new ch]}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}(),ph=function(){function e(e){this.query=e}return e.prototype.transform=function(e){var t=e.get(this.query);if(!t)return th.empty();var n=this.getCreditRateDependency(t,e);return th.fromEntitlements((0,Lu.compact)([t,n]))},e.prototype.getCreditRateDependency=function(e,t){if(Jf(e)){var n=e.calculatedEntitlement.creditRate;if(n)return t.get({type:we.Credit,id:n.currencyId})}},e}(),dh=function(){function e(e,t,n){var r=this;this.entitlements=e,this.instrumentation=t,this.cacheMapper=n,this.freshen=new lh,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=th.fromInput(this.cacheMapper,r).entitlements;return this.entitlements.set(o,{entitlements:a,accessDeniedReason:ih(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 ph(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}),nh(h,d)},e}(),fh=function(e){return e?new Date(e):void 0},hh={type:"BOOLEAN",isFallback:!0,hasAccess:!1,accessDeniedReason:R.Unknown},mh={type:"NUMERIC",isFallback:!0,hasAccess:!1,isUnlimited:!1,accessDeniedReason:R.Unknown},gh={type:"METERED",isFallback:!0,hasAccess:!1,isUnlimited:!1,hasSoftLimit:!1,currentUsage:0,requestedUsage:1,accessDeniedReason:R.Unknown},yh={type:"ENUM",isFallback:!0,hasAccess:!1,enumValues:[],accessDeniedReason:R.Unknown},vh={isFallback:!0,hasAccess:!1,accessDeniedReason:R.Unknown,currency:{currencyId:""},usageLimit:0,currentUsage:0,remaining:0,hasSoftLimit:!1},bh=function(){function e(e){Object.assign(this,e)}return e.prototype.getActiveSubscriptions=function(){return this.subscriptions.filter(function(e){return e.status===Xt.Active})},e.prototype.getActiveTrials=function(){return this.subscriptions.filter(function(e){return e.status===Xt.InTrial})},e.prototype.getActivePromotionalEntitlements=function(){return this.promotionalEntitlements.filter(function(e){return e.status===Tt.Active})},e}(),Eh=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}:Xf(r)?this.decideCreditAccess(r):Jf(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 He.Boolean:return{hasAccess:!0};case He.Enum:var a=(0,Lu.difference)(n,e.calculatedEntitlement.enumValues||[]);return(0,Lu.isEmpty)(a)?{hasAccess:!0}:{hasAccess:!1,accessDeniedReason:R.RequestedValuesMismatch};case He.Number:if(o===rt.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}(),_h=function(){return _h=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},_h.apply(this,arguments)},Ih=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:fh(t.effectiveEndDate),experimentInfo:(0,Lu.omit)(t.experimentInfo,"__typename"),billingSyncError:t.billingSyncError||void 0}},this.mapApplySubscriptionResults=function(t,n){var r=t.applySubscription.subscription;return{subscription:r?e.mapSlimSubscription(_h(_h({},r),{customer:{id:"",refId:n}})):void 0}},this.mapFullCustomer=function(t){var n;return new bh(_h(_h({},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,Lu.map)(t.subscriptions,function(t){return e.mapFullSubscription(t)}),coupon:t.coupon?e.mapCoupon(t.coupon):void 0,promotionalEntitlements:(0,Lu.map)(t.promotionalEntitlements,function(t){return e.mapPromotionalEntitlement(t)}),experimentInfo:(0,Lu.omit)(t.experimentInfo,"__typename")}))}}return e.prototype.mapEntitlement=function(e,t,n,r){if(Jf(e))return this.mapFeatureEntitlement(e,t,n,r);if(Xf(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===He.Number&&(s===rt.Incremental||s===rt.Fluctuating);switch(a){case He.Boolean:return this.mapBooleanEntitlement(e,t);case He.Enum:return this.mapEnumEntitlement(e,t,r);case He.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?_h(_h({},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?_h(_h({},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?_h(_h({},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:fh(u),usagePeriodStart:fh(p),usagePeriodEnd:fh(d),nextResetDate:fh(d),feature:e.calculatedEntitlement.feature?_h(_h({},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:fh(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,Lu.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,Lu.map)(e.entitlements,function(e){return i.mapPackageEntitlement(e)}),inheritedEntitlements:(0,Lu.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,Lu.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===bt.Free||!e.compatibleAddons)return[];var n=e.compatibleAddons;return(e.pricingType===bt.Paid?n.filter(function(e){return e.pricingType===bt.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:Yf(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:fh(e.startDate),endDate:fh(e.endDate),trialEndDate:fh(e.trialEndDate),cancellationDate:fh(e.cancellationDate),currentBillingPeriodEnd:fh(e.currentBillingPeriodEnd),effectiveEndDate:fh(e.effectiveEndDate),metadata:e.additionalMetaData,billingId:e.billingId||void 0,billingLinkUrl:e.billingLinkUrl||void 0,experimentInfo:(0,Lu.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?_h(_h({},e),{createdAt:fh(e.createdAt),updatedAt:fh(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,Lu.map)(e.entitlements,function(e){return r.mapPackageEntitlement(e)}),packageEntitlements:null!==(t=e.packageEntitlements)&&void 0!==t?t:[],pricePoints:(0,Lu.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:Yf(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:fh(e.credit.usagePeriodEnd),consumed:e.credit.consumed}:void 0,usagePeriodStart:fh(e.usagePeriodStart),usagePeriodEnd:fh(e.usagePeriodEnd),nextResetDate:fh(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=fh(e.timestamp))&&void 0!==t?t:new Date,credit:e.credit?{currencyId:e.credit.currencyId,currentUsage:e.credit.currentUsage,usageLimit:e.credit.usageLimit,usagePeriodEnd:fh(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 _h(_h(_h({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:_h(_h({},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?_h({},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 _h(_h({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 _h({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,Lu.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===bt.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}(),Sh=function(){return Sh=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},Sh.apply(this,arguments)};function Th(e){return null!=e&&"requestedUsage"in e}function Ch(e){return null!=e&&"requestedValues"in e}function wh(e){var t=e.currencyId,n=e.accessDeniedReason,r=e.fallback,i=void 0===r?{}:r,o=Sh(Sh(Sh(Sh(Sh({},vh),{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 Sh(Sh({},o),{accessDeniedReason:c,remaining:"number"==typeof a&&"number"==typeof s?Math.max(a-s,0):u})}var Ph=function(){return Ph=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},Ph.apply(this,arguments)},Dh=function(){function e(e){this.modelMapper=null!=e?e:new Ih}return e.prototype.evaluateBooleanEntitlement=function(e,t,n){var r,i=Eh.decideEntitlementPolicy({entitlementType:we.Feature,accessDeniedReason:t,entitlement:e});return e&&(null==(r=e.calculatedEntitlement.feature)?void 0:r.featureType)!==He.Boolean?Ph(Ph({},n),{accessDeniedReason:R.FeatureTypeMismatch}):e?this.modelMapper.mapBooleanEntitlement(e,i):Ph(Ph({type:"BOOLEAN"},i),{isFallback:!1})},e.prototype.evaluateNumericEntitlement=function(e,t,n){var r,i=Eh.decideEntitlementPolicy({entitlementType:we.Feature,accessDeniedReason:t,entitlement:e});return e&&((null==(r=e.calculatedEntitlement.feature)?void 0:r.featureType)!==He.Number||!(0,Lu.isNil)(r.meterType)&&r.meterType!=rt.None)?Ph(Ph({},n),{accessDeniedReason:R.FeatureTypeMismatch}):e?this.modelMapper.mapNumericEntitlement(e,i):Ph(Ph({type:"NUMERIC"},i),{isFallback:!1,isUnlimited:!1})},e.prototype.evaluateMeteredEntitlement=function(e,t,n,r){var i=Eh.decideEntitlementPolicy({entitlementType:we.Feature,accessDeniedReason:t,entitlement:e,requestedUsage:r});return e&&!Yf(e.calculatedEntitlement.feature)?Ph(Ph({},n),{accessDeniedReason:R.FeatureTypeMismatch}):e?this.modelMapper.mapMeteredEntitlement(e,i,r):Ph(Ph({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=Eh.decideEntitlementPolicy({entitlementType:we.Feature,accessDeniedReason:t,entitlement:e,requestedValues:r});return e&&(null==(i=e.calculatedEntitlement.feature)?void 0:i.featureType)!==He.Enum?Ph(Ph({},n),{accessDeniedReason:R.FeatureTypeMismatch}):e?this.modelMapper.mapEnumEntitlement(e,o,r):Ph(Ph({type:"ENUM"},o),{isFallback:!1,enumValues:[],requestedValues:r||[]})},e.prototype.evaluateCreditEntitlement=function(e,t,n,r){var i=Eh.decideEntitlementPolicy({entitlementType:we.Credit,accessDeniedReason:t,entitlement:e});return e?this.modelMapper.mapCreditEntitlement(e,i):Ph(Ph({},wh({currencyId:n,accessDeniedReason:i.accessDeniedReason,fallback:r})),{hasAccess:i.hasAccess,isFallback:!!r})},e.prototype.evaluateEntitlement=function(e,t,n,r,i){var o,a=Th(r)?r.requestedUsage:void 0,s=Ch(r)?r.requestedValues:void 0,u=Eh.decideEntitlementPolicy({entitlementType:e.type,accessDeniedReason:n,entitlement:t,requestedUsage:a,requestedValues:s});return t?this.modelMapper.mapEntitlement(t,u,a,s):i?Ph(Ph({},i),{accessDeniedReason:null!==(o=u.accessDeniedReason)&&void 0!==o?o:i.accessDeniedReason,isFallback:!0}):function(e,t,n){if(e.type===we.Credit)return wh({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 Th(e)?Sh(Sh({},gh),n):Ch(e)?Sh(Sh({},yh),n):function(e){var t=null==e?void 0:e.fallback;return null!=e&&null!=t&&"value"in t}(e)?Sh(Sh({},mh),n):Sh(Sh({},hh),n)}(t),i=r.hasAccess?void 0:null!=n?n:r.accessDeniedReason;return Sh(Sh({},r),{accessDeniedReason:i,isFallback:!0})}(e,r,u.accessDeniedReason)},e}();function Ah(e){return"feature"in e}var 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 e?Object.keys(e).map(function(t){return Oh({isFallback:!0,accessDeniedReason:R.Unknown,feature:{id:t}},e[t])}):[]}var Rh=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=fh(e.usageUpdatedAt))||void 0===t?void 0:t.getTime())&&void 0!==n?n:null;return{entitlement:new Kf({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=fh(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=fh(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=fh(e.usageUpdatedAt))||void 0===n?void 0:n.getTime())&&void 0!==r?r:null;return{entitlement:new Kf({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=fh(e.validUntil))||void 0===o?void 0:o.getTime())||null,usagePeriodAnchor:(null===(a=fh(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=fh(e.usagePeriodStart))||void 0===s?void 0:s.getTime())&&void 0!==u?u:null,usagePeriodEnd:null!==(l=null===(c=fh(e.usagePeriodEnd))||void 0===c?void 0:c.getTime())&&void 0!==l?l:null}),usageUpdatedAt:f}},e}(),Fh=function(){function e(e){Object.assign(this,e)}return e.prototype.getActiveSubscriptions=function(){return this.subscriptions.filter(function(e){return e.status===Xt.Active})},e.prototype.getActiveTrials=function(){return this.subscriptions.filter(function(e){return e.status===Xt.InTrial})},e.prototype.getActivePromotionalEntitlements=function(){return this.promotionalEntitlements.filter(function(e){return e.status===Tt.Active})},e}(),kh=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:Ks,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}();const xh=kh;var Uh,Mh=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())})},Lh=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])}}},jh=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 Dh,this.loadingEntitlements=null,this.entitlementsApi=new xh(r,i)}return e.prototype.refresh=function(){return Mh(this,void 0,Promise,function(){return Lh(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 Mh(this,void 0,Promise,function(){return Lh(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 Mh(this,void 0,void 0,function(){var t,n,r,i;return Lh(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,Lu.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 Mh(this,void 0,Promise,function(){return Lh(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 Mh(this,void 0,Promise,function(){return Lh(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}(),Vh=n(1434),Bh=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)}}(),Gh=function(e){function t(){return e.call(this)||this}return Bh(t,e),t}(Vh.TypedEmitter);!function(e){e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="READY",e.FAILED="FAILED"}(Uh||(Uh={}));var qh=function(){function e(e){this.eventEmitter=e,this.initializationPromise=null,this.initializationStatus=Uh.IN_PROGRESS,this.initFailureError=null}return e.prototype.getInitializationPromise=function(){var e=this;return this.initializationPromise?this.initializationPromise:this.initializationStatus===Uh.SUCCESS?Promise.resolve():this.initializationStatus===Uh.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=Uh.SUCCESS,this.eventEmitter.emit("initializeSuccessfully")},e.prototype.signalFailedInit=function(e){this.initializationStatus=Uh.FAILED,this.initFailureError=e,this.eventEmitter.emit("initializeFailed",e)},e}();const $h=Object.prototype.toString;function Qh(e){switch($h.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return tm(e,Error)}}function Hh(e,t){return $h.call(e)===`[object ${t}]`}function zh(e){return Hh(e,"ErrorEvent")}function Wh(e){return Hh(e,"DOMError")}function Zh(e){return Hh(e,"String")}function Yh(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Kh(e){return null===e||Yh(e)||"object"!=typeof e&&"function"!=typeof e}function Jh(e){return Hh(e,"Object")}function Xh(e){return"undefined"!=typeof Event&&tm(e,Event)}function em(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function tm(e,t){try{return e instanceof t}catch(e){return!1}}function nm(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function rm(e){return e&&e.Math==Math?e:void 0}const im="object"==typeof globalThis&&rm(globalThis)||"object"==typeof window&&rm(window)||"object"==typeof self&&rm(self)||"object"==typeof n.g&&rm(n.g)||function(){return this}()||{};function om(){return im}function am(e,t,n){const r=n||im,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const sm=om();function um(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=cm(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 cm(e,t){const n=e,r=[];let i,o,a,s,u;if(!n||!n.tagName)return"";if(sm.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&&Zh(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 lm="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,pm=["debug","info","warn","error","log","assert","trace"],dm={};function fm(e){if(!("console"in im))return e();const t=im.console,n={},r=Object.keys(dm);r.forEach(e=>{const r=dm[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}const hm=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return lm?pm.forEach(n=>{t[n]=(...t)=>{e&&fm(()=>{im.console[n](`Sentry Logger [${n}]:`,...t)})}}):pm.forEach(e=>{t[e]=()=>{}}),t}();function mm(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function gm(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const r=e[t];try{nm(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function ym(e,t=[],n=!1){return t.some(t=>function(e,t,n=!1){return!!Zh(e)&&(Hh(t,"RegExp")?t.test(e):!!Zh(t)&&(n?e===t:e.includes(t)))}(e,t,n))}function vm(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"==typeof i&&Em(i,r),e[t]=i}function bm(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){lm&&hm.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Em(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,bm(e,"__sentry_original__",t)}catch(e){}}function _m(e){return e.__sentry_original__}function Im(e){if(Qh(e))return{message:e.message,name:e.name,stack:e.stack,...Tm(e)};if(Xh(e)){const t={type:e.type,target:Sm(e.target),currentTarget:Sm(e.currentTarget),...Tm(e)};return"undefined"!=typeof CustomEvent&&tm(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Sm(e){try{return"undefined"!=typeof Element&&tm(e,Element)?um(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function Tm(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 Cm(e){return wm(e,new Map)}function wm(e,t){if(function(e){if(!Jh(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]=wm(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(wm(e,t))}),r}return e}function Pm(){const e=im,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 Dm(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Am(e){const{message:t,event_id:n}=e;if(t)return t;const r=Dm(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Om(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 Nm(e,t){const n=Dm(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 Rm(e){if(e&&e.__sentry_captured__)return!0;try{bm(e,"__sentry_captured__",!0)}catch(e){}return!1}function Fm(){return Date.now()/1e3}const km=function(){const{performance:e}=im;if(!e||!e.now)return Fm;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();let xm;(()=>{const{performance:e}=im;if(!e||!e.now)return void(xm="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?(xm="timeOrigin",e.timeOrigin):xm="navigationStart":xm="dateNow"})();const Um="production",Mm="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var Lm;function jm(e){return new Bm(t=>{t(e)})}function Vm(e){return new Bm((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(Lm||(Lm={}));class Bm{constructor(e){Bm.prototype.__init.call(this),Bm.prototype.__init2.call(this),Bm.prototype.__init3.call(this),Bm.prototype.__init4.call(this),this._state=Lm.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Bm((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 Bm((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(Lm.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Lm.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===Lm.PENDING&&(em(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Lm.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===Lm.RESOLVED&&e[1](this._value),this._state===Lm.REJECTED&&e[2](this._value),e[0]=!0)})}}}function Gm(){return am("globalEventProcessors",()=>[])}function qm(e){Gm().push(e)}function $m(e,t,n,r=0){return new Bm((i,o)=>{const a=e[r];if(null===t||"function"!=typeof a)i(t);else{const s=a({...t},n);Mm&&a.id&&null===s&&hm.log(`Event processor "${a.id}" dropped event`),em(s)?s.then(t=>$m(e,t,n,r+1).then(i)).then(null,o):$m(e,s,n,r+1).then(i).then(null,o)}})}function Qm(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||km(),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:Pm()),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 Hm(e){return e.transaction}function zm(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:a,tags:s,origin:u}=Wm(e);return Cm({data:r,op:i,parent_span_id:o,span_id:t,status:a,tags:s,trace_id:n,origin:u})}function Wm(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function Zm(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},a=Cm({environment:r.environment||Um,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}function Ym(e){const t=Sg();if(!t)return{};const n=Zm(Wm(e).trace_id||"",t,cg().getScope()),r=Hm(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=Wm(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 Km(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=Cm(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const c=Cm(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const l=Cm(i);l&&Object.keys(l).length&&(e.user={...l,...e.user});const p=Cm(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:zm(t),...e.contexts};const n=Hm(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Ym(t),...e.sdkProcessingMetadata};const r=Wm(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 Jm(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;Xm(e,"extra",n),Xm(e,"tags",r),Xm(e,"user",i),Xm(e,"contexts",o),Xm(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 Xm(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 eg;class tg{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=ng()}static clone(e){return e?e.clone():new tg}clone(){const e=new tg;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&&Qm(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 tg){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(Jh(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=ng(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:Fm(),...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 Km(e,this.getScopeData()),$m([...n,...Gm(),...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:Pm();if(!this._client)return hm.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:Pm();if(!this._client)return hm.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:Pm();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(hm.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 ng(){return{traceId:Pm(),spanId:Pm().substring(16)}}const rg="7.120.4",ig=parseFloat(rg),og=100;class ag{constructor(e,t,n,r=ig){let i,o;this._version=r,t?i=t:(i=new tg,i.setClient(e)),n?o=n:(o=new tg,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 em(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:Pm(),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:Pm(),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:Pm();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=og}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const a={timestamp:Fm(),...e},s=i?fm(()=>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=ug(this);try{e(this)}finally{ug(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Mm&&hm.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return Mm&&!n&&(this.getClient()?hm.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):hm.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"}),Qm(e,t)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=Um}=n&&n.getOptions()||{},{userAgent:o}=im.navigator||{},a=function(e){const t=km(),n={sid:Pm(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Cm({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&&Qm(n,e),n}({release:r,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),s=t.getSession&&t.getSession();return s&&"ok"===s.status&&Qm(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=sg().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);Mm&&hm.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function sg(){return im.__SENTRY__=im.__SENTRY__||{extensions:{},hub:void 0},im}function ug(e){const t=sg(),n=lg(t);return pg(t,e),n}function cg(){const e=sg();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=sg()){return t=e,!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)&&!lg(e).isOlderThan(ig)||pg(e,new ag),lg(e);var t}(e)}function lg(e){return am("hub",()=>new ag,e)}function pg(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}const dg=/\(error: (.*)\)/,fg=/captureMessage|captureException/;const hg="<anonymous>";function mg(e){try{return e&&"function"==typeof e&&e.name||hg}catch(e){return hg}}function gg(e,t=100,n=1/0){try{return vg("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function yg(e,t=3,n=102400){const r=gg(e,t);return i=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?yg(e,t-1,n):r;var i}function vg(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(nm(t))return"[VueViewModel]";if(function(e){return Jh(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: ${mg(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 vg("",p.toJSON(),l-1,i,o)}catch(e){}const d=Array.isArray(t)?[]:{};let f=0;const h=Im(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]=vg(e,t,l-1,i,o),f++}return s(t),d}const bg=new WeakMap;const Eg=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function _g(e,t){return cg().captureEvent(e,t)}function Ig(e,t){cg().addBreadcrumb(e,t)}function Sg(){return cg().getClient()}const Tg=[];function Cg(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function wg(e,t,n){if(n[t.name])Mm&&hm.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===Tg.indexOf(t.name)&&(t.setupOnce(qm,cg),Tg.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)}Mm&&hm.log(`Integration installed: ${t.name}`)}}function Pg(e,t){const n=function(...e){return t(...e)};return n.id=e,n}let Dg;const Ag="FunctionToString",Og=new WeakMap,Ng=Pg(Ag,()=>({name:Ag,setupOnce(){Dg=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=_m(this),n=Og.has(Sg())&&void 0!==t?t:this;return Dg.apply(n,e)}}catch(e){}},setup(e){Og.set(e,!0)}})),Rg=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Fg=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],kg="InboundFilters",xg=Pg(kg,(e={})=>({name:kg,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?[]:Rg],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Fg],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)?(Mm&&hm.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Am(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}`)),Mm&&0===t.length&&hm.error(`Could not extract message for event ${Am(e)}`),t}(e).some(e=>ym(e,t))}(e,t.ignoreErrors)?(Mm&&hm.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Am(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&ym(n,t)}(e,t.ignoreTransactions)?(Mm&&hm.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Am(e)}`),!0):function(e,t){if(!t||!t.length)return!1;const n=Ug(e);return!!n&&ym(n,t)}(e,t.denyUrls)?(Mm&&hm.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Am(e)}.\nUrl: ${Ug(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;const n=Ug(e);return!n||ym(n,t)}(e,t.allowUrls)&&(Mm&&hm.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Am(e)}.\nUrl: ${Ug(e)}`),!0)}(t,o)?null:t}}));function Ug(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 Mm&&hm.error(`Cannot extract url for event ${Am(e)}`),null}}function Mg(e,t,n=250,r,i,o,a){if(!(o.exception&&o.exception.values&&a&&tm(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=Lg(e,t,i,a.originalException,r,o.exception.values,s,0),c=n,u.map(e=>(e.value&&(e.value=mm(e.value,c)),e))))}function Lg(e,t,n,r,i,o,a,s){if(o.length>=n+1)return o;let u=[...o];if(tm(r[i],Error)){jg(a,s);const o=e(t,r[i]),c=u.length;Vg(o,i,c,s),u=Lg(e,t,n,r[i],i,[o,...u],o,c)}return Array.isArray(r.errors)&&r.errors.forEach((r,o)=>{if(tm(r,Error)){jg(a,s);const c=e(t,r),l=u.length;Vg(c,`errors[${o}]`,l,s),u=Lg(e,t,n,r,i,[c,...u],c,l)}}),u}function jg(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 Vg(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 Bg(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 Gg="LinkedErrors",qg=Pg(Gg,(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:Gg,setupOnce(){},preprocessEvent(e,r,i){const o=i.getOptions();Mg(Bg,o.stackParser,o.maxValueLength,n,t,e,r)}}}),$g=s,Qg=im;let Hg=0;function zg(){return Hg>0}function Wg(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(_m(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=>Wg(e,t));return e.apply(this,i)}catch(e){throw Hg++,setTimeout(()=>{Hg--}),function(...e){const t=cg();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&&(Om(e,void 0,void 0),Nm(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),i=e,cg().captureException(i,function(e){if(e)return function(e){return e instanceof tg||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>Eg.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){}Em(r,e),bm(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}const Zg={},Yg={};function Kg(e,t){Zg[e]=Zg[e]||[],Zg[e].push(t)}function Jg(e,t){Yg[e]||(t(),Yg[e]=!0)}function Xg(e,t){const n=e&&Zg[e];if(n)for(const r of n)try{r(t)}catch(t){lm&&hm.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${mg(r)}\nError:`,t)}}let ey=null;function ty(){ey=im.onerror,im.onerror=function(e,t,n,r,i){return Xg("error",{column:r,error:i,line:n,msg:e,url:t}),!(!ey||ey.__SENTRY_LOADER__)&&ey.apply(this,arguments)},im.onerror.__SENTRY_INSTRUMENTED__=!0}let ny=null;function ry(){ny=im.onunhandledrejection,im.onunhandledrejection=function(e){return Xg("unhandledrejection",e),!(ny&&!ny.__SENTRY_LOADER__)||ny.apply(this,arguments)},im.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const iy="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function oy(e,t){const n=sy(e,t),r={type:t&&t.name,value:cy(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function ay(e,t){return{exception:{values:[oy(e,t)]}}}function sy(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(uy.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const uy=/Minified React error #\d+;/i;function cy(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function ly(e,t,n,r,i){let o;if(zh(t)&&t.error)return ay(e,t.error);if(Wh(t)||Hh(t,"DOMException")){const i=t;if("stack"in t)o=ay(e,t);else{const t=i.name||(Wh(i)?"DOMError":"DOMException"),a=i.message?`${t}: ${i.message}`:t;o=py(e,a,n,r),Om(o,a)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return Qh(t)?ay(e,t):Jh(t)||Xh(t)?(o=function(e,t,n,r){const i=Sg(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:Xh(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:dy(t,{isUnhandledRejection:r})}]},extra:{__serialized__:yg(t,o)}};if(n){const t=sy(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,i),Nm(o,{synthetic:!0}),o):(o=py(e,t,n,r),Om(o,`${t}`,void 0),Nm(o,{synthetic:!0}),o)}function py(e,t,n,r){const i={};if(r&&n){const r=sy(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(Yh(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 dy(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(Im(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return mm(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:mm(r,t)}return""}(e),r=t?"promise rejection":"exception";return zh(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Xh(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 fy="GlobalHandlers",hy=Pg(fy,(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:fy,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){!function(){const t="error";Kg(t,t=>{const{stackParser:n,attachStacktrace:r}=yy();if(Sg()!==e||zg())return;const{msg:i,url:o,line:a,column:s,error:u}=t,c=void 0===u&&Zh(i)?function(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=zh(e)?e.message:e,a="Error";const s=o.match(i);s&&(a=s[1],o=s[2]);return my({exception:{values:[{type:a,value:o}]}},t,n,r)}(i,o,a,s):my(ly(n,u||i,void 0,r,!1),o,a,s);c.level="error",_g(c,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}),Jg(t,ty)}()}(e),gy("onerror")),t.onunhandledrejection&&(function(e){!function(){const t="unhandledrejection";Kg(t,t=>{const{stackParser:n,attachStacktrace:r}=yy();if(Sg()!==e||zg())return;const i=function(e){if(Kh(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=Kh(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:ly(n,i,void 0,r,!0);o.level="error",_g(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}),Jg(t,ry)}()}(e),gy("onunhandledrejection"))}}});function my(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=Zh(t)&&t.length>0?t:function(){try{return sm.document.location.href}catch(e){return""}}();return 0===u.length&&u.push({colno:c,filename:p,function:"?",in_app:!0,lineno:l}),e}function gy(e){iy&&hm.log(`Global Handler attached: ${e}`)}function yy(){const e=Sg();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const vy=["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"],by="TryCatch",Ey=Pg(by,(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:by,setupOnce(){t.setTimeout&&vm(Qg,"setTimeout",_y),t.setInterval&&vm(Qg,"setInterval",_y),t.requestAnimationFrame&&vm(Qg,"requestAnimationFrame",Iy),t.XMLHttpRequest&&"XMLHttpRequest"in Qg&&vm(XMLHttpRequest.prototype,"send",Sy);const e=t.eventTarget;e&&(Array.isArray(e)?e:vy).forEach(Ty)}}});function _y(e){return function(...t){const n=t[0];return t[0]=Wg(n,{mechanism:{data:{function:mg(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Iy(e){return function(t){return e.apply(this,[Wg(t,{mechanism:{data:{function:"requestAnimationFrame",handler:mg(e)},handled:!1,type:"instrument"}})])}}function Sy(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&vm(n,e,function(t){const n={mechanism:{data:{function:e,handler:mg(t)},handled:!1,type:"instrument"}},r=_m(t);return r&&(n.mechanism.data.handler=mg(r)),Wg(t,n)})}),e.apply(this,t)}}function Ty(e){const t=Qg,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(vm(n,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Wg(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:mg(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,Wg(r,{mechanism:{data:{function:"addEventListener",handler:mg(r),target:e},handled:!1,type:"instrument"}}),i])}}),vm(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 Cy(){"console"in im&&pm.forEach(function(e){e in im.console&&vm(im.console,e,function(t){return dm[e]=t,function(...t){Xg("console",{args:t,level:e});const n=dm[e];n&&n.apply(im.console,t)}})})}const wy=im;let Py,Dy,Ay;function Oy(){if(!wy.document)return;const e=Xg.bind(null,"dom"),t=Ny(e,!0);wy.document.addEventListener("click",t,!1),wy.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=wy[t]&&wy[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(vm(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=Ny(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(e){}return t.call(this,n,r,i)}}),vm(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 Ny(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;bm(n,"_sentryCaptured",!0),r&&!r._sentryId&&bm(r,"_sentryId",Pm());const i="keypress"===n.type?"input":n.type;(function(e){if(e.type!==Dy)return!1;try{if(!e.target||e.target._sentryId!==Ay)return!1}catch(e){}return!0})(n)||(e({event:n,name:i,global:t}),Dy=n.type,Ay=r?r._sentryId:void 0),clearTimeout(Py),Py=wy.setTimeout(()=>{Ay=void 0,Dy=void 0},1e3)}}const Ry=im,Fy="__sentry_xhr_v3__";function ky(){if(!Ry.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;vm(e,"open",function(e){return function(...t){const n=Date.now(),r=Zh(t[0])?t[0].toUpperCase():void 0,i=function(e){if(Zh(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!r||!i)return e.apply(this,t);this[Fy]={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const e=this[Fy];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}Xg("xhr",{args:[r,i],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?vm(this,"onreadystatechange",function(e){return function(...t){return o(),e.apply(this,t)}}):this.addEventListener("readystatechange",o),vm(this,"setRequestHeader",function(e){return function(...t){const[n,r]=t,i=this[Fy];return i&&Zh(n)&&Zh(r)&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}}),e.apply(this,t)}}),vm(e,"send",function(e){return function(...t){const n=this[Fy];return n?(void 0!==t[0]&&(n.body=t[0]),Xg("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)):e.apply(this,t)}})}const xy=om();function Uy(){if(!("fetch"in xy))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function My(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Ly(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!Uy())return!1;if(My(xy.fetch))return!0;let e=!1;const t=xy.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=My(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){lm&&hm.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&vm(im,"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:Vy(t),method:jy(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Vy(t),method:jy(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Xg("fetch",{...i}),e.apply(im,t).then(e=>(Xg("fetch",{...i,endTimestamp:Date.now(),response:e}),e),e=>{throw Xg("fetch",{...i,endTimestamp:Date.now(),error:e}),e})}})}function jy(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Vy(e){return"string"==typeof e?e:e?jy(e,"url")?e.url:e.toString?e.toString():"":""}const By=om(),Gy=im;let qy;function $y(){if(!function(){const e=By.chrome,t=e&&e.app&&e.app.runtime,n="history"in By&&!!By.history.pushState&&!!By.history.replaceState;return!t&&n}())return;const e=Gy.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=qy,t=String(n);qy=t,Xg("history",{from:e,to:t})}return e.apply(this,t)}}Gy.onpopstate=function(...t){const n=Gy.location.href,r=qy;if(qy=n,Xg("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},vm(Gy.history,"pushState",t),vm(Gy.history,"replaceState",t)}const Qy=["fatal","error","warning","log","info","debug"];function Hy(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 zy="Breadcrumbs",Wy=Pg(zy,(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:zy,setupOnce(){},setup(e){var n;t.console&&function(e){const t="console";Kg(t,e),Jg(t,Cy)}(function(e){return function(t){if(Sg()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:(r=t.level,"warn"===r?"warning":Qy.includes(r)?r:"log"),message:gm(t.args," ")};var r;if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${gm(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}Ig(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(Sg()!==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&&(iy&&hm.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=um(t,{keyAttrs:o,maxStringLength:a}),i=function(e){if(!sm.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}),Ig(s,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),Kg("dom",n),Jg("dom",Oy)),t.xhr&&function(e){Kg("xhr",e),Jg("xhr",ky)}(function(e){return function(t){if(Sg()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[Fy];if(!n||!r||!i)return;const{method:o,url:a,status_code:s,body:u}=i;Ig({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";Kg(t,e),Jg(t,Ly)}(function(e){return function(t){if(Sg()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error)Ig({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r});else{const e=t.response;Ig({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";Kg(t,e),Jg(t,$y)}(function(e){return function(t){if(Sg()!==e)return;let n=t.from,r=t.to;const i=Hy(Qg.location.href);let o=n?Hy(n):void 0;const a=Hy(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),Ig({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){Sg()===e&&Ig({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Am(t)},{event:t})}}(e))}}}),Zy="LinkedErrors",Yy=Pg(Zy,(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:Zy,setupOnce(){},preprocessEvent(e,r,i){const o=i.getOptions();Mg(oy,o.stackParser,o.maxValueLength,n,t,e,r)}}}),Ky="HttpContext",Jy=Pg(Ky,()=>({name:Ky,setupOnce(){},preprocessEvent(e){if(!Qg.navigator&&!Qg.location&&!Qg.document)return;const t=e.request&&e.request.url||Qg.location&&Qg.location.href,{referrer:n}=Qg.document||{},{userAgent:r}=Qg.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}})),Xy="Dedupe",ev=Pg(Xy,()=>{let e;return{name:Xy,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&&(!!nv(e,t)&&!!tv(e,t))))}(e,t)||!!function(e,t){const n=rv(t),r=rv(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!nv(e,t)&&!!tv(e,t)))}(e,t))}(t,e))return iy&&hm.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}});function tv(e,t){let n=iv(e),r=iv(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 nv(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 rv(e){return e.exception&&e.exception.values&&e.exception.values[0]}function iv(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}let ov={};Qg.Sentry&&Qg.Sentry.Integrations&&(ov=Qg.Sentry.Integrations);const av={...ov,...$g,...u},sv="?";function uv(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 cv=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,lv=/\((\S*)(?::(\d+))(?::(\d+))\)/,pv=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,dv=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,fv=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,hv=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=dg.test(n)?n.replace(dg,"$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(),fg.test(t[t.length-1].function||"")&&(t.pop(),fg.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=cv.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=lv.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=mv(t[1]||sv,t[2]);return uv(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=pv.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=dv.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]||sv;return[n,e]=mv(n,e),uv(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=fv.exec(e);return t?uv(t[2],t[1]||sv,+t[3],t[4]?+t[4]:void 0):void 0}]),mv=(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]:sv,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class gv 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 yv=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function vv(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 bv(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Ev(e,t=[]){return[e,t]}function _v(e,t){const[n,r]=e;return[n,[...r,t]]}function Iv(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function Sv(e,t){return(t||new TextEncoder).encode(e)}function Tv(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[Sv(i,t),e]:i.push("string"==typeof e?Sv(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(gg(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 Cv(e,t){const n="string"==typeof e.data?Sv(e.data,t):e.data;return[Cm({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const wv={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 Pv(e){return wv[e]}function Dv(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Av(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 Vm(new gv("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 Bm((n,r)=>{let i=t.length;if(!i)return n(!0);const o=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{jm(e).then(()=>{--i||(clearTimeout(o),n(!0))},r)})})}}}(e.bufferSize||30)){let r={};function i(i){const o=[];if(Iv(i,(t,n)=>{const i=Pv(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=Ov(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(t)}),0===o.length)return jm();const a=Ev(i[0],o),s=t=>{Iv(a,(n,r)=>{const i=Ov(n,r);e.recordDroppedEvent(t,Pv(r),i)})};return n.add(()=>t({body:Tv(a,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Mm&&hm.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 gv)return Mm&&hm.error("Skipped sending event because buffer is full."),s("queue_overflow"),jm();throw e})}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function Ov(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let Nv;function Rv(e,t=function(){if(Nv)return Nv;if(My(Qg.fetch))return Nv=Qg.fetch.bind(Qg);const e=Qg.document;let t=Qg.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){iy&&hm.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Nv=t.bind(Qg)}()){let n=0,r=0;return Av(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 Nv=void 0,n-=o,r--,Vm(e)}})}function Fv(e){return Av(e,function(t){return new Bm((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 kv(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 xv="Not capturing exception because it's already been captured.";class Uv{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=yv.exec(e);if(!t)return void fm(()=>{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 bv({host:o,pass:i,path:u,projectId:c,port:a,protocol:n,publicKey:r})}(e):bv(e);if(t&&function(e){if(!lm)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(hm.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(hm.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(hm.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(hm.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}(e.dsn):Mm&&hm.warn("No DSN provided, client will not send events."),this._dsn){const t=kv(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(Rm(e))return void(Mm&&hm.log(xv));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=Yh(e)?e:String(e),a=Kh(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&&Rm(t.originalException))return void(Mm&&hm.log(xv));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?Mm&&hm.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Qm(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))):jm(!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 Mm&&hm.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];wg(this,e,this._integrations),t||Cg(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const i=Dv(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:vv(r)},...i&&{trace:Cm({...i})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,Ev(a,[[{type:o},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=_v(n,Cv(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=Dv(n);return Ev({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:vv(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}`;Mm&&hm.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}captureAggregateMetrics(e){Mm&&hm.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=vv(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 Ev(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&&wg(e,t,n)}),n}(this,e),Cg(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)&&(Qm(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Bm(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 cg().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||Pm(),timestamp:t.timestamp||Fm()},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:Um),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=mm(e.message,o));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=mm(a.value,o));const s=e.request;s&&s.url&&(s.url=mm(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=im._sentryDebugIds;if(!n)return;let r;const i=bg.get(t);i?r=i:(r=new Map,bg.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 tg;return n.update(t),n}(r,n.captureContext);n.mechanism&&Nm(u,n.mechanism);const p=i&&i.getEventProcessors?i.getEventProcessors():[],d=(eg||(eg=new tg),eg).getScopeData();o&&Jm(d,o.getScopeData()),l&&Jm(d,l.getScopeData());const f=[...n.attachments||[],...d.attachments];return f.length&&(n.attachments=f),Km(u,d),$m([...p,...Gm(),...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:gg(e.data,t,n)}}))},...e.user&&{user:gg(e.user,t,n)},...e.contexts&&{contexts:gg(e.contexts,t,n)},...e.extra&&{extra:gg(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=gg(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>{const r=Wm(e).data;return r&&(e.data=gg(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||Zm(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(Mm){const t=e;"log"===t.logLevel?hm.log(t.message):hm.warn(t)}})}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:i}=r,o=Lv(e),a=Mv(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),Vm(new gv(`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 gv("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(Mv(t)&&r)return r(t,n);if(Lv(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(em(e))return e.then(e=>{if(!Jh(e)&&null!==e)throw new gv(n);return e},e=>{throw new gv(`${t} rejected with ${e}`)});if(!Jh(e)&&null!==e)throw new gv(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 gv(`${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 gv)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new gv(`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=>{Mm&&hm.error("Error while sending event:",e)});Mm&&hm.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 Mv(e){return void 0===e.type}function Lv(e){return"transaction"===e.type}class jv extends Uv{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:rg})),version:rg}),e._metadata=i}(e,"browser",["browser"],Qg.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&Qg.document&&Qg.document.addEventListener("visibilitychange",()=>{"hidden"===Qg.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){const i=ly(e,t,n&&n.syntheticException||void 0,r);return Nm(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),jm(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){const o=py(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),jm(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(iy&&hm.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:vv(r)}},o=function(e){return[{type:"user_report"},e]}(e);return Ev(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(iy&&hm.log("No outcomes to send"));if(!this._dsn)return void(iy&&hm.log("No dsn provided, will not send outcomes"));iy&&hm.log("Sending outcomes:",e);const t=(n=e,Ev((r=this._options.tunnel&&vv(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:Fm(),discarded_events:n}]]));var n,r;this._sendEnvelope(t)}}var Vv=[new av.InboundFilters,new av.FunctionToString,new av.TryCatch,new av.Breadcrumbs,new av.LinkedErrors,new av.Dedupe,new av.HttpContext],Bv=new ag,Gv=n(6760),qv=n.n(Gv),$v=n(7620),Qv=n.n($v),Hv=n(1525),zv=n.n(Hv),Wv=function(){return Wv=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},Wv.apply(this,arguments)},Zv=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 Wv(Wv({},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 Fh({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:qv()(t,function(e){return i.mapSubscription(e)}),promotionalEntitlements:qv()(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:Qv()(e.experimentInfo,"__typename")})},e.prototype.mapPaymentDetails=function(e){var t=e.defaultPaymentExpirationYear,n=e.defaultPaymentExpirationMonth,r=e.defaultPaymentMethodLast4Digits;if(zv()([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:qv()(e.entitlements,function(e){return i.mapPackageEntitlement(e)}),inheritedEntitlements:qv()(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:qv()(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===bt.Free||!e.compatibleAddons)return[];var n=e.compatibleAddons;return(e.pricingType===bt.Paid?n.filter(function(e){return e.pricingType===bt.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===rt.Fluctuating||t.meterType===rt.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===rt.Fluctuating||t.meterType===rt.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:Qv()(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?Wv(Wv({},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:qv()(e.entitlements,function(e){return i.mapPackageEntitlement(e)}),packageEntitlements:null!==(t=e.packageEntitlements)&&void 0!==t?t:void 0,pricePoints:qv()(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 Wv(Wv(Wv({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?Wv(Wv({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:Wv(Wv({},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?Wv({},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 Wv(Wv({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 Wv({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!==bt.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}(),Yv=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)}}(),Kv=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 Yv(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}(dh),Jv=function(){return Jv=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},Jv.apply(this,arguments)};function Xv(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,tb(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 eb(e,t){try{return e()}catch(e){return tb(e,t)}}function tb(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;Bv.withScope(function(t){var o={errorMessage:r};if(n){var a=n.customerId,s=Jv(Jv({},n),{apiKey:void 0});a&&t.setTags({customerId:a}),o.sdkConfiguration=s}i&&(o=Jv(Jv({},o),i)),t.setExtras(o),Bv.captureException(e)})}(e,{sdkConfiguration:r,errorMessage:s,errorReportMetadata:a}),o)throw new Error(s)}var 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(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())})},ib=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])}}},ob=function(){function e(e,t){this.modelMapper=new Zv,this.eventEmitter=new Gh,this.showWatermark=!1,this.isWidgetWatermarkEnabled=!1,this.configuration=e,this.edgeApiClient=kc.create(e,e),this.graphClient=function(e){var t=e.apiKey,n=e.baseUri,r=e.clientName,i=void 0===r?Nu:r,o=e.clientVersion,a=void 0===o?zf:o,s=function(e,t){return new Al(function(n,r){var i={"X-API-KEY":e,"x-graphql-operation-name":n.operationName,source:Ou},o=t.customerToken;return o&&(i["X-CUSTOMER-KEY"]=o),n.setContext({headers:i}),r(n)})}(t,e),u=function(e){return new jl({uri:"".concat(e,"/graphql"),fetch:Rc})}(n),c=new Hf({attempts:{max:5,retryIf:Wf},delay:{initial:500,max:2e3,jitter:!0}});return new Kd({link:s.concat(c.concat(u)),cache:new $f,name:i,version:a,defaultOptions:{query:{fetchPolicy:"no-cache"}}})}(this.configuration),this.loggerService=t,this.cacheMapper=new Rh(t),this.apiGateway=new dc(this.graphClient,this.edgeApiClient),this.globalEntitlementsService=null,this.resourceEntitlementsService=null,this.initializationStateTracker=new qh(this.eventEmitter)}return e.initialize=function(t){var n=xu(t),r=new Au(n.logConfiguration.logger,n.logConfiguration.logLevel);ku(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 rb(this,void 0,Promise,function(){var e=this;return ib(this,function(t){return[2,this.initializationStateTracker.getInitializationPromise().then(function(){return e})]})})},e.initializeSdk=function(e){return rb(this,void 0,void 0,function(){var t,n,r,i,o,a,s,u;return ib(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,!Bv.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(Nu,"@").concat(zf),integrations:Vv,stackParser:hv,transport:Uy()?Rv:Fv},t=new jv(e),Bv.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 rb(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),ib(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,Lu.isString)(e))throw new Error("customerId parameter must be a string");if(t&&!(0,Lu.isString)(t))throw new Error("customerToken parameter must be a string");if(n&&!(0,Lu.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 jh(e,void 0,new Kv(this.cacheMapper,this.configuration.cacheTtlMs),this.graphClient,this.edgeApiClient,this.loggerService,function(e){return u.eventEmitter.emit("entitlementsUpdated",e)}),n&&(this.resourceEntitlementsService=new jh(e,n,new Kv(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,Xv(function(){return rb(u,void 0,void 0,function(){var e,t;return ib(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 rb(this,void 0,Promise,function(){var t,n,r=this;return ib(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,Lu.isString)(e))throw new Error("resourceId parameter must be a string");this.configuration.resourceId=e,this.resourceEntitlementsService=new jh(this.configuration.customerId,e,new Kv(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,Xv(function(){return rb(r,void 0,void 0,function(){var e;return ib(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 rb(this,void 0,Promise,function(){var e=this;return ib(this,function(t){return[2,Xv(function(){return rb(e,void 0,void 0,function(){var e,t;return ib(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=nb(nb({},hh),a);return eb(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=nb(nb({},mh),a);return eb(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=nb(nb({},gh),a);return eb(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=nb(nb({},yh),a);return eb(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=nb(nb(nb({},vh),{currency:{currencyId:n}}),o),s=nb(nb({},a),{remaining:Math.max(a.usageLimit-a.currentUsage,0)});return eb(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 rb(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 ib(this,function(e){return t={productId:i,customerId:this.configuration.customerId,resourceId:o,context:a,billingCountryCode:s,includeHiddenPlans:u},[2,Xv(function(){return rb(n,void 0,void 0,function(){var e;return ib(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 rb(this,void 0,Promise,function(){var e=this;return ib(this,function(t){return[2,Xv(function(){return rb(e,void 0,void 0,function(){var e;return ib(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 rb(this,void 0,Promise,function(){var e=this;return ib(this,function(t){return[2,Xv(function(){return rb(e,void 0,void 0,function(){var e,t,n,r;return ib(this,function(i){switch(i.label){case 0:return e=Mu(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 rb(this,arguments,Promise,function(e){var t=this,n=void 0===e?{}:e,r=n.resourceId,i=n.productId;return ib(this,function(e){return[2,Xv(function(){return rb(t,void 0,void 0,function(){var e,t;return ib(this,function(n){switch(n.label){case 0:return e=Mu(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 rb(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 ib(this,function(e){return[2,Xv(function(){return rb(t,void 0,void 0,function(){var e,t;return ib(this,function(r){switch(r.label){case 0:return e=Mu(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 rb(this,void 0,Promise,function(){var t=this;return ib(this,function(n){return[2,Xv(function(){return rb(t,void 0,void 0,function(){var t,n;return ib(this,function(r){switch(r.label){case 0:return t=Mu(this.configuration),[4,this.apiGateway.subscriptions.applySubscription(nb({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 rb(this,void 0,Promise,function(){var t=this;return ib(this,function(n){return[2,Xv(function(){return rb(t,void 0,void 0,function(){var t;return ib(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 rb(this,void 0,Promise,function(){return ib(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 rb(this,void 0,Promise,function(){var t;return ib(this,function(n){switch(n.label){case 0:return[4,this.getEntitlementsStateV2(e)];case 1:return[2,{entitlements:(t=n.sent()).entitlements.filter(Ah),accessDeniedReason:t.accessDeniedReason}]}})})},e.prototype.getEntitlementsStateV2=function(e){return rb(this,void 0,Promise,function(){var t,n,r=this;return ib(this,function(i){switch(i.label){case 0:return t={entitlements:Nh(this.configuration.entitlementsFallback),accessDeniedReason:null},[4,Xv(function(){return rb(r,void 0,void 0,function(){var n;return ib(this,function(r){return Mu(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 rb(this,void 0,Promise,function(){var t=this;return ib(this,function(n){return[2,Xv(function(){return rb(t,void 0,void 0,function(){var t;return ib(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 rb(this,void 0,Promise,function(){var t=this;return ib(this,function(n){return[2,Xv(function(){return rb(t,void 0,void 0,function(){var t;return ib(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 rb(this,void 0,Promise,function(){var t=this;return ib(this,function(n){return[2,Xv(function(){return rb(t,void 0,void 0,function(){var t;return ib(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 rb(this,void 0,Promise,function(){var t=this;return ib(this,function(n){return[2,Xv(function(){return rb(t,void 0,void 0,function(){var t;return ib(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.getUsageHistoryV2=function(e){return rb(this,void 0,Promise,function(){var t=this;return ib(this,function(n){return[2,Xv(function(){return rb(t,void 0,void 0,function(){return ib(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 rb(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 ib(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 rb(this,arguments,Promise,function(e){var t,n,r,i,o,a=this;return void 0===e&&(e={}),ib(this,function(s){return t=e.customerId,n=e.resourceId,r=e.status,i=e.productId,o=e.pagination,[2,Xv(function(){return rb(a,void 0,void 0,function(){var e;return ib(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 Xv(function(){return rb(t,void 0,void 0,function(){var e,t,r;return ib(this,function(i){switch(i.label){case 0:return e=Mu(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 rb(this,arguments,Promise,function(e){var t=this,n=(void 0===e?{}:e).resourceId;return ib(this,function(e){return[2,Xv(function(){return rb(t,void 0,void 0,function(){var e;return ib(this,function(t){switch(t.label){case 0:return e=Mu(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 rb(this,arguments,Promise,function(e){var t=this,n=e.subscriptionId;return ib(this,function(e){return[2,Xv(function(){return rb(t,void 0,void 0,function(){var e,t;return ib(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 rb(this,void 0,Promise,function(){var t=this;return ib(this,function(n){return[2,Xv(function(){return rb(t,void 0,void 0,function(){var t,n,r;return ib(this,function(i){switch(i.label){case 0:return t=Mu(this.configuration),n=null!==(r=this.configuration.resourceId)&&void 0!==r?r:void 0,[4,this.apiGateway.credits.getCreditUsage(nb(nb({},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 rb(this,arguments,Promise,function(e){var t=this;return void 0===e&&(e={}),ib(this,function(n){return[2,Xv(function(){return rb(t,void 0,void 0,function(){var t,n,r;return ib(this,function(i){switch(i.label){case 0:return t=Mu(this.configuration),n=null!==(r=this.configuration.resourceId)&&void 0!==r?r:void 0,[4,this.apiGateway.credits.getCreditBalance(nb(nb({},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 rb(this,void 0,Promise,function(){var t=this;return ib(this,function(n){return[2,Xv(function(){return rb(t,void 0,void 0,function(){var t,n,r,i;return ib(this,function(o){switch(o.label){case 0:return t=Mu(this.configuration),n=null!==(i=this.configuration.resourceId)&&void 0!==i?i:void 0,[4,this.apiGateway.credits.getCreditGrants(nb(nb({},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 rb(this,arguments,Promise,function(e){var t=this;return void 0===e&&(e={}),ib(this,function(n){return[2,Xv(function(){return rb(t,void 0,void 0,function(){var t,n,r,i;return ib(this,function(o){switch(o.label){case 0:return t=Mu(this.configuration),n=null!==(i=this.configuration.resourceId)&&void 0!==i?i:void 0,[4,this.apiGateway.credits.getCreditLedger(nb(nb({},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 rb(this,void 0,Promise,function(){var t=this;return ib(this,function(n){return[2,Xv(function(){return rb(t,void 0,void 0,function(){var t,n;return ib(this,function(r){switch(r.label){case 0:return t=Mu(this.configuration),[4,this.apiGateway.checkout.createPaymentSession(nb(nb({},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 rb(this,void 0,Promise,function(){var t=this;return ib(this,function(n){return[2,Xv(function(){return rb(t,void 0,void 0,function(){var t;return ib(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 rb(this,void 0,Promise,function(){var t=this;return ib(this,function(n){return[2,Xv(function(){return rb(t,void 0,void 0,function(){var t;return ib(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}(),ab=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)}}(),sb=function(){return sb=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},sb.apply(this,arguments)},ub=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())})},cb=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])}}},lb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ab(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 sb(sb({},hh),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 sb(sb({},gh),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 sb(sb({},mh),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 sb(sb({},yh),i)},t.prototype.getCreditEntitlement=function(e){var t=e.currencyId,n=e.options,r=(null==n?void 0:n.fallback)||{},i=sb(sb(sb({},vh),{currency:{currencyId:t}}),r);return sb(sb({},i),{remaining:Math.max(i.usageLimit-i.currentUsage,0)})},t.prototype.getEntitlements=function(){return ub(this,void 0,Promise,function(){return cb(this,function(e){return[2,Nh(this.configuration.entitlementsFallback)]})})},t.prototype.getEntitlementsState=function(){return ub(this,void 0,Promise,function(){var e;return cb(this,function(t){switch(t.label){case 0:return[4,this.getEntitlementsStateV2()];case 1:return[2,{entitlements:(e=t.sent()).entitlements.filter(Ah),accessDeniedReason:e.accessDeniedReason}]}})})},t.prototype.getEntitlementsStateV2=function(){return ub(this,void 0,Promise,function(){return cb(this,function(e){return[2,{entitlements:Nh(this.configuration.entitlementsFallback),accessDeniedReason:null}]})})},t.prototype.addListener=function(){},t.prototype.clearCustomer=function(){},t.prototype.clearResource=function(){},t.prototype.getActiveSubscriptionsList=function(){return ub(this,void 0,Promise,function(){return cb(this,function(e){return[2,[]]})})},t.prototype.getCoupons=function(){return ub(this,void 0,Promise,function(){return cb(this,function(e){return[2,[]]})})},t.prototype.getSubscription=function(){return ub(this,void 0,Promise,function(){return cb(this,function(e){return[2,{id:"mock-subscription-id",addons:[],futureUpdates:[],paymentCollection:ft.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:bt.Paid,startDate:new Date,status:Xt.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 ub(this,void 0,Promise,function(){return cb(this,function(e){return[2,this]})})},t.prototype.setResource=function(){return ub(this,void 0,Promise,function(){return cb(this,function(e){return[2]})})},t.prototype.getCheckoutState=function(){return ub(this,void 0,Promise,function(){return cb(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 ub(this,void 0,Promise,function(){return cb(this,function(e){return[2,{subscription:void 0}]})})},t.prototype.estimateSubscription=function(){return ub(this,void 0,Promise,function(){return cb(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 ub(this,void 0,Promise,function(){return cb(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 ub(this,void 0,Promise,function(){return cb(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 ub(this,void 0,Promise,function(){return cb(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.waitForCheckoutCompleted=function(){return ub(this,void 0,Promise,function(){return cb(this,function(e){return[2,null]})})},t.prototype.refresh=function(){return ub(this,void 0,Promise,function(){return cb(this,function(e){return[2]})})},t.prototype.fetchUsageHistory=function(){return ub(this,void 0,Promise,function(){return cb(this,function(e){return[2,[]]})})},t.prototype.getUsageHistoryV2=function(){return ub(this,void 0,Promise,function(){return cb(this,function(e){return[2,{markers:[],series:[]}]})})},t.prototype.setCustomerId=function(){return ub(this,void 0,Promise,function(){return cb(this,function(e){return[2]})})},t.prototype.getPaywall=function(){return ub(this,void 0,Promise,function(){return cb(this,function(e){return[2,{activeSubscriptions:[],currency:{code:he.Usd,symbol:"$"},plans:[],customer:null,resource:null}]})})},t.prototype.getCustomerPortal=function(){return ub(this,void 0,Promise,function(){return cb(this,function(e){return[2,{subscriptions:[],entitlements:[],entitlementsV2:[],promotionalEntitlements:[],billingInformation:{},canUpgradeSubscription:!1,resource:null,showWatermark:!0}]})})},t.prototype.getActiveSubscriptions=function(){return ub(this,void 0,Promise,function(){return cb(this,function(e){return[2,[]]})})},t.prototype.getSubscriptions=function(){return ub(this,void 0,Promise,function(){return cb(this,function(e){return[2,{data:[],pageInfo:{}}]})})},t.prototype.getCustomer=function(){return ub(this,void 0,Promise,function(){return cb(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 ub(this,void 0,Promise,function(){return cb(this,function(e){return[2,{__typename:"CreditBalanceSummary",customerId:"offline-customer-id",balances:[]}]})})},t.prototype.getCreditGrants=function(){return ub(this,void 0,Promise,function(){return cb(this,function(e){return[2,{data:[],pageInfo:{},totalCount:0}]})})},t.prototype.getCreditLedger=function(){return ub(this,void 0,Promise,function(){return cb(this,function(e){return[2,{data:[],pageInfo:{},totalCount:0}]})})},t.prototype.getCreditUsage=function(){return ub(this,void 0,Promise,function(){return cb(this,function(e){return[2,{series:[],pageInfo:{hasNextPage:!1,hasPreviousPage:!1}}]})})},t.prototype.createPaymentSession=function(){return ub(this,void 0,Promise,function(){return cb(this,function(e){return[2,{__typename:"PaymentSession",token:"mock-token"}]})})},t.prototype.getShowWatermark=function(){return!1},t.prototype.getAutomaticRechargeConfiguration=function(e){return ub(this,void 0,Promise,function(){return cb(this,function(t){return[2,{__typename:"AutoRechargeSettingsDTO",customerId:e.customerId,currencyId:e.currencyId,isEnabled:!1,thresholdType:on.CreditAmount,thresholdValue:0,targetBalance:0,maxSpendLimit:null,grantExpirationPeriod:We.OneMonth,currentMonthlySpend:0,createdAt:new Date,updatedAt:new Date}]})})},t.prototype.saveAutomaticRechargeConfiguration=function(e){return ub(this,void 0,Promise,function(){var t,n,r,i,o;return cb(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:on.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:We.OneMonth,currentMonthlySpend:0,createdAt:new Date,updatedAt:new Date}]})})},t}(ob),pb=ob.initialize.bind(ob);ob.initialize=function(e){var t=xu(e),n=new Au(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."),lb.createOffline(t,n)):pb(e)};const db=ob},1510:(e,t,n)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,{Z:()=>r})},2277:(e,t,n)=>{"use strict";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)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t){return e instanceof t}},1424:(e,t,n)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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}return 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),n(3884)})()});
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Stigg",[],t):"object"==typeof exports?exports.Stigg=t():e.Stigg=t()}(this,function(){return(()=>{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(){"use strict";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=>{"use strict";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(){"use strict";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){"use strict";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)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultJsonSerializer=void 0,t.defaultJsonSerializer={parse:JSON.parse,stringify:JSON.stringify}},3210:function(e,t,n){"use strict";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){"use strict";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)=>{"use strict";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)=>{"use strict";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){"use strict";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=>{"use strict";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)=>{"use strict";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)=>{"use strict";t.ReactNativeFile=n(9653),t.extractFiles=n(7368),t.isExtractableFile=n(2180)},2180:(e,t,n)=>{"use strict";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)=>{"use strict";t.TypedEmitter=n(2699).EventEmitter},3884:(e,t,n)=>{"use strict";n.r(t),n.d(t,{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,BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT:()=>Th,BaseEntitlement:()=>a.BaseEntitlement,BillingAnchor:()=>$,BillingCadence:()=>Q,BillingModel:()=>H,BillingPeriod:()=>z,BillingVendorIdentifier:()=>W,BooleanEntitlement:()=>a.BooleanEntitlement,BooleanEntitlementFallback:()=>a.BooleanEntitlementFallback,BooleanEntitlementOptions:()=>a.BooleanEntitlementOptions,CREDIT_DEFAULT_FALLBACK_ENTITLEMENT:()=>Dh,CancelSubscriptionDocument:()=>Ss,CancelSubscriptionUpdatesDocument:()=>Ds,ChangeType:()=>Z,ChargeType:()=>Y,CheckoutConfigurationFragmentDoc:()=>Pa,CheckoutStateFragmentDoc:()=>Na,ClientConfiguration:()=>o.ClientConfiguration,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,CreditEntitlement:()=>a.CreditEntitlement,CreditEntitlementFallback:()=>a.CreditEntitlementFallback,CreditEntitlementFragmentDoc:()=>ba,CreditEntitlementOptions:()=>a.CreditEntitlementOptions,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,CustomerEntitlementsResult:()=>a.CustomerEntitlementsResult,CustomerEntitlementsResultV2:()=>a.CustomerEntitlementsResultV2,CustomerFragmentDoc:()=>No,CustomerModel:()=>qh,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,ENUM_DEFAULT_FALLBACK_ENTITLEMENT:()=>Ph,Entitlement:()=>a.Entitlement,EntitlementBehavior:()=>Te,EntitlementFragmentDoc:()=>sa,EntitlementReferenceFragmentDoc:()=>us,EntitlementResetPeriod:()=>Ce,EntitlementType:()=>we,EntitlementUnionFragmentDoc:()=>Ea,EntitlementUsageUpdatedFragmentDoc:()=>la,EntitlementV2:()=>a.EntitlementV2,EntitlementsFallback:()=>a.EntitlementsFallback,EntitlementsStateAccessDeniedReason:()=>Pe,EntitlementsUpdatedPayloadFragmentDoc:()=>ua,EntitlementsUpdatedV2PayloadFragmentDoc:()=>ss,EntitySelectionMode:()=>De,EnumEntitlement:()=>a.EnumEntitlement,EnumEntitlementFallback:()=>a.EnumEntitlementFallback,EnumEntitlementOptions:()=>a.EnumEntitlementOptions,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,LogConfiguration:()=>i.LogConfiguration,LogLevel:()=>Uu,Logger:()=>i.Logger,METERED_DEFAULT_FALLBACK_ENTITLEMENT:()=>wh,MemberSortFields:()=>nt,MemberStatus:()=>rt,MergeApplyState:()=>it,MeterType:()=>ot,MeteredEntitlement:()=>a.MeteredEntitlement,MeteredEntitlementFallback:()=>a.MeteredEntitlementFallback,MeteredEntitlementOptions:()=>a.MeteredEntitlementOptions,MigrateSubscriptionToLatestDocument:()=>Us,MockPaywallAddonDependencyFragmentDoc:()=>ka,MockPaywallAddonFragmentDoc:()=>xa,MockPaywallPackageEntitlementFragmentDoc:()=>Ra,MockPaywallPlanCompatiblePackageGroupsFragmentDoc:()=>Ua,MockPaywallPlanFragmentDoc:()=>Ma,MockPaywallPriceFragmentDoc:()=>Fa,MonthlyAccordingTo:()=>at,NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT:()=>Ch,NumericEntitlement:()=>a.NumericEntitlement,NumericEntitlementFallback:()=>a.NumericEntitlementFallback,NumericEntitlementOptions:()=>a.NumericEntitlementOptions,OfferSortFields:()=>st,OfferStatus:()=>ut,OfflineStigg:()=>Eb,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,Stigg:()=>mb,StiggClient:()=>c.StiggClient,StiggManagement:()=>Nu,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,Types:()=>r,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,default:()=>Ib,getSdk:()=>Au,isCreditEntitlementFragment:()=>Fu,isCreditEntitlementWithSummary:()=>xu,isFeatureEntitlementFragment:()=>Ru,isFeatureEntitlementWithSummary:()=>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:()=>Gh,sZY:()=>Th,sf5:()=>Dh,RCf:()=>Ph,zVU:()=>Lh,VsH:()=>wh,ctk:()=>Ch,qCH:()=>jh,$X:()=>Bh});var s={};n.r(s),n.d(s,{FunctionToString:()=>Bg,InboundFilters:()=>Qg,LinkedErrors:()=>Xg});var u={};n.r(u),n.d(u,{Breadcrumbs:()=>iv,Dedupe:()=>lv,GlobalHandlers:()=>Ty,HttpContext:()=>uv,LinkedErrors:()=>av,TryCatch:()=>Oy});var c={};n.r(c),n.d(c,{F:()=>mb});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])}}},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}();const nc=tc,rc=function(){function e(e){this.client=e}return e.prototype.getCoupons=function(){return this.client.query({query:nu,fetchPolicy:"no-cache"})},e}();var ic=function(){return ic=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},ic.apply(this,arguments)},oc=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:ic({filter:ic(ic(ic(ic({},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:ic({},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:ic(ic({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 ac=oc;var sc=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())})},uc=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])}}},cc=function(){function e(e){this.client=e}return e.prototype.estimateSubscription=function(e){return sc(this,void 0,void 0,function(){var t,n;return uc(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 sc(this,void 0,void 0,function(){return uc(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 sc(this,void 0,void 0,function(){return uc(this,function(t){return[2,this.client.mutate({mutation:Ps,fetchPolicy:"no-cache",variables:{input:{subscriptionId:e.subscriptionId}}})]})})},e.prototype.previewSubscription=function(e){return sc(this,void 0,void 0,function(){return uc(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 lc=cc;var pc=function(){return pc=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},pc.apply(this,arguments)},dc=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:pc(pc(pc({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{context:r}:{})}})},e}();const fc=dc;var hc=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}(),mc=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())})},gc=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 yc=function(){function e(e){this.client=e}return e.prototype.getCreditBalance=function(e){return mc(this,void 0,void 0,function(){return gc(this,function(t){return[2,this.client.query({query:mu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.getCreditGrants=function(e){return mc(this,void 0,void 0,function(){return gc(this,function(t){return[2,this.client.query({query:gu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.getCreditLedger=function(e){return mc(this,void 0,void 0,function(){return gc(this,function(t){return[2,this.client.query({query:yu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.getCreditUsage=function(e){return mc(this,void 0,void 0,function(){return gc(this,function(t){return[2,this.client.query({query:vu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.estimateEventCost=function(e){return mc(this,void 0,void 0,function(){return gc(this,function(t){return[2,this.client.query({query:Eu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.estimateUsageCost=function(e){return mc(this,void 0,void 0,function(){return gc(this,function(t){return[2,this.client.query({query:_u,variables:{input:e},fetchPolicy:"no-cache"})]})})},e}(),vc=function(){function e(e){this.client=e}return e.prototype.createPaymentSession=function(e){return this.client.mutate({mutation:Hs,variables:{input:e}})},e}();var bc=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 _c=function(){function e(e){this.client=e}return e.prototype.getConfiguration=function(e){return bc(this,void 0,void 0,function(){return Ec(this,function(t){return[2,this.client.query({query:bu,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.saveConfiguration=function(e){return bc(this,void 0,void 0,function(){return Ec(this,function(t){return[2,this.client.mutate({mutation:Zs,variables:{input:e}})]})})},e}(),Ic=function(e,t){this.sdkConfiguration=new Zu(e,t),this.paywall=new Ju(e,t),this.subscriptions=new ac(e),this.mockPaywall=new fc(e),this.customers=new nc(e,t),this.coupons=new rc(e),this.subscriptionEstimations=new lc(e),this.usageHistoryApi=new hc(e),this.credits=new yc(e),this.checkout=new vc(e),this.automaticRecharge=new _c(e)};var Sc="Invariant Violation",Tc=Object.setPrototypeOf,Cc=void 0===Tc?function(e,t){return e.__proto__=t,e}:Tc,wc=function(e){function t(n){void 0===n&&(n=Sc);var r=e.call(this,"number"==typeof n?Sc+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=Sc,Cc(r,t.prototype),r}return m(t,e),t}(Error);function Pc(e,t){if(!e)throw new wc(t)}var Dc=["debug","log","warn","error","silent"],Ac=Dc.indexOf("log");function Oc(e){return function(){if(Dc.indexOf(e)>=Ac)return(console[e]||console.log).apply(console,arguments)}}function Nc(e){try{return e()}catch(e){}}!function(e){e.debug=Oc("debug"),e.log=Oc("log"),e.warn=Oc("warn"),e.error=Oc("error")}(Pc||(Pc={}));const Rc=Nc(function(){return globalThis})||Nc(function(){return window})||Nc(function(){return self})||Nc(function(){return n.g})||Nc(function(){return Function("return this")()});var Fc="__",kc=[Fc,Fc].join("DEV");const xc=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(Rc,kc,{value:"production"!==Nc(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),Rc[kc]}}();function Uc(e){try{return e()}catch(e){}}var Mc=Uc(function(){return globalThis})||Uc(function(){return window})||Uc(function(){return self})||Uc(function(){return n.g})||Uc(function(){return Uc.constructor("return this")()}),Lc=!1;function jc(e){return Array.isArray(e)&&e.length>0}!Mc||Uc(function(){return"production"})||Uc(function(){return process})||(Object.defineProperty(Mc,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Lc=!0),n(4957).H,Lc&&(delete Mc.process,Lc=!1),__DEV__?Pc("boolean"==typeof xc,xc):Pc("boolean"==typeof xc,38);var Vc=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="",(jc((r=l).graphQLErrors)||jc(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),Bc=(n(3616),n(3591)),Gc=fetch,qc=n.n(Bc)()(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)}}),$c=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,qc("".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 Vc({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 Qc(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 Hc(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 zc(e,t,n){return t&&Hc(e.prototype,t),n&&Hc(e,n),e}var Wc=function(){return"function"==typeof Symbol},Zc=function(e){return Wc()&&Boolean(Symbol[e])},Yc=function(e){return Zc(e)?Symbol[e]:"@@"+e};Wc()&&!Zc("observable")&&(Symbol.observable=Symbol("observable"));var Kc=Yc("iterator"),Jc=Yc("observable"),Xc=Yc("species");function el(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function tl(e){var t=e.constructor;return void 0!==t&&null===(t=t[Xc])&&(t=void 0),void 0!==t?t:pl}function nl(e){return e instanceof pl}function rl(e){rl.log?rl.log(e):setTimeout(function(){throw e})}function il(e){Promise.resolve().then(function(){try{e()}catch(e){rl(e)}})}function ol(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=el(t,"unsubscribe");n&&n.call(t)}}catch(e){rl(e)}}function al(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function sl(e,t,n){e._state="running";var r=e._observer;try{var i=el(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(al(e),!i)throw n;i.call(r,n);break;case"complete":al(e),i&&i.call(r)}}catch(e){rl(e)}"closed"===e._state?ol(e):"running"===e._state&&(e._state="ready")}function ul(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 il(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(sl(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)})):void sl(e,t,n);e._queue.push({type:t,value:n})}}var cl=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new ll(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&&(al(this),ol(this))},zc(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),ll=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){ul(this._subscription,"next",e)},t.error=function(e){ul(this._subscription,"error",e)},t.complete=function(){ul(this._subscription,"complete")},zc(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),pl=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 cl(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(tl(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(tl(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=tl(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=tl(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=tl(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[Jc]=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=el(t,Jc);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return nl(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(Zc("iterator")&&(r=el(t,Kc)))return new n(function(e){il(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 Qc(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)?Qc(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){il(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){il(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},zc(e,null,[{key:Xc,get:function(){return this}}]),e}();function dl(e){return null!==e&&"object"==typeof e}function fl(e,t){var n=t,r=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new wc("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 wc(43);"FragmentDefinition"===e.kind&&r.push(e)}),void 0===n&&(__DEV__?Pc(1===r.length,"Found "+r.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):Pc(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 hl(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function ml(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?Pc(n,"No fragment named "+e.name.value+"."):Pc(n,45),n;default:return null}}function gl(e){return{__ref:String(e)}}function yl(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function vl(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 vl(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 vl(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 wc('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new wc(54);e[t.value]=null}}Wc()&&Object.defineProperty(pl,Symbol("extensions"),{value:{symbol:Jc,hostReportError:rl},configurable:!0});var bl=["connection","include","skip","client","rest","export"],El=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+"("+_l(i)+")"}return n.connection.key}var o=e;if(t){var a=_l(t);o+="("+a+")"}return n&&Object.keys(n).forEach(function(e){-1===bl.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@"+e+"("+_l(n[e])+")":o+="@"+e)}),o},{setStringify:function(e){var t=_l;return _l=e,t}}),_l=function(e){return JSON.stringify(e,Il)};function Il(e,t){return dl(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{})),t}function Sl(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){var r=e.name,i=e.value;return vl(n,r,i,t)}),n}return null}function Tl(e){return e.alias?e.alias.value:e.name.value}function Cl(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(wl(o)){if("__typename"===o.name.value)return e[Tl(o)]}else{var a=Cl(e,ml(o,n).selectionSet,n);if("string"==typeof a)return a}}}function wl(e){return"Field"===e.kind}function Pl(e){return"InlineFragment"===e.kind}function Dl(e){__DEV__?Pc(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'):Pc(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 wc('Schema type definitions not allowed in queries. Found: "'+e.kind+'"'):new wc(47);return e});return __DEV__?Pc(t.length<=1,"Ambiguous GraphQL document: contains "+t.length+" operations"):Pc(t.length<=1,48),e}function Al(e){return Dl(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function Ol(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function Nl(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function Rl(e){var t=Al(e);return __DEV__?Pc(t&&"query"===t.operation,"Must contain a query definition."):Pc(t&&"query"===t.operation,49),t}function Fl(e){var t;Dl(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 wc("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new wc(53)}function kl(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(e){e.defaultValue&&vl(t,e.variable.name,e.defaultValue)}),t}function xl(e,t){return t?t(e):pl.of()}function Ul(e){return"function"==typeof e?new jl(e):e}function Ml(e){return e.request.length<=1}var Ll=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return m(t,e),t}(Error),jl=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return pl.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(Ul).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i=Ul(n),o=Ul(r||new e(xl));return Ml(i)&&Ml(o)?new e(function(e){return t(e)?i.request(e)||pl.of():o.request(e)||pl.of()}):new e(function(e,n){return t(e)?i.request(e,n)||pl.of():o.request(e,n)||pl.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?Ol(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 wc("illegal argument: "+i):new wc(26)}return e}(t))))||pl.of()},e.concat=function(t,n){var r=Ul(t);if(Ml(r))return __DEV__&&Pc.warn(new Ll("You are calling concat on a terminating link, which will have no effect",r)),r;var i=Ul(n);return Ml(i)?new e(function(e){return r.request(e,function(e){return i.request(e)||pl.of()})||pl.of()}):new e(function(e,t){return r.request(e,function(e){return i.request(e,t)||pl.of()})||pl.of()})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(xl)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new wc("request is not implemented"):new wc(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}(),Vl=n(8867),Bl=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new wc("Network request failed. "+t+" is not serializable: "+e.message):new wc(23);throw r.parseError=e,r}return n},Gl=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},ql=Object.prototype.hasOwnProperty,$l=n(9054),Ql={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}};function Hl(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 zl(e){return new pl(function(t){t.error(e)})}var Wl=Nc(function(){return fetch}),Zl=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 wc("\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 wc(22)}(r||Wl);var c={http:{includeExtensions:i},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new jl(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),Hl(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,$l.S)(c)),{options:i,body:l}}(e,Ql,c,h),y=m.options,v=m.body;if(v.variables&&!s){var b=new Set(Object.keys(v.variables));(0,Vl.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=Bl(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=Bl(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 zl(C);t=T}else try{y.body=Bl(v,"Payload")}catch(C){return zl(C)}return new pl(function(n){var i;return(r||Nc(function(){return fetch})||Wl)(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&&Gl(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||ql.call(t,"data")||ql.call(t,"errors")||Gl(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}(jl),Yl=jl.execute;function Kl(){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:Jl,hasOwnProperty:Xl}=Object.prototype,ep=Function.prototype.toString,tp=new Map;function np(e,t){try{return rp(e,t)}finally{tp.clear()}}function rp(e,t){if(e===t)return!0;const n=Jl.call(e);if(n!==Jl.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(sp(e,t))return!0;const n=ip(e),r=ip(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;++e)if(!Xl.call(t,n[e]))return!1;for(let r=0;r<i;++r){const i=n[r];if(!rp(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(sp(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&&!rp(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=ep.call(e);return n===ep.call(t)&&!function(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(n,ap)}}return!1}function ip(e){return Object.keys(e).filter(op,e)}function op(e){return void 0!==this[e]}const ap="{ [native code] }";function sp(e,t){let n=tp.get(e);if(n){if(n.has(t))return!0}else tp.set(e,n=new Set);return n.add(t),!1}var up,cp,lp=function(){return Object.create(null)},pp=Array.prototype,dp=pp.forEach,fp=pp.slice,hp=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=lp),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 dp.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(fp.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}(),mp="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),gp="function"==typeof WeakSet,yp="function"==typeof Symbol&&"function"==typeof Symbol.for,vp=function(){function e(){this.known=new(gp?WeakSet:Set),this.pool=new hp(mp),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return dl(e)&&this.known.has(e)},e.prototype.pass=function(e){if(dl(e)){var t=function(e){return dl(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(dl(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}(),bp=Object.assign(function(e){if(dl(e)){void 0===up&&Ep();var t=up.admit(e),n=cp.get(t);return void 0===n&&cp.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)},{reset:Ep});function Ep(){up=new vp,cp=new(mp?WeakMap:Map)}function _p(e,t,n){return new pl(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 Ip(e){return e.errors&&e.errors.length>0||!1}function Sp(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 Tp={kind:"Field",name:{kind:"Name",value:"__typename"}};function Cp(e,t){return e.selectionSet.selections.every(function(e){return"FragmentSpread"===e.kind&&Cp(t[e.name.value],t)})}function wp(e){return Cp(Al(e)||function(e){__DEV__?Pc("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'):Pc("Document"===e.kind,50),__DEV__?Pc(e.definitions.length<=1,"Fragment must have exactly one definition."):Pc(e.definitions.length<=1,51);var t=e.definitions[0];return __DEV__?Pc("FragmentDefinition"===t.kind,"Must be a fragment definition."):Pc("FragmentDefinition"===t.kind,52),t}(e),hl(Nl(e)))?null:e}function Pp(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function Dp(e,t){var n=Object.create(null),r=[],i=Object.create(null),o=[],a=wp((0,Vl.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(Pp(e)))return t.arguments&&t.arguments.forEach(function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})}),t.selectionSet&&Np(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(Pp(e)(t))return null}}}));return a&&Sp(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 wp((0,Vl.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&&Sp(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 wp((0,Vl.Vn)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(o,a)),a}var Ap=Object.assign(function(e){return(0,Vl.Vn)(Dl(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some(function(e){return wl(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var i=n;if(!(wl(i)&&i.directives&&i.directives.some(function(e){return"export"===e.name.value})))return g(g({},e),{selections:E(E([],r,!0),[Tp],!1)})}}}}})},{added:function(e){return e===Tp}}),Op={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some(function(e){return"key"===e.name.value})||__DEV__&&Pc.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 Np(e){var t=[];return e.selections.forEach(function(e){(wl(e)||Pl(e))&&e.selectionSet?Np(e.selectionSet).forEach(function(e){return t.push(e)}):"FragmentSpread"===e.kind&&t.push(e)}),t}function Rp(e){return"query"===Fl(e).operation?e:(0,Vl.Vn)(e,{OperationDefinition:{enter:function(e){return g(g({},e),{operation:"query"})}}})}function Fp(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__?Pc(n&&1===n.length,"Incorrect number of arguments for the @"+r+" directive."):Pc(n&&1===n.length,40);var i=n[0];__DEV__?Pc(i.name&&"if"===i.name.value,"Invalid argument for the @"+r+" directive."):Pc(i.name&&"if"===i.name.value,41);var o=i.value;__DEV__?Pc(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @"+r+" directive must be a variable or a boolean value."):Pc(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__?Pc(void 0!==i,"Invalid variable referenced in @"+n.name.value+" directive."):Pc(void 0!==i,39)):i=r.value.value,"skip"===n.name.value?!i:i})}function kp(e,t){return function(e){var t=[];return(0,Vl.Vn)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some(function(t){return e.indexOf(t)>-1})}function xp(e){return e&&kp(["client"],e)&&kp(["export"],e)}var Up=new Map;function Mp(e){var t=Up.get(e)||1;return Up.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function Lp(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function jp(e){function t(t){Object.defineProperty(e,t,{value:pl})}return yp&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Vp(e){return e&&"function"==typeof e.then}var Bp,Gp=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],Lp(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),Lp(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?Vp(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(),Lp(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 pl(t)]),Vp(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}(pl);function qp(e){return!!e&&e<7}jp(Gp),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"}(Bp||(Bp={}));var $p=Object.prototype.toString;function Qp(e){return Hp(e)}function Hp(e,t){switch($p.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]=Hp(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]=Hp(e[n],t)}),r;default:return e}}var zp=Object.assign,Wp=Object.hasOwnProperty,Zp=!1,Yp=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=Kp)}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=Al(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||Bp.ready,r=g(g({},t),{loading:qp(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),np(r.data,{})&&(r.data=void 0),a.complete?(r.networkStatus!==Bp.loading||"cache-first"!==o&&"cache-only"!==o||(r.networkStatus=Bp.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||Jp(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!np(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||np(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&&Wp.call(e,"variables")){var i=Rl(this.options.query),o=i.variableDefinitions;o&&o.some(function(e){return"variables"===e.variable.name.value})||__DEV__&&Pc.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&&!np(this.options.variables,e)&&(n.variables=this.options.variables=g(g({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,Bp.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=Bp.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,Bp.fetchMore).then(function(r){var i=r.data,o=e.updateQuery;return o?(__DEV__&&!Zp&&(__DEV__&&Pc.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."),Zp=!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__&&Pc.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 np(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},Bp.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__?Pc(n,"Attempted to start a polling query without a polling interval."):Pc(n,12),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(qp(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},Bp.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:Qp(e),variables:t}),jc(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===Bp.refetch||t===Bp.fetchMore||t===Bp.poll,i=this.options.variables,o=r?Kl(this.options,e):zp(this.options,Kl(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!np(e.variables,i)&&(o.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=Bp.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),Lp(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=g(g({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:Bp.error,loading:!1});this.updateLastResult(n,t),Lp(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}(pl);function Kp(e){__DEV__&&Pc.error("Unhandled error",e.message,e.stack)}function Jp(e){__DEV__&&jc(e)&&__DEV__&&Pc.debug("Missing cache result fields: "+e.map(function(e){return e.path.join(".")}).join(", "),e)}jp(Yp);var Xp=Object.prototype.hasOwnProperty;function ed(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return td(e)}function td(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new rd,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var nd=function(e,t,n){return this.merge(e[n],t[n])},rd=function(){function e(e){void 0===e&&(e=nd),this.reconciler=e,this.isObject=dl,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 dl(t)&&dl(e)?(Object.keys(t).forEach(function(i){if(Xp.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 dl(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 id=null;const od={};let ad=1;function sd(e){try{return e()}catch(e){}}const ud="@wry/context:Slot",cd=sd(()=>globalThis)||sd(()=>global)||Object.create(null),ld=cd[ud]||Array[ud]||function(e){try{Object.defineProperty(cd,ud,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",ad++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=id;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===od)break;return e!==id&&(id.slots[this.id]=t),!0}return id&&(id.slots[this.id]=od),!1}getValue(){if(this.hasValue())return id.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=id;id={parent:o,slots:i};try{return t.apply(r,n)}finally{id=o}}static bind(e){const t=id;return function(){const n=id;try{return id=t,e.apply(this,arguments)}finally{id=n}}}static noContext(e,t,n){if(!id)return e.apply(n,t);{const r=id;try{return id=null,e.apply(n,t)}finally{id=r}}}}),{bind:pd,noContext:dd}=ld;function fd(){}var hd,md=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=fd),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}(),gd=new ld,yd=Object.prototype.hasOwnProperty,vd=void 0===(hd=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:hd;function bd(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var Ed=[];function _d(e,t){if(!e)throw new Error(t||"assertion failure")}function Id(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var Sd=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&&!wd(this))return Td(this),this.value[0]},e.prototype.recompute=function(e){return _d(!this.recomputing,"already recomputing"),Td(this),wd(this)?function(e,t){return Fd(e),gd.withValue(e,Cd,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{bd(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,wd(e)||Dd(e)}(e),Id(e.value)}(this,e):Id(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Pd(this),bd(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),Fd(this),Ad(this,function(t,n){t.setDirty(),kd(t,e)})},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=Ed.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(vd(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),Ed.push(this.deps),this.deps=null)},e.count=0,e}();function Td(e){var t=gd.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),wd(e)?Od(t,e):Nd(t,e),t}function Cd(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 wd(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Pd(e){Ad(e,Od)}function Dd(e){Ad(e,Nd)}function Ad(e,t){var n=e.parents.size;if(n)for(var r=vd(e.parents),i=0;i<n;++i)t(r[i],e)}function Od(e,t){_d(e.childValues.has(t)),_d(wd(t));var n=!wd(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Ed.pop()||new Set;e.dirtyChildren.add(t),n&&Pd(e)}function Nd(e,t){_d(e.childValues.has(t)),_d(!wd(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()),Rd(e,t),wd(e)||Dd(e)}function Rd(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(Ed.length<100&&Ed.push(n),e.dirtyChildren=null))}function Fd(e){e.childValues.size>0&&e.childValues.forEach(function(t,n){kd(e,n)}),e.forgetDeps(),_d(null===e.dirtyChildren)}function kd(e,t){t.parents.delete(e),e.childValues.delete(t),Rd(e,t)}var xd={setDirty:!0,dispose:!0,forget:!0};function Ud(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=gd.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(bd(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&yd.call(xd,n)?n:"setDirty";vd(r).forEach(function(e){return e[i]()}),t.delete(e),bd(r)}},r}function Md(){var e=new hp("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}Md();var Ld=new Set;function jd(e,t){void 0===t&&(t=Object.create(null));var n=new md(t.max||Math.pow(2,16),function(e){return e.dispose()}),r=t.keyArgs,i=t.makeCacheKey||Md(),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 Sd(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),Ld.add(n),gd.hasValue()||(Ld.forEach(function(e){return e.clean()}),Ld.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 Vd=null,Bd={},Gd=1,qd="@wry/context:Slot",$d=Array,Qd=$d[qd]||function(){var e=function(){function e(){this.id=["slot",Gd++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=Vd;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Bd)break;return e!==Vd&&(Vd.slots[this.id]=t),!0}return Vd&&(Vd.slots[this.id]=Bd),!1},e.prototype.getValue=function(){if(this.hasValue())return Vd.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=Vd;Vd={parent:a,slots:o};try{return t.apply(r,n)}finally{Vd=a}},e.bind=function(e){var t=Vd;return function(){var n=Vd;try{return Vd=t,e.apply(this,arguments)}finally{Vd=n}}},e.noContext=function(e,t,n){if(!Vd)return e.apply(n,t);var r=Vd;try{return Vd=null,e.apply(n,t)}finally{Vd=r}},e}();try{Object.defineProperty($d,qd,{value:$d[qd]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();Qd.bind,Qd.noContext;var Hd=new Qd,zd=new WeakMap;function Wd(e){var t=zd.get(e);return t||zd.set(e,t={vars:new Set,dep:Ud()}),t}function Zd(e){Wd(e).vars.forEach(function(t){return t.forgetCache(e)})}function Yd(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){Wd(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=Hd.getValue();s&&(i(s),Wd(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),Wd(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var Kd=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=ed(t.resolvers,e)}):this.resolvers=ed(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 kp(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){Dl(e);var t=Dp([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,Vl.Vn)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return wl(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,Vl.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 Vl.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Rp(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=Fl(e),s=Nl(e),u=hl(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 Fp(e,o)?wl(e)?[2,this.resolveField(e,t,n).then(function(t){var n;void 0!==t&&a.push(((n={})[Tl(e)]=t,n))})]:(Pl(e)?s=e:(s=r[e.name.value],__DEV__?Pc(s,"No fragment named "+e.name.value):Pc(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 td(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=Tl(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(Hd.withValue(this.cache,p,[t,Sl(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}(),Jd=new(mp?WeakMap:Map);function Xd(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return Jd.set(e,(Jd.get(e)+1)%1e15),n.apply(this,arguments)})}function ef(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var tf=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;Jd.has(n)||(Jd.set(n,0),Xd(n,"evict"),Xd(n,"modify"),Xd(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||Bp.loading;return this.variables&&this.networkStatus!==Bp.loading&&!np(this.variables,e.variables)&&(t=Bp.setVariables),np(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(){ef(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&&np(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||np(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;ef(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(qp(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&&np(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===Jd.get(this.cache)&&np(t,n.variables)&&np(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=jc(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(nf(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:Jd.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=Bp.ready},e.prototype.markError=function(e){return this.networkStatus=Bp.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function nf(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!Ip(e);return!r&&n&&e.data&&(r=!0),r}var rf=Object.prototype.hasOwnProperty,of=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(mp?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 Kd({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 wc("QueryManager stopped while query was in flight"):new wc(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__?Pc(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):Pc(t,14),__DEV__?Pc("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."):Pc("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 _p(s.getObservableFromLink(t,g(g({},y),{optimisticResponse:r}),n,!1),function(p){if(Ip(p)&&"none"===d)throw new Vc({graphQLErrors:p.errors});o&&(o.loading=!1,o.error=null);var f=g({},p);return"function"==typeof a&&(a=a(f)),"ignore"===d&&Ip(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 Vc?t:new Vc({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&&nf(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&&rf.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&&Ol(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__&&Pc.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),Dp([Op],Dl(t))),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:xp(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:kl(Al(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 tf(this),n=new Yp({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__?Pc(e.query,"query option is required. You must specify your GraphQL document in the query option."):Pc(e.query,16),__DEV__?Pc("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):Pc("Document"===e.query.kind,17),__DEV__?Pc(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):Pc(!e.returnPartialData,18),__DEV__?Pc(!e.pollInterval,"pollInterval option only supported on watchQuery."):Pc(!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 wc("Store reset while query was in flight (not completed in link chain)"):new wc(20)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=Bp.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):dl(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):dl(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=Mp("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new Yp({queryManager:t,queryInfo:i,options:g(g({},e),{fetchPolicy:"network-only"})});Pc(o.queryId===r),i.setObservableQuery(o),n.set(r,o)}),__DEV__&&r.size&&r.forEach(function(e,t){e||__DEV__&&Pc.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&&(nf(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),Ip(o))throw new Vc({graphQLErrors:o.errors});return o})};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,s).then(u);return new pl(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:Ol(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=bp(n);if(!(o=p.get(d))){var f=new Gp([Yl(c,l)]);p.set(d,o=f),f.cleanup(function(){p.delete(d)&&p.size<1&&u.delete(s)})}}else o=new Gp([Yl(c,l)])}else o=new Gp([pl.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=_p(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 _p(this.getObservableFromLink(e.document,n.context,n.variables),function(i){var o=jc(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new Vc({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||Bp.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors),a},function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new Vc({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=Bp.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 Gp(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?Mp("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 tf&&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||Bp.loading);var a=t.result;!__DEV__||c||np(a,{})||Jp(t.missing);var s=function(e){return pl.of(g({data:e,loading:qp(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===Bp.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&&qp(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 tf(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}(),af=!1;function sf(e,t){return Kl(e,t,t.variables&&{variables:g(g({},e.variables),t.variables)})}var uf=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 Zl({uri:n,credentials:r,headers:i}):jl.empty()),!o)throw __DEV__?new wc("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 wc(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),!af&&__DEV__&&(af=!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__&&Pc.log("Download the Apollo DevTools for a better development experience: "+C)}this.version="3.4.17",this.localState=new Kd({cache:o,client:this,resolvers:y,fragmentMatcher:b}),this.queryManager=new of({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=sf(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=sf(this.defaultOptions.query,e)),__DEV__?Pc("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."):Pc("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=sf(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 Yl(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__&&Pc.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}(),cf=function(){function e(){this.getFragmentDoc=jd(fl)}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}(),lf=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 pf(e){return __DEV__&&(t=e,(n=new Set([t])).forEach(function(e){dl(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){dl(e[t])&&n.add(e[t])})})),e;var t,n}var df=Object.prototype.hasOwnProperty;function ff(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 hf={dataIdFromObject:ff,addTypename:!0,resultCaching:!0,canonizeResults:!1};function mf(e){var t=e.canonizeResults;return void 0===t?hf.canonizeResults:t}var gf=/^[_a-z][_0-9a-z]*/i;function yf(e){var t=e.match(gf);return t?t[0]:e}function vf(e,t,n){return!!dl(t)&&(Array.isArray(t)?t.every(function(t){return vf(e,t,n)}):e.selections.every(function(e){if(wl(e)&&Fp(e,n)){var r=Tl(e);return df.call(t,r)&&(!e.selectionSet||vf(e.selectionSet,t[r],n))}return!0}))}function bf(e){return dl(e)&&!yl(e)&&!Array.isArray(e)}var Ef=Object.create(null),_f=function(){return Ef},If=Object.create(null),Sf=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 pf(yl(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return yl(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return gl(e);if(yl(e))return e;var r=n.policies.identify(e)[0];if(r){var i=gl(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),df.call(this.data,e)){var n=this.data[e];if(n&&df.call(n,t))return n[t]}return"__typename"===t&&df.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Pf?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),df.call(this.data,e)?this.data[e]:this instanceof Pf?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;yl(e)&&(e=e.__ref),yl(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__?Pc("string"==typeof n,"store.merge expects a string ID"):Pc("string"==typeof n,1);var a=new rd(Af).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=yf(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof Pf||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:Ef,INVALIDATE:If,isReference:yl,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||gl(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(u){var c=yf(u),l=r[u];if(void 0!==l){var p="function"==typeof t?t:t[u]||t[c];if(p){var d=p===_f?Ef:p(pf(l),g(g({},s),{fieldName:c,storeFieldName:u,storage:n.getStorage(e,u)}));d===If?n.group.dirty(e,u):(d===Ef&&(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 Pf?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]=_f,r):_f)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(df.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof Pf&&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){df.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&&df.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 Pf?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){df.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 Pf;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!df.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){yl(e)&&(t[e.__ref]=!0),dl(e)&&Object.keys(e).forEach(function(t){var n=e[t];dl(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),Tf=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?Ud():null,this.keyMaker=new hp(mp)},e.prototype.depend=function(e,t){if(this.d){this.d(Cf(e,t));var n=yf(t);n!==t&&this.d(Cf(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(Cf(e,t),"__exists"===t?"forget":"setDirty")},e}();function Cf(e,t){return t+"#"+e}function wf(e,t){Of(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 Tf(i))||this;return a.stump=new Df(a),a.storageTrie=new hp(mp),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}(Sf||(Sf={}));var Pf=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){np(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 df.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}(Sf),Df=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new Tf(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}(Pf);function Af(e,t,n){var r=e[n],i=t[n];return np(r,i)?r:i}function Of(e){return!!(e instanceof Sf&&e.group.caching)}function Nf(e,t){return new lf(e.message,t.path.slice(),t.query,t.variables)}function Rf(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Ff=function(){function e(e){var t=this;this.knownResults=new(mp?WeakMap:Map),this.config=Kl(e,{addTypename:!1!==e.addTypename,canonizeResults:mf(e)}),this.canon=e.canon||new vp,this.executeSelectionSet=jd(function(e){var n,r=e.context.canonizeResults,i=Rf(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:(wf(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:Rf,makeCacheKey:function(e,t,n,r){if(Of(n.store))return n.store.makeCacheKey(e,yl(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=jd(function(e){return wf(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(Of(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new vp},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({},kl(Rl(n))),o);var p=gl(i),d=this.executeSelectionSet({selectionSet:Fl(n).selectionSet,objectOrReference:p,enclosingRef:p,context:{store:t,query:n,policies:l,variables:o,varString:bp(o),canonizeResults:c,fragmentMap:hl(Nl(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(Of(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(yl(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:[Nf(__DEV__?new wc("Dangling reference to missing "+r.__ref+" object"):new wc(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(Fp(e,a))if(wl(e)){var u=s.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),l=Tl(e);o.path.push(l),void 0===u?Ap.added(e)||d().push(Nf(__DEV__?new wc("Can't find field '"+e.name.value+"' on "+(yl(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2))):new wc(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:yl(u)?u:i,context:o}))):o.canonizeResults&&(u=t.canon.pass(u)),void 0!==u&&c.push(((n={})[l]=u,n)),Pc(o.path.pop()===l)}else{var m=ml(e,o.fragmentMap);m&&s.fragmentMatches(m,p)&&m.selectionSet.selections.forEach(h.add,h)}});var m=td(c);return l.result=o.canonizeResults?this.canon.admit(m):pf(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),Pc(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:yl(e)?e:o,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){dl(n)&&(__DEV__?Pc(!yl(n),"Missing selection set for object of type "+function(e,t){return yl(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)+" returned for query field "+t.name.value):Pc(!yl(n),7),Object.values(n).forEach(r.add,r))})}}(a.store,r,e),Pc(a.path.pop()===t),e))}),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),kf=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=Al(r),c=new rd;a=g(g({},kl(u)),a);var l={store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:bp(a),fragmentMap:hl(Nl(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(!yl(p))throw __DEV__?new wc("Could not identify object "+JSON.stringify(i)):new wc(8);return l.incomingById.forEach(function(t,r){var i=t.fields,o=t.mergeTree,a=t.selections,s=gl(r);if(o&&o.map.size){var u=n.applyMerges(o,s,i,l);if(yl(u))return;i=u}if(__DEV__&&!l.overwrite){var c=new Set;a.forEach(function(e){wl(e)&&e.selectionSet&&c.add(e.name.value)}),Object.keys(i).forEach(function(e){(function(e){return c.has(yf(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&&!yl(o)&&!np(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=yf(n),c=s+"."+u;if(!Vf.has(c)){Vf.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__&&Pc.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=gl(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]||Cl(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(Fp(e,o.variables))if(wl(e)){var i=Tl(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=Uf(a,l),d=t.processFieldValue(u,e,o,p),g=void 0;if(e.selectionSet&&!(g=o.store.getFieldValue(d,"__typename"))&&yl(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}:jf(a,l),f=o.merge(f,((n={})[l]=d,n))}else o.clientOnly||Ap.added(e)||__DEV__&&Pc.error(("Missing field '"+Tl(e)+"' while writing result "+JSON.stringify(r,null,2)).substring(0,1e3));o.clientOnly=c}else{var b=ml(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=Mf(g.mergeTree,a),g.selections.forEach(m.add,m),g.selections=m):o.incomingById.set(n,{fields:f,mergeTree:Lf(a)?void 0:a,selections:m}),gl(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,Uf(r,o));return jf(r,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?Qp(e):e},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!yl(n)){var s,u=Array.isArray(n)||!yl(t)&&!bf(t)?void 0:t,c=n;u&&!i&&(i=[yl(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&&Pc(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}(),xf=[];function Uf(e,t){var n=e.map;return n.has(t)||n.set(t,xf.pop()||{map:new Map}),n.get(t)}function Mf(e,t){if(e===t||!t||Lf(t))return e;if(!e||Lf(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,Mf(e,t.map.get(n))),o.delete(n)}),o.forEach(function(n){i.map.set(n,Mf(t.map.get(n),e.map.get(n)))})}return i}function Lf(e){return!e||!(e.info||e.map.size)}function jf(e,t){var n=e.map,r=n.get(t);r&&Lf(r)&&(xf.push(r),n.delete(t))}var Vf=new Set;function Bf(e){var t=Mp("stringifyForDisplay");return JSON.stringify(e,function(e,n){return void 0===n?t:n}).split(JSON.stringify(t)).join("<undefined>")}function Gf(e){return void 0!==e.args?e.args:e.field?Sl(e.field,e.variables):null}El.setStringify(bp);var qf=function(){},$f=function(e,t){return t.fieldName},Qf=function(e,t,n){return(0,n.mergeObjects)(e,t)},Hf=function(e,t){return t},zf=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:ff},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?Cl(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=Kf(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),df.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?Qf:!1===t?Hf:e.merge}a(r,t.merge),r.keyFn=!1===i?qf:Array.isArray(i)?Kf(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?$f:Array.isArray(s)?Yf(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||$f)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?Pc(!r||r===e,"Cannot change root "+e+" __typename more than once"):Pc(!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(gf);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!df.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__&&Pc.warn("Inferring subtype "+t+" of supertype "+o),a.add(o)),!0;d.forEach(u),c&&p===s.length-1&&vf(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=Gf(e);o;){var u=o(s,a);if(!Array.isArray(u)){t=u||r;break}o=Yf(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 vl(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 vl(r,n,i,t)})),El(e.name.value,r,n)}(e.field,e.variables):El(r,Gf(e))),!1===t?r:r===yf(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=yf(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=Wf(this,n,e,t,t.store.getStorage(yl(n)?n.__ref:n,i));return Hd.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===Qf?Zf(r.store)(e,t):s===Hf?t:(r.overwrite&&(e=void 0),s(e,t,Wf(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function Wf(e,t,n,r,i){var o=e.getStoreFieldName(n),a=yf(o),s=n.variables||r.variables,u=r.store,c=u.toReference,l=u.canRead;return{args:Gf(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:yl,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(!dl(n))return void(__DEV__&&Pc.warn("Unexpected readField arguments: "+Bf(Array.from(arguments))));o=g({},n),df.call(n,"from")||(o.from=t)}return __DEV__&&void 0===o.from&&__DEV__&&Pc.warn("Undefined 'from' passed to readField with arguments "+Bf(Array.from(arguments))),void 0===o.variables&&(o.variables=s),e.readField(o,r)},mergeObjects:Zf(r.store)}}function Zf(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new wc("Cannot automatically merge arrays"):new wc(3);if(dl(t)&&dl(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(yl(t)&&bf(n))return e.merge(t.__ref,n),t;if(bf(t)&&yl(n))return e.merge(t,n.__ref),n;if(bf(t)&&bf(n))return g(g({},t),n)}return n}}function Yf(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify(Xf(t,e,!1)):n.fieldName}}function Kf(e){var t=new hp(mp);return function(n,r){var i;if(r.selectionSet&&r.fragmentMap){var o=t.lookupArray([r.selectionSet,r.fragmentMap]);i=o.aliasMap||(o.aliasMap=Jf(r.selectionSet,r.fragmentMap))}var a=r.keyObject=Xf(n,e,!0,i);return r.typename+":"+JSON.stringify(a)}}function Jf(e,t){var n=Object.create(null),r=new Set([e]);return r.forEach(function(e){e.selections.forEach(function(e){if(wl(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]=Jf(e.selectionSet,t))}else{var a=ml(e,t);a&&r.add(a.selectionSet)}})}),n}function Xf(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]=Xf(e[i],t,n,u)}}else{var c=r&&r.aliases,l=c&&c[t]||t;df.call(e,l)?a[o=t]=e[i=l]:(__DEV__?Pc(!n,"Missing field '"+l+"' while computing key fields"):Pc(!n,4),i=o=void 0)}}),a}var eh=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=Yd,n.txCount=0,n.config=function(e){return Kl(hf,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new zf({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 Sf.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 kf(this,this.storeReader=new Ff({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:mf(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=jd(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(Of(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,bp({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 lf)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(df.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||Wd(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&&Zd(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){bp.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 yl(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(df.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(),bp.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),Zd(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=Ap(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&&np(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(cf),th=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}(),nh=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 th(e,t,this.delayFor,this.retryIf);return n.start(),new pl(function(e){return n.subscribe(e),function(){n.unsubscribe(e)}})},t}(jl);const rh="4.13.0";var ih=function(e){return!!e&&![500,400].includes(e.statusCode)};var oh=[ot.Incremental,ot.Fluctuating];function ah(e){return(null==e?void 0:e.featureType)===We.Number&&!(0,Wu.isNil)(e.meterType)&&oh.includes(e.meterType)}var sh=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 ah(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 uh(e){return e.calculatedEntitlement.type===we.Feature}function ch(e){return e.calculatedEntitlement.type===we.Credit}var lh,ph=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 sh(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 sh(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}(),dh=(new Date(0),function(e,t){return{cacheMiss:!1,entitlements:e,accessDeniedReason:t,globalCustomerMissing:!1}}),fh=((lh={})[Pe.CustomerNotFound]=R.CustomerNotFound,lh[Pe.NoActiveSubscription]=R.NoActiveSubscription,lh[Pe.CustomerIsArchived]=R.CustomerIsArchived,lh);function hh(e){return e?fh[e]:null}var mh=n(8879),gh=n.n(mh);var yh=function(){function e(){}return e.prototype.transform=function(e){for(var t=new Date,n=ph.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(!uh(e))return e;var o=e.calculatedEntitlement,a=e.usageData;if(!(ah(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=gh()(t),i=gh()(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 sh(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}(),vh=function(){return vh=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},vh.apply(this,arguments)},bh=function(){function e(){}return e.prototype.transform=function(e){for(var t=ph.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(!uh(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 sh(vh(vh({},e.calculatedEntitlement),{accessDeniedReason:t}),e.usageData)},e}(),Eh=function(){function e(){this.transformations=[new yh,new bh]}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}(),_h=function(){function e(e){this.query=e}return e.prototype.transform=function(e){var t=e.get(this.query);if(!t)return ph.empty();var n=this.getCreditRateDependency(t,e);return ph.fromEntitlements((0,Wu.compact)([t,n]))},e.prototype.getCreditRateDependency=function(e,t){if(uh(e)){var n=e.calculatedEntitlement.creditRate;if(n)return t.get({type:we.Credit,id:n.currencyId})}},e}(),Ih=function(){function e(e,t,n){var r=this;this.entitlements=e,this.instrumentation=t,this.cacheMapper=n,this.freshen=new Eh,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=ph.fromInput(this.cacheMapper,r).entitlements;return this.entitlements.set(o,{entitlements:a,accessDeniedReason:hh(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 _h(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}),dh(h,d)},e}(),Sh=function(e){return e?new Date(e):void 0},Th={type:"BOOLEAN",isFallback:!0,hasAccess:!1,accessDeniedReason:R.Unknown},Ch={type:"NUMERIC",isFallback:!0,hasAccess:!1,isUnlimited:!1,accessDeniedReason:R.Unknown},wh={type:"METERED",isFallback:!0,hasAccess:!1,isUnlimited:!1,hasSoftLimit:!1,currentUsage:0,requestedUsage:1,accessDeniedReason:R.Unknown},Ph={type:"ENUM",isFallback:!0,hasAccess:!1,enumValues:[],accessDeniedReason:R.Unknown},Dh={isFallback:!0,hasAccess:!1,accessDeniedReason:R.Unknown,currency:{currencyId:""},usageLimit:0,currentUsage:0,remaining:0,hasSoftLimit:!1},Ah=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}(),Oh=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}:ch(r)?this.decideCreditAccess(r):uh(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}(),Nh=function(){return Nh=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},Nh.apply(this,arguments)},Rh=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:Sh(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(Nh(Nh({},r),{customer:{id:"",refId:n}})):void 0}},this.mapFullCustomer=function(t){var n;return new Ah(Nh(Nh({},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(uh(e))return this.mapFeatureEntitlement(e,t,n,r);if(ch(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?Nh(Nh({},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?Nh(Nh({},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?Nh(Nh({},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:Sh(u),usagePeriodStart:Sh(p),usagePeriodEnd:Sh(d),nextResetDate:Sh(d),feature:e.calculatedEntitlement.feature?Nh(Nh({},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:Sh(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:ah(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:Sh(e.startDate),endDate:Sh(e.endDate),trialEndDate:Sh(e.trialEndDate),cancellationDate:Sh(e.cancellationDate),currentBillingPeriodEnd:Sh(e.currentBillingPeriodEnd),effectiveEndDate:Sh(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?Nh(Nh({},e),{createdAt:Sh(e.createdAt),updatedAt:Sh(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:ah(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:Sh(e.credit.usagePeriodEnd),consumed:e.credit.consumed}:void 0,usagePeriodStart:Sh(e.usagePeriodStart),usagePeriodEnd:Sh(e.usagePeriodEnd),nextResetDate:Sh(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=Sh(e.timestamp))&&void 0!==t?t:new Date,credit:e.credit?{currencyId:e.credit.currencyId,currentUsage:e.credit.currentUsage,usageLimit:e.credit.usageLimit,usagePeriodEnd:Sh(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 Nh(Nh(Nh({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:Nh(Nh({},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?Nh({},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 Nh(Nh({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 Nh({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}(),Fh=function(){return Fh=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},Fh.apply(this,arguments)};function kh(e){return null!=e&&"requestedUsage"in e}function xh(e){return null!=e&&"requestedValues"in e}function Uh(e){var t=e.currencyId,n=e.accessDeniedReason,r=e.fallback,i=void 0===r?{}:r,o=Fh(Fh(Fh(Fh(Fh({},Dh),{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 Fh(Fh({},o),{accessDeniedReason:c,remaining:"number"==typeof a&&"number"==typeof s?Math.max(a-s,0):u})}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)},Lh=function(){function e(e){this.modelMapper=null!=e?e:new Rh}return e.prototype.evaluateBooleanEntitlement=function(e,t,n){var r,i=Oh.decideEntitlementPolicy({entitlementType:we.Feature,accessDeniedReason:t,entitlement:e});return e&&(null==(r=e.calculatedEntitlement.feature)?void 0:r.featureType)!==We.Boolean?Mh(Mh({},n),{accessDeniedReason:R.FeatureTypeMismatch}):e?this.modelMapper.mapBooleanEntitlement(e,i):Mh(Mh({type:"BOOLEAN"},i),{isFallback:!1})},e.prototype.evaluateNumericEntitlement=function(e,t,n){var r,i=Oh.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)?Mh(Mh({},n),{accessDeniedReason:R.FeatureTypeMismatch}):e?this.modelMapper.mapNumericEntitlement(e,i):Mh(Mh({type:"NUMERIC"},i),{isFallback:!1,isUnlimited:!1})},e.prototype.evaluateMeteredEntitlement=function(e,t,n,r){var i=Oh.decideEntitlementPolicy({entitlementType:we.Feature,accessDeniedReason:t,entitlement:e,requestedUsage:r});return e&&!ah(e.calculatedEntitlement.feature)?Mh(Mh({},n),{accessDeniedReason:R.FeatureTypeMismatch}):e?this.modelMapper.mapMeteredEntitlement(e,i,r):Mh(Mh({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=Oh.decideEntitlementPolicy({entitlementType:we.Feature,accessDeniedReason:t,entitlement:e,requestedValues:r});return e&&(null==(i=e.calculatedEntitlement.feature)?void 0:i.featureType)!==We.Enum?Mh(Mh({},n),{accessDeniedReason:R.FeatureTypeMismatch}):e?this.modelMapper.mapEnumEntitlement(e,o,r):Mh(Mh({type:"ENUM"},o),{isFallback:!1,enumValues:[],requestedValues:r||[]})},e.prototype.evaluateCreditEntitlement=function(e,t,n,r){var i=Oh.decideEntitlementPolicy({entitlementType:we.Credit,accessDeniedReason:t,entitlement:e});return e?this.modelMapper.mapCreditEntitlement(e,i):Mh(Mh({},Uh({currencyId:n,accessDeniedReason:i.accessDeniedReason,fallback:r})),{hasAccess:i.hasAccess,isFallback:!!r})},e.prototype.evaluateEntitlement=function(e,t,n,r,i){var o,a=kh(r)?r.requestedUsage:void 0,s=xh(r)?r.requestedValues:void 0,u=Oh.decideEntitlementPolicy({entitlementType:e.type,accessDeniedReason:n,entitlement:t,requestedUsage:a,requestedValues:s});return t?this.modelMapper.mapEntitlement(t,u,a,s):i?Mh(Mh({},i),{accessDeniedReason:null!==(o=u.accessDeniedReason)&&void 0!==o?o:i.accessDeniedReason,isFallback:!0}):function(e,t,n){if(e.type===we.Credit)return Uh({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 kh(e)?Fh(Fh({},wh),n):xh(e)?Fh(Fh({},Ph),n):function(e){var t=null==e?void 0:e.fallback;return null!=e&&null!=t&&"value"in t}(e)?Fh(Fh({},Ch),n):Fh(Fh({},Th),n)}(t),i=r.hasAccess?void 0:null!=n?n:r.accessDeniedReason;return Fh(Fh({},r),{accessDeniedReason:i,isFallback:!0})}(e,r,u.accessDeniedReason)},e}();function jh(e){return"feature"in e}var Vh=function(){return Vh=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},Vh.apply(this,arguments)};function Bh(e){return e?Object.keys(e).map(function(t){return Vh({isFallback:!0,accessDeniedReason:R.Unknown,feature:{id:t}},e[t])}):[]}var Gh=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=Sh(e.usageUpdatedAt))||void 0===t?void 0:t.getTime())&&void 0!==n?n:null;return{entitlement:new sh({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=Sh(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=Sh(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=Sh(e.usageUpdatedAt))||void 0===n?void 0:n.getTime())&&void 0!==r?r:null;return{entitlement:new sh({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=Sh(e.validUntil))||void 0===o?void 0:o.getTime())||null,usagePeriodAnchor:(null===(a=Sh(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=Sh(e.usagePeriodStart))||void 0===s?void 0:s.getTime())&&void 0!==u?u:null,usagePeriodEnd:null!==(l=null===(c=Sh(e.usagePeriodEnd))||void 0===c?void 0:c.getTime())&&void 0!==l?l:null}),usageUpdatedAt:f}},e}(),qh=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}(),$h=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}();const Qh=$h;var Hh,zh=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())})},Wh=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 Lh,this.loadingEntitlements=null,this.entitlementsApi=new Qh(r,i)}return e.prototype.refresh=function(){return zh(this,void 0,Promise,function(){return Wh(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 zh(this,void 0,Promise,function(){return Wh(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 zh(this,void 0,void 0,function(){var t,n,r,i;return Wh(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 zh(this,void 0,Promise,function(){return Wh(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 zh(this,void 0,Promise,function(){return Wh(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}(),Yh=n(1434),Kh=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)}}(),Jh=function(e){function t(){return e.call(this)||this}return Kh(t,e),t}(Yh.TypedEmitter);!function(e){e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="READY",e.FAILED="FAILED"}(Hh||(Hh={}));var Xh=function(){function e(e){this.eventEmitter=e,this.initializationPromise=null,this.initializationStatus=Hh.IN_PROGRESS,this.initFailureError=null}return e.prototype.getInitializationPromise=function(){var e=this;return this.initializationPromise?this.initializationPromise:this.initializationStatus===Hh.SUCCESS?Promise.resolve():this.initializationStatus===Hh.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=Hh.SUCCESS,this.eventEmitter.emit("initializeSuccessfully")},e.prototype.signalFailedInit=function(e){this.initializationStatus=Hh.FAILED,this.initFailureError=e,this.eventEmitter.emit("initializeFailed",e)},e}();const em=Object.prototype.toString;function tm(e){switch(em.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return pm(e,Error)}}function nm(e,t){return em.call(e)===`[object ${t}]`}function rm(e){return nm(e,"ErrorEvent")}function im(e){return nm(e,"DOMError")}function om(e){return nm(e,"String")}function am(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function sm(e){return null===e||am(e)||"object"!=typeof e&&"function"!=typeof e}function um(e){return nm(e,"Object")}function cm(e){return"undefined"!=typeof Event&&pm(e,Event)}function lm(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function pm(e,t){try{return e instanceof t}catch(e){return!1}}function dm(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function fm(e){return e&&e.Math==Math?e:void 0}const hm="object"==typeof globalThis&&fm(globalThis)||"object"==typeof window&&fm(window)||"object"==typeof self&&fm(self)||"object"==typeof n.g&&fm(n.g)||function(){return this}()||{};function mm(){return hm}function gm(e,t,n){const r=n||hm,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const ym=mm();function vm(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=bm(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 bm(e,t){const n=e,r=[];let i,o,a,s,u;if(!n||!n.tagName)return"";if(ym.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&&om(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 Em="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,_m=["debug","info","warn","error","log","assert","trace"],Im={};function Sm(e){if(!("console"in hm))return e();const t=hm.console,n={},r=Object.keys(Im);r.forEach(e=>{const r=Im[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}const Tm=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Em?_m.forEach(n=>{t[n]=(...t)=>{e&&Sm(()=>{hm.console[n](`Sentry Logger [${n}]:`,...t)})}}):_m.forEach(e=>{t[e]=()=>{}}),t}();function Cm(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function wm(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const r=e[t];try{dm(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Pm(e,t=[],n=!1){return t.some(t=>function(e,t,n=!1){return!!om(e)&&(nm(t,"RegExp")?t.test(e):!!om(t)&&(n?e===t:e.includes(t)))}(e,t,n))}function Dm(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"==typeof i&&Om(i,r),e[t]=i}function Am(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){Em&&Tm.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Om(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Am(e,"__sentry_original__",t)}catch(e){}}function Nm(e){return e.__sentry_original__}function Rm(e){if(tm(e))return{message:e.message,name:e.name,stack:e.stack,...km(e)};if(cm(e)){const t={type:e.type,target:Fm(e.target),currentTarget:Fm(e.currentTarget),...km(e)};return"undefined"!=typeof CustomEvent&&pm(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Fm(e){try{return"undefined"!=typeof Element&&pm(e,Element)?vm(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function km(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 xm(e){return Um(e,new Map)}function Um(e,t){if(function(e){if(!um(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]=Um(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(Um(e,t))}),r}return e}function Mm(){const e=hm,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 Lm(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function jm(e){const{message:t,event_id:n}=e;if(t)return t;const r=Lm(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Vm(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 Bm(e,t){const n=Lm(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 Gm(e){if(e&&e.__sentry_captured__)return!0;try{Am(e,"__sentry_captured__",!0)}catch(e){}return!1}function qm(){return Date.now()/1e3}const $m=function(){const{performance:e}=hm;if(!e||!e.now)return qm;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();let Qm;(()=>{const{performance:e}=hm;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 Hm="production",zm="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var Wm;function Zm(e){return new Km(t=>{t(e)})}function Ym(e){return new Km((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(Wm||(Wm={}));class Km{constructor(e){Km.prototype.__init.call(this),Km.prototype.__init2.call(this),Km.prototype.__init3.call(this),Km.prototype.__init4.call(this),this._state=Wm.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Km((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 Km((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(Wm.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Wm.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===Wm.PENDING&&(lm(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Wm.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===Wm.RESOLVED&&e[1](this._value),this._state===Wm.REJECTED&&e[2](this._value),e[0]=!0)})}}}function Jm(){return gm("globalEventProcessors",()=>[])}function Xm(e){Jm().push(e)}function eg(e,t,n,r=0){return new Km((i,o)=>{const a=e[r];if(null===t||"function"!=typeof a)i(t);else{const s=a({...t},n);zm&&a.id&&null===s&&Tm.log(`Event processor "${a.id}" dropped event`),lm(s)?s.then(t=>eg(e,t,n,r+1).then(i)).then(null,o):eg(e,s,n,r+1).then(i).then(null,o)}})}function tg(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||$m(),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:Mm()),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 ng(e){return e.transaction}function rg(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:a,tags:s,origin:u}=ig(e);return xm({data:r,op:i,parent_span_id:o,span_id:t,status:a,tags:s,trace_id:n,origin:u})}function ig(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function og(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},a=xm({environment:r.environment||Hm,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}function ag(e){const t=Fg();if(!t)return{};const n=og(ig(e).trace_id||"",t,bg().getScope()),r=ng(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=ig(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 sg(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=xm(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const c=xm(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const l=xm(i);l&&Object.keys(l).length&&(e.user={...l,...e.user});const p=xm(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:rg(t),...e.contexts};const n=ng(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:ag(t),...e.sdkProcessingMetadata};const r=ig(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 ug(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;cg(e,"extra",n),cg(e,"tags",r),cg(e,"user",i),cg(e,"contexts",o),cg(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 cg(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 lg;class pg{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=dg()}static clone(e){return e?e.clone():new pg}clone(){const e=new pg;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&&tg(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 pg){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(um(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=dg(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:qm(),...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 sg(e,this.getScopeData()),eg([...n,...Jm(),...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:Mm();if(!this._client)return Tm.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:Mm();if(!this._client)return Tm.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:Mm();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Tm.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 dg(){return{traceId:Mm(),spanId:Mm().substring(16)}}const fg="7.120.4",hg=parseFloat(fg),mg=100;class gg{constructor(e,t,n,r=hg){let i,o;this._version=r,t?i=t:(i=new pg,i.setClient(e)),n?o=n:(o=new pg,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 lm(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:Mm(),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:Mm(),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:Mm();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=mg}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const a={timestamp:qm(),...e},s=i?Sm(()=>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=vg(this);try{e(this)}finally{vg(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return zm&&Tm.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return zm&&!n&&(this.getClient()?Tm.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):Tm.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"}),tg(e,t)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=Hm}=n&&n.getOptions()||{},{userAgent:o}=hm.navigator||{},a=function(e){const t=$m(),n={sid:Mm(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return xm({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&&tg(n,e),n}({release:r,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),s=t.getSession&&t.getSession();return s&&"ok"===s.status&&tg(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=yg().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);zm&&Tm.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function yg(){return hm.__SENTRY__=hm.__SENTRY__||{extensions:{},hub:void 0},hm}function vg(e){const t=yg(),n=Eg(t);return _g(t,e),n}function bg(){const e=yg();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=yg()){return t=e,!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)&&!Eg(e).isOlderThan(hg)||_g(e,new gg),Eg(e);var t}(e)}function Eg(e){return gm("hub",()=>new gg,e)}function _g(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}const Ig=/\(error: (.*)\)/,Sg=/captureMessage|captureException/;const Tg="<anonymous>";function Cg(e){try{return e&&"function"==typeof e&&e.name||Tg}catch(e){return Tg}}function wg(e,t=100,n=1/0){try{return Dg("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Pg(e,t=3,n=102400){const r=wg(e,t);return i=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?Pg(e,t-1,n):r;var i}function Dg(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(dm(t))return"[VueViewModel]";if(function(e){return um(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: ${Cg(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 Dg("",p.toJSON(),l-1,i,o)}catch(e){}const d=Array.isArray(t)?[]:{};let f=0;const h=Rm(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]=Dg(e,t,l-1,i,o),f++}return s(t),d}const Ag=new WeakMap;const Og=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Ng(e,t){return bg().captureEvent(e,t)}function Rg(e,t){bg().addBreadcrumb(e,t)}function Fg(){return bg().getClient()}const kg=[];function xg(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Ug(e,t,n){if(n[t.name])zm&&Tm.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===kg.indexOf(t.name)&&(t.setupOnce(Xm,bg),kg.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)}zm&&Tm.log(`Integration installed: ${t.name}`)}}function Mg(e,t){const n=function(...e){return t(...e)};return n.id=e,n}let Lg;const jg="FunctionToString",Vg=new WeakMap,Bg=Mg(jg,()=>({name:jg,setupOnce(){Lg=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Nm(this),n=Vg.has(Fg())&&void 0!==t?t:this;return Lg.apply(n,e)}}catch(e){}},setup(e){Vg.set(e,!0)}})),Gg=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],qg=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],$g="InboundFilters",Qg=Mg($g,(e={})=>({name:$g,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?[]:Gg],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:qg],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)?(zm&&Tm.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${jm(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}`)),zm&&0===t.length&&Tm.error(`Could not extract message for event ${jm(e)}`),t}(e).some(e=>Pm(e,t))}(e,t.ignoreErrors)?(zm&&Tm.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${jm(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&Pm(n,t)}(e,t.ignoreTransactions)?(zm&&Tm.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${jm(e)}`),!0):function(e,t){if(!t||!t.length)return!1;const n=Hg(e);return!!n&&Pm(n,t)}(e,t.denyUrls)?(zm&&Tm.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${jm(e)}.\nUrl: ${Hg(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;const n=Hg(e);return!n||Pm(n,t)}(e,t.allowUrls)&&(zm&&Tm.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${jm(e)}.\nUrl: ${Hg(e)}`),!0)}(t,o)?null:t}}));function Hg(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 zm&&Tm.error(`Cannot extract url for event ${jm(e)}`),null}}function zg(e,t,n=250,r,i,o,a){if(!(o.exception&&o.exception.values&&a&&pm(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=Wg(e,t,i,a.originalException,r,o.exception.values,s,0),c=n,u.map(e=>(e.value&&(e.value=Cm(e.value,c)),e))))}function Wg(e,t,n,r,i,o,a,s){if(o.length>=n+1)return o;let u=[...o];if(pm(r[i],Error)){Zg(a,s);const o=e(t,r[i]),c=u.length;Yg(o,i,c,s),u=Wg(e,t,n,r[i],i,[o,...u],o,c)}return Array.isArray(r.errors)&&r.errors.forEach((r,o)=>{if(pm(r,Error)){Zg(a,s);const c=e(t,r),l=u.length;Yg(c,`errors[${o}]`,l,s),u=Wg(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 Yg(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 Kg(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 Jg="LinkedErrors",Xg=Mg(Jg,(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:Jg,setupOnce(){},preprocessEvent(e,r,i){const o=i.getOptions();zg(Kg,o.stackParser,o.maxValueLength,n,t,e,r)}}}),ey=s,ty=hm;let ny=0;function ry(){return ny>0}function iy(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(Nm(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=>iy(e,t));return e.apply(this,i)}catch(e){throw ny++,setTimeout(()=>{ny--}),function(...e){const t=bg();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&&(Vm(e,void 0,void 0),Bm(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),i=e,bg().captureException(i,function(e){if(e)return function(e){return e instanceof pg||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>Og.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){}Om(r,e),Am(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}const oy={},ay={};function sy(e,t){oy[e]=oy[e]||[],oy[e].push(t)}function uy(e,t){ay[e]||(t(),ay[e]=!0)}function cy(e,t){const n=e&&oy[e];if(n)for(const r of n)try{r(t)}catch(t){Em&&Tm.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Cg(r)}\nError:`,t)}}let ly=null;function py(){ly=hm.onerror,hm.onerror=function(e,t,n,r,i){return cy("error",{column:r,error:i,line:n,msg:e,url:t}),!(!ly||ly.__SENTRY_LOADER__)&&ly.apply(this,arguments)},hm.onerror.__SENTRY_INSTRUMENTED__=!0}let dy=null;function fy(){dy=hm.onunhandledrejection,hm.onunhandledrejection=function(e){return cy("unhandledrejection",e),!(dy&&!dy.__SENTRY_LOADER__)||dy.apply(this,arguments)},hm.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const hy="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function my(e,t){const n=yy(e,t),r={type:t&&t.name,value:by(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function gy(e,t){return{exception:{values:[my(e,t)]}}}function yy(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(vy.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const vy=/Minified React error #\d+;/i;function by(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Ey(e,t,n,r,i){let o;if(rm(t)&&t.error)return gy(e,t.error);if(im(t)||nm(t,"DOMException")){const i=t;if("stack"in t)o=gy(e,t);else{const t=i.name||(im(i)?"DOMError":"DOMException"),a=i.message?`${t}: ${i.message}`:t;o=_y(e,a,n,r),Vm(o,a)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return tm(t)?gy(e,t):um(t)||cm(t)?(o=function(e,t,n,r){const i=Fg(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:cm(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Iy(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Pg(t,o)}};if(n){const t=yy(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,i),Bm(o,{synthetic:!0}),o):(o=_y(e,t,n,r),Vm(o,`${t}`,void 0),Bm(o,{synthetic:!0}),o)}function _y(e,t,n,r){const i={};if(r&&n){const r=yy(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(am(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 Iy(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(Rm(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Cm(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:Cm(r,t)}return""}(e),r=t?"promise rejection":"exception";return rm(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:cm(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 Sy="GlobalHandlers",Ty=Mg(Sy,(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Sy,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){!function(){const t="error";sy(t,t=>{const{stackParser:n,attachStacktrace:r}=Py();if(Fg()!==e||ry())return;const{msg:i,url:o,line:a,column:s,error:u}=t,c=void 0===u&&om(i)?function(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=rm(e)?e.message:e,a="Error";const s=o.match(i);s&&(a=s[1],o=s[2]);return Cy({exception:{values:[{type:a,value:o}]}},t,n,r)}(i,o,a,s):Cy(Ey(n,u||i,void 0,r,!1),o,a,s);c.level="error",Ng(c,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}),uy(t,py)}()}(e),wy("onerror")),t.onunhandledrejection&&(function(e){!function(){const t="unhandledrejection";sy(t,t=>{const{stackParser:n,attachStacktrace:r}=Py();if(Fg()!==e||ry())return;const i=function(e){if(sm(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=sm(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:Ey(n,i,void 0,r,!0);o.level="error",Ng(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}),uy(t,fy)}()}(e),wy("onunhandledrejection"))}}});function Cy(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=om(t)&&t.length>0?t:function(){try{return ym.document.location.href}catch(e){return""}}();return 0===u.length&&u.push({colno:c,filename:p,function:"?",in_app:!0,lineno:l}),e}function wy(e){hy&&Tm.log(`Global Handler attached: ${e}`)}function Py(){const e=Fg();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Dy=["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"],Ay="TryCatch",Oy=Mg(Ay,(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Ay,setupOnce(){t.setTimeout&&Dm(ty,"setTimeout",Ny),t.setInterval&&Dm(ty,"setInterval",Ny),t.requestAnimationFrame&&Dm(ty,"requestAnimationFrame",Ry),t.XMLHttpRequest&&"XMLHttpRequest"in ty&&Dm(XMLHttpRequest.prototype,"send",Fy);const e=t.eventTarget;e&&(Array.isArray(e)?e:Dy).forEach(ky)}}});function Ny(e){return function(...t){const n=t[0];return t[0]=iy(n,{mechanism:{data:{function:Cg(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Ry(e){return function(t){return e.apply(this,[iy(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Cg(e)},handled:!1,type:"instrument"}})])}}function Fy(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&Dm(n,e,function(t){const n={mechanism:{data:{function:e,handler:Cg(t)},handled:!1,type:"instrument"}},r=Nm(t);return r&&(n.mechanism.data.handler=Cg(r)),iy(t,n)})}),e.apply(this,t)}}function ky(e){const t=ty,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Dm(n,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=iy(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Cg(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,iy(r,{mechanism:{data:{function:"addEventListener",handler:Cg(r),target:e},handled:!1,type:"instrument"}}),i])}}),Dm(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 xy(){"console"in hm&&_m.forEach(function(e){e in hm.console&&Dm(hm.console,e,function(t){return Im[e]=t,function(...t){cy("console",{args:t,level:e});const n=Im[e];n&&n.apply(hm.console,t)}})})}const Uy=hm;let My,Ly,jy;function Vy(){if(!Uy.document)return;const e=cy.bind(null,"dom"),t=By(e,!0);Uy.document.addEventListener("click",t,!1),Uy.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=Uy[t]&&Uy[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Dm(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=By(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(e){}return t.call(this,n,r,i)}}),Dm(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 By(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;Am(n,"_sentryCaptured",!0),r&&!r._sentryId&&Am(r,"_sentryId",Mm());const i="keypress"===n.type?"input":n.type;(function(e){if(e.type!==Ly)return!1;try{if(!e.target||e.target._sentryId!==jy)return!1}catch(e){}return!0})(n)||(e({event:n,name:i,global:t}),Ly=n.type,jy=r?r._sentryId:void 0),clearTimeout(My),My=Uy.setTimeout(()=>{jy=void 0,Ly=void 0},1e3)}}const Gy=hm,qy="__sentry_xhr_v3__";function $y(){if(!Gy.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Dm(e,"open",function(e){return function(...t){const n=Date.now(),r=om(t[0])?t[0].toUpperCase():void 0,i=function(e){if(om(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!r||!i)return e.apply(this,t);this[qy]={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const e=this[qy];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}cy("xhr",{args:[r,i],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?Dm(this,"onreadystatechange",function(e){return function(...t){return o(),e.apply(this,t)}}):this.addEventListener("readystatechange",o),Dm(this,"setRequestHeader",function(e){return function(...t){const[n,r]=t,i=this[qy];return i&&om(n)&&om(r)&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}}),e.apply(this,t)}}),Dm(e,"send",function(e){return function(...t){const n=this[qy];return n?(void 0!==t[0]&&(n.body=t[0]),cy("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)):e.apply(this,t)}})}const Qy=mm();function Hy(){if(!("fetch"in Qy))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function zy(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Wy(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!Hy())return!1;if(zy(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=zy(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){Em&&Tm.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&Dm(hm,"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:Yy(t),method:Zy(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Yy(t),method:Zy(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return cy("fetch",{...i}),e.apply(hm,t).then(e=>(cy("fetch",{...i,endTimestamp:Date.now(),response:e}),e),e=>{throw cy("fetch",{...i,endTimestamp:Date.now(),error:e}),e})}})}function Zy(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Yy(e){return"string"==typeof e?e:e?Zy(e,"url")?e.url:e.toString?e.toString():"":""}const Ky=mm(),Jy=hm;let Xy;function ev(){if(!function(){const e=Ky.chrome,t=e&&e.app&&e.app.runtime,n="history"in Ky&&!!Ky.history.pushState&&!!Ky.history.replaceState;return!t&&n}())return;const e=Jy.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Xy,t=String(n);Xy=t,cy("history",{from:e,to:t})}return e.apply(this,t)}}Jy.onpopstate=function(...t){const n=Jy.location.href,r=Xy;if(Xy=n,cy("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},Dm(Jy.history,"pushState",t),Dm(Jy.history,"replaceState",t)}const tv=["fatal","error","warning","log","info","debug"];function nv(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 rv="Breadcrumbs",iv=Mg(rv,(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:rv,setupOnce(){},setup(e){var n;t.console&&function(e){const t="console";sy(t,e),uy(t,xy)}(function(e){return function(t){if(Fg()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:(r=t.level,"warn"===r?"warning":tv.includes(r)?r:"log"),message:wm(t.args," ")};var r;if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${wm(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}Rg(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(Fg()!==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&&(hy&&Tm.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=vm(t,{keyAttrs:o,maxStringLength:a}),i=function(e){if(!ym.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}),Rg(s,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),sy("dom",n),uy("dom",Vy)),t.xhr&&function(e){sy("xhr",e),uy("xhr",$y)}(function(e){return function(t){if(Fg()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[qy];if(!n||!r||!i)return;const{method:o,url:a,status_code:s,body:u}=i;Rg({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";sy(t,e),uy(t,Wy)}(function(e){return function(t){if(Fg()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error)Rg({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r});else{const e=t.response;Rg({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";sy(t,e),uy(t,ev)}(function(e){return function(t){if(Fg()!==e)return;let n=t.from,r=t.to;const i=nv(ty.location.href);let o=n?nv(n):void 0;const a=nv(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),Rg({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){Fg()===e&&Rg({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:jm(t)},{event:t})}}(e))}}}),ov="LinkedErrors",av=Mg(ov,(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:ov,setupOnce(){},preprocessEvent(e,r,i){const o=i.getOptions();zg(my,o.stackParser,o.maxValueLength,n,t,e,r)}}}),sv="HttpContext",uv=Mg(sv,()=>({name:sv,setupOnce(){},preprocessEvent(e){if(!ty.navigator&&!ty.location&&!ty.document)return;const t=e.request&&e.request.url||ty.location&&ty.location.href,{referrer:n}=ty.document||{},{userAgent:r}=ty.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}})),cv="Dedupe",lv=Mg(cv,()=>{let e;return{name:cv,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&&(!!dv(e,t)&&!!pv(e,t))))}(e,t)||!!function(e,t){const n=fv(t),r=fv(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!dv(e,t)&&!!pv(e,t)))}(e,t))}(t,e))return hy&&Tm.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}});function pv(e,t){let n=hv(e),r=hv(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 dv(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 fv(e){return e.exception&&e.exception.values&&e.exception.values[0]}function hv(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}let mv={};ty.Sentry&&ty.Sentry.Integrations&&(mv=ty.Sentry.Integrations);const gv={...mv,...ey,...u},yv="?";function vv(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 bv=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ev=/\((\S*)(?::(\d+))(?::(\d+))\)/,_v=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Iv=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Sv=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Tv=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=Ig.test(n)?n.replace(Ig,"$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(),Sg.test(t[t.length-1].function||"")&&(t.pop(),Sg.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=bv.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=Ev.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Cv(t[1]||yv,t[2]);return vv(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=_v.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Iv.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]||yv;return[n,e]=Cv(n,e),vv(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=Sv.exec(e);return t?vv(t[2],t[1]||yv,+t[3],t[4]?+t[4]:void 0):void 0}]),Cv=(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]:yv,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class wv 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 Pv=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Dv(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 Av(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Ov(e,t=[]){return[e,t]}function Nv(e,t){const[n,r]=e;return[n,[...r,t]]}function Rv(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function Fv(e,t){return(t||new TextEncoder).encode(e)}function kv(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[Fv(i,t),e]:i.push("string"==typeof e?Fv(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(wg(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 xv(e,t){const n="string"==typeof e.data?Fv(e.data,t):e.data;return[xm({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Uv={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 Mv(e){return Uv[e]}function Lv(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function jv(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 Ym(new wv("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 Km((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(Rv(i,(t,n)=>{const i=Mv(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=Vv(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(t)}),0===o.length)return Zm();const a=Ov(i[0],o),s=t=>{Rv(a,(n,r)=>{const i=Vv(n,r);e.recordDroppedEvent(t,Mv(r),i)})};return n.add(()=>t({body:kv(a,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&zm&&Tm.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 wv)return zm&&Tm.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 Vv(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let Bv;function Gv(e,t=function(){if(Bv)return Bv;if(zy(ty.fetch))return Bv=ty.fetch.bind(ty);const e=ty.document;let t=ty.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){hy&&Tm.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Bv=t.bind(ty)}()){let n=0,r=0;return jv(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 Bv=void 0,n-=o,r--,Ym(e)}})}function qv(e){return jv(e,function(t){return new Km((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 $v(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 Hv{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=Pv.exec(e);if(!t)return void Sm(()=>{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 Av({host:o,pass:i,path:u,projectId:c,port:a,protocol:n,publicKey:r})}(e):Av(e);if(t&&function(e){if(!Em)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(Tm.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(Tm.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(Tm.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(Tm.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}(e.dsn):zm&&Tm.warn("No DSN provided, client will not send events."),this._dsn){const t=$v(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(Gm(e))return void(zm&&Tm.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=am(e)?e:String(e),a=sm(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&&Gm(t.originalException))return void(zm&&Tm.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?zm&&Tm.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),tg(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 zm&&Tm.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];Ug(this,e,this._integrations),t||xg(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const i=Lv(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:Dv(r)},...i&&{trace:xm({...i})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,Ov(a,[[{type:o},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=Nv(n,xv(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=Lv(n);return Ov({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Dv(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}`;zm&&Tm.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}captureAggregateMetrics(e){zm&&Tm.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=Dv(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 Ov(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&&Ug(e,t,n)}),n}(this,e),xg(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)&&(tg(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Km(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 bg().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||Mm(),timestamp:t.timestamp||qm()},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:Hm),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=Cm(e.message,o));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Cm(a.value,o));const s=e.request;s&&s.url&&(s.url=Cm(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=hm._sentryDebugIds;if(!n)return;let r;const i=Ag.get(t);i?r=i:(r=new Map,Ag.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 pg;return n.update(t),n}(r,n.captureContext);n.mechanism&&Bm(u,n.mechanism);const p=i&&i.getEventProcessors?i.getEventProcessors():[],d=(lg||(lg=new pg),lg).getScopeData();o&&ug(d,o.getScopeData()),l&&ug(d,l.getScopeData());const f=[...n.attachments||[],...d.attachments];return f.length&&(n.attachments=f),sg(u,d),eg([...p,...Jm(),...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:wg(e.data,t,n)}}))},...e.user&&{user:wg(e.user,t,n)},...e.contexts&&{contexts:wg(e.contexts,t,n)},...e.extra&&{extra:wg(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=wg(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>{const r=ig(e).data;return r&&(e.data=wg(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||og(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(zm){const t=e;"log"===t.logLevel?Tm.log(t.message):Tm.warn(t)}})}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:i}=r,o=Wv(e),a=zv(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),Ym(new wv(`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 wv("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(zv(t)&&r)return r(t,n);if(Wv(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(lm(e))return e.then(e=>{if(!um(e)&&null!==e)throw new wv(n);return e},e=>{throw new wv(`${t} rejected with ${e}`)});if(!um(e)&&null!==e)throw new wv(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 wv(`${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 wv)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new wv(`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=>{zm&&Tm.error("Error while sending event:",e)});zm&&Tm.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 zv(e){return void 0===e.type}function Wv(e){return"transaction"===e.type}class Zv extends Hv{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:fg})),version:fg}),e._metadata=i}(e,"browser",["browser"],ty.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&ty.document&&ty.document.addEventListener("visibilitychange",()=>{"hidden"===ty.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){const i=Ey(e,t,n&&n.syntheticException||void 0,r);return Bm(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=_y(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(hy&&Tm.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:Dv(r)}},o=function(e){return[{type:"user_report"},e]}(e);return Ov(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(hy&&Tm.log("No outcomes to send"));if(!this._dsn)return void(hy&&Tm.log("No dsn provided, will not send outcomes"));hy&&Tm.log("Sending outcomes:",e);const t=(n=e,Ov((r=this._options.tunnel&&Dv(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:qm(),discarded_events:n}]]));var n,r;this._sendEnvelope(t)}}var Yv=[new gv.InboundFilters,new gv.FunctionToString,new gv.TryCatch,new gv.Breadcrumbs,new gv.LinkedErrors,new gv.Dedupe,new gv.HttpContext],Kv=new gg,Jv=n(6760),Xv=n.n(Jv),eb=n(7620),tb=n.n(eb),nb=n(1525),rb=n.n(nb),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)},ob=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 ib(ib({},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 qh({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:Xv()(t,function(e){return i.mapSubscription(e)}),promotionalEntitlements:Xv()(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:tb()(e.experimentInfo,"__typename")})},e.prototype.mapPaymentDetails=function(e){var t=e.defaultPaymentExpirationYear,n=e.defaultPaymentExpirationMonth,r=e.defaultPaymentMethodLast4Digits;if(rb()([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:Xv()(e.entitlements,function(e){return i.mapPackageEntitlement(e)}),inheritedEntitlements:Xv()(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:Xv()(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:tb()(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?ib(ib({},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:Xv()(e.entitlements,function(e){return i.mapPackageEntitlement(e)}),packageEntitlements:null!==(t=e.packageEntitlements)&&void 0!==t?t:void 0,pricePoints:Xv()(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 ib(ib(ib({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?ib(ib({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:ib(ib({},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?ib({},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 ib(ib({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 ib({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}(),ab=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)}}(),sb=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 ab(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}(Ih),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)};function cb(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,pb(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 lb(e,t){try{return e()}catch(e){return pb(e,t)}}function pb(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;Kv.withScope(function(t){var o={errorMessage:r};if(n){var a=n.customerId,s=ub(ub({},n),{apiKey:void 0});a&&t.setTags({customerId:a}),o.sdkConfiguration=s}i&&(o=ub(ub({},o),i)),t.setExtras(o),Kv.captureException(e)})}(e,{sdkConfiguration:r,errorMessage:s,errorReportMetadata:a}),o)throw new Error(s)}var db=function(){return db=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},db.apply(this,arguments)},fb=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())})},hb=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])}}},mb=function(){function e(e,t){this.modelMapper=new ob,this.eventEmitter=new Jh,this.showWatermark=!1,this.isWidgetWatermarkEnabled=!1,this.configuration=e,this.edgeApiClient=$c.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?rh:o,s=function(e,t){return new jl(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 Zl({uri:"".concat(e,"/graphql"),fetch:Gc})}(n),c=new nh({attempts:{max:5,retryIf:ih},delay:{initial:500,max:2e3,jitter:!0}});return new uf({link:s.concat(c.concat(u)),cache:new eh,name:i,version:a,defaultOptions:{query:{fetchPolicy:"no-cache"}}})}(this.configuration),this.loggerService=t,this.cacheMapper=new Gh(t),this.apiGateway=new Ic(this.graphClient,this.edgeApiClient),this.globalEntitlementsService=null,this.resourceEntitlementsService=null,this.initializationStateTracker=new Xh(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 fb(this,void 0,Promise,function(){var e=this;return hb(this,function(t){return[2,this.initializationStateTracker.getInitializationPromise().then(function(){return e})]})})},e.initializeSdk=function(e){return fb(this,void 0,void 0,function(){var t,n,r,i,o,a,s,u;return hb(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,!Kv.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(rh),integrations:Yv,stackParser:Tv,transport:Hy()?Gv:qv},t=new Zv(e),Kv.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 fb(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),hb(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 sb(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 sb(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,cb(function(){return fb(u,void 0,void 0,function(){var e,t;return hb(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 fb(this,void 0,Promise,function(){var t,n,r=this;return hb(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 sb(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,cb(function(){return fb(r,void 0,void 0,function(){var e;return hb(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 fb(this,void 0,Promise,function(){var e=this;return hb(this,function(t){return[2,cb(function(){return fb(e,void 0,void 0,function(){var e,t;return hb(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=db(db({},Th),a);return lb(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=db(db({},Ch),a);return lb(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=db(db({},wh),a);return lb(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=db(db({},Ph),a);return lb(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=db(db(db({},Dh),{currency:{currencyId:n}}),o),s=db(db({},a),{remaining:Math.max(a.usageLimit-a.currentUsage,0)});return lb(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 fb(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 hb(this,function(e){return t={productId:i,customerId:this.configuration.customerId,resourceId:o,context:a,billingCountryCode:s,includeHiddenPlans:u},[2,cb(function(){return fb(n,void 0,void 0,function(){var e;return hb(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 fb(this,void 0,Promise,function(){var e=this;return hb(this,function(t){return[2,cb(function(){return fb(e,void 0,void 0,function(){var e;return hb(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 fb(this,void 0,Promise,function(){var e=this;return hb(this,function(t){return[2,cb(function(){return fb(e,void 0,void 0,function(){var e,t,n,r;return hb(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 fb(this,arguments,Promise,function(e){var t=this,n=void 0===e?{}:e,r=n.resourceId,i=n.productId;return hb(this,function(e){return[2,cb(function(){return fb(t,void 0,void 0,function(){var e,t;return hb(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 fb(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 hb(this,function(e){return[2,cb(function(){return fb(t,void 0,void 0,function(){var e,t;return hb(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 fb(this,void 0,Promise,function(){var t=this;return hb(this,function(n){return[2,cb(function(){return fb(t,void 0,void 0,function(){var t,n;return hb(this,function(r){switch(r.label){case 0:return t=zu(this.configuration),[4,this.apiGateway.subscriptions.applySubscription(db({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 fb(this,void 0,Promise,function(){var t=this;return hb(this,function(n){return[2,cb(function(){return fb(t,void 0,void 0,function(){var t;return hb(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 fb(this,void 0,Promise,function(){return hb(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 fb(this,void 0,Promise,function(){var t;return hb(this,function(n){switch(n.label){case 0:return[4,this.getEntitlementsStateV2(e)];case 1:return[2,{entitlements:(t=n.sent()).entitlements.filter(jh),accessDeniedReason:t.accessDeniedReason}]}})})},e.prototype.getEntitlementsStateV2=function(e){return fb(this,void 0,Promise,function(){var t,n,r=this;return hb(this,function(i){switch(i.label){case 0:return t={entitlements:Bh(this.configuration.entitlementsFallback),accessDeniedReason:null},[4,cb(function(){return fb(r,void 0,void 0,function(){var n;return hb(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 fb(this,void 0,Promise,function(){var t=this;return hb(this,function(n){return[2,cb(function(){return fb(t,void 0,void 0,function(){var t;return hb(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 fb(this,void 0,Promise,function(){var t=this;return hb(this,function(n){return[2,cb(function(){return fb(t,void 0,void 0,function(){var t;return hb(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 fb(this,void 0,Promise,function(){var t=this;return hb(this,function(n){return[2,cb(function(){return fb(t,void 0,void 0,function(){var t;return hb(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 fb(this,void 0,Promise,function(){var t=this;return hb(this,function(n){return[2,cb(function(){return fb(t,void 0,void 0,function(){var t;return hb(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 fb(this,void 0,Promise,function(){var t=this;return hb(this,function(n){return[2,cb(function(){return fb(t,void 0,void 0,function(){var t;return hb(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 fb(this,void 0,Promise,function(){var t=this;return hb(this,function(n){return[2,cb(function(){return fb(t,void 0,void 0,function(){var t;return hb(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 fb(this,void 0,Promise,function(){var t=this;return hb(this,function(n){return[2,cb(function(){return fb(t,void 0,void 0,function(){return hb(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 fb(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 hb(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 fb(this,arguments,Promise,function(e){var t,n,r,i,o,a=this;return void 0===e&&(e={}),hb(this,function(s){return t=e.customerId,n=e.resourceId,r=e.status,i=e.productId,o=e.pagination,[2,cb(function(){return fb(a,void 0,void 0,function(){var e;return hb(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 cb(function(){return fb(t,void 0,void 0,function(){var e,t,r;return hb(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 fb(this,arguments,Promise,function(e){var t=this,n=(void 0===e?{}:e).resourceId;return hb(this,function(e){return[2,cb(function(){return fb(t,void 0,void 0,function(){var e;return hb(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 fb(this,arguments,Promise,function(e){var t=this,n=e.subscriptionId;return hb(this,function(e){return[2,cb(function(){return fb(t,void 0,void 0,function(){var e,t;return hb(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 fb(this,void 0,Promise,function(){var t=this;return hb(this,function(n){return[2,cb(function(){return fb(t,void 0,void 0,function(){var t,n,r;return hb(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(db(db({},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 fb(this,arguments,Promise,function(e){var t=this;return void 0===e&&(e={}),hb(this,function(n){return[2,cb(function(){return fb(t,void 0,void 0,function(){var t,n,r;return hb(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(db(db({},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 fb(this,void 0,Promise,function(){var t=this;return hb(this,function(n){return[2,cb(function(){return fb(t,void 0,void 0,function(){var t,n,r,i;return hb(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(db(db({},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 fb(this,arguments,Promise,function(e){var t=this;return void 0===e&&(e={}),hb(this,function(n){return[2,cb(function(){return fb(t,void 0,void 0,function(){var t,n,r,i;return hb(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(db(db({},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 fb(this,void 0,Promise,function(){var t=this;return hb(this,function(n){return[2,cb(function(){return fb(t,void 0,void 0,function(){var t,n;return hb(this,function(r){switch(r.label){case 0:return t=zu(this.configuration),[4,this.apiGateway.checkout.createPaymentSession(db(db({},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 fb(this,void 0,Promise,function(){var t=this;return hb(this,function(n){return[2,cb(function(){return fb(t,void 0,void 0,function(){var t;return hb(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 fb(this,void 0,Promise,function(){var t=this;return hb(this,function(n){return[2,cb(function(){return fb(t,void 0,void 0,function(){var t;return hb(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}(),gb=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)}}(),yb=function(){return yb=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},yb.apply(this,arguments)},vb=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())})},bb=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])}}},Eb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gb(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 yb(yb({},Th),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 yb(yb({},wh),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 yb(yb({},Ch),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 yb(yb({},Ph),i)},t.prototype.getCreditEntitlement=function(e){var t=e.currencyId,n=e.options,r=(null==n?void 0:n.fallback)||{},i=yb(yb(yb({},Dh),{currency:{currencyId:t}}),r);return yb(yb({},i),{remaining:Math.max(i.usageLimit-i.currentUsage,0)})},t.prototype.getEntitlements=function(){return vb(this,void 0,Promise,function(){return bb(this,function(e){return[2,Bh(this.configuration.entitlementsFallback)]})})},t.prototype.getEntitlementsState=function(){return vb(this,void 0,Promise,function(){var e;return bb(this,function(t){switch(t.label){case 0:return[4,this.getEntitlementsStateV2()];case 1:return[2,{entitlements:(e=t.sent()).entitlements.filter(jh),accessDeniedReason:e.accessDeniedReason}]}})})},t.prototype.getEntitlementsStateV2=function(){return vb(this,void 0,Promise,function(){return bb(this,function(e){return[2,{entitlements:Bh(this.configuration.entitlementsFallback),accessDeniedReason:null}]})})},t.prototype.addListener=function(){},t.prototype.clearCustomer=function(){},t.prototype.clearResource=function(){},t.prototype.getActiveSubscriptionsList=function(){return vb(this,void 0,Promise,function(){return bb(this,function(e){return[2,[]]})})},t.prototype.getCoupons=function(){return vb(this,void 0,Promise,function(){return bb(this,function(e){return[2,[]]})})},t.prototype.getSubscription=function(){return vb(this,void 0,Promise,function(){return bb(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 vb(this,void 0,Promise,function(){return bb(this,function(e){return[2,this]})})},t.prototype.setResource=function(){return vb(this,void 0,Promise,function(){return bb(this,function(e){return[2]})})},t.prototype.getCheckoutState=function(){return vb(this,void 0,Promise,function(){return bb(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 vb(this,void 0,Promise,function(){return bb(this,function(e){return[2,{subscription:void 0}]})})},t.prototype.estimateSubscription=function(){return vb(this,void 0,Promise,function(){return bb(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 vb(this,void 0,Promise,function(){return bb(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 vb(this,void 0,Promise,function(){return bb(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 vb(this,void 0,Promise,function(){return bb(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 vb(this,void 0,void 0,function(){return bb(this,function(e){return[2,{estimates:[],warnings:[]}]})})},t.prototype.estimateUsageCost=function(){return vb(this,void 0,void 0,function(){return bb(this,function(e){return[2,{estimates:[],warnings:[]}]})})},t.prototype.waitForCheckoutCompleted=function(){return vb(this,void 0,Promise,function(){return bb(this,function(e){return[2,null]})})},t.prototype.refresh=function(){return vb(this,void 0,Promise,function(){return bb(this,function(e){return[2]})})},t.prototype.fetchUsageHistory=function(){return vb(this,void 0,Promise,function(){return bb(this,function(e){return[2,[]]})})},t.prototype.getUsageHistoryV2=function(){return vb(this,void 0,Promise,function(){return bb(this,function(e){return[2,{markers:[],series:[]}]})})},t.prototype.setCustomerId=function(){return vb(this,void 0,Promise,function(){return bb(this,function(e){return[2]})})},t.prototype.getPaywall=function(){return vb(this,void 0,Promise,function(){return bb(this,function(e){return[2,{activeSubscriptions:[],currency:{code:he.Usd,symbol:"$"},plans:[],customer:null,resource:null}]})})},t.prototype.getCustomerPortal=function(){return vb(this,void 0,Promise,function(){return bb(this,function(e){return[2,{subscriptions:[],entitlements:[],entitlementsV2:[],promotionalEntitlements:[],billingInformation:{},canUpgradeSubscription:!1,resource:null,showWatermark:!0}]})})},t.prototype.getActiveSubscriptions=function(){return vb(this,void 0,Promise,function(){return bb(this,function(e){return[2,[]]})})},t.prototype.getSubscriptions=function(){return vb(this,void 0,Promise,function(){return bb(this,function(e){return[2,{data:[],pageInfo:{}}]})})},t.prototype.getCustomer=function(){return vb(this,void 0,Promise,function(){return bb(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 vb(this,void 0,Promise,function(){return bb(this,function(e){return[2,{__typename:"CreditBalanceSummary",customerId:"offline-customer-id",balances:[]}]})})},t.prototype.getCreditGrants=function(){return vb(this,void 0,Promise,function(){return bb(this,function(e){return[2,{data:[],pageInfo:{},totalCount:0}]})})},t.prototype.getCreditLedger=function(){return vb(this,void 0,Promise,function(){return bb(this,function(e){return[2,{data:[],pageInfo:{},totalCount:0}]})})},t.prototype.getCreditUsage=function(){return vb(this,void 0,Promise,function(){return bb(this,function(e){return[2,{series:[],pageInfo:{hasNextPage:!1,hasPreviousPage:!1}}]})})},t.prototype.createPaymentSession=function(){return vb(this,void 0,Promise,function(){return bb(this,function(e){return[2,{__typename:"PaymentSession",token:"mock-token"}]})})},t.prototype.getShowWatermark=function(){return!1},t.prototype.getAutomaticRechargeConfiguration=function(e){return vb(this,void 0,Promise,function(){return bb(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 vb(this,void 0,Promise,function(){var t,n,r,i,o;return bb(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}(mb),_b=mb.initialize.bind(mb);mb.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."),Eb.createOffline(t,n)):_b(e)};const Ib=mb},1510:(e,t,n)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,{Z:()=>r})},2277:(e,t,n)=>{"use strict";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)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t){return e instanceof t}},1424:(e,t,n)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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)=>{"use strict";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}return 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),n(3884)})()});
|
|
3
3
|
//# sourceMappingURL=index.js.map
|