@stigg/js-client-sdk 3.98.2 → 3.98.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 f(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return 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 v(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function y(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=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=y(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(v);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(S)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=p(e),t=f(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)]=f(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)}),d(e)},h.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),d(e)},h.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),d(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 S(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 T(e,t){if(!(this instanceof T))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(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},T.error=function(){var e=new T(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var I=[301,302,303,307,308];T.redirect=function(e,t){if(-1===I.indexOf(t))throw new RangeError("Invalid status code");return new T(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 D(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 T(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 d=[];Object.getOwnPropertyNames(n.headers).forEach(function(e){d.push(p(e)),c.setRequestHeader(e,f(n.headers[e]))}),s.headers.forEach(function(e,t){-1===d.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)})}D.polyfill=!0,r.fetch||(r.fetch=D,r.Headers=h,r.Request=_,r.Response=T),t.Headers=h,t.Request=_,t.Response=T,t.fetch=D,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 f(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return 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 v(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function y(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=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=y(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(v);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(S)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=p(e),t=f(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)]=f(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)}),d(e)},h.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),d(e)},h.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),d(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 S(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 T(e,t){if(!(this instanceof T))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(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},T.error=function(){var e=new T(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var I=[301,302,303,307,308];T.redirect=function(e,t){if(-1===I.indexOf(t))throw new RangeError("Invalid status code");return new T(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 D(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 T(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 d=[];Object.getOwnPropertyNames(n.headers).forEach(function(e){d.push(p(e)),c.setRequestHeader(e,f(n.headers[e]))}),s.headers.forEach(function(e,t){-1===d.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)})}D.polyfill=!0,r.fetch||(r.fetch=D,r.Headers=h,r.Request=_,r.Response=T),t.Headers=h,t.Request=_,t.Response=T,t.fetch=D,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",f="Invalid Date",d=/^(\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},v={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}},y="en",b={};b[y]=m;var E="$isDayjsObject",_=function(e){return e instanceof D||!(!e||!e[E])},S=function e(t,n,r){var i;if(!t)return y;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&&(y=i),i||!r&&y},T=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new D(n)},I=v;I.l=S,I.i=_,I.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function m(e){this.$L=S(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(I.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(d);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 I},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var n=T(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return T(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<T(e)},g.$g=function(e,t,n){return I.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=!!I.u(t)||t,f=I.p(e),d=function(e,t){var r=I.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 I.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,v=this.$D,y="set"+(this.$u?"UTC":"");switch(f){case l:return c?d(1,0):d(31,11);case u:return c?d(1,g):d(0,g+1);case s:var b=this.$locale().weekStart||0,E=(m<b?m+7:m)-b;return d(c?v-E:v+(6-E),g);case a:case p:return h(y+"Hours",0);case o:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case r:return h(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,c=I.p(e),f="set"+(this.$u?"UTC":""),d=(s={},s[a]=f+"Date",s[p]=f+"Date",s[u]=f+"Month",s[l]=f+"FullYear",s[o]=f+"Hours",s[i]=f+"Minutes",s[r]=f+"Seconds",s[n]=f+"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[d](h),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[I.p(e)]()},g.add=function(n,c){var p,f=this;n=Number(n);var d=I.p(c),h=function(e){var t=T(f);return I.w(t.date(t.date()+Math.round(e*n)),f)};if(d===u)return this.set(u,this.$M+n);if(d===l)return this.set(l,this.$y+n);if(d===a)return h(1);if(d===s)return h(7);var m=(p={},p[i]=e,p[o]=t,p[r]=1e3,p)[d]||1,g=this.$d.getTime()+n*m;return I.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||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=I.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)},d=function(e){return I.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 I.s(t.$y,4,"0");case"M":return s+1;case"MM":return I.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 I.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 I.s(o,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return m(o,a,!0);case"A":return m(o,a,!1);case"m":return String(a);case"mm":return I.s(a,2,"0");case"s":return String(t.$s);case"ss":return I.s(t.$s,2,"0");case"SSS":return I.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,f){var d,h=this,m=I.p(p),g=T(n),v=(g.utcOffset()-this.utcOffset())*e,y=this-g,b=function(){return I.m(h,g)};switch(m){case l:d=b()/12;break;case u:d=b();break;case c:d=b()/3;break;case s:d=(y-v)/6048e5;break;case a:d=(y-v)/864e5;break;case o:d=y/t;break;case i:d=y/e;break;case r:d=y/1e3;break;default:d=y}return f?d:I.a(d)},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=S(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return I.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=D.prototype;return T.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])}}),T.extend=function(e,t){return e.$i||(e(t,D,T),e.$i=!0),T},T.locale=S,T.isDayjs=_,T.unix=function(e){return T(1e3*e)},T.en=b[y],T.Ls=b,T.p={},T}()},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 f(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 d(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 f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,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(5145)),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 f=new("undefined"==typeof FormData?o.default:FormData);f.append("operations",r.stringify(c));var d={},h=0;return l.forEach(function(e){d[++h]=e}),f.append("map",r.stringify(d)),h=0,l.forEach(function(e,t){f.append("".concat(++h),t)}),f}},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}(),f=function(){function e(e,t){var n=t.onInit,s=t.onAcknowledged,f=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=d,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=(y=t.data,void 0===b&&(b=function(e){return e}),p.parse(y,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(f?f(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,d=i.variables,v=i.subscriber;switch(n.type){case"next":return!n.payload.errors&&n.payload.data&&v.next&&v.next(n.payload.data),void(n.payload.errors&&v.error&&v.error(new a.ClientError(r(r({},n.payload),{status:200}),{query:o,variables:d})));case"error":return void(v.error&&v.error(new a.ClientError({errors:n.payload,status:200},{query:o,variables:d})));case l:return v.complete&&v.complete(),void delete g.socketState.subscriptions[n.id]}}catch(t){console.error(t),e.close(1006)}var y,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 d(e){return new p("connection_init",e)}function h(e){return new p(c,e,void 0)}t.GraphQLWebSocketClient=f},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 f=a(n(6279)),d=f,h=p(n(8749)),m=n(7077),g=n(8041),v=n(8328);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return v.ClientError}});var y=n(8139),b=function(e){var t={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||d&&d.Headers&&e instanceof d.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,f=e.middleware;return s(void 0,void 0,void 0,function(){var e,s,d;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),f?[4,Promise.resolve(f(r(r({},s),{url:t,operationName:o,variables:i})))]:[3,2];case 1:d=u.sent(),t=d.url,s=c(d,["url"]),u.label=2;case 2:return[4,l(t,s)];case 3:return[2,u.sent()]}})})},S=function(e){var t=e.url,n=e.query,i=e.variables,o=e.operationName,a=e.headers,l=e.fetch,p=e.fetchOptions,f=e.middleware;return s(void 0,void 0,void 0,function(){var e,s,d;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),f?[4,Promise.resolve(f(r(r({},s),{url:t,operationName:o,variables:i})))]:[3,2];case 1:d=u.sent(),t=d.url,s=c(d,["url"]),u.label=2;case 2:return[4,l("".concat(t,"?").concat(e),s)];case 3:return[2,u.sent()]}})})},T=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,d,h,m,v,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?f.default:s,p=o.method,d=void 0===p?"POST":p,h=o.requestMiddleware,m=o.responseMiddleware,v=c(o,["headers","fetch","method","requestMiddleware","responseMiddleware"]),E=this.url,void 0!==i.signal&&(v.signal=i.signal),_=(0,y.resolveRequestDocument)(i.query).operationName,[2,I({url:E,query:i.query,variables:i.variables,headers:r(r({},b(C(a))),b(i.requestHeaders)),operationName:_,fetch:l,method:d,fetchOptions:v,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,d,h,m,v,E,_,S,T,D;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?f.default:l,d=a.method,h=void 0===d?"POST":d,m=a.requestMiddleware,v=a.responseMiddleware,E=c(a,["headers","fetch","method","requestMiddleware","responseMiddleware"]),_=this.url,void 0!==o.signal&&(E.signal=o.signal),S=(0,y.resolveRequestDocument)(o.document),T=S.query,D=S.operationName,[2,I({url:_,query:T,variables:o.variables,headers:r(r({},b(C(s))),b(o.requestHeaders)),operationName:D,fetch:p,method:h,fetchOptions:E,middleware:m}).then(function(e){return v&&v(e),e.data}).catch(function(e){throw v&&v(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?f.default:a,u=i.method,l=void 0===u?"POST":u,p=i.requestMiddleware,d=i.responseMiddleware,h=c(i,["headers","fetch","method","requestMiddleware","responseMiddleware"]),m=this.url;void 0!==n.signal&&(h.signal=n.signal);var v=n.documents.map(function(e){var t=e.document;return(0,y.resolveRequestDocument)(t).query}),E=n.documents.map(function(e){return e.variables});return I({url:m,query:v,variables:E,headers:r(r({},b(C(o))),b(n.requestHeaders)),operationName:void 0,fetch:s,method:l,fetchOptions:h,middleware:p}).then(function(e){return d&&d(e),e.data}).catch(function(e){throw d&&d(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 I(e){var t=e.url,n=e.query,i=e.variables,o=e.headers,a=e.operationName,l=e.fetch,p=e.method,f=void 0===p?"POST":p,d=e.fetchOptions,h=e.middleware;return s(this,void 0,void 0,function(){var e,s,p,m,g,y,b,E,T,I,D;return u(this,function(u){switch(u.label){case 0:return e="POST"===f.toUpperCase()?_:S,s=Array.isArray(n),[4,e({url:t,query:n,variables:i,operationName:a,headers:o,fetch:l,fetchOptions:d,middleware:h})];case 1:return[4,w(p=u.sent(),d.jsonSerializer)];case 2:if(m=u.sent(),g=s&&Array.isArray(m)?!m.some(function(e){return!e.data}):!!m.data,y=!m.errors||"all"===d.errorPolicy||"ignore"===d.errorPolicy,p.ok&&y&&g)return b=p.headers,E=p.status,m.errors,T=c(m,["errors"]),I="ignore"===d.errorPolicy?T:m,[2,r(r({},s?{data:I}:I),{headers:b,status:E})];throw D="string"==typeof m?{error:m}:m,new v.ClientError(r(r({},D),{status:p.status,headers:p.headers}),{query:n,variables:i})}})})}function D(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 T(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 C(e){return"function"==typeof e?e():e}t.GraphQLClient=T,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 T(i.url).rawRequest(r({},i))]})})},t.request=D,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 T(i.url).batchRequests(r({},i))]})})},t.default=D,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 O=n(3210);Object.defineProperty(t,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return O.GraphQLWebSocketClient}});var P=n(8139);Object.defineProperty(t,"resolveRequestDocument",{enumerable:!0,get:function(){return P.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}},5145:e=>{"use strict";e.exports="object"==typeof self?self.FormData:window.FormData},81:(e,t,n)=>{"use strict";n.r(t),n.d(t,{gql:()=>p,resetCaches:()=>f,disableFragmentWarnings:()=>d,enableExperimentalFragmentVariables:()=>h,disableExperimentalFragmentVariables:()=>m,default:()=>S});var r=n(2970),i=n(5390),o=new Map,a=new Map,s=!0,u=!1;function c(e){return e.replace(/[\s,]+/g," ").trim()}function l(e){var t,n,l,p=c(e);if(!o.has(p)){var f=(0,i.Qc)(e,{experimentalFragmentVariables:u,allowLegacyFragmentVariables:u});if(!f||"Document"!==f.kind)throw new Error("Not a valid GraphQL document.");o.set(p,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=f,n=new Set,l=[],t.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,r=c((o=e.loc).source.body.substring(o.start,o.end)),i=a.get(t);i&&!i.has(r)?s&&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"):i||a.set(t,i=new Set),i.add(r),n.has(r)||(n.add(r),l.push(e))}else l.push(e);var o}),(0,r.pi)((0,r.pi)({},t),{definitions:l}))))}return o.get(p)}function p(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]}),l(r)}function f(){o.clear(),a.clear()}function d(){s=!1}function h(){u=!0}function m(){u=!1}var g,v=p,y=f,b=d,E=h,_=m;(g=p||(p={})).gql=v,g.resetCaches=y,g.disableFragmentWarnings=b,g.enableExperimentalFragmentVariables=E,g.disableExperimentalFragmentVariables=_,p.default=p;const S=p},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),f=!n&&!l&&!p&&u(e),d=n||l||p||f,h=d?r(e.length,String):[],m=h.length;for(var g in e)!t&&!c.call(e,g)||d&&("length"==g||p&&("offset"==g||"parent"==g)||f&&("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),f=n(3483),d=n(6939),h=n(940),m=n(9917),g=n(8222),v=n(8725),y=n(6152),b=n(3226),E=n(4714),_=n(9259),S=n(3679),T=n(249),I=n(4225),D="[object Arguments]",w="[object Function]",C="[object Object]",O={};O[D]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[C]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[w]=O["[object WeakMap]"]=!1,e.exports=function e(t,n,P,A,F,N){var R,k=1&n,x=2&n,U=4&n;if(P&&(R=F?P(t,A,F,N):P(t)),void 0!==R)return R;if(!_(t))return t;var M=y(t);if(M){if(R=m(t),!k)return c(t,R)}else{var L=h(t),j=L==w||"[object GeneratorFunction]"==L;if(b(t))return u(t,k);if(L==C||L==D||j&&!F){if(R=x||j?{}:v(t),!k)return x?p(t,s(R,t)):l(t,a(R,t))}else{if(!O[L])return F?t:{};R=g(t,L,k)}}N||(N=new r);var V=N.get(t);if(V)return V;N.set(t,R),S(t)?t.forEach(function(r){R.add(e(r,n,P,r,t,N))}):E(t)&&t.forEach(function(r,i){R.set(i,e(r,n,P,i,t,N))});var B=M?void 0:(U?x?d:f:x?I:T)(t);return i(B||t,function(r,i){B&&(r=t[i=r]),o(R,i,e(r,n,P,i,t,N))}),R}},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]",f="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=u(e),b=u(t),E=y?f:s(e),_=b?f:s(t),S=(E=E==p?d:E)==d,T=(_=_==p?d:_)==d,I=E==_;if(I&&c(e)){if(!c(t))return!1;y=!0,S=!1}if(I&&!S)return v||(v=new r),y||l(e)?i(e,t,n,m,g,v):o(e,t,E,n,m,g,v);if(!(1&n)){var D=S&&h.call(e,"__wrapped__"),w=T&&h.call(t,"__wrapped__");if(D||w){var C=D?e.value():e,O=w?t.value():t;return v||(v=new r),g(C,O,n,m,v)}}return!!I&&(v||(v=new r),a(e,t,n,m,g,v))}},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],f=c[1];if(u&&c[2]){if(void 0===p&&!(l in e))return!1}else{var d=new r;if(o)var h=o(p,f,l,e,t,d);if(!(void 0===h?i(f,p,3,o,d):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,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f: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,f){t!==n&&o(n,function(o,u){if(f||(f=new r),s(o))a(t,n,u,l,e,p,f);else{var d=p?p(c(t,u),o,u+"",t,n,f):void 0;void 0===d&&(d=o),i(t,u,d)}},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),f=n(1049),d=n(9259),h=n(7030),m=n(7598),g=n(2434),v=n(3329);e.exports=function(e,t,n,y,b,E,_){var S=g(e,n),T=g(t,n),I=_.get(T);if(I)r(e,n,I);else{var D=E?E(S,T,n+"",e,t,_):void 0,w=void 0===D;if(w){var C=c(T),O=!C&&p(T),P=!C&&!O&&m(T);D=T,C||O||P?c(S)?D=S:l(S)?D=a(S):O?(w=!1,D=i(T,!0)):P?(w=!1,D=o(T,!0)):D=[]:h(T)||u(T)?(D=S,u(S)?D=v(S):d(S)&&!f(S)||(D=s(T))):w=!1}w&&(_.set(T,D),b(D,T,y,E,_),_.delete(T)),r(e,n,D)}}},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(var c=null==e||"object"!=typeof e&&"function"!=typeof e;++n<u;){var l=t[n];if("string"==typeof l){if("__proto__"===l&&!s.call(e,"__proto__"))return!1;if("constructor"===l&&n+1<u&&"string"==typeof t[n+1]&&"prototype"===t[n+1]){if(c&&0===n)continue;return!1}}}var p=o(e,t);return null==p||delete p[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 f=u.get(e),d=u.get(t);if(f&&d)return f==t&&d==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 v=e[h],y=t[h];if(a)var b=c?a(y,v,h,t,e,u):a(v,y,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)&&(v===e||s(v,e,n,a,u)))return g.push(t)})){m=!1;break}}else if(v!==y&&!s(v,y,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,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!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 d=s;case"[object Set]":var h=1&r;if(d||(d=u),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var g=a(d(e),d(t),r,c,p,f);return f.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 f=c[p];if(!(u?f in t:i.call(t,f)))return!1}var d=s.get(e),h=s.get(t);if(d&&h)return d==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=u;++p<l;){var v=e[f=c[p]],y=t[f];if(o)var b=u?o(y,v,f,t,e,s):o(v,y,f,e,t,s);if(!(void 0===b?v===y||a(v,y,n,o,s):b)){m=!1;break}g||(g="constructor"==f)}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]",f="[object Set]",d="[object WeakMap]",h="[object DataView]",m=c(r),g=c(i),v=c(o),y=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)!=f||s&&E(new s)!=d)&&(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 v:return p;case y:return f;case b:return d}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 f=u(t[c]);if(!(p=null!=e&&n(e,f)))break;e=e[f]}return p||++c!=l?p:!!(l=null==e?0:e.length)&&s(l)&&a(f,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,f=NaN,d=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]",v="[object Boolean]",y="[object Date]",b="[object Error]",E="[object Function]",_="[object GeneratorFunction]",S="[object Map]",T="[object Number]",I="[object Object]",D="[object Promise]",w="[object RegExp]",C="[object Set]",O="[object String]",P="[object Symbol]",A="[object WeakMap]",F="[object ArrayBuffer]",N="[object DataView]",R="[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,$=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Q=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,z=RegExp(Q.source),Z=RegExp(H.source),W=/<%-([\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,fe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Te="\\u2700-\\u27bf",Ie="a-z\\xdf-\\xf6\\xf8-\\xff",De="A-Z\\xc0-\\xd6\\xd8-\\xde",we="\\ufe0e\\ufe0f",Ce="\\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",Oe="["+_e+"]",Pe="["+Ce+"]",Ae="["+Se+"]",Fe="\\d+",Ne="["+Te+"]",Re="["+Ie+"]",ke="[^"+_e+Ce+Fe+Te+Ie+De+"]",xe="\\ud83c[\\udffb-\\udfff]",Ue="[^"+_e+"]",Me="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+De+"]",Ve="\\u200d",Be="(?:"+Re+"|"+ke+")",Ge="(?:"+je+"|"+ke+")",$e="(?:['’](?:d|ll|m|re|s|t|ve))?",qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+Ae+"|"+xe+")?",He="["+we+"]?",ze=He+Qe+"(?:"+Ve+"(?:"+[Ue,Me,Le].join("|")+")"+He+Qe+")*",Ze="(?:"+[Ne,Me,Le].join("|")+")"+ze,We="(?:"+[Ue+Ae+"?",Ae,Me,Le,Oe].join("|")+")",Ye=RegExp("['’]","g"),Ke=RegExp(Ae,"g"),Je=RegExp(xe+"(?="+xe+")|"+We+ze,"g"),Xe=RegExp([je+"?"+Re+"+"+$e+"(?="+[Pe,je,"$"].join("|")+")",Ge+"+"+qe+"(?="+[Pe,je+Be,"$"].join("|")+")",je+"?"+Be+"+"+$e,je+"+"+qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fe,Ze].join("|"),"g"),et=RegExp("["+Ve+_e+Se+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[R]=it[k]=it[x]=it[U]=it[M]=it[L]=it[j]=it[V]=it[B]=!0,it[m]=it[g]=it[F]=it[v]=it[N]=it[y]=it[b]=it[E]=it[S]=it[T]=it[I]=it[w]=it[C]=it[O]=it[A]=!1;var ot={};ot[m]=ot[g]=ot[F]=ot[N]=ot[v]=ot[y]=ot[R]=ot[k]=ot[x]=ot[U]=ot[M]=ot[S]=ot[T]=ot[I]=ot[w]=ot[C]=ot[O]=ot[P]=ot[L]=ot[j]=ot[V]=ot[B]=!0,ot[b]=ot[E]=ot[A]=!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")(),ft=t&&!t.nodeType&&t,dt=ft&&e&&!e.nodeType&&e,ht=dt&&dt.exports===ft,mt=ht&&ct.process,gt=function(){try{return dt&&dt.require&&dt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=gt&>.isArrayBuffer,yt=gt&>.isDate,bt=gt&>.isMap,Et=gt&>.isRegExp,_t=gt&>.isSet,St=gt&>.isTypedArray;function Tt(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 It(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 Dt(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 Ct(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 Ot(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 Pt(e,t){return!(null==e||!e.length)&&jt(e,t,0)>-1}function At(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 Ft(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 Nt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Rt(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=$t("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:f}function $t(e){return function(t){return null==t?i:t[e]}}function qt(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 Zt(e){return e?e.slice(0,fn(e)+1).replace(re,""):e}function Wt(e){return function(t){return e(t)}}function Yt(e,t){return Ft(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=qt({À:"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=qt({"&":"&","<":"<",">":">",'"':""","'":"'"});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 fn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var dn=qt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),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,Se=t.Function,Te=t.Math,Ie=t.Object,De=t.RegExp,we=t.String,Ce=t.TypeError,Oe=r.prototype,Pe=Se.prototype,Ae=Ie.prototype,Fe=t["__core-js_shared__"],Ne=Pe.toString,Re=Ae.hasOwnProperty,ke=0,xe=(n=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ue=Ae.toString,Me=Ne.call(Ie),Le=pt._,je=De("^"+Ne.call(Re).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=ht?t.Buffer:i,Be=t.Symbol,Ge=t.Uint8Array,$e=Ve?Ve.allocUnsafe:i,qe=an(Ie.getPrototypeOf,Ie),Qe=Ie.create,He=Ae.propertyIsEnumerable,ze=Oe.splice,Ze=Be?Be.isConcatSpreadable:i,We=Be?Be.iterator:i,Je=Be?Be.toStringTag:i,et=function(){try{var e=uo(Ie,"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,ft=Te.ceil,dt=Te.floor,mt=Ie.getOwnPropertySymbols,gt=Ve?Ve.isBuffer:i,Ut=t.isFinite,qt=Oe.join,mn=an(Ie.keys,Ie),gn=Te.max,vn=Te.min,yn=ie.now,bn=t.parseInt,En=Te.random,_n=Oe.reverse,Sn=uo(t,"DataView"),Tn=uo(t,"Map"),In=uo(t,"Promise"),Dn=uo(t,"Set"),wn=uo(t,"WeakMap"),Cn=uo(Ie,"create"),On=wn&&new wn,Pn={},An=Mo(Sn),Fn=Mo(Tn),Nn=Mo(In),Rn=Mo(Dn),kn=Mo(wn),xn=Be?Be.prototype:i,Un=xn?xn.valueOf:i,Mn=xn?xn.toString:i;function Ln(e){if(es(e)&&!$a(e)&&!(e instanceof Gn)){if(e instanceof Bn)return e;if(Re.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__=d,this.__views__=[]}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 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 qn(e);this.size=t.size}function Zn(e,t){var n=$a(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&&!Re.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 Wn(e){var t=e.length;return t?e[Qr(0,t-1)]:i}function Yn(e,t){return No(wi(e),or(t,0,e.length))}function Kn(e){return No(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];Re.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&&Ci(t,As(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:Ds(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=$a(e);if(p){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return wi(e,s)}else{var f=po(e),d=f==E||f==_;if(za(e))return Ei(e,u);if(f==I||f==m||d&&!o){if(s=c||d?{}:ho(e),!u)return c?function(e,t){return Ci(e,lo(e),t)}(e,function(e,t){return e&&Ci(t,Fs(t),e)}(s,e)):function(e,t){return Ci(e,co(e),t)}(e,nr(s,e))}else{if(!ot[f])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case F:return _i(e);case v:case y:return new i(+e);case N:return function(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case k:case x:case U:case M:case L:case j:case V:case B:return Si(e,n);case S:return new i;case T:case O:return new i(e);case w:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new i;case P:return r=e,Un?Ie(Un.call(r)):{}}}(e,f,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?Fs:As)(e);return Dt(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=Ie(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 Ce(o);return Oo(function(){e.apply(i,n)},t)}function cr(e,t,n,r){var i=-1,o=Pt,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=Ft(t,Wt(n))),r?(o=At,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 f=c;f--;)if(t[f]===p)continue e;u.push(l)}else o(t,p,r)||u.push(l)}return u}Ln.templateSettings={escape:W,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,$n.prototype.clear=function(){this.__data__=Cn?Cn(null):{},this.size=0},$n.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},$n.prototype.get=function(e){var t=this.__data__;if(Cn){var n=t[e];return n===a?i:n}return Re.call(t,e)?t[e]:i},$n.prototype.has=function(e){var t=this.__data__;return Cn?t[e]!==i:Re.call(t,e)},$n.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Cn&&t===i?a:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.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))},qn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?i:t[n][1]},qn.prototype.has=function(e){return er(this.__data__,e)>-1},qn.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 $n,map:new(Tn||qn),string:new $n}},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 qn,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 qn){var r=n.__data__;if(!Tn||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=Ai(yr),pr=Ai(br,!0);function fr(e,t){var n=!0;return lr(e,function(e,r,i){return n=!!t(e,r,i)}),n}function dr(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):Nt(i,s):r||(i[i.length]=s)}return i}var gr=Fi(),vr=Fi(!0);function yr(e,t){return e&&gr(e,t,As)}function br(e,t){return e&&vr(e,t,As)}function Er(e,t){return Ot(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 Sr(e,t,n){var r=t(e);return $a(e)?r:Nt(r,n(e))}function Tr(e){return null==e?e===i?"[object Undefined]":"[object Null]":Je&&Je in Ie(e)?function(e){var t=Re.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 Ir(e,t){return e>t}function Dr(e,t){return null!=e&&Re.call(e,t)}function wr(e,t){return null!=e&&t in Ie(e)}function Cr(e,t,n){for(var o=n?At:Pt,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,p=[];u--;){var f=e[u];u&&t&&(f=Ft(f,Wt(t))),l=vn(f.length,l),c[u]=!n&&(t||a>=120&&f.length>=120)?new Hn(u&&f):i}f=e[0];var d=-1,h=c[0];e:for(;++d<a&&p.length<l;){var m=f[d],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 v=c[u];if(!(v?Kt(v,g):o(e[u],g,n)))continue e}h&&h.push(g),p.push(m)}}return p}function Or(e,t,n){var r=null==(e=Do(e,t=gi(t,e)))?e:e[Uo(Wo(t))];return null==r?i:Tt(r,e,n)}function Pr(e){return es(e)&&Tr(e)==m}function Ar(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=$a(e),u=$a(t),c=s?g:po(e),l=u?g:po(t),p=(c=c==m?I:c)==I,f=(l=l==m?I:l)==I,d=c==l;if(d&&za(e)){if(!za(t))return!1;s=!0,p=!1}if(d&&!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 N:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case F:return!(e.byteLength!=t.byteLength||!o(new Ge(e),new Ge(t)));case v:case y:case T:return ja(+e,+t);case b:return e.name==t.name&&e.message==t.message;case w:case O:return e==t+"";case S:var s=on;case C: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 P:if(Un)return Un.call(e)==Un.call(t)}return!1}(e,t,c,n,r,o,a);if(!(1&n)){var h=p&&Re.call(e,"__wrapped__"),E=f&&Re.call(t,"__wrapped__");if(h||E){var _=h?e.value():e,D=E?t.value():t;return a||(a=new zn),o(_,D,n,r,a)}}return!!d&&(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:Re.call(t,p)))return!1}var f=a.get(e),d=a.get(t);if(f&&d)return f==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++l<c;){var g=e[p=u[l]],v=t[p];if(r)var y=s?r(v,g,p,t,e,a):r(g,v,p,e,t,a);if(!(y===i?g===v||o(g,v,n,r,a):y)){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,Ar,o))}function Fr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Ie(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 f=new zn;if(r)var d=r(l,p,c,e,t,f);if(!(d===i?Ar(p,l,3,r,f):d))return!1}}return!0}function Nr(e){return!(!Xa(e)||(t=e,xe&&xe in t))&&(Ya(e)?je:me).test(Mo(e));var t}function Rr(e){return"function"==typeof e?e:null==e?nu:"object"==typeof e?$a(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 Ie(e))Re.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]?To(t[0][0],t[0][1]):function(n){return n===e||Fr(n,e,t)}}function Lr(e,t){return yo(e)&&So(t)?To(Uo(e),t):function(n){var r=Ds(n,e);return r===i&&r===t?ws(n,e):Ar(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,f=p===i;if(f){var d=$a(c),h=!d&&za(c),m=!d&&!h&&us(c);p=c,d||h||m?$a(u)?p=u:Ha(u)?p=wi(u):h?(f=!1,p=Ei(c,!0)):m?(f=!1,p=Si(c,!0)):p=[]:rs(c)||Ga(c)?(p=u,Ga(u)?p=gs(u):Xa(u)&&!Ya(u)||(p=ho(c))):f=!1}f&&(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)}},Fs)}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?Ft(t,function(e){return $a(e)?function(t){return _r(t,1===e.length?e[0]:e)}:e}):[nu];var r=-1;t=Ft(t,Wt(oo()));var i=Ur(e,function(e,n,i){var o=Ft(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=Ti(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 $r(e,t,n,r){var i=r?Vt:jt,o=-1,a=t.length,s=e;for(e===t&&(t=wi(t)),n&&(s=Ft(e,Wt(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 qr(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+dt(En()*(t-e+1))}function Hr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=dt(t/2))&&(e+=e)}while(t);return n}function zr(e,t){return Po(Io(e,t,nu),e+"")}function Zr(e){return Wn(js(e))}function Wr(e,t){var n=js(e);return No(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=On?function(e,t){return On.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 No(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=dt((o+a)/2),f=n(e[p]),d=f!==i,h=null===f,m=f==f,g=ss(f);if(s)var v=r||m;else v=l?m&&(r||d):u?m&&d&&(r||!h):c?m&&d&&!h&&(r||!g):!h&&!g&&(r?f<=t:f<t);v?o=p+1:a=p}return vn(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)?f:+e}function ai(e){if("string"==typeof e)return e;if($a(e))return Ft(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=Pt,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=At;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 f=u.length;f--;)if(u[f]===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(var i=null==e||"object"!=typeof e&&"function"!=typeof e;++n<r;){var o=t[n];if("string"==typeof o){if("__proto__"===o&&!Re.call(e,"__proto__"))return!1;if("constructor"===o&&n+1<r&&"string"==typeof t[n+1]&&"prototype"===t[n+1]){if(i&&0===n)continue;return!1}}}var a=Do(e,t);return null==a||delete a[Uo(Wo(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()),Rt(t,function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))},n)}function fi(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 di(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 $a(e)?e:yo(e,t)?[e]:xo(vs(e))}var vi=zr;function yi(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=$e?$e(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 Si(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ti(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 Ii(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),f=!i;++u<c;)p[u]=t[u];for(;++o<s;)(f||o<a)&&(p[n[o]]=e[o]);for(;l--;)p[u++]=e[o++];return p}function Di(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),f=r(p+l),d=!i;++o<p;)f[o]=e[o];for(var h=o;++c<l;)f[h+c]=t[c];for(;++s<u;)(d||o<a)&&(f[h+n[s]]=e[o++]);return f}function wi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Ci(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 Oi(e,t){return function(n,r){var i=$a(n)?It:tr,o=t?t():{};return i(n,e,oo(r,2),o)}}function Pi(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&&vo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Ie(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t})}function Ai(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=Ie(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Fi(e){return function(t,n,r){for(var i=-1,o=Ie(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 Ni(e){return function(t){var n=rn(t=vs(t))?pn(t):i,r=n?n[0]:t.charAt(0),o=n?yi(n,1).join(""):t.slice(1);return r[e]()+o}}function Ri(e){return function(t){return Rt(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=Ie(t);if(!Qa(t)){var a=oo(n,3);t=As(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 Ce(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&&$a(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,f){var d=t&c,h=1&t,m=2&t,g=24&t,v=512&t,y=m?i:ki(e);return function c(){for(var b=arguments.length,E=r(b),_=b;_--;)E[_]=arguments[_];if(g)var S=io(c),T=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(E,S);if(o&&(E=Ii(E,o,a,g)),s&&(E=Di(E,s,u,g)),b-=T,g&&b<f){var I=sn(E,S);return qi(e,t,Mi,c.placeholder,n,E,I,l,p,f-b)}var D=h?n:this,w=m?D[e]:e;return b=E.length,l?E=function(e,t){for(var n=e.length,r=vn(t.length,n),o=wi(e);r--;){var a=t[r];e[r]=go(a,n)?o[a]:i}return e}(E,l):v&&b>1&&E.reverse(),d&&p<b&&(E.length=p),this&&this!==pt&&this instanceof c&&(w=y||ki(w)),w.apply(D,E)}}function Li(e,t){return function(n,r){return function(e,t,n,r){return yr(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=Ft(t,Wt(oo())),zr(function(n){var r=this;return e(t,function(e){return Tt(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,ft(e/ln(t)));return rn(t)?yi(pn(r),0,e).join(""):r.slice(0,e)}function Gi(e){return function(t,n,o){return o&&"number"!=typeof o&&vo(t,n,o)&&(n=o=i),t=fs(t),n===i?(n=t,t=0):n=fs(n),function(e,t,n,i){for(var o=-1,a=gn(ft((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:fs(o),e)}}function $i(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function qi(e,t,n,r,o,a,s,c,l,p){var f=8&t;t|=f?u:64,4&(t&=~(f?64:u))||(t&=-4);var d=[e,t,o,f?a:i,f?s:i,f?i:a,f?i:s,c,l,p],h=n.apply(i,d);return bo(e)&&Co(h,d),h.placeholder=r,Ao(h,e,t)}function Qi(e){var t=Te[e];return function(e,n){if(e=ms(e),(n=null==n?0:vn(ds(n),292))&&Ut(e)){var r=(vs(e)+"e").split("e");return+((r=(vs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Hi=Dn&&1/un(new Dn([,-0]))[1]==l?function(e){return new Dn(e)}:su;function zi(e){return function(t){var n=po(t);return n==S?on(t):n==C?cn(t):function(e,t){return Ft(t,function(t){return[t,e[t]]})}(t,e(t))}}function Zi(e,t,n,a,l,p,f,d){var h=2&t;if(!h&&"function"!=typeof e)throw new Ce(o);var m=a?a.length:0;if(m||(t&=-97,a=l=i),f=f===i?f:gn(ds(f),0),d=d===i?d:ds(d),m-=l?l.length:0,64&t){var g=a,v=l;a=l=i}var y=h?i:no(e),b=[e,t,n,a,l,g,v,p,f,d];if(y&&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?Ii(l,u,t[4]):u,e[4]=l?sn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Di(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]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,y),e=b[0],t=b[1],n=b[2],a=b[3],l=b[4],!(d=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?qi(e,t,Mi,a.placeholder,i,u,p,i,i,n-s):Tt(this&&this!==pt&&this instanceof a?o:e,this,u)}}(e,t,d):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),f=this&&this!==pt&&this instanceof t?a:e;++c<l;)p[c]=i[c];for(;u--;)p[c++]=arguments[++s];return Tt(f,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 Ao((y?Kr:Co)(E,b),e,t)}function Wi(e,t,n,r){return e===i||ja(e,Ae[n])&&!Re.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 f=-1,d=!0,h=2&n?new Hn:i;for(a.set(e,t),a.set(t,e);++f<u;){var m=e[f],g=t[f];if(r)var v=s?r(g,m,f,t,e,a):r(m,g,f,e,t,a);if(v!==i){if(v)continue;d=!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)})){d=!1;break}}else if(m!==g&&!o(m,g,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function Xi(e){return Po(Io(e,i,qo),e+"")}function eo(e){return Sr(e,As,co)}function to(e){return Sr(e,Fs,lo)}var no=On?function(e){return On.get(e)}:su;function ro(e){for(var t=e.name+"",n=Pn[t],r=Re.call(Pn,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(Re.call(Ln,"placeholder")?Ln:e).placeholder}function oo(){var e=Ln.iteratee||ru;return e=e===ru?Rr: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=As(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,So(i)]}return t}function uo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Nr(n)?n:i}var co=mt?function(e){return null==e?[]:(e=Ie(e),Ot(mt(e),function(t){return He.call(e,t)}))}:hu,lo=mt?function(e){for(var t=[];e;)Nt(t,co(e)),e=qe(e);return t}:hu,po=Tr;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)&&($a(e)||Ga(e))}function ho(e){return"function"!=typeof e.constructor||_o(e)?{}:jn(qe(e))}function mo(e){return $a(e)||Ga(e)||!!(Ze&&e&&e[Ze])}function go(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function vo(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 yo(e,t){if($a(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 Ie(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]}(Sn&&po(new Sn(new ArrayBuffer(1)))!=N||Tn&&po(new Tn)!=S||In&&po(In.resolve())!=D||Dn&&po(new Dn)!=C||wn&&po(new wn)!=A)&&(po=function(e){var t=Tr(e),n=t==I?e.constructor:i,r=n?Mo(n):"";if(r)switch(r){case An:return N;case Fn:return S;case Nn:return D;case Rn:return C;case kn:return A}return t});var Eo=Fe?Ya:mu;function _o(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ae)}function So(e){return e==e&&!Xa(e)}function To(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Ie(n))}}function Io(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),Tt(e,this,u)}}function Do(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 Co=Fo(Kr),Oo=lt||function(e,t){return pt.setTimeout(e,t)},Po=Fo(Jr);function Ao(e,t,n){var r=t+"";return Po(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 Dt(h,function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Fo(e){var t=0,n=0;return function(){var r=yn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function No(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 Ro,ko,xo=(Ro=Ra(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=Ro.cache,Ro);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 Ne.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=Wo(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=Wo(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:ds(n);return i<0&&(i=gn(r+i,0)),Lt(e,oo(t,3),i)}function $o(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=ds(n),o=n<0?gn(r+o,0):vn(o,r-1)),Lt(e,oo(t,3),o,!0)}function qo(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=Ft(e,hi);return t.length&&t[0]===e[0]?Cr(t):[]}),zo=zr(function(e){var t=Wo(e),n=Ft(e,hi);return t===Wo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Cr(n,oo(t,2)):[]}),Zo=zr(function(e){var t=Wo(e),n=Ft(e,hi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Cr(n,i,t):[]});function Wo(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?$r(e,t):e}var Jo=Xi(function(e,t){var n=null==e?0:e.length,r=ir(e,t);return qr(e,Ft(t,function(e){return go(e,n)?+e:e}).sort(Ti)),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=Wo(e);return Ha(t)&&(t=i),si(mr(e,1,Ha,!0),oo(t,2))}),na=zr(function(e){var t=Wo(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=Ot(e,function(e){if(Ha(e))return t=gn(e.length,t),!0}),zt(t,function(t){return Ft(e,$t(t))})}function ia(e,t){if(!e||!e.length)return[];var n=ra(e);return null==t?n:Ft(n,function(e){return Tt(t,i,e)})}var oa=zr(function(e,t){return Ha(e)?cr(e,t):[]}),aa=zr(function(e){return fi(Ot(e,Ha))}),sa=zr(function(e){var t=Wo(e);return Ha(t)&&(t=i),fi(Ot(e,Ha),oo(t,2))}),ua=zr(function(e){var t=Wo(e);return t="function"==typeof t?t:i,fi(Ot(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 fa(e,t){return t(e)}var da=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:fa,args:[o],thisArg:i}),new Bn(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)}),ha=Oi(function(e,t,n){Re.call(e,n)?++e[n]:rr(e,n,1)}),ma=xi(Go),ga=xi($o);function va(e,t){return($a(e)?Dt:lr)(e,oo(t,3))}function ya(e,t){return($a(e)?wt:pr)(e,oo(t,3))}var ba=Oi(function(e,t,n){Re.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?Tt(t,e,n):Or(e,t,n)}),a}),_a=Oi(function(e,t,n){rr(e,n,t)});function Sa(e,t){return($a(e)?Ft:Ur)(e,oo(t,3))}var Ta=Oi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ia=zr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&vo(e,t[0],t[1])?t=[]:n>2&&vo(t[0],t[1],t[2])&&(t=[t[0]]),Br(e,mr(t,1),[])}),Da=ct||function(){return pt.Date.now()};function wa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Zi(e,c,i,i,i,i,t)}function Ca(e,t){var n;if("function"!=typeof t)throw new Ce(o);return e=ds(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Oa=zr(function(e,t,n){var r=1;if(n.length){var i=sn(n,io(Oa));r|=u}return Zi(e,r,t,n,i)}),Pa=zr(function(e,t,n){var r=3;if(n.length){var i=sn(n,io(Pa));r|=u}return Zi(t,r,e,n,i)});function Aa(e,t,n){var r,a,s,u,c,l,p=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new Ce(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||d&&e-p>=s}function v(){var e=Da();if(g(e))return y(e);c=Oo(v,function(e){var n=t-(e-l);return d?vn(n,s-(e-p)):n}(e))}function y(e){return c=i,h&&r?m(e):(r=a=i,u)}function b(){var e=Da(),n=g(e);if(r=arguments,a=this,l=e,n){if(c===i)return function(e){return p=e,c=Oo(v,t),f?m(e):u}(l);if(d)return bi(c),c=Oo(v,t),m(l)}return c===i&&(c=Oo(v,t)),u}return t=ms(t)||0,Xa(n)&&(f=!!n.leading,s=(d="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:y(Da())},b}var Fa=zr(function(e,t){return ur(e,1,t)}),Na=zr(function(e,t,n){return ur(e,ms(t)||0,n)});function Ra(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ce(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(Ra.Cache||Qn),n}function ka(e){if("function"!=typeof e)throw new Ce(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)}}Ra.Cache=Qn;var xa=vi(function(e,t){var n=(t=1==t.length&&$a(t[0])?Ft(t[0],Wt(oo())):Ft(mr(t,1),Wt(oo()))).length;return zr(function(r){for(var i=-1,o=vn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Tt(e,this,r)})}),Ua=zr(function(e,t){var n=sn(t,io(Ua));return Zi(e,u,i,t,n)}),Ma=zr(function(e,t){var n=sn(t,io(Ma));return Zi(e,64,i,t,n)}),La=Xi(function(e,t){return Zi(e,256,i,i,i,t)});function ja(e,t){return e===t||e!=e&&t!=t}var Va=$i(Ir),Ba=$i(function(e,t){return e>=t}),Ga=Pr(function(){return arguments}())?Pr:function(e){return es(e)&&Re.call(e,"callee")&&!He.call(e,"callee")},$a=r.isArray,qa=vt?Wt(vt):function(e){return es(e)&&Tr(e)==F};function Qa(e){return null!=e&&Ja(e.length)&&!Ya(e)}function Ha(e){return es(e)&&Qa(e)}var za=gt||mu,Za=yt?Wt(yt):function(e){return es(e)&&Tr(e)==y};function Wa(e){if(!es(e))return!1;var t=Tr(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=Tr(e);return t==E||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ka(e){return"number"==typeof e&&e==ds(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?Wt(bt):function(e){return es(e)&&po(e)==S};function ns(e){return"number"==typeof e||es(e)&&Tr(e)==T}function rs(e){if(!es(e)||Tr(e)!=I)return!1;var t=qe(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ne.call(n)==Me}var is=Et?Wt(Et):function(e){return es(e)&&Tr(e)==w},os=_t?Wt(_t):function(e){return es(e)&&po(e)==C};function as(e){return"string"==typeof e||!$a(e)&&es(e)&&Tr(e)==O}function ss(e){return"symbol"==typeof e||es(e)&&Tr(e)==P}var us=St?Wt(St):function(e){return es(e)&&Ja(e.length)&&!!it[Tr(e)]},cs=$i(xr),ls=$i(function(e,t){return e<=t});function ps(e){if(!e)return[];if(Qa(e))return as(e)?pn(e):wi(e);if(We&&e[We])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[We]());var t=po(e);return(t==S?on:t==C?un:js)(e)}function fs(e){return e?(e=ms(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ds(e){var t=fs(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?or(ds(e),0,d):0}function ms(e){if("number"==typeof e)return e;if(ss(e))return f;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=Zt(e);var n=he.test(e);return n||ge.test(e)?ut(e.slice(2),n?2:8):de.test(e)?f:+e}function gs(e){return Ci(e,Fs(e))}function vs(e){return null==e?"":ai(e)}var ys=Pi(function(e,t){if(_o(t)||Qa(t))Ci(t,As(t),e);else for(var n in t)Re.call(t,n)&&Xn(e,n,t[n])}),bs=Pi(function(e,t){Ci(t,Fs(t),e)}),Es=Pi(function(e,t,n,r){Ci(t,Fs(t),e,r)}),_s=Pi(function(e,t,n,r){Ci(t,As(t),e,r)}),Ss=Xi(ir),Ts=zr(function(e,t){e=Ie(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&vo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Fs(a),u=-1,c=s.length;++u<c;){var l=s[u],p=e[l];(p===i||ja(p,Ae[l])&&!Re.call(e,l))&&(e[l]=a[l])}return e}),Is=zr(function(e){return e.push(i,Yi),Tt(Rs,i,e)});function Ds(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 Cs=Li(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),e[t]=n},Xs(nu)),Os=Li(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]},oo),Ps=zr(Or);function As(e){return Qa(e)?Zn(e):kr(e)}function Fs(e){return Qa(e)?Zn(e,!0):function(e){if(!Xa(e))return function(e){var t=[];if(null!=e)for(var n in Ie(e))t.push(n);return t}(e);var t=_o(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}(e)}var Ns=Pi(function(e,t,n){jr(e,t,n)}),Rs=Pi(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=Ft(t,function(t){return t=gi(t,e),r||(r=t.length>1),t}),Ci(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=Ft(to(e),function(e){return[e]});return t=oo(t),Gr(e,n,function(e,n){return t(e,n[0])})}var Ms=zi(As),Ls=zi(Fs);function js(e){return null==e?[]:Yt(e,As(e))}var Vs=Ri(function(e,t,n){return t=t.toLowerCase(),e+(n?Bs(t):t)});function Bs(e){return Ws(vs(e).toLowerCase())}function Gs(e){return(e=vs(e))&&e.replace(ye,en).replace(Ke,"")}var $s=Ri(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),qs=Ri(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Qs=Ni("toLowerCase"),Hs=Ri(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),zs=Ri(function(e,t,n){return e+(n?" ":"")+Ws(t)}),Zs=Ri(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ws=Ni("toUpperCase");function Ys(e,t,n){return e=vs(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 Tt(e,i,t)}catch(e){return Wa(e)?e:new _e(e)}}),Js=Xi(function(e,t){return Dt(t,function(t){t=Uo(t),rr(e,t,Oa(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 Rr("function"==typeof e?e:ar(e,1))}var iu=zr(function(e,t){return function(n){return Or(n,e,t)}}),ou=zr(function(e,t){return function(n){return Or(e,n,t)}});function au(e,t,n){var r=As(t),i=Er(t,r);null!=n||Xa(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,As(t)));var o=!(Xa(n)&&"chain"in n&&!n.chain),a=Ya(e);return Dt(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,Nt([this.value()],arguments))})}),e}function su(){}var uu=Vi(Ft),cu=Vi(Ct),lu=Vi(xt);function pu(e){return yo(e)?$t(Uo(e)):function(e){return function(t){return _r(t,e)}}(e)}var fu=Gi(),du=Gi(!0);function hu(){return[]}function mu(){return!1}var gu,vu=ji(function(e,t){return e+t},0),yu=Qi("ceil"),bu=ji(function(e,t){return e/t},1),Eu=Qi("floor"),_u=ji(function(e,t){return e*t},1),Su=Qi("round"),Tu=ji(function(e,t){return e-t},0);return Ln.after=function(e,t){if("function"!=typeof t)throw new Ce(o);return e=ds(e),function(){if(--e<1)return t.apply(this,arguments)}},Ln.ary=wa,Ln.assign=ys,Ln.assignIn=bs,Ln.assignInWith=Es,Ln.assignWith=_s,Ln.at=Ss,Ln.before=Ca,Ln.bind=Oa,Ln.bindAll=Js,Ln.bindKey=Pa,Ln.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $a(e)?e:[e]},Ln.chain=pa,Ln.chunk=function(e,t,n){t=(n?vo(e,t,n):t===i)?1:gn(ds(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=r(ft(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 Nt($a(n)?wi(n):[n],mr(t,1))},Ln.cond=function(e){var t=null==e?0:e.length,n=oo();return e=t?Ft(e,function(e){if("function"!=typeof e[1])throw new Ce(o);return[n(e[0]),e[1]]}):[],zr(function(n){for(var r=-1;++r<t;){var i=e[r];if(Tt(i[0],this,n))return Tt(i[1],this,n)}})},Ln.conforms=function(e){return function(e){var t=As(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=Zi(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=Zi(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Ln.debounce=Aa,Ln.defaults=Ts,Ln.defaultsDeep=Is,Ln.defer=Fa,Ln.delay=Na,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:ds(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:ds(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&&vo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=ds(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:ds(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($a(e)?Ot:hr)(e,oo(t,3))},Ln.flatMap=function(e,t){return mr(Sa(e,t),1)},Ln.flatMapDeep=function(e,t){return mr(Sa(e,t),l)},Ln.flatMapDepth=function(e,t,n){return n=n===i?1:ds(n),mr(Sa(e,t),n)},Ln.flatten=qo,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:ds(t)):[]},Ln.flip=function(e){return Zi(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];r[i[0]]=i[1]}return r},Ln.functions=function(e){return null==e?[]:Er(e,As(e))},Ln.functionsIn=function(e){return null==e?[]:Er(e,Fs(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=Zo,Ln.invert=Cs,Ln.invertBy=Os,Ln.invokeMap=Ea,Ln.iteratee=ru,Ln.keyBy=_a,Ln.keys=As,Ln.keysIn=Fs,Ln.map=Sa,Ln.mapKeys=function(e,t){var n={};return t=oo(t,3),yr(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),yr(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=Ra,Ln.merge=Ns,Ln.mergeWith=Rs,Ln.method=iu,Ln.methodOf=ou,Ln.mixin=au,Ln.negate=ka,Ln.nthArg=function(e){return e=ds(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 Ca(2,e)},Ln.orderBy=function(e,t,n,r){return null==e?[]:($a(t)||(t=null==t?[]:[t]),$a(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=Ta,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?$r(e,t,oo(n,2)):e},Ln.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,i,n):e},Ln.pullAt=Jo,Ln.range=fu,Ln.rangeRight=du,Ln.rearg=La,Ln.reject=function(e,t){return($a(e)?Ot: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 qr(e,i),n},Ln.rest=function(e,t){if("function"!=typeof e)throw new Ce(o);return zr(e,t=t===i?t:ds(t))},Ln.reverse=Xo,Ln.sampleSize=function(e,t,n){return t=(n?vo(e,t,n):t===i)?1:ds(t),($a(e)?Yn:Wr)(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($a(e)?Kn:Xr)(e)},Ln.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&vo(e,t,n)?(t=0,n=r):(t=null==t?0:ds(t),n=n===i?r:ds(n)),ei(e,t,n)):[]},Ln.sortBy=Ia,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&&vo(e,t,n)&&(t=n=i),(n=n===i?d:n>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=ai(t))&&rn(e)?yi(pn(e),0,n):e.split(t,n):[]},Ln.spread=function(e,t){if("function"!=typeof e)throw new Ce(o);return t=null==t?0:gn(ds(t),0),zr(function(n){var r=n[t],i=yi(n,0,t);return r&&Nt(i,r),Tt(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:ds(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:ds(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 Ce(o);return Xa(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Aa(e,t,{leading:r,maxWait:t,trailing:i})},Ln.thru=fa,Ln.toArray=ps,Ln.toPairs=Ms,Ln.toPairsIn=Ls,Ln.toPath=function(e){return $a(e)?Ft(e,Uo):ss(e)?[e]:wi(xo(vs(e)))},Ln.toPlainObject=gs,Ln.transform=function(e,t,n){var r=$a(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(qe(e)):{}}return(i?Dt:yr)(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,Fs(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 di(e||[],t||[],Xn)},Ln.zipObjectDeep=function(e,t){return di(e||[],t||[],Yr)},Ln.zipWith=la,Ln.entries=Ms,Ln.entriesIn=Ls,Ln.extend=bs,Ln.extendWith=Es,au(Ln,Ln),Ln.add=vu,Ln.attempt=Ks,Ln.camelCase=Vs,Ln.capitalize=Bs,Ln.ceil=yu,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,As(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=vs(e),t=ai(t);var r=e.length,o=n=n===i?r:or(ds(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Ln.eq=ja,Ln.escape=function(e){return(e=vs(e))&&Z.test(e)?e.replace(H,tn):e},Ln.escapeRegExp=function(e){return(e=vs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Ln.every=function(e,t,n){var r=$a(e)?Ct:fr;return n&&vo(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),yr)},Ln.findLast=ga,Ln.findLastIndex=$o,Ln.findLastKey=function(e,t){return Mt(e,oo(t,3),br)},Ln.floor=Eu,Ln.forEach=va,Ln.forEachRight=ya,Ln.forIn=function(e,t){return null==e?e:gr(e,oo(t,3),Fs)},Ln.forInRight=function(e,t){return null==e?e:vr(e,oo(t,3),Fs)},Ln.forOwn=function(e,t){return e&&yr(e,oo(t,3))},Ln.forOwnRight=function(e,t){return e&&br(e,oo(t,3))},Ln.get=Ds,Ln.gt=Va,Ln.gte=Ba,Ln.has=function(e,t){return null!=e&&fo(e,t,Dr)},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?ds(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:ds(n);return i<0&&(i=gn(r+i,0)),jt(e,t,i)},Ln.inRange=function(e,t,n){return t=fs(t),n===i?(n=t,t=0):n=fs(n),function(e,t,n){return e>=vn(t,n)&&e<gn(t,n)}(e=ms(e),t,n)},Ln.invoke=Ps,Ln.isArguments=Ga,Ln.isArray=$a,Ln.isArrayBuffer=qa,Ln.isArrayLike=Qa,Ln.isArrayLikeObject=Ha,Ln.isBoolean=function(e){return!0===e||!1===e||es(e)&&Tr(e)==v},Ln.isBuffer=za,Ln.isDate=Za,Ln.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},Ln.isEmpty=function(e){if(null==e)return!0;if(Qa(e)&&($a(e)||"string"==typeof e||"function"==typeof e.splice||za(e)||us(e)||Ga(e)))return!e.length;var t=po(e);if(t==S||t==C)return!e.size;if(_o(e))return!kr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Ln.isEqual=function(e,t){return Ar(e,t)},Ln.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Ar(e,t,i,n):!!r},Ln.isError=Wa,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||Fr(e,t,so(t))},Ln.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Fr(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 Nr(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)==A},Ln.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==Tr(e)},Ln.join=function(e,t){return null==e?"":qt.call(e,t)},Ln.kebabCase=$s,Ln.last=Wo,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=ds(n))<0?gn(r+o,0):vn(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=qs,Ln.lowerFirst=Qs,Ln.lt=cs,Ln.lte=ls,Ln.max=function(e){return e&&e.length?dr(e,nu,Ir):i},Ln.maxBy=function(e,t){return e&&e.length?dr(e,oo(t,2),Ir):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?dr(e,nu,xr):i},Ln.minBy=function(e,t){return e&&e.length?dr(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,ds(t)):i},Ln.noConflict=function(){return pt._===this&&(pt._=Le),this},Ln.noop=su,Ln.now=Da,Ln.pad=function(e,t,n){e=vs(e);var r=(t=ds(t))?ln(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Bi(dt(i),n)+e+Bi(ft(i),n)},Ln.padEnd=function(e,t,n){e=vs(e);var r=(t=ds(t))?ln(e):0;return t&&r<t?e+Bi(t-r,n):e},Ln.padStart=function(e,t,n){e=vs(e);var r=(t=ds(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(vs(e).replace(re,""),t||0)},Ln.random=function(e,t,n){if(n&&"boolean"!=typeof n&&vo(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=fs(e),t===i?(t=e,e=0):t=fs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=En();return vn(e+o*(t-e+st("1e-"+((o+"").length-1))),t)}return Qr(e,t)},Ln.reduce=function(e,t,n){var r=$a(e)?Rt:Qt,i=arguments.length<3;return r(e,oo(t,4),n,i,lr)},Ln.reduceRight=function(e,t,n){var r=$a(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?vo(e,t,n):t===i)?1:ds(t),Hr(vs(e),t)},Ln.replace=function(){var e=arguments,t=vs(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=Su,Ln.runInContext=e,Ln.sample=function(e){return($a(e)?Wn:Zr)(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==S||t==C?e.size:kr(e).length},Ln.snakeCase=Hs,Ln.some=function(e,t,n){var r=$a(e)?xt:ti;return n&&vo(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=vs(e),n=null==n?0:or(ds(n),0,e.length),t=ai(t),e.slice(n,n+t.length)==t},Ln.subtract=Tu,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&&vo(e,t,n)&&(t=i),e=vs(e),t=Es({},t,r,Wi);var o,a,s=Es({},t.imports,r.imports,Wi),u=As(s),c=Yt(s,u),l=0,p=t.interpolate||be,f="__p += '",d=De((t.escape||be).source+"|"+p.source+"|"+(p===K?pe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(d,function(t,n,r,i,s,u){return r||(r=i),f+=e.slice(l,u).replace(Ee,nn),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t}),f+="';\n";var m=Re.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new _e("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(G,""):f).replace($,"$1").replace(q,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Ks(function(){return Se(u,h+"return "+f).apply(i,c)});if(g.source=f,Wa(g))throw g;return g},Ln.times=function(e,t){if((e=ds(e))<1||e>p)return[];var n=d,r=vn(e,d);t=oo(t),e-=d;for(var i=zt(r,t);++n<e;)t(n);return i},Ln.toFinite=fs,Ln.toInteger=ds,Ln.toLength=hs,Ln.toLower=function(e){return vs(e).toLowerCase()},Ln.toNumber=ms,Ln.toSafeInteger=function(e){return e?or(ds(e),-9007199254740991,p):0===e?e:0},Ln.toString=vs,Ln.toUpper=function(e){return vs(e).toUpperCase()},Ln.trim=function(e,t,n){if((e=vs(e))&&(n||t===i))return Zt(e);if(!e||!(t=ai(t)))return e;var r=pn(e),o=pn(t);return yi(r,Jt(r,o),Xt(r,o)+1).join("")},Ln.trimEnd=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.slice(0,fn(e)+1);if(!e||!(t=ai(t)))return e;var r=pn(e);return yi(r,0,Xt(r,pn(t))+1).join("")},Ln.trimStart=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=ai(t)))return e;var r=pn(e);return yi(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?ds(t.length):n,r="omission"in t?ai(t.omission):r}var a=(e=vs(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?yi(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=De(o.source,vs(fe.exec(o))+"g")),o.lastIndex=0;l=o.exec(p);)var f=l.index;c=c.slice(0,f===i?u:f)}}else if(e.indexOf(ai(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+r},Ln.unescape=function(e){return(e=vs(e))&&z.test(e)?e.replace(Q,dn):e},Ln.uniqueId=function(e){var t=++ke;return vs(e)+t},Ln.upperCase=Zs,Ln.upperFirst=Ws,Ln.each=va,Ln.eachRight=ya,Ln.first=Qo,au(Ln,(gu={},yr(Ln,function(e,t){Re.call(Ln.prototype,t)||(gu[t]=e)}),gu),{chain:!1}),Ln.VERSION="4.17.23",Dt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Ln[e].placeholder=Ln}),Dt(["drop","take"],function(e,t){Gn.prototype[e]=function(n){n=n===i?1:gn(ds(n),0);var r=this.__filtered__&&!t?new Gn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Gn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Dt(["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}}),Dt(["head","last"],function(e,t){var n="take"+(t?"Right":"");Gn.prototype[e]=function(){return this[n](1).value()[0]}}),Dt(["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 Or(n,e,t)})}),Gn.prototype.reject=function(e){return this.filter(ka(oo(e)))},Gn.prototype.slice=function(e,t){e=ds(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=ds(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(d)},yr(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||$a(t),p=function(e){var t=o.apply(Ln,Nt([e],s));return r&&f?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.__chain__,d=!!this.__actions__.length,h=a&&!f,m=u&&!d;if(!a&&l){t=m?t:new Gn(this);var g=e.apply(t,s);return g.__actions__.push({func:fa,args:[p],thisArg:i}),new Bn(g,f)}return h&&m?e.apply(this,s):(g=this.thru(p),h?r?g.value()[0]:g.value():g)})}),Dt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Oe[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($a(i)?i:[],e)}return this[n](function(n){return t.apply($a(n)?n:[],e)})}}),yr(Gn.prototype,function(e,t){var n=Ln[t];if(n){var r=n.name+"";Re.call(Pn,r)||(Pn[r]=[]),Pn[r].push({name:t,func:n})}}),Pn[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=$a(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=vn(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,f=0,d=vn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return pi(e,this.__actions__);var h=[];e:for(;u--&&f<d;){for(var m=-1,g=e[c+=t];++m<p;){var v=l[m],y=v.iteratee,b=v.type,E=y(g);if(2==b)g=E;else if(!E){if(1==b)continue e;break e}}h[f++]=g}return h},Ln.prototype.at=da,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:fa,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,We&&(Ln.prototype[We]=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},5142:(e,t,n)=>{"use strict";n.d(t,{F:()=>fc});var r={};n.r(r),n.d(r,{FunctionToString:()=>za,InboundFilters:()=>Ka,LinkedErrors:()=>os});var i={};n.r(i),n.d(i,{Breadcrumbs:()=>lu,Dedupe:()=>gu,GlobalHandlers:()=>As,HttpContext:()=>hu,LinkedErrors:()=>fu,TryCatch:()=>Us});var o=n(9392),a=n(6635);const s=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:o.GetSdkConfigurationDocument})},e}();var u=function(){return u=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},u.apply(this,arguments)},c=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,a=e.billingCountryCode,s=e.includeHiddenPlans;return!n&&this.edgeApiClient?this.edgeApiClient.getPaywall(t,a,s):this.client.query({query:o.GetPaywallDocument,fetchPolicy:"no-cache",variables:{input:u(u(u(u(u(u({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{resourceId:r}:{}),i?{context:i}:{}),a?{billingCountryCode:a}:{}),s?{includeHiddenPlans:s}:{})}})},e}();const l=c;var p=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())})},f=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])}}},d=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getCustomer=function(e){return this.client.query({query:o.GetCustomerByIdDocument,variables:{input:{customerId:e}},fetchPolicy:"no-cache"})},e.prototype.getActiveSubscriptions=function(e,t){return p(this,void 0,void 0,function(){return f(this,function(n){return[2,this.client.query({query:o.GetActiveSubscriptionsDocument,variables:{input:(0,a.isArray)(t)?{customerId:e,resourceIds:t}:{customerId:e,resourceId:t}},fetchPolicy:"no-cache"})]})})},e.prototype.getActiveSubscriptionsList=function(e,t){return p(this,void 0,void 0,function(){return f(this,function(n){return this.edgeApiClient?[2,this.edgeApiClient.getActiveSubscriptionsList(e,t)]:[2,this.client.query({query:o.GetActiveSubscriptionsListDocument,variables:{input:(0,a.isArray)(t)?{customerId:e,resourceIds:t}:{customerId:e,resourceId:t}},fetchPolicy:"no-cache"})]})})},e.prototype.getSubscription=function(e){return p(this,void 0,void 0,function(){return f(this,function(t){return[2,this.client.query({query:o.GetSubscriptionDocument,variables:{input:{subscriptionId:e}},fetchPolicy:"no-cache"})]})})},e.prototype.getCustomerPortal=function(e,t,n){return this.client.query({query:o.GetCustomerPortalByRefIdDocument,variables:{input:{customerId:e,resourceId:t,productId:n}},fetchPolicy:"no-cache"})},e.prototype.fetchUsageHistory=function(e){return p(this,arguments,void 0,function(e){var t=e.customerId,n=e.resourceId,r=e.endDate,i=e.startDate,a=e.featureId;return f(this,function(e){return[2,this.client.query({query:o.GetUsageHistoryDocument,variables:{usageHistoryInput:{customerRefId:t,featureRefId:a,resourceRefId:n,startDate:i,endDate:r||new Date}},fetchPolicy:"no-cache"})]})})},e}();const h=d,m=function(){function e(e){this.client=e}return e.prototype.getCoupons=function(){return this.client.query({query:o.GetCouponsDocument,fetchPolicy:"no-cache"})},e}();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)},v=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,a=e.addons,s=e.billableFeatures,u=e.billingInformation,c=e.billingCountryCode,l=e.billingId,p=e.billingPeriod,f=e.metadata,d=e.promotionCode,h=e.resourceId,m=e.skipTrial,g=e.startDate,v=e.unitQuantity,y=e.scheduleStrategy;return this.client.mutate({mutation:o.ApplySubscriptionDocument,variables:{input:{customerId:t,payingCustomerId:n,planId:r,paymentMethodId:i,startDate:g,addons:a,billingId:l,billingPeriod:p,unitQuantity:v,billableFeatures:s,additionalMetaData:f,resourceId:h,skipTrial:m,promotionCode:d,billingInformation:this.mapBillingInformation(u),billingCountryCode:c,scheduleStrategy:y}}})},e.prototype.getSubscriptions=function(e,t,n,r){return i=this,s=arguments,c=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(s){return[2,this.client.query({query:o.GetSubscriptionsDocument,variables:g({filter:g(g(g(g({},e?{customerId:{eq:e}}:{}),t?{resourceId:(0,a.isArray)(t)?{in:t}:{eq:t}}:{}),n?{status:(0,a.isArray)(n)?{in:n}:{eq:n}}:{}),r?{productId:(0,a.isArray)(r)?{in:r}:{eq:r}}:{})},i?{paging:g({},i.startingAfter?{first:i.limit,after:i.startingAfter}:i.endingBefore?{last:i.limit,before:i.endingBefore}:{first:i.limit})}:{}),fetchPolicy:"no-cache"})]})},new((u=void 0)||(u=Promise))(function(e,t){function n(e){try{o(c.next(e))}catch(e){t(e)}}function r(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){var i;t.done?e(t.value):(i=t.value,i instanceof u?i:new u(function(e){e(i)})).then(n,r)}o((c=c.apply(i,s||[])).next())});var i,s,u,c},e.prototype.checkoutState=function(e){var t=e.customerId,n=e.resourceId,r=e.planId,i=e.billingCountryCode;return this.client.query({query:o.GetCheckoutStateDocument,fetchPolicy:"no-cache",variables:{input:g(g({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 y=v;var b=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())})},E=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])}}},_=function(){function e(e){this.client=e}return e.prototype.estimateSubscription=function(e){return b(this,void 0,void 0,function(){var t,n;return E(this,function(r){return[2,this.client.mutate({mutation:o.EstimateSubscriptionDocument,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 b(this,void 0,void 0,function(){return E(this,function(t){return[2,this.client.mutate({mutation:o.EstimateSubscriptionUpdateDocument,variables:{input:{subscriptionId:e.subscriptionId,unitQuantity:e.unitQuantity,billableFeatures:e.billableFeatures,addons:e.addons,promotionCode:e.promotionCode}}})]})})},e.prototype.previewNextInvoice=function(e){return b(this,void 0,void 0,function(){return E(this,function(t){return[2,this.client.mutate({mutation:o.PreviewNextInvoiceDocument,fetchPolicy:"no-cache",variables:{input:{subscriptionId:e.subscriptionId}}})]})})},e.prototype.previewSubscription=function(e){return b(this,void 0,void 0,function(){return E(this,function(t){return[2,this.client.mutate({mutation:o.PreviewSubscriptionDocument,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}}})]})})},e}();const S=_;var T=function(){return T=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},T.apply(this,arguments)},I=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:o.GetMockPaywallDocument,fetchPolicy:"no-cache",variables:{input:T(T(T({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{context:r}:{})}})},e}();const D=I;var w=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:o.GetUsageHistoryV2Document,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}(),C=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=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 P=function(){function e(e){this.client=e}return e.prototype.getCreditBalance=function(e){return C(this,void 0,void 0,function(){return O(this,function(t){return[2,this.client.query({query:o.GetCreditBalanceDocument,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.getCreditGrants=function(e){return C(this,void 0,void 0,function(){return O(this,function(t){return[2,this.client.query({query:o.GetCreditGrantsDocument,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.getCreditLedger=function(e){return C(this,void 0,void 0,function(){return O(this,function(t){return[2,this.client.query({query:o.GetCreditLedgerDocument,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.getCreditUsage=function(e){return C(this,void 0,void 0,function(){return O(this,function(t){return[2,this.client.query({query:o.GetCreditUsageDocument,variables:{input:e},fetchPolicy:"no-cache"})]})})},e}(),A=function(){function e(e){this.client=e}return e.prototype.createPaymentSession=function(e){return this.client.mutate({mutation:o.CreatePaymentSessionDocument,variables:{input:e}})},e}();var F=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())})},N=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 R=function(){function e(e){this.client=e}return e.prototype.getConfiguration=function(e){return F(this,void 0,void 0,function(){return N(this,function(t){return[2,this.client.query({query:o.GetAutomaticRechargeConfigurationDocument,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.saveConfiguration=function(e){return F(this,void 0,void 0,function(){return N(this,function(t){return[2,this.client.mutate({mutation:o.SaveAutomaticRechargeConfigurationDocument,variables:{input:e}})]})})},e}(),k=function(e,t){this.sdkConfiguration=new s(e,t),this.paywall=new l(e,t),this.subscriptions=new y(e),this.mockPaywall=new D(e),this.customers=new h(e,t),this.coupons=new m(e),this.subscriptionEstimations=new S(e),this.usageHistoryApi=new w(e),this.credits=new P(e),this.checkout=new A(e),this.automaticRecharge=new R(e)};var x=n(5455),U=n.n(x),M=n(8537),L=n.n(M),j=n(3789),V=o.SourceType.JsClientSdk,B="js-client-sdk",G=["localhost","127.0.0.1","::1"];function $(e){var t=new URL(e);return G.includes(t.hostname)?t.port="3060":t.hostname="edge.".concat(t.hostname),t.toString().slice(0,-1)}function q(e){var t=e.customerId;if(!t||U()(t))throw new Error("You must set customer ID first, use setCustomerId function or pass it via the constructor");return t}var Q=n(2970),H="Invariant Violation",z=Object.setPrototypeOf,Z=void 0===z?function(e,t){return e.__proto__=t,e}:z,W=function(e){function t(n){void 0===n&&(n=H);var r=e.call(this,"number"==typeof n?H+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=H,Z(r,t.prototype),r}return(0,Q.ZT)(t,e),t}(Error);function Y(e,t){if(!e)throw new W(t)}var K=["debug","log","warn","error","silent"],J=K.indexOf("log");function X(e){return function(){if(K.indexOf(e)>=J)return(console[e]||console.log).apply(console,arguments)}}function ee(e){try{return e()}catch(e){}}!function(e){e.debug=X("debug"),e.log=X("log"),e.warn=X("warn"),e.error=X("error")}(Y||(Y={}));const te=ee(function(){return globalThis})||ee(function(){return window})||ee(function(){return self})||ee(function(){return n.g})||ee(function(){return Function("return this")()});var ne="__",re=[ne,ne].join("DEV");const ie=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(te,re,{value:"production"!==ee(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),te[re]}}();function oe(e){try{return e()}catch(e){}}var ae=oe(function(){return globalThis})||oe(function(){return window})||oe(function(){return self})||oe(function(){return n.g})||oe(function(){return oe.constructor("return this")()}),se=!1;function ue(e){return Array.isArray(e)&&e.length>0}!ae||oe(function(){return"production"})||oe(function(){return process})||(Object.defineProperty(ae,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),se=!0),n(4957).H,se&&(delete ae.process,se=!1),__DEV__?Y("boolean"==typeof ie,ie):Y("boolean"==typeof ie,38);var ce=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="",(ue((r=l).graphQLErrors)||ue(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(0,Q.ZT)(t,e),t}(Error),le=(n(3616),n(3591)),pe=fetch,fe=n.n(le)()(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)}}),de=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,a.isString)(t)?n.set("resourceId",t):(0,a.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",V),(n=this.dynamicData.customerToken)&&t.append("X-CUSTOMER-KEY",n),[4,fe("".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(),!U()(o.errors))throw new ce({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 he(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 me(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 ge(e,t,n){return t&&me(e.prototype,t),n&&me(e,n),e}var ve=function(){return"function"==typeof Symbol},ye=function(e){return ve()&&Boolean(Symbol[e])},be=function(e){return ye(e)?Symbol[e]:"@@"+e};ve()&&!ye("observable")&&(Symbol.observable=Symbol("observable"));var Ee=be("iterator"),_e=be("observable"),Se=be("species");function Te(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function Ie(e){var t=e.constructor;return void 0!==t&&null===(t=t[Se])&&(t=void 0),void 0!==t?t:ke}function De(e){return e instanceof ke}function we(e){we.log?we.log(e):setTimeout(function(){throw e})}function Ce(e){Promise.resolve().then(function(){try{e()}catch(e){we(e)}})}function Oe(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=Te(t,"unsubscribe");n&&n.call(t)}}catch(e){we(e)}}function Pe(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function Ae(e,t,n){e._state="running";var r=e._observer;try{var i=Te(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(Pe(e),!i)throw n;i.call(r,n);break;case"complete":Pe(e),i&&i.call(r)}}catch(e){we(e)}"closed"===e._state?Oe(e):"running"===e._state&&(e._state="ready")}function Fe(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 Ce(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(Ae(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)})):void Ae(e,t,n);e._queue.push({type:t,value:n})}}var Ne=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new Re(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&&(Pe(this),Oe(this))},ge(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),Re=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){Fe(this._subscription,"next",e)},t.error=function(e){Fe(this._subscription,"error",e)},t.complete=function(){Fe(this._subscription,"complete")},ge(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),ke=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 Ne(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(Ie(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(Ie(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=Ie(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=Ie(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=Ie(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[_e]=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=Te(t,_e);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return De(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(ye("iterator")&&(r=Te(t,Ee)))return new n(function(e){Ce(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 he(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)?he(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){Ce(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){Ce(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},ge(e,null,[{key:Se,get:function(){return this}}]),e}();function xe(e){return null!==e&&"object"==typeof e}function Ue(e,t){var n=t,r=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new W("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 W(43);"FragmentDefinition"===e.kind&&r.push(e)}),void 0===n&&(__DEV__?Y(1===r.length,"Found "+r.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):Y(1===r.length,44),n=r[0].name.value),(0,Q.pi)((0,Q.pi)({},e),{definitions:(0,Q.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function Me(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function Le(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?Y(n,"No fragment named "+e.name.value+"."):Y(n,45),n;default:return null}}function je(e){return{__ref:String(e)}}function Ve(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function Be(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 Be(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 Be(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 W('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new W(54);e[t.value]=null}}ve()&&Object.defineProperty(ke,Symbol("extensions"),{value:{symbol:_e,hostReportError:we},configurable:!0});var Ge=["connection","include","skip","client","rest","export"],$e=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+"("+qe(i)+")"}return n.connection.key}var o=e;if(t){var a=qe(t);o+="("+a+")"}return n&&Object.keys(n).forEach(function(e){-1===Ge.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@"+e+"("+qe(n[e])+")":o+="@"+e)}),o},{setStringify:function(e){var t=qe;return qe=e,t}}),qe=function(e){return JSON.stringify(e,Qe)};function Qe(e,t){return xe(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{})),t}function He(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){var r=e.name,i=e.value;return Be(n,r,i,t)}),n}return null}function ze(e){return e.alias?e.alias.value:e.name.value}function Ze(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(We(o)){if("__typename"===o.name.value)return e[ze(o)]}else{var a=Ze(e,Le(o,n).selectionSet,n);if("string"==typeof a)return a}}}function We(e){return"Field"===e.kind}function Ye(e){return"InlineFragment"===e.kind}function Ke(e){__DEV__?Y(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'):Y(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 W('Schema type definitions not allowed in queries. Found: "'+e.kind+'"'):new W(47);return e});return __DEV__?Y(t.length<=1,"Ambiguous GraphQL document: contains "+t.length+" operations"):Y(t.length<=1,48),e}function Je(e){return Ke(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function Xe(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function et(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function tt(e){var t=Je(e);return __DEV__?Y(t&&"query"===t.operation,"Must contain a query definition."):Y(t&&"query"===t.operation,49),t}function nt(e){var t;Ke(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 W("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new W(53)}function rt(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(e){e.defaultValue&&Be(t,e.variable.name,e.defaultValue)}),t}function it(e,t){return t?t(e):ke.of()}function ot(e){return"function"==typeof e?new ut(e):e}function at(e){return e.request.length<=1}var st=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return(0,Q.ZT)(t,e),t}(Error),ut=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return ke.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(ot).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i=ot(n),o=ot(r||new e(it));return at(i)&&at(o)?new e(function(e){return t(e)?i.request(e)||ke.of():o.request(e)||ke.of()}):new e(function(e,n){return t(e)?i.request(e,n)||ke.of():o.request(e,n)||ke.of()})},e.execute=function(e,t){return e.request(function(e,t){var n=(0,Q.pi)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?(0,Q.pi)((0,Q.pi)({},n),e(n)):(0,Q.pi)((0,Q.pi)({},n),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,Q.pi)({},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?Xe(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 W("illegal argument: "+i):new W(26)}return e}(t))))||ke.of()},e.concat=function(t,n){var r=ot(t);if(at(r))return __DEV__&&Y.warn(new st("You are calling concat on a terminating link, which will have no effect",r)),r;var i=ot(n);return at(i)?new e(function(e){return r.request(e,function(e){return i.request(e)||ke.of()})||ke.of()}):new e(function(e,t){return r.request(e,function(e){return i.request(e,t)||ke.of()})||ke.of()})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(it)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new W("request is not implemented"):new W(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}(),ct=n(8867),lt=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new W("Network request failed. "+t+" is not serializable: "+e.message):new W(23);throw r.parseError=e,r}return n},pt=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},ft=Object.prototype.hasOwnProperty,dt=n(9054),ht={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}};function mt(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 gt(e){return new ke(function(t){t.error(e)})}var vt=ee(function(){return fetch}),yt=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=(0,Q._T)(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new W("\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 W(22)}(r||vt);var c={http:{includeExtensions:i},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new ut(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 f,d=(0,Q.pi)((0,Q.pi)({},a),i.headers),h={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:d},m=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=(0,Q.pi)((0,Q.pi)({},t.options),{headers:t.headers,credentials:t.credentials}),o=t.http||{};n.forEach(function(e){i=(0,Q.pi)((0,Q.pi)((0,Q.pi)({},i),e.options),{headers:(0,Q.pi)((0,Q.pi)({},i.headers),mt(e.headers))}),e.credentials&&(i.credentials=e.credentials),o=(0,Q.pi)((0,Q.pi)({},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,dt.S)(c)),{options:i,body:l}}(e,ht,c,h),g=m.options,v=m.body;if(v.variables&&!s){var y=new Set(Object.keys(v.variables));(0,ct.Vn)(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&y.delete(e.name.value)}}),y.size&&(v.variables=(0,Q.pi)({},v.variables),y.forEach(function(e){delete v.variables[e]}))}if(!g.signal){var b=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),E=b.controller,_=b.signal;(f=E)&&(g.signal=_)}if(o&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(g.method="GET"),"GET"===g.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=lt(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=lt(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,I=S.parseError;if(I)return gt(I);t=T}else try{g.body=lt(v,"Payload")}catch(I){return gt(I)}return new ke(function(n){var i;return(r||ee(function(){return fetch})||vt)(t,g).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&&pt(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||ft.call(t,"data")||ft.call(t,"errors")||pt(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(){f&&f.abort()}})})}(t).request)||this;return n.options=t,n}return(0,Q.ZT)(t,e),t}(ut),bt=ut.execute;function Et(){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:_t,hasOwnProperty:St}=Object.prototype,Tt=Function.prototype.toString,It=new Map;function Dt(e,t){try{return wt(e,t)}finally{It.clear()}}function wt(e,t){if(e===t)return!0;const n=_t.call(e);if(n!==_t.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(At(e,t))return!0;const n=Ct(e),r=Ct(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;++e)if(!St.call(t,n[e]))return!1;for(let r=0;r<i;++r){const i=n[r];if(!wt(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(At(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&&!wt(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=Tt.call(e);return n===Tt.call(t)&&!function(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(n,Pt)}}return!1}function Ct(e){return Object.keys(e).filter(Ot,e)}function Ot(e){return void 0!==this[e]}const Pt="{ [native code] }";function At(e,t){let n=It.get(e);if(n){if(n.has(t))return!0}else It.set(e,n=new Set);return n.add(t),!1}var Ft,Nt,Rt=function(){return Object.create(null)},kt=Array.prototype,xt=kt.forEach,Ut=kt.slice,Mt=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=Rt),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 xt.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(Ut.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}(),Lt="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),jt="function"==typeof WeakSet,Vt="function"==typeof Symbol&&"function"==typeof Symbol.for,Bt=function(){function e(){this.known=new(jt?WeakSet:Set),this.pool=new Mt(Lt),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return xe(e)&&this.known.has(e)},e.prototype.pass=function(e){if(xe(e)){var t=function(e){return xe(e)?Array.isArray(e)?e.slice(0):(0,Q.pi)({__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(xe(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}(),Gt=Object.assign(function(e){if(xe(e)){void 0===Ft&&$t();var t=Ft.admit(e),n=Nt.get(t);return void 0===n&&Nt.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)},{reset:$t});function $t(){Ft=new Bt,Nt=new(Lt?WeakMap:Map)}function qt(e,t,n){return new ke(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)}},f=e.subscribe(p);return function(){return f.unsubscribe()}})}function Qt(e){return e.errors&&e.errors.length>0||!1}function Ht(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 zt={kind:"Field",name:{kind:"Name",value:"__typename"}};function Zt(e,t){return e.selectionSet.selections.every(function(e){return"FragmentSpread"===e.kind&&Zt(t[e.name.value],t)})}function Wt(e){return Zt(Je(e)||function(e){__DEV__?Y("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'):Y("Document"===e.kind,50),__DEV__?Y(e.definitions.length<=1,"Fragment must have exactly one definition."):Y(e.definitions.length<=1,51);var t=e.definitions[0];return __DEV__?Y("FragmentDefinition"===t.kind,"Must be a fragment definition."):Y("FragmentDefinition"===t.kind,52),t}(e),Me(et(e)))?null:e}function Yt(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function Kt(e,t){var n=Object.create(null),r=[],i=Object.create(null),o=[],a=Wt((0,ct.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(Yt(e)))return t.arguments&&t.arguments.forEach(function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})}),t.selectionSet&&en(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(Yt(e)(t))return null}}}));return a&&Ht(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 Wt((0,ct.Vn)(t,{OperationDefinition:{enter:function(t){return(0,Q.pi)((0,Q.pi)({},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&&Ht(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 Wt((0,ct.Vn)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(o,a)),a}var Jt=Object.assign(function(e){return(0,ct.Vn)(Ke(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some(function(e){return We(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var i=n;if(!(We(i)&&i.directives&&i.directives.some(function(e){return"export"===e.name.value})))return(0,Q.pi)((0,Q.pi)({},e),{selections:(0,Q.ev)((0,Q.ev)([],r,!0),[zt],!1)})}}}}})},{added:function(e){return e===zt}}),Xt={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some(function(e){return"key"===e.name.value})||__DEV__&&Y.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 en(e){var t=[];return e.selections.forEach(function(e){(We(e)||Ye(e))&&e.selectionSet?en(e.selectionSet).forEach(function(e){return t.push(e)}):"FragmentSpread"===e.kind&&t.push(e)}),t}function tn(e){return"query"===nt(e).operation?e:(0,ct.Vn)(e,{OperationDefinition:{enter:function(e){return(0,Q.pi)((0,Q.pi)({},e),{operation:"query"})}}})}function nn(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__?Y(n&&1===n.length,"Incorrect number of arguments for the @"+r+" directive."):Y(n&&1===n.length,40);var i=n[0];__DEV__?Y(i.name&&"if"===i.name.value,"Invalid argument for the @"+r+" directive."):Y(i.name&&"if"===i.name.value,41);var o=i.value;__DEV__?Y(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @"+r+" directive must be a variable or a boolean value."):Y(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__?Y(void 0!==i,"Invalid variable referenced in @"+n.name.value+" directive."):Y(void 0!==i,39)):i=r.value.value,"skip"===n.name.value?!i:i})}function rn(e,t){return function(e){var t=[];return(0,ct.Vn)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some(function(t){return e.indexOf(t)>-1})}function on(e){return e&&rn(["client"],e)&&rn(["export"],e)}var an=new Map;function sn(e){var t=an.get(e)||1;return an.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function un(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function cn(e){function t(t){Object.defineProperty(e,t,{value:ke})}return Vt&&Symbol.species&&t(Symbol.species),t("@@species"),e}function ln(e){return e&&"function"==typeof e.then}var pn,fn=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],un(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),un(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?ln(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(),un(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 ke(t)]),ln(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return(0,Q.ZT)(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}(ke);function dn(e){return!!e&&e<7}cn(fn),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"}(pn||(pn={}));var hn=Object.prototype.toString;function mn(e){return gn(e)}function gn(e,t){switch(hn.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]=gn(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]=gn(e[n],t)}),r;default:return e}}var vn=Object.assign,yn=Object.hasOwnProperty,bn=!1,En=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=_n)}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=Je(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(0,Q.ZT)(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||pn.ready,r=(0,Q.pi)((0,Q.pi)({},t),{loading:dn(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),Dt(r.data,{})&&(r.data=void 0),a.complete?(r.networkStatus!==pn.loading||"cache-first"!==o&&"cache-only"!==o||(r.networkStatus=pn.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||Sn(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!Dt(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||Dt(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&&yn.call(e,"variables")){var i=tt(this.options.query),o=i.variableDefinitions;o&&o.some(function(e){return"variables"===e.variable.name.value})||__DEV__&&Y.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&&!Dt(this.options.variables,e)&&(n.variables=this.options.variables=(0,Q.pi)((0,Q.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,pn.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,Q.pi)((0,Q.pi)({},e.query?e:(0,Q.pi)((0,Q.pi)((0,Q.pi)({},this.options),e),{variables:(0,Q.pi)((0,Q.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=pn.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,pn.fetchMore).then(function(r){var i=r.data,o=e.updateQuery;return o?(__DEV__&&!bn&&(__DEV__&&Y.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."),bn=!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__&&Y.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 Dt(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},pn.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__?Y(n,"Attempted to start a polling query without a polling interval."):Y(n,12),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(dn(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},pn.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=(0,Q.pi)((0,Q.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?e:mn(e),variables:t}),ue(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===pn.refetch||t===pn.fetchMore||t===pn.poll,i=this.options.variables,o=r?Et(this.options,e):vn(this.options,Et(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!Dt(e.variables,i)&&(o.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=pn.setVariables)));var a=o.variables&&(0,Q.pi)({},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),un(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=(0,Q.pi)((0,Q.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:pn.error,loading:!1});this.updateLastResult(n,t),un(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}(ke);function _n(e){__DEV__&&Y.error("Unhandled error",e.message,e.stack)}function Sn(e){__DEV__&&ue(e)&&__DEV__&&Y.debug("Missing cache result fields: "+e.map(function(e){return e.path.join(".")}).join(", "),e)}cn(En);var Tn=Object.prototype.hasOwnProperty;function In(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Dn(e)}function Dn(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new Cn,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var wn=function(e,t,n){return this.merge(e[n],t[n])},Cn=function(){function e(e){void 0===e&&(e=wn),this.reconciler=e,this.isObject=xe,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 xe(t)&&xe(e)?(Object.keys(t).forEach(function(i){if(Tn.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,(0,Q.ev)([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 xe(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,Q.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();let On=null;const Pn={};let An=1;function Fn(e){try{return e()}catch(e){}}const Nn="@wry/context:Slot",Rn=Fn(()=>globalThis)||Fn(()=>global)||Object.create(null),kn=Rn[Nn]||Array[Nn]||function(e){try{Object.defineProperty(Rn,Nn,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",An++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=On;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===Pn)break;return e!==On&&(On.slots[this.id]=t),!0}return On&&(On.slots[this.id]=Pn),!1}getValue(){if(this.hasValue())return On.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=On;On={parent:o,slots:i};try{return t.apply(r,n)}finally{On=o}}static bind(e){const t=On;return function(){const n=On;try{return On=t,e.apply(this,arguments)}finally{On=n}}}static noContext(e,t,n){if(!On)return e.apply(n,t);{const r=On;try{return On=null,e.apply(n,t)}finally{On=r}}}}),{bind:xn,noContext:Un}=kn;function Mn(){}var Ln,jn=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=Mn),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}(),Vn=new kn,Bn=Object.prototype.hasOwnProperty,Gn=void 0===(Ln=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:Ln;function $n(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var qn=[];function Qn(e,t){if(!e)throw new Error(t||"assertion failure")}function Hn(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var zn=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&&!Yn(this))return Zn(this),this.value[0]},e.prototype.recompute=function(e){return Qn(!this.recomputing,"already recomputing"),Zn(this),Yn(this)?function(e,t){return rr(e),Vn.withValue(e,Wn,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{$n(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,Yn(e)||Jn(e)}(e),Hn(e.value)}(this,e):Hn(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Kn(this),$n(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),rr(this),Xn(this,function(t,n){t.setDirty(),ir(t,e)})},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=qn.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(Gn(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),qn.push(this.deps),this.deps=null)},e.count=0,e}();function Zn(e){var t=Vn.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Yn(e)?er(t,e):tr(t,e),t}function Wn(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 Yn(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Kn(e){Xn(e,er)}function Jn(e){Xn(e,tr)}function Xn(e,t){var n=e.parents.size;if(n)for(var r=Gn(e.parents),i=0;i<n;++i)t(r[i],e)}function er(e,t){Qn(e.childValues.has(t)),Qn(Yn(t));var n=!Yn(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=qn.pop()||new Set;e.dirtyChildren.add(t),n&&Kn(e)}function tr(e,t){Qn(e.childValues.has(t)),Qn(!Yn(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()),nr(e,t),Yn(e)||Jn(e)}function nr(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(qn.length<100&&qn.push(n),e.dirtyChildren=null))}function rr(e){e.childValues.size>0&&e.childValues.forEach(function(t,n){ir(e,n)}),e.forgetDeps(),Qn(null===e.dirtyChildren)}function ir(e,t){t.parents.delete(e),e.childValues.delete(t),nr(e,t)}var or={setDirty:!0,dispose:!0,forget:!0};function ar(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=Vn.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&($n(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&Bn.call(or,n)?n:"setDirty";Gn(r).forEach(function(e){return e[i]()}),t.delete(e),$n(r)}},r}function sr(){var e=new Mt("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}sr();var ur=new Set;function cr(e,t){void 0===t&&(t=Object.create(null));var n=new jn(t.max||Math.pow(2,16),function(e){return e.dispose()}),r=t.keyArgs,i=t.makeCacheKey||sr(),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 zn(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),ur.add(n),Vn.hasValue()||(ur.forEach(function(e){return e.clean()}),ur.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 lr=null,pr={},fr=1,dr="@wry/context:Slot",hr=Array,mr=hr[dr]||function(){var e=function(){function e(){this.id=["slot",fr++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=lr;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===pr)break;return e!==lr&&(lr.slots[this.id]=t),!0}return lr&&(lr.slots[this.id]=pr),!1},e.prototype.getValue=function(){if(this.hasValue())return lr.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=lr;lr={parent:a,slots:o};try{return t.apply(r,n)}finally{lr=a}},e.bind=function(e){var t=lr;return function(){var n=lr;try{return lr=t,e.apply(this,arguments)}finally{lr=n}}},e.noContext=function(e,t,n){if(!lr)return e.apply(n,t);var r=lr;try{return lr=null,e.apply(n,t)}finally{lr=r}},e}();try{Object.defineProperty(hr,dr,{value:hr[dr]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();mr.bind,mr.noContext;var gr=new mr,vr=new WeakMap;function yr(e){var t=vr.get(e);return t||vr.set(e,t={vars:new Set,dep:ar()}),t}function br(e){yr(e).vars.forEach(function(t){return t.forgetCache(e)})}function Er(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){yr(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=gr.getValue();s&&(i(s),yr(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),yr(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var _r=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=In(t.resolvers,e)}):this.resolvers=In(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(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then(function(e){return(0,Q.pi)((0,Q.pi)({},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 rn(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){Ke(e);var t=Kt([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,ct.Vn)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return We(e)&&"__typename"===e.name.value}))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,Q.pi)((0,Q.pi)({},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={}),(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return(0,Q.pi)((0,Q.pi)({},t),e.exportedVariables)})]:[2,(0,Q.pi)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,ct.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 ct.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:tn(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),(0,Q.mG)(this,void 0,void 0,function(){var a,s,u,c,l,p,f,d,h;return(0,Q.Jh)(this,function(m){return a=nt(e),s=et(e),u=Me(s),c=a.operation,l=c?c.charAt(0).toUpperCase()+c.slice(1):"Query",f=(p=this).cache,d=p.client,h={fragmentMap:u,context:(0,Q.pi)((0,Q.pi)({},n),{cache:f,client:d}),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(0,Q.mG)(this,void 0,void 0,function(){var r,i,o,a,s,u=this;return(0,Q.Jh)(this,function(c){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function(e){return(0,Q.mG)(u,void 0,void 0,function(){var s,u;return(0,Q.Jh)(this,function(c){return nn(e,o)?We(e)?[2,this.resolveField(e,t,n).then(function(t){var n;void 0!==t&&a.push(((n={})[ze(e)]=t,n))})]:(Ye(e)?s=e:(s=r[e.name.value],__DEV__?Y(s,"No fragment named "+e.name.value):Y(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 Dn(a)})]})})},e.prototype.resolveField=function(e,t,n){return(0,Q.mG)(this,void 0,void 0,function(){var r,i,o,a,s,u,c,l,p,f=this;return(0,Q.Jh)(this,function(d){return r=n.variables,i=e.name.value,o=ze(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(gr.withValue(this.cache,p,[t,He(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,u.then(function(t){return void 0===t&&(t=s),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)})}),e.selectionSet?null==t?t:Array.isArray(t)?f.resolveSubSelectedArray(e,t,n):e.selectionSet?f.resolveSelectionSet(e.selectionSet,t,n):void 0:t})]})})},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map(function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0}))},e}(),Sr=new(Lt?WeakMap:Map);function Tr(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return Sr.set(e,(Sr.get(e)+1)%1e15),n.apply(this,arguments)})}function Ir(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Dr=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;Sr.has(n)||(Sr.set(n,0),Tr(n,"evict"),Tr(n,"modify"),Tr(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||pn.loading;return this.variables&&this.networkStatus!==pn.loading&&!Dt(this.variables,e.variables)&&(t=pn.setVariables),Dt(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(){Ir(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&&Dt(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||Dt(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;Ir(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(dn(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=(0,Q.pi)((0,Q.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Dt(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===Sr.get(this.cache)&&Dt(t,n.variables)&&Dt(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=ue(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(wr(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:Sr.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=pn.ready},e.prototype.markError=function(e){return this.networkStatus=pn.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function wr(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!Qt(e);return!r&&n&&e.data&&(r=!0),r}var Cr=Object.prototype.hasOwnProperty,Or=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(Lt?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 _r({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 W("QueryManager stopped while query was in flight"):new W(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,f=void 0===p?"none":p,d=e.fetchPolicy,h=void 0===d?"network-only":d,m=e.keepRootFields,g=e.context;return(0,Q.mG)(this,void 0,void 0,function(){var e,o,s;return(0,Q.Jh)(this,function(p){switch(p.label){case 0:return __DEV__?Y(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):Y(t,14),__DEV__?Y("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."):Y("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,g)]:[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:f,context:g,updateQueries:i,update:c,keepRootFields:m}),this.broadcastQueries(),s=this,[2,new Promise(function(p,d){return qt(s.getObservableFromLink(t,(0,Q.pi)((0,Q.pi)({},g),{optimisticResponse:r}),n,!1),function(p){if(Qt(p)&&"none"===f)throw new ce({graphQLErrors:p.errors});o&&(o.loading=!1,o.error=null);var d=(0,Q.pi)({},p);return"function"==typeof a&&(a=a(d)),"ignore"===f&&Qt(d)&&delete d.errors,s.markMutationResult({mutationId:e,result:d,document:t,variables:n,fetchPolicy:h,errorPolicy:f,context:g,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(),d(t instanceof ce?t:new ce({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&&wr(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&&Cr.call(a,u)){var c=a[u],l=n.queries.get(o),p=l.document,f=l.variables,d=t.diff({query:p,variables:f,returnPartialData:!0,optimistic:!1}),h=d.result;if(d.complete&&h){var m=c(h,{mutationResult:r,queryName:p&&Xe(p)||void 0,queryVariables:f});m&&i.push({result:m,dataId:"ROOT_QUERY",query:p,variables:f})}}})}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=(0,Q.pi)((0,Q.pi)({},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((0,Q.pi)((0,Q.pi)({},t),{result:{data:r}}),e)}catch(e){__DEV__&&Y.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),Kt([Xt],Ke(t))),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:on(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:rt(Je(r)),asQuery:(0,Q.pi)((0,Q.pi)({},r),{definitions:r.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,Q.pi)((0,Q.pi)({},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(0,Q.pi)((0,Q.pi)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=(0,Q.pi)((0,Q.pi)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new Dr(this),n=new En({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__?Y(e.query,"query option is required. You must specify your GraphQL document in the query option."):Y(e.query,16),__DEV__?Y("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):Y("Document"===e.query.kind,17),__DEV__?Y(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):Y(!e.returnPartialData,18),__DEV__?Y(!e.pollInterval,"pollInterval option only supported on watchQuery."):Y(!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 W("Store reset while query was in flight (not completed in link chain)"):new W(20)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=pn.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):xe(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):xe(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=sn("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new En({queryManager:t,queryInfo:i,options:(0,Q.pi)((0,Q.pi)({},e),{fetchPolicy:"network-only"})});Y(o.queryId===r),i.setObservableQuery(o),n.set(r,o)}),__DEV__&&r.size&&r.forEach(function(e,t){e||__DEV__&&Y.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&&(wr(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),Qt(o))throw new ce({graphQLErrors:o.errors});return o})};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,s).then(u);return new ke(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:Xe(s)||void 0,context:this.prepareContext((0,Q.pi)((0,Q.pi)({},t),{forceFetch:!r}))};if(t=l.context,r){var p=u.get(s)||new Map;u.set(s,p);var f=Gt(n);if(!(o=p.get(f))){var d=new fn([bt(c,l)]);p.set(f,o=d),d.cleanup(function(){p.delete(f)&&p.size<1&&u.delete(s)})}}else o=new fn([bt(c,l)])}else o=new fn([ke.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=qt(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 qt(this.getObservableFromLink(e.document,n.context,n.variables),function(i){var o=ue(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new ce({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||pn.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors),a},function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new ce({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=pn.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,f=void 0!==p&&p,d=t.notifyOnNetworkStatusChange,h=void 0!==d&&d,m=t.context,g=void 0===m?{}:m,v=Object.assign({},t,{query:i,variables:o,fetchPolicy:u,errorPolicy:l,returnPartialData:f,notifyOnNetworkStatusChange:h,context:g}),y=function(e){return v.variables=e,r.fetchQueryByPolicy(a,v,n)};this.fetchCancelFns.set(e,function(e){setTimeout(function(){return b.cancel(e)})});var b=new fn(this.transform(v.query).hasClientExports?this.localState.addExportedVariables(v.query,v.variables,v.context).then(y):y(v.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?sn("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 Dr&&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,f=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var d=function(){return e.getDiff(o)},h=function(t,n){void 0===n&&(n=e.networkStatus||pn.loading);var a=t.result;!__DEV__||c||Dt(a,{})||Sn(t.missing);var s=function(e){return ke.of((0,Q.pi)({data:e,loading:dn(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===pn.refetch&&"merge"!==s?1:2,g=function(){return r.getResultsFromLink(e,m,{variables:o,context:l,fetchPolicy:a,errorPolicy:u})},v=p&&"number"==typeof f&&f!==n&&dn(n);switch(a){default:case"cache-first":return(y=d()).complete?[h(y,e.markReady())]:c||v?[h(y),g()]:[g()];case"cache-and-network":var y;return(y=d()).complete||c||v?[h(y),g()]:[g()];case"cache-only":return[h(d(),e.markReady())];case"network-only":return v?[h(d()),g()]:[g()];case"no-cache":return v?[h(e.getDiff()),g()]:[g()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Dr(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,Q.pi)((0,Q.pi)({},t),{clientAwareness:this.clientAwareness})},e}(),Pr=!1;function Ar(e,t){return Et(e,t,t.variables&&{variables:(0,Q.pi)((0,Q.pi)({},e.variables),t.variables)})}var Fr=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,f=e.queryDeduplication,d=void 0===f||f,h=e.defaultOptions,m=e.assumeImmutableResults,g=void 0!==m&&m,v=e.resolvers,y=e.typeDefs,b=e.fragmentMatcher,E=e.name,_=e.version,S=e.link;if(S||(S=n?new yt({uri:n,credentials:r,headers:i}):ut.empty()),!o)throw __DEV__?new W("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 W(9);if(this.link=S,this.cache=o,this.disableNetworkFetches=s||c>0,this.queryDeduplication=d,this.defaultOptions=h||{},this.typeDefs=y,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),!Pr&&__DEV__&&(Pr=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var T=window.navigator,I=T&&T.userAgent,D=void 0;"string"==typeof I&&(I.indexOf("Chrome/")>-1?D="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":I.indexOf("Firefox/")>-1&&(D="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),D&&__DEV__&&Y.log("Download the Apollo DevTools for a better development experience: "+D)}this.version="3.4.17",this.localState=new _r({cache:o,client:this,resolvers:v,fragmentMatcher:b}),this.queryManager=new Or({cache:this.cache,link:this.link,queryDeduplication:d,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=Ar(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,Q.pi)((0,Q.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Ar(this.defaultOptions.query,e)),__DEV__?Y("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."):Y("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,Q.pi)((0,Q.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Ar(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 bt(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__&&Y.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}(),Nr=function(){function e(){this.getFragmentDoc=cr(Ue)}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((0,Q.pi)((0,Q.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,Q.pi)((0,Q.pi)({},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=(0,Q._T)(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=(0,Q._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e}(),Rr=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(0,Q.ZT)(t,e),t}(Error);function kr(e){return __DEV__&&(t=e,(n=new Set([t])).forEach(function(e){xe(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){xe(e[t])&&n.add(e[t])})})),e;var t,n}var xr=Object.prototype.hasOwnProperty;function Ur(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 Mr={dataIdFromObject:Ur,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Lr(e){var t=e.canonizeResults;return void 0===t?Mr.canonizeResults:t}var jr=/^[_a-z][_0-9a-z]*/i;function Vr(e){var t=e.match(jr);return t?t[0]:e}function Br(e,t,n){return!!xe(t)&&(Array.isArray(t)?t.every(function(t){return Br(e,t,n)}):e.selections.every(function(e){if(We(e)&&nn(e,n)){var r=ze(e);return xr.call(t,r)&&(!e.selectionSet||Br(e.selectionSet,t[r],n))}return!0}))}function Gr(e){return xe(e)&&!Ve(e)&&!Array.isArray(e)}var $r=Object.create(null),qr=function(){return $r},Qr=Object.create(null),Hr=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 kr(Ve(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return Ve(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return je(e);if(Ve(e))return e;var r=n.policies.identify(e)[0];if(r){var i=je(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return(0,Q.pi)({},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),xr.call(this.data,e)){var n=this.data[e];if(n&&xr.call(n,t))return n[t]}return"__typename"===t&&xr.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Yr?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),xr.call(this.data,e)?this.data[e]:this instanceof Yr?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;Ve(e)&&(e=e.__ref),Ve(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__?Y("string"==typeof n,"store.merge expects a string ID"):Y("string"==typeof n,1);var a=new Cn(Jr).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=Vr(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof Yr||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:$r,INVALIDATE:Qr,isReference:Ve,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||je(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(u){var c=Vr(u),l=r[u];if(void 0!==l){var p="function"==typeof t?t:t[u]||t[c];if(p){var f=p===qr?$r:p(kr(l),(0,Q.pi)((0,Q.pi)({},s),{fieldName:c,storeFieldName:u,storage:n.getStorage(e,u)}));f===Qr?n.group.dirty(e,u):(f===$r&&(f=void 0),f!==l&&(i[u]=f,o=!0,l=f))}void 0!==l&&(a=!1)}}),o)return this.merge(e,i),a&&(this instanceof Yr?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]=qr,r):qr)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(xr.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof Yr&&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){xr.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&&xr.call(e,n)||t.delete(n)}),e){var n=e.__META,r=(0,Q._T)(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 Yr?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){xr.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 Yr;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!xr.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){Ve(e)&&(t[e.__ref]=!0),xe(e)&&Object.keys(e).forEach(function(t){var n=e[t];xe(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),zr=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?ar():null,this.keyMaker=new Mt(Lt)},e.prototype.depend=function(e,t){if(this.d){this.d(Zr(e,t));var n=Vr(t);n!==t&&this.d(Zr(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(Zr(e,t),"__exists"===t?"forget":"setDirty")},e}();function Zr(e,t){return t+"#"+e}function Wr(e,t){Xr(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 zr(i))||this;return a.stump=new Kr(a),a.storageTrie=new Mt(Lt),o&&a.replace(o),a}return(0,Q.ZT)(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}(Hr||(Hr={}));var Yr=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(0,Q.ZT)(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){Dt(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(0,Q.pi)((0,Q.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return xr.call(this.data,t)?(0,Q.pi)((0,Q.pi)({},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}(Hr),Kr=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new zr(t.group.caching,t.group))||this}return(0,Q.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(Yr);function Jr(e,t,n){var r=e[n],i=t[n];return Dt(r,i)?r:i}function Xr(e){return!!(e instanceof Hr&&e.group.caching)}function ei(e,t){return new Rr(e.message,t.path.slice(),t.query,t.variables)}function ti(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var ni=function(){function e(e){var t=this;this.knownResults=new(Lt?WeakMap:Map),this.config=Et(e,{addTypename:!1!==e.addTypename,canonizeResults:Lr(e)}),this.canon=e.canon||new Bt,this.executeSelectionSet=cr(function(e){var n,r=e.context.canonizeResults,i=ti(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?(0,Q.pi)((0,Q.pi)({},o),{result:t.canon.admit(o.result)}):o:(Wr(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:ti,makeCacheKey:function(e,t,n,r){if(Xr(n.store))return n.store.makeCacheKey(e,Ve(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=cr(function(e){return Wr(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(Xr(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Bt},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=(0,Q.pi)((0,Q.pi)({},rt(tt(n))),o);var p=je(i),f=this.executeSelectionSet({selectionSet:nt(n).selectionSet,objectOrReference:p,enclosingRef:p,context:{store:t,query:n,policies:l,variables:o,varString:Gt(o),canonizeResults:c,fragmentMap:Me(et(n)),path:[]}}),d=f.missing&&f.missing.length>0;if(d&&!s)throw f.missing[0];return{result:f.result,missing:f.missing,complete:!d}},e.prototype.isFresh=function(e,t,n,r){if(Xr(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(Ve(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:[ei(__DEV__?new W("Dangling reference to missing "+r.__ref+" object"):new W(5),o)]};var a=o.variables,s=o.policies,u=o.store,c=[],l={result:null},p=u.getFieldValue(r,"__typename");function f(){return l.missing||(l.missing=[])}function d(e){var t;return e.missing&&(t=f()).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(nn(e,a))if(We(e)){var u=s.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),l=ze(e);o.path.push(l),void 0===u?Jt.added(e)||f().push(ei(__DEV__?new W("Can't find field '"+e.name.value+"' on "+(Ve(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2))):new W(6),o)):Array.isArray(u)?u=d(t.executeSubSelectedArray({field:e,array:u,enclosingRef:i,context:o})):e.selectionSet?null!=u&&(u=d(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:u,enclosingRef:Ve(u)?u:i,context:o}))):o.canonizeResults&&(u=t.canon.pass(u)),void 0!==u&&c.push(((n={})[l]=u,n)),Y(o.path.pop()===l)}else{var m=Le(e,o.fragmentMap);m&&s.fragmentMatches(m,p)&&m.selectionSet.selections.forEach(h.add,h)}});var m=Dn(c);return l.result=o.canonizeResults?this.canon.admit(m):kr(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),Y(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:Ve(e)?e:o,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){xe(n)&&(__DEV__?Y(!Ve(n),"Missing selection set for object of type "+function(e,t){return Ve(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)+" returned for query field "+t.name.value):Y(!Ve(n),7),Object.values(n).forEach(r.add,r))})}}(a.store,r,e),Y(a.path.pop()===t),e))}),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),ri=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=Je(r),c=new Cn;a=(0,Q.pi)((0,Q.pi)({},rt(u)),a);var l={store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:Gt(a),fragmentMap:Me(et(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(!Ve(p))throw __DEV__?new W("Could not identify object "+JSON.stringify(i)):new W(8);return l.incomingById.forEach(function(t,r){var i=t.fields,o=t.mergeTree,a=t.selections,s=je(r);if(o&&o.map.size){var u=n.applyMerges(o,s,i,l);if(Ve(u))return;i=u}if(__DEV__&&!l.overwrite){var c=new Set;a.forEach(function(e){We(e)&&e.selectionSet&&c.add(e.name.value)}),Object.keys(i).forEach(function(e){(function(e){return c.has(Vr(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&&!Ve(o)&&!Dt(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=Vr(n),c=s+"."+u;if(!ci.has(c)){ci.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__&&Y.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]=[]),f=je(n);if(p.indexOf(i)>=0)return f;if(p.push(i),this.reader&&this.reader.isFresh(r,f,i,o))return f}var d=Object.create(null);l&&(d=o.merge(d,l));var h=n&&s.rootTypenamesById[n]||Ze(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof h&&(d.__typename=h);var m=new Set(i.selections);if(m.forEach(function(e){var n;if(nn(e,o.variables))if(We(e)){var i=ze(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=oi(a,l),f=t.processFieldValue(u,e,o,p),g=void 0;if(e.selectionSet&&!(g=o.store.getFieldValue(f,"__typename"))&&Ve(f)){var v=o.incomingById.get(f.__ref);g=v&&v.fields.__typename}var y=s.getMergeFunction(h,e.name.value,g);y?p.info={field:e,typename:h,merge:y}:ui(a,l),d=o.merge(d,((n={})[l]=f,n))}else o.clientOnly||Jt.added(e)||__DEV__&&Y.error(("Missing field '"+ze(e)+"' while writing result "+JSON.stringify(r,null,2)).substring(0,1e3));o.clientOnly=c}else{var b=Le(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,d),g.mergeTree=ai(g.mergeTree,a),g.selections.forEach(m.add,m),g.selections=m):o.incomingById.set(n,{fields:d,mergeTree:si(a)?void 0:a,selections:m}),je(n)}return d},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,oi(r,o));return ui(r,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?mn(e):e},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!Ve(n)){var s,u=Array.isArray(n)||!Ve(t)&&!Gr(t)?void 0:t,c=n;u&&!i&&(i=[Ve(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&&Y(i.pop()===t)}}),s&&(n=Array.isArray(c)?c.slice(0):(0,Q.pi)({},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}(),ii=[];function oi(e,t){var n=e.map;return n.has(t)||n.set(t,ii.pop()||{map:new Map}),n.get(t)}function ai(e,t){if(e===t||!t||si(t))return e;if(!e||si(e))return t;var n=e.info&&t.info?(0,Q.pi)((0,Q.pi)({},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,ai(e,t.map.get(n))),o.delete(n)}),o.forEach(function(n){i.map.set(n,ai(t.map.get(n),e.map.get(n)))})}return i}function si(e){return!e||!(e.info||e.map.size)}function ui(e,t){var n=e.map,r=n.get(t);r&&si(r)&&(ii.push(r),n.delete(t))}var ci=new Set;function li(e){var t=sn("stringifyForDisplay");return JSON.stringify(e,function(e,n){return void 0===n?t:n}).split(JSON.stringify(t)).join("<undefined>")}function pi(e){return void 0!==e.args?e.args:e.field?He(e.field,e.variables):null}$e.setStringify(Gt);var fi=function(){},di=function(e,t){return t.fieldName},hi=function(e,t,n){return(0,n.mergeObjects)(e,t)},mi=function(e,t){return t},gi=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=(0,Q.pi)({dataIdFromObject:Ur},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?Ze(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=Ei(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=(0,Q._T)(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),xr.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?hi:!1===t?mi:e.merge}a(r,t.merge),r.keyFn=!1===i?fi:Array.isArray(i)?Ei(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?di:Array.isArray(s)?bi(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||di)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?Y(!r||r===e,"Cannot change root "+e+" __typename more than once"):Y(!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(jr);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!xr.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=(0,Q._T)(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 f=s[p];if(f.has(o))return a.has(o)||(l&&__DEV__&&Y.warn("Inferring subtype "+t+" of supertype "+o),a.add(o)),!0;f.forEach(u),c&&p===s.length-1&&Br(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=pi(e);o;){var u=o(s,a);if(!Array.isArray(u)){t=u||r;break}o=bi(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 Be(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 Be(r,n,i,t)})),$e(e.name.value,r,n)}(e.field,e.variables):$e(r,pi(e))),!1===t?r:r===Vr(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=Vr(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=vi(this,n,e,t,t.store.getStorage(Ve(n)?n.__ref:n,i));return gr.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===hi?yi(r.store)(e,t):s===mi?t:(r.overwrite&&(e=void 0),s(e,t,vi(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function vi(e,t,n,r,i){var o=e.getStoreFieldName(n),a=Vr(o),s=n.variables||r.variables,u=r.store,c=u.toReference,l=u.canRead;return{args:pi(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:Ve,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(!xe(n))return void(__DEV__&&Y.warn("Unexpected readField arguments: "+li(Array.from(arguments))));o=(0,Q.pi)({},n),xr.call(n,"from")||(o.from=t)}return __DEV__&&void 0===o.from&&__DEV__&&Y.warn("Undefined 'from' passed to readField with arguments "+li(Array.from(arguments))),void 0===o.variables&&(o.variables=s),e.readField(o,r)},mergeObjects:yi(r.store)}}function yi(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new W("Cannot automatically merge arrays"):new W(3);if(xe(t)&&xe(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(Ve(t)&&Gr(n))return e.merge(t.__ref,n),t;if(Gr(t)&&Ve(n))return e.merge(t,n.__ref),n;if(Gr(t)&&Gr(n))return(0,Q.pi)((0,Q.pi)({},t),n)}return n}}function bi(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify(Si(t,e,!1)):n.fieldName}}function Ei(e){var t=new Mt(Lt);return function(n,r){var i;if(r.selectionSet&&r.fragmentMap){var o=t.lookupArray([r.selectionSet,r.fragmentMap]);i=o.aliasMap||(o.aliasMap=_i(r.selectionSet,r.fragmentMap))}var a=r.keyObject=Si(n,e,!0,i);return r.typename+":"+JSON.stringify(a)}}function _i(e,t){var n=Object.create(null),r=new Set([e]);return r.forEach(function(e){e.selections.forEach(function(e){if(We(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]=_i(e.selectionSet,t))}else{var a=Le(e,t);a&&r.add(a.selectionSet)}})}),n}function Si(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]=Si(e[i],t,n,u)}}else{var c=r&&r.aliases,l=c&&c[t]||t;xr.call(e,l)?a[o=t]=e[i=l]:(__DEV__?Y(!n,"Missing field '"+l+"' while computing key fields"):Y(!n,4),i=o=void 0)}}),a}var Ti=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=Er,n.txCount=0,n.config=function(e){return Et(Mr,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new gi({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,Q.ZT)(t,e),t.prototype.init=function(){var e=this.data=new Hr.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 ri(this,this.storeReader=new ni({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Lr(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=cr(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(Xr(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,Gt({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((0,Q.pi)((0,Q.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof Rr)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(xr.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((0,Q.pi)((0,Q.pi)({},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||yr(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&&br(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){Gt.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 Ve(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(xr.call(e,"id"))return!1;e=(0,Q.pi)((0,Q.pi)({},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(),Gt.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),br(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((0,Q.pi)((0,Q.pi)({},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((0,Q.pi)((0,Q.pi)({},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=Jt(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&&Dt(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(Nr);const Ii=JSON.parse('{"g":{"BillingCredentials":["StripeCheckoutCredentials","ZuoraCheckoutCredentials"],"Credentials":["AppStoreCredentials","Auth0Credentials","AwsMarketplaceCredentials","BigQueryCredentials","HubspotCredentials","OpenFGACredentials","SalesforceCredentials","SnowflakeCredentials","StripeCredentials","ZuoraCredentials"],"EntitlementUnion":["CreditEntitlement","FeatureEntitlement"],"EntitlementWithSummaryUnion":["CreditEntitlementWithSummary","FeatureEntitlementWithSummary"],"PackageEntitlementChangeUnion":["PackageCreditEntitlementChange","PackageFeatureEntitlementChange"],"PackageEntitlementUnion":["PackageCreditEntitlement","PackageFeatureEntitlement"],"PaymentMethodForm":["StripePaymentMethodForm","ZuoraPaymentMethodForm"],"ResetPeriodConfiguration":["MonthlyResetPeriodConfig","WeeklyResetPeriodConfig","YearlyResetPeriodConfig"],"ScheduleVariables":["AddonChangeVariables","AddonPriceOverrideChangeVariables","BillingPeriodChangeVariables","CouponChangeVariables","DowngradeChangeVariables","PlanChangeVariables","PlanPriceOverrideChangeVariables","RecurringCreditsChangeVariables","UnitAmountChangeVariables"],"SubscriptionEntitlementUnion":["SubscriptionCreditEntitlement","SubscriptionFeatureEntitlement"],"SyncRevisionData":["SyncRevisionBillingData","SyncRevisionMarketplaceData","SyncRevisionPriceBillingData"]}}');var Di=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(0,Q.mG)(i,void 0,void 0,function(){var t,n,r;return(0,Q.Jh)(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}(),wi=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(0,Q.ZT)(t,e),t.prototype.request=function(e,t){var n=new Di(e,t,this.delayFor,this.retryIf);return n.start(),new ke(function(e){return n.subscribe(e),function(){n.unsubscribe(e)}})},t}(ut);const Ci="3.98.2";var Oi=function(e){return!!e&&![500,400].includes(e.statusCode)};var Pi=n(660),Ai=n(8553),Fi=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:o.GetEntitlementsStateDocument,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 Ni=Fi;var Ri=n(6760),ki=n.n(Ri),xi=n(7620),Ui=n.n(xi),Mi=n(1525),Li=n.n(Mi);const ji=function(e,t){this.calculatedEntitlement=e,this.featureUsage=t};var Vi=function(e){this.currency=e.currency,this.isGranted=e.isGranted,this.accessDeniedReason=e.accessDeniedReason,this.usageLimit=e.usageLimit,this.currentUsage=e.currentUsage,this.usagePeriodEnd=e.usagePeriodEnd},Bi=function(e){return e?new Date(e):void 0},Gi=function(){return Gi=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},Gi.apply(this,arguments)},$i=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.mapBooleanEntitlement=function(e,t){return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,feature:e.calculatedEntitlement.feature?Gi(Gi({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapNumericEntitlement=function(e,t){var n=e.calculatedEntitlement,r=n.hasUnlimitedUsage,i=n.usageLimit;return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:r,value:null!=i?i:void 0,feature:e.calculatedEntitlement.feature?Gi(Gi({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapMeteredEntitlement=function(e,t,n){var r=e.calculatedEntitlement,i=r.hasUnlimitedUsage,a=r.usageLimit,s=r.feature,u=e.featureUsage,c=u.currentUsage,l=u.resetPeriod,p=u.usagePeriodAnchor,f=u.usagePeriodStart,d=u.usagePeriodEnd,h=null;return s&&s.featureType===o.FeatureType.Number&&s.meterType===o.MeterType.Incremental&&l&&d&&(h={nextResetDate:d,resetPeriod:l}),{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:i,usageLimit:null!=a?a:void 0,currentUsage:c,requestedUsage:n||0,resetPeriod:null!=l?l:void 0,usagePeriodAnchor:p,usagePeriodStart:f,usagePeriodEnd:d,resetSettings:h||void 0,feature:e.calculatedEntitlement.feature?Gi(Gi({},e.calculatedEntitlement.feature),{meterType:e.calculatedEntitlement.feature.meterType||void 0,isMetered:!0}):void 0}},e.prototype.mapEnumEntitlement=function(e,t,n){return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,feature:e.calculatedEntitlement.feature?Gi(Gi({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0,enumValues:e.calculatedEntitlement.enumValues||[],requestedValues:n}},e.prototype.mapEntitlement=function(e,t,n){var r=e.calculatedEntitlement;if(!r.feature)return this.mapBooleanEntitlement(e,t);var i=r.feature,a=i.featureType,s=i.meterType,u=a===o.FeatureType.Number&&(s===o.MeterType.Incremental||s===o.MeterType.Fluctuating);switch(a){case o.FeatureType.Boolean:return this.mapBooleanEntitlement(e,t);case o.FeatureType.Enum:return this.mapEnumEntitlement(e,t);case o.FeatureType.Number:return u?this.mapMeteredEntitlement(e,t,n):this.mapNumericEntitlement(e,t)}},e.prototype.mapCachedEntitlement=function(e){var t;return e.feature&&(t={id:e.feature.refId,featureType:e.feature.featureType,meterType:e.feature.meterType||void 0,units:e.feature.featureUnits||void 0,unitsPlural:e.feature.featureUnitsPlural||void 0,displayName:e.feature.displayName,description:e.feature.description||""}),{calculatedEntitlement:{usageLimit:e.usageLimit,hasUnlimitedUsage:e.hasUnlimitedUsage,hasSoftLimit:!!e.hasSoftLimit,accessDeniedReason:e.accessDeniedReason||void 0,feature:t,enumValues:e.enumValues||[]},featureUsage:{resetPeriod:e.resetPeriod,resetPeriodConfiguration:e.resetPeriodConfiguration,currentUsage:e.currentUsage||0,usagePeriodAnchor:Bi(e.usagePeriodAnchor),usagePeriodStart:Bi(e.usagePeriodStart),usagePeriodEnd:Bi(e.usagePeriodEnd)}}},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:Ai.Currency.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 Gi(Gi({},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 Ai.CustomerModel({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:ki()(t,function(e){return i.mapSubscription(e)}),promotionalEntitlements:ki()(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:Ui()(e.experimentInfo,"__typename")})},e.prototype.mapPaymentDetails=function(e){var t=e.defaultPaymentExpirationYear,n=e.defaultPaymentExpirationMonth,r=e.defaultPaymentMethodLast4Digits;if(Li()([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,f=e.blockSize,d={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:f,creditRate:e.creditRate?{amount:e.creditRate.amount}:null};return n&&(d.feature={featureId:n.refId,displayName:n.displayName,units:n.featureUnits,unitsPlural:n.featureUnitsPlural,unitQuantity:t}),d},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:ki()(e.entitlements,function(e){return i.mapPackageEntitlement(e)}),inheritedEntitlements:ki()(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:ki()(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===o.PricingType.Free||!e.compatibleAddons)return[];var n=e.compatibleAddons;return(e.pricingType===o.PricingType.Paid?n.filter(function(e){return e.pricingType===o.PricingType.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===o.MeterType.Fluctuating||t.meterType===o.MeterType.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===o.MeterType.Fluctuating||t.meterType===o.MeterType.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:Ui()(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?Gi(Gi({},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:ki()(e.entitlements,function(e){return i.mapPackageEntitlement(e)}),packageEntitlements:null!==(t=e.packageEntitlements)&&void 0!==t?t:void 0,pricePoints:ki()(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 Gi(Gi(Gi({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?Gi(Gi({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:Gi(Gi({},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?Gi({},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 Gi(Gi({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 Gi({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)||Ai.Currency.Usd},e.prototype.mapCompatiblePackageGroups=function(e){var t=this;return e.pricingType!==o.PricingType.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.prototype.mapCachedCreditEntitlement=function(e){var t,n,r,i,o,a,s;return new Vi({currency:{currencyId:e.currency.currencyId,displayName:null!==(t=e.currency.displayName)&&void 0!==t?t:void 0,description:null!==(n=e.currency.description)&&void 0!==n?n:void 0,unitSingular:null!==(r=e.currency.unitSingular)&&void 0!==r?r:void 0,unitPlural:null!==(i=e.currency.unitPlural)&&void 0!==i?i:void 0,additionalMetaData:null!==(o=e.currency.additionalMetaData)&&void 0!==o?o:void 0},isGranted:e.isGranted,accessDeniedReason:e.accessDeniedReason||void 0,usageLimit:null!==(a=e.usageLimit)&&void 0!==a?a:0,currentUsage:null!==(s=e.currentUsage)&&void 0!==s?s:0,usagePeriodEnd:Bi(e.usagePeriodEnd)})},e.prototype.mapCachedEntitlements=function(e){for(var t,n=new Map,r=new Map,i=0,o=e;i<o.length;i++){var a=o[i];if("CreditEntitlement"===a.__typename){var s=a;r.set(s.currency.currencyId,this.mapCachedCreditEntitlement(s))}else if("FeatureEntitlement"===a.__typename){var u=a;(null===(t=u.feature)||void 0===t?void 0:t.refId)&&n.set(u.feature.refId,this.mapCachedEntitlement(u))}}return{featureEntitlements:n,creditEntitlements:r}},e.prototype.mapCreditEntitlement=function(e,t){var n=Math.max(e.usageLimit-e.currentUsage,0);return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,currency:e.currency,usageLimit:e.usageLimit,currentUsage:e.currentUsage,remaining:n,usagePeriodEnd:e.usagePeriodEnd}},e}(),qi=function(){function e(){}return e.decideCreditEntitlementPolicy=function(e){if(!e)return{hasAccess:!1,accessDeniedReason:Ai.AccessDeniedReason.EntitlementNotFound};if(e.accessDeniedReason)return{hasAccess:!1,accessDeniedReason:e.accessDeniedReason};if(!e.isGranted)return{hasAccess:!1,accessDeniedReason:Ai.AccessDeniedReason.Revoked};var t=e.usageLimit;return e.currentUsage+1>t?{hasAccess:!1,accessDeniedReason:Ai.AccessDeniedReason.RequestedUsageExceedingLimit}:{hasAccess:!0}},e.decideEntitlementPolicy=function(e,t,n){var r,i;if(void 0===t&&(t=0),void 0===n&&(n=[]),!e||!e.calculatedEntitlement.feature)return{hasAccess:!1,accessDeniedReason:Ai.AccessDeniedReason.NoFeatureEntitlementInSubscription};if(e.calculatedEntitlement.accessDeniedReason)return{hasAccess:!1,accessDeniedReason:e.calculatedEntitlement.accessDeniedReason};switch(e.calculatedEntitlement.feature.featureType){case Ai.FeatureType.Boolean:return{hasAccess:!0};case Ai.FeatureType.Enum:var o=(0,a.difference)(n,e.calculatedEntitlement.enumValues||[]);return(0,a.isEmpty)(o)?{hasAccess:!0}:{hasAccess:!1,accessDeniedReason:Ai.AccessDeniedReason.RequestedValuesMismatch};case Ai.FeatureType.Number:if((null===(r=e.calculatedEntitlement.feature)||void 0===r?void 0:r.meterType)===Ai.MeterType.None)return{hasAccess:!0};if(e.calculatedEntitlement.hasUnlimitedUsage||e.calculatedEntitlement.hasSoftLimit)return{hasAccess:!0};var s=(null===(i=e.calculatedEntitlement)||void 0===i?void 0:i.usageLimit)||0;return e.featureUsage.currentUsage+t<=s?{hasAccess:!0}:{hasAccess:!1,accessDeniedReason:Ai.AccessDeniedReason.RequestedUsageExceedingLimit}}},e}(),Qi=n(8879),Hi=n.n(Qi);var zi,Zi,Wi=[o.MeterType.Incremental,o.MeterType.Fluctuating],Yi=function(){return Yi=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},Yi.apply(this,arguments)},Ki=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())})},Ji=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])}}},Xi=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.modelMapper=new $i,this.loadingEntitlements=null,this.entitlementsApi=new Ni(r,i)}return e.prototype.refresh=function(){return Ki(this,void 0,void 0,function(){return Ji(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(e),i=qi.decideEntitlementPolicy(r);return(null==r?void 0:r.calculatedEntitlement.feature)&&r.calculatedEntitlement.feature.featureType!==Ai.FeatureType.Boolean?t:r?this.modelMapper.mapBooleanEntitlement(r,i):Yi(Yi({},i),{isFallback:!1})},e.prototype.getNumericEntitlement=function(e,t,n){var r,i=this.getEntitlement(e),o=qi.decideEntitlementPolicy(i);return(null==i?void 0:i.calculatedEntitlement.feature)&&(null===(r=i.calculatedEntitlement.feature)||void 0===r?void 0:r.featureType)!==Ai.FeatureType.Number?t:i?this.modelMapper.mapNumericEntitlement(i,o):Yi(Yi({},o),{isFallback:!1,isUnlimited:!1})},e.prototype.getMeteredEntitlement=function(e,t,n){var r,i,o=null==n?void 0:n.requestedUsage,a=this.getEntitlement(e),s=this.handleUsagePeriodOver(a),u=qi.decideEntitlementPolicy(s,o);return(null==s?void 0:s.calculatedEntitlement.feature)&&(null===(r=s.calculatedEntitlement.feature)||void 0===r?void 0:r.meterType)!==Ai.MeterType.Fluctuating&&(null===(i=s.calculatedEntitlement.feature)||void 0===i?void 0:i.meterType)!==Ai.MeterType.Incremental?t:s?this.modelMapper.mapMeteredEntitlement(s,u,o):Yi(Yi({},u),{currentUsage:0,isFallback:!1,isUnlimited:!1,requestedUsage:o||0})},e.prototype.handleUsagePeriodOver=function(e){var t,n,r=new Date;if(!(e&&(null==(n=e.calculatedEntitlement.feature)?void 0:n.featureType)===o.FeatureType.Number&&!(0,a.isNil)(n.meterType)&&Wi.includes(n.meterType)&&e.featureUsage.usagePeriodEnd&&e.featureUsage.usagePeriodEnd.getTime()<r.getTime()))return e;var i,s,u=e.calculatedEntitlement,c=e.featureUsage,l=c.resetPeriod,p=c.usagePeriodAnchor;return p&&l&&(i=(t=function(e,t,n){var r=Hi()(t),i=Hi()(e),a=function(e){switch(e){case o.EntitlementResetPeriod.Year:return"years";case o.EntitlementResetPeriod.Month:return"months";case o.EntitlementResetPeriod.Week:return"weeks";case o.EntitlementResetPeriod.Day:return"days";case o.EntitlementResetPeriod.Hour:return"hours";default:throw new Error("Unsupported reset period")}}(n),s=Math.floor(r.diff(i,a,!0)),u=i.clone().add(s,a),c=i.clone().add(s+1,a);return{usagePeriodStart:u.toDate(),usagePeriodEnd:c.toDate()}}(new Date(p),r,l)).usagePeriodStart,s=t.usagePeriodEnd),new ji(u,Yi(Yi({},c),{currentUsage:0,usagePeriodStart:i,usagePeriodEnd:s}))},e.prototype.getEnumEntitlement=function(e,t,n){var r,i=this.cacheService.getEntitlement(e),o=null==n?void 0:n.requestedValues,a=qi.decideEntitlementPolicy(i,void 0,o);return(null==i?void 0:i.calculatedEntitlement.feature)&&(null===(r=i.calculatedEntitlement.feature)||void 0===r?void 0:r.featureType)!==Ai.FeatureType.Enum?t:i?this.modelMapper.mapEnumEntitlement(i,a,o):Yi(Yi({},a),{isFallback:!1,enumValues:[],requestedValues:o||[]})},e.prototype.getCreditEntitlement=function(e,t){var n=this.cacheService.getCreditEntitlement(e),r=qi.decideCreditEntitlementPolicy(n);return this.renewOutdatedCacheInBackground(),n?this.modelMapper.mapCreditEntitlement(n,r):Yi(Yi({},t),{currency:{currencyId:e},isFallback:!1,hasAccess:r.hasAccess,accessDeniedReason:r.accessDeniedReason})},e.prototype.loadEntitlements=function(e){return Ki(this,void 0,void 0,function(){return Ji(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 Ki(this,void 0,void 0,function(){var t,n,r,i;return Ji(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){this.cacheService.updateLastChecked();var n=this.cacheService.getLastUpdate(),r=this.getLastEntitlementsUpdate(e);if(!(n&&r.getTime()<n.getTime())){var i=this.modelMapper.mapCachedEntitlements(e),o=i.featureEntitlements,a=i.creditEntitlements;this.cacheService.setEntitlements({entitlements:o,accessDeniedReason:t},r),this.cacheService.setCreditEntitlements(a),this.onEntitlementsUpdated(o)}},e.prototype.getLastEntitlementsUpdate=function(e){return(0,a.max)(e.flatMap(function(e){return[new Date(e.entitlementUpdatedAt),new Date(e.usageUpdatedAt)]}))||new Date},e.prototype.getEntitlement=function(e){var t=this.cacheService.getEntitlement(e);return this.renewOutdatedCacheInBackground(),t},e.prototype.getEntitlementsState=function(){return Ki(this,void 0,void 0,function(){var e,t=this;return Ji(this,function(n){switch(n.label){case 0:return[4,this.renewOutdatedCache()];case 1:return n.sent(),e=this.cacheService.getEntitlements(),[2,{entitlements:Array.from(e.entitlements.values()).map(function(e){var n=qi.decideEntitlementPolicy(e);return t.modelMapper.mapEntitlement(e,n)}),accessDeniedReason:e.accessDeniedReason}]}})})},e.prototype.renewOutdatedCache=function(){return Ki(this,void 0,void 0,function(){return Ji(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}(),eo=n(1434),to=(zi=function(e,t){return zi=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])},zi(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 n(){this.constructor=e}zi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),no=function(e){function t(){return e.call(this)||this}return to(t,e),t}(eo.TypedEmitter),ro=function(){function e(e){void 0===e&&(e=3e4);var t=this;this.ttlMs=e,this.setFeatures=function(e){return t.features=new Set(e)},this.ttlMs=e,this.entitlementsState={entitlements:new Map,accessDeniedReason:null},this.creditEntitlements=new Map,this.features=new Set,this.lastUpdate=null,this.lastChecked=null}return e.prototype.getEntitlement=function(e){return this.entitlementsState.entitlements.get(e)||null},e.prototype.validateFeature=function(e){return this.features.has(e)},e.prototype.updateLastChecked=function(){this.lastChecked=new Date},e.prototype.setEntitlements=function(e,t){this.entitlementsState=e,this.lastUpdate=t},e.prototype.getEntitlements=function(){return this.entitlementsState},e.prototype.getLastUpdate=function(){return this.lastUpdate},e.prototype.isLoaded=function(){return!!this.lastUpdate},e.prototype.isOutdated=function(){return null===this.lastChecked||(new Date).getTime()-this.lastChecked.getTime()>this.ttlMs},e.prototype.getCreditEntitlement=function(e){return this.creditEntitlements.get(e)||null},e.prototype.setCreditEntitlements=function(e){this.creditEntitlements=e},e}();!function(e){e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="READY",e.FAILED="FAILED"}(Zi||(Zi={}));var io=function(){function e(e){this.eventEmitter=e,this.initializationPromise=null,this.initializationStatus=Zi.IN_PROGRESS,this.initFailureError=null}return e.prototype.getInitializationPromise=function(){var e=this;return this.initializationPromise?this.initializationPromise:this.initializationStatus===Zi.SUCCESS?Promise.resolve():this.initializationStatus===Zi.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=Zi.SUCCESS,this.eventEmitter.emit("initializeSuccessfully")},e.prototype.signalFailedInit=function(e){this.initializationStatus=Zi.FAILED,this.initFailureError=e,this.eventEmitter.emit("initializeFailed",e)},e}();const oo=Object.prototype.toString;function ao(e){switch(oo.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return vo(e,Error)}}function so(e,t){return oo.call(e)===`[object ${t}]`}function uo(e){return so(e,"ErrorEvent")}function co(e){return so(e,"DOMError")}function lo(e){return so(e,"String")}function po(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function fo(e){return null===e||po(e)||"object"!=typeof e&&"function"!=typeof e}function ho(e){return so(e,"Object")}function mo(e){return"undefined"!=typeof Event&&vo(e,Event)}function go(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function vo(e,t){try{return e instanceof t}catch(e){return!1}}function yo(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function bo(e){return e&&e.Math==Math?e:void 0}const Eo="object"==typeof globalThis&&bo(globalThis)||"object"==typeof window&&bo(window)||"object"==typeof self&&bo(self)||"object"==typeof n.g&&bo(n.g)||function(){return this}()||{};function _o(){return Eo}function So(e,t,n){const r=n||Eo,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const To=_o();function Io(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=Do(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 Do(e,t){const n=e,r=[];let i,o,a,s,u;if(!n||!n.tagName)return"";if(To.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&&lo(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 wo="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Co=["debug","info","warn","error","log","assert","trace"],Oo={};function Po(e){if(!("console"in Eo))return e();const t=Eo.console,n={},r=Object.keys(Oo);r.forEach(e=>{const r=Oo[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}const Ao=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return wo?Co.forEach(n=>{t[n]=(...t)=>{e&&Po(()=>{Eo.console[n](`Sentry Logger [${n}]:`,...t)})}}):Co.forEach(e=>{t[e]=()=>{}}),t}();function Fo(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function No(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const r=e[t];try{yo(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Ro(e,t=[],n=!1){return t.some(t=>function(e,t,n=!1){return!!lo(e)&&(so(t,"RegExp")?t.test(e):!!lo(t)&&(n?e===t:e.includes(t)))}(e,t,n))}function ko(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"==typeof i&&Uo(i,r),e[t]=i}function xo(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){wo&&Ao.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Uo(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,xo(e,"__sentry_original__",t)}catch(e){}}function Mo(e){return e.__sentry_original__}function Lo(e){if(ao(e))return{message:e.message,name:e.name,stack:e.stack,...Vo(e)};if(mo(e)){const t={type:e.type,target:jo(e.target),currentTarget:jo(e.currentTarget),...Vo(e)};return"undefined"!=typeof CustomEvent&&vo(e,CustomEvent)&&(t.detail=e.detail),t}return e}function jo(e){try{return"undefined"!=typeof Element&&vo(e,Element)?Io(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function Vo(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 Bo(e){return Go(e,new Map)}function Go(e,t){if(function(e){if(!ho(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]=Go(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(Go(e,t))}),r}return e}function $o(){const e=Eo,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 qo(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Qo(e){const{message:t,event_id:n}=e;if(t)return t;const r=qo(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Ho(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 zo(e,t){const n=qo(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 Zo(e){if(e&&e.__sentry_captured__)return!0;try{xo(e,"__sentry_captured__",!0)}catch(e){}return!1}function Wo(){return Date.now()/1e3}const Yo=function(){const{performance:e}=Eo;if(!e||!e.now)return Wo;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();let Ko;(()=>{const{performance:e}=Eo;if(!e||!e.now)return void(Ko="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?(Ko="timeOrigin",e.timeOrigin):Ko="navigationStart":Ko="dateNow"})();const Jo="production",Xo="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var ea;function ta(e){return new ra(t=>{t(e)})}function na(e){return new ra((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(ea||(ea={}));class ra{constructor(e){ra.prototype.__init.call(this),ra.prototype.__init2.call(this),ra.prototype.__init3.call(this),ra.prototype.__init4.call(this),this._state=ea.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new ra((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 ra((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(ea.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(ea.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===ea.PENDING&&(go(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===ea.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===ea.RESOLVED&&e[1](this._value),this._state===ea.REJECTED&&e[2](this._value),e[0]=!0)})}}}function ia(){return So("globalEventProcessors",()=>[])}function oa(e){ia().push(e)}function aa(e,t,n,r=0){return new ra((i,o)=>{const a=e[r];if(null===t||"function"!=typeof a)i(t);else{const s=a({...t},n);Xo&&a.id&&null===s&&Ao.log(`Event processor "${a.id}" dropped event`),go(s)?s.then(t=>aa(e,t,n,r+1).then(i)).then(null,o):aa(e,s,n,r+1).then(i).then(null,o)}})}function sa(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||Yo(),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:$o()),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 ua(e){return e.transaction}function ca(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:a,tags:s,origin:u}=la(e);return Bo({data:r,op:i,parent_span_id:o,span_id:t,status:a,tags:s,trace_id:n,origin:u})}function la(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function pa(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},a=Bo({environment:r.environment||Jo,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}function fa(e){const t=ja();if(!t)return{};const n=pa(la(e).trace_id||"",t,Da().getScope()),r=ua(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=la(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 da(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=Bo(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const c=Bo(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const l=Bo(i);l&&Object.keys(l).length&&(e.user={...l,...e.user});const p=Bo(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:ca(t),...e.contexts};const n=ua(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:fa(t),...e.sdkProcessingMetadata};const r=la(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 ha(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:u,fingerprint:c,eventProcessors:l,attachments:p,propagationContext:f,transactionName:d,span:h}=t;ma(e,"extra",n),ma(e,"tags",r),ma(e,"user",i),ma(e,"contexts",o),ma(e,"sdkProcessingMetadata",s),a&&(e.level=a),d&&(e.transactionName=d),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,...f}}function ma(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 ga;class va{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=ya()}static clone(e){return e?e.clone():new va}clone(){const e=new va;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&&sa(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 va){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(ho(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=ya(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:Wo(),...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:f}=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:f}}applyToEvent(e,t={},n=[]){return da(e,this.getScopeData()),aa([...n,...ia(),...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:$o();if(!this._client)return Ao.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:$o();if(!this._client)return Ao.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:$o();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Ao.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 ya(){return{traceId:$o(),spanId:$o().substring(16)}}const ba="7.120.4",Ea=parseFloat(ba),_a=100;class Sa{constructor(e,t,n,r=Ea){let i,o;this._version=r,t?i=t:(i=new va,i.setClient(e)),n?o=n:(o=new va,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 go(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:$o(),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:$o(),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:$o();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=_a}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const a={timestamp:Wo(),...e},s=i?Po(()=>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=Ia(this);try{e(this)}finally{Ia(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Xo&&Ao.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return Xo&&!n&&(this.getClient()?Ao.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):Ao.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"}),sa(e,t)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=Jo}=n&&n.getOptions()||{},{userAgent:o}=Eo.navigator||{},a=function(e){const t=Yo(),n={sid:$o(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Bo({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&&sa(n,e),n}({release:r,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),s=t.getSession&&t.getSession();return s&&"ok"===s.status&&sa(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=Ta().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);Xo&&Ao.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Ta(){return Eo.__SENTRY__=Eo.__SENTRY__||{extensions:{},hub:void 0},Eo}function Ia(e){const t=Ta(),n=wa(t);return Ca(t,e),n}function Da(){const e=Ta();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=Ta()){return t=e,!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)&&!wa(e).isOlderThan(Ea)||Ca(e,new Sa),wa(e);var t}(e)}function wa(e){return So("hub",()=>new Sa,e)}function Ca(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}const Oa=/\(error: (.*)\)/,Pa=/captureMessage|captureException/;const Aa="<anonymous>";function Fa(e){try{return e&&"function"==typeof e&&e.name||Aa}catch(e){return Aa}}function Na(e,t=100,n=1/0){try{return ka("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Ra(e,t=3,n=102400){const r=Na(e,t);return i=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?Ra(e,t-1,n):r;var i}function ka(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(yo(t))return"[VueViewModel]";if(function(e){return ho(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: ${Fa(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 ka("",p.toJSON(),l-1,i,o)}catch(e){}const f=Array.isArray(t)?[]:{};let d=0;const h=Lo(t);for(const e in h){if(!Object.prototype.hasOwnProperty.call(h,e))continue;if(d>=i){f[e]="[MaxProperties ~]";break}const t=h[e];f[e]=ka(e,t,l-1,i,o),d++}return s(t),f}const xa=new WeakMap;const Ua=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Ma(e,t){return Da().captureEvent(e,t)}function La(e,t){Da().addBreadcrumb(e,t)}function ja(){return Da().getClient()}const Va=[];function Ba(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Ga(e,t,n){if(n[t.name])Xo&&Ao.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===Va.indexOf(t.name)&&(t.setupOnce(oa,Da),Va.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)}Xo&&Ao.log(`Integration installed: ${t.name}`)}}function $a(e,t){const n=function(...e){return t(...e)};return n.id=e,n}let qa;const Qa="FunctionToString",Ha=new WeakMap,za=$a(Qa,()=>({name:Qa,setupOnce(){qa=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Mo(this),n=Ha.has(ja())&&void 0!==t?t:this;return qa.apply(n,e)}}catch(e){}},setup(e){Ha.set(e,!0)}})),Za=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Wa=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Ya="InboundFilters",Ka=$a(Ya,(e={})=>({name:Ya,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?[]:Za],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Wa],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)?(Xo&&Ao.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Qo(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}`)),Xo&&0===t.length&&Ao.error(`Could not extract message for event ${Qo(e)}`),t}(e).some(e=>Ro(e,t))}(e,t.ignoreErrors)?(Xo&&Ao.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Qo(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&Ro(n,t)}(e,t.ignoreTransactions)?(Xo&&Ao.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Qo(e)}`),!0):function(e,t){if(!t||!t.length)return!1;const n=Ja(e);return!!n&&Ro(n,t)}(e,t.denyUrls)?(Xo&&Ao.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Qo(e)}.\nUrl: ${Ja(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;const n=Ja(e);return!n||Ro(n,t)}(e,t.allowUrls)&&(Xo&&Ao.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Qo(e)}.\nUrl: ${Ja(e)}`),!0)}(t,o)?null:t}}));function Ja(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 Xo&&Ao.error(`Cannot extract url for event ${Qo(e)}`),null}}function Xa(e,t,n=250,r,i,o,a){if(!(o.exception&&o.exception.values&&a&&vo(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=es(e,t,i,a.originalException,r,o.exception.values,s,0),c=n,u.map(e=>(e.value&&(e.value=Fo(e.value,c)),e))))}function es(e,t,n,r,i,o,a,s){if(o.length>=n+1)return o;let u=[...o];if(vo(r[i],Error)){ts(a,s);const o=e(t,r[i]),c=u.length;ns(o,i,c,s),u=es(e,t,n,r[i],i,[o,...u],o,c)}return Array.isArray(r.errors)&&r.errors.forEach((r,o)=>{if(vo(r,Error)){ts(a,s);const c=e(t,r),l=u.length;ns(c,`errors[${o}]`,l,s),u=es(e,t,n,r,i,[c,...u],c,l)}}),u}function ts(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 ns(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 rs(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 is="LinkedErrors",os=$a(is,(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:is,setupOnce(){},preprocessEvent(e,r,i){const o=i.getOptions();Xa(rs,o.stackParser,o.maxValueLength,n,t,e,r)}}}),as=r,ss=Eo;let us=0;function cs(){return us>0}function ls(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(Mo(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=>ls(e,t));return e.apply(this,i)}catch(e){throw us++,setTimeout(()=>{us--}),function(...e){const t=Da();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&&(Ho(e,void 0,void 0),zo(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),i=e,Da().captureException(i,function(e){if(e)return function(e){return e instanceof va||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>Ua.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){}Uo(r,e),xo(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}const ps={},fs={};function ds(e,t){ps[e]=ps[e]||[],ps[e].push(t)}function hs(e,t){fs[e]||(t(),fs[e]=!0)}function ms(e,t){const n=e&&ps[e];if(n)for(const r of n)try{r(t)}catch(t){wo&&Ao.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Fa(r)}\nError:`,t)}}let gs=null;function vs(){gs=Eo.onerror,Eo.onerror=function(e,t,n,r,i){return ms("error",{column:r,error:i,line:n,msg:e,url:t}),!(!gs||gs.__SENTRY_LOADER__)&&gs.apply(this,arguments)},Eo.onerror.__SENTRY_INSTRUMENTED__=!0}let ys=null;function bs(){ys=Eo.onunhandledrejection,Eo.onunhandledrejection=function(e){return ms("unhandledrejection",e),!(ys&&!ys.__SENTRY_LOADER__)||ys.apply(this,arguments)},Eo.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Es="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function _s(e,t){const n=Ts(e,t),r={type:t&&t.name,value:Ds(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Ss(e,t){return{exception:{values:[_s(e,t)]}}}function Ts(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(Is.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const Is=/Minified React error #\d+;/i;function Ds(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function ws(e,t,n,r,i){let o;if(uo(t)&&t.error)return Ss(e,t.error);if(co(t)||so(t,"DOMException")){const i=t;if("stack"in t)o=Ss(e,t);else{const t=i.name||(co(i)?"DOMError":"DOMException"),a=i.message?`${t}: ${i.message}`:t;o=Cs(e,a,n,r),Ho(o,a)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return ao(t)?Ss(e,t):ho(t)||mo(t)?(o=function(e,t,n,r){const i=ja(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:mo(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Os(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Ra(t,o)}};if(n){const t=Ts(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,i),zo(o,{synthetic:!0}),o):(o=Cs(e,t,n,r),Ho(o,`${t}`,void 0),zo(o,{synthetic:!0}),o)}function Cs(e,t,n,r){const i={};if(r&&n){const r=Ts(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(po(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 Os(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(Lo(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Fo(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:Fo(r,t)}return""}(e),r=t?"promise rejection":"exception";return uo(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:mo(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 Ps="GlobalHandlers",As=$a(Ps,(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Ps,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){!function(){const t="error";ds(t,t=>{const{stackParser:n,attachStacktrace:r}=Rs();if(ja()!==e||cs())return;const{msg:i,url:o,line:a,column:s,error:u}=t,c=void 0===u&&lo(i)?function(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=uo(e)?e.message:e,a="Error";const s=o.match(i);s&&(a=s[1],o=s[2]);return Fs({exception:{values:[{type:a,value:o}]}},t,n,r)}(i,o,a,s):Fs(ws(n,u||i,void 0,r,!1),o,a,s);c.level="error",Ma(c,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}),hs(t,vs)}()}(e),Ns("onerror")),t.onunhandledrejection&&(function(e){!function(){const t="unhandledrejection";ds(t,t=>{const{stackParser:n,attachStacktrace:r}=Rs();if(ja()!==e||cs())return;const i=function(e){if(fo(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=fo(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:ws(n,i,void 0,r,!0);o.level="error",Ma(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}),hs(t,bs)}()}(e),Ns("onunhandledrejection"))}}});function Fs(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=lo(t)&&t.length>0?t:function(){try{return To.document.location.href}catch(e){return""}}();return 0===u.length&&u.push({colno:c,filename:p,function:"?",in_app:!0,lineno:l}),e}function Ns(e){Es&&Ao.log(`Global Handler attached: ${e}`)}function Rs(){const e=ja();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const ks=["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"],xs="TryCatch",Us=$a(xs,(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:xs,setupOnce(){t.setTimeout&&ko(ss,"setTimeout",Ms),t.setInterval&&ko(ss,"setInterval",Ms),t.requestAnimationFrame&&ko(ss,"requestAnimationFrame",Ls),t.XMLHttpRequest&&"XMLHttpRequest"in ss&&ko(XMLHttpRequest.prototype,"send",js);const e=t.eventTarget;e&&(Array.isArray(e)?e:ks).forEach(Vs)}}});function Ms(e){return function(...t){const n=t[0];return t[0]=ls(n,{mechanism:{data:{function:Fa(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Ls(e){return function(t){return e.apply(this,[ls(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Fa(e)},handled:!1,type:"instrument"}})])}}function js(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&ko(n,e,function(t){const n={mechanism:{data:{function:e,handler:Fa(t)},handled:!1,type:"instrument"}},r=Mo(t);return r&&(n.mechanism.data.handler=Fa(r)),ls(t,n)})}),e.apply(this,t)}}function Vs(e){const t=ss,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(ko(n,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=ls(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Fa(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,ls(r,{mechanism:{data:{function:"addEventListener",handler:Fa(r),target:e},handled:!1,type:"instrument"}}),i])}}),ko(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 Bs(){"console"in Eo&&Co.forEach(function(e){e in Eo.console&&ko(Eo.console,e,function(t){return Oo[e]=t,function(...t){ms("console",{args:t,level:e});const n=Oo[e];n&&n.apply(Eo.console,t)}})})}const Gs=Eo;let $s,qs,Qs;function Hs(){if(!Gs.document)return;const e=ms.bind(null,"dom"),t=zs(e,!0);Gs.document.addEventListener("click",t,!1),Gs.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=Gs[t]&&Gs[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(ko(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=zs(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(e){}return t.call(this,n,r,i)}}),ko(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 zs(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;xo(n,"_sentryCaptured",!0),r&&!r._sentryId&&xo(r,"_sentryId",$o());const i="keypress"===n.type?"input":n.type;(function(e){if(e.type!==qs)return!1;try{if(!e.target||e.target._sentryId!==Qs)return!1}catch(e){}return!0})(n)||(e({event:n,name:i,global:t}),qs=n.type,Qs=r?r._sentryId:void 0),clearTimeout($s),$s=Gs.setTimeout(()=>{Qs=void 0,qs=void 0},1e3)}}const Zs=Eo,Ws="__sentry_xhr_v3__";function Ys(){if(!Zs.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;ko(e,"open",function(e){return function(...t){const n=Date.now(),r=lo(t[0])?t[0].toUpperCase():void 0,i=function(e){if(lo(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!r||!i)return e.apply(this,t);this[Ws]={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const e=this[Ws];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}ms("xhr",{args:[r,i],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?ko(this,"onreadystatechange",function(e){return function(...t){return o(),e.apply(this,t)}}):this.addEventListener("readystatechange",o),ko(this,"setRequestHeader",function(e){return function(...t){const[n,r]=t,i=this[Ws];return i&&lo(n)&&lo(r)&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}}),e.apply(this,t)}}),ko(e,"send",function(e){return function(...t){const n=this[Ws];return n?(void 0!==t[0]&&(n.body=t[0]),ms("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)):e.apply(this,t)}})}const Ks=_o();function Js(){if(!("fetch"in Ks))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function Xs(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function eu(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!Js())return!1;if(Xs(Ks.fetch))return!0;let e=!1;const t=Ks.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=Xs(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){wo&&Ao.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&ko(Eo,"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:nu(t),method:tu(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:nu(t),method:tu(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return ms("fetch",{...i}),e.apply(Eo,t).then(e=>(ms("fetch",{...i,endTimestamp:Date.now(),response:e}),e),e=>{throw ms("fetch",{...i,endTimestamp:Date.now(),error:e}),e})}})}function tu(e,t){return!!e&&"object"==typeof e&&!!e[t]}function nu(e){return"string"==typeof e?e:e?tu(e,"url")?e.url:e.toString?e.toString():"":""}const ru=_o(),iu=Eo;let ou;function au(){if(!function(){const e=ru.chrome,t=e&&e.app&&e.app.runtime,n="history"in ru&&!!ru.history.pushState&&!!ru.history.replaceState;return!t&&n}())return;const e=iu.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=ou,t=String(n);ou=t,ms("history",{from:e,to:t})}return e.apply(this,t)}}iu.onpopstate=function(...t){const n=iu.location.href,r=ou;if(ou=n,ms("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},ko(iu.history,"pushState",t),ko(iu.history,"replaceState",t)}const su=["fatal","error","warning","log","info","debug"];function uu(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 cu="Breadcrumbs",lu=$a(cu,(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:cu,setupOnce(){},setup(e){var n;t.console&&function(e){const t="console";ds(t,e),hs(t,Bs)}(function(e){return function(t){if(ja()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:(r=t.level,"warn"===r?"warning":su.includes(r)?r:"log"),message:No(t.args," ")};var r;if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${No(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}La(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(ja()!==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&&(Es&&Ao.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=Io(t,{keyAttrs:o,maxStringLength:a}),i=function(e){if(!To.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}),La(s,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),ds("dom",n),hs("dom",Hs)),t.xhr&&function(e){ds("xhr",e),hs("xhr",Ys)}(function(e){return function(t){if(ja()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[Ws];if(!n||!r||!i)return;const{method:o,url:a,status_code:s,body:u}=i;La({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";ds(t,e),hs(t,eu)}(function(e){return function(t){if(ja()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error)La({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r});else{const e=t.response;La({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";ds(t,e),hs(t,au)}(function(e){return function(t){if(ja()!==e)return;let n=t.from,r=t.to;const i=uu(ss.location.href);let o=n?uu(n):void 0;const a=uu(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),La({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){ja()===e&&La({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Qo(t)},{event:t})}}(e))}}}),pu="LinkedErrors",fu=$a(pu,(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:pu,setupOnce(){},preprocessEvent(e,r,i){const o=i.getOptions();Xa(_s,o.stackParser,o.maxValueLength,n,t,e,r)}}}),du="HttpContext",hu=$a(du,()=>({name:du,setupOnce(){},preprocessEvent(e){if(!ss.navigator&&!ss.location&&!ss.document)return;const t=e.request&&e.request.url||ss.location&&ss.location.href,{referrer:n}=ss.document||{},{userAgent:r}=ss.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}})),mu="Dedupe",gu=$a(mu,()=>{let e;return{name:mu,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&&(!!yu(e,t)&&!!vu(e,t))))}(e,t)||!!function(e,t){const n=bu(t),r=bu(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!yu(e,t)&&!!vu(e,t)))}(e,t))}(t,e))return Es&&Ao.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}});function vu(e,t){let n=Eu(e),r=Eu(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 yu(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 bu(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Eu(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}let _u={};ss.Sentry&&ss.Sentry.Integrations&&(_u=ss.Sentry.Integrations);const Su={..._u,...as,...i},Tu="?";function Iu(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 Du=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,wu=/\((\S*)(?::(\d+))(?::(\d+))\)/,Cu=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ou=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Pu=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Au=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=Oa.test(n)?n.replace(Oa,"$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(),Pa.test(t[t.length-1].function||"")&&(t.pop(),Pa.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=Du.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=wu.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Fu(t[1]||Tu,t[2]);return Iu(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=Cu.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Ou.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]||Tu;return[n,e]=Fu(n,e),Iu(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=Pu.exec(e);return t?Iu(t[2],t[1]||Tu,+t[3],t[4]?+t[4]:void 0):void 0}]),Fu=(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]:Tu,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class Nu 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 Ru=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ku(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 xu(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Uu(e,t=[]){return[e,t]}function Mu(e,t){const[n,r]=e;return[n,[...r,t]]}function Lu(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function ju(e,t){return(t||new TextEncoder).encode(e)}function Vu(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[ju(i,t),e]:i.push("string"==typeof e?ju(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(Na(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 Bu(e,t){const n="string"==typeof e.data?ju(e.data,t):e.data;return[Bo({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Gu={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 $u(e){return Gu[e]}function qu(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Qu(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 na(new Nu("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 ra((n,r)=>{let i=t.length;if(!i)return n(!0);const o=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{ta(e).then(()=>{--i||(clearTimeout(o),n(!0))},r)})})}}}(e.bufferSize||30)){let r={};function i(i){const o=[];if(Lu(i,(t,n)=>{const i=$u(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=Hu(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(t)}),0===o.length)return ta();const a=Uu(i[0],o),s=t=>{Lu(a,(n,r)=>{const i=Hu(n,r);e.recordDroppedEvent(t,$u(r),i)})};return n.add(()=>t({body:Vu(a,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Xo&&Ao.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 Nu)return Xo&&Ao.error("Skipped sending event because buffer is full."),s("queue_overflow"),ta();throw e})}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function Hu(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let zu;function Zu(e,t=function(){if(zu)return zu;if(Xs(ss.fetch))return zu=ss.fetch.bind(ss);const e=ss.document;let t=ss.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){Es&&Ao.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return zu=t.bind(ss)}()){let n=0,r=0;return Qu(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 zu=void 0,n-=o,r--,na(e)}})}function Wu(e){return Qu(e,function(t){return new ra((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 Yu(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 Ku="Not capturing exception because it's already been captured.";class Ju{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=Ru.exec(e);if(!t)return void Po(()=>{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 xu({host:o,pass:i,path:u,projectId:c,port:a,protocol:n,publicKey:r})}(e):xu(e);if(t&&function(e){if(!wo)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(Ao.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(Ao.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(Ao.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(Ao.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}(e.dsn):Xo&&Ao.warn("No DSN provided, client will not send events."),this._dsn){const t=Yu(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(Zo(e))return void(Xo&&Ao.log(Ku));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=po(e)?e:String(e),a=fo(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&&Zo(t.originalException))return void(Xo&&Ao.log(Ku));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?Xo&&Ao.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),sa(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))):ta(!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 Xo&&Ao.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];Ga(this,e,this._integrations),t||Ba(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const i=qu(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:ku(r)},...i&&{trace:Bo({...i})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,Uu(a,[[{type:o},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=Mu(n,Bu(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=qu(n);return Uu({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:ku(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}`;Xo&&Ao.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}captureAggregateMetrics(e){Xo&&Ao.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=ku(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 Uu(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&&Ga(e,t,n)}),n}(this,e),Ba(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)&&(sa(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ra(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 Da().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||$o(),timestamp:t.timestamp||Wo()},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:Jo),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=Fo(e.message,o));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Fo(a.value,o));const s=e.request;s&&s.url&&(s.url=Fo(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=Eo._sentryDebugIds;if(!n)return;let r;const i=xa.get(t);i?r=i:(r=new Map,xa.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 va;return n.update(t),n}(r,n.captureContext);n.mechanism&&zo(u,n.mechanism);const p=i&&i.getEventProcessors?i.getEventProcessors():[],f=(ga||(ga=new va),ga).getScopeData();o&&ha(f,o.getScopeData()),l&&ha(f,l.getScopeData());const d=[...n.attachments||[],...f.attachments];return d.length&&(n.attachments=d),da(u,f),aa([...p,...ia(),...f.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:Na(e.data,t,n)}}))},...e.user&&{user:Na(e.user,t,n)},...e.contexts&&{contexts:Na(e.contexts,t,n)},...e.extra&&{extra:Na(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=Na(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>{const r=la(e).data;return r&&(e.data=Na(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||pa(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(Xo){const t=e;"log"===t.logLevel?Ao.log(t.message):Ao.warn(t)}})}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:i}=r,o=ec(e),a=Xu(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),na(new Nu(`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 Nu("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(Xu(t)&&r)return r(t,n);if(ec(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(go(e))return e.then(e=>{if(!ho(e)&&null!==e)throw new Nu(n);return e},e=>{throw new Nu(`${t} rejected with ${e}`)});if(!ho(e)&&null!==e)throw new Nu(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 Nu(`${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 Nu)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Nu(`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=>{Xo&&Ao.error("Error while sending event:",e)});Xo&&Ao.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 Xu(e){return void 0===e.type}function ec(e){return"transaction"===e.type}class tc extends Ju{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:ba})),version:ba}),e._metadata=i}(e,"browser",["browser"],ss.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&ss.document&&ss.document.addEventListener("visibilitychange",()=>{"hidden"===ss.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){const i=ws(e,t,n&&n.syntheticException||void 0,r);return zo(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),ta(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){const o=Cs(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),ta(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(Es&&Ao.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:ku(r)}},o=function(e){return[{type:"user_report"},e]}(e);return Uu(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(Es&&Ao.log("No outcomes to send"));if(!this._dsn)return void(Es&&Ao.log("No dsn provided, will not send outcomes"));Es&&Ao.log("Sending outcomes:",e);const t=(n=e,Uu((r=this._options.tunnel&&ku(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:Wo(),discarded_events:n}]]));var n,r;this._sendEnvelope(t)}}var nc=[new Su.InboundFilters,new Su.FunctionToString,new Su.TryCatch,new Su.Breadcrumbs,new Su.LinkedErrors,new Su.Dedupe,new Su.HttpContext],rc=new Sa,ic=n(8593),oc=function(){return oc=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},oc.apply(this,arguments)};function ac(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,uc(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 sc(e,t){try{return e()}catch(e){return uc(e,t)}}function uc(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;rc.withScope(function(t){var o={errorMessage:r};if(n){var a=n.customerId,s=oc(oc({},n),{apiKey:void 0});a&&t.setTags({customerId:a}),o.sdkConfiguration=s}i&&(o=oc(oc({},o),i)),t.setExtras(o),rc.captureException(e)})}(e,{sdkConfiguration:r,errorMessage:s,errorReportMetadata:a}),o)throw new Error(s)}var cc=function(){return cc=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},cc.apply(this,arguments)},lc=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())})},pc=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])}}},fc=function(){function e(e,t){this.modelMapper=new $i,this.eventEmitter=new no,this.showWatermark=!1,this.isWidgetWatermarkEnabled=!1,this.configuration=e,this.edgeApiClient=de.create(e,e),this.graphClient=function(e){var t=e.apiKey,n=e.baseUri,r=e.clientName,i=void 0===r?B:r,o=e.clientVersion,a=void 0===o?Ci:o,s=function(e,t){return new ut(function(n,r){var i={"X-API-KEY":e,"x-graphql-operation-name":n.operationName,source:V},o=t.customerToken;return o&&(i["X-CUSTOMER-KEY"]=o),n.setContext({headers:i}),r(n)})}(t,e),u=function(e){return new yt({uri:"".concat(e,"/graphql"),fetch:pe})}(n),c=new wi({attempts:{max:5,retryIf:Oi},delay:{initial:500,max:2e3,jitter:!0}});return new Fr({link:s.concat(c.concat(u)),cache:new Ti({possibleTypes:Ii.g}),name:i,version:a})}(this.configuration),this.loggerService=t,this.apiGateway=new k(this.graphClient,this.edgeApiClient),this.globalEntitlementsService=null,this.resourceEntitlementsService=null,this.initializationStateTracker=new io(this.eventEmitter)}return e.initialize=function(t){var n=function(e){var t={baseUri:"https://api.stigg.io",baseEdgeUri:$("https://api.stigg.io"),logConfiguration:{logger:console,logLevel:j.i.ERROR},enableEdge:!0,cacheTtlMs:3e4},n=e.baseEdgeUri?e.baseEdgeUri:e.baseUri?$(e.baseUri):t.baseEdgeUri,r=e.cacheTtlMs||e.entitlementPollingInterval;return L()(t,e,{baseEdgeUri:n,cacheTtlMs:r})}(t),r=new j.m(n.logConfiguration.logger,n.logConfiguration.logLevel);if(n.offline){r.log("Stigg SDK has been initialized in offline mode, only fallback entitlements are being used.");var i=new Pi.o(n,r);return i.initializationStateTracker.signalSuccessInit(),i}!function(e,t){if(U()(e.apiKey)&&!e.offline){var n="You must configure the client with an SDK key";throw t.error(n),new Error(n)}}(n,r);var o=new e(n,r);return this.initializeSdk(o).then(function(){n.customerId?n.lazyLoad||o.setCustomerId(n.customerId,n.customerToken,n.resourceId):o.initializationStateTracker.signalSuccessInit()}).catch(function(e){return o.initializationStateTracker.signalFailedInit(e)}),o},e.prototype.waitForInitialization=function(){return lc(this,void 0,void 0,function(){var e=this;return pc(this,function(t){return[2,this.initializationStateTracker.getInitializationPromise().then(function(){return e})]})})},e.initializeSdk=function(e){return lc(this,void 0,void 0,function(){var t,n,r,i,a,s,u,c;return pc(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,e.apiGateway.sdkConfiguration.getSdkConfiguration()];case 1:return t=l.sent(),n=null===(a=t.data)||void 0===a?void 0:a.sdkConfiguration,!rc.getClient()&&(null==n?void 0:n.sentryDsn)&&(m=n.sentryDsn,p=void 0,f=void 0,h=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:m,normalizeDepth:6,release:"".concat(B,"@").concat(Ci),integrations:nc,stackParser:Au,transport:Js()?Zu:Wu},t=new tc(e),rc.bindClient(t),[2]})},new((d=void 0)||(d=Promise))(function(e,t){function n(e){try{i(h.next(e))}catch(e){t(e)}}function r(e){try{i(h.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((h=h.apply(p,f||[])).next())})),e.showWatermark=!!(null==n?void 0:n.showWatermark),[3,3];case 2:throw r=l.sent(),401===(null===(s=r.response)||void 0===s?void 0:s.status)||r.graphQLErrors&&(null===(c=null===(u=r.graphQLErrors[0])||void 0===u?void 0:u.extensions)||void 0===c?void 0:c.code)===o.ErrorCode.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 p,f,d,h,m})})},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 lc(this,arguments,void 0,function(e,t,n){var r,i,o,s,u,c=this;return void 0===t&&(t=null),void 0===n&&(n=null),pc(this,function(l){switch(l.label){case 0:if(r=this.configuration,i=r.customerToken,o=r.customerId,s=r.resourceId,e===o&&t===i&&n===s)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,a.isString)(e))throw new Error("customerId parameter must be a string");if(t&&!(0,a.isString)(t))throw new Error("customerToken parameter must be a string");if(n&&!(0,a.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 Xi(e,void 0,new ro(this.configuration.cacheTtlMs),this.graphClient,this.edgeApiClient,this.loggerService,function(e){return c.eventEmitter.emit("entitlementsUpdated",e)}),n&&(this.resourceEntitlementsService=new Xi(e,n,new ro(this.configuration.cacheTtlMs),this.graphClient,this.edgeApiClient,this.loggerService,function(e){return c.eventEmitter.emit("entitlementsUpdated",e)})),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,ac(function(){return lc(c,void 0,void 0,function(){var e,t;return pc(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 l.sent(),this.initializationStateTracker.signalSuccessInit(),[3,4];case 3:return u=l.sent(),this.initializationStateTracker.signalFailedInit(u),[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 lc(this,void 0,void 0,function(){var t,n,r=this;return pc(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,a.isString)(e))throw new Error("resourceId parameter must be a string");this.configuration.resourceId=e,this.resourceEntitlementsService=new Xi(this.configuration.customerId,e,new ro(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,ac(function(){return lc(r,void 0,void 0,function(){var e;return pc(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 lc(this,void 0,void 0,function(){var e=this;return pc(this,function(t){return[2,ac(function(){return lc(e,void 0,void 0,function(){var e,t;return pc(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=cc(cc({},Ai.BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT),a);return sc(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=cc(cc({},Ai.NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT),a);return sc(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=cc(cc({},Ai.METERED_DEFAULT_FALLBACK_ENTITLEMENT),a);return sc(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=cc(cc({},Ai.ENUM_DEFAULT_FALLBACK_ENTITLEMENT),a);return sc(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=cc(cc(cc({},Ai.CREDIT_DEFAULT_FALLBACK_ENTITLEMENT),{currency:{currencyId:n}}),o),s=cc(cc({},a),{remaining:Math.max(a.usageLimit-a.currentUsage,0)});return sc(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 lc(this,arguments,void 0,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 pc(this,function(e){return t={productId:i,customerId:this.configuration.customerId,resourceId:o,context:a,billingCountryCode:s,includeHiddenPlans:u},[2,ac(function(){return lc(n,void 0,void 0,function(){var e;return pc(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 lc(this,void 0,void 0,function(){var e=this;return pc(this,function(t){return[2,ac(function(){return lc(e,void 0,void 0,function(){var e;return pc(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 lc(this,void 0,void 0,function(){var e=this;return pc(this,function(t){return[2,ac(function(){return lc(e,void 0,void 0,function(){var e,t,n,r;return pc(this,function(i){switch(i.label){case 0:return e=q(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 lc(this,arguments,void 0,function(e){var t=this,n=void 0===e?{}:e,r=n.resourceId,i=n.productId;return pc(this,function(e){return[2,ac(function(){return lc(t,void 0,void 0,function(){var e,t;return pc(this,function(n){switch(n.label){case 0:return e=q(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 lc(this,arguments,void 0,function(e){var t=this,n=e.planId,r=e.resourceId,i=void 0===r?this.configuration.resourceId:r,o=e.billingCountryCode;return pc(this,function(e){return[2,ac(function(){return lc(t,void 0,void 0,function(){var e,t;return pc(this,function(r){switch(r.label){case 0:return e=q(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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t,n;return pc(this,function(r){switch(r.label){case 0:return t=q(this.configuration),[4,this.apiGateway.subscriptions.applySubscription(cc({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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t;return pc(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 lc(this,void 0,void 0,function(){var t,n,r=this;return pc(this,function(i){switch(i.label){case 0:return t=(0,ic.$)(this.configuration.entitlementsFallback),[4,ac(function(){return lc(r,void 0,void 0,function(){var n;return pc(this,function(r){return q(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.getEntitlementsState().then(function(e){return e.entitlements})]):[2,t]:[2,null===(n=this.globalEntitlementsService)||void 0===n?void 0:n.getEntitlementsState().then(function(e){return e.entitlements})]})})},{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.getEntitlementsState=function(e){return lc(this,void 0,void 0,function(){var t,n,r=this;return pc(this,function(i){switch(i.label){case 0:return t={entitlements:(0,ic.$)(this.configuration.entitlementsFallback),accessDeniedReason:null},[4,ac(function(){return lc(r,void 0,void 0,function(){var n;return pc(this,function(r){return q(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.getEntitlementsState()]):[2,t]:[2,null===(n=this.globalEntitlementsService)||void 0===n?void 0:n.getEntitlementsState()]})})},{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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t;return pc(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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t;return pc(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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t;return pc(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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t;return pc(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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){return pc(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 lc(this,arguments,void 0,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,f=c.refreshOnComplete,d=void 0===f||f;return pc(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 d?[4,this.refresh()]:[3,8];case 7:e.sent(),e.label=8;case 8:return[2,s]}})})},e.prototype.getSubscriptions=function(){return lc(this,arguments,void 0,function(e){var t,n,r,i,o,a=this;return void 0===e&&(e={}),pc(this,function(s){return t=e.customerId,n=e.resourceId,r=e.status,i=e.productId,o=e.pagination,[2,ac(function(){return lc(a,void 0,void 0,function(){var e;return pc(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 ac(function(){return lc(t,void 0,void 0,function(){var e,t,r;return pc(this,function(i){switch(i.label){case 0:return e=q(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 lc(this,arguments,void 0,function(e){var t=this,n=(void 0===e?{}:e).resourceId;return pc(this,function(e){return[2,ac(function(){return lc(t,void 0,void 0,function(){var e;return pc(this,function(t){switch(t.label){case 0:return e=q(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 lc(this,arguments,void 0,function(e){var t=this,n=e.subscriptionId;return pc(this,function(e){return[2,ac(function(){return lc(t,void 0,void 0,function(){var e,t;return pc(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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t,n,r;return pc(this,function(i){switch(i.label){case 0:return t=q(this.configuration),n=null!==(r=this.configuration.resourceId)&&void 0!==r?r:void 0,[4,this.apiGateway.credits.getCreditUsage(cc(cc({},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 lc(this,arguments,void 0,function(e){var t=this;return void 0===e&&(e={}),pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t,n,r;return pc(this,function(i){switch(i.label){case 0:return t=q(this.configuration),n=null!==(r=this.configuration.resourceId)&&void 0!==r?r:void 0,[4,this.apiGateway.credits.getCreditBalance(cc(cc({},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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t,n,r,i;return pc(this,function(o){switch(o.label){case 0:return t=q(this.configuration),n=null!==(i=this.configuration.resourceId)&&void 0!==i?i:void 0,[4,this.apiGateway.credits.getCreditGrants(cc(cc({},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 lc(this,arguments,void 0,function(e){var t=this;return void 0===e&&(e={}),pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t,n,r,i;return pc(this,function(o){switch(o.label){case 0:return t=q(this.configuration),n=null!==(i=this.configuration.resourceId)&&void 0!==i?i:void 0,[4,this.apiGateway.credits.getCreditLedger(cc(cc({},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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t,n;return pc(this,function(r){switch(r.label){case 0:return t=q(this.configuration),[4,this.apiGateway.checkout.createPaymentSession(cc(cc({},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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t;return pc(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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t;return pc(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}()},660:(e,t,n)=>{"use strict";n.d(t,{o:()=>r.o,F:()=>i.F});var r=n(4224),i=n(5142)},8553:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT:()=>o,NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT:()=>a,METERED_DEFAULT_FALLBACK_ENTITLEMENT:()=>s,ENUM_DEFAULT_FALLBACK_ENTITLEMENT:()=>u,CREDIT_DEFAULT_FALLBACK_ENTITLEMENT:()=>c,CustomerModel:()=>l});var r=n(9392),i={};for(const e in r)["default","BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT","NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT","METERED_DEFAULT_FALLBACK_ENTITLEMENT","ENUM_DEFAULT_FALLBACK_ENTITLEMENT","CREDIT_DEFAULT_FALLBACK_ENTITLEMENT","CustomerModel"].indexOf(e)<0&&(i[e]=()=>r[e]);n.d(t,i);var o={isFallback:!0,hasAccess:!1,accessDeniedReason:r.AccessDeniedReason.Unknown},a={isFallback:!0,hasAccess:!1,isUnlimited:!1,accessDeniedReason:r.AccessDeniedReason.Unknown},s={isFallback:!0,hasAccess:!1,isUnlimited:!1,currentUsage:0,requestedUsage:1,accessDeniedReason:r.AccessDeniedReason.Unknown},u={isFallback:!0,hasAccess:!1,enumValues:[],accessDeniedReason:r.AccessDeniedReason.Unknown},c={isFallback:!0,hasAccess:!1,accessDeniedReason:r.AccessDeniedReason.Unknown,currency:{currencyId:""},usageLimit:0,currentUsage:0,remaining:0,usagePeriodEnd:void 0},l=function(){function e(e){Object.assign(this,e)}return e.prototype.getActiveSubscriptions=function(){return this.subscriptions.filter(function(e){return e.status===r.SubscriptionStatus.Active})},e.prototype.getActiveTrials=function(){return this.subscriptions.filter(function(e){return e.status===r.SubscriptionStatus.InTrial})},e.prototype.getActivePromotionalEntitlements=function(){return this.promotionalEntitlements.filter(function(e){return e.status===r.PromotionalEntitlementStatus.Active})},e}()},4224:(e,t,n)=>{"use strict";n.d(t,{o:()=>p});var r,i=n(660),o=n(8553),a=n(8593),s=(r=function(e,t){return r=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])},r(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 n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){return u=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},u.apply(this,arguments)},c=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())})},l=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])}}},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),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 u(u({},o.BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT),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 u(u({},o.METERED_DEFAULT_FALLBACK_ENTITLEMENT),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 u(u({},o.NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT),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 u(u({},o.ENUM_DEFAULT_FALLBACK_ENTITLEMENT),i)},t.prototype.getCreditEntitlement=function(e){var t=e.currencyId,n=e.options,r=(null==n?void 0:n.fallback)||{},i=u(u(u({},o.CREDIT_DEFAULT_FALLBACK_ENTITLEMENT),{currency:{currencyId:t}}),r);return u(u({},i),{remaining:Math.max(i.usageLimit-i.currentUsage,0)})},t.prototype.getEntitlements=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,(0,a.$)(this.configuration.entitlementsFallback)]})})},t.prototype.getEntitlementsState=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{entitlements:(0,a.$)(this.configuration.entitlementsFallback),accessDeniedReason:null}]})})},t.prototype.addListener=function(){},t.prototype.clearCustomer=function(){},t.prototype.clearResource=function(){},t.prototype.getActiveSubscriptionsList=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,[]]})})},t.prototype.getCoupons=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,[]]})})},t.prototype.getSubscription=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{id:"mock-subscription-id",addons:[],futureUpdates:[],paymentCollection:o.PaymentCollection.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:o.PricingType.Paid,startDate:new Date,status:o.SubscriptionStatus.Active,totalPrice:{total:{amount:0,currency:o.Currency.Usd},subTotal:{amount:0,currency:o.Currency.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 c(this,void 0,void 0,function(){return l(this,function(e){return[2,this]})})},t.prototype.setResource=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2]})})},t.prototype.getCheckoutState=function(){return c(this,void 0,void 0,function(){return l(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:o.BillingVendorIdentifier.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 c(this,void 0,void 0,function(){return l(this,function(e){return[2,{subscription:void 0}]})})},t.prototype.estimateSubscription=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{billingPeriodRange:{},total:{amount:0,currency:o.Currency.Usd},subTotal:{amount:0,currency:o.Currency.Usd},totalExcludingTax:{amount:0,currency:o.Currency.Usd}}]})})},t.prototype.previewNextInvoice=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{lastUpdatedAt:new Date,amountDue:{amount:0,currency:o.Currency.Usd},minimumSpendAdjustment:{amount:0,currency:o.Currency.Usd},total:{amount:0,currency:o.Currency.Usd},subTotalExcludingTax:{amount:0,currency:o.Currency.Usd},subTotal:{amount:0,currency:o.Currency.Usd},totalExcludingTax:{amount:0,currency:o.Currency.Usd},tax:{amount:0,currency:o.Currency.Usd},lines:[]}]})})},t.prototype.previewSubscription=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{billingPeriodRange:{},immediateInvoice:{total:{amount:0,currency:o.Currency.Usd},subTotal:{amount:0,currency:o.Currency.Usd},totalExcludingTax:{amount:0,currency:o.Currency.Usd}}}]})})},t.prototype.estimateSubscriptionUpdate=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{billingPeriodRange:{},total:{amount:0,currency:o.Currency.Usd},subTotal:{amount:0,currency:o.Currency.Usd},totalExcludingTax:{amount:0,currency:o.Currency.Usd}}]})})},t.prototype.waitForCheckoutCompleted=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,null]})})},t.prototype.refresh=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2]})})},t.prototype.fetchUsageHistory=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,[]]})})},t.prototype.getUsageHistoryV2=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{markers:[],series:[]}]})})},t.prototype.setCustomerId=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2]})})},t.prototype.getPaywall=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{activeSubscriptions:[],currency:{code:o.Currency.Usd,symbol:"$"},plans:[],customer:null,resource:null}]})})},t.prototype.getCustomerPortal=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{subscriptions:[],entitlements:[],entitlementsV2:[],promotionalEntitlements:[],billingInformation:{},canUpgradeSubscription:!1,resource:null,showWatermark:!0}]})})},t.prototype.getActiveSubscriptions=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,[]]})})},t.prototype.getSubscriptions=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{data:[],pageInfo:{}}]})})},t.prototype.getCustomer=function(){return c(this,void 0,void 0,function(){return l(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 c(this,void 0,void 0,function(){return l(this,function(e){return[2,{__typename:"CreditBalanceSummary",customerId:"offline-customer-id",balances:[]}]})})},t.prototype.getCreditGrants=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{data:[],pageInfo:{},totalCount:0}]})})},t.prototype.getCreditLedger=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{data:[],pageInfo:{},totalCount:0}]})})},t.prototype.getCreditUsage=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{series:[]}]})})},t.prototype.createPaymentSession=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{__typename:"PaymentSession",token:"mock-token"}]})})},t.prototype.getShowWatermark=function(){return!1},t.prototype.getAutomaticRechargeConfiguration=function(e){return c(this,void 0,void 0,function(){return l(this,function(t){return[2,{__typename:"AutoRechargeSettingsDTO",customerId:e.customerId,currencyId:e.currencyId,isEnabled:!1,thresholdType:o.ThresholdType.CreditAmount,thresholdValue:0,targetBalance:0,maxSpendLimit:null,grantExpirationPeriod:o.GrantExpirationPeriod.OneMonth,currentMonthlySpend:0,createdAt:new Date,updatedAt:new Date}]})})},t.prototype.saveAutomaticRechargeConfiguration=function(e){return c(this,void 0,void 0,function(){var t,n,r,i,a;return l(this,function(s){return[2,{__typename:"AutoRechargeSettingsDTO",customerId:e.customerId,currencyId:e.currencyId,isEnabled:e.isEnabled,thresholdType:null!==(t=e.thresholdType)&&void 0!==t?t:o.ThresholdType.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!==(a=e.grantExpirationPeriod)&&void 0!==a?a:o.GrantExpirationPeriod.OneMonth,currentMonthlySpend:0,createdAt:new Date,updatedAt:new Date}]})})},t}(i.F)},3789:(e,t,n)=>{"use strict";n.d(t,{i:()=>r,m:()=>a});var r,i=n(1886),o=n.n(i);!function(e){e.ALL="ALL",e.NONE="NONE",e.LOG="LOG",e.ERROR="ERROR"}(r||(r={}));var a=function(){function e(e,t){this.logger=e,this.logLevel=t}return e.prototype.error=function(e,t){this.logLevel!==r.NONE&&this.logger.error("[Stigg] ".concat(e),t||{})},e.prototype.log=function(e,t){o()([r.ERROR,r.NONE],this.logLevel)||this.logger.log("[Stigg] ".concat(e),t||{})},e.prototype.debug=function(e,t){o()([r.LOG,r.ALL],this.logLevel)&&this.logger.debug("[Stigg] ".concat(e),t||{})},e}()},8593:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var r=n(8553),i=function(){return i=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},i.apply(this,arguments)};function o(e){return e?Object.keys(e).map(function(t){return i({isFallback:!0,accessDeniedReason:r.AccessDeniedReason.Unknown,feature:{id:t}},e[t])}):[]}},9202:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFeatureEntitlementFragment=function(e){return"FeatureEntitlement"===e.__typename},t.isCreditEntitlementFragment=function(e){return"CreditEntitlement"===e.__typename},t.isFeatureEntitlementWithSummary=function(e){return"FeatureEntitlementWithSummary"===(null==e?void 0:e.__typename)},t.isCreditEntitlementWithSummary=function(e){return"CreditEntitlementWithSummary"===(null==e?void 0:e.__typename)}},9438: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}),t.ErrorCode=t.EnvironmentType=t.EnvironmentSortFields=t.EnvironmentProvisionStatus=t.EnvironmentAccessRole=t.EntitySelectionMode=t.EntitlementsStateAccessDeniedReason=t.EntitlementType=t.EntitlementResetPeriod=t.EntitlementBehavior=t.DiscountType=t.DiscountDurationType=t.Department=t.CustomerSubscriptionSortFields=t.CustomerSortFields=t.CustomerResourceSortFields=t.Currency=t.CreditUsageTimeRange=t.CreditLedgerEventType=t.CreditGrantType=t.CreditGrantStatus=t.CreditGrantSourceType=t.CreditGrantInvoiceStatus=t.CreditGrantInvoiceBillingReason=t.CreditGrantCadence=t.CreditCadence=t.CouponType=t.CouponStatus=t.CouponSource=t.CouponSortFields=t.ConditionOperation=t.ChargeType=t.ChangeType=t.BillingVendorIdentifier=t.BillingPeriod=t.BillingModel=t.BillingCadence=t.BillingAnchor=t.Auth0ApplicationType=t.ApiKeyType=t.ApiKeySortFields=t.ApiKeyScopeResource=t.ApiKeyScopeAction=t.Alignment=t.AggregationFunction=t.AddonSortFields=t.AccountStatus=t.AccountAccessRole=t.AccountAccessMethod=t.AccessDeniedReason=void 0,t.SubscriptionAddonSortFields=t.SourceType=t.SortNulls=t.SortDirection=t.ScheduleStrategy=t.PublishMigrationType=t.ProvisionSubscriptionStatus=t.ProrationBehavior=t.PromotionalEntitlementStatus=t.PromotionalEntitlementSortFields=t.PromotionalEntitlementPeriod=t.ProductStatus=t.ProductSortFields=t.PricingType=t.PriceSortFields=t.PlanSortFields=t.PlanChangeType=t.PaymentMethodType=t.PaymentCollectionMethod=t.PaymentCollection=t.PackageStatus=t.PackageGroupStatus=t.PackageGroupSortFields=t.PackageEntitlementSortFields=t.PackageDtoSortFields=t.OverageBillingPeriod=t.OfferStatus=t.OfferSortFields=t.MonthlyAccordingTo=t.MeterType=t.MemberStatus=t.MemberSortFields=t.InvoiceLineItemType=t.IntegrationSortFields=t.ImportIntegrationTaskSortFields=t.HookStatus=t.HookSortFields=t.GrantExpirationPeriod=t.FontWeight=t.FeatureType=t.FeatureStatus=t.FeatureSortFields=t.FeatureGroupStatus=t.FeatureGroupSortFields=t.ExperimentStatus=t.ExperimentSortFields=t.EventLogType=t.EventLogSortFields=t.EventEntityType=t.EventActor=void 0,t.ProductFragmentDoc=t.TotalPriceFragmentDoc=t.PriceFragmentDoc=t.PriceTierFragmentDoc=t.CustomerResourceFragmentDoc=t.SubscriptionInvoiceFragmentDoc=t.CustomerFragmentDoc=t.PromotionalEntitlementFragmentDoc=t.CouponFragmentDoc=t.SlimCustomerFragmentDoc=t.SlimSubscriptionFragmentV2FragmentDoc=t.SubscriptionQueryFragmentDoc=t.PageInfoFragmentDoc=t.ExperimentGroupType=t.YearlyAccordingTo=t.WidgetType=t.WeeklyAccordingTo=t.VendorType=t.VendorIdentifier=t.UsageUpdateBehavior=t.UsageMeasurementSortFields=t.UsageMarkerType=t.UnitTransformationRound=t.TrialPeriodUnits=t.TrialEndBehavior=t.TiersMode=t.ThresholdType=t.TaskType=t.TaskStatus=t.SyncStatus=t.SubscriptionUpdateUsageCutoffBehavior=t.SubscriptionStatus=t.SubscriptionStartSetup=t.SubscriptionScheduleType=t.SubscriptionScheduleStatus=t.SubscriptionQuerySortFields=t.SubscriptionProrationBehavior=t.SubscriptionPriceSortFields=t.SubscriptionMigrationTime=t.SubscriptionMigrationTaskSortFields=t.SubscriptionInvoiceStatus=t.SubscriptionInvoiceBillingReason=t.SubscriptionEntitlementSortFields=t.SubscriptionEndSetup=t.SubscriptionDecisionStrategy=t.SubscriptionCouponStatus=t.SubscriptionCancellationTime=t.SubscriptionCancellationAction=t.SubscriptionCancelReason=t.SubscriptionBillingCycleAnchor=void 0,t.MockPaywallAddonDependencyFragmentDoc=t.MockPaywallPriceFragmentDoc=t.MockPaywallPackageEntitlementFragmentDoc=t.CheckoutStateFragmentDoc=t.ZuoraCheckoutCredentialsFragmentDoc=t.StripeCheckoutCredentialsFragmentDoc=t.CheckoutConfigurationFragmentDoc=t.CustomerPortalFragmentDoc=t.CustomerPortalConfigurationFragmentDoc=t.TypographyConfigurationFragmentDoc=t.FontVariantFragmentDoc=t.CustomerPortalBillingInformationFragmentDoc=t.CustomerPortalPromotionalEntitlementFragmentDoc=t.EntitlementUnionFragmentDoc=t.CreditEntitlementFragmentDoc=t.FeatureEntitlementFragmentDoc=t.CustomerPortalEntitlementFragmentDoc=t.CustomerPortalSubscriptionFragmentDoc=t.CustomerPortalSubscriptionScheduledUpdateDataFragmentDoc=t.CustomerPortalSubscriptionAddonFragmentDoc=t.CustomerPortalSubscriptionPriceFragmentDoc=t.CreditBalanceUpdatedPayloadFragmentDoc=t.PackagePublishedPayloadFragmentDoc=t.EntitlementUsageUpdatedFragmentDoc=t.UsageUpdatedFragmentDoc=t.EntitlementsUpdatedPayloadFragmentDoc=t.EntitlementFragmentDoc=t.FeatureFragmentDoc=t.ResetPeriodConfigurationFragmentDoc=t.SubscriptionInvoicePreviewFragmentDoc=t.SubscriptionPreviewV2FragmentDoc=t.SubscriptionPreviewInvoiceFragmentDoc=t.ImmediateSubscriptionPreviewInvoiceFragmentDoc=t.SubscriptionPreviewFragmentDoc=t.CustomerStatisticsFragmentDoc=t.CustomerWithSubscriptionsFragmentDoc=t.SubscriptionFragmentDoc=t.SubscriptionTrialConfigurationFragmentDoc=t.SubscriptionFutureUpdateDataFragmentDoc=t.SubscriptionScheduledUpdateDataFragmentDoc=t.ScheduleVariablesFragmentDoc=t.PlanFragmentDoc=t.PlanCompatiblePackageGroupsFragmentDoc=t.AddonFragmentDoc=t.AddonDependencyFragmentDoc=t.OveragePriceFragmentDoc=t.PackageEntitlementUnionFragmentDoc=t.PackageCreditEntitlementFragmentDoc=t.PackageFeatureEntitlementFragmentDoc=t.PackageEntitlementFragmentDoc=void 0,t.CreateSubscriptionDocument=t.ReportEntitlementCheckRequestedDocument=t.ReportEventDocument=t.ReportUsageBulkDocument=t.ReportUsageDocument=t.CancelSubscriptionUpdatesDocument=t.PreviewNextInvoiceDocument=t.PreviewSubscriptionDocument=t.EstimateSubscriptionUpdateDocument=t.EstimateSubscriptionDocument=t.CancelSubscriptionDocument=t.UpdateSubscriptionDocument=t.ImportSubscriptionsBulkDocument=t.ApplySubscriptionDocument=t.ProvisionSubscriptionDocument=t.RevokePromotionalEntitlementDocument=t.GrantPromotionalEntitlementsDocument=t.DetachCustomerPaymentMethodDocument=t.UpdateCustomerDocument=t.ImportCustomerDocument=t.ImportCustomerBulkDocument=t.ProvisionCustomerDocument=t.UsageUpdatedV2PayloadFragmentDoc=t.UsageV2FragmentDoc=t.EntitlementReferenceFragmentDoc=t.EntitlementsUpdatedV2PayloadFragmentDoc=t.AutoRechargeSettingsFragmentDoc=t.CreditUsageFragmentDoc=t.SlimCustomCurrencyFragmentDoc=t.PaymentSessionFragmentDoc=t.CreditsBalanceSummaryFragmentDoc=t.CreditBalanceFragmentDoc=t.CreditLedgerFragmentDoc=t.CreditGrantFragmentDoc=t.CreditGrantInvoiceFragmentDoc=t.ReportUsageFragmentDoc=t.ProvisionSubscriptionFragmentDoc=t.ApplySubscriptionFragmentDoc=t.ProvisionCustomerFragmentDoc=t.SlimSubscriptionFragmentDoc=t.UsageHistoryV2FragmentDoc=t.UsageHistoryFragmentDoc=t.PaywallFragmentDoc=t.PaywallCalculatedPricePointsFragmentDoc=t.PaywallConfigurationFragmentDoc=t.LayoutConfigurationFragmentDoc=t.PaywallCurrencyFragmentDoc=t.MockPaywallPlanFragmentDoc=t.MockPaywallPlanCompatiblePackageGroupsFragmentDoc=t.MockPaywallAddonFragmentDoc=void 0,t.OnCreditBalanceUpdatedDocument=t.OnPackagePublishedDocument=t.OnUsageUpdatedV2Document=t.OnUsageUpdatedDocument=t.OnEntitlementsUpdatedV2Document=t.OnEntitlementsUpdatedDocument=t.GetAutomaticRechargeConfigurationDocument=t.GetCreditUsageDocument=t.GetCreditLedgerDocument=t.GetCreditGrantsDocument=t.GetCreditBalanceDocument=t.GetUsageHistoryV2Document=t.GetUsageHistoryDocument=t.GetMockPaywallDocument=t.GetCheckoutStateDocument=t.GetCustomerPortalByRefIdDocument=t.GetSdkConfigurationDocument=t.GetProductsDocument=t.GetEntitlementV2Document=t.GetEntitlementDocument=t.GetEntitlementsStateDocument=t.GetEntitlementsDocument=t.GetPaywallDocument=t.GetCouponsDocument=t.GetSubscriptionDocument=t.GetSubscriptionsDocument=t.GetActiveSubscriptionsListDocument=t.GetActiveSubscriptionsDocument=t.GetCustomerStatisticsDocument=t.GetCustomerByIdDocument=t.SaveAutomaticRechargeConfigurationDocument=t.CreateCouponDocument=t.VoidCreditGrantDocument=t.CreatePaymentSessionDocument=t.UnlinkPromotionalEntitlementsGroupDocument=t.RevokePromotionalEntitlementsGroupDocument=t.GrantPromotionalEntitlementsGroupDocument=t.GrantCreditsDocument=t.TransferSubscriptionToResourceDocument=t.DelegateSubscriptionToCustomerDocument=t.TransferSubscriptionDocument=t.UnarchiveCustomerDocument=t.ArchiveCustomerDocument=t.MigrateSubscriptionToLatestDocument=void 0,t.getSdk=function(e,n=kt){return{ProvisionCustomer:(r,i)=>n(n=>e.request(t.ProvisionCustomerDocument,r,Object.assign(Object.assign({},i),n)),"ProvisionCustomer","mutation"),ImportCustomerBulk:(r,i)=>n(n=>e.request(t.ImportCustomerBulkDocument,r,Object.assign(Object.assign({},i),n)),"ImportCustomerBulk","mutation"),ImportCustomer:(r,i)=>n(n=>e.request(t.ImportCustomerDocument,r,Object.assign(Object.assign({},i),n)),"ImportCustomer","mutation"),UpdateCustomer:(r,i)=>n(n=>e.request(t.UpdateCustomerDocument,r,Object.assign(Object.assign({},i),n)),"UpdateCustomer","mutation"),DetachCustomerPaymentMethod:(r,i)=>n(n=>e.request(t.DetachCustomerPaymentMethodDocument,r,Object.assign(Object.assign({},i),n)),"DetachCustomerPaymentMethod","mutation"),GrantPromotionalEntitlements:(r,i)=>n(n=>e.request(t.GrantPromotionalEntitlementsDocument,r,Object.assign(Object.assign({},i),n)),"GrantPromotionalEntitlements","mutation"),RevokePromotionalEntitlement:(r,i)=>n(n=>e.request(t.RevokePromotionalEntitlementDocument,r,Object.assign(Object.assign({},i),n)),"RevokePromotionalEntitlement","mutation"),ProvisionSubscription:(r,i)=>n(n=>e.request(t.ProvisionSubscriptionDocument,r,Object.assign(Object.assign({},i),n)),"ProvisionSubscription","mutation"),ApplySubscription:(r,i)=>n(n=>e.request(t.ApplySubscriptionDocument,r,Object.assign(Object.assign({},i),n)),"ApplySubscription","mutation"),ImportSubscriptionsBulk:(r,i)=>n(n=>e.request(t.ImportSubscriptionsBulkDocument,r,Object.assign(Object.assign({},i),n)),"ImportSubscriptionsBulk","mutation"),UpdateSubscription:(r,i)=>n(n=>e.request(t.UpdateSubscriptionDocument,r,Object.assign(Object.assign({},i),n)),"UpdateSubscription","mutation"),CancelSubscription:(r,i)=>n(n=>e.request(t.CancelSubscriptionDocument,r,Object.assign(Object.assign({},i),n)),"CancelSubscription","mutation"),EstimateSubscription:(r,i)=>n(n=>e.request(t.EstimateSubscriptionDocument,r,Object.assign(Object.assign({},i),n)),"EstimateSubscription","mutation"),EstimateSubscriptionUpdate:(r,i)=>n(n=>e.request(t.EstimateSubscriptionUpdateDocument,r,Object.assign(Object.assign({},i),n)),"EstimateSubscriptionUpdate","mutation"),PreviewSubscription:(r,i)=>n(n=>e.request(t.PreviewSubscriptionDocument,r,Object.assign(Object.assign({},i),n)),"PreviewSubscription","mutation"),PreviewNextInvoice:(r,i)=>n(n=>e.request(t.PreviewNextInvoiceDocument,r,Object.assign(Object.assign({},i),n)),"PreviewNextInvoice","mutation"),CancelSubscriptionUpdates:(r,i)=>n(n=>e.request(t.CancelSubscriptionUpdatesDocument,r,Object.assign(Object.assign({},i),n)),"CancelSubscriptionUpdates","mutation"),ReportUsage:(r,i)=>n(n=>e.request(t.ReportUsageDocument,r,Object.assign(Object.assign({},i),n)),"ReportUsage","mutation"),ReportUsageBulk:(r,i)=>n(n=>e.request(t.ReportUsageBulkDocument,r,Object.assign(Object.assign({},i),n)),"ReportUsageBulk","mutation"),ReportEvent:(r,i)=>n(n=>e.request(t.ReportEventDocument,r,Object.assign(Object.assign({},i),n)),"ReportEvent","mutation"),ReportEntitlementCheckRequested:(r,i)=>n(n=>e.request(t.ReportEntitlementCheckRequestedDocument,r,Object.assign(Object.assign({},i),n)),"ReportEntitlementCheckRequested","mutation"),CreateSubscription:(r,i)=>n(n=>e.request(t.CreateSubscriptionDocument,r,Object.assign(Object.assign({},i),n)),"CreateSubscription","mutation"),MigrateSubscriptionToLatest:(r,i)=>n(n=>e.request(t.MigrateSubscriptionToLatestDocument,r,Object.assign(Object.assign({},i),n)),"MigrateSubscriptionToLatest","mutation"),ArchiveCustomer:(r,i)=>n(n=>e.request(t.ArchiveCustomerDocument,r,Object.assign(Object.assign({},i),n)),"ArchiveCustomer","mutation"),UnarchiveCustomer:(r,i)=>n(n=>e.request(t.UnarchiveCustomerDocument,r,Object.assign(Object.assign({},i),n)),"UnarchiveCustomer","mutation"),TransferSubscription:(r,i)=>n(n=>e.request(t.TransferSubscriptionDocument,r,Object.assign(Object.assign({},i),n)),"TransferSubscription","mutation"),DelegateSubscriptionToCustomer:(r,i)=>n(n=>e.request(t.DelegateSubscriptionToCustomerDocument,r,Object.assign(Object.assign({},i),n)),"DelegateSubscriptionToCustomer","mutation"),TransferSubscriptionToResource:(r,i)=>n(n=>e.request(t.TransferSubscriptionToResourceDocument,r,Object.assign(Object.assign({},i),n)),"TransferSubscriptionToResource","mutation"),GrantCredits:(r,i)=>n(n=>e.request(t.GrantCreditsDocument,r,Object.assign(Object.assign({},i),n)),"GrantCredits","mutation"),GrantPromotionalEntitlementsGroup:(r,i)=>n(n=>e.request(t.GrantPromotionalEntitlementsGroupDocument,r,Object.assign(Object.assign({},i),n)),"GrantPromotionalEntitlementsGroup","mutation"),RevokePromotionalEntitlementsGroup:(r,i)=>n(n=>e.request(t.RevokePromotionalEntitlementsGroupDocument,r,Object.assign(Object.assign({},i),n)),"RevokePromotionalEntitlementsGroup","mutation"),UnlinkPromotionalEntitlementsGroup:(r,i)=>n(n=>e.request(t.UnlinkPromotionalEntitlementsGroupDocument,r,Object.assign(Object.assign({},i),n)),"UnlinkPromotionalEntitlementsGroup","mutation"),CreatePaymentSession:(r,i)=>n(n=>e.request(t.CreatePaymentSessionDocument,r,Object.assign(Object.assign({},i),n)),"CreatePaymentSession","mutation"),VoidCreditGrant:(r,i)=>n(n=>e.request(t.VoidCreditGrantDocument,r,Object.assign(Object.assign({},i),n)),"VoidCreditGrant","mutation"),CreateCoupon:(r,i)=>n(n=>e.request(t.CreateCouponDocument,r,Object.assign(Object.assign({},i),n)),"CreateCoupon","mutation"),SaveAutomaticRechargeConfiguration:(r,i)=>n(n=>e.request(t.SaveAutomaticRechargeConfigurationDocument,r,Object.assign(Object.assign({},i),n)),"SaveAutomaticRechargeConfiguration","mutation"),GetCustomerById:(r,i)=>n(n=>e.request(t.GetCustomerByIdDocument,r,Object.assign(Object.assign({},i),n)),"GetCustomerById","query"),GetCustomerStatistics:(r,i)=>n(n=>e.request(t.GetCustomerStatisticsDocument,r,Object.assign(Object.assign({},i),n)),"GetCustomerStatistics","query"),GetActiveSubscriptions:(r,i)=>n(n=>e.request(t.GetActiveSubscriptionsDocument,r,Object.assign(Object.assign({},i),n)),"GetActiveSubscriptions","query"),GetActiveSubscriptionsList:(r,i)=>n(n=>e.request(t.GetActiveSubscriptionsListDocument,r,Object.assign(Object.assign({},i),n)),"GetActiveSubscriptionsList","query"),GetSubscriptions:(r,i)=>n(n=>e.request(t.GetSubscriptionsDocument,r,Object.assign(Object.assign({},i),n)),"GetSubscriptions","query"),GetSubscription:(r,i)=>n(n=>e.request(t.GetSubscriptionDocument,r,Object.assign(Object.assign({},i),n)),"GetSubscription","query"),GetCoupons:(r,i)=>n(n=>e.request(t.GetCouponsDocument,r,Object.assign(Object.assign({},i),n)),"GetCoupons","query"),GetPaywall:(r,i)=>n(n=>e.request(t.GetPaywallDocument,r,Object.assign(Object.assign({},i),n)),"GetPaywall","query"),GetEntitlements:(r,i)=>n(n=>e.request(t.GetEntitlementsDocument,r,Object.assign(Object.assign({},i),n)),"GetEntitlements","query"),GetEntitlementsState:(r,i)=>n(n=>e.request(t.GetEntitlementsStateDocument,r,Object.assign(Object.assign({},i),n)),"GetEntitlementsState","query"),GetEntitlement:(r,i)=>n(n=>e.request(t.GetEntitlementDocument,r,Object.assign(Object.assign({},i),n)),"GetEntitlement","query"),GetEntitlementV2:(r,i)=>n(n=>e.request(t.GetEntitlementV2Document,r,Object.assign(Object.assign({},i),n)),"GetEntitlementV2","query"),GetProducts:(r,i)=>n(n=>e.request(t.GetProductsDocument,r,Object.assign(Object.assign({},i),n)),"GetProducts","query"),GetSdkConfiguration:(r,i)=>n(n=>e.request(t.GetSdkConfigurationDocument,r,Object.assign(Object.assign({},i),n)),"GetSdkConfiguration","query"),GetCustomerPortalByRefId:(r,i)=>n(n=>e.request(t.GetCustomerPortalByRefIdDocument,r,Object.assign(Object.assign({},i),n)),"GetCustomerPortalByRefId","query"),GetCheckoutState:(r,i)=>n(n=>e.request(t.GetCheckoutStateDocument,r,Object.assign(Object.assign({},i),n)),"GetCheckoutState","query"),GetMockPaywall:(r,i)=>n(n=>e.request(t.GetMockPaywallDocument,r,Object.assign(Object.assign({},i),n)),"GetMockPaywall","query"),GetUsageHistory:(r,i)=>n(n=>e.request(t.GetUsageHistoryDocument,r,Object.assign(Object.assign({},i),n)),"GetUsageHistory","query"),GetUsageHistoryV2:(r,i)=>n(n=>e.request(t.GetUsageHistoryV2Document,r,Object.assign(Object.assign({},i),n)),"GetUsageHistoryV2","query"),GetCreditBalance:(r,i)=>n(n=>e.request(t.GetCreditBalanceDocument,r,Object.assign(Object.assign({},i),n)),"GetCreditBalance","query"),GetCreditGrants:(r,i)=>n(n=>e.request(t.GetCreditGrantsDocument,r,Object.assign(Object.assign({},i),n)),"GetCreditGrants","query"),GetCreditLedger:(r,i)=>n(n=>e.request(t.GetCreditLedgerDocument,r,Object.assign(Object.assign({},i),n)),"GetCreditLedger","query"),GetCreditUsage:(r,i)=>n(n=>e.request(t.GetCreditUsageDocument,r,Object.assign(Object.assign({},i),n)),"GetCreditUsage","query"),GetAutomaticRechargeConfiguration:(r,i)=>n(n=>e.request(t.GetAutomaticRechargeConfigurationDocument,r,Object.assign(Object.assign({},i),n)),"GetAutomaticRechargeConfiguration","query"),OnEntitlementsUpdated:(r,i)=>n(n=>e.request(t.OnEntitlementsUpdatedDocument,r,Object.assign(Object.assign({},i),n)),"OnEntitlementsUpdated","subscription"),OnEntitlementsUpdatedV2:(r,i)=>n(n=>e.request(t.OnEntitlementsUpdatedV2Document,r,Object.assign(Object.assign({},i),n)),"OnEntitlementsUpdatedV2","subscription"),OnUsageUpdated:(r,i)=>n(n=>e.request(t.OnUsageUpdatedDocument,r,Object.assign(Object.assign({},i),n)),"OnUsageUpdated","subscription"),OnUsageUpdatedV2:(r,i)=>n(n=>e.request(t.OnUsageUpdatedV2Document,r,Object.assign(Object.assign({},i),n)),"OnUsageUpdatedV2","subscription"),OnPackagePublished:(r,i)=>n(n=>e.request(t.OnPackagePublishedDocument,r,Object.assign(Object.assign({},i),n)),"OnPackagePublished","subscription"),OnCreditBalanceUpdated:(r,i)=>n(n=>e.request(t.OnCreditBalanceUpdatedDocument,r,Object.assign(Object.assign({},i),n)),"OnCreditBalanceUpdated","subscription")}};const i=r(n(81));var o,a,s,u,c,l,p,f,d,h,m,g,v,y,b,E,_,S,T,I,D,w,C,O,P,A,F,N,R,k,x,U,M,L,j,V,B,G,$,q,Q,H,z,Z,W,Y,K,J,X,ee,te,ne,re,ie,oe,ae,se,ue,ce,le,pe,fe,de,he,me,ge,ve,ye,be,Ee,_e,Se,Te,Ie,De,we,Ce,Oe,Pe,Ae,Fe,Ne,Re,ke,xe,Ue,Me,Le,je,Ve,Be,Ge,$e,qe,Qe,He,ze,Ze,We,Ye,Ke,Je,Xe,et,tt,nt,rt,it,ot,at,st,ut,ct,lt,pt,ft,dt,ht,mt,gt,vt,yt,bt,Et,_t,St,Tt,It,Dt,wt,Ct,Ot,Pt,At,Ft,Nt,Rt;!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"}(o||(t.AccessDeniedReason=o={})),function(e){e.AuthorizedDomain="AUTHORIZED_DOMAIN",e.InviteOnly="INVITE_ONLY",e.Sso="SSO"}(a||(t.AccountAccessMethod=a={})),function(e){e.Member="MEMBER",e.Owner="OWNER"}(s||(t.AccountAccessRole=s={})),function(e){e.Active="ACTIVE",e.Blocked="BLOCKED"}(u||(t.AccountStatus=u={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsLatest="isLatest",e.PricingType="pricingType",e.ProductId="productId",e.RefId="refId",e.Status="status",e.UpdatedAt="updatedAt",e.VersionNumber="versionNumber"}(c||(t.AddonSortFields=c={})),function(e){e.Avg="AVG",e.Count="COUNT",e.Max="MAX",e.Min="MIN",e.Sum="SUM",e.Unique="UNIQUE"}(l||(t.AggregationFunction=l={})),function(e){e.Center="CENTER",e.Left="LEFT",e.Right="RIGHT"}(p||(t.Alignment=p={})),function(e){e.Read="READ",e.Write="WRITE"}(f||(t.ApiKeyScopeAction=f={})),function(e){e.ApiKey="API_KEY",e.Coupon="COUPON",e.Customer="CUSTOMER",e.Environment="ENVIRONMENT",e.Subscription="SUBSCRIPTION"}(d||(t.ApiKeyScopeResource=d={})),function(e){e.Id="id"}(h||(t.ApiKeySortFields=h={})),function(e){e.Client="CLIENT",e.Salesforce="SALESFORCE",e.Scoped="SCOPED",e.Server="SERVER",e.Workflow="WORKFLOW"}(m||(t.ApiKeyType=m={})),function(e){e.Both="BOTH",e.Individual="INDIVIDUAL",e.Organization="ORGANIZATION"}(g||(t.Auth0ApplicationType=g={})),function(e){e.StartOfTheMonth="START_OF_THE_MONTH",e.SubscriptionsConsolidateBilling="SUBSCRIPTIONS_CONSOLIDATE_BILLING",e.SubscriptionStart="SUBSCRIPTION_START"}(v||(t.BillingAnchor=v={})),function(e){e.OneOff="ONE_OFF",e.Recurring="RECURRING"}(y||(t.BillingCadence=y={})),function(e){e.CreditBased="CREDIT_BASED",e.FlatFee="FLAT_FEE",e.MinimumSpend="MINIMUM_SPEND",e.PerUnit="PER_UNIT",e.UsageBased="USAGE_BASED"}(b||(t.BillingModel=b={})),function(e){e.Annually="ANNUALLY",e.Monthly="MONTHLY"}(E||(t.BillingPeriod=E={})),function(e){e.Stripe="STRIPE",e.Zuora="ZUORA"}(_||(t.BillingVendorIdentifier=_={})),function(e){e.Added="ADDED",e.Deleted="DELETED",e.Modified="MODIFIED",e.Reordered="REORDERED"}(S||(t.ChangeType=S={})),function(e){e.Credit="CREDIT",e.Feature="FEATURE"}(T||(t.ChargeType=T={})),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"}(I||(t.ConditionOperation=I={})),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"}(D||(t.CouponSortFields=D={})),function(e){e.Stigg="STIGG",e.StiggAdhoc="STIGG_ADHOC",e.Stripe="STRIPE"}(w||(t.CouponSource=w={})),function(e){e.Active="ACTIVE",e.Archived="ARCHIVED"}(C||(t.CouponStatus=C={})),function(e){e.Fixed="FIXED",e.Percentage="PERCENTAGE"}(O||(t.CouponType=O={})),function(e){e.Month="MONTH",e.Year="YEAR"}(P||(t.CreditCadence=P={})),function(e){e.BeginningOfBillingPeriod="BEGINNING_OF_BILLING_PERIOD",e.Monthly="MONTHLY"}(A||(t.CreditGrantCadence=A={})),function(e){e.Manual="MANUAL",e.Other="OTHER"}(F||(t.CreditGrantInvoiceBillingReason=F={})),function(e){e.Canceled="CANCELED",e.Open="OPEN",e.Paid="PAID"}(N||(t.CreditGrantInvoiceStatus=N={})),function(e){e.AddonEntitlement="ADDON_ENTITLEMENT",e.PlanEntitlement="PLAN_ENTITLEMENT",e.Price="PRICE"}(R||(t.CreditGrantSourceType=R={})),function(e){e.Active="ACTIVE",e.Expired="EXPIRED",e.PaymentPending="PAYMENT_PENDING",e.Scheduled="SCHEDULED",e.Voided="VOIDED"}(k||(t.CreditGrantStatus=k={})),function(e){e.Paid="PAID",e.Promotional="PROMOTIONAL",e.Recurring="RECURRING"}(x||(t.CreditGrantType=x={})),function(e){e.CreditsConsumed="CREDITS_CONSUMED",e.CreditsExpired="CREDITS_EXPIRED",e.CreditsGranted="CREDITS_GRANTED",e.CreditsUpdated="CREDITS_UPDATED",e.CreditsVoided="CREDITS_VOIDED"}(U||(t.CreditLedgerEventType=U={})),function(e){e.LastDay="LAST_DAY",e.LastMonth="LAST_MONTH",e.LastWeek="LAST_WEEK",e.LastYear="LAST_YEAR"}(M||(t.CreditUsageTimeRange=M={})),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"}(L||(t.Currency=L={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.ResourceId="resourceId"}(j||(t.CustomerResourceSortFields=j={})),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"}(V||(t.CustomerSortFields=V={})),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"}(B||(t.CustomerSubscriptionSortFields=B={})),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"}(G||(t.Department=G={})),function(e){e.Forever="FOREVER",e.Once="ONCE",e.Repeating="REPEATING"}($||(t.DiscountDurationType=$={})),function(e){e.Fixed="FIXED",e.Percentage="PERCENTAGE"}(q||(t.DiscountType=q={})),function(e){e.Increment="Increment",e.Override="Override"}(Q||(t.EntitlementBehavior=Q={})),function(e){e.Day="DAY",e.Hour="HOUR",e.Month="MONTH",e.Week="WEEK",e.Year="YEAR"}(H||(t.EntitlementResetPeriod=H={})),function(e){e.Credit="CREDIT",e.Feature="FEATURE"}(z||(t.EntitlementType=z={})),function(e){e.CustomerIsArchived="CustomerIsArchived",e.CustomerNotFound="CustomerNotFound",e.NoActiveSubscription="NoActiveSubscription"}(Z||(t.EntitlementsStateAccessDeniedReason=Z={})),function(e){e.BlackList="BLACK_LIST",e.WhiteList="WHITE_LIST"}(W||(t.EntitySelectionMode=W={})),function(e){e.Admin="ADMIN",e.None="NONE",e.Support="SUPPORT",e.Viewer="VIEWER"}(Y||(t.EnvironmentAccessRole=Y={})),function(e){e.Done="DONE",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.NotProvisioned="NOT_PROVISIONED"}(K||(t.EnvironmentProvisionStatus=K={})),function(e){e.CreatedAt="createdAt",e.DisplayName="displayName",e.Id="id",e.PermanentDeletionDate="permanentDeletionDate",e.Slug="slug"}(J||(t.EnvironmentSortFields=J={})),function(e){e.Development="DEVELOPMENT",e.Production="PRODUCTION",e.Sandbox="SANDBOX"}(X||(t.EnvironmentType=X={})),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.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.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.InvalidSubscriptionStatus="InvalidSubscriptionStatus",e.InvalidTaxId="InvalidTaxId",e.InvalidUpdatePriceUnitAmountError="InvalidUpdatePriceUnitAmountError",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.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.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"}(ee||(t.ErrorCode=ee={})),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"}(te||(t.EventActor=te={})),function(e){e.Addon="ADDON",e.Coupon="COUPON",e.Credit="CREDIT",e.Customer="CUSTOMER",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"}(ne||(t.EventEntityType=ne={})),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"}(re||(t.EventLogSortFields=re={})),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.EdgeApiClientConfigurationDataResync="EDGE_API_CLIENT_CONFIGURATION_DATA_RESYNC",e.EdgeApiCustomerDataResync="EDGE_API_CUSTOMER_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"}(ie||(t.EventLogType=ie={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Name="name",e.ProductId="productId",e.RefId="refId",e.Status="status"}(oe||(t.ExperimentSortFields=oe={})),function(e){e.Completed="COMPLETED",e.Draft="DRAFT",e.InProgress="IN_PROGRESS"}(ae||(t.ExperimentStatus=ae={})),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"}(se||(t.FeatureGroupSortFields=se={})),function(e){e.Archived="ARCHIVED",e.Published="PUBLISHED"}(ue||(t.FeatureGroupStatus=ue={})),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"}(ce||(t.FeatureSortFields=ce={})),function(e){e.Active="ACTIVE",e.New="NEW",e.Suspended="SUSPENDED"}(le||(t.FeatureStatus=le={})),function(e){e.Boolean="BOOLEAN",e.Enum="ENUM",e.Number="NUMBER"}(pe||(t.FeatureType=pe={})),function(e){e.Bold="BOLD",e.Normal="NORMAL"}(fe||(t.FontWeight=fe={})),function(e){e.OneMonth="OneMonth",e.OneYear="OneYear"}(de||(t.GrantExpirationPeriod=de={})),function(e){e.CreatedAt="createdAt",e.Endpoint="endpoint",e.EnvironmentId="environmentId",e.Id="id",e.Status="status"}(he||(t.HookSortFields=he={})),function(e){e.Active="ACTIVE",e.Inactive="INACTIVE"}(me||(t.HookStatus=me={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.TaskType="taskType"}(ge||(t.ImportIntegrationTaskSortFields=ge={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.VendorIdentifier="vendorIdentifier",e.VendorType="vendorType"}(ve||(t.IntegrationSortFields=ve={})),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"}(ye||(t.InvoiceLineItemType=ye={})),function(e){e.CreatedAt="createdAt",e.Email="email",e.Id="id"}(be||(t.MemberSortFields=be={})),function(e){e.Invited="INVITED",e.Registered="REGISTERED"}(Ee||(t.MemberStatus=Ee={})),function(e){e.Fluctuating="Fluctuating",e.Incremental="Incremental",e.None="None"}(_e||(t.MeterType=_e={})),function(e){e.StartOfTheMonth="StartOfTheMonth",e.SubscriptionStart="SubscriptionStart"}(Se||(t.MonthlyAccordingTo=Se={})),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"}(Te||(t.OfferSortFields=Te={})),function(e){e.Archived="ARCHIVED",e.Draft="DRAFT",e.Published="PUBLISHED"}(Ie||(t.OfferStatus=Ie={})),function(e){e.Monthly="MONTHLY",e.OnSubscriptionRenewal="ON_SUBSCRIPTION_RENEWAL"}(De||(t.OverageBillingPeriod=De={})),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"}(we||(t.PackageDtoSortFields=we={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.PackageId="packageId",e.UpdatedAt="updatedAt"}(Ce||(t.PackageEntitlementSortFields=Ce={})),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"}(Oe||(t.PackageGroupSortFields=Oe={})),function(e){e.Archived="ARCHIVED",e.Draft="DRAFT",e.Published="PUBLISHED"}(Pe||(t.PackageGroupStatus=Pe={})),function(e){e.Archived="ARCHIVED",e.Draft="DRAFT",e.Published="PUBLISHED"}(Ae||(t.PackageStatus=Ae={})),function(e){e.ActionRequired="ACTION_REQUIRED",e.Failed="FAILED",e.NotRequired="NOT_REQUIRED",e.Processing="PROCESSING"}(Fe||(t.PaymentCollection=Fe={})),function(e){e.Charge="CHARGE",e.Invoice="INVOICE",e.None="NONE"}(Ne||(t.PaymentCollectionMethod=Ne={})),function(e){e.Bank="BANK",e.Card="CARD",e.CashApp="CASH_APP"}(Re||(t.PaymentMethodType=Re={})),function(e){e.Downgrade="DOWNGRADE",e.None="NONE",e.Upgrade="UPGRADE"}(ke||(t.PlanChangeType=ke={})),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"}(xe||(t.PlanSortFields=xe={})),function(e){e.BillingCadence="billingCadence",e.BillingId="billingId",e.BillingModel="billingModel",e.BillingPeriod="billingPeriod",e.CreatedAt="createdAt",e.Id="id",e.TiersMode="tiersMode"}(Ue||(t.PriceSortFields=Ue={})),function(e){e.Custom="CUSTOM",e.Free="FREE",e.Paid="PAID"}(Me||(t.PricingType=Me={})),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"}(Le||(t.ProductSortFields=Le={})),function(e){e.Archived="ARCHIVED",e.Published="PUBLISHED"}(je||(t.ProductStatus=je={})),function(e){e.Custom="CUSTOM",e.Lifetime="LIFETIME",e.OneMonth="ONE_MONTH",e.OneWeek="ONE_WEEK",e.OneYear="ONE_YEAR",e.SixMonth="SIX_MONTH"}(Ve||(t.PromotionalEntitlementPeriod=Ve={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.UpdatedAt="updatedAt"}(Be||(t.PromotionalEntitlementSortFields=Be={})),function(e){e.Active="Active",e.Expired="Expired",e.Paused="Paused"}(Ge||(t.PromotionalEntitlementStatus=Ge={})),function(e){e.CreateProrations="CREATE_PRORATIONS",e.InvoiceImmediately="INVOICE_IMMEDIATELY"}($e||(t.ProrationBehavior=$e={})),function(e){e.PaymentRequired="PAYMENT_REQUIRED",e.Success="SUCCESS"}(qe||(t.ProvisionSubscriptionStatus=qe={})),function(e){e.AllCustomers="ALL_CUSTOMERS",e.NewCustomers="NEW_CUSTOMERS"}(Qe||(t.PublishMigrationType=Qe={})),function(e){e.EndOfBillingMonth="END_OF_BILLING_MONTH",e.EndOfBillingPeriod="END_OF_BILLING_PERIOD",e.Immediate="IMMEDIATE"}(He||(t.ScheduleStrategy=He={})),function(e){e.Asc="ASC",e.Desc="DESC"}(ze||(t.SortDirection=ze={})),function(e){e.NullsFirst="NULLS_FIRST",e.NullsLast="NULLS_LAST"}(Ze||(t.SortNulls=Ze={})),function(e){e.JsClientSdk="JS_CLIENT_SDK",e.NodeServerSdk="NODE_SERVER_SDK",e.PersistentCacheService="PERSISTENT_CACHE_SERVICE"}(We||(t.SourceType=We={})),function(e){e.CreatedAt="createdAt",e.Id="id",e.Quantity="quantity",e.UpdatedAt="updatedAt"}(Ye||(t.SubscriptionAddonSortFields=Ye={})),function(e){e.Now="NOW",e.Unchanged="UNCHANGED"}(Ke||(t.SubscriptionBillingCycleAnchor=Ke={})),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"}(Je||(t.SubscriptionCancelReason=Je={})),function(e){e.Default="DEFAULT",e.RevokeEntitlements="REVOKE_ENTITLEMENTS"}(Xe||(t.SubscriptionCancellationAction=Xe={})),function(e){e.EndOfBillingPeriod="END_OF_BILLING_PERIOD",e.Immediate="IMMEDIATE",e.SpecificDate="SPECIFIC_DATE"}(et||(t.SubscriptionCancellationTime=et={})),function(e){e.Active="ACTIVE",e.Expired="EXPIRED",e.Removed="REMOVED"}(tt||(t.SubscriptionCouponStatus=tt={})),function(e){e.PredefinedFreePlan="PREDEFINED_FREE_PLAN",e.PredefinedTrialPlan="PREDEFINED_TRIAL_PLAN",e.RequestedPlan="REQUESTED_PLAN",e.SkippedSubscriptionCreation="SKIPPED_SUBSCRIPTION_CREATION"}(nt||(t.SubscriptionDecisionStrategy=nt={})),function(e){e.CancelSubscription="CANCEL_SUBSCRIPTION",e.DowngradeToFree="DOWNGRADE_TO_FREE"}(rt||(t.SubscriptionEndSetup=rt={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.SubscriptionId="subscriptionId",e.UpdatedAt="updatedAt"}(it||(t.SubscriptionEntitlementSortFields=it={})),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"}(ot||(t.SubscriptionInvoiceBillingReason=ot={})),function(e){e.Canceled="CANCELED",e.Open="OPEN",e.Paid="PAID"}(at||(t.SubscriptionInvoiceStatus=at={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.TaskType="taskType"}(st||(t.SubscriptionMigrationTaskSortFields=st={})),function(e){e.EndOfBillingPeriod="END_OF_BILLING_PERIOD",e.Immediate="IMMEDIATE"}(ut||(t.SubscriptionMigrationTime=ut={})),function(e){e.BillingModel="billingModel",e.CreatedAt="createdAt",e.FeatureId="featureId",e.HasSoftLimit="hasSoftLimit",e.Id="id",e.UpdatedAt="updatedAt",e.UsageLimit="usageLimit"}(ct||(t.SubscriptionPriceSortFields=ct={})),function(e){e.CreateProrations="CREATE_PRORATIONS",e.InvoiceImmediately="INVOICE_IMMEDIATELY",e.None="NONE"}(lt||(t.SubscriptionProrationBehavior=lt={})),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"}(pt||(t.SubscriptionQuerySortFields=pt={})),function(e){e.Canceled="Canceled",e.Done="Done",e.Failed="Failed",e.PendingPayment="PendingPayment",e.Scheduled="Scheduled"}(ft||(t.SubscriptionScheduleStatus=ft={})),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"}(dt||(t.SubscriptionScheduleType=dt={})),function(e){e.FreePlan="FREE_PLAN",e.PlanSelection="PLAN_SELECTION",e.TrialPeriod="TRIAL_PERIOD"}(ht||(t.SubscriptionStartSetup=ht={})),function(e){e.Active="ACTIVE",e.Canceled="CANCELED",e.Expired="EXPIRED",e.InTrial="IN_TRIAL",e.NotStarted="NOT_STARTED",e.PaymentPending="PAYMENT_PENDING"}(mt||(t.SubscriptionStatus=mt={})),function(e){e.AlwaysReset="ALWAYS_RESET",e.BillingPeriodChange="BILLING_PERIOD_CHANGE",e.NeverReset="NEVER_RESET"}(gt||(t.SubscriptionUpdateUsageCutoffBehavior=gt={})),function(e){e.Error="ERROR",e.NoSyncRequired="NO_SYNC_REQUIRED",e.Pending="PENDING",e.Success="SUCCESS"}(vt||(t.SyncStatus=vt={})),function(e){e.Canceled="CANCELED",e.Completed="COMPLETED",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.PartiallyFailed="PARTIALLY_FAILED",e.Pending="PENDING"}(yt||(t.TaskStatus=yt={})),function(e){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"}(bt||(t.TaskType=bt={})),function(e){e.CreditAmount="CreditAmount",e.DollarAmount="DollarAmount"}(Et||(t.ThresholdType=Et={})),function(e){e.Graduated="GRADUATED",e.Volume="VOLUME"}(_t||(t.TiersMode=_t={})),function(e){e.CancelSubscription="CANCEL_SUBSCRIPTION",e.ConvertToPaid="CONVERT_TO_PAID"}(St||(t.TrialEndBehavior=St={})),function(e){e.Day="DAY",e.Month="MONTH"}(Tt||(t.TrialPeriodUnits=Tt={})),function(e){e.Down="DOWN",e.Up="UP"}(It||(t.UnitTransformationRound=It={})),function(e){e.PeriodicReset="PERIODIC_RESET",e.SubscriptionChangeReset="SUBSCRIPTION_CHANGE_RESET"}(Dt||(t.UsageMarkerType=Dt={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id"}(wt||(t.UsageMeasurementSortFields=wt={})),function(e){e.Delta="DELTA",e.Set="SET"}(Ct||(t.UsageUpdateBehavior=Ct={})),function(e){e.AppStore="APP_STORE",e.Auth0="AUTH0",e.AwsMarketplace="AWS_MARKETPLACE",e.BigQuery="BIG_QUERY",e.Hubspot="HUBSPOT",e.OpenFga="OPEN_FGA",e.Salesforce="SALESFORCE",e.Snowflake="SNOWFLAKE",e.Stripe="STRIPE",e.Zuora="ZUORA"}(Ot||(t.VendorIdentifier=Ot={})),function(e){e.Auth="AUTH",e.Billing="BILLING",e.Crm="CRM",e.DataExport="DATA_EXPORT",e.Marketplace="MARKETPLACE"}(Pt||(t.VendorType=Pt={})),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"}(At||(t.WeeklyAccordingTo=At={})),function(e){e.Checkout="CHECKOUT",e.CustomerPortal="CUSTOMER_PORTAL",e.Paywall="PAYWALL"}(Ft||(t.WidgetType=Ft={})),function(e){e.SubscriptionStart="SubscriptionStart"}(Nt||(t.YearlyAccordingTo=Nt={})),function(e){e.Control="CONTROL",e.Variant="VARIANT"}(Rt||(t.ExperimentGroupType=Rt={})),t.PageInfoFragmentDoc=i.default`
|
|
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 f(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return 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 v(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function y(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=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=y(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(v);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(S)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=p(e),t=f(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)]=f(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)}),d(e)},h.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),d(e)},h.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),d(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 S(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 T(e,t){if(!(this instanceof T))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(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},T.error=function(){var e=new T(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var I=[301,302,303,307,308];T.redirect=function(e,t){if(-1===I.indexOf(t))throw new RangeError("Invalid status code");return new T(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 D(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 T(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 d=[];Object.getOwnPropertyNames(n.headers).forEach(function(e){d.push(p(e)),c.setRequestHeader(e,f(n.headers[e]))}),s.headers.forEach(function(e,t){-1===d.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)})}D.polyfill=!0,r.fetch||(r.fetch=D,r.Headers=h,r.Request=_,r.Response=T),t.Headers=h,t.Request=_,t.Response=T,t.fetch=D,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 f(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return 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 v(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function y(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=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=y(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(v);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(S)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=p(e),t=f(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)]=f(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)}),d(e)},h.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),d(e)},h.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),d(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 S(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 T(e,t){if(!(this instanceof T))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(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},T.error=function(){var e=new T(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var I=[301,302,303,307,308];T.redirect=function(e,t){if(-1===I.indexOf(t))throw new RangeError("Invalid status code");return new T(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 D(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 T(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 d=[];Object.getOwnPropertyNames(n.headers).forEach(function(e){d.push(p(e)),c.setRequestHeader(e,f(n.headers[e]))}),s.headers.forEach(function(e,t){-1===d.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)})}D.polyfill=!0,r.fetch||(r.fetch=D,r.Headers=h,r.Request=_,r.Response=T),t.Headers=h,t.Request=_,t.Response=T,t.fetch=D,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",f="Invalid Date",d=/^(\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},v={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}},y="en",b={};b[y]=m;var E="$isDayjsObject",_=function(e){return e instanceof D||!(!e||!e[E])},S=function e(t,n,r){var i;if(!t)return y;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&&(y=i),i||!r&&y},T=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new D(n)},I=v;I.l=S,I.i=_,I.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function m(e){this.$L=S(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(I.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(d);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 I},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var n=T(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return T(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<T(e)},g.$g=function(e,t,n){return I.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=!!I.u(t)||t,f=I.p(e),d=function(e,t){var r=I.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 I.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,v=this.$D,y="set"+(this.$u?"UTC":"");switch(f){case l:return c?d(1,0):d(31,11);case u:return c?d(1,g):d(0,g+1);case s:var b=this.$locale().weekStart||0,E=(m<b?m+7:m)-b;return d(c?v-E:v+(6-E),g);case a:case p:return h(y+"Hours",0);case o:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case r:return h(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,c=I.p(e),f="set"+(this.$u?"UTC":""),d=(s={},s[a]=f+"Date",s[p]=f+"Date",s[u]=f+"Month",s[l]=f+"FullYear",s[o]=f+"Hours",s[i]=f+"Minutes",s[r]=f+"Seconds",s[n]=f+"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[d](h),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[I.p(e)]()},g.add=function(n,c){var p,f=this;n=Number(n);var d=I.p(c),h=function(e){var t=T(f);return I.w(t.date(t.date()+Math.round(e*n)),f)};if(d===u)return this.set(u,this.$M+n);if(d===l)return this.set(l,this.$y+n);if(d===a)return h(1);if(d===s)return h(7);var m=(p={},p[i]=e,p[o]=t,p[r]=1e3,p)[d]||1,g=this.$d.getTime()+n*m;return I.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||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=I.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)},d=function(e){return I.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 I.s(t.$y,4,"0");case"M":return s+1;case"MM":return I.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 I.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 I.s(o,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return m(o,a,!0);case"A":return m(o,a,!1);case"m":return String(a);case"mm":return I.s(a,2,"0");case"s":return String(t.$s);case"ss":return I.s(t.$s,2,"0");case"SSS":return I.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,f){var d,h=this,m=I.p(p),g=T(n),v=(g.utcOffset()-this.utcOffset())*e,y=this-g,b=function(){return I.m(h,g)};switch(m){case l:d=b()/12;break;case u:d=b();break;case c:d=b()/3;break;case s:d=(y-v)/6048e5;break;case a:d=(y-v)/864e5;break;case o:d=y/t;break;case i:d=y/e;break;case r:d=y/1e3;break;default:d=y}return f?d:I.a(d)},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=S(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return I.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=D.prototype;return T.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])}}),T.extend=function(e,t){return e.$i||(e(t,D,T),e.$i=!0),T},T.locale=S,T.isDayjs=_,T.unix=function(e){return T(1e3*e)},T.en=b[y],T.Ls=b,T.p={},T}()},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 f(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 d(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 f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,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(5145)),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 f=new("undefined"==typeof FormData?o.default:FormData);f.append("operations",r.stringify(c));var d={},h=0;return l.forEach(function(e){d[++h]=e}),f.append("map",r.stringify(d)),h=0,l.forEach(function(e,t){f.append("".concat(++h),t)}),f}},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}(),f=function(){function e(e,t){var n=t.onInit,s=t.onAcknowledged,f=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=d,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=(y=t.data,void 0===b&&(b=function(e){return e}),p.parse(y,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(f?f(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,d=i.variables,v=i.subscriber;switch(n.type){case"next":return!n.payload.errors&&n.payload.data&&v.next&&v.next(n.payload.data),void(n.payload.errors&&v.error&&v.error(new a.ClientError(r(r({},n.payload),{status:200}),{query:o,variables:d})));case"error":return void(v.error&&v.error(new a.ClientError({errors:n.payload,status:200},{query:o,variables:d})));case l:return v.complete&&v.complete(),void delete g.socketState.subscriptions[n.id]}}catch(t){console.error(t),e.close(1006)}var y,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 d(e){return new p("connection_init",e)}function h(e){return new p(c,e,void 0)}t.GraphQLWebSocketClient=f},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 f=a(n(6279)),d=f,h=p(n(8749)),m=n(7077),g=n(8041),v=n(8328);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return v.ClientError}});var y=n(8139),b=function(e){var t={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||d&&d.Headers&&e instanceof d.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,f=e.middleware;return s(void 0,void 0,void 0,function(){var e,s,d;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),f?[4,Promise.resolve(f(r(r({},s),{url:t,operationName:o,variables:i})))]:[3,2];case 1:d=u.sent(),t=d.url,s=c(d,["url"]),u.label=2;case 2:return[4,l(t,s)];case 3:return[2,u.sent()]}})})},S=function(e){var t=e.url,n=e.query,i=e.variables,o=e.operationName,a=e.headers,l=e.fetch,p=e.fetchOptions,f=e.middleware;return s(void 0,void 0,void 0,function(){var e,s,d;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),f?[4,Promise.resolve(f(r(r({},s),{url:t,operationName:o,variables:i})))]:[3,2];case 1:d=u.sent(),t=d.url,s=c(d,["url"]),u.label=2;case 2:return[4,l("".concat(t,"?").concat(e),s)];case 3:return[2,u.sent()]}})})},T=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,d,h,m,v,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?f.default:s,p=o.method,d=void 0===p?"POST":p,h=o.requestMiddleware,m=o.responseMiddleware,v=c(o,["headers","fetch","method","requestMiddleware","responseMiddleware"]),E=this.url,void 0!==i.signal&&(v.signal=i.signal),_=(0,y.resolveRequestDocument)(i.query).operationName,[2,I({url:E,query:i.query,variables:i.variables,headers:r(r({},b(C(a))),b(i.requestHeaders)),operationName:_,fetch:l,method:d,fetchOptions:v,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,d,h,m,v,E,_,S,T,D;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?f.default:l,d=a.method,h=void 0===d?"POST":d,m=a.requestMiddleware,v=a.responseMiddleware,E=c(a,["headers","fetch","method","requestMiddleware","responseMiddleware"]),_=this.url,void 0!==o.signal&&(E.signal=o.signal),S=(0,y.resolveRequestDocument)(o.document),T=S.query,D=S.operationName,[2,I({url:_,query:T,variables:o.variables,headers:r(r({},b(C(s))),b(o.requestHeaders)),operationName:D,fetch:p,method:h,fetchOptions:E,middleware:m}).then(function(e){return v&&v(e),e.data}).catch(function(e){throw v&&v(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?f.default:a,u=i.method,l=void 0===u?"POST":u,p=i.requestMiddleware,d=i.responseMiddleware,h=c(i,["headers","fetch","method","requestMiddleware","responseMiddleware"]),m=this.url;void 0!==n.signal&&(h.signal=n.signal);var v=n.documents.map(function(e){var t=e.document;return(0,y.resolveRequestDocument)(t).query}),E=n.documents.map(function(e){return e.variables});return I({url:m,query:v,variables:E,headers:r(r({},b(C(o))),b(n.requestHeaders)),operationName:void 0,fetch:s,method:l,fetchOptions:h,middleware:p}).then(function(e){return d&&d(e),e.data}).catch(function(e){throw d&&d(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 I(e){var t=e.url,n=e.query,i=e.variables,o=e.headers,a=e.operationName,l=e.fetch,p=e.method,f=void 0===p?"POST":p,d=e.fetchOptions,h=e.middleware;return s(this,void 0,void 0,function(){var e,s,p,m,g,y,b,E,T,I,D;return u(this,function(u){switch(u.label){case 0:return e="POST"===f.toUpperCase()?_:S,s=Array.isArray(n),[4,e({url:t,query:n,variables:i,operationName:a,headers:o,fetch:l,fetchOptions:d,middleware:h})];case 1:return[4,w(p=u.sent(),d.jsonSerializer)];case 2:if(m=u.sent(),g=s&&Array.isArray(m)?!m.some(function(e){return!e.data}):!!m.data,y=!m.errors||"all"===d.errorPolicy||"ignore"===d.errorPolicy,p.ok&&y&&g)return b=p.headers,E=p.status,m.errors,T=c(m,["errors"]),I="ignore"===d.errorPolicy?T:m,[2,r(r({},s?{data:I}:I),{headers:b,status:E})];throw D="string"==typeof m?{error:m}:m,new v.ClientError(r(r({},D),{status:p.status,headers:p.headers}),{query:n,variables:i})}})})}function D(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 T(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 C(e){return"function"==typeof e?e():e}t.GraphQLClient=T,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 T(i.url).rawRequest(r({},i))]})})},t.request=D,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 T(i.url).batchRequests(r({},i))]})})},t.default=D,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 O=n(3210);Object.defineProperty(t,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return O.GraphQLWebSocketClient}});var P=n(8139);Object.defineProperty(t,"resolveRequestDocument",{enumerable:!0,get:function(){return P.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}},5145:e=>{"use strict";e.exports="object"==typeof self?self.FormData:window.FormData},81:(e,t,n)=>{"use strict";n.r(t),n.d(t,{gql:()=>p,resetCaches:()=>f,disableFragmentWarnings:()=>d,enableExperimentalFragmentVariables:()=>h,disableExperimentalFragmentVariables:()=>m,default:()=>S});var r=n(2970),i=n(5390),o=new Map,a=new Map,s=!0,u=!1;function c(e){return e.replace(/[\s,]+/g," ").trim()}function l(e){var t,n,l,p=c(e);if(!o.has(p)){var f=(0,i.Qc)(e,{experimentalFragmentVariables:u,allowLegacyFragmentVariables:u});if(!f||"Document"!==f.kind)throw new Error("Not a valid GraphQL document.");o.set(p,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=f,n=new Set,l=[],t.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,r=c((o=e.loc).source.body.substring(o.start,o.end)),i=a.get(t);i&&!i.has(r)?s&&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"):i||a.set(t,i=new Set),i.add(r),n.has(r)||(n.add(r),l.push(e))}else l.push(e);var o}),(0,r.pi)((0,r.pi)({},t),{definitions:l}))))}return o.get(p)}function p(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]}),l(r)}function f(){o.clear(),a.clear()}function d(){s=!1}function h(){u=!0}function m(){u=!1}var g,v=p,y=f,b=d,E=h,_=m;(g=p||(p={})).gql=v,g.resetCaches=y,g.disableFragmentWarnings=b,g.enableExperimentalFragmentVariables=E,g.disableExperimentalFragmentVariables=_,p.default=p;const S=p},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),f=!n&&!l&&!p&&u(e),d=n||l||p||f,h=d?r(e.length,String):[],m=h.length;for(var g in e)!t&&!c.call(e,g)||d&&("length"==g||p&&("offset"==g||"parent"==g)||f&&("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),f=n(3483),d=n(6939),h=n(940),m=n(9917),g=n(8222),v=n(8725),y=n(6152),b=n(3226),E=n(4714),_=n(9259),S=n(3679),T=n(249),I=n(4225),D="[object Arguments]",w="[object Function]",C="[object Object]",O={};O[D]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[C]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[w]=O["[object WeakMap]"]=!1,e.exports=function e(t,n,P,A,F,N){var R,k=1&n,x=2&n,U=4&n;if(P&&(R=F?P(t,A,F,N):P(t)),void 0!==R)return R;if(!_(t))return t;var M=y(t);if(M){if(R=m(t),!k)return c(t,R)}else{var L=h(t),j=L==w||"[object GeneratorFunction]"==L;if(b(t))return u(t,k);if(L==C||L==D||j&&!F){if(R=x||j?{}:v(t),!k)return x?p(t,s(R,t)):l(t,a(R,t))}else{if(!O[L])return F?t:{};R=g(t,L,k)}}N||(N=new r);var V=N.get(t);if(V)return V;N.set(t,R),S(t)?t.forEach(function(r){R.add(e(r,n,P,r,t,N))}):E(t)&&t.forEach(function(r,i){R.set(i,e(r,n,P,i,t,N))});var B=M?void 0:(U?x?d:f:x?I:T)(t);return i(B||t,function(r,i){B&&(r=t[i=r]),o(R,i,e(r,n,P,i,t,N))}),R}},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]",f="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=u(e),b=u(t),E=y?f:s(e),_=b?f:s(t),S=(E=E==p?d:E)==d,T=(_=_==p?d:_)==d,I=E==_;if(I&&c(e)){if(!c(t))return!1;y=!0,S=!1}if(I&&!S)return v||(v=new r),y||l(e)?i(e,t,n,m,g,v):o(e,t,E,n,m,g,v);if(!(1&n)){var D=S&&h.call(e,"__wrapped__"),w=T&&h.call(t,"__wrapped__");if(D||w){var C=D?e.value():e,O=w?t.value():t;return v||(v=new r),g(C,O,n,m,v)}}return!!I&&(v||(v=new r),a(e,t,n,m,g,v))}},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],f=c[1];if(u&&c[2]){if(void 0===p&&!(l in e))return!1}else{var d=new r;if(o)var h=o(p,f,l,e,t,d);if(!(void 0===h?i(f,p,3,o,d):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,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f: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,f){t!==n&&o(n,function(o,u){if(f||(f=new r),s(o))a(t,n,u,l,e,p,f);else{var d=p?p(c(t,u),o,u+"",t,n,f):void 0;void 0===d&&(d=o),i(t,u,d)}},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),f=n(1049),d=n(9259),h=n(7030),m=n(7598),g=n(2434),v=n(3329);e.exports=function(e,t,n,y,b,E,_){var S=g(e,n),T=g(t,n),I=_.get(T);if(I)r(e,n,I);else{var D=E?E(S,T,n+"",e,t,_):void 0,w=void 0===D;if(w){var C=c(T),O=!C&&p(T),P=!C&&!O&&m(T);D=T,C||O||P?c(S)?D=S:l(S)?D=a(S):O?(w=!1,D=i(T,!0)):P?(w=!1,D=o(T,!0)):D=[]:h(T)||u(T)?(D=S,u(S)?D=v(S):d(S)&&!f(S)||(D=s(T))):w=!1}w&&(_.set(T,D),b(D,T,y,E,_),_.delete(T)),r(e,n,D)}}},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(var c=null==e||"object"!=typeof e&&"function"!=typeof e;++n<u;){var l=t[n];if("string"==typeof l){if("__proto__"===l&&!s.call(e,"__proto__"))return!1;if("constructor"===l&&n+1<u&&"string"==typeof t[n+1]&&"prototype"===t[n+1]){if(c&&0===n)continue;return!1}}}var p=o(e,t);return null==p||delete p[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 f=u.get(e),d=u.get(t);if(f&&d)return f==t&&d==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 v=e[h],y=t[h];if(a)var b=c?a(y,v,h,t,e,u):a(v,y,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)&&(v===e||s(v,e,n,a,u)))return g.push(t)})){m=!1;break}}else if(v!==y&&!s(v,y,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,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!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 d=s;case"[object Set]":var h=1&r;if(d||(d=u),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var g=a(d(e),d(t),r,c,p,f);return f.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 f=c[p];if(!(u?f in t:i.call(t,f)))return!1}var d=s.get(e),h=s.get(t);if(d&&h)return d==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=u;++p<l;){var v=e[f=c[p]],y=t[f];if(o)var b=u?o(y,v,f,t,e,s):o(v,y,f,e,t,s);if(!(void 0===b?v===y||a(v,y,n,o,s):b)){m=!1;break}g||(g="constructor"==f)}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]",f="[object Set]",d="[object WeakMap]",h="[object DataView]",m=c(r),g=c(i),v=c(o),y=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)!=f||s&&E(new s)!=d)&&(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 v:return p;case y:return f;case b:return d}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 f=u(t[c]);if(!(p=null!=e&&n(e,f)))break;e=e[f]}return p||++c!=l?p:!!(l=null==e?0:e.length)&&s(l)&&a(f,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,f=NaN,d=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]",v="[object Boolean]",y="[object Date]",b="[object Error]",E="[object Function]",_="[object GeneratorFunction]",S="[object Map]",T="[object Number]",I="[object Object]",D="[object Promise]",w="[object RegExp]",C="[object Set]",O="[object String]",P="[object Symbol]",A="[object WeakMap]",F="[object ArrayBuffer]",N="[object DataView]",R="[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,$=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Q=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,z=RegExp(Q.source),Z=RegExp(H.source),W=/<%-([\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,fe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Te="\\u2700-\\u27bf",Ie="a-z\\xdf-\\xf6\\xf8-\\xff",De="A-Z\\xc0-\\xd6\\xd8-\\xde",we="\\ufe0e\\ufe0f",Ce="\\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",Oe="["+_e+"]",Pe="["+Ce+"]",Ae="["+Se+"]",Fe="\\d+",Ne="["+Te+"]",Re="["+Ie+"]",ke="[^"+_e+Ce+Fe+Te+Ie+De+"]",xe="\\ud83c[\\udffb-\\udfff]",Ue="[^"+_e+"]",Me="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+De+"]",Ve="\\u200d",Be="(?:"+Re+"|"+ke+")",Ge="(?:"+je+"|"+ke+")",$e="(?:['’](?:d|ll|m|re|s|t|ve))?",qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+Ae+"|"+xe+")?",He="["+we+"]?",ze=He+Qe+"(?:"+Ve+"(?:"+[Ue,Me,Le].join("|")+")"+He+Qe+")*",Ze="(?:"+[Ne,Me,Le].join("|")+")"+ze,We="(?:"+[Ue+Ae+"?",Ae,Me,Le,Oe].join("|")+")",Ye=RegExp("['’]","g"),Ke=RegExp(Ae,"g"),Je=RegExp(xe+"(?="+xe+")|"+We+ze,"g"),Xe=RegExp([je+"?"+Re+"+"+$e+"(?="+[Pe,je,"$"].join("|")+")",Ge+"+"+qe+"(?="+[Pe,je+Be,"$"].join("|")+")",je+"?"+Be+"+"+$e,je+"+"+qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fe,Ze].join("|"),"g"),et=RegExp("["+Ve+_e+Se+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[R]=it[k]=it[x]=it[U]=it[M]=it[L]=it[j]=it[V]=it[B]=!0,it[m]=it[g]=it[F]=it[v]=it[N]=it[y]=it[b]=it[E]=it[S]=it[T]=it[I]=it[w]=it[C]=it[O]=it[A]=!1;var ot={};ot[m]=ot[g]=ot[F]=ot[N]=ot[v]=ot[y]=ot[R]=ot[k]=ot[x]=ot[U]=ot[M]=ot[S]=ot[T]=ot[I]=ot[w]=ot[C]=ot[O]=ot[P]=ot[L]=ot[j]=ot[V]=ot[B]=!0,ot[b]=ot[E]=ot[A]=!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")(),ft=t&&!t.nodeType&&t,dt=ft&&e&&!e.nodeType&&e,ht=dt&&dt.exports===ft,mt=ht&&ct.process,gt=function(){try{return dt&&dt.require&&dt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=gt&>.isArrayBuffer,yt=gt&>.isDate,bt=gt&>.isMap,Et=gt&>.isRegExp,_t=gt&>.isSet,St=gt&>.isTypedArray;function Tt(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 It(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 Dt(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 Ct(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 Ot(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 Pt(e,t){return!(null==e||!e.length)&&jt(e,t,0)>-1}function At(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 Ft(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 Nt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Rt(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=$t("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:f}function $t(e){return function(t){return null==t?i:t[e]}}function qt(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 Zt(e){return e?e.slice(0,fn(e)+1).replace(re,""):e}function Wt(e){return function(t){return e(t)}}function Yt(e,t){return Ft(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=qt({À:"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=qt({"&":"&","<":"<",">":">",'"':""","'":"'"});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 fn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var dn=qt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),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,Se=t.Function,Te=t.Math,Ie=t.Object,De=t.RegExp,we=t.String,Ce=t.TypeError,Oe=r.prototype,Pe=Se.prototype,Ae=Ie.prototype,Fe=t["__core-js_shared__"],Ne=Pe.toString,Re=Ae.hasOwnProperty,ke=0,xe=(n=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ue=Ae.toString,Me=Ne.call(Ie),Le=pt._,je=De("^"+Ne.call(Re).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=ht?t.Buffer:i,Be=t.Symbol,Ge=t.Uint8Array,$e=Ve?Ve.allocUnsafe:i,qe=an(Ie.getPrototypeOf,Ie),Qe=Ie.create,He=Ae.propertyIsEnumerable,ze=Oe.splice,Ze=Be?Be.isConcatSpreadable:i,We=Be?Be.iterator:i,Je=Be?Be.toStringTag:i,et=function(){try{var e=uo(Ie,"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,ft=Te.ceil,dt=Te.floor,mt=Ie.getOwnPropertySymbols,gt=Ve?Ve.isBuffer:i,Ut=t.isFinite,qt=Oe.join,mn=an(Ie.keys,Ie),gn=Te.max,vn=Te.min,yn=ie.now,bn=t.parseInt,En=Te.random,_n=Oe.reverse,Sn=uo(t,"DataView"),Tn=uo(t,"Map"),In=uo(t,"Promise"),Dn=uo(t,"Set"),wn=uo(t,"WeakMap"),Cn=uo(Ie,"create"),On=wn&&new wn,Pn={},An=Mo(Sn),Fn=Mo(Tn),Nn=Mo(In),Rn=Mo(Dn),kn=Mo(wn),xn=Be?Be.prototype:i,Un=xn?xn.valueOf:i,Mn=xn?xn.toString:i;function Ln(e){if(es(e)&&!$a(e)&&!(e instanceof Gn)){if(e instanceof Bn)return e;if(Re.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__=d,this.__views__=[]}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 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 qn(e);this.size=t.size}function Zn(e,t){var n=$a(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&&!Re.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 Wn(e){var t=e.length;return t?e[Qr(0,t-1)]:i}function Yn(e,t){return No(wi(e),or(t,0,e.length))}function Kn(e){return No(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];Re.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&&Ci(t,As(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:Ds(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=$a(e);if(p){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return wi(e,s)}else{var f=po(e),d=f==E||f==_;if(za(e))return Ei(e,u);if(f==I||f==m||d&&!o){if(s=c||d?{}:ho(e),!u)return c?function(e,t){return Ci(e,lo(e),t)}(e,function(e,t){return e&&Ci(t,Fs(t),e)}(s,e)):function(e,t){return Ci(e,co(e),t)}(e,nr(s,e))}else{if(!ot[f])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case F:return _i(e);case v:case y:return new i(+e);case N:return function(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case k:case x:case U:case M:case L:case j:case V:case B:return Si(e,n);case S:return new i;case T:case O:return new i(e);case w:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new i;case P:return r=e,Un?Ie(Un.call(r)):{}}}(e,f,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?Fs:As)(e);return Dt(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=Ie(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 Ce(o);return Oo(function(){e.apply(i,n)},t)}function cr(e,t,n,r){var i=-1,o=Pt,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=Ft(t,Wt(n))),r?(o=At,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 f=c;f--;)if(t[f]===p)continue e;u.push(l)}else o(t,p,r)||u.push(l)}return u}Ln.templateSettings={escape:W,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,$n.prototype.clear=function(){this.__data__=Cn?Cn(null):{},this.size=0},$n.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},$n.prototype.get=function(e){var t=this.__data__;if(Cn){var n=t[e];return n===a?i:n}return Re.call(t,e)?t[e]:i},$n.prototype.has=function(e){var t=this.__data__;return Cn?t[e]!==i:Re.call(t,e)},$n.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Cn&&t===i?a:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.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))},qn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?i:t[n][1]},qn.prototype.has=function(e){return er(this.__data__,e)>-1},qn.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 $n,map:new(Tn||qn),string:new $n}},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 qn,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 qn){var r=n.__data__;if(!Tn||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=Ai(yr),pr=Ai(br,!0);function fr(e,t){var n=!0;return lr(e,function(e,r,i){return n=!!t(e,r,i)}),n}function dr(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):Nt(i,s):r||(i[i.length]=s)}return i}var gr=Fi(),vr=Fi(!0);function yr(e,t){return e&&gr(e,t,As)}function br(e,t){return e&&vr(e,t,As)}function Er(e,t){return Ot(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 Sr(e,t,n){var r=t(e);return $a(e)?r:Nt(r,n(e))}function Tr(e){return null==e?e===i?"[object Undefined]":"[object Null]":Je&&Je in Ie(e)?function(e){var t=Re.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 Ir(e,t){return e>t}function Dr(e,t){return null!=e&&Re.call(e,t)}function wr(e,t){return null!=e&&t in Ie(e)}function Cr(e,t,n){for(var o=n?At:Pt,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,p=[];u--;){var f=e[u];u&&t&&(f=Ft(f,Wt(t))),l=vn(f.length,l),c[u]=!n&&(t||a>=120&&f.length>=120)?new Hn(u&&f):i}f=e[0];var d=-1,h=c[0];e:for(;++d<a&&p.length<l;){var m=f[d],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 v=c[u];if(!(v?Kt(v,g):o(e[u],g,n)))continue e}h&&h.push(g),p.push(m)}}return p}function Or(e,t,n){var r=null==(e=Do(e,t=gi(t,e)))?e:e[Uo(Wo(t))];return null==r?i:Tt(r,e,n)}function Pr(e){return es(e)&&Tr(e)==m}function Ar(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=$a(e),u=$a(t),c=s?g:po(e),l=u?g:po(t),p=(c=c==m?I:c)==I,f=(l=l==m?I:l)==I,d=c==l;if(d&&za(e)){if(!za(t))return!1;s=!0,p=!1}if(d&&!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 N:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case F:return!(e.byteLength!=t.byteLength||!o(new Ge(e),new Ge(t)));case v:case y:case T:return ja(+e,+t);case b:return e.name==t.name&&e.message==t.message;case w:case O:return e==t+"";case S:var s=on;case C: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 P:if(Un)return Un.call(e)==Un.call(t)}return!1}(e,t,c,n,r,o,a);if(!(1&n)){var h=p&&Re.call(e,"__wrapped__"),E=f&&Re.call(t,"__wrapped__");if(h||E){var _=h?e.value():e,D=E?t.value():t;return a||(a=new zn),o(_,D,n,r,a)}}return!!d&&(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:Re.call(t,p)))return!1}var f=a.get(e),d=a.get(t);if(f&&d)return f==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++l<c;){var g=e[p=u[l]],v=t[p];if(r)var y=s?r(v,g,p,t,e,a):r(g,v,p,e,t,a);if(!(y===i?g===v||o(g,v,n,r,a):y)){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,Ar,o))}function Fr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Ie(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 f=new zn;if(r)var d=r(l,p,c,e,t,f);if(!(d===i?Ar(p,l,3,r,f):d))return!1}}return!0}function Nr(e){return!(!Xa(e)||(t=e,xe&&xe in t))&&(Ya(e)?je:me).test(Mo(e));var t}function Rr(e){return"function"==typeof e?e:null==e?nu:"object"==typeof e?$a(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 Ie(e))Re.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]?To(t[0][0],t[0][1]):function(n){return n===e||Fr(n,e,t)}}function Lr(e,t){return yo(e)&&So(t)?To(Uo(e),t):function(n){var r=Ds(n,e);return r===i&&r===t?ws(n,e):Ar(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,f=p===i;if(f){var d=$a(c),h=!d&&za(c),m=!d&&!h&&us(c);p=c,d||h||m?$a(u)?p=u:Ha(u)?p=wi(u):h?(f=!1,p=Ei(c,!0)):m?(f=!1,p=Si(c,!0)):p=[]:rs(c)||Ga(c)?(p=u,Ga(u)?p=gs(u):Xa(u)&&!Ya(u)||(p=ho(c))):f=!1}f&&(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)}},Fs)}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?Ft(t,function(e){return $a(e)?function(t){return _r(t,1===e.length?e[0]:e)}:e}):[nu];var r=-1;t=Ft(t,Wt(oo()));var i=Ur(e,function(e,n,i){var o=Ft(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=Ti(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 $r(e,t,n,r){var i=r?Vt:jt,o=-1,a=t.length,s=e;for(e===t&&(t=wi(t)),n&&(s=Ft(e,Wt(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 qr(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+dt(En()*(t-e+1))}function Hr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=dt(t/2))&&(e+=e)}while(t);return n}function zr(e,t){return Po(Io(e,t,nu),e+"")}function Zr(e){return Wn(js(e))}function Wr(e,t){var n=js(e);return No(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=On?function(e,t){return On.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 No(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=dt((o+a)/2),f=n(e[p]),d=f!==i,h=null===f,m=f==f,g=ss(f);if(s)var v=r||m;else v=l?m&&(r||d):u?m&&d&&(r||!h):c?m&&d&&!h&&(r||!g):!h&&!g&&(r?f<=t:f<t);v?o=p+1:a=p}return vn(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)?f:+e}function ai(e){if("string"==typeof e)return e;if($a(e))return Ft(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=Pt,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=At;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 f=u.length;f--;)if(u[f]===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(var i=null==e||"object"!=typeof e&&"function"!=typeof e;++n<r;){var o=t[n];if("string"==typeof o){if("__proto__"===o&&!Re.call(e,"__proto__"))return!1;if("constructor"===o&&n+1<r&&"string"==typeof t[n+1]&&"prototype"===t[n+1]){if(i&&0===n)continue;return!1}}}var a=Do(e,t);return null==a||delete a[Uo(Wo(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()),Rt(t,function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))},n)}function fi(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 di(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 $a(e)?e:yo(e,t)?[e]:xo(vs(e))}var vi=zr;function yi(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=$e?$e(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 Si(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ti(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 Ii(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),f=!i;++u<c;)p[u]=t[u];for(;++o<s;)(f||o<a)&&(p[n[o]]=e[o]);for(;l--;)p[u++]=e[o++];return p}function Di(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),f=r(p+l),d=!i;++o<p;)f[o]=e[o];for(var h=o;++c<l;)f[h+c]=t[c];for(;++s<u;)(d||o<a)&&(f[h+n[s]]=e[o++]);return f}function wi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Ci(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 Oi(e,t){return function(n,r){var i=$a(n)?It:tr,o=t?t():{};return i(n,e,oo(r,2),o)}}function Pi(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&&vo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Ie(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t})}function Ai(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=Ie(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Fi(e){return function(t,n,r){for(var i=-1,o=Ie(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 Ni(e){return function(t){var n=rn(t=vs(t))?pn(t):i,r=n?n[0]:t.charAt(0),o=n?yi(n,1).join(""):t.slice(1);return r[e]()+o}}function Ri(e){return function(t){return Rt(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=Ie(t);if(!Qa(t)){var a=oo(n,3);t=As(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 Ce(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&&$a(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,f){var d=t&c,h=1&t,m=2&t,g=24&t,v=512&t,y=m?i:ki(e);return function c(){for(var b=arguments.length,E=r(b),_=b;_--;)E[_]=arguments[_];if(g)var S=io(c),T=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(E,S);if(o&&(E=Ii(E,o,a,g)),s&&(E=Di(E,s,u,g)),b-=T,g&&b<f){var I=sn(E,S);return qi(e,t,Mi,c.placeholder,n,E,I,l,p,f-b)}var D=h?n:this,w=m?D[e]:e;return b=E.length,l?E=function(e,t){for(var n=e.length,r=vn(t.length,n),o=wi(e);r--;){var a=t[r];e[r]=go(a,n)?o[a]:i}return e}(E,l):v&&b>1&&E.reverse(),d&&p<b&&(E.length=p),this&&this!==pt&&this instanceof c&&(w=y||ki(w)),w.apply(D,E)}}function Li(e,t){return function(n,r){return function(e,t,n,r){return yr(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=Ft(t,Wt(oo())),zr(function(n){var r=this;return e(t,function(e){return Tt(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,ft(e/ln(t)));return rn(t)?yi(pn(r),0,e).join(""):r.slice(0,e)}function Gi(e){return function(t,n,o){return o&&"number"!=typeof o&&vo(t,n,o)&&(n=o=i),t=fs(t),n===i?(n=t,t=0):n=fs(n),function(e,t,n,i){for(var o=-1,a=gn(ft((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:fs(o),e)}}function $i(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function qi(e,t,n,r,o,a,s,c,l,p){var f=8&t;t|=f?u:64,4&(t&=~(f?64:u))||(t&=-4);var d=[e,t,o,f?a:i,f?s:i,f?i:a,f?i:s,c,l,p],h=n.apply(i,d);return bo(e)&&Co(h,d),h.placeholder=r,Ao(h,e,t)}function Qi(e){var t=Te[e];return function(e,n){if(e=ms(e),(n=null==n?0:vn(ds(n),292))&&Ut(e)){var r=(vs(e)+"e").split("e");return+((r=(vs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Hi=Dn&&1/un(new Dn([,-0]))[1]==l?function(e){return new Dn(e)}:su;function zi(e){return function(t){var n=po(t);return n==S?on(t):n==C?cn(t):function(e,t){return Ft(t,function(t){return[t,e[t]]})}(t,e(t))}}function Zi(e,t,n,a,l,p,f,d){var h=2&t;if(!h&&"function"!=typeof e)throw new Ce(o);var m=a?a.length:0;if(m||(t&=-97,a=l=i),f=f===i?f:gn(ds(f),0),d=d===i?d:ds(d),m-=l?l.length:0,64&t){var g=a,v=l;a=l=i}var y=h?i:no(e),b=[e,t,n,a,l,g,v,p,f,d];if(y&&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?Ii(l,u,t[4]):u,e[4]=l?sn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Di(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]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,y),e=b[0],t=b[1],n=b[2],a=b[3],l=b[4],!(d=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?qi(e,t,Mi,a.placeholder,i,u,p,i,i,n-s):Tt(this&&this!==pt&&this instanceof a?o:e,this,u)}}(e,t,d):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),f=this&&this!==pt&&this instanceof t?a:e;++c<l;)p[c]=i[c];for(;u--;)p[c++]=arguments[++s];return Tt(f,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 Ao((y?Kr:Co)(E,b),e,t)}function Wi(e,t,n,r){return e===i||ja(e,Ae[n])&&!Re.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 f=-1,d=!0,h=2&n?new Hn:i;for(a.set(e,t),a.set(t,e);++f<u;){var m=e[f],g=t[f];if(r)var v=s?r(g,m,f,t,e,a):r(m,g,f,e,t,a);if(v!==i){if(v)continue;d=!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)})){d=!1;break}}else if(m!==g&&!o(m,g,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function Xi(e){return Po(Io(e,i,qo),e+"")}function eo(e){return Sr(e,As,co)}function to(e){return Sr(e,Fs,lo)}var no=On?function(e){return On.get(e)}:su;function ro(e){for(var t=e.name+"",n=Pn[t],r=Re.call(Pn,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(Re.call(Ln,"placeholder")?Ln:e).placeholder}function oo(){var e=Ln.iteratee||ru;return e=e===ru?Rr: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=As(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,So(i)]}return t}function uo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Nr(n)?n:i}var co=mt?function(e){return null==e?[]:(e=Ie(e),Ot(mt(e),function(t){return He.call(e,t)}))}:hu,lo=mt?function(e){for(var t=[];e;)Nt(t,co(e)),e=qe(e);return t}:hu,po=Tr;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)&&($a(e)||Ga(e))}function ho(e){return"function"!=typeof e.constructor||_o(e)?{}:jn(qe(e))}function mo(e){return $a(e)||Ga(e)||!!(Ze&&e&&e[Ze])}function go(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function vo(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 yo(e,t){if($a(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 Ie(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]}(Sn&&po(new Sn(new ArrayBuffer(1)))!=N||Tn&&po(new Tn)!=S||In&&po(In.resolve())!=D||Dn&&po(new Dn)!=C||wn&&po(new wn)!=A)&&(po=function(e){var t=Tr(e),n=t==I?e.constructor:i,r=n?Mo(n):"";if(r)switch(r){case An:return N;case Fn:return S;case Nn:return D;case Rn:return C;case kn:return A}return t});var Eo=Fe?Ya:mu;function _o(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ae)}function So(e){return e==e&&!Xa(e)}function To(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Ie(n))}}function Io(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),Tt(e,this,u)}}function Do(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 Co=Fo(Kr),Oo=lt||function(e,t){return pt.setTimeout(e,t)},Po=Fo(Jr);function Ao(e,t,n){var r=t+"";return Po(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 Dt(h,function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Fo(e){var t=0,n=0;return function(){var r=yn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function No(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 Ro,ko,xo=(Ro=Ra(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=Ro.cache,Ro);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 Ne.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=Wo(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=Wo(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:ds(n);return i<0&&(i=gn(r+i,0)),Lt(e,oo(t,3),i)}function $o(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=ds(n),o=n<0?gn(r+o,0):vn(o,r-1)),Lt(e,oo(t,3),o,!0)}function qo(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=Ft(e,hi);return t.length&&t[0]===e[0]?Cr(t):[]}),zo=zr(function(e){var t=Wo(e),n=Ft(e,hi);return t===Wo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Cr(n,oo(t,2)):[]}),Zo=zr(function(e){var t=Wo(e),n=Ft(e,hi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Cr(n,i,t):[]});function Wo(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?$r(e,t):e}var Jo=Xi(function(e,t){var n=null==e?0:e.length,r=ir(e,t);return qr(e,Ft(t,function(e){return go(e,n)?+e:e}).sort(Ti)),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=Wo(e);return Ha(t)&&(t=i),si(mr(e,1,Ha,!0),oo(t,2))}),na=zr(function(e){var t=Wo(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=Ot(e,function(e){if(Ha(e))return t=gn(e.length,t),!0}),zt(t,function(t){return Ft(e,$t(t))})}function ia(e,t){if(!e||!e.length)return[];var n=ra(e);return null==t?n:Ft(n,function(e){return Tt(t,i,e)})}var oa=zr(function(e,t){return Ha(e)?cr(e,t):[]}),aa=zr(function(e){return fi(Ot(e,Ha))}),sa=zr(function(e){var t=Wo(e);return Ha(t)&&(t=i),fi(Ot(e,Ha),oo(t,2))}),ua=zr(function(e){var t=Wo(e);return t="function"==typeof t?t:i,fi(Ot(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 fa(e,t){return t(e)}var da=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:fa,args:[o],thisArg:i}),new Bn(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)}),ha=Oi(function(e,t,n){Re.call(e,n)?++e[n]:rr(e,n,1)}),ma=xi(Go),ga=xi($o);function va(e,t){return($a(e)?Dt:lr)(e,oo(t,3))}function ya(e,t){return($a(e)?wt:pr)(e,oo(t,3))}var ba=Oi(function(e,t,n){Re.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?Tt(t,e,n):Or(e,t,n)}),a}),_a=Oi(function(e,t,n){rr(e,n,t)});function Sa(e,t){return($a(e)?Ft:Ur)(e,oo(t,3))}var Ta=Oi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ia=zr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&vo(e,t[0],t[1])?t=[]:n>2&&vo(t[0],t[1],t[2])&&(t=[t[0]]),Br(e,mr(t,1),[])}),Da=ct||function(){return pt.Date.now()};function wa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Zi(e,c,i,i,i,i,t)}function Ca(e,t){var n;if("function"!=typeof t)throw new Ce(o);return e=ds(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Oa=zr(function(e,t,n){var r=1;if(n.length){var i=sn(n,io(Oa));r|=u}return Zi(e,r,t,n,i)}),Pa=zr(function(e,t,n){var r=3;if(n.length){var i=sn(n,io(Pa));r|=u}return Zi(t,r,e,n,i)});function Aa(e,t,n){var r,a,s,u,c,l,p=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new Ce(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||d&&e-p>=s}function v(){var e=Da();if(g(e))return y(e);c=Oo(v,function(e){var n=t-(e-l);return d?vn(n,s-(e-p)):n}(e))}function y(e){return c=i,h&&r?m(e):(r=a=i,u)}function b(){var e=Da(),n=g(e);if(r=arguments,a=this,l=e,n){if(c===i)return function(e){return p=e,c=Oo(v,t),f?m(e):u}(l);if(d)return bi(c),c=Oo(v,t),m(l)}return c===i&&(c=Oo(v,t)),u}return t=ms(t)||0,Xa(n)&&(f=!!n.leading,s=(d="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:y(Da())},b}var Fa=zr(function(e,t){return ur(e,1,t)}),Na=zr(function(e,t,n){return ur(e,ms(t)||0,n)});function Ra(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ce(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(Ra.Cache||Qn),n}function ka(e){if("function"!=typeof e)throw new Ce(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)}}Ra.Cache=Qn;var xa=vi(function(e,t){var n=(t=1==t.length&&$a(t[0])?Ft(t[0],Wt(oo())):Ft(mr(t,1),Wt(oo()))).length;return zr(function(r){for(var i=-1,o=vn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Tt(e,this,r)})}),Ua=zr(function(e,t){var n=sn(t,io(Ua));return Zi(e,u,i,t,n)}),Ma=zr(function(e,t){var n=sn(t,io(Ma));return Zi(e,64,i,t,n)}),La=Xi(function(e,t){return Zi(e,256,i,i,i,t)});function ja(e,t){return e===t||e!=e&&t!=t}var Va=$i(Ir),Ba=$i(function(e,t){return e>=t}),Ga=Pr(function(){return arguments}())?Pr:function(e){return es(e)&&Re.call(e,"callee")&&!He.call(e,"callee")},$a=r.isArray,qa=vt?Wt(vt):function(e){return es(e)&&Tr(e)==F};function Qa(e){return null!=e&&Ja(e.length)&&!Ya(e)}function Ha(e){return es(e)&&Qa(e)}var za=gt||mu,Za=yt?Wt(yt):function(e){return es(e)&&Tr(e)==y};function Wa(e){if(!es(e))return!1;var t=Tr(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=Tr(e);return t==E||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ka(e){return"number"==typeof e&&e==ds(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?Wt(bt):function(e){return es(e)&&po(e)==S};function ns(e){return"number"==typeof e||es(e)&&Tr(e)==T}function rs(e){if(!es(e)||Tr(e)!=I)return!1;var t=qe(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ne.call(n)==Me}var is=Et?Wt(Et):function(e){return es(e)&&Tr(e)==w},os=_t?Wt(_t):function(e){return es(e)&&po(e)==C};function as(e){return"string"==typeof e||!$a(e)&&es(e)&&Tr(e)==O}function ss(e){return"symbol"==typeof e||es(e)&&Tr(e)==P}var us=St?Wt(St):function(e){return es(e)&&Ja(e.length)&&!!it[Tr(e)]},cs=$i(xr),ls=$i(function(e,t){return e<=t});function ps(e){if(!e)return[];if(Qa(e))return as(e)?pn(e):wi(e);if(We&&e[We])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[We]());var t=po(e);return(t==S?on:t==C?un:js)(e)}function fs(e){return e?(e=ms(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ds(e){var t=fs(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?or(ds(e),0,d):0}function ms(e){if("number"==typeof e)return e;if(ss(e))return f;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=Zt(e);var n=he.test(e);return n||ge.test(e)?ut(e.slice(2),n?2:8):de.test(e)?f:+e}function gs(e){return Ci(e,Fs(e))}function vs(e){return null==e?"":ai(e)}var ys=Pi(function(e,t){if(_o(t)||Qa(t))Ci(t,As(t),e);else for(var n in t)Re.call(t,n)&&Xn(e,n,t[n])}),bs=Pi(function(e,t){Ci(t,Fs(t),e)}),Es=Pi(function(e,t,n,r){Ci(t,Fs(t),e,r)}),_s=Pi(function(e,t,n,r){Ci(t,As(t),e,r)}),Ss=Xi(ir),Ts=zr(function(e,t){e=Ie(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&vo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Fs(a),u=-1,c=s.length;++u<c;){var l=s[u],p=e[l];(p===i||ja(p,Ae[l])&&!Re.call(e,l))&&(e[l]=a[l])}return e}),Is=zr(function(e){return e.push(i,Yi),Tt(Rs,i,e)});function Ds(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 Cs=Li(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),e[t]=n},Xs(nu)),Os=Li(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]},oo),Ps=zr(Or);function As(e){return Qa(e)?Zn(e):kr(e)}function Fs(e){return Qa(e)?Zn(e,!0):function(e){if(!Xa(e))return function(e){var t=[];if(null!=e)for(var n in Ie(e))t.push(n);return t}(e);var t=_o(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}(e)}var Ns=Pi(function(e,t,n){jr(e,t,n)}),Rs=Pi(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=Ft(t,function(t){return t=gi(t,e),r||(r=t.length>1),t}),Ci(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=Ft(to(e),function(e){return[e]});return t=oo(t),Gr(e,n,function(e,n){return t(e,n[0])})}var Ms=zi(As),Ls=zi(Fs);function js(e){return null==e?[]:Yt(e,As(e))}var Vs=Ri(function(e,t,n){return t=t.toLowerCase(),e+(n?Bs(t):t)});function Bs(e){return Ws(vs(e).toLowerCase())}function Gs(e){return(e=vs(e))&&e.replace(ye,en).replace(Ke,"")}var $s=Ri(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),qs=Ri(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Qs=Ni("toLowerCase"),Hs=Ri(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),zs=Ri(function(e,t,n){return e+(n?" ":"")+Ws(t)}),Zs=Ri(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ws=Ni("toUpperCase");function Ys(e,t,n){return e=vs(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 Tt(e,i,t)}catch(e){return Wa(e)?e:new _e(e)}}),Js=Xi(function(e,t){return Dt(t,function(t){t=Uo(t),rr(e,t,Oa(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 Rr("function"==typeof e?e:ar(e,1))}var iu=zr(function(e,t){return function(n){return Or(n,e,t)}}),ou=zr(function(e,t){return function(n){return Or(e,n,t)}});function au(e,t,n){var r=As(t),i=Er(t,r);null!=n||Xa(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,As(t)));var o=!(Xa(n)&&"chain"in n&&!n.chain),a=Ya(e);return Dt(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,Nt([this.value()],arguments))})}),e}function su(){}var uu=Vi(Ft),cu=Vi(Ct),lu=Vi(xt);function pu(e){return yo(e)?$t(Uo(e)):function(e){return function(t){return _r(t,e)}}(e)}var fu=Gi(),du=Gi(!0);function hu(){return[]}function mu(){return!1}var gu,vu=ji(function(e,t){return e+t},0),yu=Qi("ceil"),bu=ji(function(e,t){return e/t},1),Eu=Qi("floor"),_u=ji(function(e,t){return e*t},1),Su=Qi("round"),Tu=ji(function(e,t){return e-t},0);return Ln.after=function(e,t){if("function"!=typeof t)throw new Ce(o);return e=ds(e),function(){if(--e<1)return t.apply(this,arguments)}},Ln.ary=wa,Ln.assign=ys,Ln.assignIn=bs,Ln.assignInWith=Es,Ln.assignWith=_s,Ln.at=Ss,Ln.before=Ca,Ln.bind=Oa,Ln.bindAll=Js,Ln.bindKey=Pa,Ln.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $a(e)?e:[e]},Ln.chain=pa,Ln.chunk=function(e,t,n){t=(n?vo(e,t,n):t===i)?1:gn(ds(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=r(ft(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 Nt($a(n)?wi(n):[n],mr(t,1))},Ln.cond=function(e){var t=null==e?0:e.length,n=oo();return e=t?Ft(e,function(e){if("function"!=typeof e[1])throw new Ce(o);return[n(e[0]),e[1]]}):[],zr(function(n){for(var r=-1;++r<t;){var i=e[r];if(Tt(i[0],this,n))return Tt(i[1],this,n)}})},Ln.conforms=function(e){return function(e){var t=As(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=Zi(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=Zi(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Ln.debounce=Aa,Ln.defaults=Ts,Ln.defaultsDeep=Is,Ln.defer=Fa,Ln.delay=Na,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:ds(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:ds(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&&vo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=ds(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:ds(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($a(e)?Ot:hr)(e,oo(t,3))},Ln.flatMap=function(e,t){return mr(Sa(e,t),1)},Ln.flatMapDeep=function(e,t){return mr(Sa(e,t),l)},Ln.flatMapDepth=function(e,t,n){return n=n===i?1:ds(n),mr(Sa(e,t),n)},Ln.flatten=qo,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:ds(t)):[]},Ln.flip=function(e){return Zi(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];r[i[0]]=i[1]}return r},Ln.functions=function(e){return null==e?[]:Er(e,As(e))},Ln.functionsIn=function(e){return null==e?[]:Er(e,Fs(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=Zo,Ln.invert=Cs,Ln.invertBy=Os,Ln.invokeMap=Ea,Ln.iteratee=ru,Ln.keyBy=_a,Ln.keys=As,Ln.keysIn=Fs,Ln.map=Sa,Ln.mapKeys=function(e,t){var n={};return t=oo(t,3),yr(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),yr(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=Ra,Ln.merge=Ns,Ln.mergeWith=Rs,Ln.method=iu,Ln.methodOf=ou,Ln.mixin=au,Ln.negate=ka,Ln.nthArg=function(e){return e=ds(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 Ca(2,e)},Ln.orderBy=function(e,t,n,r){return null==e?[]:($a(t)||(t=null==t?[]:[t]),$a(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=Ta,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?$r(e,t,oo(n,2)):e},Ln.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,i,n):e},Ln.pullAt=Jo,Ln.range=fu,Ln.rangeRight=du,Ln.rearg=La,Ln.reject=function(e,t){return($a(e)?Ot: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 qr(e,i),n},Ln.rest=function(e,t){if("function"!=typeof e)throw new Ce(o);return zr(e,t=t===i?t:ds(t))},Ln.reverse=Xo,Ln.sampleSize=function(e,t,n){return t=(n?vo(e,t,n):t===i)?1:ds(t),($a(e)?Yn:Wr)(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($a(e)?Kn:Xr)(e)},Ln.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&vo(e,t,n)?(t=0,n=r):(t=null==t?0:ds(t),n=n===i?r:ds(n)),ei(e,t,n)):[]},Ln.sortBy=Ia,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&&vo(e,t,n)&&(t=n=i),(n=n===i?d:n>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=ai(t))&&rn(e)?yi(pn(e),0,n):e.split(t,n):[]},Ln.spread=function(e,t){if("function"!=typeof e)throw new Ce(o);return t=null==t?0:gn(ds(t),0),zr(function(n){var r=n[t],i=yi(n,0,t);return r&&Nt(i,r),Tt(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:ds(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:ds(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 Ce(o);return Xa(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Aa(e,t,{leading:r,maxWait:t,trailing:i})},Ln.thru=fa,Ln.toArray=ps,Ln.toPairs=Ms,Ln.toPairsIn=Ls,Ln.toPath=function(e){return $a(e)?Ft(e,Uo):ss(e)?[e]:wi(xo(vs(e)))},Ln.toPlainObject=gs,Ln.transform=function(e,t,n){var r=$a(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(qe(e)):{}}return(i?Dt:yr)(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,Fs(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 di(e||[],t||[],Xn)},Ln.zipObjectDeep=function(e,t){return di(e||[],t||[],Yr)},Ln.zipWith=la,Ln.entries=Ms,Ln.entriesIn=Ls,Ln.extend=bs,Ln.extendWith=Es,au(Ln,Ln),Ln.add=vu,Ln.attempt=Ks,Ln.camelCase=Vs,Ln.capitalize=Bs,Ln.ceil=yu,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,As(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=vs(e),t=ai(t);var r=e.length,o=n=n===i?r:or(ds(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Ln.eq=ja,Ln.escape=function(e){return(e=vs(e))&&Z.test(e)?e.replace(H,tn):e},Ln.escapeRegExp=function(e){return(e=vs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Ln.every=function(e,t,n){var r=$a(e)?Ct:fr;return n&&vo(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),yr)},Ln.findLast=ga,Ln.findLastIndex=$o,Ln.findLastKey=function(e,t){return Mt(e,oo(t,3),br)},Ln.floor=Eu,Ln.forEach=va,Ln.forEachRight=ya,Ln.forIn=function(e,t){return null==e?e:gr(e,oo(t,3),Fs)},Ln.forInRight=function(e,t){return null==e?e:vr(e,oo(t,3),Fs)},Ln.forOwn=function(e,t){return e&&yr(e,oo(t,3))},Ln.forOwnRight=function(e,t){return e&&br(e,oo(t,3))},Ln.get=Ds,Ln.gt=Va,Ln.gte=Ba,Ln.has=function(e,t){return null!=e&&fo(e,t,Dr)},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?ds(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:ds(n);return i<0&&(i=gn(r+i,0)),jt(e,t,i)},Ln.inRange=function(e,t,n){return t=fs(t),n===i?(n=t,t=0):n=fs(n),function(e,t,n){return e>=vn(t,n)&&e<gn(t,n)}(e=ms(e),t,n)},Ln.invoke=Ps,Ln.isArguments=Ga,Ln.isArray=$a,Ln.isArrayBuffer=qa,Ln.isArrayLike=Qa,Ln.isArrayLikeObject=Ha,Ln.isBoolean=function(e){return!0===e||!1===e||es(e)&&Tr(e)==v},Ln.isBuffer=za,Ln.isDate=Za,Ln.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},Ln.isEmpty=function(e){if(null==e)return!0;if(Qa(e)&&($a(e)||"string"==typeof e||"function"==typeof e.splice||za(e)||us(e)||Ga(e)))return!e.length;var t=po(e);if(t==S||t==C)return!e.size;if(_o(e))return!kr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Ln.isEqual=function(e,t){return Ar(e,t)},Ln.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Ar(e,t,i,n):!!r},Ln.isError=Wa,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||Fr(e,t,so(t))},Ln.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Fr(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 Nr(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)==A},Ln.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==Tr(e)},Ln.join=function(e,t){return null==e?"":qt.call(e,t)},Ln.kebabCase=$s,Ln.last=Wo,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=ds(n))<0?gn(r+o,0):vn(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=qs,Ln.lowerFirst=Qs,Ln.lt=cs,Ln.lte=ls,Ln.max=function(e){return e&&e.length?dr(e,nu,Ir):i},Ln.maxBy=function(e,t){return e&&e.length?dr(e,oo(t,2),Ir):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?dr(e,nu,xr):i},Ln.minBy=function(e,t){return e&&e.length?dr(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,ds(t)):i},Ln.noConflict=function(){return pt._===this&&(pt._=Le),this},Ln.noop=su,Ln.now=Da,Ln.pad=function(e,t,n){e=vs(e);var r=(t=ds(t))?ln(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Bi(dt(i),n)+e+Bi(ft(i),n)},Ln.padEnd=function(e,t,n){e=vs(e);var r=(t=ds(t))?ln(e):0;return t&&r<t?e+Bi(t-r,n):e},Ln.padStart=function(e,t,n){e=vs(e);var r=(t=ds(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(vs(e).replace(re,""),t||0)},Ln.random=function(e,t,n){if(n&&"boolean"!=typeof n&&vo(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=fs(e),t===i?(t=e,e=0):t=fs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=En();return vn(e+o*(t-e+st("1e-"+((o+"").length-1))),t)}return Qr(e,t)},Ln.reduce=function(e,t,n){var r=$a(e)?Rt:Qt,i=arguments.length<3;return r(e,oo(t,4),n,i,lr)},Ln.reduceRight=function(e,t,n){var r=$a(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?vo(e,t,n):t===i)?1:ds(t),Hr(vs(e),t)},Ln.replace=function(){var e=arguments,t=vs(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=Su,Ln.runInContext=e,Ln.sample=function(e){return($a(e)?Wn:Zr)(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==S||t==C?e.size:kr(e).length},Ln.snakeCase=Hs,Ln.some=function(e,t,n){var r=$a(e)?xt:ti;return n&&vo(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=vs(e),n=null==n?0:or(ds(n),0,e.length),t=ai(t),e.slice(n,n+t.length)==t},Ln.subtract=Tu,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&&vo(e,t,n)&&(t=i),e=vs(e),t=Es({},t,r,Wi);var o,a,s=Es({},t.imports,r.imports,Wi),u=As(s),c=Yt(s,u),l=0,p=t.interpolate||be,f="__p += '",d=De((t.escape||be).source+"|"+p.source+"|"+(p===K?pe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(d,function(t,n,r,i,s,u){return r||(r=i),f+=e.slice(l,u).replace(Ee,nn),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t}),f+="';\n";var m=Re.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new _e("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(G,""):f).replace($,"$1").replace(q,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Ks(function(){return Se(u,h+"return "+f).apply(i,c)});if(g.source=f,Wa(g))throw g;return g},Ln.times=function(e,t){if((e=ds(e))<1||e>p)return[];var n=d,r=vn(e,d);t=oo(t),e-=d;for(var i=zt(r,t);++n<e;)t(n);return i},Ln.toFinite=fs,Ln.toInteger=ds,Ln.toLength=hs,Ln.toLower=function(e){return vs(e).toLowerCase()},Ln.toNumber=ms,Ln.toSafeInteger=function(e){return e?or(ds(e),-9007199254740991,p):0===e?e:0},Ln.toString=vs,Ln.toUpper=function(e){return vs(e).toUpperCase()},Ln.trim=function(e,t,n){if((e=vs(e))&&(n||t===i))return Zt(e);if(!e||!(t=ai(t)))return e;var r=pn(e),o=pn(t);return yi(r,Jt(r,o),Xt(r,o)+1).join("")},Ln.trimEnd=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.slice(0,fn(e)+1);if(!e||!(t=ai(t)))return e;var r=pn(e);return yi(r,0,Xt(r,pn(t))+1).join("")},Ln.trimStart=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=ai(t)))return e;var r=pn(e);return yi(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?ds(t.length):n,r="omission"in t?ai(t.omission):r}var a=(e=vs(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?yi(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=De(o.source,vs(fe.exec(o))+"g")),o.lastIndex=0;l=o.exec(p);)var f=l.index;c=c.slice(0,f===i?u:f)}}else if(e.indexOf(ai(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+r},Ln.unescape=function(e){return(e=vs(e))&&z.test(e)?e.replace(Q,dn):e},Ln.uniqueId=function(e){var t=++ke;return vs(e)+t},Ln.upperCase=Zs,Ln.upperFirst=Ws,Ln.each=va,Ln.eachRight=ya,Ln.first=Qo,au(Ln,(gu={},yr(Ln,function(e,t){Re.call(Ln.prototype,t)||(gu[t]=e)}),gu),{chain:!1}),Ln.VERSION="4.17.23",Dt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Ln[e].placeholder=Ln}),Dt(["drop","take"],function(e,t){Gn.prototype[e]=function(n){n=n===i?1:gn(ds(n),0);var r=this.__filtered__&&!t?new Gn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Gn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Dt(["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}}),Dt(["head","last"],function(e,t){var n="take"+(t?"Right":"");Gn.prototype[e]=function(){return this[n](1).value()[0]}}),Dt(["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 Or(n,e,t)})}),Gn.prototype.reject=function(e){return this.filter(ka(oo(e)))},Gn.prototype.slice=function(e,t){e=ds(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=ds(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(d)},yr(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||$a(t),p=function(e){var t=o.apply(Ln,Nt([e],s));return r&&f?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.__chain__,d=!!this.__actions__.length,h=a&&!f,m=u&&!d;if(!a&&l){t=m?t:new Gn(this);var g=e.apply(t,s);return g.__actions__.push({func:fa,args:[p],thisArg:i}),new Bn(g,f)}return h&&m?e.apply(this,s):(g=this.thru(p),h?r?g.value()[0]:g.value():g)})}),Dt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Oe[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($a(i)?i:[],e)}return this[n](function(n){return t.apply($a(n)?n:[],e)})}}),yr(Gn.prototype,function(e,t){var n=Ln[t];if(n){var r=n.name+"";Re.call(Pn,r)||(Pn[r]=[]),Pn[r].push({name:t,func:n})}}),Pn[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=$a(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=vn(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,f=0,d=vn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return pi(e,this.__actions__);var h=[];e:for(;u--&&f<d;){for(var m=-1,g=e[c+=t];++m<p;){var v=l[m],y=v.iteratee,b=v.type,E=y(g);if(2==b)g=E;else if(!E){if(1==b)continue e;break e}}h[f++]=g}return h},Ln.prototype.at=da,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:fa,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,We&&(Ln.prototype[We]=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},5142:(e,t,n)=>{"use strict";n.d(t,{F:()=>fc});var r={};n.r(r),n.d(r,{FunctionToString:()=>za,InboundFilters:()=>Ka,LinkedErrors:()=>os});var i={};n.r(i),n.d(i,{Breadcrumbs:()=>lu,Dedupe:()=>gu,GlobalHandlers:()=>As,HttpContext:()=>hu,LinkedErrors:()=>fu,TryCatch:()=>Us});var o=n(9392),a=n(6635);const s=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:o.GetSdkConfigurationDocument})},e}();var u=function(){return u=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},u.apply(this,arguments)},c=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,a=e.billingCountryCode,s=e.includeHiddenPlans;return!n&&this.edgeApiClient?this.edgeApiClient.getPaywall(t,a,s):this.client.query({query:o.GetPaywallDocument,fetchPolicy:"no-cache",variables:{input:u(u(u(u(u(u({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{resourceId:r}:{}),i?{context:i}:{}),a?{billingCountryCode:a}:{}),s?{includeHiddenPlans:s}:{})}})},e}();const l=c;var p=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())})},f=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])}}},d=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getCustomer=function(e){return this.client.query({query:o.GetCustomerByIdDocument,variables:{input:{customerId:e}},fetchPolicy:"no-cache"})},e.prototype.getActiveSubscriptions=function(e,t){return p(this,void 0,void 0,function(){return f(this,function(n){return[2,this.client.query({query:o.GetActiveSubscriptionsDocument,variables:{input:(0,a.isArray)(t)?{customerId:e,resourceIds:t}:{customerId:e,resourceId:t}},fetchPolicy:"no-cache"})]})})},e.prototype.getActiveSubscriptionsList=function(e,t){return p(this,void 0,void 0,function(){return f(this,function(n){return this.edgeApiClient?[2,this.edgeApiClient.getActiveSubscriptionsList(e,t)]:[2,this.client.query({query:o.GetActiveSubscriptionsListDocument,variables:{input:(0,a.isArray)(t)?{customerId:e,resourceIds:t}:{customerId:e,resourceId:t}},fetchPolicy:"no-cache"})]})})},e.prototype.getSubscription=function(e){return p(this,void 0,void 0,function(){return f(this,function(t){return[2,this.client.query({query:o.GetSubscriptionDocument,variables:{input:{subscriptionId:e}},fetchPolicy:"no-cache"})]})})},e.prototype.getCustomerPortal=function(e,t,n){return this.client.query({query:o.GetCustomerPortalByRefIdDocument,variables:{input:{customerId:e,resourceId:t,productId:n}},fetchPolicy:"no-cache"})},e.prototype.fetchUsageHistory=function(e){return p(this,arguments,void 0,function(e){var t=e.customerId,n=e.resourceId,r=e.endDate,i=e.startDate,a=e.featureId;return f(this,function(e){return[2,this.client.query({query:o.GetUsageHistoryDocument,variables:{usageHistoryInput:{customerRefId:t,featureRefId:a,resourceRefId:n,startDate:i,endDate:r||new Date}},fetchPolicy:"no-cache"})]})})},e}();const h=d,m=function(){function e(e){this.client=e}return e.prototype.getCoupons=function(){return this.client.query({query:o.GetCouponsDocument,fetchPolicy:"no-cache"})},e}();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)},v=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,a=e.addons,s=e.billableFeatures,u=e.billingInformation,c=e.billingCountryCode,l=e.billingId,p=e.billingPeriod,f=e.metadata,d=e.promotionCode,h=e.resourceId,m=e.skipTrial,g=e.startDate,v=e.unitQuantity,y=e.scheduleStrategy;return this.client.mutate({mutation:o.ApplySubscriptionDocument,variables:{input:{customerId:t,payingCustomerId:n,planId:r,paymentMethodId:i,startDate:g,addons:a,billingId:l,billingPeriod:p,unitQuantity:v,billableFeatures:s,additionalMetaData:f,resourceId:h,skipTrial:m,promotionCode:d,billingInformation:this.mapBillingInformation(u),billingCountryCode:c,scheduleStrategy:y}}})},e.prototype.getSubscriptions=function(e,t,n,r){return i=this,s=arguments,c=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(s){return[2,this.client.query({query:o.GetSubscriptionsDocument,variables:g({filter:g(g(g(g({},e?{customerId:{eq:e}}:{}),t?{resourceId:(0,a.isArray)(t)?{in:t}:{eq:t}}:{}),n?{status:(0,a.isArray)(n)?{in:n}:{eq:n}}:{}),r?{productId:(0,a.isArray)(r)?{in:r}:{eq:r}}:{})},i?{paging:g({},i.startingAfter?{first:i.limit,after:i.startingAfter}:i.endingBefore?{last:i.limit,before:i.endingBefore}:{first:i.limit})}:{}),fetchPolicy:"no-cache"})]})},new((u=void 0)||(u=Promise))(function(e,t){function n(e){try{o(c.next(e))}catch(e){t(e)}}function r(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){var i;t.done?e(t.value):(i=t.value,i instanceof u?i:new u(function(e){e(i)})).then(n,r)}o((c=c.apply(i,s||[])).next())});var i,s,u,c},e.prototype.checkoutState=function(e){var t=e.customerId,n=e.resourceId,r=e.planId,i=e.billingCountryCode;return this.client.query({query:o.GetCheckoutStateDocument,fetchPolicy:"no-cache",variables:{input:g(g({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 y=v;var b=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())})},E=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])}}},_=function(){function e(e){this.client=e}return e.prototype.estimateSubscription=function(e){return b(this,void 0,void 0,function(){var t,n;return E(this,function(r){return[2,this.client.mutate({mutation:o.EstimateSubscriptionDocument,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 b(this,void 0,void 0,function(){return E(this,function(t){return[2,this.client.mutate({mutation:o.EstimateSubscriptionUpdateDocument,variables:{input:{subscriptionId:e.subscriptionId,unitQuantity:e.unitQuantity,billableFeatures:e.billableFeatures,addons:e.addons,promotionCode:e.promotionCode}}})]})})},e.prototype.previewNextInvoice=function(e){return b(this,void 0,void 0,function(){return E(this,function(t){return[2,this.client.mutate({mutation:o.PreviewNextInvoiceDocument,fetchPolicy:"no-cache",variables:{input:{subscriptionId:e.subscriptionId}}})]})})},e.prototype.previewSubscription=function(e){return b(this,void 0,void 0,function(){return E(this,function(t){return[2,this.client.mutate({mutation:o.PreviewSubscriptionDocument,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}}})]})})},e}();const S=_;var T=function(){return T=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},T.apply(this,arguments)},I=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:o.GetMockPaywallDocument,fetchPolicy:"no-cache",variables:{input:T(T(T({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{context:r}:{})}})},e}();const D=I;var w=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:o.GetUsageHistoryV2Document,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}(),C=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=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 P=function(){function e(e){this.client=e}return e.prototype.getCreditBalance=function(e){return C(this,void 0,void 0,function(){return O(this,function(t){return[2,this.client.query({query:o.GetCreditBalanceDocument,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.getCreditGrants=function(e){return C(this,void 0,void 0,function(){return O(this,function(t){return[2,this.client.query({query:o.GetCreditGrantsDocument,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.getCreditLedger=function(e){return C(this,void 0,void 0,function(){return O(this,function(t){return[2,this.client.query({query:o.GetCreditLedgerDocument,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.getCreditUsage=function(e){return C(this,void 0,void 0,function(){return O(this,function(t){return[2,this.client.query({query:o.GetCreditUsageDocument,variables:{input:e},fetchPolicy:"no-cache"})]})})},e}(),A=function(){function e(e){this.client=e}return e.prototype.createPaymentSession=function(e){return this.client.mutate({mutation:o.CreatePaymentSessionDocument,variables:{input:e}})},e}();var F=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())})},N=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 R=function(){function e(e){this.client=e}return e.prototype.getConfiguration=function(e){return F(this,void 0,void 0,function(){return N(this,function(t){return[2,this.client.query({query:o.GetAutomaticRechargeConfigurationDocument,variables:{input:e},fetchPolicy:"no-cache"})]})})},e.prototype.saveConfiguration=function(e){return F(this,void 0,void 0,function(){return N(this,function(t){return[2,this.client.mutate({mutation:o.SaveAutomaticRechargeConfigurationDocument,variables:{input:e}})]})})},e}(),k=function(e,t){this.sdkConfiguration=new s(e,t),this.paywall=new l(e,t),this.subscriptions=new y(e),this.mockPaywall=new D(e),this.customers=new h(e,t),this.coupons=new m(e),this.subscriptionEstimations=new S(e),this.usageHistoryApi=new w(e),this.credits=new P(e),this.checkout=new A(e),this.automaticRecharge=new R(e)};var x=n(5455),U=n.n(x),M=n(8537),L=n.n(M),j=n(3789),V=o.SourceType.JsClientSdk,B="js-client-sdk",G=["localhost","127.0.0.1","::1"];function $(e){var t=new URL(e);return G.includes(t.hostname)?t.port="3060":t.hostname="edge.".concat(t.hostname),t.toString().slice(0,-1)}function q(e){var t=e.customerId;if(!t||U()(t))throw new Error("You must set customer ID first, use setCustomerId function or pass it via the constructor");return t}var Q=n(2970),H="Invariant Violation",z=Object.setPrototypeOf,Z=void 0===z?function(e,t){return e.__proto__=t,e}:z,W=function(e){function t(n){void 0===n&&(n=H);var r=e.call(this,"number"==typeof n?H+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=H,Z(r,t.prototype),r}return(0,Q.ZT)(t,e),t}(Error);function Y(e,t){if(!e)throw new W(t)}var K=["debug","log","warn","error","silent"],J=K.indexOf("log");function X(e){return function(){if(K.indexOf(e)>=J)return(console[e]||console.log).apply(console,arguments)}}function ee(e){try{return e()}catch(e){}}!function(e){e.debug=X("debug"),e.log=X("log"),e.warn=X("warn"),e.error=X("error")}(Y||(Y={}));const te=ee(function(){return globalThis})||ee(function(){return window})||ee(function(){return self})||ee(function(){return n.g})||ee(function(){return Function("return this")()});var ne="__",re=[ne,ne].join("DEV");const ie=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(te,re,{value:"production"!==ee(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),te[re]}}();function oe(e){try{return e()}catch(e){}}var ae=oe(function(){return globalThis})||oe(function(){return window})||oe(function(){return self})||oe(function(){return n.g})||oe(function(){return oe.constructor("return this")()}),se=!1;function ue(e){return Array.isArray(e)&&e.length>0}!ae||oe(function(){return"production"})||oe(function(){return process})||(Object.defineProperty(ae,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),se=!0),n(4957).H,se&&(delete ae.process,se=!1),__DEV__?Y("boolean"==typeof ie,ie):Y("boolean"==typeof ie,38);var ce=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="",(ue((r=l).graphQLErrors)||ue(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(0,Q.ZT)(t,e),t}(Error),le=(n(3616),n(3591)),pe=fetch,fe=n.n(le)()(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)}}),de=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,a.isString)(t)?n.set("resourceId",t):(0,a.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",V),(n=this.dynamicData.customerToken)&&t.append("X-CUSTOMER-KEY",n),[4,fe("".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(),!U()(o.errors))throw new ce({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 he(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 me(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 ge(e,t,n){return t&&me(e.prototype,t),n&&me(e,n),e}var ve=function(){return"function"==typeof Symbol},ye=function(e){return ve()&&Boolean(Symbol[e])},be=function(e){return ye(e)?Symbol[e]:"@@"+e};ve()&&!ye("observable")&&(Symbol.observable=Symbol("observable"));var Ee=be("iterator"),_e=be("observable"),Se=be("species");function Te(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function Ie(e){var t=e.constructor;return void 0!==t&&null===(t=t[Se])&&(t=void 0),void 0!==t?t:ke}function De(e){return e instanceof ke}function we(e){we.log?we.log(e):setTimeout(function(){throw e})}function Ce(e){Promise.resolve().then(function(){try{e()}catch(e){we(e)}})}function Oe(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=Te(t,"unsubscribe");n&&n.call(t)}}catch(e){we(e)}}function Pe(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function Ae(e,t,n){e._state="running";var r=e._observer;try{var i=Te(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(Pe(e),!i)throw n;i.call(r,n);break;case"complete":Pe(e),i&&i.call(r)}}catch(e){we(e)}"closed"===e._state?Oe(e):"running"===e._state&&(e._state="ready")}function Fe(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 Ce(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(Ae(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)})):void Ae(e,t,n);e._queue.push({type:t,value:n})}}var Ne=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new Re(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&&(Pe(this),Oe(this))},ge(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),Re=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){Fe(this._subscription,"next",e)},t.error=function(e){Fe(this._subscription,"error",e)},t.complete=function(){Fe(this._subscription,"complete")},ge(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),ke=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 Ne(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(Ie(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(Ie(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=Ie(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=Ie(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=Ie(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[_e]=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=Te(t,_e);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return De(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(ye("iterator")&&(r=Te(t,Ee)))return new n(function(e){Ce(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 he(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)?he(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){Ce(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){Ce(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},ge(e,null,[{key:Se,get:function(){return this}}]),e}();function xe(e){return null!==e&&"object"==typeof e}function Ue(e,t){var n=t,r=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new W("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 W(43);"FragmentDefinition"===e.kind&&r.push(e)}),void 0===n&&(__DEV__?Y(1===r.length,"Found "+r.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):Y(1===r.length,44),n=r[0].name.value),(0,Q.pi)((0,Q.pi)({},e),{definitions:(0,Q.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function Me(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function Le(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?Y(n,"No fragment named "+e.name.value+"."):Y(n,45),n;default:return null}}function je(e){return{__ref:String(e)}}function Ve(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function Be(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 Be(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 Be(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 W('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new W(54);e[t.value]=null}}ve()&&Object.defineProperty(ke,Symbol("extensions"),{value:{symbol:_e,hostReportError:we},configurable:!0});var Ge=["connection","include","skip","client","rest","export"],$e=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+"("+qe(i)+")"}return n.connection.key}var o=e;if(t){var a=qe(t);o+="("+a+")"}return n&&Object.keys(n).forEach(function(e){-1===Ge.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@"+e+"("+qe(n[e])+")":o+="@"+e)}),o},{setStringify:function(e){var t=qe;return qe=e,t}}),qe=function(e){return JSON.stringify(e,Qe)};function Qe(e,t){return xe(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{})),t}function He(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){var r=e.name,i=e.value;return Be(n,r,i,t)}),n}return null}function ze(e){return e.alias?e.alias.value:e.name.value}function Ze(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(We(o)){if("__typename"===o.name.value)return e[ze(o)]}else{var a=Ze(e,Le(o,n).selectionSet,n);if("string"==typeof a)return a}}}function We(e){return"Field"===e.kind}function Ye(e){return"InlineFragment"===e.kind}function Ke(e){__DEV__?Y(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'):Y(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 W('Schema type definitions not allowed in queries. Found: "'+e.kind+'"'):new W(47);return e});return __DEV__?Y(t.length<=1,"Ambiguous GraphQL document: contains "+t.length+" operations"):Y(t.length<=1,48),e}function Je(e){return Ke(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function Xe(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function et(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function tt(e){var t=Je(e);return __DEV__?Y(t&&"query"===t.operation,"Must contain a query definition."):Y(t&&"query"===t.operation,49),t}function nt(e){var t;Ke(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 W("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new W(53)}function rt(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(e){e.defaultValue&&Be(t,e.variable.name,e.defaultValue)}),t}function it(e,t){return t?t(e):ke.of()}function ot(e){return"function"==typeof e?new ut(e):e}function at(e){return e.request.length<=1}var st=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return(0,Q.ZT)(t,e),t}(Error),ut=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return ke.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(ot).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i=ot(n),o=ot(r||new e(it));return at(i)&&at(o)?new e(function(e){return t(e)?i.request(e)||ke.of():o.request(e)||ke.of()}):new e(function(e,n){return t(e)?i.request(e,n)||ke.of():o.request(e,n)||ke.of()})},e.execute=function(e,t){return e.request(function(e,t){var n=(0,Q.pi)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?(0,Q.pi)((0,Q.pi)({},n),e(n)):(0,Q.pi)((0,Q.pi)({},n),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,Q.pi)({},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?Xe(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 W("illegal argument: "+i):new W(26)}return e}(t))))||ke.of()},e.concat=function(t,n){var r=ot(t);if(at(r))return __DEV__&&Y.warn(new st("You are calling concat on a terminating link, which will have no effect",r)),r;var i=ot(n);return at(i)?new e(function(e){return r.request(e,function(e){return i.request(e)||ke.of()})||ke.of()}):new e(function(e,t){return r.request(e,function(e){return i.request(e,t)||ke.of()})||ke.of()})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(it)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new W("request is not implemented"):new W(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}(),ct=n(8867),lt=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new W("Network request failed. "+t+" is not serializable: "+e.message):new W(23);throw r.parseError=e,r}return n},pt=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},ft=Object.prototype.hasOwnProperty,dt=n(9054),ht={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}};function mt(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 gt(e){return new ke(function(t){t.error(e)})}var vt=ee(function(){return fetch}),yt=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=(0,Q._T)(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new W("\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 W(22)}(r||vt);var c={http:{includeExtensions:i},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new ut(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 f,d=(0,Q.pi)((0,Q.pi)({},a),i.headers),h={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:d},m=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=(0,Q.pi)((0,Q.pi)({},t.options),{headers:t.headers,credentials:t.credentials}),o=t.http||{};n.forEach(function(e){i=(0,Q.pi)((0,Q.pi)((0,Q.pi)({},i),e.options),{headers:(0,Q.pi)((0,Q.pi)({},i.headers),mt(e.headers))}),e.credentials&&(i.credentials=e.credentials),o=(0,Q.pi)((0,Q.pi)({},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,dt.S)(c)),{options:i,body:l}}(e,ht,c,h),g=m.options,v=m.body;if(v.variables&&!s){var y=new Set(Object.keys(v.variables));(0,ct.Vn)(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&y.delete(e.name.value)}}),y.size&&(v.variables=(0,Q.pi)({},v.variables),y.forEach(function(e){delete v.variables[e]}))}if(!g.signal){var b=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),E=b.controller,_=b.signal;(f=E)&&(g.signal=_)}if(o&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(g.method="GET"),"GET"===g.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=lt(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=lt(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,I=S.parseError;if(I)return gt(I);t=T}else try{g.body=lt(v,"Payload")}catch(I){return gt(I)}return new ke(function(n){var i;return(r||ee(function(){return fetch})||vt)(t,g).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&&pt(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||ft.call(t,"data")||ft.call(t,"errors")||pt(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(){f&&f.abort()}})})}(t).request)||this;return n.options=t,n}return(0,Q.ZT)(t,e),t}(ut),bt=ut.execute;function Et(){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:_t,hasOwnProperty:St}=Object.prototype,Tt=Function.prototype.toString,It=new Map;function Dt(e,t){try{return wt(e,t)}finally{It.clear()}}function wt(e,t){if(e===t)return!0;const n=_t.call(e);if(n!==_t.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(At(e,t))return!0;const n=Ct(e),r=Ct(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;++e)if(!St.call(t,n[e]))return!1;for(let r=0;r<i;++r){const i=n[r];if(!wt(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(At(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&&!wt(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=Tt.call(e);return n===Tt.call(t)&&!function(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(n,Pt)}}return!1}function Ct(e){return Object.keys(e).filter(Ot,e)}function Ot(e){return void 0!==this[e]}const Pt="{ [native code] }";function At(e,t){let n=It.get(e);if(n){if(n.has(t))return!0}else It.set(e,n=new Set);return n.add(t),!1}var Ft,Nt,Rt=function(){return Object.create(null)},kt=Array.prototype,xt=kt.forEach,Ut=kt.slice,Mt=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=Rt),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 xt.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(Ut.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}(),Lt="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),jt="function"==typeof WeakSet,Vt="function"==typeof Symbol&&"function"==typeof Symbol.for,Bt=function(){function e(){this.known=new(jt?WeakSet:Set),this.pool=new Mt(Lt),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return xe(e)&&this.known.has(e)},e.prototype.pass=function(e){if(xe(e)){var t=function(e){return xe(e)?Array.isArray(e)?e.slice(0):(0,Q.pi)({__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(xe(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}(),Gt=Object.assign(function(e){if(xe(e)){void 0===Ft&&$t();var t=Ft.admit(e),n=Nt.get(t);return void 0===n&&Nt.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)},{reset:$t});function $t(){Ft=new Bt,Nt=new(Lt?WeakMap:Map)}function qt(e,t,n){return new ke(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)}},f=e.subscribe(p);return function(){return f.unsubscribe()}})}function Qt(e){return e.errors&&e.errors.length>0||!1}function Ht(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 zt={kind:"Field",name:{kind:"Name",value:"__typename"}};function Zt(e,t){return e.selectionSet.selections.every(function(e){return"FragmentSpread"===e.kind&&Zt(t[e.name.value],t)})}function Wt(e){return Zt(Je(e)||function(e){__DEV__?Y("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'):Y("Document"===e.kind,50),__DEV__?Y(e.definitions.length<=1,"Fragment must have exactly one definition."):Y(e.definitions.length<=1,51);var t=e.definitions[0];return __DEV__?Y("FragmentDefinition"===t.kind,"Must be a fragment definition."):Y("FragmentDefinition"===t.kind,52),t}(e),Me(et(e)))?null:e}function Yt(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function Kt(e,t){var n=Object.create(null),r=[],i=Object.create(null),o=[],a=Wt((0,ct.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(Yt(e)))return t.arguments&&t.arguments.forEach(function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})}),t.selectionSet&&en(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(Yt(e)(t))return null}}}));return a&&Ht(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 Wt((0,ct.Vn)(t,{OperationDefinition:{enter:function(t){return(0,Q.pi)((0,Q.pi)({},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&&Ht(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 Wt((0,ct.Vn)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(o,a)),a}var Jt=Object.assign(function(e){return(0,ct.Vn)(Ke(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some(function(e){return We(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var i=n;if(!(We(i)&&i.directives&&i.directives.some(function(e){return"export"===e.name.value})))return(0,Q.pi)((0,Q.pi)({},e),{selections:(0,Q.ev)((0,Q.ev)([],r,!0),[zt],!1)})}}}}})},{added:function(e){return e===zt}}),Xt={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some(function(e){return"key"===e.name.value})||__DEV__&&Y.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 en(e){var t=[];return e.selections.forEach(function(e){(We(e)||Ye(e))&&e.selectionSet?en(e.selectionSet).forEach(function(e){return t.push(e)}):"FragmentSpread"===e.kind&&t.push(e)}),t}function tn(e){return"query"===nt(e).operation?e:(0,ct.Vn)(e,{OperationDefinition:{enter:function(e){return(0,Q.pi)((0,Q.pi)({},e),{operation:"query"})}}})}function nn(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__?Y(n&&1===n.length,"Incorrect number of arguments for the @"+r+" directive."):Y(n&&1===n.length,40);var i=n[0];__DEV__?Y(i.name&&"if"===i.name.value,"Invalid argument for the @"+r+" directive."):Y(i.name&&"if"===i.name.value,41);var o=i.value;__DEV__?Y(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @"+r+" directive must be a variable or a boolean value."):Y(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__?Y(void 0!==i,"Invalid variable referenced in @"+n.name.value+" directive."):Y(void 0!==i,39)):i=r.value.value,"skip"===n.name.value?!i:i})}function rn(e,t){return function(e){var t=[];return(0,ct.Vn)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some(function(t){return e.indexOf(t)>-1})}function on(e){return e&&rn(["client"],e)&&rn(["export"],e)}var an=new Map;function sn(e){var t=an.get(e)||1;return an.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function un(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function cn(e){function t(t){Object.defineProperty(e,t,{value:ke})}return Vt&&Symbol.species&&t(Symbol.species),t("@@species"),e}function ln(e){return e&&"function"==typeof e.then}var pn,fn=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],un(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),un(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?ln(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(),un(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 ke(t)]),ln(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return(0,Q.ZT)(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}(ke);function dn(e){return!!e&&e<7}cn(fn),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"}(pn||(pn={}));var hn=Object.prototype.toString;function mn(e){return gn(e)}function gn(e,t){switch(hn.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]=gn(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]=gn(e[n],t)}),r;default:return e}}var vn=Object.assign,yn=Object.hasOwnProperty,bn=!1,En=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=_n)}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=Je(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(0,Q.ZT)(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||pn.ready,r=(0,Q.pi)((0,Q.pi)({},t),{loading:dn(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),Dt(r.data,{})&&(r.data=void 0),a.complete?(r.networkStatus!==pn.loading||"cache-first"!==o&&"cache-only"!==o||(r.networkStatus=pn.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||Sn(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!Dt(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||Dt(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&&yn.call(e,"variables")){var i=tt(this.options.query),o=i.variableDefinitions;o&&o.some(function(e){return"variables"===e.variable.name.value})||__DEV__&&Y.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&&!Dt(this.options.variables,e)&&(n.variables=this.options.variables=(0,Q.pi)((0,Q.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,pn.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,Q.pi)((0,Q.pi)({},e.query?e:(0,Q.pi)((0,Q.pi)((0,Q.pi)({},this.options),e),{variables:(0,Q.pi)((0,Q.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=pn.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,pn.fetchMore).then(function(r){var i=r.data,o=e.updateQuery;return o?(__DEV__&&!bn&&(__DEV__&&Y.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."),bn=!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__&&Y.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 Dt(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},pn.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__?Y(n,"Attempted to start a polling query without a polling interval."):Y(n,12),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(dn(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},pn.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=(0,Q.pi)((0,Q.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?e:mn(e),variables:t}),ue(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===pn.refetch||t===pn.fetchMore||t===pn.poll,i=this.options.variables,o=r?Et(this.options,e):vn(this.options,Et(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!Dt(e.variables,i)&&(o.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=pn.setVariables)));var a=o.variables&&(0,Q.pi)({},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),un(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=(0,Q.pi)((0,Q.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:pn.error,loading:!1});this.updateLastResult(n,t),un(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}(ke);function _n(e){__DEV__&&Y.error("Unhandled error",e.message,e.stack)}function Sn(e){__DEV__&&ue(e)&&__DEV__&&Y.debug("Missing cache result fields: "+e.map(function(e){return e.path.join(".")}).join(", "),e)}cn(En);var Tn=Object.prototype.hasOwnProperty;function In(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Dn(e)}function Dn(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new Cn,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var wn=function(e,t,n){return this.merge(e[n],t[n])},Cn=function(){function e(e){void 0===e&&(e=wn),this.reconciler=e,this.isObject=xe,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 xe(t)&&xe(e)?(Object.keys(t).forEach(function(i){if(Tn.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,(0,Q.ev)([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 xe(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,Q.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();let On=null;const Pn={};let An=1;function Fn(e){try{return e()}catch(e){}}const Nn="@wry/context:Slot",Rn=Fn(()=>globalThis)||Fn(()=>global)||Object.create(null),kn=Rn[Nn]||Array[Nn]||function(e){try{Object.defineProperty(Rn,Nn,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",An++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=On;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===Pn)break;return e!==On&&(On.slots[this.id]=t),!0}return On&&(On.slots[this.id]=Pn),!1}getValue(){if(this.hasValue())return On.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=On;On={parent:o,slots:i};try{return t.apply(r,n)}finally{On=o}}static bind(e){const t=On;return function(){const n=On;try{return On=t,e.apply(this,arguments)}finally{On=n}}}static noContext(e,t,n){if(!On)return e.apply(n,t);{const r=On;try{return On=null,e.apply(n,t)}finally{On=r}}}}),{bind:xn,noContext:Un}=kn;function Mn(){}var Ln,jn=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=Mn),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}(),Vn=new kn,Bn=Object.prototype.hasOwnProperty,Gn=void 0===(Ln=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:Ln;function $n(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var qn=[];function Qn(e,t){if(!e)throw new Error(t||"assertion failure")}function Hn(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var zn=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&&!Yn(this))return Zn(this),this.value[0]},e.prototype.recompute=function(e){return Qn(!this.recomputing,"already recomputing"),Zn(this),Yn(this)?function(e,t){return rr(e),Vn.withValue(e,Wn,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{$n(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,Yn(e)||Jn(e)}(e),Hn(e.value)}(this,e):Hn(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Kn(this),$n(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),rr(this),Xn(this,function(t,n){t.setDirty(),ir(t,e)})},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=qn.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(Gn(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),qn.push(this.deps),this.deps=null)},e.count=0,e}();function Zn(e){var t=Vn.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Yn(e)?er(t,e):tr(t,e),t}function Wn(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 Yn(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Kn(e){Xn(e,er)}function Jn(e){Xn(e,tr)}function Xn(e,t){var n=e.parents.size;if(n)for(var r=Gn(e.parents),i=0;i<n;++i)t(r[i],e)}function er(e,t){Qn(e.childValues.has(t)),Qn(Yn(t));var n=!Yn(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=qn.pop()||new Set;e.dirtyChildren.add(t),n&&Kn(e)}function tr(e,t){Qn(e.childValues.has(t)),Qn(!Yn(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()),nr(e,t),Yn(e)||Jn(e)}function nr(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(qn.length<100&&qn.push(n),e.dirtyChildren=null))}function rr(e){e.childValues.size>0&&e.childValues.forEach(function(t,n){ir(e,n)}),e.forgetDeps(),Qn(null===e.dirtyChildren)}function ir(e,t){t.parents.delete(e),e.childValues.delete(t),nr(e,t)}var or={setDirty:!0,dispose:!0,forget:!0};function ar(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=Vn.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&($n(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&Bn.call(or,n)?n:"setDirty";Gn(r).forEach(function(e){return e[i]()}),t.delete(e),$n(r)}},r}function sr(){var e=new Mt("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}sr();var ur=new Set;function cr(e,t){void 0===t&&(t=Object.create(null));var n=new jn(t.max||Math.pow(2,16),function(e){return e.dispose()}),r=t.keyArgs,i=t.makeCacheKey||sr(),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 zn(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),ur.add(n),Vn.hasValue()||(ur.forEach(function(e){return e.clean()}),ur.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 lr=null,pr={},fr=1,dr="@wry/context:Slot",hr=Array,mr=hr[dr]||function(){var e=function(){function e(){this.id=["slot",fr++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=lr;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===pr)break;return e!==lr&&(lr.slots[this.id]=t),!0}return lr&&(lr.slots[this.id]=pr),!1},e.prototype.getValue=function(){if(this.hasValue())return lr.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=lr;lr={parent:a,slots:o};try{return t.apply(r,n)}finally{lr=a}},e.bind=function(e){var t=lr;return function(){var n=lr;try{return lr=t,e.apply(this,arguments)}finally{lr=n}}},e.noContext=function(e,t,n){if(!lr)return e.apply(n,t);var r=lr;try{return lr=null,e.apply(n,t)}finally{lr=r}},e}();try{Object.defineProperty(hr,dr,{value:hr[dr]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();mr.bind,mr.noContext;var gr=new mr,vr=new WeakMap;function yr(e){var t=vr.get(e);return t||vr.set(e,t={vars:new Set,dep:ar()}),t}function br(e){yr(e).vars.forEach(function(t){return t.forgetCache(e)})}function Er(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){yr(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=gr.getValue();s&&(i(s),yr(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),yr(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var _r=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=In(t.resolvers,e)}):this.resolvers=In(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(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then(function(e){return(0,Q.pi)((0,Q.pi)({},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 rn(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){Ke(e);var t=Kt([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,ct.Vn)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return We(e)&&"__typename"===e.name.value}))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,Q.pi)((0,Q.pi)({},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={}),(0,Q.mG)(this,void 0,void 0,function(){return(0,Q.Jh)(this,function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return(0,Q.pi)((0,Q.pi)({},t),e.exportedVariables)})]:[2,(0,Q.pi)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,ct.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 ct.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:tn(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),(0,Q.mG)(this,void 0,void 0,function(){var a,s,u,c,l,p,f,d,h;return(0,Q.Jh)(this,function(m){return a=nt(e),s=et(e),u=Me(s),c=a.operation,l=c?c.charAt(0).toUpperCase()+c.slice(1):"Query",f=(p=this).cache,d=p.client,h={fragmentMap:u,context:(0,Q.pi)((0,Q.pi)({},n),{cache:f,client:d}),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(0,Q.mG)(this,void 0,void 0,function(){var r,i,o,a,s,u=this;return(0,Q.Jh)(this,function(c){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function(e){return(0,Q.mG)(u,void 0,void 0,function(){var s,u;return(0,Q.Jh)(this,function(c){return nn(e,o)?We(e)?[2,this.resolveField(e,t,n).then(function(t){var n;void 0!==t&&a.push(((n={})[ze(e)]=t,n))})]:(Ye(e)?s=e:(s=r[e.name.value],__DEV__?Y(s,"No fragment named "+e.name.value):Y(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 Dn(a)})]})})},e.prototype.resolveField=function(e,t,n){return(0,Q.mG)(this,void 0,void 0,function(){var r,i,o,a,s,u,c,l,p,f=this;return(0,Q.Jh)(this,function(d){return r=n.variables,i=e.name.value,o=ze(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(gr.withValue(this.cache,p,[t,He(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,u.then(function(t){return void 0===t&&(t=s),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)})}),e.selectionSet?null==t?t:Array.isArray(t)?f.resolveSubSelectedArray(e,t,n):e.selectionSet?f.resolveSelectionSet(e.selectionSet,t,n):void 0:t})]})})},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map(function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0}))},e}(),Sr=new(Lt?WeakMap:Map);function Tr(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return Sr.set(e,(Sr.get(e)+1)%1e15),n.apply(this,arguments)})}function Ir(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Dr=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;Sr.has(n)||(Sr.set(n,0),Tr(n,"evict"),Tr(n,"modify"),Tr(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||pn.loading;return this.variables&&this.networkStatus!==pn.loading&&!Dt(this.variables,e.variables)&&(t=pn.setVariables),Dt(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(){Ir(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&&Dt(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||Dt(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;Ir(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(dn(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=(0,Q.pi)((0,Q.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Dt(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===Sr.get(this.cache)&&Dt(t,n.variables)&&Dt(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=ue(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(wr(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:Sr.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=pn.ready},e.prototype.markError=function(e){return this.networkStatus=pn.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function wr(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!Qt(e);return!r&&n&&e.data&&(r=!0),r}var Cr=Object.prototype.hasOwnProperty,Or=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(Lt?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 _r({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 W("QueryManager stopped while query was in flight"):new W(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,f=void 0===p?"none":p,d=e.fetchPolicy,h=void 0===d?"network-only":d,m=e.keepRootFields,g=e.context;return(0,Q.mG)(this,void 0,void 0,function(){var e,o,s;return(0,Q.Jh)(this,function(p){switch(p.label){case 0:return __DEV__?Y(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):Y(t,14),__DEV__?Y("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."):Y("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,g)]:[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:f,context:g,updateQueries:i,update:c,keepRootFields:m}),this.broadcastQueries(),s=this,[2,new Promise(function(p,d){return qt(s.getObservableFromLink(t,(0,Q.pi)((0,Q.pi)({},g),{optimisticResponse:r}),n,!1),function(p){if(Qt(p)&&"none"===f)throw new ce({graphQLErrors:p.errors});o&&(o.loading=!1,o.error=null);var d=(0,Q.pi)({},p);return"function"==typeof a&&(a=a(d)),"ignore"===f&&Qt(d)&&delete d.errors,s.markMutationResult({mutationId:e,result:d,document:t,variables:n,fetchPolicy:h,errorPolicy:f,context:g,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(),d(t instanceof ce?t:new ce({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&&wr(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&&Cr.call(a,u)){var c=a[u],l=n.queries.get(o),p=l.document,f=l.variables,d=t.diff({query:p,variables:f,returnPartialData:!0,optimistic:!1}),h=d.result;if(d.complete&&h){var m=c(h,{mutationResult:r,queryName:p&&Xe(p)||void 0,queryVariables:f});m&&i.push({result:m,dataId:"ROOT_QUERY",query:p,variables:f})}}})}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=(0,Q.pi)((0,Q.pi)({},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((0,Q.pi)((0,Q.pi)({},t),{result:{data:r}}),e)}catch(e){__DEV__&&Y.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),Kt([Xt],Ke(t))),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:on(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:rt(Je(r)),asQuery:(0,Q.pi)((0,Q.pi)({},r),{definitions:r.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,Q.pi)((0,Q.pi)({},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(0,Q.pi)((0,Q.pi)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=(0,Q.pi)((0,Q.pi)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new Dr(this),n=new En({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__?Y(e.query,"query option is required. You must specify your GraphQL document in the query option."):Y(e.query,16),__DEV__?Y("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):Y("Document"===e.query.kind,17),__DEV__?Y(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):Y(!e.returnPartialData,18),__DEV__?Y(!e.pollInterval,"pollInterval option only supported on watchQuery."):Y(!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 W("Store reset while query was in flight (not completed in link chain)"):new W(20)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=pn.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):xe(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):xe(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=sn("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new En({queryManager:t,queryInfo:i,options:(0,Q.pi)((0,Q.pi)({},e),{fetchPolicy:"network-only"})});Y(o.queryId===r),i.setObservableQuery(o),n.set(r,o)}),__DEV__&&r.size&&r.forEach(function(e,t){e||__DEV__&&Y.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&&(wr(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),Qt(o))throw new ce({graphQLErrors:o.errors});return o})};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,s).then(u);return new ke(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:Xe(s)||void 0,context:this.prepareContext((0,Q.pi)((0,Q.pi)({},t),{forceFetch:!r}))};if(t=l.context,r){var p=u.get(s)||new Map;u.set(s,p);var f=Gt(n);if(!(o=p.get(f))){var d=new fn([bt(c,l)]);p.set(f,o=d),d.cleanup(function(){p.delete(f)&&p.size<1&&u.delete(s)})}}else o=new fn([bt(c,l)])}else o=new fn([ke.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=qt(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 qt(this.getObservableFromLink(e.document,n.context,n.variables),function(i){var o=ue(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new ce({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||pn.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors),a},function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new ce({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=pn.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,f=void 0!==p&&p,d=t.notifyOnNetworkStatusChange,h=void 0!==d&&d,m=t.context,g=void 0===m?{}:m,v=Object.assign({},t,{query:i,variables:o,fetchPolicy:u,errorPolicy:l,returnPartialData:f,notifyOnNetworkStatusChange:h,context:g}),y=function(e){return v.variables=e,r.fetchQueryByPolicy(a,v,n)};this.fetchCancelFns.set(e,function(e){setTimeout(function(){return b.cancel(e)})});var b=new fn(this.transform(v.query).hasClientExports?this.localState.addExportedVariables(v.query,v.variables,v.context).then(y):y(v.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?sn("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 Dr&&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,f=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var d=function(){return e.getDiff(o)},h=function(t,n){void 0===n&&(n=e.networkStatus||pn.loading);var a=t.result;!__DEV__||c||Dt(a,{})||Sn(t.missing);var s=function(e){return ke.of((0,Q.pi)({data:e,loading:dn(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===pn.refetch&&"merge"!==s?1:2,g=function(){return r.getResultsFromLink(e,m,{variables:o,context:l,fetchPolicy:a,errorPolicy:u})},v=p&&"number"==typeof f&&f!==n&&dn(n);switch(a){default:case"cache-first":return(y=d()).complete?[h(y,e.markReady())]:c||v?[h(y),g()]:[g()];case"cache-and-network":var y;return(y=d()).complete||c||v?[h(y),g()]:[g()];case"cache-only":return[h(d(),e.markReady())];case"network-only":return v?[h(d()),g()]:[g()];case"no-cache":return v?[h(e.getDiff()),g()]:[g()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Dr(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,Q.pi)((0,Q.pi)({},t),{clientAwareness:this.clientAwareness})},e}(),Pr=!1;function Ar(e,t){return Et(e,t,t.variables&&{variables:(0,Q.pi)((0,Q.pi)({},e.variables),t.variables)})}var Fr=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,f=e.queryDeduplication,d=void 0===f||f,h=e.defaultOptions,m=e.assumeImmutableResults,g=void 0!==m&&m,v=e.resolvers,y=e.typeDefs,b=e.fragmentMatcher,E=e.name,_=e.version,S=e.link;if(S||(S=n?new yt({uri:n,credentials:r,headers:i}):ut.empty()),!o)throw __DEV__?new W("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 W(9);if(this.link=S,this.cache=o,this.disableNetworkFetches=s||c>0,this.queryDeduplication=d,this.defaultOptions=h||{},this.typeDefs=y,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),!Pr&&__DEV__&&(Pr=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var T=window.navigator,I=T&&T.userAgent,D=void 0;"string"==typeof I&&(I.indexOf("Chrome/")>-1?D="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":I.indexOf("Firefox/")>-1&&(D="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),D&&__DEV__&&Y.log("Download the Apollo DevTools for a better development experience: "+D)}this.version="3.4.17",this.localState=new _r({cache:o,client:this,resolvers:v,fragmentMatcher:b}),this.queryManager=new Or({cache:this.cache,link:this.link,queryDeduplication:d,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=Ar(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,Q.pi)((0,Q.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Ar(this.defaultOptions.query,e)),__DEV__?Y("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."):Y("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,Q.pi)((0,Q.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Ar(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 bt(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__&&Y.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}(),Nr=function(){function e(){this.getFragmentDoc=cr(Ue)}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((0,Q.pi)((0,Q.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,Q.pi)((0,Q.pi)({},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=(0,Q._T)(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=(0,Q._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e}(),Rr=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(0,Q.ZT)(t,e),t}(Error);function kr(e){return __DEV__&&(t=e,(n=new Set([t])).forEach(function(e){xe(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){xe(e[t])&&n.add(e[t])})})),e;var t,n}var xr=Object.prototype.hasOwnProperty;function Ur(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 Mr={dataIdFromObject:Ur,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Lr(e){var t=e.canonizeResults;return void 0===t?Mr.canonizeResults:t}var jr=/^[_a-z][_0-9a-z]*/i;function Vr(e){var t=e.match(jr);return t?t[0]:e}function Br(e,t,n){return!!xe(t)&&(Array.isArray(t)?t.every(function(t){return Br(e,t,n)}):e.selections.every(function(e){if(We(e)&&nn(e,n)){var r=ze(e);return xr.call(t,r)&&(!e.selectionSet||Br(e.selectionSet,t[r],n))}return!0}))}function Gr(e){return xe(e)&&!Ve(e)&&!Array.isArray(e)}var $r=Object.create(null),qr=function(){return $r},Qr=Object.create(null),Hr=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 kr(Ve(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return Ve(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return je(e);if(Ve(e))return e;var r=n.policies.identify(e)[0];if(r){var i=je(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return(0,Q.pi)({},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),xr.call(this.data,e)){var n=this.data[e];if(n&&xr.call(n,t))return n[t]}return"__typename"===t&&xr.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Yr?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),xr.call(this.data,e)?this.data[e]:this instanceof Yr?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;Ve(e)&&(e=e.__ref),Ve(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__?Y("string"==typeof n,"store.merge expects a string ID"):Y("string"==typeof n,1);var a=new Cn(Jr).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=Vr(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof Yr||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:$r,INVALIDATE:Qr,isReference:Ve,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||je(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(u){var c=Vr(u),l=r[u];if(void 0!==l){var p="function"==typeof t?t:t[u]||t[c];if(p){var f=p===qr?$r:p(kr(l),(0,Q.pi)((0,Q.pi)({},s),{fieldName:c,storeFieldName:u,storage:n.getStorage(e,u)}));f===Qr?n.group.dirty(e,u):(f===$r&&(f=void 0),f!==l&&(i[u]=f,o=!0,l=f))}void 0!==l&&(a=!1)}}),o)return this.merge(e,i),a&&(this instanceof Yr?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]=qr,r):qr)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(xr.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof Yr&&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){xr.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&&xr.call(e,n)||t.delete(n)}),e){var n=e.__META,r=(0,Q._T)(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 Yr?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){xr.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 Yr;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!xr.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){Ve(e)&&(t[e.__ref]=!0),xe(e)&&Object.keys(e).forEach(function(t){var n=e[t];xe(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),zr=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?ar():null,this.keyMaker=new Mt(Lt)},e.prototype.depend=function(e,t){if(this.d){this.d(Zr(e,t));var n=Vr(t);n!==t&&this.d(Zr(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(Zr(e,t),"__exists"===t?"forget":"setDirty")},e}();function Zr(e,t){return t+"#"+e}function Wr(e,t){Xr(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 zr(i))||this;return a.stump=new Kr(a),a.storageTrie=new Mt(Lt),o&&a.replace(o),a}return(0,Q.ZT)(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}(Hr||(Hr={}));var Yr=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(0,Q.ZT)(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){Dt(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(0,Q.pi)((0,Q.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return xr.call(this.data,t)?(0,Q.pi)((0,Q.pi)({},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}(Hr),Kr=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new zr(t.group.caching,t.group))||this}return(0,Q.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(Yr);function Jr(e,t,n){var r=e[n],i=t[n];return Dt(r,i)?r:i}function Xr(e){return!!(e instanceof Hr&&e.group.caching)}function ei(e,t){return new Rr(e.message,t.path.slice(),t.query,t.variables)}function ti(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var ni=function(){function e(e){var t=this;this.knownResults=new(Lt?WeakMap:Map),this.config=Et(e,{addTypename:!1!==e.addTypename,canonizeResults:Lr(e)}),this.canon=e.canon||new Bt,this.executeSelectionSet=cr(function(e){var n,r=e.context.canonizeResults,i=ti(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?(0,Q.pi)((0,Q.pi)({},o),{result:t.canon.admit(o.result)}):o:(Wr(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:ti,makeCacheKey:function(e,t,n,r){if(Xr(n.store))return n.store.makeCacheKey(e,Ve(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=cr(function(e){return Wr(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(Xr(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Bt},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=(0,Q.pi)((0,Q.pi)({},rt(tt(n))),o);var p=je(i),f=this.executeSelectionSet({selectionSet:nt(n).selectionSet,objectOrReference:p,enclosingRef:p,context:{store:t,query:n,policies:l,variables:o,varString:Gt(o),canonizeResults:c,fragmentMap:Me(et(n)),path:[]}}),d=f.missing&&f.missing.length>0;if(d&&!s)throw f.missing[0];return{result:f.result,missing:f.missing,complete:!d}},e.prototype.isFresh=function(e,t,n,r){if(Xr(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(Ve(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:[ei(__DEV__?new W("Dangling reference to missing "+r.__ref+" object"):new W(5),o)]};var a=o.variables,s=o.policies,u=o.store,c=[],l={result:null},p=u.getFieldValue(r,"__typename");function f(){return l.missing||(l.missing=[])}function d(e){var t;return e.missing&&(t=f()).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(nn(e,a))if(We(e)){var u=s.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),l=ze(e);o.path.push(l),void 0===u?Jt.added(e)||f().push(ei(__DEV__?new W("Can't find field '"+e.name.value+"' on "+(Ve(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2))):new W(6),o)):Array.isArray(u)?u=d(t.executeSubSelectedArray({field:e,array:u,enclosingRef:i,context:o})):e.selectionSet?null!=u&&(u=d(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:u,enclosingRef:Ve(u)?u:i,context:o}))):o.canonizeResults&&(u=t.canon.pass(u)),void 0!==u&&c.push(((n={})[l]=u,n)),Y(o.path.pop()===l)}else{var m=Le(e,o.fragmentMap);m&&s.fragmentMatches(m,p)&&m.selectionSet.selections.forEach(h.add,h)}});var m=Dn(c);return l.result=o.canonizeResults?this.canon.admit(m):kr(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),Y(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:Ve(e)?e:o,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){xe(n)&&(__DEV__?Y(!Ve(n),"Missing selection set for object of type "+function(e,t){return Ve(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)+" returned for query field "+t.name.value):Y(!Ve(n),7),Object.values(n).forEach(r.add,r))})}}(a.store,r,e),Y(a.path.pop()===t),e))}),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),ri=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=Je(r),c=new Cn;a=(0,Q.pi)((0,Q.pi)({},rt(u)),a);var l={store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:Gt(a),fragmentMap:Me(et(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(!Ve(p))throw __DEV__?new W("Could not identify object "+JSON.stringify(i)):new W(8);return l.incomingById.forEach(function(t,r){var i=t.fields,o=t.mergeTree,a=t.selections,s=je(r);if(o&&o.map.size){var u=n.applyMerges(o,s,i,l);if(Ve(u))return;i=u}if(__DEV__&&!l.overwrite){var c=new Set;a.forEach(function(e){We(e)&&e.selectionSet&&c.add(e.name.value)}),Object.keys(i).forEach(function(e){(function(e){return c.has(Vr(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&&!Ve(o)&&!Dt(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=Vr(n),c=s+"."+u;if(!ci.has(c)){ci.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__&&Y.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]=[]),f=je(n);if(p.indexOf(i)>=0)return f;if(p.push(i),this.reader&&this.reader.isFresh(r,f,i,o))return f}var d=Object.create(null);l&&(d=o.merge(d,l));var h=n&&s.rootTypenamesById[n]||Ze(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof h&&(d.__typename=h);var m=new Set(i.selections);if(m.forEach(function(e){var n;if(nn(e,o.variables))if(We(e)){var i=ze(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=oi(a,l),f=t.processFieldValue(u,e,o,p),g=void 0;if(e.selectionSet&&!(g=o.store.getFieldValue(f,"__typename"))&&Ve(f)){var v=o.incomingById.get(f.__ref);g=v&&v.fields.__typename}var y=s.getMergeFunction(h,e.name.value,g);y?p.info={field:e,typename:h,merge:y}:ui(a,l),d=o.merge(d,((n={})[l]=f,n))}else o.clientOnly||Jt.added(e)||__DEV__&&Y.error(("Missing field '"+ze(e)+"' while writing result "+JSON.stringify(r,null,2)).substring(0,1e3));o.clientOnly=c}else{var b=Le(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,d),g.mergeTree=ai(g.mergeTree,a),g.selections.forEach(m.add,m),g.selections=m):o.incomingById.set(n,{fields:d,mergeTree:si(a)?void 0:a,selections:m}),je(n)}return d},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,oi(r,o));return ui(r,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?mn(e):e},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!Ve(n)){var s,u=Array.isArray(n)||!Ve(t)&&!Gr(t)?void 0:t,c=n;u&&!i&&(i=[Ve(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&&Y(i.pop()===t)}}),s&&(n=Array.isArray(c)?c.slice(0):(0,Q.pi)({},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}(),ii=[];function oi(e,t){var n=e.map;return n.has(t)||n.set(t,ii.pop()||{map:new Map}),n.get(t)}function ai(e,t){if(e===t||!t||si(t))return e;if(!e||si(e))return t;var n=e.info&&t.info?(0,Q.pi)((0,Q.pi)({},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,ai(e,t.map.get(n))),o.delete(n)}),o.forEach(function(n){i.map.set(n,ai(t.map.get(n),e.map.get(n)))})}return i}function si(e){return!e||!(e.info||e.map.size)}function ui(e,t){var n=e.map,r=n.get(t);r&&si(r)&&(ii.push(r),n.delete(t))}var ci=new Set;function li(e){var t=sn("stringifyForDisplay");return JSON.stringify(e,function(e,n){return void 0===n?t:n}).split(JSON.stringify(t)).join("<undefined>")}function pi(e){return void 0!==e.args?e.args:e.field?He(e.field,e.variables):null}$e.setStringify(Gt);var fi=function(){},di=function(e,t){return t.fieldName},hi=function(e,t,n){return(0,n.mergeObjects)(e,t)},mi=function(e,t){return t},gi=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=(0,Q.pi)({dataIdFromObject:Ur},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?Ze(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=Ei(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=(0,Q._T)(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),xr.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?hi:!1===t?mi:e.merge}a(r,t.merge),r.keyFn=!1===i?fi:Array.isArray(i)?Ei(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?di:Array.isArray(s)?bi(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||di)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?Y(!r||r===e,"Cannot change root "+e+" __typename more than once"):Y(!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(jr);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!xr.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=(0,Q._T)(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 f=s[p];if(f.has(o))return a.has(o)||(l&&__DEV__&&Y.warn("Inferring subtype "+t+" of supertype "+o),a.add(o)),!0;f.forEach(u),c&&p===s.length-1&&Br(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=pi(e);o;){var u=o(s,a);if(!Array.isArray(u)){t=u||r;break}o=bi(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 Be(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 Be(r,n,i,t)})),$e(e.name.value,r,n)}(e.field,e.variables):$e(r,pi(e))),!1===t?r:r===Vr(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=Vr(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=vi(this,n,e,t,t.store.getStorage(Ve(n)?n.__ref:n,i));return gr.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===hi?yi(r.store)(e,t):s===mi?t:(r.overwrite&&(e=void 0),s(e,t,vi(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function vi(e,t,n,r,i){var o=e.getStoreFieldName(n),a=Vr(o),s=n.variables||r.variables,u=r.store,c=u.toReference,l=u.canRead;return{args:pi(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:Ve,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(!xe(n))return void(__DEV__&&Y.warn("Unexpected readField arguments: "+li(Array.from(arguments))));o=(0,Q.pi)({},n),xr.call(n,"from")||(o.from=t)}return __DEV__&&void 0===o.from&&__DEV__&&Y.warn("Undefined 'from' passed to readField with arguments "+li(Array.from(arguments))),void 0===o.variables&&(o.variables=s),e.readField(o,r)},mergeObjects:yi(r.store)}}function yi(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new W("Cannot automatically merge arrays"):new W(3);if(xe(t)&&xe(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(Ve(t)&&Gr(n))return e.merge(t.__ref,n),t;if(Gr(t)&&Ve(n))return e.merge(t,n.__ref),n;if(Gr(t)&&Gr(n))return(0,Q.pi)((0,Q.pi)({},t),n)}return n}}function bi(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify(Si(t,e,!1)):n.fieldName}}function Ei(e){var t=new Mt(Lt);return function(n,r){var i;if(r.selectionSet&&r.fragmentMap){var o=t.lookupArray([r.selectionSet,r.fragmentMap]);i=o.aliasMap||(o.aliasMap=_i(r.selectionSet,r.fragmentMap))}var a=r.keyObject=Si(n,e,!0,i);return r.typename+":"+JSON.stringify(a)}}function _i(e,t){var n=Object.create(null),r=new Set([e]);return r.forEach(function(e){e.selections.forEach(function(e){if(We(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]=_i(e.selectionSet,t))}else{var a=Le(e,t);a&&r.add(a.selectionSet)}})}),n}function Si(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]=Si(e[i],t,n,u)}}else{var c=r&&r.aliases,l=c&&c[t]||t;xr.call(e,l)?a[o=t]=e[i=l]:(__DEV__?Y(!n,"Missing field '"+l+"' while computing key fields"):Y(!n,4),i=o=void 0)}}),a}var Ti=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=Er,n.txCount=0,n.config=function(e){return Et(Mr,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new gi({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,Q.ZT)(t,e),t.prototype.init=function(){var e=this.data=new Hr.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 ri(this,this.storeReader=new ni({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Lr(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=cr(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(Xr(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,Gt({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((0,Q.pi)((0,Q.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof Rr)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(xr.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((0,Q.pi)((0,Q.pi)({},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||yr(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&&br(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){Gt.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 Ve(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(xr.call(e,"id"))return!1;e=(0,Q.pi)((0,Q.pi)({},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(),Gt.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),br(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((0,Q.pi)((0,Q.pi)({},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((0,Q.pi)((0,Q.pi)({},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=Jt(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&&Dt(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(Nr);const Ii=JSON.parse('{"g":{"BillingCredentials":["StripeCheckoutCredentials","ZuoraCheckoutCredentials"],"Credentials":["AppStoreCredentials","Auth0Credentials","AwsMarketplaceCredentials","BigQueryCredentials","HubspotCredentials","OpenFGACredentials","SalesforceCredentials","SnowflakeCredentials","StripeCredentials","ZuoraCredentials"],"EntitlementUnion":["CreditEntitlement","FeatureEntitlement"],"EntitlementWithSummaryUnion":["CreditEntitlementWithSummary","FeatureEntitlementWithSummary"],"PackageEntitlementChangeUnion":["PackageCreditEntitlementChange","PackageFeatureEntitlementChange"],"PackageEntitlementUnion":["PackageCreditEntitlement","PackageFeatureEntitlement"],"PaymentMethodForm":["StripePaymentMethodForm","ZuoraPaymentMethodForm"],"ResetPeriodConfiguration":["MonthlyResetPeriodConfig","WeeklyResetPeriodConfig","YearlyResetPeriodConfig"],"ScheduleVariables":["AddonChangeVariables","AddonPriceOverrideChangeVariables","BillingPeriodChangeVariables","CouponChangeVariables","DowngradeChangeVariables","PlanChangeVariables","PlanPriceOverrideChangeVariables","RecurringCreditsChangeVariables","UnitAmountChangeVariables"],"SubscriptionEntitlementUnion":["SubscriptionCreditEntitlement","SubscriptionFeatureEntitlement"],"SyncRevisionData":["SyncRevisionBillingData","SyncRevisionMarketplaceData","SyncRevisionPriceBillingData"]}}');var Di=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(0,Q.mG)(i,void 0,void 0,function(){var t,n,r;return(0,Q.Jh)(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}(),wi=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(0,Q.ZT)(t,e),t.prototype.request=function(e,t){var n=new Di(e,t,this.delayFor,this.retryIf);return n.start(),new ke(function(e){return n.subscribe(e),function(){n.unsubscribe(e)}})},t}(ut);const Ci="3.98.3";var Oi=function(e){return!!e&&![500,400].includes(e.statusCode)};var Pi=n(660),Ai=n(8553),Fi=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:o.GetEntitlementsStateDocument,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 Ni=Fi;var Ri=n(6760),ki=n.n(Ri),xi=n(7620),Ui=n.n(xi),Mi=n(1525),Li=n.n(Mi);const ji=function(e,t){this.calculatedEntitlement=e,this.featureUsage=t};var Vi=function(e){this.currency=e.currency,this.isGranted=e.isGranted,this.accessDeniedReason=e.accessDeniedReason,this.usageLimit=e.usageLimit,this.currentUsage=e.currentUsage,this.usagePeriodEnd=e.usagePeriodEnd},Bi=function(e){return e?new Date(e):void 0},Gi=function(){return Gi=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},Gi.apply(this,arguments)},$i=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.mapBooleanEntitlement=function(e,t){return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,feature:e.calculatedEntitlement.feature?Gi(Gi({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapNumericEntitlement=function(e,t){var n=e.calculatedEntitlement,r=n.hasUnlimitedUsage,i=n.usageLimit;return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:r,value:null!=i?i:void 0,feature:e.calculatedEntitlement.feature?Gi(Gi({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapMeteredEntitlement=function(e,t,n){var r=e.calculatedEntitlement,i=r.hasUnlimitedUsage,a=r.usageLimit,s=r.feature,u=e.featureUsage,c=u.currentUsage,l=u.resetPeriod,p=u.usagePeriodAnchor,f=u.usagePeriodStart,d=u.usagePeriodEnd,h=null;return s&&s.featureType===o.FeatureType.Number&&s.meterType===o.MeterType.Incremental&&l&&d&&(h={nextResetDate:d,resetPeriod:l}),{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:i,usageLimit:null!=a?a:void 0,currentUsage:c,requestedUsage:n||0,resetPeriod:null!=l?l:void 0,usagePeriodAnchor:p,usagePeriodStart:f,usagePeriodEnd:d,resetSettings:h||void 0,feature:e.calculatedEntitlement.feature?Gi(Gi({},e.calculatedEntitlement.feature),{meterType:e.calculatedEntitlement.feature.meterType||void 0,isMetered:!0}):void 0}},e.prototype.mapEnumEntitlement=function(e,t,n){return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,feature:e.calculatedEntitlement.feature?Gi(Gi({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0,enumValues:e.calculatedEntitlement.enumValues||[],requestedValues:n}},e.prototype.mapEntitlement=function(e,t,n){var r=e.calculatedEntitlement;if(!r.feature)return this.mapBooleanEntitlement(e,t);var i=r.feature,a=i.featureType,s=i.meterType,u=a===o.FeatureType.Number&&(s===o.MeterType.Incremental||s===o.MeterType.Fluctuating);switch(a){case o.FeatureType.Boolean:return this.mapBooleanEntitlement(e,t);case o.FeatureType.Enum:return this.mapEnumEntitlement(e,t);case o.FeatureType.Number:return u?this.mapMeteredEntitlement(e,t,n):this.mapNumericEntitlement(e,t)}},e.prototype.mapCachedEntitlement=function(e){var t;return e.feature&&(t={id:e.feature.refId,featureType:e.feature.featureType,meterType:e.feature.meterType||void 0,units:e.feature.featureUnits||void 0,unitsPlural:e.feature.featureUnitsPlural||void 0,displayName:e.feature.displayName,description:e.feature.description||""}),{calculatedEntitlement:{usageLimit:e.usageLimit,hasUnlimitedUsage:e.hasUnlimitedUsage,hasSoftLimit:!!e.hasSoftLimit,accessDeniedReason:e.accessDeniedReason||void 0,feature:t,enumValues:e.enumValues||[]},featureUsage:{resetPeriod:e.resetPeriod,resetPeriodConfiguration:e.resetPeriodConfiguration,currentUsage:e.currentUsage||0,usagePeriodAnchor:Bi(e.usagePeriodAnchor),usagePeriodStart:Bi(e.usagePeriodStart),usagePeriodEnd:Bi(e.usagePeriodEnd)}}},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:Ai.Currency.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 Gi(Gi({},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 Ai.CustomerModel({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:ki()(t,function(e){return i.mapSubscription(e)}),promotionalEntitlements:ki()(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:Ui()(e.experimentInfo,"__typename")})},e.prototype.mapPaymentDetails=function(e){var t=e.defaultPaymentExpirationYear,n=e.defaultPaymentExpirationMonth,r=e.defaultPaymentMethodLast4Digits;if(Li()([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,f=e.blockSize,d={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:f,creditRate:e.creditRate?{amount:e.creditRate.amount}:null};return n&&(d.feature={featureId:n.refId,displayName:n.displayName,units:n.featureUnits,unitsPlural:n.featureUnitsPlural,unitQuantity:t}),d},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:ki()(e.entitlements,function(e){return i.mapPackageEntitlement(e)}),inheritedEntitlements:ki()(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:ki()(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===o.PricingType.Free||!e.compatibleAddons)return[];var n=e.compatibleAddons;return(e.pricingType===o.PricingType.Paid?n.filter(function(e){return e.pricingType===o.PricingType.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===o.MeterType.Fluctuating||t.meterType===o.MeterType.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===o.MeterType.Fluctuating||t.meterType===o.MeterType.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:Ui()(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?Gi(Gi({},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:ki()(e.entitlements,function(e){return i.mapPackageEntitlement(e)}),packageEntitlements:null!==(t=e.packageEntitlements)&&void 0!==t?t:void 0,pricePoints:ki()(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 Gi(Gi(Gi({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?Gi(Gi({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:Gi(Gi({},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?Gi({},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 Gi(Gi({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 Gi({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)||Ai.Currency.Usd},e.prototype.mapCompatiblePackageGroups=function(e){var t=this;return e.pricingType!==o.PricingType.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.prototype.mapCachedCreditEntitlement=function(e){var t,n,r,i,o,a,s;return new Vi({currency:{currencyId:e.currency.currencyId,displayName:null!==(t=e.currency.displayName)&&void 0!==t?t:void 0,description:null!==(n=e.currency.description)&&void 0!==n?n:void 0,unitSingular:null!==(r=e.currency.unitSingular)&&void 0!==r?r:void 0,unitPlural:null!==(i=e.currency.unitPlural)&&void 0!==i?i:void 0,additionalMetaData:null!==(o=e.currency.additionalMetaData)&&void 0!==o?o:void 0},isGranted:e.isGranted,accessDeniedReason:e.accessDeniedReason||void 0,usageLimit:null!==(a=e.usageLimit)&&void 0!==a?a:0,currentUsage:null!==(s=e.currentUsage)&&void 0!==s?s:0,usagePeriodEnd:Bi(e.usagePeriodEnd)})},e.prototype.mapCachedEntitlements=function(e){for(var t,n=new Map,r=new Map,i=0,o=e;i<o.length;i++){var a=o[i];if("CreditEntitlement"===a.__typename){var s=a;r.set(s.currency.currencyId,this.mapCachedCreditEntitlement(s))}else if("FeatureEntitlement"===a.__typename){var u=a;(null===(t=u.feature)||void 0===t?void 0:t.refId)&&n.set(u.feature.refId,this.mapCachedEntitlement(u))}}return{featureEntitlements:n,creditEntitlements:r}},e.prototype.mapCreditEntitlement=function(e,t){var n=Math.max(e.usageLimit-e.currentUsage,0);return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,currency:e.currency,usageLimit:e.usageLimit,currentUsage:e.currentUsage,remaining:n,usagePeriodEnd:e.usagePeriodEnd}},e}(),qi=function(){function e(){}return e.decideCreditEntitlementPolicy=function(e){if(!e)return{hasAccess:!1,accessDeniedReason:Ai.AccessDeniedReason.EntitlementNotFound};if(e.accessDeniedReason)return{hasAccess:!1,accessDeniedReason:e.accessDeniedReason};if(!e.isGranted)return{hasAccess:!1,accessDeniedReason:Ai.AccessDeniedReason.Revoked};var t=e.usageLimit;return e.currentUsage+1>t?{hasAccess:!1,accessDeniedReason:Ai.AccessDeniedReason.RequestedUsageExceedingLimit}:{hasAccess:!0}},e.decideEntitlementPolicy=function(e,t,n){var r,i;if(void 0===t&&(t=0),void 0===n&&(n=[]),!e||!e.calculatedEntitlement.feature)return{hasAccess:!1,accessDeniedReason:Ai.AccessDeniedReason.NoFeatureEntitlementInSubscription};if(e.calculatedEntitlement.accessDeniedReason)return{hasAccess:!1,accessDeniedReason:e.calculatedEntitlement.accessDeniedReason};switch(e.calculatedEntitlement.feature.featureType){case Ai.FeatureType.Boolean:return{hasAccess:!0};case Ai.FeatureType.Enum:var o=(0,a.difference)(n,e.calculatedEntitlement.enumValues||[]);return(0,a.isEmpty)(o)?{hasAccess:!0}:{hasAccess:!1,accessDeniedReason:Ai.AccessDeniedReason.RequestedValuesMismatch};case Ai.FeatureType.Number:if((null===(r=e.calculatedEntitlement.feature)||void 0===r?void 0:r.meterType)===Ai.MeterType.None)return{hasAccess:!0};if(e.calculatedEntitlement.hasUnlimitedUsage||e.calculatedEntitlement.hasSoftLimit)return{hasAccess:!0};var s=(null===(i=e.calculatedEntitlement)||void 0===i?void 0:i.usageLimit)||0;return e.featureUsage.currentUsage+t<=s?{hasAccess:!0}:{hasAccess:!1,accessDeniedReason:Ai.AccessDeniedReason.RequestedUsageExceedingLimit}}},e}(),Qi=n(8879),Hi=n.n(Qi);var zi,Zi,Wi=[o.MeterType.Incremental,o.MeterType.Fluctuating],Yi=function(){return Yi=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},Yi.apply(this,arguments)},Ki=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())})},Ji=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])}}},Xi=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.modelMapper=new $i,this.loadingEntitlements=null,this.entitlementsApi=new Ni(r,i)}return e.prototype.refresh=function(){return Ki(this,void 0,void 0,function(){return Ji(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(e),i=qi.decideEntitlementPolicy(r);return(null==r?void 0:r.calculatedEntitlement.feature)&&r.calculatedEntitlement.feature.featureType!==Ai.FeatureType.Boolean?t:r?this.modelMapper.mapBooleanEntitlement(r,i):Yi(Yi({},i),{isFallback:!1})},e.prototype.getNumericEntitlement=function(e,t,n){var r,i=this.getEntitlement(e),o=qi.decideEntitlementPolicy(i);return(null==i?void 0:i.calculatedEntitlement.feature)&&(null===(r=i.calculatedEntitlement.feature)||void 0===r?void 0:r.featureType)!==Ai.FeatureType.Number?t:i?this.modelMapper.mapNumericEntitlement(i,o):Yi(Yi({},o),{isFallback:!1,isUnlimited:!1})},e.prototype.getMeteredEntitlement=function(e,t,n){var r,i,o=null==n?void 0:n.requestedUsage,a=this.getEntitlement(e),s=this.handleUsagePeriodOver(a),u=qi.decideEntitlementPolicy(s,o);return(null==s?void 0:s.calculatedEntitlement.feature)&&(null===(r=s.calculatedEntitlement.feature)||void 0===r?void 0:r.meterType)!==Ai.MeterType.Fluctuating&&(null===(i=s.calculatedEntitlement.feature)||void 0===i?void 0:i.meterType)!==Ai.MeterType.Incremental?t:s?this.modelMapper.mapMeteredEntitlement(s,u,o):Yi(Yi({},u),{currentUsage:0,isFallback:!1,isUnlimited:!1,requestedUsage:o||0})},e.prototype.handleUsagePeriodOver=function(e){var t,n,r=new Date;if(!(e&&(null==(n=e.calculatedEntitlement.feature)?void 0:n.featureType)===o.FeatureType.Number&&!(0,a.isNil)(n.meterType)&&Wi.includes(n.meterType)&&e.featureUsage.usagePeriodEnd&&e.featureUsage.usagePeriodEnd.getTime()<r.getTime()))return e;var i,s,u=e.calculatedEntitlement,c=e.featureUsage,l=c.resetPeriod,p=c.usagePeriodAnchor;return p&&l&&(i=(t=function(e,t,n){var r=Hi()(t),i=Hi()(e),a=function(e){switch(e){case o.EntitlementResetPeriod.Year:return"years";case o.EntitlementResetPeriod.Month:return"months";case o.EntitlementResetPeriod.Week:return"weeks";case o.EntitlementResetPeriod.Day:return"days";case o.EntitlementResetPeriod.Hour:return"hours";default:throw new Error("Unsupported reset period")}}(n),s=Math.floor(r.diff(i,a,!0)),u=i.clone().add(s,a),c=i.clone().add(s+1,a);return{usagePeriodStart:u.toDate(),usagePeriodEnd:c.toDate()}}(new Date(p),r,l)).usagePeriodStart,s=t.usagePeriodEnd),new ji(u,Yi(Yi({},c),{currentUsage:0,usagePeriodStart:i,usagePeriodEnd:s}))},e.prototype.getEnumEntitlement=function(e,t,n){var r,i=this.cacheService.getEntitlement(e),o=null==n?void 0:n.requestedValues,a=qi.decideEntitlementPolicy(i,void 0,o);return(null==i?void 0:i.calculatedEntitlement.feature)&&(null===(r=i.calculatedEntitlement.feature)||void 0===r?void 0:r.featureType)!==Ai.FeatureType.Enum?t:i?this.modelMapper.mapEnumEntitlement(i,a,o):Yi(Yi({},a),{isFallback:!1,enumValues:[],requestedValues:o||[]})},e.prototype.getCreditEntitlement=function(e,t){var n=this.cacheService.getCreditEntitlement(e),r=qi.decideCreditEntitlementPolicy(n);return this.renewOutdatedCacheInBackground(),n?this.modelMapper.mapCreditEntitlement(n,r):Yi(Yi({},t),{currency:{currencyId:e},isFallback:!1,hasAccess:r.hasAccess,accessDeniedReason:r.accessDeniedReason})},e.prototype.loadEntitlements=function(e){return Ki(this,void 0,void 0,function(){return Ji(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 Ki(this,void 0,void 0,function(){var t,n,r,i;return Ji(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){this.cacheService.updateLastChecked();var n=this.cacheService.getLastUpdate(),r=this.getLastEntitlementsUpdate(e);if(!(n&&r.getTime()<n.getTime())){var i=this.modelMapper.mapCachedEntitlements(e),o=i.featureEntitlements,a=i.creditEntitlements;this.cacheService.setEntitlements({entitlements:o,accessDeniedReason:t},r),this.cacheService.setCreditEntitlements(a),this.onEntitlementsUpdated(o)}},e.prototype.getLastEntitlementsUpdate=function(e){return(0,a.max)(e.flatMap(function(e){return[new Date(e.entitlementUpdatedAt),new Date(e.usageUpdatedAt)]}))||new Date},e.prototype.getEntitlement=function(e){var t=this.cacheService.getEntitlement(e);return this.renewOutdatedCacheInBackground(),t},e.prototype.getEntitlementsState=function(){return Ki(this,void 0,void 0,function(){var e,t=this;return Ji(this,function(n){switch(n.label){case 0:return[4,this.renewOutdatedCache()];case 1:return n.sent(),e=this.cacheService.getEntitlements(),[2,{entitlements:Array.from(e.entitlements.values()).map(function(e){var n=qi.decideEntitlementPolicy(e);return t.modelMapper.mapEntitlement(e,n)}),accessDeniedReason:e.accessDeniedReason}]}})})},e.prototype.renewOutdatedCache=function(){return Ki(this,void 0,void 0,function(){return Ji(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}(),eo=n(1434),to=(zi=function(e,t){return zi=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])},zi(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 n(){this.constructor=e}zi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),no=function(e){function t(){return e.call(this)||this}return to(t,e),t}(eo.TypedEmitter),ro=function(){function e(e){void 0===e&&(e=3e4);var t=this;this.ttlMs=e,this.setFeatures=function(e){return t.features=new Set(e)},this.ttlMs=e,this.entitlementsState={entitlements:new Map,accessDeniedReason:null},this.creditEntitlements=new Map,this.features=new Set,this.lastUpdate=null,this.lastChecked=null}return e.prototype.getEntitlement=function(e){return this.entitlementsState.entitlements.get(e)||null},e.prototype.validateFeature=function(e){return this.features.has(e)},e.prototype.updateLastChecked=function(){this.lastChecked=new Date},e.prototype.setEntitlements=function(e,t){this.entitlementsState=e,this.lastUpdate=t},e.prototype.getEntitlements=function(){return this.entitlementsState},e.prototype.getLastUpdate=function(){return this.lastUpdate},e.prototype.isLoaded=function(){return!!this.lastUpdate},e.prototype.isOutdated=function(){return null===this.lastChecked||(new Date).getTime()-this.lastChecked.getTime()>this.ttlMs},e.prototype.getCreditEntitlement=function(e){return this.creditEntitlements.get(e)||null},e.prototype.setCreditEntitlements=function(e){this.creditEntitlements=e},e}();!function(e){e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="READY",e.FAILED="FAILED"}(Zi||(Zi={}));var io=function(){function e(e){this.eventEmitter=e,this.initializationPromise=null,this.initializationStatus=Zi.IN_PROGRESS,this.initFailureError=null}return e.prototype.getInitializationPromise=function(){var e=this;return this.initializationPromise?this.initializationPromise:this.initializationStatus===Zi.SUCCESS?Promise.resolve():this.initializationStatus===Zi.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=Zi.SUCCESS,this.eventEmitter.emit("initializeSuccessfully")},e.prototype.signalFailedInit=function(e){this.initializationStatus=Zi.FAILED,this.initFailureError=e,this.eventEmitter.emit("initializeFailed",e)},e}();const oo=Object.prototype.toString;function ao(e){switch(oo.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return vo(e,Error)}}function so(e,t){return oo.call(e)===`[object ${t}]`}function uo(e){return so(e,"ErrorEvent")}function co(e){return so(e,"DOMError")}function lo(e){return so(e,"String")}function po(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function fo(e){return null===e||po(e)||"object"!=typeof e&&"function"!=typeof e}function ho(e){return so(e,"Object")}function mo(e){return"undefined"!=typeof Event&&vo(e,Event)}function go(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function vo(e,t){try{return e instanceof t}catch(e){return!1}}function yo(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function bo(e){return e&&e.Math==Math?e:void 0}const Eo="object"==typeof globalThis&&bo(globalThis)||"object"==typeof window&&bo(window)||"object"==typeof self&&bo(self)||"object"==typeof n.g&&bo(n.g)||function(){return this}()||{};function _o(){return Eo}function So(e,t,n){const r=n||Eo,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const To=_o();function Io(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=Do(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 Do(e,t){const n=e,r=[];let i,o,a,s,u;if(!n||!n.tagName)return"";if(To.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&&lo(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 wo="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Co=["debug","info","warn","error","log","assert","trace"],Oo={};function Po(e){if(!("console"in Eo))return e();const t=Eo.console,n={},r=Object.keys(Oo);r.forEach(e=>{const r=Oo[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}const Ao=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return wo?Co.forEach(n=>{t[n]=(...t)=>{e&&Po(()=>{Eo.console[n](`Sentry Logger [${n}]:`,...t)})}}):Co.forEach(e=>{t[e]=()=>{}}),t}();function Fo(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function No(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const r=e[t];try{yo(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Ro(e,t=[],n=!1){return t.some(t=>function(e,t,n=!1){return!!lo(e)&&(so(t,"RegExp")?t.test(e):!!lo(t)&&(n?e===t:e.includes(t)))}(e,t,n))}function ko(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"==typeof i&&Uo(i,r),e[t]=i}function xo(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){wo&&Ao.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Uo(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,xo(e,"__sentry_original__",t)}catch(e){}}function Mo(e){return e.__sentry_original__}function Lo(e){if(ao(e))return{message:e.message,name:e.name,stack:e.stack,...Vo(e)};if(mo(e)){const t={type:e.type,target:jo(e.target),currentTarget:jo(e.currentTarget),...Vo(e)};return"undefined"!=typeof CustomEvent&&vo(e,CustomEvent)&&(t.detail=e.detail),t}return e}function jo(e){try{return"undefined"!=typeof Element&&vo(e,Element)?Io(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function Vo(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 Bo(e){return Go(e,new Map)}function Go(e,t){if(function(e){if(!ho(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]=Go(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(Go(e,t))}),r}return e}function $o(){const e=Eo,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 qo(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Qo(e){const{message:t,event_id:n}=e;if(t)return t;const r=qo(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Ho(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 zo(e,t){const n=qo(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 Zo(e){if(e&&e.__sentry_captured__)return!0;try{xo(e,"__sentry_captured__",!0)}catch(e){}return!1}function Wo(){return Date.now()/1e3}const Yo=function(){const{performance:e}=Eo;if(!e||!e.now)return Wo;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();let Ko;(()=>{const{performance:e}=Eo;if(!e||!e.now)return void(Ko="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?(Ko="timeOrigin",e.timeOrigin):Ko="navigationStart":Ko="dateNow"})();const Jo="production",Xo="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var ea;function ta(e){return new ra(t=>{t(e)})}function na(e){return new ra((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(ea||(ea={}));class ra{constructor(e){ra.prototype.__init.call(this),ra.prototype.__init2.call(this),ra.prototype.__init3.call(this),ra.prototype.__init4.call(this),this._state=ea.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new ra((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 ra((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(ea.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(ea.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===ea.PENDING&&(go(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===ea.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===ea.RESOLVED&&e[1](this._value),this._state===ea.REJECTED&&e[2](this._value),e[0]=!0)})}}}function ia(){return So("globalEventProcessors",()=>[])}function oa(e){ia().push(e)}function aa(e,t,n,r=0){return new ra((i,o)=>{const a=e[r];if(null===t||"function"!=typeof a)i(t);else{const s=a({...t},n);Xo&&a.id&&null===s&&Ao.log(`Event processor "${a.id}" dropped event`),go(s)?s.then(t=>aa(e,t,n,r+1).then(i)).then(null,o):aa(e,s,n,r+1).then(i).then(null,o)}})}function sa(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||Yo(),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:$o()),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 ua(e){return e.transaction}function ca(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:a,tags:s,origin:u}=la(e);return Bo({data:r,op:i,parent_span_id:o,span_id:t,status:a,tags:s,trace_id:n,origin:u})}function la(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function pa(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},a=Bo({environment:r.environment||Jo,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}function fa(e){const t=ja();if(!t)return{};const n=pa(la(e).trace_id||"",t,Da().getScope()),r=ua(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=la(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 da(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=Bo(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const c=Bo(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const l=Bo(i);l&&Object.keys(l).length&&(e.user={...l,...e.user});const p=Bo(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:ca(t),...e.contexts};const n=ua(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:fa(t),...e.sdkProcessingMetadata};const r=la(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 ha(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:u,fingerprint:c,eventProcessors:l,attachments:p,propagationContext:f,transactionName:d,span:h}=t;ma(e,"extra",n),ma(e,"tags",r),ma(e,"user",i),ma(e,"contexts",o),ma(e,"sdkProcessingMetadata",s),a&&(e.level=a),d&&(e.transactionName=d),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,...f}}function ma(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 ga;class va{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=ya()}static clone(e){return e?e.clone():new va}clone(){const e=new va;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&&sa(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 va){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(ho(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=ya(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:Wo(),...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:f}=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:f}}applyToEvent(e,t={},n=[]){return da(e,this.getScopeData()),aa([...n,...ia(),...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:$o();if(!this._client)return Ao.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:$o();if(!this._client)return Ao.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:$o();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Ao.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 ya(){return{traceId:$o(),spanId:$o().substring(16)}}const ba="7.120.4",Ea=parseFloat(ba),_a=100;class Sa{constructor(e,t,n,r=Ea){let i,o;this._version=r,t?i=t:(i=new va,i.setClient(e)),n?o=n:(o=new va,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 go(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:$o(),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:$o(),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:$o();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=_a}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const a={timestamp:Wo(),...e},s=i?Po(()=>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=Ia(this);try{e(this)}finally{Ia(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Xo&&Ao.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return Xo&&!n&&(this.getClient()?Ao.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):Ao.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"}),sa(e,t)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=Jo}=n&&n.getOptions()||{},{userAgent:o}=Eo.navigator||{},a=function(e){const t=Yo(),n={sid:$o(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Bo({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&&sa(n,e),n}({release:r,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),s=t.getSession&&t.getSession();return s&&"ok"===s.status&&sa(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=Ta().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);Xo&&Ao.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Ta(){return Eo.__SENTRY__=Eo.__SENTRY__||{extensions:{},hub:void 0},Eo}function Ia(e){const t=Ta(),n=wa(t);return Ca(t,e),n}function Da(){const e=Ta();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=Ta()){return t=e,!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)&&!wa(e).isOlderThan(Ea)||Ca(e,new Sa),wa(e);var t}(e)}function wa(e){return So("hub",()=>new Sa,e)}function Ca(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}const Oa=/\(error: (.*)\)/,Pa=/captureMessage|captureException/;const Aa="<anonymous>";function Fa(e){try{return e&&"function"==typeof e&&e.name||Aa}catch(e){return Aa}}function Na(e,t=100,n=1/0){try{return ka("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Ra(e,t=3,n=102400){const r=Na(e,t);return i=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?Ra(e,t-1,n):r;var i}function ka(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(yo(t))return"[VueViewModel]";if(function(e){return ho(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: ${Fa(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 ka("",p.toJSON(),l-1,i,o)}catch(e){}const f=Array.isArray(t)?[]:{};let d=0;const h=Lo(t);for(const e in h){if(!Object.prototype.hasOwnProperty.call(h,e))continue;if(d>=i){f[e]="[MaxProperties ~]";break}const t=h[e];f[e]=ka(e,t,l-1,i,o),d++}return s(t),f}const xa=new WeakMap;const Ua=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Ma(e,t){return Da().captureEvent(e,t)}function La(e,t){Da().addBreadcrumb(e,t)}function ja(){return Da().getClient()}const Va=[];function Ba(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Ga(e,t,n){if(n[t.name])Xo&&Ao.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===Va.indexOf(t.name)&&(t.setupOnce(oa,Da),Va.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)}Xo&&Ao.log(`Integration installed: ${t.name}`)}}function $a(e,t){const n=function(...e){return t(...e)};return n.id=e,n}let qa;const Qa="FunctionToString",Ha=new WeakMap,za=$a(Qa,()=>({name:Qa,setupOnce(){qa=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Mo(this),n=Ha.has(ja())&&void 0!==t?t:this;return qa.apply(n,e)}}catch(e){}},setup(e){Ha.set(e,!0)}})),Za=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Wa=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Ya="InboundFilters",Ka=$a(Ya,(e={})=>({name:Ya,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?[]:Za],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Wa],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)?(Xo&&Ao.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Qo(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}`)),Xo&&0===t.length&&Ao.error(`Could not extract message for event ${Qo(e)}`),t}(e).some(e=>Ro(e,t))}(e,t.ignoreErrors)?(Xo&&Ao.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Qo(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&Ro(n,t)}(e,t.ignoreTransactions)?(Xo&&Ao.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Qo(e)}`),!0):function(e,t){if(!t||!t.length)return!1;const n=Ja(e);return!!n&&Ro(n,t)}(e,t.denyUrls)?(Xo&&Ao.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Qo(e)}.\nUrl: ${Ja(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;const n=Ja(e);return!n||Ro(n,t)}(e,t.allowUrls)&&(Xo&&Ao.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Qo(e)}.\nUrl: ${Ja(e)}`),!0)}(t,o)?null:t}}));function Ja(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 Xo&&Ao.error(`Cannot extract url for event ${Qo(e)}`),null}}function Xa(e,t,n=250,r,i,o,a){if(!(o.exception&&o.exception.values&&a&&vo(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=es(e,t,i,a.originalException,r,o.exception.values,s,0),c=n,u.map(e=>(e.value&&(e.value=Fo(e.value,c)),e))))}function es(e,t,n,r,i,o,a,s){if(o.length>=n+1)return o;let u=[...o];if(vo(r[i],Error)){ts(a,s);const o=e(t,r[i]),c=u.length;ns(o,i,c,s),u=es(e,t,n,r[i],i,[o,...u],o,c)}return Array.isArray(r.errors)&&r.errors.forEach((r,o)=>{if(vo(r,Error)){ts(a,s);const c=e(t,r),l=u.length;ns(c,`errors[${o}]`,l,s),u=es(e,t,n,r,i,[c,...u],c,l)}}),u}function ts(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 ns(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 rs(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 is="LinkedErrors",os=$a(is,(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:is,setupOnce(){},preprocessEvent(e,r,i){const o=i.getOptions();Xa(rs,o.stackParser,o.maxValueLength,n,t,e,r)}}}),as=r,ss=Eo;let us=0;function cs(){return us>0}function ls(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(Mo(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=>ls(e,t));return e.apply(this,i)}catch(e){throw us++,setTimeout(()=>{us--}),function(...e){const t=Da();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&&(Ho(e,void 0,void 0),zo(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),i=e,Da().captureException(i,function(e){if(e)return function(e){return e instanceof va||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>Ua.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){}Uo(r,e),xo(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}const ps={},fs={};function ds(e,t){ps[e]=ps[e]||[],ps[e].push(t)}function hs(e,t){fs[e]||(t(),fs[e]=!0)}function ms(e,t){const n=e&&ps[e];if(n)for(const r of n)try{r(t)}catch(t){wo&&Ao.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Fa(r)}\nError:`,t)}}let gs=null;function vs(){gs=Eo.onerror,Eo.onerror=function(e,t,n,r,i){return ms("error",{column:r,error:i,line:n,msg:e,url:t}),!(!gs||gs.__SENTRY_LOADER__)&&gs.apply(this,arguments)},Eo.onerror.__SENTRY_INSTRUMENTED__=!0}let ys=null;function bs(){ys=Eo.onunhandledrejection,Eo.onunhandledrejection=function(e){return ms("unhandledrejection",e),!(ys&&!ys.__SENTRY_LOADER__)||ys.apply(this,arguments)},Eo.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Es="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function _s(e,t){const n=Ts(e,t),r={type:t&&t.name,value:Ds(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Ss(e,t){return{exception:{values:[_s(e,t)]}}}function Ts(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(Is.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const Is=/Minified React error #\d+;/i;function Ds(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function ws(e,t,n,r,i){let o;if(uo(t)&&t.error)return Ss(e,t.error);if(co(t)||so(t,"DOMException")){const i=t;if("stack"in t)o=Ss(e,t);else{const t=i.name||(co(i)?"DOMError":"DOMException"),a=i.message?`${t}: ${i.message}`:t;o=Cs(e,a,n,r),Ho(o,a)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return ao(t)?Ss(e,t):ho(t)||mo(t)?(o=function(e,t,n,r){const i=ja(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:mo(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Os(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Ra(t,o)}};if(n){const t=Ts(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,i),zo(o,{synthetic:!0}),o):(o=Cs(e,t,n,r),Ho(o,`${t}`,void 0),zo(o,{synthetic:!0}),o)}function Cs(e,t,n,r){const i={};if(r&&n){const r=Ts(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(po(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 Os(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(Lo(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Fo(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:Fo(r,t)}return""}(e),r=t?"promise rejection":"exception";return uo(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:mo(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 Ps="GlobalHandlers",As=$a(Ps,(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Ps,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){!function(){const t="error";ds(t,t=>{const{stackParser:n,attachStacktrace:r}=Rs();if(ja()!==e||cs())return;const{msg:i,url:o,line:a,column:s,error:u}=t,c=void 0===u&&lo(i)?function(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=uo(e)?e.message:e,a="Error";const s=o.match(i);s&&(a=s[1],o=s[2]);return Fs({exception:{values:[{type:a,value:o}]}},t,n,r)}(i,o,a,s):Fs(ws(n,u||i,void 0,r,!1),o,a,s);c.level="error",Ma(c,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}),hs(t,vs)}()}(e),Ns("onerror")),t.onunhandledrejection&&(function(e){!function(){const t="unhandledrejection";ds(t,t=>{const{stackParser:n,attachStacktrace:r}=Rs();if(ja()!==e||cs())return;const i=function(e){if(fo(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=fo(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:ws(n,i,void 0,r,!0);o.level="error",Ma(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}),hs(t,bs)}()}(e),Ns("onunhandledrejection"))}}});function Fs(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=lo(t)&&t.length>0?t:function(){try{return To.document.location.href}catch(e){return""}}();return 0===u.length&&u.push({colno:c,filename:p,function:"?",in_app:!0,lineno:l}),e}function Ns(e){Es&&Ao.log(`Global Handler attached: ${e}`)}function Rs(){const e=ja();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const ks=["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"],xs="TryCatch",Us=$a(xs,(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:xs,setupOnce(){t.setTimeout&&ko(ss,"setTimeout",Ms),t.setInterval&&ko(ss,"setInterval",Ms),t.requestAnimationFrame&&ko(ss,"requestAnimationFrame",Ls),t.XMLHttpRequest&&"XMLHttpRequest"in ss&&ko(XMLHttpRequest.prototype,"send",js);const e=t.eventTarget;e&&(Array.isArray(e)?e:ks).forEach(Vs)}}});function Ms(e){return function(...t){const n=t[0];return t[0]=ls(n,{mechanism:{data:{function:Fa(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Ls(e){return function(t){return e.apply(this,[ls(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Fa(e)},handled:!1,type:"instrument"}})])}}function js(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&ko(n,e,function(t){const n={mechanism:{data:{function:e,handler:Fa(t)},handled:!1,type:"instrument"}},r=Mo(t);return r&&(n.mechanism.data.handler=Fa(r)),ls(t,n)})}),e.apply(this,t)}}function Vs(e){const t=ss,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(ko(n,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=ls(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Fa(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,ls(r,{mechanism:{data:{function:"addEventListener",handler:Fa(r),target:e},handled:!1,type:"instrument"}}),i])}}),ko(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 Bs(){"console"in Eo&&Co.forEach(function(e){e in Eo.console&&ko(Eo.console,e,function(t){return Oo[e]=t,function(...t){ms("console",{args:t,level:e});const n=Oo[e];n&&n.apply(Eo.console,t)}})})}const Gs=Eo;let $s,qs,Qs;function Hs(){if(!Gs.document)return;const e=ms.bind(null,"dom"),t=zs(e,!0);Gs.document.addEventListener("click",t,!1),Gs.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=Gs[t]&&Gs[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(ko(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=zs(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(e){}return t.call(this,n,r,i)}}),ko(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 zs(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;xo(n,"_sentryCaptured",!0),r&&!r._sentryId&&xo(r,"_sentryId",$o());const i="keypress"===n.type?"input":n.type;(function(e){if(e.type!==qs)return!1;try{if(!e.target||e.target._sentryId!==Qs)return!1}catch(e){}return!0})(n)||(e({event:n,name:i,global:t}),qs=n.type,Qs=r?r._sentryId:void 0),clearTimeout($s),$s=Gs.setTimeout(()=>{Qs=void 0,qs=void 0},1e3)}}const Zs=Eo,Ws="__sentry_xhr_v3__";function Ys(){if(!Zs.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;ko(e,"open",function(e){return function(...t){const n=Date.now(),r=lo(t[0])?t[0].toUpperCase():void 0,i=function(e){if(lo(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!r||!i)return e.apply(this,t);this[Ws]={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const e=this[Ws];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}ms("xhr",{args:[r,i],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?ko(this,"onreadystatechange",function(e){return function(...t){return o(),e.apply(this,t)}}):this.addEventListener("readystatechange",o),ko(this,"setRequestHeader",function(e){return function(...t){const[n,r]=t,i=this[Ws];return i&&lo(n)&&lo(r)&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}}),e.apply(this,t)}}),ko(e,"send",function(e){return function(...t){const n=this[Ws];return n?(void 0!==t[0]&&(n.body=t[0]),ms("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)):e.apply(this,t)}})}const Ks=_o();function Js(){if(!("fetch"in Ks))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function Xs(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function eu(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!Js())return!1;if(Xs(Ks.fetch))return!0;let e=!1;const t=Ks.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=Xs(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){wo&&Ao.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&ko(Eo,"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:nu(t),method:tu(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:nu(t),method:tu(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return ms("fetch",{...i}),e.apply(Eo,t).then(e=>(ms("fetch",{...i,endTimestamp:Date.now(),response:e}),e),e=>{throw ms("fetch",{...i,endTimestamp:Date.now(),error:e}),e})}})}function tu(e,t){return!!e&&"object"==typeof e&&!!e[t]}function nu(e){return"string"==typeof e?e:e?tu(e,"url")?e.url:e.toString?e.toString():"":""}const ru=_o(),iu=Eo;let ou;function au(){if(!function(){const e=ru.chrome,t=e&&e.app&&e.app.runtime,n="history"in ru&&!!ru.history.pushState&&!!ru.history.replaceState;return!t&&n}())return;const e=iu.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=ou,t=String(n);ou=t,ms("history",{from:e,to:t})}return e.apply(this,t)}}iu.onpopstate=function(...t){const n=iu.location.href,r=ou;if(ou=n,ms("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},ko(iu.history,"pushState",t),ko(iu.history,"replaceState",t)}const su=["fatal","error","warning","log","info","debug"];function uu(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 cu="Breadcrumbs",lu=$a(cu,(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:cu,setupOnce(){},setup(e){var n;t.console&&function(e){const t="console";ds(t,e),hs(t,Bs)}(function(e){return function(t){if(ja()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:(r=t.level,"warn"===r?"warning":su.includes(r)?r:"log"),message:No(t.args," ")};var r;if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${No(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}La(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(ja()!==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&&(Es&&Ao.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=Io(t,{keyAttrs:o,maxStringLength:a}),i=function(e){if(!To.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}),La(s,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),ds("dom",n),hs("dom",Hs)),t.xhr&&function(e){ds("xhr",e),hs("xhr",Ys)}(function(e){return function(t){if(ja()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[Ws];if(!n||!r||!i)return;const{method:o,url:a,status_code:s,body:u}=i;La({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";ds(t,e),hs(t,eu)}(function(e){return function(t){if(ja()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error)La({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r});else{const e=t.response;La({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";ds(t,e),hs(t,au)}(function(e){return function(t){if(ja()!==e)return;let n=t.from,r=t.to;const i=uu(ss.location.href);let o=n?uu(n):void 0;const a=uu(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),La({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){ja()===e&&La({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Qo(t)},{event:t})}}(e))}}}),pu="LinkedErrors",fu=$a(pu,(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:pu,setupOnce(){},preprocessEvent(e,r,i){const o=i.getOptions();Xa(_s,o.stackParser,o.maxValueLength,n,t,e,r)}}}),du="HttpContext",hu=$a(du,()=>({name:du,setupOnce(){},preprocessEvent(e){if(!ss.navigator&&!ss.location&&!ss.document)return;const t=e.request&&e.request.url||ss.location&&ss.location.href,{referrer:n}=ss.document||{},{userAgent:r}=ss.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}})),mu="Dedupe",gu=$a(mu,()=>{let e;return{name:mu,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&&(!!yu(e,t)&&!!vu(e,t))))}(e,t)||!!function(e,t){const n=bu(t),r=bu(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!yu(e,t)&&!!vu(e,t)))}(e,t))}(t,e))return Es&&Ao.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}});function vu(e,t){let n=Eu(e),r=Eu(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 yu(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 bu(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Eu(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}let _u={};ss.Sentry&&ss.Sentry.Integrations&&(_u=ss.Sentry.Integrations);const Su={..._u,...as,...i},Tu="?";function Iu(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 Du=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,wu=/\((\S*)(?::(\d+))(?::(\d+))\)/,Cu=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ou=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Pu=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Au=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=Oa.test(n)?n.replace(Oa,"$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(),Pa.test(t[t.length-1].function||"")&&(t.pop(),Pa.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=Du.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=wu.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Fu(t[1]||Tu,t[2]);return Iu(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=Cu.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Ou.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]||Tu;return[n,e]=Fu(n,e),Iu(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=Pu.exec(e);return t?Iu(t[2],t[1]||Tu,+t[3],t[4]?+t[4]:void 0):void 0}]),Fu=(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]:Tu,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class Nu 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 Ru=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ku(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 xu(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Uu(e,t=[]){return[e,t]}function Mu(e,t){const[n,r]=e;return[n,[...r,t]]}function Lu(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function ju(e,t){return(t||new TextEncoder).encode(e)}function Vu(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[ju(i,t),e]:i.push("string"==typeof e?ju(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(Na(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 Bu(e,t){const n="string"==typeof e.data?ju(e.data,t):e.data;return[Bo({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Gu={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 $u(e){return Gu[e]}function qu(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Qu(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 na(new Nu("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 ra((n,r)=>{let i=t.length;if(!i)return n(!0);const o=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{ta(e).then(()=>{--i||(clearTimeout(o),n(!0))},r)})})}}}(e.bufferSize||30)){let r={};function i(i){const o=[];if(Lu(i,(t,n)=>{const i=$u(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=Hu(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(t)}),0===o.length)return ta();const a=Uu(i[0],o),s=t=>{Lu(a,(n,r)=>{const i=Hu(n,r);e.recordDroppedEvent(t,$u(r),i)})};return n.add(()=>t({body:Vu(a,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Xo&&Ao.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 Nu)return Xo&&Ao.error("Skipped sending event because buffer is full."),s("queue_overflow"),ta();throw e})}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function Hu(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let zu;function Zu(e,t=function(){if(zu)return zu;if(Xs(ss.fetch))return zu=ss.fetch.bind(ss);const e=ss.document;let t=ss.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){Es&&Ao.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return zu=t.bind(ss)}()){let n=0,r=0;return Qu(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 zu=void 0,n-=o,r--,na(e)}})}function Wu(e){return Qu(e,function(t){return new ra((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 Yu(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 Ku="Not capturing exception because it's already been captured.";class Ju{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=Ru.exec(e);if(!t)return void Po(()=>{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 xu({host:o,pass:i,path:u,projectId:c,port:a,protocol:n,publicKey:r})}(e):xu(e);if(t&&function(e){if(!wo)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(Ao.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(Ao.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(Ao.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(Ao.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}(e.dsn):Xo&&Ao.warn("No DSN provided, client will not send events."),this._dsn){const t=Yu(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(Zo(e))return void(Xo&&Ao.log(Ku));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=po(e)?e:String(e),a=fo(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&&Zo(t.originalException))return void(Xo&&Ao.log(Ku));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?Xo&&Ao.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),sa(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))):ta(!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 Xo&&Ao.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];Ga(this,e,this._integrations),t||Ba(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const i=qu(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:ku(r)},...i&&{trace:Bo({...i})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,Uu(a,[[{type:o},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=Mu(n,Bu(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=qu(n);return Uu({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:ku(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}`;Xo&&Ao.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}captureAggregateMetrics(e){Xo&&Ao.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=ku(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 Uu(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&&Ga(e,t,n)}),n}(this,e),Ba(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)&&(sa(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ra(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 Da().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||$o(),timestamp:t.timestamp||Wo()},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:Jo),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=Fo(e.message,o));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Fo(a.value,o));const s=e.request;s&&s.url&&(s.url=Fo(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=Eo._sentryDebugIds;if(!n)return;let r;const i=xa.get(t);i?r=i:(r=new Map,xa.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 va;return n.update(t),n}(r,n.captureContext);n.mechanism&&zo(u,n.mechanism);const p=i&&i.getEventProcessors?i.getEventProcessors():[],f=(ga||(ga=new va),ga).getScopeData();o&&ha(f,o.getScopeData()),l&&ha(f,l.getScopeData());const d=[...n.attachments||[],...f.attachments];return d.length&&(n.attachments=d),da(u,f),aa([...p,...ia(),...f.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:Na(e.data,t,n)}}))},...e.user&&{user:Na(e.user,t,n)},...e.contexts&&{contexts:Na(e.contexts,t,n)},...e.extra&&{extra:Na(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=Na(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>{const r=la(e).data;return r&&(e.data=Na(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||pa(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(Xo){const t=e;"log"===t.logLevel?Ao.log(t.message):Ao.warn(t)}})}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:i}=r,o=ec(e),a=Xu(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),na(new Nu(`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 Nu("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(Xu(t)&&r)return r(t,n);if(ec(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(go(e))return e.then(e=>{if(!ho(e)&&null!==e)throw new Nu(n);return e},e=>{throw new Nu(`${t} rejected with ${e}`)});if(!ho(e)&&null!==e)throw new Nu(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 Nu(`${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 Nu)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Nu(`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=>{Xo&&Ao.error("Error while sending event:",e)});Xo&&Ao.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 Xu(e){return void 0===e.type}function ec(e){return"transaction"===e.type}class tc extends Ju{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:ba})),version:ba}),e._metadata=i}(e,"browser",["browser"],ss.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&ss.document&&ss.document.addEventListener("visibilitychange",()=>{"hidden"===ss.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){const i=ws(e,t,n&&n.syntheticException||void 0,r);return zo(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),ta(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){const o=Cs(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),ta(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(Es&&Ao.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:ku(r)}},o=function(e){return[{type:"user_report"},e]}(e);return Uu(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(Es&&Ao.log("No outcomes to send"));if(!this._dsn)return void(Es&&Ao.log("No dsn provided, will not send outcomes"));Es&&Ao.log("Sending outcomes:",e);const t=(n=e,Uu((r=this._options.tunnel&&ku(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:Wo(),discarded_events:n}]]));var n,r;this._sendEnvelope(t)}}var nc=[new Su.InboundFilters,new Su.FunctionToString,new Su.TryCatch,new Su.Breadcrumbs,new Su.LinkedErrors,new Su.Dedupe,new Su.HttpContext],rc=new Sa,ic=n(8593),oc=function(){return oc=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},oc.apply(this,arguments)};function ac(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,uc(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 sc(e,t){try{return e()}catch(e){return uc(e,t)}}function uc(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;rc.withScope(function(t){var o={errorMessage:r};if(n){var a=n.customerId,s=oc(oc({},n),{apiKey:void 0});a&&t.setTags({customerId:a}),o.sdkConfiguration=s}i&&(o=oc(oc({},o),i)),t.setExtras(o),rc.captureException(e)})}(e,{sdkConfiguration:r,errorMessage:s,errorReportMetadata:a}),o)throw new Error(s)}var cc=function(){return cc=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},cc.apply(this,arguments)},lc=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())})},pc=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])}}},fc=function(){function e(e,t){this.modelMapper=new $i,this.eventEmitter=new no,this.showWatermark=!1,this.isWidgetWatermarkEnabled=!1,this.configuration=e,this.edgeApiClient=de.create(e,e),this.graphClient=function(e){var t=e.apiKey,n=e.baseUri,r=e.clientName,i=void 0===r?B:r,o=e.clientVersion,a=void 0===o?Ci:o,s=function(e,t){return new ut(function(n,r){var i={"X-API-KEY":e,"x-graphql-operation-name":n.operationName,source:V},o=t.customerToken;return o&&(i["X-CUSTOMER-KEY"]=o),n.setContext({headers:i}),r(n)})}(t,e),u=function(e){return new yt({uri:"".concat(e,"/graphql"),fetch:pe})}(n),c=new wi({attempts:{max:5,retryIf:Oi},delay:{initial:500,max:2e3,jitter:!0}});return new Fr({link:s.concat(c.concat(u)),cache:new Ti({possibleTypes:Ii.g}),name:i,version:a})}(this.configuration),this.loggerService=t,this.apiGateway=new k(this.graphClient,this.edgeApiClient),this.globalEntitlementsService=null,this.resourceEntitlementsService=null,this.initializationStateTracker=new io(this.eventEmitter)}return e.initialize=function(t){var n=function(e){var t={baseUri:"https://api.stigg.io",baseEdgeUri:$("https://api.stigg.io"),logConfiguration:{logger:console,logLevel:j.i.ERROR},enableEdge:!0,cacheTtlMs:3e4},n=e.baseEdgeUri?e.baseEdgeUri:e.baseUri?$(e.baseUri):t.baseEdgeUri,r=e.cacheTtlMs||e.entitlementPollingInterval;return L()(t,e,{baseEdgeUri:n,cacheTtlMs:r})}(t),r=new j.m(n.logConfiguration.logger,n.logConfiguration.logLevel);if(n.offline){r.log("Stigg SDK has been initialized in offline mode, only fallback entitlements are being used.");var i=new Pi.o(n,r);return i.initializationStateTracker.signalSuccessInit(),i}!function(e,t){if(U()(e.apiKey)&&!e.offline){var n="You must configure the client with an SDK key";throw t.error(n),new Error(n)}}(n,r);var o=new e(n,r);return this.initializeSdk(o).then(function(){n.customerId?n.lazyLoad||o.setCustomerId(n.customerId,n.customerToken,n.resourceId):o.initializationStateTracker.signalSuccessInit()}).catch(function(e){return o.initializationStateTracker.signalFailedInit(e)}),o},e.prototype.waitForInitialization=function(){return lc(this,void 0,void 0,function(){var e=this;return pc(this,function(t){return[2,this.initializationStateTracker.getInitializationPromise().then(function(){return e})]})})},e.initializeSdk=function(e){return lc(this,void 0,void 0,function(){var t,n,r,i,a,s,u,c;return pc(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,e.apiGateway.sdkConfiguration.getSdkConfiguration()];case 1:return t=l.sent(),n=null===(a=t.data)||void 0===a?void 0:a.sdkConfiguration,!rc.getClient()&&(null==n?void 0:n.sentryDsn)&&(m=n.sentryDsn,p=void 0,f=void 0,h=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:m,normalizeDepth:6,release:"".concat(B,"@").concat(Ci),integrations:nc,stackParser:Au,transport:Js()?Zu:Wu},t=new tc(e),rc.bindClient(t),[2]})},new((d=void 0)||(d=Promise))(function(e,t){function n(e){try{i(h.next(e))}catch(e){t(e)}}function r(e){try{i(h.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((h=h.apply(p,f||[])).next())})),e.showWatermark=!!(null==n?void 0:n.showWatermark),[3,3];case 2:throw r=l.sent(),401===(null===(s=r.response)||void 0===s?void 0:s.status)||r.graphQLErrors&&(null===(c=null===(u=r.graphQLErrors[0])||void 0===u?void 0:u.extensions)||void 0===c?void 0:c.code)===o.ErrorCode.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 p,f,d,h,m})})},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 lc(this,arguments,void 0,function(e,t,n){var r,i,o,s,u,c=this;return void 0===t&&(t=null),void 0===n&&(n=null),pc(this,function(l){switch(l.label){case 0:if(r=this.configuration,i=r.customerToken,o=r.customerId,s=r.resourceId,e===o&&t===i&&n===s)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,a.isString)(e))throw new Error("customerId parameter must be a string");if(t&&!(0,a.isString)(t))throw new Error("customerToken parameter must be a string");if(n&&!(0,a.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 Xi(e,void 0,new ro(this.configuration.cacheTtlMs),this.graphClient,this.edgeApiClient,this.loggerService,function(e){return c.eventEmitter.emit("entitlementsUpdated",e)}),n&&(this.resourceEntitlementsService=new Xi(e,n,new ro(this.configuration.cacheTtlMs),this.graphClient,this.edgeApiClient,this.loggerService,function(e){return c.eventEmitter.emit("entitlementsUpdated",e)})),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,ac(function(){return lc(c,void 0,void 0,function(){var e,t;return pc(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 l.sent(),this.initializationStateTracker.signalSuccessInit(),[3,4];case 3:return u=l.sent(),this.initializationStateTracker.signalFailedInit(u),[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 lc(this,void 0,void 0,function(){var t,n,r=this;return pc(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,a.isString)(e))throw new Error("resourceId parameter must be a string");this.configuration.resourceId=e,this.resourceEntitlementsService=new Xi(this.configuration.customerId,e,new ro(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,ac(function(){return lc(r,void 0,void 0,function(){var e;return pc(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 lc(this,void 0,void 0,function(){var e=this;return pc(this,function(t){return[2,ac(function(){return lc(e,void 0,void 0,function(){var e,t;return pc(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=cc(cc({},Ai.BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT),a);return sc(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=cc(cc({},Ai.NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT),a);return sc(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=cc(cc({},Ai.METERED_DEFAULT_FALLBACK_ENTITLEMENT),a);return sc(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=cc(cc({},Ai.ENUM_DEFAULT_FALLBACK_ENTITLEMENT),a);return sc(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=cc(cc(cc({},Ai.CREDIT_DEFAULT_FALLBACK_ENTITLEMENT),{currency:{currencyId:n}}),o),s=cc(cc({},a),{remaining:Math.max(a.usageLimit-a.currentUsage,0)});return sc(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 lc(this,arguments,void 0,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 pc(this,function(e){return t={productId:i,customerId:this.configuration.customerId,resourceId:o,context:a,billingCountryCode:s,includeHiddenPlans:u},[2,ac(function(){return lc(n,void 0,void 0,function(){var e;return pc(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 lc(this,void 0,void 0,function(){var e=this;return pc(this,function(t){return[2,ac(function(){return lc(e,void 0,void 0,function(){var e;return pc(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 lc(this,void 0,void 0,function(){var e=this;return pc(this,function(t){return[2,ac(function(){return lc(e,void 0,void 0,function(){var e,t,n,r;return pc(this,function(i){switch(i.label){case 0:return e=q(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 lc(this,arguments,void 0,function(e){var t=this,n=void 0===e?{}:e,r=n.resourceId,i=n.productId;return pc(this,function(e){return[2,ac(function(){return lc(t,void 0,void 0,function(){var e,t;return pc(this,function(n){switch(n.label){case 0:return e=q(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 lc(this,arguments,void 0,function(e){var t=this,n=e.planId,r=e.resourceId,i=void 0===r?this.configuration.resourceId:r,o=e.billingCountryCode;return pc(this,function(e){return[2,ac(function(){return lc(t,void 0,void 0,function(){var e,t;return pc(this,function(r){switch(r.label){case 0:return e=q(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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t,n;return pc(this,function(r){switch(r.label){case 0:return t=q(this.configuration),[4,this.apiGateway.subscriptions.applySubscription(cc({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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t;return pc(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 lc(this,void 0,void 0,function(){var t,n,r=this;return pc(this,function(i){switch(i.label){case 0:return t=(0,ic.$)(this.configuration.entitlementsFallback),[4,ac(function(){return lc(r,void 0,void 0,function(){var n;return pc(this,function(r){return q(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.getEntitlementsState().then(function(e){return e.entitlements})]):[2,t]:[2,null===(n=this.globalEntitlementsService)||void 0===n?void 0:n.getEntitlementsState().then(function(e){return e.entitlements})]})})},{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.getEntitlementsState=function(e){return lc(this,void 0,void 0,function(){var t,n,r=this;return pc(this,function(i){switch(i.label){case 0:return t={entitlements:(0,ic.$)(this.configuration.entitlementsFallback),accessDeniedReason:null},[4,ac(function(){return lc(r,void 0,void 0,function(){var n;return pc(this,function(r){return q(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.getEntitlementsState()]):[2,t]:[2,null===(n=this.globalEntitlementsService)||void 0===n?void 0:n.getEntitlementsState()]})})},{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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t;return pc(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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t;return pc(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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t;return pc(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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t;return pc(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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){return pc(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 lc(this,arguments,void 0,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,f=c.refreshOnComplete,d=void 0===f||f;return pc(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 d?[4,this.refresh()]:[3,8];case 7:e.sent(),e.label=8;case 8:return[2,s]}})})},e.prototype.getSubscriptions=function(){return lc(this,arguments,void 0,function(e){var t,n,r,i,o,a=this;return void 0===e&&(e={}),pc(this,function(s){return t=e.customerId,n=e.resourceId,r=e.status,i=e.productId,o=e.pagination,[2,ac(function(){return lc(a,void 0,void 0,function(){var e;return pc(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 ac(function(){return lc(t,void 0,void 0,function(){var e,t,r;return pc(this,function(i){switch(i.label){case 0:return e=q(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 lc(this,arguments,void 0,function(e){var t=this,n=(void 0===e?{}:e).resourceId;return pc(this,function(e){return[2,ac(function(){return lc(t,void 0,void 0,function(){var e;return pc(this,function(t){switch(t.label){case 0:return e=q(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 lc(this,arguments,void 0,function(e){var t=this,n=e.subscriptionId;return pc(this,function(e){return[2,ac(function(){return lc(t,void 0,void 0,function(){var e,t;return pc(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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t,n,r;return pc(this,function(i){switch(i.label){case 0:return t=q(this.configuration),n=null!==(r=this.configuration.resourceId)&&void 0!==r?r:void 0,[4,this.apiGateway.credits.getCreditUsage(cc(cc({},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 lc(this,arguments,void 0,function(e){var t=this;return void 0===e&&(e={}),pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t,n,r;return pc(this,function(i){switch(i.label){case 0:return t=q(this.configuration),n=null!==(r=this.configuration.resourceId)&&void 0!==r?r:void 0,[4,this.apiGateway.credits.getCreditBalance(cc(cc({},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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t,n,r,i;return pc(this,function(o){switch(o.label){case 0:return t=q(this.configuration),n=null!==(i=this.configuration.resourceId)&&void 0!==i?i:void 0,[4,this.apiGateway.credits.getCreditGrants(cc(cc({},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 lc(this,arguments,void 0,function(e){var t=this;return void 0===e&&(e={}),pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t,n,r,i;return pc(this,function(o){switch(o.label){case 0:return t=q(this.configuration),n=null!==(i=this.configuration.resourceId)&&void 0!==i?i:void 0,[4,this.apiGateway.credits.getCreditLedger(cc(cc({},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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t,n;return pc(this,function(r){switch(r.label){case 0:return t=q(this.configuration),[4,this.apiGateway.checkout.createPaymentSession(cc(cc({},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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t;return pc(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 lc(this,void 0,void 0,function(){var t=this;return pc(this,function(n){return[2,ac(function(){return lc(t,void 0,void 0,function(){var t;return pc(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}()},660:(e,t,n)=>{"use strict";n.d(t,{o:()=>r.o,F:()=>i.F});var r=n(4224),i=n(5142)},8553:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT:()=>o,NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT:()=>a,METERED_DEFAULT_FALLBACK_ENTITLEMENT:()=>s,ENUM_DEFAULT_FALLBACK_ENTITLEMENT:()=>u,CREDIT_DEFAULT_FALLBACK_ENTITLEMENT:()=>c,CustomerModel:()=>l});var r=n(9392),i={};for(const e in r)["default","BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT","NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT","METERED_DEFAULT_FALLBACK_ENTITLEMENT","ENUM_DEFAULT_FALLBACK_ENTITLEMENT","CREDIT_DEFAULT_FALLBACK_ENTITLEMENT","CustomerModel"].indexOf(e)<0&&(i[e]=()=>r[e]);n.d(t,i);var o={isFallback:!0,hasAccess:!1,accessDeniedReason:r.AccessDeniedReason.Unknown},a={isFallback:!0,hasAccess:!1,isUnlimited:!1,accessDeniedReason:r.AccessDeniedReason.Unknown},s={isFallback:!0,hasAccess:!1,isUnlimited:!1,currentUsage:0,requestedUsage:1,accessDeniedReason:r.AccessDeniedReason.Unknown},u={isFallback:!0,hasAccess:!1,enumValues:[],accessDeniedReason:r.AccessDeniedReason.Unknown},c={isFallback:!0,hasAccess:!1,accessDeniedReason:r.AccessDeniedReason.Unknown,currency:{currencyId:""},usageLimit:0,currentUsage:0,remaining:0,usagePeriodEnd:void 0},l=function(){function e(e){Object.assign(this,e)}return e.prototype.getActiveSubscriptions=function(){return this.subscriptions.filter(function(e){return e.status===r.SubscriptionStatus.Active})},e.prototype.getActiveTrials=function(){return this.subscriptions.filter(function(e){return e.status===r.SubscriptionStatus.InTrial})},e.prototype.getActivePromotionalEntitlements=function(){return this.promotionalEntitlements.filter(function(e){return e.status===r.PromotionalEntitlementStatus.Active})},e}()},4224:(e,t,n)=>{"use strict";n.d(t,{o:()=>p});var r,i=n(660),o=n(8553),a=n(8593),s=(r=function(e,t){return r=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])},r(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 n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){return u=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},u.apply(this,arguments)},c=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())})},l=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])}}},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),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 u(u({},o.BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT),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 u(u({},o.METERED_DEFAULT_FALLBACK_ENTITLEMENT),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 u(u({},o.NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT),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 u(u({},o.ENUM_DEFAULT_FALLBACK_ENTITLEMENT),i)},t.prototype.getCreditEntitlement=function(e){var t=e.currencyId,n=e.options,r=(null==n?void 0:n.fallback)||{},i=u(u(u({},o.CREDIT_DEFAULT_FALLBACK_ENTITLEMENT),{currency:{currencyId:t}}),r);return u(u({},i),{remaining:Math.max(i.usageLimit-i.currentUsage,0)})},t.prototype.getEntitlements=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,(0,a.$)(this.configuration.entitlementsFallback)]})})},t.prototype.getEntitlementsState=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{entitlements:(0,a.$)(this.configuration.entitlementsFallback),accessDeniedReason:null}]})})},t.prototype.addListener=function(){},t.prototype.clearCustomer=function(){},t.prototype.clearResource=function(){},t.prototype.getActiveSubscriptionsList=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,[]]})})},t.prototype.getCoupons=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,[]]})})},t.prototype.getSubscription=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{id:"mock-subscription-id",addons:[],futureUpdates:[],paymentCollection:o.PaymentCollection.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:o.PricingType.Paid,startDate:new Date,status:o.SubscriptionStatus.Active,totalPrice:{total:{amount:0,currency:o.Currency.Usd},subTotal:{amount:0,currency:o.Currency.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 c(this,void 0,void 0,function(){return l(this,function(e){return[2,this]})})},t.prototype.setResource=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2]})})},t.prototype.getCheckoutState=function(){return c(this,void 0,void 0,function(){return l(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:o.BillingVendorIdentifier.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 c(this,void 0,void 0,function(){return l(this,function(e){return[2,{subscription:void 0}]})})},t.prototype.estimateSubscription=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{billingPeriodRange:{},total:{amount:0,currency:o.Currency.Usd},subTotal:{amount:0,currency:o.Currency.Usd},totalExcludingTax:{amount:0,currency:o.Currency.Usd}}]})})},t.prototype.previewNextInvoice=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{lastUpdatedAt:new Date,amountDue:{amount:0,currency:o.Currency.Usd},minimumSpendAdjustment:{amount:0,currency:o.Currency.Usd},total:{amount:0,currency:o.Currency.Usd},subTotalExcludingTax:{amount:0,currency:o.Currency.Usd},subTotal:{amount:0,currency:o.Currency.Usd},totalExcludingTax:{amount:0,currency:o.Currency.Usd},tax:{amount:0,currency:o.Currency.Usd},lines:[]}]})})},t.prototype.previewSubscription=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{billingPeriodRange:{},immediateInvoice:{total:{amount:0,currency:o.Currency.Usd},subTotal:{amount:0,currency:o.Currency.Usd},totalExcludingTax:{amount:0,currency:o.Currency.Usd}}}]})})},t.prototype.estimateSubscriptionUpdate=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{billingPeriodRange:{},total:{amount:0,currency:o.Currency.Usd},subTotal:{amount:0,currency:o.Currency.Usd},totalExcludingTax:{amount:0,currency:o.Currency.Usd}}]})})},t.prototype.waitForCheckoutCompleted=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,null]})})},t.prototype.refresh=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2]})})},t.prototype.fetchUsageHistory=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,[]]})})},t.prototype.getUsageHistoryV2=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{markers:[],series:[]}]})})},t.prototype.setCustomerId=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2]})})},t.prototype.getPaywall=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{activeSubscriptions:[],currency:{code:o.Currency.Usd,symbol:"$"},plans:[],customer:null,resource:null}]})})},t.prototype.getCustomerPortal=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{subscriptions:[],entitlements:[],entitlementsV2:[],promotionalEntitlements:[],billingInformation:{},canUpgradeSubscription:!1,resource:null,showWatermark:!0}]})})},t.prototype.getActiveSubscriptions=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,[]]})})},t.prototype.getSubscriptions=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{data:[],pageInfo:{}}]})})},t.prototype.getCustomer=function(){return c(this,void 0,void 0,function(){return l(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 c(this,void 0,void 0,function(){return l(this,function(e){return[2,{__typename:"CreditBalanceSummary",customerId:"offline-customer-id",balances:[]}]})})},t.prototype.getCreditGrants=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{data:[],pageInfo:{},totalCount:0}]})})},t.prototype.getCreditLedger=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{data:[],pageInfo:{},totalCount:0}]})})},t.prototype.getCreditUsage=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{series:[]}]})})},t.prototype.createPaymentSession=function(){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,{__typename:"PaymentSession",token:"mock-token"}]})})},t.prototype.getShowWatermark=function(){return!1},t.prototype.getAutomaticRechargeConfiguration=function(e){return c(this,void 0,void 0,function(){return l(this,function(t){return[2,{__typename:"AutoRechargeSettingsDTO",customerId:e.customerId,currencyId:e.currencyId,isEnabled:!1,thresholdType:o.ThresholdType.CreditAmount,thresholdValue:0,targetBalance:0,maxSpendLimit:null,grantExpirationPeriod:o.GrantExpirationPeriod.OneMonth,currentMonthlySpend:0,createdAt:new Date,updatedAt:new Date}]})})},t.prototype.saveAutomaticRechargeConfiguration=function(e){return c(this,void 0,void 0,function(){var t,n,r,i,a;return l(this,function(s){return[2,{__typename:"AutoRechargeSettingsDTO",customerId:e.customerId,currencyId:e.currencyId,isEnabled:e.isEnabled,thresholdType:null!==(t=e.thresholdType)&&void 0!==t?t:o.ThresholdType.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!==(a=e.grantExpirationPeriod)&&void 0!==a?a:o.GrantExpirationPeriod.OneMonth,currentMonthlySpend:0,createdAt:new Date,updatedAt:new Date}]})})},t}(i.F)},3789:(e,t,n)=>{"use strict";n.d(t,{i:()=>r,m:()=>a});var r,i=n(1886),o=n.n(i);!function(e){e.ALL="ALL",e.NONE="NONE",e.LOG="LOG",e.ERROR="ERROR"}(r||(r={}));var a=function(){function e(e,t){this.logger=e,this.logLevel=t}return e.prototype.error=function(e,t){this.logLevel!==r.NONE&&this.logger.error("[Stigg] ".concat(e),t||{})},e.prototype.log=function(e,t){o()([r.ERROR,r.NONE],this.logLevel)||this.logger.log("[Stigg] ".concat(e),t||{})},e.prototype.debug=function(e,t){o()([r.LOG,r.ALL],this.logLevel)&&this.logger.debug("[Stigg] ".concat(e),t||{})},e}()},8593:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var r=n(8553),i=function(){return i=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},i.apply(this,arguments)};function o(e){return e?Object.keys(e).map(function(t){return i({isFallback:!0,accessDeniedReason:r.AccessDeniedReason.Unknown,feature:{id:t}},e[t])}):[]}},9202:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFeatureEntitlementFragment=function(e){return"FeatureEntitlement"===e.__typename},t.isCreditEntitlementFragment=function(e){return"CreditEntitlement"===e.__typename},t.isFeatureEntitlementWithSummary=function(e){return"FeatureEntitlementWithSummary"===(null==e?void 0:e.__typename)},t.isCreditEntitlementWithSummary=function(e){return"CreditEntitlementWithSummary"===(null==e?void 0:e.__typename)}},9438: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}),t.ErrorCode=t.EnvironmentType=t.EnvironmentSortFields=t.EnvironmentProvisionStatus=t.EnvironmentAccessRole=t.EntitySelectionMode=t.EntitlementsStateAccessDeniedReason=t.EntitlementType=t.EntitlementResetPeriod=t.EntitlementBehavior=t.DiscountType=t.DiscountDurationType=t.Department=t.CustomerSubscriptionSortFields=t.CustomerSortFields=t.CustomerResourceSortFields=t.Currency=t.CreditUsageTimeRange=t.CreditLedgerEventType=t.CreditGrantType=t.CreditGrantStatus=t.CreditGrantSourceType=t.CreditGrantInvoiceStatus=t.CreditGrantInvoiceBillingReason=t.CreditGrantCadence=t.CreditCadence=t.CouponType=t.CouponStatus=t.CouponSource=t.CouponSortFields=t.ConditionOperation=t.ChargeType=t.ChangeType=t.BillingVendorIdentifier=t.BillingPeriod=t.BillingModel=t.BillingCadence=t.BillingAnchor=t.Auth0ApplicationType=t.ApiKeyType=t.ApiKeySortFields=t.ApiKeyScopeResource=t.ApiKeyScopeAction=t.Alignment=t.AggregationFunction=t.AddonSortFields=t.AccountStatus=t.AccountAccessRole=t.AccountAccessMethod=t.AccessDeniedReason=void 0,t.SubscriptionAddonSortFields=t.SourceType=t.SortNulls=t.SortDirection=t.ScheduleStrategy=t.PublishMigrationType=t.ProvisionSubscriptionStatus=t.ProrationBehavior=t.PromotionalEntitlementStatus=t.PromotionalEntitlementSortFields=t.PromotionalEntitlementPeriod=t.ProductStatus=t.ProductSortFields=t.PricingType=t.PriceSortFields=t.PlanSortFields=t.PlanChangeType=t.PaymentMethodType=t.PaymentCollectionMethod=t.PaymentCollection=t.PackageStatus=t.PackageGroupStatus=t.PackageGroupSortFields=t.PackageEntitlementSortFields=t.PackageDtoSortFields=t.OverageBillingPeriod=t.OfferStatus=t.OfferSortFields=t.MonthlyAccordingTo=t.MeterType=t.MemberStatus=t.MemberSortFields=t.InvoiceLineItemType=t.IntegrationSortFields=t.ImportIntegrationTaskSortFields=t.HookStatus=t.HookSortFields=t.GrantExpirationPeriod=t.FontWeight=t.FeatureType=t.FeatureStatus=t.FeatureSortFields=t.FeatureGroupStatus=t.FeatureGroupSortFields=t.ExperimentStatus=t.ExperimentSortFields=t.EventLogType=t.EventLogSortFields=t.EventEntityType=t.EventActor=void 0,t.ProductFragmentDoc=t.TotalPriceFragmentDoc=t.PriceFragmentDoc=t.PriceTierFragmentDoc=t.CustomerResourceFragmentDoc=t.SubscriptionInvoiceFragmentDoc=t.CustomerFragmentDoc=t.PromotionalEntitlementFragmentDoc=t.CouponFragmentDoc=t.SlimCustomerFragmentDoc=t.SlimSubscriptionFragmentV2FragmentDoc=t.SubscriptionQueryFragmentDoc=t.PageInfoFragmentDoc=t.ExperimentGroupType=t.YearlyAccordingTo=t.WidgetType=t.WeeklyAccordingTo=t.VendorType=t.VendorIdentifier=t.UsageUpdateBehavior=t.UsageMeasurementSortFields=t.UsageMarkerType=t.UnitTransformationRound=t.TrialPeriodUnits=t.TrialEndBehavior=t.TiersMode=t.ThresholdType=t.TaskType=t.TaskStatus=t.SyncStatus=t.SubscriptionUpdateUsageCutoffBehavior=t.SubscriptionStatus=t.SubscriptionStartSetup=t.SubscriptionScheduleType=t.SubscriptionScheduleStatus=t.SubscriptionQuerySortFields=t.SubscriptionProrationBehavior=t.SubscriptionPriceSortFields=t.SubscriptionMigrationTime=t.SubscriptionMigrationTaskSortFields=t.SubscriptionInvoiceStatus=t.SubscriptionInvoiceBillingReason=t.SubscriptionEntitlementSortFields=t.SubscriptionEndSetup=t.SubscriptionDecisionStrategy=t.SubscriptionCouponStatus=t.SubscriptionCancellationTime=t.SubscriptionCancellationAction=t.SubscriptionCancelReason=t.SubscriptionBillingCycleAnchor=void 0,t.MockPaywallAddonDependencyFragmentDoc=t.MockPaywallPriceFragmentDoc=t.MockPaywallPackageEntitlementFragmentDoc=t.CheckoutStateFragmentDoc=t.ZuoraCheckoutCredentialsFragmentDoc=t.StripeCheckoutCredentialsFragmentDoc=t.CheckoutConfigurationFragmentDoc=t.CustomerPortalFragmentDoc=t.CustomerPortalConfigurationFragmentDoc=t.TypographyConfigurationFragmentDoc=t.FontVariantFragmentDoc=t.CustomerPortalBillingInformationFragmentDoc=t.CustomerPortalPromotionalEntitlementFragmentDoc=t.EntitlementUnionFragmentDoc=t.CreditEntitlementFragmentDoc=t.FeatureEntitlementFragmentDoc=t.CustomerPortalEntitlementFragmentDoc=t.CustomerPortalSubscriptionFragmentDoc=t.CustomerPortalSubscriptionScheduledUpdateDataFragmentDoc=t.CustomerPortalSubscriptionAddonFragmentDoc=t.CustomerPortalSubscriptionPriceFragmentDoc=t.CreditBalanceUpdatedPayloadFragmentDoc=t.PackagePublishedPayloadFragmentDoc=t.EntitlementUsageUpdatedFragmentDoc=t.UsageUpdatedFragmentDoc=t.EntitlementsUpdatedPayloadFragmentDoc=t.EntitlementFragmentDoc=t.FeatureFragmentDoc=t.ResetPeriodConfigurationFragmentDoc=t.SubscriptionInvoicePreviewFragmentDoc=t.SubscriptionPreviewV2FragmentDoc=t.SubscriptionPreviewInvoiceFragmentDoc=t.ImmediateSubscriptionPreviewInvoiceFragmentDoc=t.SubscriptionPreviewFragmentDoc=t.CustomerStatisticsFragmentDoc=t.CustomerWithSubscriptionsFragmentDoc=t.SubscriptionFragmentDoc=t.SubscriptionTrialConfigurationFragmentDoc=t.SubscriptionFutureUpdateDataFragmentDoc=t.SubscriptionScheduledUpdateDataFragmentDoc=t.ScheduleVariablesFragmentDoc=t.PlanFragmentDoc=t.PlanCompatiblePackageGroupsFragmentDoc=t.AddonFragmentDoc=t.AddonDependencyFragmentDoc=t.OveragePriceFragmentDoc=t.PackageEntitlementUnionFragmentDoc=t.PackageCreditEntitlementFragmentDoc=t.PackageFeatureEntitlementFragmentDoc=t.PackageEntitlementFragmentDoc=void 0,t.CreateSubscriptionDocument=t.ReportEntitlementCheckRequestedDocument=t.ReportEventDocument=t.ReportUsageBulkDocument=t.ReportUsageDocument=t.CancelSubscriptionUpdatesDocument=t.PreviewNextInvoiceDocument=t.PreviewSubscriptionDocument=t.EstimateSubscriptionUpdateDocument=t.EstimateSubscriptionDocument=t.CancelSubscriptionDocument=t.UpdateSubscriptionDocument=t.ImportSubscriptionsBulkDocument=t.ApplySubscriptionDocument=t.ProvisionSubscriptionDocument=t.RevokePromotionalEntitlementDocument=t.GrantPromotionalEntitlementsDocument=t.DetachCustomerPaymentMethodDocument=t.UpdateCustomerDocument=t.ImportCustomerDocument=t.ImportCustomerBulkDocument=t.ProvisionCustomerDocument=t.UsageUpdatedV2PayloadFragmentDoc=t.UsageV2FragmentDoc=t.EntitlementReferenceFragmentDoc=t.EntitlementsUpdatedV2PayloadFragmentDoc=t.AutoRechargeSettingsFragmentDoc=t.CreditUsageFragmentDoc=t.SlimCustomCurrencyFragmentDoc=t.PaymentSessionFragmentDoc=t.CreditsBalanceSummaryFragmentDoc=t.CreditBalanceFragmentDoc=t.CreditLedgerFragmentDoc=t.CreditGrantFragmentDoc=t.CreditGrantInvoiceFragmentDoc=t.ReportUsageFragmentDoc=t.ProvisionSubscriptionFragmentDoc=t.ApplySubscriptionFragmentDoc=t.ProvisionCustomerFragmentDoc=t.SlimSubscriptionFragmentDoc=t.UsageHistoryV2FragmentDoc=t.UsageHistoryFragmentDoc=t.PaywallFragmentDoc=t.PaywallCalculatedPricePointsFragmentDoc=t.PaywallConfigurationFragmentDoc=t.LayoutConfigurationFragmentDoc=t.PaywallCurrencyFragmentDoc=t.MockPaywallPlanFragmentDoc=t.MockPaywallPlanCompatiblePackageGroupsFragmentDoc=t.MockPaywallAddonFragmentDoc=void 0,t.OnCreditBalanceUpdatedDocument=t.OnPackagePublishedDocument=t.OnUsageUpdatedV2Document=t.OnUsageUpdatedDocument=t.OnEntitlementsUpdatedV2Document=t.OnEntitlementsUpdatedDocument=t.GetAutomaticRechargeConfigurationDocument=t.GetCreditUsageDocument=t.GetCreditLedgerDocument=t.GetCreditGrantsDocument=t.GetCreditBalanceDocument=t.GetUsageHistoryV2Document=t.GetUsageHistoryDocument=t.GetMockPaywallDocument=t.GetCheckoutStateDocument=t.GetCustomerPortalByRefIdDocument=t.GetSdkConfigurationDocument=t.GetProductsDocument=t.GetEntitlementV2Document=t.GetEntitlementDocument=t.GetEntitlementsStateDocument=t.GetEntitlementsDocument=t.GetPaywallDocument=t.GetCouponsDocument=t.GetSubscriptionDocument=t.GetSubscriptionsDocument=t.GetActiveSubscriptionsListDocument=t.GetActiveSubscriptionsDocument=t.GetCustomerStatisticsDocument=t.GetCustomerByIdDocument=t.SaveAutomaticRechargeConfigurationDocument=t.CreateCouponDocument=t.VoidCreditGrantDocument=t.CreatePaymentSessionDocument=t.UnlinkPromotionalEntitlementsGroupDocument=t.RevokePromotionalEntitlementsGroupDocument=t.GrantPromotionalEntitlementsGroupDocument=t.GrantCreditsDocument=t.TransferSubscriptionToResourceDocument=t.DelegateSubscriptionToCustomerDocument=t.TransferSubscriptionDocument=t.UnarchiveCustomerDocument=t.ArchiveCustomerDocument=t.MigrateSubscriptionToLatestDocument=void 0,t.getSdk=function(e,n=kt){return{ProvisionCustomer:(r,i)=>n(n=>e.request(t.ProvisionCustomerDocument,r,Object.assign(Object.assign({},i),n)),"ProvisionCustomer","mutation"),ImportCustomerBulk:(r,i)=>n(n=>e.request(t.ImportCustomerBulkDocument,r,Object.assign(Object.assign({},i),n)),"ImportCustomerBulk","mutation"),ImportCustomer:(r,i)=>n(n=>e.request(t.ImportCustomerDocument,r,Object.assign(Object.assign({},i),n)),"ImportCustomer","mutation"),UpdateCustomer:(r,i)=>n(n=>e.request(t.UpdateCustomerDocument,r,Object.assign(Object.assign({},i),n)),"UpdateCustomer","mutation"),DetachCustomerPaymentMethod:(r,i)=>n(n=>e.request(t.DetachCustomerPaymentMethodDocument,r,Object.assign(Object.assign({},i),n)),"DetachCustomerPaymentMethod","mutation"),GrantPromotionalEntitlements:(r,i)=>n(n=>e.request(t.GrantPromotionalEntitlementsDocument,r,Object.assign(Object.assign({},i),n)),"GrantPromotionalEntitlements","mutation"),RevokePromotionalEntitlement:(r,i)=>n(n=>e.request(t.RevokePromotionalEntitlementDocument,r,Object.assign(Object.assign({},i),n)),"RevokePromotionalEntitlement","mutation"),ProvisionSubscription:(r,i)=>n(n=>e.request(t.ProvisionSubscriptionDocument,r,Object.assign(Object.assign({},i),n)),"ProvisionSubscription","mutation"),ApplySubscription:(r,i)=>n(n=>e.request(t.ApplySubscriptionDocument,r,Object.assign(Object.assign({},i),n)),"ApplySubscription","mutation"),ImportSubscriptionsBulk:(r,i)=>n(n=>e.request(t.ImportSubscriptionsBulkDocument,r,Object.assign(Object.assign({},i),n)),"ImportSubscriptionsBulk","mutation"),UpdateSubscription:(r,i)=>n(n=>e.request(t.UpdateSubscriptionDocument,r,Object.assign(Object.assign({},i),n)),"UpdateSubscription","mutation"),CancelSubscription:(r,i)=>n(n=>e.request(t.CancelSubscriptionDocument,r,Object.assign(Object.assign({},i),n)),"CancelSubscription","mutation"),EstimateSubscription:(r,i)=>n(n=>e.request(t.EstimateSubscriptionDocument,r,Object.assign(Object.assign({},i),n)),"EstimateSubscription","mutation"),EstimateSubscriptionUpdate:(r,i)=>n(n=>e.request(t.EstimateSubscriptionUpdateDocument,r,Object.assign(Object.assign({},i),n)),"EstimateSubscriptionUpdate","mutation"),PreviewSubscription:(r,i)=>n(n=>e.request(t.PreviewSubscriptionDocument,r,Object.assign(Object.assign({},i),n)),"PreviewSubscription","mutation"),PreviewNextInvoice:(r,i)=>n(n=>e.request(t.PreviewNextInvoiceDocument,r,Object.assign(Object.assign({},i),n)),"PreviewNextInvoice","mutation"),CancelSubscriptionUpdates:(r,i)=>n(n=>e.request(t.CancelSubscriptionUpdatesDocument,r,Object.assign(Object.assign({},i),n)),"CancelSubscriptionUpdates","mutation"),ReportUsage:(r,i)=>n(n=>e.request(t.ReportUsageDocument,r,Object.assign(Object.assign({},i),n)),"ReportUsage","mutation"),ReportUsageBulk:(r,i)=>n(n=>e.request(t.ReportUsageBulkDocument,r,Object.assign(Object.assign({},i),n)),"ReportUsageBulk","mutation"),ReportEvent:(r,i)=>n(n=>e.request(t.ReportEventDocument,r,Object.assign(Object.assign({},i),n)),"ReportEvent","mutation"),ReportEntitlementCheckRequested:(r,i)=>n(n=>e.request(t.ReportEntitlementCheckRequestedDocument,r,Object.assign(Object.assign({},i),n)),"ReportEntitlementCheckRequested","mutation"),CreateSubscription:(r,i)=>n(n=>e.request(t.CreateSubscriptionDocument,r,Object.assign(Object.assign({},i),n)),"CreateSubscription","mutation"),MigrateSubscriptionToLatest:(r,i)=>n(n=>e.request(t.MigrateSubscriptionToLatestDocument,r,Object.assign(Object.assign({},i),n)),"MigrateSubscriptionToLatest","mutation"),ArchiveCustomer:(r,i)=>n(n=>e.request(t.ArchiveCustomerDocument,r,Object.assign(Object.assign({},i),n)),"ArchiveCustomer","mutation"),UnarchiveCustomer:(r,i)=>n(n=>e.request(t.UnarchiveCustomerDocument,r,Object.assign(Object.assign({},i),n)),"UnarchiveCustomer","mutation"),TransferSubscription:(r,i)=>n(n=>e.request(t.TransferSubscriptionDocument,r,Object.assign(Object.assign({},i),n)),"TransferSubscription","mutation"),DelegateSubscriptionToCustomer:(r,i)=>n(n=>e.request(t.DelegateSubscriptionToCustomerDocument,r,Object.assign(Object.assign({},i),n)),"DelegateSubscriptionToCustomer","mutation"),TransferSubscriptionToResource:(r,i)=>n(n=>e.request(t.TransferSubscriptionToResourceDocument,r,Object.assign(Object.assign({},i),n)),"TransferSubscriptionToResource","mutation"),GrantCredits:(r,i)=>n(n=>e.request(t.GrantCreditsDocument,r,Object.assign(Object.assign({},i),n)),"GrantCredits","mutation"),GrantPromotionalEntitlementsGroup:(r,i)=>n(n=>e.request(t.GrantPromotionalEntitlementsGroupDocument,r,Object.assign(Object.assign({},i),n)),"GrantPromotionalEntitlementsGroup","mutation"),RevokePromotionalEntitlementsGroup:(r,i)=>n(n=>e.request(t.RevokePromotionalEntitlementsGroupDocument,r,Object.assign(Object.assign({},i),n)),"RevokePromotionalEntitlementsGroup","mutation"),UnlinkPromotionalEntitlementsGroup:(r,i)=>n(n=>e.request(t.UnlinkPromotionalEntitlementsGroupDocument,r,Object.assign(Object.assign({},i),n)),"UnlinkPromotionalEntitlementsGroup","mutation"),CreatePaymentSession:(r,i)=>n(n=>e.request(t.CreatePaymentSessionDocument,r,Object.assign(Object.assign({},i),n)),"CreatePaymentSession","mutation"),VoidCreditGrant:(r,i)=>n(n=>e.request(t.VoidCreditGrantDocument,r,Object.assign(Object.assign({},i),n)),"VoidCreditGrant","mutation"),CreateCoupon:(r,i)=>n(n=>e.request(t.CreateCouponDocument,r,Object.assign(Object.assign({},i),n)),"CreateCoupon","mutation"),SaveAutomaticRechargeConfiguration:(r,i)=>n(n=>e.request(t.SaveAutomaticRechargeConfigurationDocument,r,Object.assign(Object.assign({},i),n)),"SaveAutomaticRechargeConfiguration","mutation"),GetCustomerById:(r,i)=>n(n=>e.request(t.GetCustomerByIdDocument,r,Object.assign(Object.assign({},i),n)),"GetCustomerById","query"),GetCustomerStatistics:(r,i)=>n(n=>e.request(t.GetCustomerStatisticsDocument,r,Object.assign(Object.assign({},i),n)),"GetCustomerStatistics","query"),GetActiveSubscriptions:(r,i)=>n(n=>e.request(t.GetActiveSubscriptionsDocument,r,Object.assign(Object.assign({},i),n)),"GetActiveSubscriptions","query"),GetActiveSubscriptionsList:(r,i)=>n(n=>e.request(t.GetActiveSubscriptionsListDocument,r,Object.assign(Object.assign({},i),n)),"GetActiveSubscriptionsList","query"),GetSubscriptions:(r,i)=>n(n=>e.request(t.GetSubscriptionsDocument,r,Object.assign(Object.assign({},i),n)),"GetSubscriptions","query"),GetSubscription:(r,i)=>n(n=>e.request(t.GetSubscriptionDocument,r,Object.assign(Object.assign({},i),n)),"GetSubscription","query"),GetCoupons:(r,i)=>n(n=>e.request(t.GetCouponsDocument,r,Object.assign(Object.assign({},i),n)),"GetCoupons","query"),GetPaywall:(r,i)=>n(n=>e.request(t.GetPaywallDocument,r,Object.assign(Object.assign({},i),n)),"GetPaywall","query"),GetEntitlements:(r,i)=>n(n=>e.request(t.GetEntitlementsDocument,r,Object.assign(Object.assign({},i),n)),"GetEntitlements","query"),GetEntitlementsState:(r,i)=>n(n=>e.request(t.GetEntitlementsStateDocument,r,Object.assign(Object.assign({},i),n)),"GetEntitlementsState","query"),GetEntitlement:(r,i)=>n(n=>e.request(t.GetEntitlementDocument,r,Object.assign(Object.assign({},i),n)),"GetEntitlement","query"),GetEntitlementV2:(r,i)=>n(n=>e.request(t.GetEntitlementV2Document,r,Object.assign(Object.assign({},i),n)),"GetEntitlementV2","query"),GetProducts:(r,i)=>n(n=>e.request(t.GetProductsDocument,r,Object.assign(Object.assign({},i),n)),"GetProducts","query"),GetSdkConfiguration:(r,i)=>n(n=>e.request(t.GetSdkConfigurationDocument,r,Object.assign(Object.assign({},i),n)),"GetSdkConfiguration","query"),GetCustomerPortalByRefId:(r,i)=>n(n=>e.request(t.GetCustomerPortalByRefIdDocument,r,Object.assign(Object.assign({},i),n)),"GetCustomerPortalByRefId","query"),GetCheckoutState:(r,i)=>n(n=>e.request(t.GetCheckoutStateDocument,r,Object.assign(Object.assign({},i),n)),"GetCheckoutState","query"),GetMockPaywall:(r,i)=>n(n=>e.request(t.GetMockPaywallDocument,r,Object.assign(Object.assign({},i),n)),"GetMockPaywall","query"),GetUsageHistory:(r,i)=>n(n=>e.request(t.GetUsageHistoryDocument,r,Object.assign(Object.assign({},i),n)),"GetUsageHistory","query"),GetUsageHistoryV2:(r,i)=>n(n=>e.request(t.GetUsageHistoryV2Document,r,Object.assign(Object.assign({},i),n)),"GetUsageHistoryV2","query"),GetCreditBalance:(r,i)=>n(n=>e.request(t.GetCreditBalanceDocument,r,Object.assign(Object.assign({},i),n)),"GetCreditBalance","query"),GetCreditGrants:(r,i)=>n(n=>e.request(t.GetCreditGrantsDocument,r,Object.assign(Object.assign({},i),n)),"GetCreditGrants","query"),GetCreditLedger:(r,i)=>n(n=>e.request(t.GetCreditLedgerDocument,r,Object.assign(Object.assign({},i),n)),"GetCreditLedger","query"),GetCreditUsage:(r,i)=>n(n=>e.request(t.GetCreditUsageDocument,r,Object.assign(Object.assign({},i),n)),"GetCreditUsage","query"),GetAutomaticRechargeConfiguration:(r,i)=>n(n=>e.request(t.GetAutomaticRechargeConfigurationDocument,r,Object.assign(Object.assign({},i),n)),"GetAutomaticRechargeConfiguration","query"),OnEntitlementsUpdated:(r,i)=>n(n=>e.request(t.OnEntitlementsUpdatedDocument,r,Object.assign(Object.assign({},i),n)),"OnEntitlementsUpdated","subscription"),OnEntitlementsUpdatedV2:(r,i)=>n(n=>e.request(t.OnEntitlementsUpdatedV2Document,r,Object.assign(Object.assign({},i),n)),"OnEntitlementsUpdatedV2","subscription"),OnUsageUpdated:(r,i)=>n(n=>e.request(t.OnUsageUpdatedDocument,r,Object.assign(Object.assign({},i),n)),"OnUsageUpdated","subscription"),OnUsageUpdatedV2:(r,i)=>n(n=>e.request(t.OnUsageUpdatedV2Document,r,Object.assign(Object.assign({},i),n)),"OnUsageUpdatedV2","subscription"),OnPackagePublished:(r,i)=>n(n=>e.request(t.OnPackagePublishedDocument,r,Object.assign(Object.assign({},i),n)),"OnPackagePublished","subscription"),OnCreditBalanceUpdated:(r,i)=>n(n=>e.request(t.OnCreditBalanceUpdatedDocument,r,Object.assign(Object.assign({},i),n)),"OnCreditBalanceUpdated","subscription")}};const i=r(n(81));var o,a,s,u,c,l,p,f,d,h,m,g,v,y,b,E,_,S,T,I,D,w,C,O,P,A,F,N,R,k,x,U,M,L,j,V,B,G,$,q,Q,H,z,Z,W,Y,K,J,X,ee,te,ne,re,ie,oe,ae,se,ue,ce,le,pe,fe,de,he,me,ge,ve,ye,be,Ee,_e,Se,Te,Ie,De,we,Ce,Oe,Pe,Ae,Fe,Ne,Re,ke,xe,Ue,Me,Le,je,Ve,Be,Ge,$e,qe,Qe,He,ze,Ze,We,Ye,Ke,Je,Xe,et,tt,nt,rt,it,ot,at,st,ut,ct,lt,pt,ft,dt,ht,mt,gt,vt,yt,bt,Et,_t,St,Tt,It,Dt,wt,Ct,Ot,Pt,At,Ft,Nt,Rt;!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"}(o||(t.AccessDeniedReason=o={})),function(e){e.AuthorizedDomain="AUTHORIZED_DOMAIN",e.InviteOnly="INVITE_ONLY",e.Sso="SSO"}(a||(t.AccountAccessMethod=a={})),function(e){e.Member="MEMBER",e.Owner="OWNER"}(s||(t.AccountAccessRole=s={})),function(e){e.Active="ACTIVE",e.Blocked="BLOCKED"}(u||(t.AccountStatus=u={})),function(e){e.BillingId="billingId",e.CreatedAt="createdAt",e.Description="description",e.DisplayName="displayName",e.EnvironmentId="environmentId",e.Id="id",e.IsLatest="isLatest",e.PricingType="pricingType",e.ProductId="productId",e.RefId="refId",e.Status="status",e.UpdatedAt="updatedAt",e.VersionNumber="versionNumber"}(c||(t.AddonSortFields=c={})),function(e){e.Avg="AVG",e.Count="COUNT",e.Max="MAX",e.Min="MIN",e.Sum="SUM",e.Unique="UNIQUE"}(l||(t.AggregationFunction=l={})),function(e){e.Center="CENTER",e.Left="LEFT",e.Right="RIGHT"}(p||(t.Alignment=p={})),function(e){e.Read="READ",e.Write="WRITE"}(f||(t.ApiKeyScopeAction=f={})),function(e){e.ApiKey="API_KEY",e.Coupon="COUPON",e.Customer="CUSTOMER",e.Environment="ENVIRONMENT",e.Subscription="SUBSCRIPTION"}(d||(t.ApiKeyScopeResource=d={})),function(e){e.Id="id"}(h||(t.ApiKeySortFields=h={})),function(e){e.Client="CLIENT",e.Salesforce="SALESFORCE",e.Scoped="SCOPED",e.Server="SERVER",e.Workflow="WORKFLOW"}(m||(t.ApiKeyType=m={})),function(e){e.Both="BOTH",e.Individual="INDIVIDUAL",e.Organization="ORGANIZATION"}(g||(t.Auth0ApplicationType=g={})),function(e){e.StartOfTheMonth="START_OF_THE_MONTH",e.SubscriptionsConsolidateBilling="SUBSCRIPTIONS_CONSOLIDATE_BILLING",e.SubscriptionStart="SUBSCRIPTION_START"}(v||(t.BillingAnchor=v={})),function(e){e.OneOff="ONE_OFF",e.Recurring="RECURRING"}(y||(t.BillingCadence=y={})),function(e){e.CreditBased="CREDIT_BASED",e.FlatFee="FLAT_FEE",e.MinimumSpend="MINIMUM_SPEND",e.PerUnit="PER_UNIT",e.UsageBased="USAGE_BASED"}(b||(t.BillingModel=b={})),function(e){e.Annually="ANNUALLY",e.Monthly="MONTHLY"}(E||(t.BillingPeriod=E={})),function(e){e.Stripe="STRIPE",e.Zuora="ZUORA"}(_||(t.BillingVendorIdentifier=_={})),function(e){e.Added="ADDED",e.Deleted="DELETED",e.Modified="MODIFIED",e.Reordered="REORDERED"}(S||(t.ChangeType=S={})),function(e){e.Credit="CREDIT",e.Feature="FEATURE"}(T||(t.ChargeType=T={})),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"}(I||(t.ConditionOperation=I={})),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"}(D||(t.CouponSortFields=D={})),function(e){e.Stigg="STIGG",e.StiggAdhoc="STIGG_ADHOC",e.Stripe="STRIPE"}(w||(t.CouponSource=w={})),function(e){e.Active="ACTIVE",e.Archived="ARCHIVED"}(C||(t.CouponStatus=C={})),function(e){e.Fixed="FIXED",e.Percentage="PERCENTAGE"}(O||(t.CouponType=O={})),function(e){e.Month="MONTH",e.Year="YEAR"}(P||(t.CreditCadence=P={})),function(e){e.BeginningOfBillingPeriod="BEGINNING_OF_BILLING_PERIOD",e.Monthly="MONTHLY"}(A||(t.CreditGrantCadence=A={})),function(e){e.Manual="MANUAL",e.Other="OTHER"}(F||(t.CreditGrantInvoiceBillingReason=F={})),function(e){e.Canceled="CANCELED",e.Open="OPEN",e.Paid="PAID"}(N||(t.CreditGrantInvoiceStatus=N={})),function(e){e.AddonEntitlement="ADDON_ENTITLEMENT",e.PlanEntitlement="PLAN_ENTITLEMENT",e.Price="PRICE"}(R||(t.CreditGrantSourceType=R={})),function(e){e.Active="ACTIVE",e.Expired="EXPIRED",e.PaymentPending="PAYMENT_PENDING",e.Scheduled="SCHEDULED",e.Voided="VOIDED"}(k||(t.CreditGrantStatus=k={})),function(e){e.Paid="PAID",e.Promotional="PROMOTIONAL",e.Recurring="RECURRING"}(x||(t.CreditGrantType=x={})),function(e){e.CreditsConsumed="CREDITS_CONSUMED",e.CreditsExpired="CREDITS_EXPIRED",e.CreditsGranted="CREDITS_GRANTED",e.CreditsUpdated="CREDITS_UPDATED",e.CreditsVoided="CREDITS_VOIDED"}(U||(t.CreditLedgerEventType=U={})),function(e){e.LastDay="LAST_DAY",e.LastMonth="LAST_MONTH",e.LastWeek="LAST_WEEK",e.LastYear="LAST_YEAR"}(M||(t.CreditUsageTimeRange=M={})),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"}(L||(t.Currency=L={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.ResourceId="resourceId"}(j||(t.CustomerResourceSortFields=j={})),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"}(V||(t.CustomerSortFields=V={})),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"}(B||(t.CustomerSubscriptionSortFields=B={})),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"}(G||(t.Department=G={})),function(e){e.Forever="FOREVER",e.Once="ONCE",e.Repeating="REPEATING"}($||(t.DiscountDurationType=$={})),function(e){e.Fixed="FIXED",e.Percentage="PERCENTAGE"}(q||(t.DiscountType=q={})),function(e){e.Increment="Increment",e.Override="Override"}(Q||(t.EntitlementBehavior=Q={})),function(e){e.Day="DAY",e.Hour="HOUR",e.Month="MONTH",e.Week="WEEK",e.Year="YEAR"}(H||(t.EntitlementResetPeriod=H={})),function(e){e.Credit="CREDIT",e.Feature="FEATURE"}(z||(t.EntitlementType=z={})),function(e){e.CustomerIsArchived="CustomerIsArchived",e.CustomerNotFound="CustomerNotFound",e.NoActiveSubscription="NoActiveSubscription"}(Z||(t.EntitlementsStateAccessDeniedReason=Z={})),function(e){e.BlackList="BLACK_LIST",e.WhiteList="WHITE_LIST"}(W||(t.EntitySelectionMode=W={})),function(e){e.Admin="ADMIN",e.None="NONE",e.Support="SUPPORT",e.Viewer="VIEWER"}(Y||(t.EnvironmentAccessRole=Y={})),function(e){e.Done="DONE",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.NotProvisioned="NOT_PROVISIONED"}(K||(t.EnvironmentProvisionStatus=K={})),function(e){e.CreatedAt="createdAt",e.DisplayName="displayName",e.Id="id",e.PermanentDeletionDate="permanentDeletionDate",e.Slug="slug"}(J||(t.EnvironmentSortFields=J={})),function(e){e.Development="DEVELOPMENT",e.Production="PRODUCTION",e.Sandbox="SANDBOX"}(X||(t.EnvironmentType=X={})),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.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.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.InvalidSubscriptionStatus="InvalidSubscriptionStatus",e.InvalidTaxId="InvalidTaxId",e.InvalidUpdatePriceUnitAmountError="InvalidUpdatePriceUnitAmountError",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.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.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"}(ee||(t.ErrorCode=ee={})),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"}(te||(t.EventActor=te={})),function(e){e.Addon="ADDON",e.Coupon="COUPON",e.Credit="CREDIT",e.Customer="CUSTOMER",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"}(ne||(t.EventEntityType=ne={})),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"}(re||(t.EventLogSortFields=re={})),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.EdgeApiClientConfigurationDataResync="EDGE_API_CLIENT_CONFIGURATION_DATA_RESYNC",e.EdgeApiCustomerDataResync="EDGE_API_CUSTOMER_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"}(ie||(t.EventLogType=ie={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Name="name",e.ProductId="productId",e.RefId="refId",e.Status="status"}(oe||(t.ExperimentSortFields=oe={})),function(e){e.Completed="COMPLETED",e.Draft="DRAFT",e.InProgress="IN_PROGRESS"}(ae||(t.ExperimentStatus=ae={})),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"}(se||(t.FeatureGroupSortFields=se={})),function(e){e.Archived="ARCHIVED",e.Published="PUBLISHED"}(ue||(t.FeatureGroupStatus=ue={})),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"}(ce||(t.FeatureSortFields=ce={})),function(e){e.Active="ACTIVE",e.New="NEW",e.Suspended="SUSPENDED"}(le||(t.FeatureStatus=le={})),function(e){e.Boolean="BOOLEAN",e.Enum="ENUM",e.Number="NUMBER"}(pe||(t.FeatureType=pe={})),function(e){e.Bold="BOLD",e.Normal="NORMAL"}(fe||(t.FontWeight=fe={})),function(e){e.OneMonth="OneMonth",e.OneYear="OneYear"}(de||(t.GrantExpirationPeriod=de={})),function(e){e.CreatedAt="createdAt",e.Endpoint="endpoint",e.EnvironmentId="environmentId",e.Id="id",e.Status="status"}(he||(t.HookSortFields=he={})),function(e){e.Active="ACTIVE",e.Inactive="INACTIVE"}(me||(t.HookStatus=me={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.TaskType="taskType"}(ge||(t.ImportIntegrationTaskSortFields=ge={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.VendorIdentifier="vendorIdentifier",e.VendorType="vendorType"}(ve||(t.IntegrationSortFields=ve={})),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"}(ye||(t.InvoiceLineItemType=ye={})),function(e){e.CreatedAt="createdAt",e.Email="email",e.Id="id"}(be||(t.MemberSortFields=be={})),function(e){e.Invited="INVITED",e.Registered="REGISTERED"}(Ee||(t.MemberStatus=Ee={})),function(e){e.Fluctuating="Fluctuating",e.Incremental="Incremental",e.None="None"}(_e||(t.MeterType=_e={})),function(e){e.StartOfTheMonth="StartOfTheMonth",e.SubscriptionStart="SubscriptionStart"}(Se||(t.MonthlyAccordingTo=Se={})),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"}(Te||(t.OfferSortFields=Te={})),function(e){e.Archived="ARCHIVED",e.Draft="DRAFT",e.Published="PUBLISHED"}(Ie||(t.OfferStatus=Ie={})),function(e){e.Monthly="MONTHLY",e.OnSubscriptionRenewal="ON_SUBSCRIPTION_RENEWAL"}(De||(t.OverageBillingPeriod=De={})),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"}(we||(t.PackageDtoSortFields=we={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.PackageId="packageId",e.UpdatedAt="updatedAt"}(Ce||(t.PackageEntitlementSortFields=Ce={})),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"}(Oe||(t.PackageGroupSortFields=Oe={})),function(e){e.Archived="ARCHIVED",e.Draft="DRAFT",e.Published="PUBLISHED"}(Pe||(t.PackageGroupStatus=Pe={})),function(e){e.Archived="ARCHIVED",e.Draft="DRAFT",e.Published="PUBLISHED"}(Ae||(t.PackageStatus=Ae={})),function(e){e.ActionRequired="ACTION_REQUIRED",e.Failed="FAILED",e.NotRequired="NOT_REQUIRED",e.Processing="PROCESSING"}(Fe||(t.PaymentCollection=Fe={})),function(e){e.Charge="CHARGE",e.Invoice="INVOICE",e.None="NONE"}(Ne||(t.PaymentCollectionMethod=Ne={})),function(e){e.Bank="BANK",e.Card="CARD",e.CashApp="CASH_APP"}(Re||(t.PaymentMethodType=Re={})),function(e){e.Downgrade="DOWNGRADE",e.None="NONE",e.Upgrade="UPGRADE"}(ke||(t.PlanChangeType=ke={})),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"}(xe||(t.PlanSortFields=xe={})),function(e){e.BillingCadence="billingCadence",e.BillingId="billingId",e.BillingModel="billingModel",e.BillingPeriod="billingPeriod",e.CreatedAt="createdAt",e.Id="id",e.TiersMode="tiersMode"}(Ue||(t.PriceSortFields=Ue={})),function(e){e.Custom="CUSTOM",e.Free="FREE",e.Paid="PAID"}(Me||(t.PricingType=Me={})),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"}(Le||(t.ProductSortFields=Le={})),function(e){e.Archived="ARCHIVED",e.Published="PUBLISHED"}(je||(t.ProductStatus=je={})),function(e){e.Custom="CUSTOM",e.Lifetime="LIFETIME",e.OneMonth="ONE_MONTH",e.OneWeek="ONE_WEEK",e.OneYear="ONE_YEAR",e.SixMonth="SIX_MONTH"}(Ve||(t.PromotionalEntitlementPeriod=Ve={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.UpdatedAt="updatedAt"}(Be||(t.PromotionalEntitlementSortFields=Be={})),function(e){e.Active="Active",e.Expired="Expired",e.Paused="Paused"}(Ge||(t.PromotionalEntitlementStatus=Ge={})),function(e){e.CreateProrations="CREATE_PRORATIONS",e.InvoiceImmediately="INVOICE_IMMEDIATELY"}($e||(t.ProrationBehavior=$e={})),function(e){e.PaymentRequired="PAYMENT_REQUIRED",e.Success="SUCCESS"}(qe||(t.ProvisionSubscriptionStatus=qe={})),function(e){e.AllCustomers="ALL_CUSTOMERS",e.NewCustomers="NEW_CUSTOMERS"}(Qe||(t.PublishMigrationType=Qe={})),function(e){e.EndOfBillingMonth="END_OF_BILLING_MONTH",e.EndOfBillingPeriod="END_OF_BILLING_PERIOD",e.Immediate="IMMEDIATE"}(He||(t.ScheduleStrategy=He={})),function(e){e.Asc="ASC",e.Desc="DESC"}(ze||(t.SortDirection=ze={})),function(e){e.NullsFirst="NULLS_FIRST",e.NullsLast="NULLS_LAST"}(Ze||(t.SortNulls=Ze={})),function(e){e.JsClientSdk="JS_CLIENT_SDK",e.NodeServerSdk="NODE_SERVER_SDK",e.PersistentCacheService="PERSISTENT_CACHE_SERVICE"}(We||(t.SourceType=We={})),function(e){e.CreatedAt="createdAt",e.Id="id",e.Quantity="quantity",e.UpdatedAt="updatedAt"}(Ye||(t.SubscriptionAddonSortFields=Ye={})),function(e){e.Now="NOW",e.Unchanged="UNCHANGED"}(Ke||(t.SubscriptionBillingCycleAnchor=Ke={})),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"}(Je||(t.SubscriptionCancelReason=Je={})),function(e){e.Default="DEFAULT",e.RevokeEntitlements="REVOKE_ENTITLEMENTS"}(Xe||(t.SubscriptionCancellationAction=Xe={})),function(e){e.EndOfBillingPeriod="END_OF_BILLING_PERIOD",e.Immediate="IMMEDIATE",e.SpecificDate="SPECIFIC_DATE"}(et||(t.SubscriptionCancellationTime=et={})),function(e){e.Active="ACTIVE",e.Expired="EXPIRED",e.Removed="REMOVED"}(tt||(t.SubscriptionCouponStatus=tt={})),function(e){e.PredefinedFreePlan="PREDEFINED_FREE_PLAN",e.PredefinedTrialPlan="PREDEFINED_TRIAL_PLAN",e.RequestedPlan="REQUESTED_PLAN",e.SkippedSubscriptionCreation="SKIPPED_SUBSCRIPTION_CREATION"}(nt||(t.SubscriptionDecisionStrategy=nt={})),function(e){e.CancelSubscription="CANCEL_SUBSCRIPTION",e.DowngradeToFree="DOWNGRADE_TO_FREE"}(rt||(t.SubscriptionEndSetup=rt={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.SubscriptionId="subscriptionId",e.UpdatedAt="updatedAt"}(it||(t.SubscriptionEntitlementSortFields=it={})),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"}(ot||(t.SubscriptionInvoiceBillingReason=ot={})),function(e){e.Canceled="CANCELED",e.Open="OPEN",e.Paid="PAID"}(at||(t.SubscriptionInvoiceStatus=at={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id",e.Status="status",e.TaskType="taskType"}(st||(t.SubscriptionMigrationTaskSortFields=st={})),function(e){e.EndOfBillingPeriod="END_OF_BILLING_PERIOD",e.Immediate="IMMEDIATE"}(ut||(t.SubscriptionMigrationTime=ut={})),function(e){e.BillingModel="billingModel",e.CreatedAt="createdAt",e.FeatureId="featureId",e.HasSoftLimit="hasSoftLimit",e.Id="id",e.UpdatedAt="updatedAt",e.UsageLimit="usageLimit"}(ct||(t.SubscriptionPriceSortFields=ct={})),function(e){e.CreateProrations="CREATE_PRORATIONS",e.InvoiceImmediately="INVOICE_IMMEDIATELY",e.None="NONE"}(lt||(t.SubscriptionProrationBehavior=lt={})),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"}(pt||(t.SubscriptionQuerySortFields=pt={})),function(e){e.Canceled="Canceled",e.Done="Done",e.Failed="Failed",e.PendingPayment="PendingPayment",e.Scheduled="Scheduled"}(ft||(t.SubscriptionScheduleStatus=ft={})),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"}(dt||(t.SubscriptionScheduleType=dt={})),function(e){e.FreePlan="FREE_PLAN",e.PlanSelection="PLAN_SELECTION",e.TrialPeriod="TRIAL_PERIOD"}(ht||(t.SubscriptionStartSetup=ht={})),function(e){e.Active="ACTIVE",e.Canceled="CANCELED",e.Expired="EXPIRED",e.InTrial="IN_TRIAL",e.NotStarted="NOT_STARTED",e.PaymentPending="PAYMENT_PENDING"}(mt||(t.SubscriptionStatus=mt={})),function(e){e.AlwaysReset="ALWAYS_RESET",e.BillingPeriodChange="BILLING_PERIOD_CHANGE",e.NeverReset="NEVER_RESET"}(gt||(t.SubscriptionUpdateUsageCutoffBehavior=gt={})),function(e){e.Error="ERROR",e.NoSyncRequired="NO_SYNC_REQUIRED",e.Pending="PENDING",e.Success="SUCCESS"}(vt||(t.SyncStatus=vt={})),function(e){e.Canceled="CANCELED",e.Completed="COMPLETED",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.PartiallyFailed="PARTIALLY_FAILED",e.Pending="PENDING"}(yt||(t.TaskStatus=yt={})),function(e){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"}(bt||(t.TaskType=bt={})),function(e){e.CreditAmount="CreditAmount",e.DollarAmount="DollarAmount"}(Et||(t.ThresholdType=Et={})),function(e){e.Graduated="GRADUATED",e.Volume="VOLUME"}(_t||(t.TiersMode=_t={})),function(e){e.CancelSubscription="CANCEL_SUBSCRIPTION",e.ConvertToPaid="CONVERT_TO_PAID"}(St||(t.TrialEndBehavior=St={})),function(e){e.Day="DAY",e.Month="MONTH"}(Tt||(t.TrialPeriodUnits=Tt={})),function(e){e.Down="DOWN",e.Up="UP"}(It||(t.UnitTransformationRound=It={})),function(e){e.PeriodicReset="PERIODIC_RESET",e.SubscriptionChangeReset="SUBSCRIPTION_CHANGE_RESET"}(Dt||(t.UsageMarkerType=Dt={})),function(e){e.CreatedAt="createdAt",e.EnvironmentId="environmentId",e.Id="id"}(wt||(t.UsageMeasurementSortFields=wt={})),function(e){e.Delta="DELTA",e.Set="SET"}(Ct||(t.UsageUpdateBehavior=Ct={})),function(e){e.AppStore="APP_STORE",e.Auth0="AUTH0",e.AwsMarketplace="AWS_MARKETPLACE",e.BigQuery="BIG_QUERY",e.Hubspot="HUBSPOT",e.OpenFga="OPEN_FGA",e.Salesforce="SALESFORCE",e.Snowflake="SNOWFLAKE",e.Stripe="STRIPE",e.Zuora="ZUORA"}(Ot||(t.VendorIdentifier=Ot={})),function(e){e.Auth="AUTH",e.Billing="BILLING",e.Crm="CRM",e.DataExport="DATA_EXPORT",e.Marketplace="MARKETPLACE"}(Pt||(t.VendorType=Pt={})),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"}(At||(t.WeeklyAccordingTo=At={})),function(e){e.Checkout="CHECKOUT",e.CustomerPortal="CUSTOMER_PORTAL",e.Paywall="PAYWALL"}(Ft||(t.WidgetType=Ft={})),function(e){e.SubscriptionStart="SubscriptionStart"}(Nt||(t.YearlyAccordingTo=Nt={})),function(e){e.Control="CONTROL",e.Variant="VARIANT"}(Rt||(t.ExperimentGroupType=Rt={})),t.PageInfoFragmentDoc=i.default`
|
|
3
3
|
fragment PageInfoFragment on PageInfo {
|
|
4
4
|
startCursor
|
|
5
5
|
endCursor
|